configure revision 142403
1#! /bin/sh
2# From configure.in Revision: 1.331.2.8 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Heimdal 0.6.3.
5#
6# Report bugs to <heimdal-bugs@pdc.kth.se>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23  set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29  as_unset=unset
30else
31  as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45  LC_TELEPHONE LC_TIME
46do
47  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48    eval $as_var=C; export $as_var
49  else
50    $as_unset $as_var
51  fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56  as_expr=expr
57else
58  as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62  as_basename=basename
63else
64  as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71	 X"$0" : 'X\(//\)$' \| \
72	 X"$0" : 'X\(/\)$' \| \
73	 .     : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
77  	  /^X\/\(\/\).*/{ s//\1/; q; }
78  	  s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91  echo "#! /bin/sh" >conf$$.sh
92  echo  "exit 0"   >>conf$$.sh
93  chmod +x conf$$.sh
94  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95    PATH_SEPARATOR=';'
96  else
97    PATH_SEPARATOR=:
98  fi
99  rm -f conf$$.sh
100fi
101
102
103  as_lineno_1=$LINENO
104  as_lineno_2=$LINENO
105  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106  test "x$as_lineno_1" != "x$as_lineno_2" &&
107  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108  # Find who we are.  Look in the path if we contain no path at all
109  # relative or not.
110  case $0 in
111    *[\\/]* ) as_myself=$0 ;;
112    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115  IFS=$as_save_IFS
116  test -z "$as_dir" && as_dir=.
117  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120       ;;
121  esac
122  # We did not find ourselves, most probably we were run as `sh COMMAND'
123  # in which case we are not to be found in the path.
124  if test "x$as_myself" = x; then
125    as_myself=$0
126  fi
127  if test ! -f "$as_myself"; then
128    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129   { (exit 1); exit 1; }; }
130  fi
131  case $CONFIG_SHELL in
132  '')
133    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136  IFS=$as_save_IFS
137  test -z "$as_dir" && as_dir=.
138  for as_base in sh bash ksh sh5; do
139	 case $as_dir in
140	 /*)
141	   if ("$as_dir/$as_base" -c '
142  as_lineno_1=$LINENO
143  as_lineno_2=$LINENO
144  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145  test "x$as_lineno_1" != "x$as_lineno_2" &&
146  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149	     CONFIG_SHELL=$as_dir/$as_base
150	     export CONFIG_SHELL
151	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152	   fi;;
153	 esac
154       done
155done
156;;
157  esac
158
159  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160  # uniformly replaced by the line number.  The first 'sed' inserts a
161  # line-number line before each line; the second 'sed' does the real
162  # work.  The second script uses 'N' to pair each line-number line
163  # with the numbered line, and appends trailing '-' during
164  # substitution so that $LINENO is not a special case at line end.
165  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167  sed '=' <$as_myself |
168    sed '
169      N
170      s,$,-,
171      : loop
172      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173      t loop
174      s,-$,,
175      s,^['$as_cr_digits']*\n,,
176    ' >$as_me.lineno &&
177  chmod +x $as_me.lineno ||
178    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179   { (exit 1); exit 1; }; }
180
181  # Don't try to exec as it changes $[0], causing all sort of problems
182  # (the dirname of $[0] is not the place where we might find the
183  # original and so on.  Autoconf is especially sensible to this).
184  . ./$as_me.lineno
185  # Exit status is that of the last command.
186  exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191  *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T='	' ;;
193  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198  as_expr=expr
199else
200  as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206  # We could just check for DJGPP; but this test a) works b) is more generic
207  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208  if test -f conf$$.exe; then
209    # Don't use ln at all; we don't have any links
210    as_ln_s='cp -p'
211  else
212    as_ln_s='ln -s'
213  fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215  as_ln_s=ln
216else
217  as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222  as_mkdir_p=:
223else
224  test -d ./-p && rmdir ./-p
225  as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" 	$as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247
248# Check that we are running under the correct shell.
249SHELL=${CONFIG_SHELL-/bin/sh}
250
251case X$ECHO in
252X*--fallback-echo)
253  # Remove one level of quotation (which was required for Make).
254  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255  ;;
256esac
257
258echo=${ECHO-echo}
259if test "X$1" = X--no-reexec; then
260  # Discard the --no-reexec flag, and continue.
261  shift
262elif test "X$1" = X--fallback-echo; then
263  # Avoid inline document here, it may be left over
264  :
265elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266  # Yippee, $echo works!
267  :
268else
269  # Restart under the correct shell.
270  exec $SHELL "$0" --no-reexec ${1+"$@"}
271fi
272
273if test "X$1" = X--fallback-echo; then
274  # used as fallback echo
275  shift
276  cat <<EOF
277$*
278EOF
279  exit 0
280fi
281
282# The HP-UX ksh and POSIX shell print the target directory to stdout
283# if CDPATH is set.
284if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285
286if test -z "$ECHO"; then
287if test "X${echo_test_string+set}" != Xset; then
288# find a string as large as possible, as long as the shell can cope with it
289  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292       echo_test_string="`eval $cmd`" &&
293       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
294    then
295      break
296    fi
297  done
298fi
299
300if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302   test "X$echo_testing_string" = "X$echo_test_string"; then
303  :
304else
305  # The Solaris, AIX, and Digital Unix default echo programs unquote
306  # backslashes.  This makes it impossible to quote backslashes using
307  #   echo "$something" | sed 's/\\/\\\\/g'
308  #
309  # So, first we look for a working echo in the user's PATH.
310
311  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312  for dir in $PATH /usr/ucb; do
313    IFS="$lt_save_ifs"
314    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317       test "X$echo_testing_string" = "X$echo_test_string"; then
318      echo="$dir/echo"
319      break
320    fi
321  done
322  IFS="$lt_save_ifs"
323
324  if test "X$echo" = Xecho; then
325    # We didn't find a better echo, so look for alternatives.
326    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328       test "X$echo_testing_string" = "X$echo_test_string"; then
329      # This shell has a builtin print -r that does the trick.
330      echo='print -r'
331    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332	 test "X$CONFIG_SHELL" != X/bin/ksh; then
333      # If we have ksh, try running configure again with it.
334      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335      export ORIGINAL_CONFIG_SHELL
336      CONFIG_SHELL=/bin/ksh
337      export CONFIG_SHELL
338      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339    else
340      # Try using printf.
341      echo='printf %s\n'
342      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344	 test "X$echo_testing_string" = "X$echo_test_string"; then
345	# Cool, printf works
346	:
347      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348	   test "X$echo_testing_string" = 'X\t' &&
349	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350	   test "X$echo_testing_string" = "X$echo_test_string"; then
351	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352	export CONFIG_SHELL
353	SHELL="$CONFIG_SHELL"
354	export SHELL
355	echo="$CONFIG_SHELL $0 --fallback-echo"
356      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357	   test "X$echo_testing_string" = 'X\t' &&
358	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359	   test "X$echo_testing_string" = "X$echo_test_string"; then
360	echo="$CONFIG_SHELL $0 --fallback-echo"
361      else
362	# maybe with a smaller string...
363	prev=:
364
365	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
367	  then
368	    break
369	  fi
370	  prev="$cmd"
371	done
372
373	if test "$prev" != 'sed 50q "$0"'; then
374	  echo_test_string=`eval $prev`
375	  export echo_test_string
376	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377	else
378	  # Oops.  We lost completely, so just stick with echo.
379	  echo=echo
380	fi
381      fi
382    fi
383  fi
384fi
385fi
386
387# Copy echo and quote the copy suitably for passing to libtool from
388# the Makefile, instead of quoting the original, which is used later.
389ECHO=$echo
390if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392fi
393
394
395
396
397tagnames=${tagnames+${tagnames},}CXX
398
399tagnames=${tagnames+${tagnames},}F77
400
401# Name of the host.
402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403# so uname gets run too.
404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406exec 6>&1
407
408#
409# Initializations.
410#
411ac_default_prefix=/usr/local
412ac_config_libobj_dir=.
413cross_compiling=no
414subdirs=
415MFLAGS=
416MAKEFLAGS=
417SHELL=${CONFIG_SHELL-/bin/sh}
418
419# Maximum number of lines to put in a shell here document.
420# This variable seems obsolete.  It should probably be removed, and
421# only ac_max_sed_lines should be used.
422: ${ac_max_here_lines=38}
423
424# Identity of this package.
425PACKAGE_NAME='Heimdal'
426PACKAGE_TARNAME='heimdal'
427PACKAGE_VERSION='0.6.3'
428PACKAGE_STRING='Heimdal 0.6.3'
429PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se'
430
431ac_unique_file="kuser/kinit.c"
432ac_default_prefix=/usr/heimdal
433# Factoring default headers for most tests.
434ac_includes_default="\
435#include <stdio.h>
436#if HAVE_SYS_TYPES_H
437# include <sys/types.h>
438#endif
439#if HAVE_SYS_STAT_H
440# include <sys/stat.h>
441#endif
442#if STDC_HEADERS
443# include <stdlib.h>
444# include <stddef.h>
445#else
446# if HAVE_STDLIB_H
447#  include <stdlib.h>
448# endif
449#endif
450#if HAVE_STRING_H
451# if !STDC_HEADERS && HAVE_MEMORY_H
452#  include <memory.h>
453# endif
454# include <string.h>
455#endif
456#if HAVE_STRINGS_H
457# include <strings.h>
458#endif
459#if HAVE_INTTYPES_H
460# include <inttypes.h>
461#else
462# if HAVE_STDINT_H
463#  include <stdint.h>
464# endif
465#endif
466#if HAVE_UNISTD_H
467# include <unistd.h>
468#endif"
469
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CANONICAL_HOST YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WFLAGS WFLAGS_NOUNUSED WFLAGS_NOIMPLICITINT INCLUDE_openldap LIB_openldap INCLUDE_krb4 LIB_krb4 EXTRA_LIB45 LIB_krb_enable_debug LIB_krb_disable_debug LIB_krb_get_our_ip_for_realm LIB_krb_kdctimeofday LIB_krb_get_kdc_time_diff KRB4_TRUE KRB4_FALSE KRB5_TRUE KRB5_FALSE do_roken_rename_TRUE do_roken_rename_FALSE LIB_kdb HAVE_OPENSSL_TRUE HAVE_OPENSSL_FALSE DIR_des INCLUDE_des LIB_des LIB_des_a LIB_des_so LIB_des_appl DCE_TRUE DCE_FALSE dpagaix_cflags dpagaix_ldadd dpagaix_ldflags LIB_db_create LIB_dbopen LIB_dbm_firstkey HAVE_DB1_TRUE HAVE_DB1_FALSE HAVE_DB3_TRUE HAVE_DB3_FALSE HAVE_NDBM_TRUE HAVE_NDBM_FALSE DBLIB LIB_NDBM VOID_RETSIGTYPE have_err_h_TRUE have_err_h_FALSE have_fnmatch_h_TRUE have_fnmatch_h_FALSE have_ifaddrs_h_TRUE have_ifaddrs_h_FALSE have_vis_h_TRUE have_vis_h_FALSE LIB_socket LIB_gethostbyname LIB_syslog LIB_gethostbyname2 LIB_res_search LIB_res_nsearch LIB_dn_expand LIBOBJS have_glob_h_TRUE have_glob_h_FALSE LIB_getsockopt LIB_setsockopt LIB_hstrerror LIB_bswap16 LIB_bswap32 LIB_pidfile LIB_getaddrinfo LIB_getnameinfo LIB_freeaddrinfo LIB_gai_strerror LIB_crypt DIR_roken LIB_roken INCLUDES_roken LIB_otp OTP_TRUE OTP_FALSE LIB_security NROFF GROFF CATMAN CATMAN_TRUE CATMAN_FALSE CATMANEXT INCLUDE_readline LIB_readline INCLUDE_hesiod LIB_hesiod AIX_TRUE AIX_FALSE AIX4_TRUE AIX4_FALSE LIB_dlopen HAVE_DLOPEN_TRUE HAVE_DLOPEN_FALSE LIB_loadquery AIX_DYNAMIC_AFS_TRUE AIX_DYNAMIC_AFS_FALSE AIX_EXTRA_KAFS IRIX_TRUE IRIX_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS HAVE_X_TRUE HAVE_X_FALSE LIB_XauWriteAuth LIB_XauReadAuth LIB_XauFileName NEED_WRITEAUTH_TRUE NEED_WRITEAUTH_FALSE LIB_logwtmp LIB_logout LIB_openpty LIB_tgetent LIB_getpwnam_r LIB_el_init el_compat_TRUE el_compat_FALSE COMPILE_ET DIR_com_err LIB_com_err LIB_com_err_a LIB_com_err_so LIB_AUTH_SUBDIRS LTLIBOBJS'
471ac_subst_files=''
472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514  # If the previous option needs an argument, assign it.
515  if test -n "$ac_prev"; then
516    eval "$ac_prev=\$ac_option"
517    ac_prev=
518    continue
519  fi
520
521  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523  # Accept the important Cygnus configure options, so we can diagnose typos.
524
525  case $ac_option in
526
527  -bindir | --bindir | --bindi | --bind | --bin | --bi)
528    ac_prev=bindir ;;
529  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530    bindir=$ac_optarg ;;
531
532  -build | --build | --buil | --bui | --bu)
533    ac_prev=build_alias ;;
534  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535    build_alias=$ac_optarg ;;
536
537  -cache-file | --cache-file | --cache-fil | --cache-fi \
538  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539    ac_prev=cache_file ;;
540  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542    cache_file=$ac_optarg ;;
543
544  --config-cache | -C)
545    cache_file=config.cache ;;
546
547  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548    ac_prev=datadir ;;
549  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550  | --da=*)
551    datadir=$ac_optarg ;;
552
553  -disable-* | --disable-*)
554    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555    # Reject names that are not valid shell variable names.
556    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558   { (exit 1); exit 1; }; }
559    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560    eval "enable_$ac_feature=no" ;;
561
562  -enable-* | --enable-*)
563    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567   { (exit 1); exit 1; }; }
568    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569    case $ac_option in
570      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571      *) ac_optarg=yes ;;
572    esac
573    eval "enable_$ac_feature='$ac_optarg'" ;;
574
575  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577  | --exec | --exe | --ex)
578    ac_prev=exec_prefix ;;
579  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581  | --exec=* | --exe=* | --ex=*)
582    exec_prefix=$ac_optarg ;;
583
584  -gas | --gas | --ga | --g)
585    # Obsolete; use --with-gas.
586    with_gas=yes ;;
587
588  -help | --help | --hel | --he | -h)
589    ac_init_help=long ;;
590  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591    ac_init_help=recursive ;;
592  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593    ac_init_help=short ;;
594
595  -host | --host | --hos | --ho)
596    ac_prev=host_alias ;;
597  -host=* | --host=* | --hos=* | --ho=*)
598    host_alias=$ac_optarg ;;
599
600  -includedir | --includedir | --includedi | --included | --include \
601  | --includ | --inclu | --incl | --inc)
602    ac_prev=includedir ;;
603  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604  | --includ=* | --inclu=* | --incl=* | --inc=*)
605    includedir=$ac_optarg ;;
606
607  -infodir | --infodir | --infodi | --infod | --info | --inf)
608    ac_prev=infodir ;;
609  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610    infodir=$ac_optarg ;;
611
612  -libdir | --libdir | --libdi | --libd)
613    ac_prev=libdir ;;
614  -libdir=* | --libdir=* | --libdi=* | --libd=*)
615    libdir=$ac_optarg ;;
616
617  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618  | --libexe | --libex | --libe)
619    ac_prev=libexecdir ;;
620  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621  | --libexe=* | --libex=* | --libe=*)
622    libexecdir=$ac_optarg ;;
623
624  -localstatedir | --localstatedir | --localstatedi | --localstated \
625  | --localstate | --localstat | --localsta | --localst \
626  | --locals | --local | --loca | --loc | --lo)
627    ac_prev=localstatedir ;;
628  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631    localstatedir=$ac_optarg ;;
632
633  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634    ac_prev=mandir ;;
635  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636    mandir=$ac_optarg ;;
637
638  -nfp | --nfp | --nf)
639    # Obsolete; use --without-fp.
640    with_fp=no ;;
641
642  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643  | --no-cr | --no-c | -n)
644    no_create=yes ;;
645
646  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648    no_recursion=yes ;;
649
650  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652  | --oldin | --oldi | --old | --ol | --o)
653    ac_prev=oldincludedir ;;
654  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657    oldincludedir=$ac_optarg ;;
658
659  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660    ac_prev=prefix ;;
661  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662    prefix=$ac_optarg ;;
663
664  -program-prefix | --program-prefix | --program-prefi | --program-pref \
665  | --program-pre | --program-pr | --program-p)
666    ac_prev=program_prefix ;;
667  -program-prefix=* | --program-prefix=* | --program-prefi=* \
668  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669    program_prefix=$ac_optarg ;;
670
671  -program-suffix | --program-suffix | --program-suffi | --program-suff \
672  | --program-suf | --program-su | --program-s)
673    ac_prev=program_suffix ;;
674  -program-suffix=* | --program-suffix=* | --program-suffi=* \
675  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676    program_suffix=$ac_optarg ;;
677
678  -program-transform-name | --program-transform-name \
679  | --program-transform-nam | --program-transform-na \
680  | --program-transform-n | --program-transform- \
681  | --program-transform | --program-transfor \
682  | --program-transfo | --program-transf \
683  | --program-trans | --program-tran \
684  | --progr-tra | --program-tr | --program-t)
685    ac_prev=program_transform_name ;;
686  -program-transform-name=* | --program-transform-name=* \
687  | --program-transform-nam=* | --program-transform-na=* \
688  | --program-transform-n=* | --program-transform-=* \
689  | --program-transform=* | --program-transfor=* \
690  | --program-transfo=* | --program-transf=* \
691  | --program-trans=* | --program-tran=* \
692  | --progr-tra=* | --program-tr=* | --program-t=*)
693    program_transform_name=$ac_optarg ;;
694
695  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696  | -silent | --silent | --silen | --sile | --sil)
697    silent=yes ;;
698
699  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700    ac_prev=sbindir ;;
701  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702  | --sbi=* | --sb=*)
703    sbindir=$ac_optarg ;;
704
705  -sharedstatedir | --sharedstatedir | --sharedstatedi \
706  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707  | --sharedst | --shareds | --shared | --share | --shar \
708  | --sha | --sh)
709    ac_prev=sharedstatedir ;;
710  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713  | --sha=* | --sh=*)
714    sharedstatedir=$ac_optarg ;;
715
716  -site | --site | --sit)
717    ac_prev=site ;;
718  -site=* | --site=* | --sit=*)
719    site=$ac_optarg ;;
720
721  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722    ac_prev=srcdir ;;
723  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724    srcdir=$ac_optarg ;;
725
726  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727  | --syscon | --sysco | --sysc | --sys | --sy)
728    ac_prev=sysconfdir ;;
729  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731    sysconfdir=$ac_optarg ;;
732
733  -target | --target | --targe | --targ | --tar | --ta | --t)
734    ac_prev=target_alias ;;
735  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736    target_alias=$ac_optarg ;;
737
738  -v | -verbose | --verbose | --verbos | --verbo | --verb)
739    verbose=yes ;;
740
741  -version | --version | --versio | --versi | --vers | -V)
742    ac_init_version=: ;;
743
744  -with-* | --with-*)
745    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746    # Reject names that are not valid shell variable names.
747    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748      { echo "$as_me: error: invalid package name: $ac_package" >&2
749   { (exit 1); exit 1; }; }
750    ac_package=`echo $ac_package| sed 's/-/_/g'`
751    case $ac_option in
752      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753      *) ac_optarg=yes ;;
754    esac
755    eval "with_$ac_package='$ac_optarg'" ;;
756
757  -without-* | --without-*)
758    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759    # Reject names that are not valid shell variable names.
760    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761      { echo "$as_me: error: invalid package name: $ac_package" >&2
762   { (exit 1); exit 1; }; }
763    ac_package=`echo $ac_package | sed 's/-/_/g'`
764    eval "with_$ac_package=no" ;;
765
766  --x)
767    # Obsolete; use --with-x.
768    with_x=yes ;;
769
770  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771  | --x-incl | --x-inc | --x-in | --x-i)
772    ac_prev=x_includes ;;
773  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775    x_includes=$ac_optarg ;;
776
777  -x-libraries | --x-libraries | --x-librarie | --x-librari \
778  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779    ac_prev=x_libraries ;;
780  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782    x_libraries=$ac_optarg ;;
783
784  -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786   { (exit 1); exit 1; }; }
787    ;;
788
789  *=*)
790    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791    # Reject names that are not valid shell variable names.
792    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794   { (exit 1); exit 1; }; }
795    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796    eval "$ac_envvar='$ac_optarg'"
797    export $ac_envvar ;;
798
799  *)
800    # FIXME: should be removed in autoconf 3.0.
801    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805    ;;
806
807  esac
808done
809
810if test -n "$ac_prev"; then
811  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812  { echo "$as_me: error: missing argument to $ac_option" >&2
813   { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819  eval ac_val=$`echo $ac_var`
820  case $ac_val in
821    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823   { (exit 1); exit 1; }; };;
824  esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829	      localstatedir libdir includedir oldincludedir infodir mandir
830do
831  eval ac_val=$`echo $ac_var`
832  case $ac_val in
833    [\\/$]* | ?:[\\/]* ) ;;
834    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835   { (exit 1); exit 1; }; };;
836  esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848  if test "x$build_alias" = x; then
849    cross_compiling=maybe
850    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851    If a cross compiler is detected then cross compile mode will be used." >&2
852  elif test "x$build_alias" != "x$host_alias"; then
853    cross_compiling=yes
854  fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865  ac_srcdir_defaulted=yes
866  # Try the directory containing this script, then its parent.
867  ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869	 X"$0" : 'X\(//\)[^/]' \| \
870	 X"$0" : 'X\(//\)$' \| \
871	 X"$0" : 'X\(/\)' \| \
872	 .     : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876  	  /^X\(\/\/\)$/{ s//\1/; q; }
877  	  /^X\(\/\).*/{ s//\1/; q; }
878  	  s/.*/./; q'`
879  srcdir=$ac_confdir
880  if test ! -r $srcdir/$ac_unique_file; then
881    srcdir=..
882  fi
883else
884  ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887  if test "$ac_srcdir_defaulted" = yes; then
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889   { (exit 1); exit 1; }; }
890  else
891    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892   { (exit 1); exit 1; }; }
893  fi
894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897   { (exit 1); exit 1; }; }
898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP
931ac_env_CXX_set=${CXX+set}
932ac_env_CXX_value=$CXX
933ac_cv_env_CXX_set=${CXX+set}
934ac_cv_env_CXX_value=$CXX
935ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_env_CXXFLAGS_value=$CXXFLAGS
937ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
951
952#
953# Report the --help message.
954#
955if test "$ac_init_help" = "long"; then
956  # Omit some internal or obsolete options to make the list less imposing.
957  # This message is too long to be a string in the A/UX 3.1 sh.
958  cat <<_ACEOF
959\`configure' configures Heimdal 0.6.3 to adapt to many kinds of systems.
960
961Usage: $0 [OPTION]... [VAR=VALUE]...
962
963To assign environment variables (e.g., CC, CFLAGS...), specify them as
964VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966Defaults for the options are specified in brackets.
967
968Configuration:
969  -h, --help              display this help and exit
970      --help=short        display options specific to this package
971      --help=recursive    display the short help of all the included packages
972  -V, --version           display version information and exit
973  -q, --quiet, --silent   do not print \`checking...' messages
974      --cache-file=FILE   cache test results in FILE [disabled]
975  -C, --config-cache      alias for \`--cache-file=config.cache'
976  -n, --no-create         do not create output files
977      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979_ACEOF
980
981  cat <<_ACEOF
982Installation directories:
983  --prefix=PREFIX         install architecture-independent files in PREFIX
984			  [$ac_default_prefix]
985  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986			  [PREFIX]
987
988By default, \`make install' will install all the files in
989\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991for instance \`--prefix=\$HOME'.
992
993For better control, use the options below.
994
995Fine tuning of the installation directories:
996  --bindir=DIR           user executables [EPREFIX/bin]
997  --sbindir=DIR          system admin executables [EPREFIX/sbin]
998  --libexecdir=DIR       program executables [EPREFIX/libexec]
999  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003  --libdir=DIR           object code libraries [EPREFIX/lib]
1004  --includedir=DIR       C header files [PREFIX/include]
1005  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006  --infodir=DIR          info documentation [PREFIX/info]
1007  --mandir=DIR           man documentation [PREFIX/man]
1008_ACEOF
1009
1010  cat <<\_ACEOF
1011
1012Program names:
1013  --program-prefix=PREFIX            prepend PREFIX to installed program names
1014  --program-suffix=SUFFIX            append SUFFIX to installed program names
1015  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1016
1017X features:
1018  --x-includes=DIR    X include files are in DIR
1019  --x-libraries=DIR   X library files are in DIR
1020
1021System types:
1022  --build=BUILD     configure for building on BUILD [guessed]
1023  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024_ACEOF
1025fi
1026
1027if test -n "$ac_init_help"; then
1028  case $ac_init_help in
1029     short | recursive ) echo "Configuration of Heimdal 0.6.3:";;
1030   esac
1031  cat <<\_ACEOF
1032
1033Optional Features:
1034  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1035  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1036  --enable-maintainer-mode  enable make rules and dependencies not useful
1037			  (and sometimes confusing) to the casual installer
1038  --disable-largefile     omit support for large files
1039  --enable-shared[=PKGS]
1040                          build shared libraries [default=no]
1041  --enable-static[=PKGS]
1042                          build static libraries [default=yes]
1043  --enable-fast-install[=PKGS]
1044                          optimize for fast installation [default=yes]
1045  --disable-libtool-lock  avoid locking (might break parallel builds)
1046  --enable-dce            if you want support for DCE/DFS PAG's
1047  --disable-berkeley-db   if you don't want berkeley db
1048  --disable-otp           if you don't want OTP support
1049  --enable-osfc2          enable some OSF C2 support
1050  --disable-mmap          disable use of mmap
1051  --enable-bigendian      the target is big endian
1052  --enable-littleendian   the target is little endian
1053  --disable-dynamic-afs   do not use loaded AFS library with AIX
1054  --enable-netinfo        enable netinfo for configuration lookup
1055
1056Optional Packages:
1057  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1058  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1059  --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
1060  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1061  --with-pic              try to use only PIC/non-PIC objects [default=use
1062                          both]
1063  --with-tags[=TAGS]
1064                          include additional configurations [automatic]
1065  --with-openldap=dir     use openldap in dir
1066  --with-openldap-lib=dir use openldap libraries in dir
1067  --with-openldap-include=dir
1068                          use openldap headers in dir
1069  --with-openldap-config=path
1070                          config program for openldap
1071  --with-krb4=dir         use krb4 in dir
1072  --with-krb4-lib=dir     use krb4 libraries in dir
1073  --with-krb4-include=dir use krb4 headers in dir
1074  --with-krb4-config=path config program for krb4
1075  --with-openssl=dir      use openssl in dir
1076  --with-openssl-lib=dir  use openssl libraries in dir
1077  --with-openssl-include=dir
1078                          use openssl headers in dir
1079  --without-ipv6          do not enable IPv6 support
1080  --with-readline=dir     use readline in dir
1081  --with-readline-lib=dir use readline libraries in dir
1082  --with-readline-include=dir
1083                          use readline headers in dir
1084  --with-readline-config=path
1085                          config program for readline
1086  --with-hesiod=dir       use hesiod in dir
1087  --with-hesiod-lib=dir   use hesiod libraries in dir
1088  --with-hesiod-include=dir
1089                          use hesiod headers in dir
1090  --with-hesiod-config=path
1091                          config program for hesiod
1092  --with-x                use the X Window System
1093
1094Some influential environment variables:
1095  CC          C compiler command
1096  CFLAGS      C compiler flags
1097  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1098              nonstandard directory <lib dir>
1099  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1100              headers in a nonstandard directory <include dir>
1101  CPP         C preprocessor
1102  CXX         C++ compiler command
1103  CXXFLAGS    C++ compiler flags
1104  CXXCPP      C++ preprocessor
1105  F77         Fortran 77 compiler command
1106  FFLAGS      Fortran 77 compiler flags
1107
1108Use these variables to override the choices made by `configure' or to help
1109it to find libraries and programs with nonstandard names/locations.
1110
1111Report bugs to <heimdal-bugs@pdc.kth.se>.
1112_ACEOF
1113fi
1114
1115if test "$ac_init_help" = "recursive"; then
1116  # If there are subdirs, report their specific --help.
1117  ac_popdir=`pwd`
1118  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119    test -d $ac_dir || continue
1120    ac_builddir=.
1121
1122if test "$ac_dir" != .; then
1123  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124  # A "../" for each directory in $ac_dir_suffix.
1125  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126else
1127  ac_dir_suffix= ac_top_builddir=
1128fi
1129
1130case $srcdir in
1131  .)  # No --srcdir option.  We are building in place.
1132    ac_srcdir=.
1133    if test -z "$ac_top_builddir"; then
1134       ac_top_srcdir=.
1135    else
1136       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137    fi ;;
1138  [\\/]* | ?:[\\/]* )  # Absolute path.
1139    ac_srcdir=$srcdir$ac_dir_suffix;
1140    ac_top_srcdir=$srcdir ;;
1141  *) # Relative path.
1142    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144esac
1145
1146# Do not use `cd foo && pwd` to compute absolute paths, because
1147# the directories may not exist.
1148case `pwd` in
1149.) ac_abs_builddir="$ac_dir";;
1150*)
1151  case "$ac_dir" in
1152  .) ac_abs_builddir=`pwd`;;
1153  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155  esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_top_builddir=${ac_top_builddir}.;;
1159*)
1160  case ${ac_top_builddir}. in
1161  .) ac_abs_top_builddir=$ac_abs_builddir;;
1162  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164  esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_srcdir=$ac_srcdir;;
1168*)
1169  case $ac_srcdir in
1170  .) ac_abs_srcdir=$ac_abs_builddir;;
1171  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173  esac;;
1174esac
1175case $ac_abs_builddir in
1176.) ac_abs_top_srcdir=$ac_top_srcdir;;
1177*)
1178  case $ac_top_srcdir in
1179  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1182  esac;;
1183esac
1184
1185    cd $ac_dir
1186    # Check for guested configure; otherwise get Cygnus style configure.
1187    if test -f $ac_srcdir/configure.gnu; then
1188      echo
1189      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1190    elif test -f $ac_srcdir/configure; then
1191      echo
1192      $SHELL $ac_srcdir/configure  --help=recursive
1193    elif test -f $ac_srcdir/configure.ac ||
1194	   test -f $ac_srcdir/configure.in; then
1195      echo
1196      $ac_configure --help
1197    else
1198      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1199    fi
1200    cd $ac_popdir
1201  done
1202fi
1203
1204test -n "$ac_init_help" && exit 0
1205if $ac_init_version; then
1206  cat <<\_ACEOF
1207Heimdal configure 0.6.3
1208generated by GNU Autoconf 2.59
1209
1210Copyright (C) 2003 Free Software Foundation, Inc.
1211This configure script is free software; the Free Software Foundation
1212gives unlimited permission to copy, distribute and modify it.
1213_ACEOF
1214  exit 0
1215fi
1216exec 5>config.log
1217cat >&5 <<_ACEOF
1218This file contains any messages produced by compilers while
1219running configure, to aid debugging if configure makes a mistake.
1220
1221It was created by Heimdal $as_me 0.6.3, which was
1222generated by GNU Autoconf 2.59.  Invocation command line was
1223
1224  $ $0 $@
1225
1226_ACEOF
1227{
1228cat <<_ASUNAME
1229## --------- ##
1230## Platform. ##
1231## --------- ##
1232
1233hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238
1239/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1241
1242/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1243/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1244/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1246/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1247/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1248/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1249
1250_ASUNAME
1251
1252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253for as_dir in $PATH
1254do
1255  IFS=$as_save_IFS
1256  test -z "$as_dir" && as_dir=.
1257  echo "PATH: $as_dir"
1258done
1259
1260} >&5
1261
1262cat >&5 <<_ACEOF
1263
1264
1265## ----------- ##
1266## Core tests. ##
1267## ----------- ##
1268
1269_ACEOF
1270
1271
1272# Keep a trace of the command line.
1273# Strip out --no-create and --no-recursion so they do not pile up.
1274# Strip out --silent because we don't want to record it for future runs.
1275# Also quote any args containing shell meta-characters.
1276# Make two passes to allow for proper duplicate-argument suppression.
1277ac_configure_args=
1278ac_configure_args0=
1279ac_configure_args1=
1280ac_sep=
1281ac_must_keep_next=false
1282for ac_pass in 1 2
1283do
1284  for ac_arg
1285  do
1286    case $ac_arg in
1287    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289    | -silent | --silent | --silen | --sile | --sil)
1290      continue ;;
1291    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1293    esac
1294    case $ac_pass in
1295    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296    2)
1297      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298      if test $ac_must_keep_next = true; then
1299	ac_must_keep_next=false # Got value, back to normal.
1300      else
1301	case $ac_arg in
1302	  *=* | --config-cache | -C | -disable-* | --disable-* \
1303	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1304	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1305	  | -with-* | --with-* | -without-* | --without-* | --x)
1306	    case "$ac_configure_args0 " in
1307	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1308	    esac
1309	    ;;
1310	  -* ) ac_must_keep_next=true ;;
1311	esac
1312      fi
1313      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314      # Get rid of the leading space.
1315      ac_sep=" "
1316      ;;
1317    esac
1318  done
1319done
1320$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1322
1323# When interrupted or exit'd, cleanup temporary files, and complete
1324# config.log.  We remove comments because anyway the quotes in there
1325# would cause problems or look ugly.
1326# WARNING: Be sure not to use single quotes in there, as some shells,
1327# such as our DU 5.0 friend, will then `close' the trap.
1328trap 'exit_status=$?
1329  # Save into config.log some information that might help in debugging.
1330  {
1331    echo
1332
1333    cat <<\_ASBOX
1334## ---------------- ##
1335## Cache variables. ##
1336## ---------------- ##
1337_ASBOX
1338    echo
1339    # The following way of writing the cache mishandles newlines in values,
1340{
1341  (set) 2>&1 |
1342    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1343    *ac_space=\ *)
1344      sed -n \
1345	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1346	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1347      ;;
1348    *)
1349      sed -n \
1350	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1351      ;;
1352    esac;
1353}
1354    echo
1355
1356    cat <<\_ASBOX
1357## ----------------- ##
1358## Output variables. ##
1359## ----------------- ##
1360_ASBOX
1361    echo
1362    for ac_var in $ac_subst_vars
1363    do
1364      eval ac_val=$`echo $ac_var`
1365      echo "$ac_var='"'"'$ac_val'"'"'"
1366    done | sort
1367    echo
1368
1369    if test -n "$ac_subst_files"; then
1370      cat <<\_ASBOX
1371## ------------- ##
1372## Output files. ##
1373## ------------- ##
1374_ASBOX
1375      echo
1376      for ac_var in $ac_subst_files
1377      do
1378	eval ac_val=$`echo $ac_var`
1379	echo "$ac_var='"'"'$ac_val'"'"'"
1380      done | sort
1381      echo
1382    fi
1383
1384    if test -s confdefs.h; then
1385      cat <<\_ASBOX
1386## ----------- ##
1387## confdefs.h. ##
1388## ----------- ##
1389_ASBOX
1390      echo
1391      sed "/^$/d" confdefs.h | sort
1392      echo
1393    fi
1394    test "$ac_signal" != 0 &&
1395      echo "$as_me: caught signal $ac_signal"
1396    echo "$as_me: exit $exit_status"
1397  } >&5
1398  rm -f core *.core &&
1399  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1400    exit $exit_status
1401     ' 0
1402for ac_signal in 1 2 13 15; do
1403  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1404done
1405ac_signal=0
1406
1407# confdefs.h avoids OS command line length limits that DEFS can exceed.
1408rm -rf conftest* confdefs.h
1409# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1410echo >confdefs.h
1411
1412# Predefined preprocessor variables.
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_NAME "$PACKAGE_NAME"
1416_ACEOF
1417
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1421_ACEOF
1422
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_VERSION "$PACKAGE_VERSION"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_STRING "$PACKAGE_STRING"
1431_ACEOF
1432
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1436_ACEOF
1437
1438
1439# Let the site file select an alternate cache file if it wants to.
1440# Prefer explicitly selected file to automatically selected ones.
1441if test -z "$CONFIG_SITE"; then
1442  if test "x$prefix" != xNONE; then
1443    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444  else
1445    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1446  fi
1447fi
1448for ac_site_file in $CONFIG_SITE; do
1449  if test -r "$ac_site_file"; then
1450    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1451echo "$as_me: loading site script $ac_site_file" >&6;}
1452    sed 's/^/| /' "$ac_site_file" >&5
1453    . "$ac_site_file"
1454  fi
1455done
1456
1457if test -r "$cache_file"; then
1458  # Some versions of bash will fail to source /dev/null (special
1459  # files actually), so we avoid doing that.
1460  if test -f "$cache_file"; then
1461    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1462echo "$as_me: loading cache $cache_file" >&6;}
1463    case $cache_file in
1464      [\\/]* | ?:[\\/]* ) . $cache_file;;
1465      *)                      . ./$cache_file;;
1466    esac
1467  fi
1468else
1469  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1470echo "$as_me: creating cache $cache_file" >&6;}
1471  >$cache_file
1472fi
1473
1474# Check that the precious variables saved in the cache have kept the same
1475# value.
1476ac_cache_corrupted=false
1477for ac_var in `(set) 2>&1 |
1478	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1479  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1480  eval ac_new_set=\$ac_env_${ac_var}_set
1481  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1482  eval ac_new_val="\$ac_env_${ac_var}_value"
1483  case $ac_old_set,$ac_new_set in
1484    set,)
1485      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1486echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1487      ac_cache_corrupted=: ;;
1488    ,set)
1489      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1490echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1491      ac_cache_corrupted=: ;;
1492    ,);;
1493    *)
1494      if test "x$ac_old_val" != "x$ac_new_val"; then
1495	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1496echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1497	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1498echo "$as_me:   former value:  $ac_old_val" >&2;}
1499	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1500echo "$as_me:   current value: $ac_new_val" >&2;}
1501	ac_cache_corrupted=:
1502      fi;;
1503  esac
1504  # Pass precious variables to config.status.
1505  if test "$ac_new_set" = set; then
1506    case $ac_new_val in
1507    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1508      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1509    *) ac_arg=$ac_var=$ac_new_val ;;
1510    esac
1511    case " $ac_configure_args " in
1512      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1513      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1514    esac
1515  fi
1516done
1517if $ac_cache_corrupted; then
1518  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1519echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1520  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1521echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1522   { (exit 1); exit 1; }; }
1523fi
1524
1525ac_ext=c
1526ac_cpp='$CPP $CPPFLAGS'
1527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1529ac_compiler_gnu=$ac_cv_c_compiler_gnu
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558          ac_config_headers="$ac_config_headers include/config.h"
1559
1560
1561ac_ext=c
1562ac_cpp='$CPP $CPPFLAGS'
1563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1565ac_compiler_gnu=$ac_cv_c_compiler_gnu
1566if test -n "$ac_tool_prefix"; then
1567  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1568set dummy ${ac_tool_prefix}gcc; ac_word=$2
1569echo "$as_me:$LINENO: checking for $ac_word" >&5
1570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571if test "${ac_cv_prog_CC+set}" = set; then
1572  echo $ECHO_N "(cached) $ECHO_C" >&6
1573else
1574  if test -n "$CC"; then
1575  ac_cv_prog_CC="$CC" # Let the user override the test.
1576else
1577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578for as_dir in $PATH
1579do
1580  IFS=$as_save_IFS
1581  test -z "$as_dir" && as_dir=.
1582  for ac_exec_ext in '' $ac_executable_extensions; do
1583  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1585    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586    break 2
1587  fi
1588done
1589done
1590
1591fi
1592fi
1593CC=$ac_cv_prog_CC
1594if test -n "$CC"; then
1595  echo "$as_me:$LINENO: result: $CC" >&5
1596echo "${ECHO_T}$CC" >&6
1597else
1598  echo "$as_me:$LINENO: result: no" >&5
1599echo "${ECHO_T}no" >&6
1600fi
1601
1602fi
1603if test -z "$ac_cv_prog_CC"; then
1604  ac_ct_CC=$CC
1605  # Extract the first word of "gcc", so it can be a program name with args.
1606set dummy gcc; ac_word=$2
1607echo "$as_me:$LINENO: checking for $ac_word" >&5
1608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1610  echo $ECHO_N "(cached) $ECHO_C" >&6
1611else
1612  if test -n "$ac_ct_CC"; then
1613  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1614else
1615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616for as_dir in $PATH
1617do
1618  IFS=$as_save_IFS
1619  test -z "$as_dir" && as_dir=.
1620  for ac_exec_ext in '' $ac_executable_extensions; do
1621  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622    ac_cv_prog_ac_ct_CC="gcc"
1623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624    break 2
1625  fi
1626done
1627done
1628
1629fi
1630fi
1631ac_ct_CC=$ac_cv_prog_ac_ct_CC
1632if test -n "$ac_ct_CC"; then
1633  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1634echo "${ECHO_T}$ac_ct_CC" >&6
1635else
1636  echo "$as_me:$LINENO: result: no" >&5
1637echo "${ECHO_T}no" >&6
1638fi
1639
1640  CC=$ac_ct_CC
1641else
1642  CC="$ac_cv_prog_CC"
1643fi
1644
1645if test -z "$CC"; then
1646  if test -n "$ac_tool_prefix"; then
1647  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1648set dummy ${ac_tool_prefix}cc; ac_word=$2
1649echo "$as_me:$LINENO: checking for $ac_word" >&5
1650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651if test "${ac_cv_prog_CC+set}" = set; then
1652  echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654  if test -n "$CC"; then
1655  ac_cv_prog_CC="$CC" # Let the user override the test.
1656else
1657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658for as_dir in $PATH
1659do
1660  IFS=$as_save_IFS
1661  test -z "$as_dir" && as_dir=.
1662  for ac_exec_ext in '' $ac_executable_extensions; do
1663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664    ac_cv_prog_CC="${ac_tool_prefix}cc"
1665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666    break 2
1667  fi
1668done
1669done
1670
1671fi
1672fi
1673CC=$ac_cv_prog_CC
1674if test -n "$CC"; then
1675  echo "$as_me:$LINENO: result: $CC" >&5
1676echo "${ECHO_T}$CC" >&6
1677else
1678  echo "$as_me:$LINENO: result: no" >&5
1679echo "${ECHO_T}no" >&6
1680fi
1681
1682fi
1683if test -z "$ac_cv_prog_CC"; then
1684  ac_ct_CC=$CC
1685  # Extract the first word of "cc", so it can be a program name with args.
1686set dummy cc; ac_word=$2
1687echo "$as_me:$LINENO: checking for $ac_word" >&5
1688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1690  echo $ECHO_N "(cached) $ECHO_C" >&6
1691else
1692  if test -n "$ac_ct_CC"; then
1693  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1694else
1695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696for as_dir in $PATH
1697do
1698  IFS=$as_save_IFS
1699  test -z "$as_dir" && as_dir=.
1700  for ac_exec_ext in '' $ac_executable_extensions; do
1701  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702    ac_cv_prog_ac_ct_CC="cc"
1703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704    break 2
1705  fi
1706done
1707done
1708
1709fi
1710fi
1711ac_ct_CC=$ac_cv_prog_ac_ct_CC
1712if test -n "$ac_ct_CC"; then
1713  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1714echo "${ECHO_T}$ac_ct_CC" >&6
1715else
1716  echo "$as_me:$LINENO: result: no" >&5
1717echo "${ECHO_T}no" >&6
1718fi
1719
1720  CC=$ac_ct_CC
1721else
1722  CC="$ac_cv_prog_CC"
1723fi
1724
1725fi
1726if test -z "$CC"; then
1727  # Extract the first word of "cc", so it can be a program name with args.
1728set dummy cc; ac_word=$2
1729echo "$as_me:$LINENO: checking for $ac_word" >&5
1730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731if test "${ac_cv_prog_CC+set}" = set; then
1732  echo $ECHO_N "(cached) $ECHO_C" >&6
1733else
1734  if test -n "$CC"; then
1735  ac_cv_prog_CC="$CC" # Let the user override the test.
1736else
1737  ac_prog_rejected=no
1738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739for as_dir in $PATH
1740do
1741  IFS=$as_save_IFS
1742  test -z "$as_dir" && as_dir=.
1743  for ac_exec_ext in '' $ac_executable_extensions; do
1744  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1746       ac_prog_rejected=yes
1747       continue
1748     fi
1749    ac_cv_prog_CC="cc"
1750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751    break 2
1752  fi
1753done
1754done
1755
1756if test $ac_prog_rejected = yes; then
1757  # We found a bogon in the path, so make sure we never use it.
1758  set dummy $ac_cv_prog_CC
1759  shift
1760  if test $# != 0; then
1761    # We chose a different compiler from the bogus one.
1762    # However, it has the same basename, so the bogon will be chosen
1763    # first if we set CC to just the basename; use the full file name.
1764    shift
1765    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1766  fi
1767fi
1768fi
1769fi
1770CC=$ac_cv_prog_CC
1771if test -n "$CC"; then
1772  echo "$as_me:$LINENO: result: $CC" >&5
1773echo "${ECHO_T}$CC" >&6
1774else
1775  echo "$as_me:$LINENO: result: no" >&5
1776echo "${ECHO_T}no" >&6
1777fi
1778
1779fi
1780if test -z "$CC"; then
1781  if test -n "$ac_tool_prefix"; then
1782  for ac_prog in cl
1783  do
1784    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1785set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1786echo "$as_me:$LINENO: checking for $ac_word" >&5
1787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788if test "${ac_cv_prog_CC+set}" = set; then
1789  echo $ECHO_N "(cached) $ECHO_C" >&6
1790else
1791  if test -n "$CC"; then
1792  ac_cv_prog_CC="$CC" # Let the user override the test.
1793else
1794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795for as_dir in $PATH
1796do
1797  IFS=$as_save_IFS
1798  test -z "$as_dir" && as_dir=.
1799  for ac_exec_ext in '' $ac_executable_extensions; do
1800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803    break 2
1804  fi
1805done
1806done
1807
1808fi
1809fi
1810CC=$ac_cv_prog_CC
1811if test -n "$CC"; then
1812  echo "$as_me:$LINENO: result: $CC" >&5
1813echo "${ECHO_T}$CC" >&6
1814else
1815  echo "$as_me:$LINENO: result: no" >&5
1816echo "${ECHO_T}no" >&6
1817fi
1818
1819    test -n "$CC" && break
1820  done
1821fi
1822if test -z "$CC"; then
1823  ac_ct_CC=$CC
1824  for ac_prog in cl
1825do
1826  # Extract the first word of "$ac_prog", so it can be a program name with args.
1827set dummy $ac_prog; ac_word=$2
1828echo "$as_me:$LINENO: checking for $ac_word" >&5
1829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831  echo $ECHO_N "(cached) $ECHO_C" >&6
1832else
1833  if test -n "$ac_ct_CC"; then
1834  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1835else
1836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837for as_dir in $PATH
1838do
1839  IFS=$as_save_IFS
1840  test -z "$as_dir" && as_dir=.
1841  for ac_exec_ext in '' $ac_executable_extensions; do
1842  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843    ac_cv_prog_ac_ct_CC="$ac_prog"
1844    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845    break 2
1846  fi
1847done
1848done
1849
1850fi
1851fi
1852ac_ct_CC=$ac_cv_prog_ac_ct_CC
1853if test -n "$ac_ct_CC"; then
1854  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855echo "${ECHO_T}$ac_ct_CC" >&6
1856else
1857  echo "$as_me:$LINENO: result: no" >&5
1858echo "${ECHO_T}no" >&6
1859fi
1860
1861  test -n "$ac_ct_CC" && break
1862done
1863
1864  CC=$ac_ct_CC
1865fi
1866
1867fi
1868
1869
1870test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1871See \`config.log' for more details." >&5
1872echo "$as_me: error: no acceptable C compiler found in \$PATH
1873See \`config.log' for more details." >&2;}
1874   { (exit 1); exit 1; }; }
1875
1876# Provide some information about the compiler.
1877echo "$as_me:$LINENO:" \
1878     "checking for C compiler version" >&5
1879ac_compiler=`set X $ac_compile; echo $2`
1880{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1881  (eval $ac_compiler --version </dev/null >&5) 2>&5
1882  ac_status=$?
1883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884  (exit $ac_status); }
1885{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1886  (eval $ac_compiler -v </dev/null >&5) 2>&5
1887  ac_status=$?
1888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889  (exit $ac_status); }
1890{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1891  (eval $ac_compiler -V </dev/null >&5) 2>&5
1892  ac_status=$?
1893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894  (exit $ac_status); }
1895
1896cat >conftest.$ac_ext <<_ACEOF
1897/* confdefs.h.  */
1898_ACEOF
1899cat confdefs.h >>conftest.$ac_ext
1900cat >>conftest.$ac_ext <<_ACEOF
1901/* end confdefs.h.  */
1902
1903int
1904main ()
1905{
1906
1907  ;
1908  return 0;
1909}
1910_ACEOF
1911ac_clean_files_save=$ac_clean_files
1912ac_clean_files="$ac_clean_files a.out a.exe b.out"
1913# Try to create an executable without -o first, disregard a.out.
1914# It will help us diagnose broken compilers, and finding out an intuition
1915# of exeext.
1916echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1917echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1918ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1919if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1920  (eval $ac_link_default) 2>&5
1921  ac_status=$?
1922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923  (exit $ac_status); }; then
1924  # Find the output, starting from the most likely.  This scheme is
1925# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1926# resort.
1927
1928# Be careful to initialize this variable, since it used to be cached.
1929# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1930ac_cv_exeext=
1931# b.out is created by i960 compilers.
1932for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1933do
1934  test -f "$ac_file" || continue
1935  case $ac_file in
1936    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1937	;;
1938    conftest.$ac_ext )
1939	# This is the source file.
1940	;;
1941    [ab].out )
1942	# We found the default executable, but exeext='' is most
1943	# certainly right.
1944	break;;
1945    *.* )
1946	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1947	# FIXME: I believe we export ac_cv_exeext for Libtool,
1948	# but it would be cool to find out if it's true.  Does anybody
1949	# maintain Libtool? --akim.
1950	export ac_cv_exeext
1951	break;;
1952    * )
1953	break;;
1954  esac
1955done
1956else
1957  echo "$as_me: failed program was:" >&5
1958sed 's/^/| /' conftest.$ac_ext >&5
1959
1960{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1961See \`config.log' for more details." >&5
1962echo "$as_me: error: C compiler cannot create executables
1963See \`config.log' for more details." >&2;}
1964   { (exit 77); exit 77; }; }
1965fi
1966
1967ac_exeext=$ac_cv_exeext
1968echo "$as_me:$LINENO: result: $ac_file" >&5
1969echo "${ECHO_T}$ac_file" >&6
1970
1971# Check the compiler produces executables we can run.  If not, either
1972# the compiler is broken, or we cross compile.
1973echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1974echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1975# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1976# If not cross compiling, check that we can run a simple program.
1977if test "$cross_compiling" != yes; then
1978  if { ac_try='./$ac_file'
1979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1980  (eval $ac_try) 2>&5
1981  ac_status=$?
1982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983  (exit $ac_status); }; }; then
1984    cross_compiling=no
1985  else
1986    if test "$cross_compiling" = maybe; then
1987	cross_compiling=yes
1988    else
1989	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1990If you meant to cross compile, use \`--host'.
1991See \`config.log' for more details." >&5
1992echo "$as_me: error: cannot run C compiled programs.
1993If you meant to cross compile, use \`--host'.
1994See \`config.log' for more details." >&2;}
1995   { (exit 1); exit 1; }; }
1996    fi
1997  fi
1998fi
1999echo "$as_me:$LINENO: result: yes" >&5
2000echo "${ECHO_T}yes" >&6
2001
2002rm -f a.out a.exe conftest$ac_cv_exeext b.out
2003ac_clean_files=$ac_clean_files_save
2004# Check the compiler produces executables we can run.  If not, either
2005# the compiler is broken, or we cross compile.
2006echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2007echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2008echo "$as_me:$LINENO: result: $cross_compiling" >&5
2009echo "${ECHO_T}$cross_compiling" >&6
2010
2011echo "$as_me:$LINENO: checking for suffix of executables" >&5
2012echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2014  (eval $ac_link) 2>&5
2015  ac_status=$?
2016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017  (exit $ac_status); }; then
2018  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2019# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2020# work properly (i.e., refer to `conftest.exe'), while it won't with
2021# `rm'.
2022for ac_file in conftest.exe conftest conftest.*; do
2023  test -f "$ac_file" || continue
2024  case $ac_file in
2025    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2026    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027	  export ac_cv_exeext
2028	  break;;
2029    * ) break;;
2030  esac
2031done
2032else
2033  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2034See \`config.log' for more details." >&5
2035echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2036See \`config.log' for more details." >&2;}
2037   { (exit 1); exit 1; }; }
2038fi
2039
2040rm -f conftest$ac_cv_exeext
2041echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2042echo "${ECHO_T}$ac_cv_exeext" >&6
2043
2044rm -f conftest.$ac_ext
2045EXEEXT=$ac_cv_exeext
2046ac_exeext=$EXEEXT
2047echo "$as_me:$LINENO: checking for suffix of object files" >&5
2048echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2049if test "${ac_cv_objext+set}" = set; then
2050  echo $ECHO_N "(cached) $ECHO_C" >&6
2051else
2052  cat >conftest.$ac_ext <<_ACEOF
2053/* confdefs.h.  */
2054_ACEOF
2055cat confdefs.h >>conftest.$ac_ext
2056cat >>conftest.$ac_ext <<_ACEOF
2057/* end confdefs.h.  */
2058
2059int
2060main ()
2061{
2062
2063  ;
2064  return 0;
2065}
2066_ACEOF
2067rm -f conftest.o conftest.obj
2068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2069  (eval $ac_compile) 2>&5
2070  ac_status=$?
2071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072  (exit $ac_status); }; then
2073  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2074  case $ac_file in
2075    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2076    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2077       break;;
2078  esac
2079done
2080else
2081  echo "$as_me: failed program was:" >&5
2082sed 's/^/| /' conftest.$ac_ext >&5
2083
2084{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2085See \`config.log' for more details." >&5
2086echo "$as_me: error: cannot compute suffix of object files: cannot compile
2087See \`config.log' for more details." >&2;}
2088   { (exit 1); exit 1; }; }
2089fi
2090
2091rm -f conftest.$ac_cv_objext conftest.$ac_ext
2092fi
2093echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2094echo "${ECHO_T}$ac_cv_objext" >&6
2095OBJEXT=$ac_cv_objext
2096ac_objext=$OBJEXT
2097echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2098echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2099if test "${ac_cv_c_compiler_gnu+set}" = set; then
2100  echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102  cat >conftest.$ac_ext <<_ACEOF
2103/* confdefs.h.  */
2104_ACEOF
2105cat confdefs.h >>conftest.$ac_ext
2106cat >>conftest.$ac_ext <<_ACEOF
2107/* end confdefs.h.  */
2108
2109int
2110main ()
2111{
2112#ifndef __GNUC__
2113       choke me
2114#endif
2115
2116  ;
2117  return 0;
2118}
2119_ACEOF
2120rm -f conftest.$ac_objext
2121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122  (eval $ac_compile) 2>conftest.er1
2123  ac_status=$?
2124  grep -v '^ *+' conftest.er1 >conftest.err
2125  rm -f conftest.er1
2126  cat conftest.err >&5
2127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128  (exit $ac_status); } &&
2129	 { ac_try='test -z "$ac_c_werror_flag"
2130			 || test ! -s conftest.err'
2131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2132  (eval $ac_try) 2>&5
2133  ac_status=$?
2134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135  (exit $ac_status); }; } &&
2136	 { ac_try='test -s conftest.$ac_objext'
2137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138  (eval $ac_try) 2>&5
2139  ac_status=$?
2140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141  (exit $ac_status); }; }; then
2142  ac_compiler_gnu=yes
2143else
2144  echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147ac_compiler_gnu=no
2148fi
2149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2150ac_cv_c_compiler_gnu=$ac_compiler_gnu
2151
2152fi
2153echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2154echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2155GCC=`test $ac_compiler_gnu = yes && echo yes`
2156ac_test_CFLAGS=${CFLAGS+set}
2157ac_save_CFLAGS=$CFLAGS
2158CFLAGS="-g"
2159echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2160echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2161if test "${ac_cv_prog_cc_g+set}" = set; then
2162  echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164  cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h.  */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h.  */
2170
2171int
2172main ()
2173{
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179rm -f conftest.$ac_objext
2180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181  (eval $ac_compile) 2>conftest.er1
2182  ac_status=$?
2183  grep -v '^ *+' conftest.er1 >conftest.err
2184  rm -f conftest.er1
2185  cat conftest.err >&5
2186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187  (exit $ac_status); } &&
2188	 { ac_try='test -z "$ac_c_werror_flag"
2189			 || test ! -s conftest.err'
2190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191  (eval $ac_try) 2>&5
2192  ac_status=$?
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); }; } &&
2195	 { ac_try='test -s conftest.$ac_objext'
2196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197  (eval $ac_try) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }; }; then
2201  ac_cv_prog_cc_g=yes
2202else
2203  echo "$as_me: failed program was:" >&5
2204sed 's/^/| /' conftest.$ac_ext >&5
2205
2206ac_cv_prog_cc_g=no
2207fi
2208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2209fi
2210echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2211echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2212if test "$ac_test_CFLAGS" = set; then
2213  CFLAGS=$ac_save_CFLAGS
2214elif test $ac_cv_prog_cc_g = yes; then
2215  if test "$GCC" = yes; then
2216    CFLAGS="-g -O2"
2217  else
2218    CFLAGS="-g"
2219  fi
2220else
2221  if test "$GCC" = yes; then
2222    CFLAGS="-O2"
2223  else
2224    CFLAGS=
2225  fi
2226fi
2227echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2228echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2229if test "${ac_cv_prog_cc_stdc+set}" = set; then
2230  echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232  ac_cv_prog_cc_stdc=no
2233ac_save_CC=$CC
2234cat >conftest.$ac_ext <<_ACEOF
2235/* confdefs.h.  */
2236_ACEOF
2237cat confdefs.h >>conftest.$ac_ext
2238cat >>conftest.$ac_ext <<_ACEOF
2239/* end confdefs.h.  */
2240#include <stdarg.h>
2241#include <stdio.h>
2242#include <sys/types.h>
2243#include <sys/stat.h>
2244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2245struct buf { int x; };
2246FILE * (*rcsopen) (struct buf *, struct stat *, int);
2247static char *e (p, i)
2248     char **p;
2249     int i;
2250{
2251  return p[i];
2252}
2253static char *f (char * (*g) (char **, int), char **p, ...)
2254{
2255  char *s;
2256  va_list v;
2257  va_start (v,p);
2258  s = g (p, va_arg (v,int));
2259  va_end (v);
2260  return s;
2261}
2262
2263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2264   function prototypes and stuff, but not '\xHH' hex character constants.
2265   These don't provoke an error unfortunately, instead are silently treated
2266   as 'x'.  The following induces an error, until -std1 is added to get
2267   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2268   array size at least.  It's necessary to write '\x00'==0 to get something
2269   that's true only with -std1.  */
2270int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2271
2272int test (int i, double x);
2273struct s1 {int (*f) (int a);};
2274struct s2 {int (*f) (double a);};
2275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2276int argc;
2277char **argv;
2278int
2279main ()
2280{
2281return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2282  ;
2283  return 0;
2284}
2285_ACEOF
2286# Don't try gcc -ansi; that turns off useful extensions and
2287# breaks some systems' header files.
2288# AIX			-qlanglvl=ansi
2289# Ultrix and OSF/1	-std1
2290# HP-UX 10.20 and later	-Ae
2291# HP-UX older versions	-Aa -D_HPUX_SOURCE
2292# SVR4			-Xc -D__EXTENSIONS__
2293for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2294do
2295  CC="$ac_save_CC $ac_arg"
2296  rm -f conftest.$ac_objext
2297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298  (eval $ac_compile) 2>conftest.er1
2299  ac_status=$?
2300  grep -v '^ *+' conftest.er1 >conftest.err
2301  rm -f conftest.er1
2302  cat conftest.err >&5
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); } &&
2305	 { ac_try='test -z "$ac_c_werror_flag"
2306			 || test ! -s conftest.err'
2307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308  (eval $ac_try) 2>&5
2309  ac_status=$?
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); }; } &&
2312	 { ac_try='test -s conftest.$ac_objext'
2313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314  (eval $ac_try) 2>&5
2315  ac_status=$?
2316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317  (exit $ac_status); }; }; then
2318  ac_cv_prog_cc_stdc=$ac_arg
2319break
2320else
2321  echo "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324fi
2325rm -f conftest.err conftest.$ac_objext
2326done
2327rm -f conftest.$ac_ext conftest.$ac_objext
2328CC=$ac_save_CC
2329
2330fi
2331
2332case "x$ac_cv_prog_cc_stdc" in
2333  x|xno)
2334    echo "$as_me:$LINENO: result: none needed" >&5
2335echo "${ECHO_T}none needed" >&6 ;;
2336  *)
2337    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2338echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2339    CC="$CC $ac_cv_prog_cc_stdc" ;;
2340esac
2341
2342# Some people use a C++ compiler to compile C.  Since we use `exit',
2343# in C++ we need to declare it.  In case someone uses the same compiler
2344# for both compiling C and C++ we need to have the C++ compiler decide
2345# the declaration of exit, since it's the most demanding environment.
2346cat >conftest.$ac_ext <<_ACEOF
2347#ifndef __cplusplus
2348  choke me
2349#endif
2350_ACEOF
2351rm -f conftest.$ac_objext
2352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353  (eval $ac_compile) 2>conftest.er1
2354  ac_status=$?
2355  grep -v '^ *+' conftest.er1 >conftest.err
2356  rm -f conftest.er1
2357  cat conftest.err >&5
2358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359  (exit $ac_status); } &&
2360	 { ac_try='test -z "$ac_c_werror_flag"
2361			 || test ! -s conftest.err'
2362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363  (eval $ac_try) 2>&5
2364  ac_status=$?
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); }; } &&
2367	 { ac_try='test -s conftest.$ac_objext'
2368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369  (eval $ac_try) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }; }; then
2373  for ac_declaration in \
2374   '' \
2375   'extern "C" void std::exit (int) throw (); using std::exit;' \
2376   'extern "C" void std::exit (int); using std::exit;' \
2377   'extern "C" void exit (int) throw ();' \
2378   'extern "C" void exit (int);' \
2379   'void exit (int);'
2380do
2381  cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387$ac_declaration
2388#include <stdlib.h>
2389int
2390main ()
2391{
2392exit (42);
2393  ;
2394  return 0;
2395}
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399  (eval $ac_compile) 2>conftest.er1
2400  ac_status=$?
2401  grep -v '^ *+' conftest.er1 >conftest.err
2402  rm -f conftest.er1
2403  cat conftest.err >&5
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); } &&
2406	 { ac_try='test -z "$ac_c_werror_flag"
2407			 || test ! -s conftest.err'
2408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409  (eval $ac_try) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; } &&
2413	 { ac_try='test -s conftest.$ac_objext'
2414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415  (eval $ac_try) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }; }; then
2419  :
2420else
2421  echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424continue
2425fi
2426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427  cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h.  */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h.  */
2433$ac_declaration
2434int
2435main ()
2436{
2437exit (42);
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444  (eval $ac_compile) 2>conftest.er1
2445  ac_status=$?
2446  grep -v '^ *+' conftest.er1 >conftest.err
2447  rm -f conftest.er1
2448  cat conftest.err >&5
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); } &&
2451	 { ac_try='test -z "$ac_c_werror_flag"
2452			 || test ! -s conftest.err'
2453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454  (eval $ac_try) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; } &&
2458	 { ac_try='test -s conftest.$ac_objext'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; }; then
2464  break
2465else
2466  echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
2469fi
2470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471done
2472rm -f conftest*
2473if test -n "$ac_declaration"; then
2474  echo '#ifdef __cplusplus' >>confdefs.h
2475  echo $ac_declaration      >>confdefs.h
2476  echo '#endif'             >>confdefs.h
2477fi
2478
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483fi
2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485ac_ext=c
2486ac_cpp='$CPP $CPPFLAGS'
2487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490
2491ac_ext=c
2492ac_cpp='$CPP $CPPFLAGS'
2493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2497echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2498# On Suns, sometimes $CPP names a directory.
2499if test -n "$CPP" && test -d "$CPP"; then
2500  CPP=
2501fi
2502if test -z "$CPP"; then
2503  if test "${ac_cv_prog_CPP+set}" = set; then
2504  echo $ECHO_N "(cached) $ECHO_C" >&6
2505else
2506      # Double quotes because CPP needs to be expanded
2507    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2508    do
2509      ac_preproc_ok=false
2510for ac_c_preproc_warn_flag in '' yes
2511do
2512  # Use a header file that comes with gcc, so configuring glibc
2513  # with a fresh cross-compiler works.
2514  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2515  # <limits.h> exists even on freestanding compilers.
2516  # On the NeXT, cc -E runs the code through the compiler's parser,
2517  # not just through cpp. "Syntax error" is here to catch this case.
2518  cat >conftest.$ac_ext <<_ACEOF
2519/* confdefs.h.  */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h.  */
2524#ifdef __STDC__
2525# include <limits.h>
2526#else
2527# include <assert.h>
2528#endif
2529		     Syntax error
2530_ACEOF
2531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2532  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2533  ac_status=$?
2534  grep -v '^ *+' conftest.er1 >conftest.err
2535  rm -f conftest.er1
2536  cat conftest.err >&5
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); } >/dev/null; then
2539  if test -s conftest.err; then
2540    ac_cpp_err=$ac_c_preproc_warn_flag
2541    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2542  else
2543    ac_cpp_err=
2544  fi
2545else
2546  ac_cpp_err=yes
2547fi
2548if test -z "$ac_cpp_err"; then
2549  :
2550else
2551  echo "$as_me: failed program was:" >&5
2552sed 's/^/| /' conftest.$ac_ext >&5
2553
2554  # Broken: fails on valid input.
2555continue
2556fi
2557rm -f conftest.err conftest.$ac_ext
2558
2559  # OK, works on sane cases.  Now check whether non-existent headers
2560  # can be detected and how.
2561  cat >conftest.$ac_ext <<_ACEOF
2562/* confdefs.h.  */
2563_ACEOF
2564cat confdefs.h >>conftest.$ac_ext
2565cat >>conftest.$ac_ext <<_ACEOF
2566/* end confdefs.h.  */
2567#include <ac_nonexistent.h>
2568_ACEOF
2569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2570  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2571  ac_status=$?
2572  grep -v '^ *+' conftest.er1 >conftest.err
2573  rm -f conftest.er1
2574  cat conftest.err >&5
2575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576  (exit $ac_status); } >/dev/null; then
2577  if test -s conftest.err; then
2578    ac_cpp_err=$ac_c_preproc_warn_flag
2579    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2580  else
2581    ac_cpp_err=
2582  fi
2583else
2584  ac_cpp_err=yes
2585fi
2586if test -z "$ac_cpp_err"; then
2587  # Broken: success on invalid input.
2588continue
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593  # Passes both tests.
2594ac_preproc_ok=:
2595break
2596fi
2597rm -f conftest.err conftest.$ac_ext
2598
2599done
2600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2601rm -f conftest.err conftest.$ac_ext
2602if $ac_preproc_ok; then
2603  break
2604fi
2605
2606    done
2607    ac_cv_prog_CPP=$CPP
2608
2609fi
2610  CPP=$ac_cv_prog_CPP
2611else
2612  ac_cv_prog_CPP=$CPP
2613fi
2614echo "$as_me:$LINENO: result: $CPP" >&5
2615echo "${ECHO_T}$CPP" >&6
2616ac_preproc_ok=false
2617for ac_c_preproc_warn_flag in '' yes
2618do
2619  # Use a header file that comes with gcc, so configuring glibc
2620  # with a fresh cross-compiler works.
2621  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2622  # <limits.h> exists even on freestanding compilers.
2623  # On the NeXT, cc -E runs the code through the compiler's parser,
2624  # not just through cpp. "Syntax error" is here to catch this case.
2625  cat >conftest.$ac_ext <<_ACEOF
2626/* confdefs.h.  */
2627_ACEOF
2628cat confdefs.h >>conftest.$ac_ext
2629cat >>conftest.$ac_ext <<_ACEOF
2630/* end confdefs.h.  */
2631#ifdef __STDC__
2632# include <limits.h>
2633#else
2634# include <assert.h>
2635#endif
2636		     Syntax error
2637_ACEOF
2638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2639  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2640  ac_status=$?
2641  grep -v '^ *+' conftest.er1 >conftest.err
2642  rm -f conftest.er1
2643  cat conftest.err >&5
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); } >/dev/null; then
2646  if test -s conftest.err; then
2647    ac_cpp_err=$ac_c_preproc_warn_flag
2648    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2649  else
2650    ac_cpp_err=
2651  fi
2652else
2653  ac_cpp_err=yes
2654fi
2655if test -z "$ac_cpp_err"; then
2656  :
2657else
2658  echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661  # Broken: fails on valid input.
2662continue
2663fi
2664rm -f conftest.err conftest.$ac_ext
2665
2666  # OK, works on sane cases.  Now check whether non-existent headers
2667  # can be detected and how.
2668  cat >conftest.$ac_ext <<_ACEOF
2669/* confdefs.h.  */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h.  */
2674#include <ac_nonexistent.h>
2675_ACEOF
2676if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2677  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2678  ac_status=$?
2679  grep -v '^ *+' conftest.er1 >conftest.err
2680  rm -f conftest.er1
2681  cat conftest.err >&5
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); } >/dev/null; then
2684  if test -s conftest.err; then
2685    ac_cpp_err=$ac_c_preproc_warn_flag
2686    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2687  else
2688    ac_cpp_err=
2689  fi
2690else
2691  ac_cpp_err=yes
2692fi
2693if test -z "$ac_cpp_err"; then
2694  # Broken: success on invalid input.
2695continue
2696else
2697  echo "$as_me: failed program was:" >&5
2698sed 's/^/| /' conftest.$ac_ext >&5
2699
2700  # Passes both tests.
2701ac_preproc_ok=:
2702break
2703fi
2704rm -f conftest.err conftest.$ac_ext
2705
2706done
2707# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2708rm -f conftest.err conftest.$ac_ext
2709if $ac_preproc_ok; then
2710  :
2711else
2712  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2713See \`config.log' for more details." >&5
2714echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2715See \`config.log' for more details." >&2;}
2716   { (exit 1); exit 1; }; }
2717fi
2718
2719ac_ext=c
2720ac_cpp='$CPP $CPPFLAGS'
2721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724
2725
2726
2727am__api_version="1.8"
2728ac_aux_dir=
2729for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2730  if test -f $ac_dir/install-sh; then
2731    ac_aux_dir=$ac_dir
2732    ac_install_sh="$ac_aux_dir/install-sh -c"
2733    break
2734  elif test -f $ac_dir/install.sh; then
2735    ac_aux_dir=$ac_dir
2736    ac_install_sh="$ac_aux_dir/install.sh -c"
2737    break
2738  elif test -f $ac_dir/shtool; then
2739    ac_aux_dir=$ac_dir
2740    ac_install_sh="$ac_aux_dir/shtool install -c"
2741    break
2742  fi
2743done
2744if test -z "$ac_aux_dir"; then
2745  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2746echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2747   { (exit 1); exit 1; }; }
2748fi
2749ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2750ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2751ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2752
2753# Find a good install program.  We prefer a C program (faster),
2754# so one script is as good as another.  But avoid the broken or
2755# incompatible versions:
2756# SysV /etc/install, /usr/sbin/install
2757# SunOS /usr/etc/install
2758# IRIX /sbin/install
2759# AIX /bin/install
2760# AmigaOS /C/install, which installs bootblocks on floppy discs
2761# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2762# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2763# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2764# OS/2's system install, which has a completely different semantic
2765# ./install, which can be erroneously created by make from ./install.sh.
2766echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2767echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2768if test -z "$INSTALL"; then
2769if test "${ac_cv_path_install+set}" = set; then
2770  echo $ECHO_N "(cached) $ECHO_C" >&6
2771else
2772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775  IFS=$as_save_IFS
2776  test -z "$as_dir" && as_dir=.
2777  # Account for people who put trailing slashes in PATH elements.
2778case $as_dir/ in
2779  ./ | .// | /cC/* | \
2780  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2781  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2782  /usr/ucb/* ) ;;
2783  *)
2784    # OSF1 and SCO ODT 3.0 have their own names for install.
2785    # Don't use installbsd from OSF since it installs stuff as root
2786    # by default.
2787    for ac_prog in ginstall scoinst install; do
2788      for ac_exec_ext in '' $ac_executable_extensions; do
2789	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2790	  if test $ac_prog = install &&
2791	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2792	    # AIX install.  It has an incompatible calling convention.
2793	    :
2794	  elif test $ac_prog = install &&
2795	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2796	    # program-specific install script used by HP pwplus--don't use.
2797	    :
2798	  else
2799	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2800	    break 3
2801	  fi
2802	fi
2803      done
2804    done
2805    ;;
2806esac
2807done
2808
2809
2810fi
2811  if test "${ac_cv_path_install+set}" = set; then
2812    INSTALL=$ac_cv_path_install
2813  else
2814    # As a last resort, use the slow shell script.  We don't cache a
2815    # path for INSTALL within a source directory, because that will
2816    # break other packages using the cache if that directory is
2817    # removed, or if the path is relative.
2818    INSTALL=$ac_install_sh
2819  fi
2820fi
2821echo "$as_me:$LINENO: result: $INSTALL" >&5
2822echo "${ECHO_T}$INSTALL" >&6
2823
2824# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2825# It thinks the first close brace ends the variable substitution.
2826test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2827
2828test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2829
2830test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2831
2832echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2833echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2834# Just in case
2835sleep 1
2836echo timestamp > conftest.file
2837# Do `set' in a subshell so we don't clobber the current shell's
2838# arguments.  Must try -L first in case configure is actually a
2839# symlink; some systems play weird games with the mod time of symlinks
2840# (eg FreeBSD returns the mod time of the symlink's containing
2841# directory).
2842if (
2843   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2844   if test "$*" = "X"; then
2845      # -L didn't work.
2846      set X `ls -t $srcdir/configure conftest.file`
2847   fi
2848   rm -f conftest.file
2849   if test "$*" != "X $srcdir/configure conftest.file" \
2850      && test "$*" != "X conftest.file $srcdir/configure"; then
2851
2852      # If neither matched, then we have a broken ls.  This can happen
2853      # if, for instance, CONFIG_SHELL is bash and it inherits a
2854      # broken ls alias from the environment.  This has actually
2855      # happened.  Such a system could not be considered "sane".
2856      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2857alias in your environment" >&5
2858echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2859alias in your environment" >&2;}
2860   { (exit 1); exit 1; }; }
2861   fi
2862
2863   test "$2" = conftest.file
2864   )
2865then
2866   # Ok.
2867   :
2868else
2869   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2870Check your system clock" >&5
2871echo "$as_me: error: newly created file is older than distributed files!
2872Check your system clock" >&2;}
2873   { (exit 1); exit 1; }; }
2874fi
2875echo "$as_me:$LINENO: result: yes" >&5
2876echo "${ECHO_T}yes" >&6
2877test "$program_prefix" != NONE &&
2878  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2879# Use a double $ so make ignores it.
2880test "$program_suffix" != NONE &&
2881  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2882# Double any \ or $.  echo might interpret backslashes.
2883# By default was `s,x,x', remove it if useless.
2884cat <<\_ACEOF >conftest.sed
2885s/[\\$]/&&/g;s/;s,x,x,$//
2886_ACEOF
2887program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2888rm conftest.sed
2889
2890# expand $ac_aux_dir to an absolute path
2891am_aux_dir=`cd $ac_aux_dir && pwd`
2892
2893test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2894# Use eval to expand $SHELL
2895if eval "$MISSING --run true"; then
2896  am_missing_run="$MISSING --run "
2897else
2898  am_missing_run=
2899  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2900echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2901fi
2902
2903if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2904  # Keeping the `.' argument allows $(mkdir_p) to be used without
2905  # argument.  Indeed, we sometimes output rules like
2906  #   $(mkdir_p) $(somedir)
2907  # where $(somedir) is conditionally defined.
2908  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2909  # expensive solution, as it forces Make to start a sub-shell.)
2910  mkdir_p='mkdir -p -- .'
2911else
2912  # On NextStep and OpenStep, the `mkdir' command does not
2913  # recognize any option.  It will interpret all options as
2914  # directories to create, and then abort because `.' already
2915  # exists.
2916  for d in ./-p ./--version;
2917  do
2918    test -d $d && rmdir $d
2919  done
2920  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2921  if test -f "$ac_aux_dir/mkinstalldirs"; then
2922    mkdir_p='$(mkinstalldirs)'
2923  else
2924    mkdir_p='$(install_sh) -d'
2925  fi
2926fi
2927
2928for ac_prog in gawk mawk nawk awk
2929do
2930  # Extract the first word of "$ac_prog", so it can be a program name with args.
2931set dummy $ac_prog; ac_word=$2
2932echo "$as_me:$LINENO: checking for $ac_word" >&5
2933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934if test "${ac_cv_prog_AWK+set}" = set; then
2935  echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937  if test -n "$AWK"; then
2938  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943  IFS=$as_save_IFS
2944  test -z "$as_dir" && as_dir=.
2945  for ac_exec_ext in '' $ac_executable_extensions; do
2946  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947    ac_cv_prog_AWK="$ac_prog"
2948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949    break 2
2950  fi
2951done
2952done
2953
2954fi
2955fi
2956AWK=$ac_cv_prog_AWK
2957if test -n "$AWK"; then
2958  echo "$as_me:$LINENO: result: $AWK" >&5
2959echo "${ECHO_T}$AWK" >&6
2960else
2961  echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6
2963fi
2964
2965  test -n "$AWK" && break
2966done
2967
2968echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2969echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2970set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2971if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2972  echo $ECHO_N "(cached) $ECHO_C" >&6
2973else
2974  cat >conftest.make <<\_ACEOF
2975all:
2976	@echo 'ac_maketemp="$(MAKE)"'
2977_ACEOF
2978# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2979eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2980if test -n "$ac_maketemp"; then
2981  eval ac_cv_prog_make_${ac_make}_set=yes
2982else
2983  eval ac_cv_prog_make_${ac_make}_set=no
2984fi
2985rm -f conftest.make
2986fi
2987if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2988  echo "$as_me:$LINENO: result: yes" >&5
2989echo "${ECHO_T}yes" >&6
2990  SET_MAKE=
2991else
2992  echo "$as_me:$LINENO: result: no" >&5
2993echo "${ECHO_T}no" >&6
2994  SET_MAKE="MAKE=${MAKE-make}"
2995fi
2996
2997rm -rf .tst 2>/dev/null
2998mkdir .tst 2>/dev/null
2999if test -d .tst; then
3000  am__leading_dot=.
3001else
3002  am__leading_dot=_
3003fi
3004rmdir .tst 2>/dev/null
3005
3006# test to see if srcdir already configured
3007if test "`cd $srcdir && pwd`" != "`pwd`" &&
3008   test -f $srcdir/config.status; then
3009  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3010echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3011   { (exit 1); exit 1; }; }
3012fi
3013
3014# test whether we have cygpath
3015if test -z "$CYGPATH_W"; then
3016  if (cygpath --version) >/dev/null 2>/dev/null; then
3017    CYGPATH_W='cygpath -w'
3018  else
3019    CYGPATH_W=echo
3020  fi
3021fi
3022
3023
3024# Define the identity of the package.
3025 PACKAGE='heimdal'
3026 VERSION='0.6.3'
3027
3028
3029cat >>confdefs.h <<_ACEOF
3030#define PACKAGE "$PACKAGE"
3031_ACEOF
3032
3033
3034cat >>confdefs.h <<_ACEOF
3035#define VERSION "$VERSION"
3036_ACEOF
3037
3038# Some tools Automake needs.
3039
3040ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3041
3042
3043AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3044
3045
3046AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3047
3048
3049AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3050
3051
3052MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3053
3054
3055AMTAR=${AMTAR-"${am_missing_run}tar"}
3056
3057install_sh=${install_sh-"$am_aux_dir/install-sh"}
3058
3059# Installed binaries are usually stripped using `strip' when the user
3060# run `make install-strip'.  However `strip' might not be the right
3061# tool to use in cross-compilation environments, therefore Automake
3062# will honor the `STRIP' environment variable to overrule this program.
3063if test "$cross_compiling" != no; then
3064  if test -n "$ac_tool_prefix"; then
3065  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3066set dummy ${ac_tool_prefix}strip; ac_word=$2
3067echo "$as_me:$LINENO: checking for $ac_word" >&5
3068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069if test "${ac_cv_prog_STRIP+set}" = set; then
3070  echo $ECHO_N "(cached) $ECHO_C" >&6
3071else
3072  if test -n "$STRIP"; then
3073  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078  IFS=$as_save_IFS
3079  test -z "$as_dir" && as_dir=.
3080  for ac_exec_ext in '' $ac_executable_extensions; do
3081  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3083    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084    break 2
3085  fi
3086done
3087done
3088
3089fi
3090fi
3091STRIP=$ac_cv_prog_STRIP
3092if test -n "$STRIP"; then
3093  echo "$as_me:$LINENO: result: $STRIP" >&5
3094echo "${ECHO_T}$STRIP" >&6
3095else
3096  echo "$as_me:$LINENO: result: no" >&5
3097echo "${ECHO_T}no" >&6
3098fi
3099
3100fi
3101if test -z "$ac_cv_prog_STRIP"; then
3102  ac_ct_STRIP=$STRIP
3103  # Extract the first word of "strip", so it can be a program name with args.
3104set dummy strip; ac_word=$2
3105echo "$as_me:$LINENO: checking for $ac_word" >&5
3106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3108  echo $ECHO_N "(cached) $ECHO_C" >&6
3109else
3110  if test -n "$ac_ct_STRIP"; then
3111  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116  IFS=$as_save_IFS
3117  test -z "$as_dir" && as_dir=.
3118  for ac_exec_ext in '' $ac_executable_extensions; do
3119  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120    ac_cv_prog_ac_ct_STRIP="strip"
3121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122    break 2
3123  fi
3124done
3125done
3126
3127  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3128fi
3129fi
3130ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3131if test -n "$ac_ct_STRIP"; then
3132  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3133echo "${ECHO_T}$ac_ct_STRIP" >&6
3134else
3135  echo "$as_me:$LINENO: result: no" >&5
3136echo "${ECHO_T}no" >&6
3137fi
3138
3139  STRIP=$ac_ct_STRIP
3140else
3141  STRIP="$ac_cv_prog_STRIP"
3142fi
3143
3144fi
3145INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3146
3147# We need awk for the "check" target.  The system "awk" is bad on
3148# some platforms.
3149
3150
3151
3152echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3153echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3154    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3155if test "${enable_maintainer_mode+set}" = set; then
3156  enableval="$enable_maintainer_mode"
3157  USE_MAINTAINER_MODE=$enableval
3158else
3159  USE_MAINTAINER_MODE=no
3160fi;
3161  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3162echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3163
3164
3165if test $USE_MAINTAINER_MODE = yes; then
3166  MAINTAINER_MODE_TRUE=
3167  MAINTAINER_MODE_FALSE='#'
3168else
3169  MAINTAINER_MODE_TRUE='#'
3170  MAINTAINER_MODE_FALSE=
3171fi
3172
3173  MAINT=$MAINTAINER_MODE_TRUE
3174
3175
3176
3177
3178
3179test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
3180test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
3181
3182# Make sure we can run config.sub.
3183$ac_config_sub sun4 >/dev/null 2>&1 ||
3184  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3185echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3186   { (exit 1); exit 1; }; }
3187
3188echo "$as_me:$LINENO: checking build system type" >&5
3189echo $ECHO_N "checking build system type... $ECHO_C" >&6
3190if test "${ac_cv_build+set}" = set; then
3191  echo $ECHO_N "(cached) $ECHO_C" >&6
3192else
3193  ac_cv_build_alias=$build_alias
3194test -z "$ac_cv_build_alias" &&
3195  ac_cv_build_alias=`$ac_config_guess`
3196test -z "$ac_cv_build_alias" &&
3197  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3198echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3199   { (exit 1); exit 1; }; }
3200ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3201  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3202echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3203   { (exit 1); exit 1; }; }
3204
3205fi
3206echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3207echo "${ECHO_T}$ac_cv_build" >&6
3208build=$ac_cv_build
3209build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3210build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3211build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3212
3213
3214echo "$as_me:$LINENO: checking host system type" >&5
3215echo $ECHO_N "checking host system type... $ECHO_C" >&6
3216if test "${ac_cv_host+set}" = set; then
3217  echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
3219  ac_cv_host_alias=$host_alias
3220test -z "$ac_cv_host_alias" &&
3221  ac_cv_host_alias=$ac_cv_build_alias
3222ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3223  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3224echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3225   { (exit 1); exit 1; }; }
3226
3227fi
3228echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3229echo "${ECHO_T}$ac_cv_host" >&6
3230host=$ac_cv_host
3231host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3232host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3233host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3234
3235
3236CANONICAL_HOST=$host
3237
3238
3239
3240# Check whether --enable-largefile or --disable-largefile was given.
3241if test "${enable_largefile+set}" = set; then
3242  enableval="$enable_largefile"
3243
3244fi;
3245if test "$enable_largefile" != no; then
3246
3247  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3248echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3249if test "${ac_cv_sys_largefile_CC+set}" = set; then
3250  echo $ECHO_N "(cached) $ECHO_C" >&6
3251else
3252  ac_cv_sys_largefile_CC=no
3253     if test "$GCC" != yes; then
3254       ac_save_CC=$CC
3255       while :; do
3256     	 # IRIX 6.2 and later do not support large files by default,
3257     	 # so use the C compiler's -n32 option if that helps.
3258	 cat >conftest.$ac_ext <<_ACEOF
3259/* confdefs.h.  */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
3263/* end confdefs.h.  */
3264#include <sys/types.h>
3265 /* Check that off_t can represent 2**63 - 1 correctly.
3266    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3267    since some C++ compilers masquerading as C compilers
3268    incorrectly reject 9223372036854775807.  */
3269#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3270  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3271		       && LARGE_OFF_T % 2147483647 == 1)
3272		      ? 1 : -1];
3273int
3274main ()
3275{
3276
3277  ;
3278  return 0;
3279}
3280_ACEOF
3281     	 rm -f conftest.$ac_objext
3282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283  (eval $ac_compile) 2>conftest.er1
3284  ac_status=$?
3285  grep -v '^ *+' conftest.er1 >conftest.err
3286  rm -f conftest.er1
3287  cat conftest.err >&5
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); } &&
3290	 { ac_try='test -z "$ac_c_werror_flag"
3291			 || test ! -s conftest.err'
3292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293  (eval $ac_try) 2>&5
3294  ac_status=$?
3295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); }; } &&
3297	 { ac_try='test -s conftest.$ac_objext'
3298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299  (eval $ac_try) 2>&5
3300  ac_status=$?
3301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302  (exit $ac_status); }; }; then
3303  break
3304else
3305  echo "$as_me: failed program was:" >&5
3306sed 's/^/| /' conftest.$ac_ext >&5
3307
3308fi
3309rm -f conftest.err conftest.$ac_objext
3310     	 CC="$CC -n32"
3311     	 rm -f conftest.$ac_objext
3312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313  (eval $ac_compile) 2>conftest.er1
3314  ac_status=$?
3315  grep -v '^ *+' conftest.er1 >conftest.err
3316  rm -f conftest.er1
3317  cat conftest.err >&5
3318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319  (exit $ac_status); } &&
3320	 { ac_try='test -z "$ac_c_werror_flag"
3321			 || test ! -s conftest.err'
3322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323  (eval $ac_try) 2>&5
3324  ac_status=$?
3325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326  (exit $ac_status); }; } &&
3327	 { ac_try='test -s conftest.$ac_objext'
3328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329  (eval $ac_try) 2>&5
3330  ac_status=$?
3331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332  (exit $ac_status); }; }; then
3333  ac_cv_sys_largefile_CC=' -n32'; break
3334else
3335  echo "$as_me: failed program was:" >&5
3336sed 's/^/| /' conftest.$ac_ext >&5
3337
3338fi
3339rm -f conftest.err conftest.$ac_objext
3340	 break
3341       done
3342       CC=$ac_save_CC
3343       rm -f conftest.$ac_ext
3344    fi
3345fi
3346echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3347echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3348  if test "$ac_cv_sys_largefile_CC" != no; then
3349    CC=$CC$ac_cv_sys_largefile_CC
3350  fi
3351
3352  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3353echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3354if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3355  echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357  while :; do
3358  ac_cv_sys_file_offset_bits=no
3359  cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h.  */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h.  */
3365#include <sys/types.h>
3366 /* Check that off_t can represent 2**63 - 1 correctly.
3367    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3368    since some C++ compilers masquerading as C compilers
3369    incorrectly reject 9223372036854775807.  */
3370#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3371  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3372		       && LARGE_OFF_T % 2147483647 == 1)
3373		      ? 1 : -1];
3374int
3375main ()
3376{
3377
3378  ;
3379  return 0;
3380}
3381_ACEOF
3382rm -f conftest.$ac_objext
3383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384  (eval $ac_compile) 2>conftest.er1
3385  ac_status=$?
3386  grep -v '^ *+' conftest.er1 >conftest.err
3387  rm -f conftest.er1
3388  cat conftest.err >&5
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); } &&
3391	 { ac_try='test -z "$ac_c_werror_flag"
3392			 || test ! -s conftest.err'
3393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394  (eval $ac_try) 2>&5
3395  ac_status=$?
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); }; } &&
3398	 { ac_try='test -s conftest.$ac_objext'
3399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400  (eval $ac_try) 2>&5
3401  ac_status=$?
3402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403  (exit $ac_status); }; }; then
3404  break
3405else
3406  echo "$as_me: failed program was:" >&5
3407sed 's/^/| /' conftest.$ac_ext >&5
3408
3409fi
3410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3411  cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h.  */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h.  */
3417#define _FILE_OFFSET_BITS 64
3418#include <sys/types.h>
3419 /* Check that off_t can represent 2**63 - 1 correctly.
3420    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3421    since some C++ compilers masquerading as C compilers
3422    incorrectly reject 9223372036854775807.  */
3423#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3424  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3425		       && LARGE_OFF_T % 2147483647 == 1)
3426		      ? 1 : -1];
3427int
3428main ()
3429{
3430
3431  ;
3432  return 0;
3433}
3434_ACEOF
3435rm -f conftest.$ac_objext
3436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437  (eval $ac_compile) 2>conftest.er1
3438  ac_status=$?
3439  grep -v '^ *+' conftest.er1 >conftest.err
3440  rm -f conftest.er1
3441  cat conftest.err >&5
3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); } &&
3444	 { ac_try='test -z "$ac_c_werror_flag"
3445			 || test ! -s conftest.err'
3446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447  (eval $ac_try) 2>&5
3448  ac_status=$?
3449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450  (exit $ac_status); }; } &&
3451	 { ac_try='test -s conftest.$ac_objext'
3452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453  (eval $ac_try) 2>&5
3454  ac_status=$?
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); }; }; then
3457  ac_cv_sys_file_offset_bits=64; break
3458else
3459  echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462fi
3463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3464  break
3465done
3466fi
3467echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3468echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3469if test "$ac_cv_sys_file_offset_bits" != no; then
3470
3471cat >>confdefs.h <<_ACEOF
3472#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3473_ACEOF
3474
3475fi
3476rm -f conftest*
3477  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3478echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3479if test "${ac_cv_sys_large_files+set}" = set; then
3480  echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482  while :; do
3483  ac_cv_sys_large_files=no
3484  cat >conftest.$ac_ext <<_ACEOF
3485/* confdefs.h.  */
3486_ACEOF
3487cat confdefs.h >>conftest.$ac_ext
3488cat >>conftest.$ac_ext <<_ACEOF
3489/* end confdefs.h.  */
3490#include <sys/types.h>
3491 /* Check that off_t can represent 2**63 - 1 correctly.
3492    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3493    since some C++ compilers masquerading as C compilers
3494    incorrectly reject 9223372036854775807.  */
3495#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3496  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3497		       && LARGE_OFF_T % 2147483647 == 1)
3498		      ? 1 : -1];
3499int
3500main ()
3501{
3502
3503  ;
3504  return 0;
3505}
3506_ACEOF
3507rm -f conftest.$ac_objext
3508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509  (eval $ac_compile) 2>conftest.er1
3510  ac_status=$?
3511  grep -v '^ *+' conftest.er1 >conftest.err
3512  rm -f conftest.er1
3513  cat conftest.err >&5
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); } &&
3516	 { ac_try='test -z "$ac_c_werror_flag"
3517			 || test ! -s conftest.err'
3518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519  (eval $ac_try) 2>&5
3520  ac_status=$?
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); }; } &&
3523	 { ac_try='test -s conftest.$ac_objext'
3524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525  (eval $ac_try) 2>&5
3526  ac_status=$?
3527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528  (exit $ac_status); }; }; then
3529  break
3530else
3531  echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534fi
3535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536  cat >conftest.$ac_ext <<_ACEOF
3537/* confdefs.h.  */
3538_ACEOF
3539cat confdefs.h >>conftest.$ac_ext
3540cat >>conftest.$ac_ext <<_ACEOF
3541/* end confdefs.h.  */
3542#define _LARGE_FILES 1
3543#include <sys/types.h>
3544 /* Check that off_t can represent 2**63 - 1 correctly.
3545    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3546    since some C++ compilers masquerading as C compilers
3547    incorrectly reject 9223372036854775807.  */
3548#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3549  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3550		       && LARGE_OFF_T % 2147483647 == 1)
3551		      ? 1 : -1];
3552int
3553main ()
3554{
3555
3556  ;
3557  return 0;
3558}
3559_ACEOF
3560rm -f conftest.$ac_objext
3561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562  (eval $ac_compile) 2>conftest.er1
3563  ac_status=$?
3564  grep -v '^ *+' conftest.er1 >conftest.err
3565  rm -f conftest.er1
3566  cat conftest.err >&5
3567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568  (exit $ac_status); } &&
3569	 { ac_try='test -z "$ac_c_werror_flag"
3570			 || test ! -s conftest.err'
3571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572  (eval $ac_try) 2>&5
3573  ac_status=$?
3574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575  (exit $ac_status); }; } &&
3576	 { ac_try='test -s conftest.$ac_objext'
3577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578  (eval $ac_try) 2>&5
3579  ac_status=$?
3580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581  (exit $ac_status); }; }; then
3582  ac_cv_sys_large_files=1; break
3583else
3584  echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587fi
3588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589  break
3590done
3591fi
3592echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3593echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3594if test "$ac_cv_sys_large_files" != no; then
3595
3596cat >>confdefs.h <<_ACEOF
3597#define _LARGE_FILES $ac_cv_sys_large_files
3598_ACEOF
3599
3600fi
3601rm -f conftest*
3602fi
3603
3604if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
3605	CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
3606fi
3607
3608
3609cat >>confdefs.h <<\_ACEOF
3610#define _GNU_SOURCE 1
3611_ACEOF
3612
3613
3614
3615
3616
3617for ac_prog in 'bison -y' byacc
3618do
3619  # Extract the first word of "$ac_prog", so it can be a program name with args.
3620set dummy $ac_prog; ac_word=$2
3621echo "$as_me:$LINENO: checking for $ac_word" >&5
3622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623if test "${ac_cv_prog_YACC+set}" = set; then
3624  echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626  if test -n "$YACC"; then
3627  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3628else
3629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630for as_dir in $PATH
3631do
3632  IFS=$as_save_IFS
3633  test -z "$as_dir" && as_dir=.
3634  for ac_exec_ext in '' $ac_executable_extensions; do
3635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636    ac_cv_prog_YACC="$ac_prog"
3637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3638    break 2
3639  fi
3640done
3641done
3642
3643fi
3644fi
3645YACC=$ac_cv_prog_YACC
3646if test -n "$YACC"; then
3647  echo "$as_me:$LINENO: result: $YACC" >&5
3648echo "${ECHO_T}$YACC" >&6
3649else
3650  echo "$as_me:$LINENO: result: no" >&5
3651echo "${ECHO_T}no" >&6
3652fi
3653
3654  test -n "$YACC" && break
3655done
3656test -n "$YACC" || YACC="yacc"
3657
3658for ac_prog in flex lex
3659do
3660  # Extract the first word of "$ac_prog", so it can be a program name with args.
3661set dummy $ac_prog; ac_word=$2
3662echo "$as_me:$LINENO: checking for $ac_word" >&5
3663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664if test "${ac_cv_prog_LEX+set}" = set; then
3665  echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667  if test -n "$LEX"; then
3668  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3669else
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673  IFS=$as_save_IFS
3674  test -z "$as_dir" && as_dir=.
3675  for ac_exec_ext in '' $ac_executable_extensions; do
3676  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677    ac_cv_prog_LEX="$ac_prog"
3678    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679    break 2
3680  fi
3681done
3682done
3683
3684fi
3685fi
3686LEX=$ac_cv_prog_LEX
3687if test -n "$LEX"; then
3688  echo "$as_me:$LINENO: result: $LEX" >&5
3689echo "${ECHO_T}$LEX" >&6
3690else
3691  echo "$as_me:$LINENO: result: no" >&5
3692echo "${ECHO_T}no" >&6
3693fi
3694
3695  test -n "$LEX" && break
3696done
3697test -n "$LEX" || LEX=":"
3698
3699if test -z "$LEXLIB"
3700then
3701  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3702echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3703if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3704  echo $ECHO_N "(cached) $ECHO_C" >&6
3705else
3706  ac_check_lib_save_LIBS=$LIBS
3707LIBS="-lfl  $LIBS"
3708cat >conftest.$ac_ext <<_ACEOF
3709/* confdefs.h.  */
3710_ACEOF
3711cat confdefs.h >>conftest.$ac_ext
3712cat >>conftest.$ac_ext <<_ACEOF
3713/* end confdefs.h.  */
3714
3715/* Override any gcc2 internal prototype to avoid an error.  */
3716#ifdef __cplusplus
3717extern "C"
3718#endif
3719/* We use char because int might match the return type of a gcc2
3720   builtin and then its argument prototype would still apply.  */
3721char yywrap ();
3722int
3723main ()
3724{
3725yywrap ();
3726  ;
3727  return 0;
3728}
3729_ACEOF
3730rm -f conftest.$ac_objext conftest$ac_exeext
3731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3732  (eval $ac_link) 2>conftest.er1
3733  ac_status=$?
3734  grep -v '^ *+' conftest.er1 >conftest.err
3735  rm -f conftest.er1
3736  cat conftest.err >&5
3737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738  (exit $ac_status); } &&
3739	 { ac_try='test -z "$ac_c_werror_flag"
3740			 || test ! -s conftest.err'
3741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742  (eval $ac_try) 2>&5
3743  ac_status=$?
3744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745  (exit $ac_status); }; } &&
3746	 { ac_try='test -s conftest$ac_exeext'
3747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748  (eval $ac_try) 2>&5
3749  ac_status=$?
3750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751  (exit $ac_status); }; }; then
3752  ac_cv_lib_fl_yywrap=yes
3753else
3754  echo "$as_me: failed program was:" >&5
3755sed 's/^/| /' conftest.$ac_ext >&5
3756
3757ac_cv_lib_fl_yywrap=no
3758fi
3759rm -f conftest.err conftest.$ac_objext \
3760      conftest$ac_exeext conftest.$ac_ext
3761LIBS=$ac_check_lib_save_LIBS
3762fi
3763echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3764echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3765if test $ac_cv_lib_fl_yywrap = yes; then
3766  LEXLIB="-lfl"
3767else
3768  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3769echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3770if test "${ac_cv_lib_l_yywrap+set}" = set; then
3771  echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773  ac_check_lib_save_LIBS=$LIBS
3774LIBS="-ll  $LIBS"
3775cat >conftest.$ac_ext <<_ACEOF
3776/* confdefs.h.  */
3777_ACEOF
3778cat confdefs.h >>conftest.$ac_ext
3779cat >>conftest.$ac_ext <<_ACEOF
3780/* end confdefs.h.  */
3781
3782/* Override any gcc2 internal prototype to avoid an error.  */
3783#ifdef __cplusplus
3784extern "C"
3785#endif
3786/* We use char because int might match the return type of a gcc2
3787   builtin and then its argument prototype would still apply.  */
3788char yywrap ();
3789int
3790main ()
3791{
3792yywrap ();
3793  ;
3794  return 0;
3795}
3796_ACEOF
3797rm -f conftest.$ac_objext conftest$ac_exeext
3798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3799  (eval $ac_link) 2>conftest.er1
3800  ac_status=$?
3801  grep -v '^ *+' conftest.er1 >conftest.err
3802  rm -f conftest.er1
3803  cat conftest.err >&5
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); } &&
3806	 { ac_try='test -z "$ac_c_werror_flag"
3807			 || test ! -s conftest.err'
3808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809  (eval $ac_try) 2>&5
3810  ac_status=$?
3811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812  (exit $ac_status); }; } &&
3813	 { ac_try='test -s conftest$ac_exeext'
3814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815  (eval $ac_try) 2>&5
3816  ac_status=$?
3817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818  (exit $ac_status); }; }; then
3819  ac_cv_lib_l_yywrap=yes
3820else
3821  echo "$as_me: failed program was:" >&5
3822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824ac_cv_lib_l_yywrap=no
3825fi
3826rm -f conftest.err conftest.$ac_objext \
3827      conftest$ac_exeext conftest.$ac_ext
3828LIBS=$ac_check_lib_save_LIBS
3829fi
3830echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3831echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3832if test $ac_cv_lib_l_yywrap = yes; then
3833  LEXLIB="-ll"
3834fi
3835
3836fi
3837
3838fi
3839
3840if test "x$LEX" != "x:"; then
3841  echo "$as_me:$LINENO: checking lex output file root" >&5
3842echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3843if test "${ac_cv_prog_lex_root+set}" = set; then
3844  echo $ECHO_N "(cached) $ECHO_C" >&6
3845else
3846  # The minimal lex program is just a single line: %%.  But some broken lexes
3847# (Solaris, I think it was) want two %% lines, so accommodate them.
3848cat >conftest.l <<_ACEOF
3849%%
3850%%
3851_ACEOF
3852{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3853  (eval $LEX conftest.l) 2>&5
3854  ac_status=$?
3855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856  (exit $ac_status); }
3857if test -f lex.yy.c; then
3858  ac_cv_prog_lex_root=lex.yy
3859elif test -f lexyy.c; then
3860  ac_cv_prog_lex_root=lexyy
3861else
3862  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3863echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3864   { (exit 1); exit 1; }; }
3865fi
3866fi
3867echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3868echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3869rm -f conftest.l
3870LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3871
3872echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3873echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3874if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3875  echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877  # POSIX says lex can declare yytext either as a pointer or an array; the
3878# default is implementation-dependent. Figure out which it is, since
3879# not all implementations provide the %pointer and %array declarations.
3880ac_cv_prog_lex_yytext_pointer=no
3881echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3882ac_save_LIBS=$LIBS
3883LIBS="$LIBS $LEXLIB"
3884cat >conftest.$ac_ext <<_ACEOF
3885`cat $LEX_OUTPUT_ROOT.c`
3886_ACEOF
3887rm -f conftest.$ac_objext conftest$ac_exeext
3888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3889  (eval $ac_link) 2>conftest.er1
3890  ac_status=$?
3891  grep -v '^ *+' conftest.er1 >conftest.err
3892  rm -f conftest.er1
3893  cat conftest.err >&5
3894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895  (exit $ac_status); } &&
3896	 { ac_try='test -z "$ac_c_werror_flag"
3897			 || test ! -s conftest.err'
3898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899  (eval $ac_try) 2>&5
3900  ac_status=$?
3901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902  (exit $ac_status); }; } &&
3903	 { ac_try='test -s conftest$ac_exeext'
3904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905  (eval $ac_try) 2>&5
3906  ac_status=$?
3907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908  (exit $ac_status); }; }; then
3909  ac_cv_prog_lex_yytext_pointer=yes
3910else
3911  echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
3913
3914fi
3915rm -f conftest.err conftest.$ac_objext \
3916      conftest$ac_exeext conftest.$ac_ext
3917LIBS=$ac_save_LIBS
3918rm -f "${LEX_OUTPUT_ROOT}.c"
3919
3920fi
3921echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3922echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3923if test $ac_cv_prog_lex_yytext_pointer = yes; then
3924
3925cat >>confdefs.h <<\_ACEOF
3926#define YYTEXT_POINTER 1
3927_ACEOF
3928
3929fi
3930
3931fi
3932if test "$LEX" = :; then
3933  LEX=${am_missing_run}flex
3934fi
3935for ac_prog in gawk mawk nawk awk
3936do
3937  # Extract the first word of "$ac_prog", so it can be a program name with args.
3938set dummy $ac_prog; ac_word=$2
3939echo "$as_me:$LINENO: checking for $ac_word" >&5
3940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941if test "${ac_cv_prog_AWK+set}" = set; then
3942  echo $ECHO_N "(cached) $ECHO_C" >&6
3943else
3944  if test -n "$AWK"; then
3945  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3946else
3947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948for as_dir in $PATH
3949do
3950  IFS=$as_save_IFS
3951  test -z "$as_dir" && as_dir=.
3952  for ac_exec_ext in '' $ac_executable_extensions; do
3953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954    ac_cv_prog_AWK="$ac_prog"
3955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956    break 2
3957  fi
3958done
3959done
3960
3961fi
3962fi
3963AWK=$ac_cv_prog_AWK
3964if test -n "$AWK"; then
3965  echo "$as_me:$LINENO: result: $AWK" >&5
3966echo "${ECHO_T}$AWK" >&6
3967else
3968  echo "$as_me:$LINENO: result: no" >&5
3969echo "${ECHO_T}no" >&6
3970fi
3971
3972  test -n "$AWK" && break
3973done
3974
3975echo "$as_me:$LINENO: checking for ln -s or something else" >&5
3976echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
3977if test "${ac_cv_prog_LN_S+set}" = set; then
3978  echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980  rm -f conftestdata
3981if ln -s X conftestdata 2>/dev/null
3982then
3983  rm -f conftestdata
3984  ac_cv_prog_LN_S="ln -s"
3985else
3986  touch conftestdata1
3987  if ln conftestdata1 conftestdata2; then
3988    rm -f conftestdata*
3989    ac_cv_prog_LN_S=ln
3990  else
3991    ac_cv_prog_LN_S=cp
3992  fi
3993fi
3994fi
3995LN_S="$ac_cv_prog_LN_S"
3996echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
3997echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
3998
3999
4000
4001
4002# Check whether --with-mips_abi or --without-mips_abi was given.
4003if test "${with_mips_abi+set}" = set; then
4004  withval="$with_mips_abi"
4005
4006fi;
4007
4008case "$host_os" in
4009irix*)
4010with_mips_abi="${with_mips_abi:-yes}"
4011if test -n "$GCC"; then
4012
4013# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
4014# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
4015#
4016# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
4017# GCC and revert back to O32. The same goes if O32 is asked for - old
4018# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
4019#
4020# Don't you just love *all* the different SGI ABIs?
4021
4022case "${with_mips_abi}" in
4023        32|o32) abi='-mabi=32';  abilibdirext=''     ;;
4024       n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
4025        64) abi='-mabi=64';  abilibdirext='64'   ;;
4026	no) abi=''; abilibdirext='';;
4027         *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
4028echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
4029   { (exit 1); exit 1; }; } ;;
4030esac
4031if test -n "$abi" ; then
4032ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
4033echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
4034echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
4035if eval "test \"\${$ac_foo+set}\" = set"; then
4036  echo $ECHO_N "(cached) $ECHO_C" >&6
4037else
4038
4039save_CFLAGS="$CFLAGS"
4040CFLAGS="$CFLAGS $abi"
4041cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h.  */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h.  */
4047
4048int
4049main ()
4050{
4051int x;
4052  ;
4053  return 0;
4054}
4055_ACEOF
4056rm -f conftest.$ac_objext
4057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058  (eval $ac_compile) 2>conftest.er1
4059  ac_status=$?
4060  grep -v '^ *+' conftest.er1 >conftest.err
4061  rm -f conftest.er1
4062  cat conftest.err >&5
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); } &&
4065	 { ac_try='test -z "$ac_c_werror_flag"
4066			 || test ! -s conftest.err'
4067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068  (eval $ac_try) 2>&5
4069  ac_status=$?
4070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071  (exit $ac_status); }; } &&
4072	 { ac_try='test -s conftest.$ac_objext'
4073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074  (eval $ac_try) 2>&5
4075  ac_status=$?
4076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077  (exit $ac_status); }; }; then
4078  eval $ac_foo=yes
4079else
4080  echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083eval $ac_foo=no
4084fi
4085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4086CFLAGS="$save_CFLAGS"
4087
4088fi
4089
4090ac_res=`eval echo \\\$$ac_foo`
4091echo "$as_me:$LINENO: result: $ac_res" >&5
4092echo "${ECHO_T}$ac_res" >&6
4093if test $ac_res = no; then
4094# Try to figure out why that failed...
4095case $abi in
4096	-mabi=32)
4097	save_CFLAGS="$CFLAGS"
4098	CFLAGS="$CFLAGS -mabi=n32"
4099	cat >conftest.$ac_ext <<_ACEOF
4100/* confdefs.h.  */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h.  */
4105
4106int
4107main ()
4108{
4109int x;
4110  ;
4111  return 0;
4112}
4113_ACEOF
4114rm -f conftest.$ac_objext
4115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116  (eval $ac_compile) 2>conftest.er1
4117  ac_status=$?
4118  grep -v '^ *+' conftest.er1 >conftest.err
4119  rm -f conftest.er1
4120  cat conftest.err >&5
4121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122  (exit $ac_status); } &&
4123	 { ac_try='test -z "$ac_c_werror_flag"
4124			 || test ! -s conftest.err'
4125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126  (eval $ac_try) 2>&5
4127  ac_status=$?
4128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129  (exit $ac_status); }; } &&
4130	 { ac_try='test -s conftest.$ac_objext'
4131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132  (eval $ac_try) 2>&5
4133  ac_status=$?
4134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135  (exit $ac_status); }; }; then
4136  ac_res=yes
4137else
4138  echo "$as_me: failed program was:" >&5
4139sed 's/^/| /' conftest.$ac_ext >&5
4140
4141ac_res=no
4142fi
4143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4144	CLAGS="$save_CFLAGS"
4145	if test $ac_res = yes; then
4146		# New GCC
4147		{ { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
4148echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
4149   { (exit 1); exit 1; }; }
4150	fi
4151	# Old GCC
4152	abi=''
4153	abilibdirext=''
4154	;;
4155	-mabi=n32|-mabi=64)
4156		if test $with_mips_abi = yes; then
4157			# Old GCC, default to O32
4158			abi=''
4159			abilibdirext=''
4160		else
4161			# Some broken GCC
4162			{ { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
4163echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
4164   { (exit 1); exit 1; }; }
4165		fi
4166	;;
4167esac
4168fi #if test $ac_res = no; then
4169fi #if test -n "$abi" ; then
4170else
4171case "${with_mips_abi}" in
4172        32|o32) abi='-32'; abilibdirext=''     ;;
4173       n32|yes) abi='-n32'; abilibdirext='32'  ;;
4174        64) abi='-64'; abilibdirext='64'   ;;
4175	no) abi=''; abilibdirext='';;
4176         *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
4177echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
4178   { (exit 1); exit 1; }; } ;;
4179esac
4180fi #if test -n "$GCC"; then
4181;;
4182esac
4183
4184CC="$CC $abi"
4185libdir="$libdir$abilibdirext"
4186
4187
4188echo "$as_me:$LINENO: checking for __attribute__" >&5
4189echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
4190if test "${ac_cv___attribute__+set}" = set; then
4191  echo $ECHO_N "(cached) $ECHO_C" >&6
4192else
4193
4194cat >conftest.$ac_ext <<_ACEOF
4195/* confdefs.h.  */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
4199/* end confdefs.h.  */
4200
4201#include <stdlib.h>
4202
4203int
4204main ()
4205{
4206
4207static void foo(void) __attribute__ ((noreturn));
4208
4209static void
4210foo(void)
4211{
4212  exit(1);
4213}
4214
4215  ;
4216  return 0;
4217}
4218_ACEOF
4219rm -f conftest.$ac_objext
4220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221  (eval $ac_compile) 2>conftest.er1
4222  ac_status=$?
4223  grep -v '^ *+' conftest.er1 >conftest.err
4224  rm -f conftest.er1
4225  cat conftest.err >&5
4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227  (exit $ac_status); } &&
4228	 { ac_try='test -z "$ac_c_werror_flag"
4229			 || test ! -s conftest.err'
4230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231  (eval $ac_try) 2>&5
4232  ac_status=$?
4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234  (exit $ac_status); }; } &&
4235	 { ac_try='test -s conftest.$ac_objext'
4236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237  (eval $ac_try) 2>&5
4238  ac_status=$?
4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240  (exit $ac_status); }; }; then
4241  ac_cv___attribute__=yes
4242else
4243  echo "$as_me: failed program was:" >&5
4244sed 's/^/| /' conftest.$ac_ext >&5
4245
4246ac_cv___attribute__=no
4247fi
4248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4249fi
4250
4251if test "$ac_cv___attribute__" = "yes"; then
4252
4253cat >>confdefs.h <<\_ACEOF
4254#define HAVE___ATTRIBUTE__ 1
4255_ACEOF
4256
4257fi
4258echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4259echo "${ECHO_T}$ac_cv___attribute__" >&6
4260
4261
4262# Check whether --enable-shared or --disable-shared was given.
4263if test "${enable_shared+set}" = set; then
4264  enableval="$enable_shared"
4265  p=${PACKAGE-default}
4266    case $enableval in
4267    yes) enable_shared=yes ;;
4268    no) enable_shared=no ;;
4269    *)
4270      enable_shared=no
4271      # Look at the argument we got.  We use all the common list separators.
4272      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4273      for pkg in $enableval; do
4274	IFS="$lt_save_ifs"
4275	if test "X$pkg" = "X$p"; then
4276	  enable_shared=yes
4277	fi
4278      done
4279      IFS="$lt_save_ifs"
4280      ;;
4281    esac
4282else
4283  enable_shared=no
4284fi;
4285
4286# Check whether --enable-static or --disable-static was given.
4287if test "${enable_static+set}" = set; then
4288  enableval="$enable_static"
4289  p=${PACKAGE-default}
4290    case $enableval in
4291    yes) enable_static=yes ;;
4292    no) enable_static=no ;;
4293    *)
4294     enable_static=no
4295      # Look at the argument we got.  We use all the common list separators.
4296      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4297      for pkg in $enableval; do
4298	IFS="$lt_save_ifs"
4299	if test "X$pkg" = "X$p"; then
4300	  enable_static=yes
4301	fi
4302      done
4303      IFS="$lt_save_ifs"
4304      ;;
4305    esac
4306else
4307  enable_static=yes
4308fi;
4309
4310# Check whether --enable-fast-install or --disable-fast-install was given.
4311if test "${enable_fast_install+set}" = set; then
4312  enableval="$enable_fast_install"
4313  p=${PACKAGE-default}
4314    case $enableval in
4315    yes) enable_fast_install=yes ;;
4316    no) enable_fast_install=no ;;
4317    *)
4318      enable_fast_install=no
4319      # Look at the argument we got.  We use all the common list separators.
4320      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4321      for pkg in $enableval; do
4322	IFS="$lt_save_ifs"
4323	if test "X$pkg" = "X$p"; then
4324	  enable_fast_install=yes
4325	fi
4326      done
4327      IFS="$lt_save_ifs"
4328      ;;
4329    esac
4330else
4331  enable_fast_install=yes
4332fi;
4333
4334echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4335echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4336if test "${lt_cv_path_SED+set}" = set; then
4337  echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339  # Loop through the user's path and test for sed and gsed.
4340# Then use that list of sed's as ones to test for truncation.
4341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH
4343do
4344  IFS=$as_save_IFS
4345  test -z "$as_dir" && as_dir=.
4346  for lt_ac_prog in sed gsed; do
4347    for ac_exec_ext in '' $ac_executable_extensions; do
4348      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4349        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4350      fi
4351    done
4352  done
4353done
4354lt_ac_max=0
4355lt_ac_count=0
4356# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4357# along with /bin/sed that truncates output.
4358for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4359  test ! -f $lt_ac_sed && break
4360  cat /dev/null > conftest.in
4361  lt_ac_count=0
4362  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4363  # Check for GNU sed and select it if it is found.
4364  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4365    lt_cv_path_SED=$lt_ac_sed
4366    break
4367  fi
4368  while true; do
4369    cat conftest.in conftest.in >conftest.tmp
4370    mv conftest.tmp conftest.in
4371    cp conftest.in conftest.nl
4372    echo >>conftest.nl
4373    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4374    cmp -s conftest.out conftest.nl || break
4375    # 10000 chars as input seems more than enough
4376    test $lt_ac_count -gt 10 && break
4377    lt_ac_count=`expr $lt_ac_count + 1`
4378    if test $lt_ac_count -gt $lt_ac_max; then
4379      lt_ac_max=$lt_ac_count
4380      lt_cv_path_SED=$lt_ac_sed
4381    fi
4382  done
4383done
4384SED=$lt_cv_path_SED
4385
4386fi
4387
4388echo "$as_me:$LINENO: result: $SED" >&5
4389echo "${ECHO_T}$SED" >&6
4390
4391echo "$as_me:$LINENO: checking for egrep" >&5
4392echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4393if test "${ac_cv_prog_egrep+set}" = set; then
4394  echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4397    then ac_cv_prog_egrep='grep -E'
4398    else ac_cv_prog_egrep='egrep'
4399    fi
4400fi
4401echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4402echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4403 EGREP=$ac_cv_prog_egrep
4404
4405
4406
4407# Check whether --with-gnu-ld or --without-gnu-ld was given.
4408if test "${with_gnu_ld+set}" = set; then
4409  withval="$with_gnu_ld"
4410  test "$withval" = no || with_gnu_ld=yes
4411else
4412  with_gnu_ld=no
4413fi;
4414ac_prog=ld
4415if test "$GCC" = yes; then
4416  # Check if gcc -print-prog-name=ld gives a path.
4417  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4418echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4419  case $host in
4420  *-*-mingw*)
4421    # gcc leaves a trailing carriage return which upsets mingw
4422    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4423  *)
4424    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4425  esac
4426  case $ac_prog in
4427    # Accept absolute paths.
4428    [\\/]* | ?:[\\/]*)
4429      re_direlt='/[^/][^/]*/\.\./'
4430      # Canonicalize the pathname of ld
4431      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4432      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4433	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4434      done
4435      test -z "$LD" && LD="$ac_prog"
4436      ;;
4437  "")
4438    # If it fails, then pretend we aren't using GCC.
4439    ac_prog=ld
4440    ;;
4441  *)
4442    # If it is relative, then search for the first ld in PATH.
4443    with_gnu_ld=unknown
4444    ;;
4445  esac
4446elif test "$with_gnu_ld" = yes; then
4447  echo "$as_me:$LINENO: checking for GNU ld" >&5
4448echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4449else
4450  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4451echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4452fi
4453if test "${lt_cv_path_LD+set}" = set; then
4454  echo $ECHO_N "(cached) $ECHO_C" >&6
4455else
4456  if test -z "$LD"; then
4457  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4458  for ac_dir in $PATH; do
4459    IFS="$lt_save_ifs"
4460    test -z "$ac_dir" && ac_dir=.
4461    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4462      lt_cv_path_LD="$ac_dir/$ac_prog"
4463      # Check to see if the program is GNU ld.  I'd rather use --version,
4464      # but apparently some GNU ld's only accept -v.
4465      # Break only if it was the GNU/non-GNU ld that we prefer.
4466      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4467      *GNU* | *'with BFD'*)
4468	test "$with_gnu_ld" != no && break
4469	;;
4470      *)
4471	test "$with_gnu_ld" != yes && break
4472	;;
4473      esac
4474    fi
4475  done
4476  IFS="$lt_save_ifs"
4477else
4478  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4479fi
4480fi
4481
4482LD="$lt_cv_path_LD"
4483if test -n "$LD"; then
4484  echo "$as_me:$LINENO: result: $LD" >&5
4485echo "${ECHO_T}$LD" >&6
4486else
4487  echo "$as_me:$LINENO: result: no" >&5
4488echo "${ECHO_T}no" >&6
4489fi
4490test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4491echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4492   { (exit 1); exit 1; }; }
4493echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4494echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4495if test "${lt_cv_prog_gnu_ld+set}" = set; then
4496  echo $ECHO_N "(cached) $ECHO_C" >&6
4497else
4498  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4499case `$LD -v 2>&1 </dev/null` in
4500*GNU* | *'with BFD'*)
4501  lt_cv_prog_gnu_ld=yes
4502  ;;
4503*)
4504  lt_cv_prog_gnu_ld=no
4505  ;;
4506esac
4507fi
4508echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4509echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4510with_gnu_ld=$lt_cv_prog_gnu_ld
4511
4512
4513echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4514echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4515if test "${lt_cv_ld_reload_flag+set}" = set; then
4516  echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518  lt_cv_ld_reload_flag='-r'
4519fi
4520echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4521echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4522reload_flag=$lt_cv_ld_reload_flag
4523case $reload_flag in
4524"" | " "*) ;;
4525*) reload_flag=" $reload_flag" ;;
4526esac
4527reload_cmds='$LD$reload_flag -o $output$reload_objs'
4528
4529echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4530echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4531if test "${lt_cv_path_NM+set}" = set; then
4532  echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534  if test -n "$NM"; then
4535  # Let the user override the test.
4536  lt_cv_path_NM="$NM"
4537else
4538  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4539  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4540    IFS="$lt_save_ifs"
4541    test -z "$ac_dir" && ac_dir=.
4542    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4543    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4544      # Check to see if the nm accepts a BSD-compat flag.
4545      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4546      #   nm: unknown option "B" ignored
4547      # Tru64's nm complains that /dev/null is an invalid object file
4548      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4549      */dev/null* | *'Invalid file or object type'*)
4550	lt_cv_path_NM="$tmp_nm -B"
4551	break
4552        ;;
4553      *)
4554	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4555	*/dev/null*)
4556	  lt_cv_path_NM="$tmp_nm -p"
4557	  break
4558	  ;;
4559	*)
4560	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4561	  continue # so that we can try to find one that supports BSD flags
4562	  ;;
4563	esac
4564      esac
4565    fi
4566  done
4567  IFS="$lt_save_ifs"
4568  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4569fi
4570fi
4571echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4572echo "${ECHO_T}$lt_cv_path_NM" >&6
4573NM="$lt_cv_path_NM"
4574
4575echo "$as_me:$LINENO: checking whether ln -s works" >&5
4576echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4577LN_S=$as_ln_s
4578if test "$LN_S" = "ln -s"; then
4579  echo "$as_me:$LINENO: result: yes" >&5
4580echo "${ECHO_T}yes" >&6
4581else
4582  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4583echo "${ECHO_T}no, using $LN_S" >&6
4584fi
4585
4586echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4587echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4588if test "${lt_cv_deplibs_check_method+set}" = set; then
4589  echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591  lt_cv_file_magic_cmd='$MAGIC_CMD'
4592lt_cv_file_magic_test_file=
4593lt_cv_deplibs_check_method='unknown'
4594# Need to set the preceding variable on all platforms that support
4595# interlibrary dependencies.
4596# 'none' -- dependencies not supported.
4597# `unknown' -- same as none, but documents that we really don't know.
4598# 'pass_all' -- all dependencies passed with no checks.
4599# 'test_compile' -- check by making test program.
4600# 'file_magic [[regex]]' -- check by looking for files in library path
4601# which responds to the $file_magic_cmd with a given extended regex.
4602# If you have `file' or equivalent on your system and you're not sure
4603# whether `pass_all' will *always* work, you probably want this one.
4604
4605case $host_os in
4606aix4* | aix5*)
4607  lt_cv_deplibs_check_method=pass_all
4608  ;;
4609
4610beos*)
4611  lt_cv_deplibs_check_method=pass_all
4612  ;;
4613
4614bsdi4*)
4615  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4616  lt_cv_file_magic_cmd='/usr/bin/file -L'
4617  lt_cv_file_magic_test_file=/shlib/libc.so
4618  ;;
4619
4620cygwin*)
4621  # win32_libid is a shell function defined in ltmain.sh
4622  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4623  lt_cv_file_magic_cmd='win32_libid'
4624  ;;
4625
4626mingw* | pw32*)
4627  # Base MSYS/MinGW do not provide the 'file' command needed by
4628  # win32_libid shell function, so use a weaker test based on 'objdump'.
4629  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4630  lt_cv_file_magic_cmd='$OBJDUMP -f'
4631  ;;
4632
4633darwin* | rhapsody*)
4634  lt_cv_deplibs_check_method=pass_all
4635  ;;
4636
4637freebsd* | kfreebsd*-gnu)
4638  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4639    case $host_cpu in
4640    i*86 )
4641      # Not sure whether the presence of OpenBSD here was a mistake.
4642      # Let's accept both of them until this is cleared up.
4643      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4644      lt_cv_file_magic_cmd=/usr/bin/file
4645      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4646      ;;
4647    esac
4648  else
4649    lt_cv_deplibs_check_method=pass_all
4650  fi
4651  ;;
4652
4653gnu*)
4654  lt_cv_deplibs_check_method=pass_all
4655  ;;
4656
4657hpux10.20* | hpux11*)
4658  lt_cv_file_magic_cmd=/usr/bin/file
4659  case "$host_cpu" in
4660  ia64*)
4661    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4662    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4663    ;;
4664  hppa*64*)
4665    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4666    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4667    ;;
4668  *)
4669    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4670    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4671    ;;
4672  esac
4673  ;;
4674
4675irix5* | irix6* | nonstopux*)
4676  case $LD in
4677  *-32|*"-32 ") libmagic=32-bit;;
4678  *-n32|*"-n32 ") libmagic=N32;;
4679  *-64|*"-64 ") libmagic=64-bit;;
4680  *) libmagic=never-match;;
4681  esac
4682  lt_cv_deplibs_check_method=pass_all
4683  ;;
4684
4685# This must be Linux ELF.
4686linux*)
4687  case $host_cpu in
4688  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
4689    lt_cv_deplibs_check_method=pass_all ;;
4690  *)
4691    # glibc up to 2.1.1 does not perform some relocations on ARM
4692    # this will be overridden with pass_all, but let us keep it just in case
4693    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4694  esac
4695  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4696  lt_cv_deplibs_check_method=pass_all
4697  ;;
4698
4699netbsd*)
4700  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4701    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4702  else
4703    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4704  fi
4705  ;;
4706
4707newos6*)
4708  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4709  lt_cv_file_magic_cmd=/usr/bin/file
4710  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4711  ;;
4712
4713nto-qnx*)
4714  lt_cv_deplibs_check_method=unknown
4715  ;;
4716
4717openbsd*)
4718  lt_cv_file_magic_cmd=/usr/bin/file
4719  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4720  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4721    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4722  else
4723    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4724  fi
4725  ;;
4726
4727osf3* | osf4* | osf5*)
4728  lt_cv_deplibs_check_method=pass_all
4729  ;;
4730
4731sco3.2v5*)
4732  lt_cv_deplibs_check_method=pass_all
4733  ;;
4734
4735solaris*)
4736  lt_cv_deplibs_check_method=pass_all
4737  ;;
4738
4739sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4740  case $host_vendor in
4741  motorola)
4742    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]'
4743    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4744    ;;
4745  ncr)
4746    lt_cv_deplibs_check_method=pass_all
4747    ;;
4748  sequent)
4749    lt_cv_file_magic_cmd='/bin/file'
4750    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4751    ;;
4752  sni)
4753    lt_cv_file_magic_cmd='/bin/file'
4754    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4755    lt_cv_file_magic_test_file=/lib/libc.so
4756    ;;
4757  siemens)
4758    lt_cv_deplibs_check_method=pass_all
4759    ;;
4760  esac
4761  ;;
4762
4763sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4764  lt_cv_deplibs_check_method=pass_all
4765  ;;
4766esac
4767
4768fi
4769echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4770echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4771file_magic_cmd=$lt_cv_file_magic_cmd
4772deplibs_check_method=$lt_cv_deplibs_check_method
4773test -z "$deplibs_check_method" && deplibs_check_method=unknown
4774
4775
4776# If no C compiler was specified, use CC.
4777LTCC=${LTCC-"$CC"}
4778
4779# Allow CC to be a program name with arguments.
4780compiler=$CC
4781
4782# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4783if test "${enable_libtool_lock+set}" = set; then
4784  enableval="$enable_libtool_lock"
4785
4786fi;
4787test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4788
4789# Some flags need to be propagated to the compiler or linker for good
4790# libtool support.
4791case $host in
4792ia64-*-hpux*)
4793  # Find out which ABI we are using.
4794  echo 'int i;' > conftest.$ac_ext
4795  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796  (eval $ac_compile) 2>&5
4797  ac_status=$?
4798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799  (exit $ac_status); }; then
4800    case `/usr/bin/file conftest.$ac_objext` in
4801    *ELF-32*)
4802      HPUX_IA64_MODE="32"
4803      ;;
4804    *ELF-64*)
4805      HPUX_IA64_MODE="64"
4806      ;;
4807    esac
4808  fi
4809  rm -rf conftest*
4810  ;;
4811*-*-irix6*)
4812  # Find out which ABI we are using.
4813  echo '#line 4813 "configure"' > conftest.$ac_ext
4814  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815  (eval $ac_compile) 2>&5
4816  ac_status=$?
4817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818  (exit $ac_status); }; then
4819   if test "$lt_cv_prog_gnu_ld" = yes; then
4820    case `/usr/bin/file conftest.$ac_objext` in
4821    *32-bit*)
4822      LD="${LD-ld} -melf32bsmip"
4823      ;;
4824    *N32*)
4825      LD="${LD-ld} -melf32bmipn32"
4826      ;;
4827    *64-bit*)
4828      LD="${LD-ld} -melf64bmip"
4829      ;;
4830    esac
4831   else
4832    case `/usr/bin/file conftest.$ac_objext` in
4833    *32-bit*)
4834      LD="${LD-ld} -32"
4835      ;;
4836    *N32*)
4837      LD="${LD-ld} -n32"
4838      ;;
4839    *64-bit*)
4840      LD="${LD-ld} -64"
4841      ;;
4842    esac
4843   fi
4844  fi
4845  rm -rf conftest*
4846  ;;
4847
4848x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4849  # Find out which ABI we are using.
4850  echo 'int i;' > conftest.$ac_ext
4851  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852  (eval $ac_compile) 2>&5
4853  ac_status=$?
4854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855  (exit $ac_status); }; then
4856    case "`/usr/bin/file conftest.o`" in
4857    *32-bit*)
4858      case $host in
4859        x86_64-*linux*)
4860          LD="${LD-ld} -m elf_i386"
4861          ;;
4862        ppc64-*linux*|powerpc64-*linux*)
4863          LD="${LD-ld} -m elf32ppclinux"
4864          ;;
4865        s390x-*linux*)
4866          LD="${LD-ld} -m elf_s390"
4867          ;;
4868        sparc64-*linux*)
4869          LD="${LD-ld} -m elf32_sparc"
4870          ;;
4871      esac
4872      ;;
4873    *64-bit*)
4874      case $host in
4875        x86_64-*linux*)
4876          LD="${LD-ld} -m elf_x86_64"
4877          ;;
4878        ppc*-*linux*|powerpc*-*linux*)
4879          LD="${LD-ld} -m elf64ppc"
4880          ;;
4881        s390*-*linux*)
4882          LD="${LD-ld} -m elf64_s390"
4883          ;;
4884        sparc*-*linux*)
4885          LD="${LD-ld} -m elf64_sparc"
4886          ;;
4887      esac
4888      ;;
4889    esac
4890  fi
4891  rm -rf conftest*
4892  ;;
4893
4894*-*-sco3.2v5*)
4895  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4896  SAVE_CFLAGS="$CFLAGS"
4897  CFLAGS="$CFLAGS -belf"
4898  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4899echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4900if test "${lt_cv_cc_needs_belf+set}" = set; then
4901  echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903  ac_ext=c
4904ac_cpp='$CPP $CPPFLAGS'
4905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909     cat >conftest.$ac_ext <<_ACEOF
4910/* confdefs.h.  */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h.  */
4915
4916int
4917main ()
4918{
4919
4920  ;
4921  return 0;
4922}
4923_ACEOF
4924rm -f conftest.$ac_objext conftest$ac_exeext
4925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4926  (eval $ac_link) 2>conftest.er1
4927  ac_status=$?
4928  grep -v '^ *+' conftest.er1 >conftest.err
4929  rm -f conftest.er1
4930  cat conftest.err >&5
4931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932  (exit $ac_status); } &&
4933	 { ac_try='test -z "$ac_c_werror_flag"
4934			 || test ! -s conftest.err'
4935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936  (eval $ac_try) 2>&5
4937  ac_status=$?
4938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939  (exit $ac_status); }; } &&
4940	 { ac_try='test -s conftest$ac_exeext'
4941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942  (eval $ac_try) 2>&5
4943  ac_status=$?
4944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945  (exit $ac_status); }; }; then
4946  lt_cv_cc_needs_belf=yes
4947else
4948  echo "$as_me: failed program was:" >&5
4949sed 's/^/| /' conftest.$ac_ext >&5
4950
4951lt_cv_cc_needs_belf=no
4952fi
4953rm -f conftest.err conftest.$ac_objext \
4954      conftest$ac_exeext conftest.$ac_ext
4955     ac_ext=c
4956ac_cpp='$CPP $CPPFLAGS'
4957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960
4961fi
4962echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4963echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4964  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4965    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4966    CFLAGS="$SAVE_CFLAGS"
4967  fi
4968  ;;
4969
4970esac
4971
4972need_locks="$enable_libtool_lock"
4973
4974
4975
4976echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4977echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4978if test "${ac_cv_header_stdc+set}" = set; then
4979  echo $ECHO_N "(cached) $ECHO_C" >&6
4980else
4981  cat >conftest.$ac_ext <<_ACEOF
4982/* confdefs.h.  */
4983_ACEOF
4984cat confdefs.h >>conftest.$ac_ext
4985cat >>conftest.$ac_ext <<_ACEOF
4986/* end confdefs.h.  */
4987#include <stdlib.h>
4988#include <stdarg.h>
4989#include <string.h>
4990#include <float.h>
4991
4992int
4993main ()
4994{
4995
4996  ;
4997  return 0;
4998}
4999_ACEOF
5000rm -f conftest.$ac_objext
5001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002  (eval $ac_compile) 2>conftest.er1
5003  ac_status=$?
5004  grep -v '^ *+' conftest.er1 >conftest.err
5005  rm -f conftest.er1
5006  cat conftest.err >&5
5007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008  (exit $ac_status); } &&
5009	 { ac_try='test -z "$ac_c_werror_flag"
5010			 || test ! -s conftest.err'
5011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012  (eval $ac_try) 2>&5
5013  ac_status=$?
5014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015  (exit $ac_status); }; } &&
5016	 { ac_try='test -s conftest.$ac_objext'
5017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018  (eval $ac_try) 2>&5
5019  ac_status=$?
5020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021  (exit $ac_status); }; }; then
5022  ac_cv_header_stdc=yes
5023else
5024  echo "$as_me: failed program was:" >&5
5025sed 's/^/| /' conftest.$ac_ext >&5
5026
5027ac_cv_header_stdc=no
5028fi
5029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5030
5031if test $ac_cv_header_stdc = yes; then
5032  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5033  cat >conftest.$ac_ext <<_ACEOF
5034/* confdefs.h.  */
5035_ACEOF
5036cat confdefs.h >>conftest.$ac_ext
5037cat >>conftest.$ac_ext <<_ACEOF
5038/* end confdefs.h.  */
5039#include <string.h>
5040
5041_ACEOF
5042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043  $EGREP "memchr" >/dev/null 2>&1; then
5044  :
5045else
5046  ac_cv_header_stdc=no
5047fi
5048rm -f conftest*
5049
5050fi
5051
5052if test $ac_cv_header_stdc = yes; then
5053  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5054  cat >conftest.$ac_ext <<_ACEOF
5055/* confdefs.h.  */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h.  */
5060#include <stdlib.h>
5061
5062_ACEOF
5063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5064  $EGREP "free" >/dev/null 2>&1; then
5065  :
5066else
5067  ac_cv_header_stdc=no
5068fi
5069rm -f conftest*
5070
5071fi
5072
5073if test $ac_cv_header_stdc = yes; then
5074  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5075  if test "$cross_compiling" = yes; then
5076  :
5077else
5078  cat >conftest.$ac_ext <<_ACEOF
5079/* confdefs.h.  */
5080_ACEOF
5081cat confdefs.h >>conftest.$ac_ext
5082cat >>conftest.$ac_ext <<_ACEOF
5083/* end confdefs.h.  */
5084#include <ctype.h>
5085#if ((' ' & 0x0FF) == 0x020)
5086# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5087# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5088#else
5089# define ISLOWER(c) \
5090		   (('a' <= (c) && (c) <= 'i') \
5091		     || ('j' <= (c) && (c) <= 'r') \
5092		     || ('s' <= (c) && (c) <= 'z'))
5093# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5094#endif
5095
5096#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5097int
5098main ()
5099{
5100  int i;
5101  for (i = 0; i < 256; i++)
5102    if (XOR (islower (i), ISLOWER (i))
5103	|| toupper (i) != TOUPPER (i))
5104      exit(2);
5105  exit (0);
5106}
5107_ACEOF
5108rm -f conftest$ac_exeext
5109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110  (eval $ac_link) 2>&5
5111  ac_status=$?
5112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115  (eval $ac_try) 2>&5
5116  ac_status=$?
5117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118  (exit $ac_status); }; }; then
5119  :
5120else
5121  echo "$as_me: program exited with status $ac_status" >&5
5122echo "$as_me: failed program was:" >&5
5123sed 's/^/| /' conftest.$ac_ext >&5
5124
5125( exit $ac_status )
5126ac_cv_header_stdc=no
5127fi
5128rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5129fi
5130fi
5131fi
5132echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5133echo "${ECHO_T}$ac_cv_header_stdc" >&6
5134if test $ac_cv_header_stdc = yes; then
5135
5136cat >>confdefs.h <<\_ACEOF
5137#define STDC_HEADERS 1
5138_ACEOF
5139
5140fi
5141
5142# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5153		  inttypes.h stdint.h unistd.h
5154do
5155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5156echo "$as_me:$LINENO: checking for $ac_header" >&5
5157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5158if eval "test \"\${$as_ac_Header+set}\" = set"; then
5159  echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
5161  cat >conftest.$ac_ext <<_ACEOF
5162/* confdefs.h.  */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5166/* end confdefs.h.  */
5167$ac_includes_default
5168
5169#include <$ac_header>
5170_ACEOF
5171rm -f conftest.$ac_objext
5172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173  (eval $ac_compile) 2>conftest.er1
5174  ac_status=$?
5175  grep -v '^ *+' conftest.er1 >conftest.err
5176  rm -f conftest.er1
5177  cat conftest.err >&5
5178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179  (exit $ac_status); } &&
5180	 { ac_try='test -z "$ac_c_werror_flag"
5181			 || test ! -s conftest.err'
5182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183  (eval $ac_try) 2>&5
5184  ac_status=$?
5185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186  (exit $ac_status); }; } &&
5187	 { ac_try='test -s conftest.$ac_objext'
5188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189  (eval $ac_try) 2>&5
5190  ac_status=$?
5191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192  (exit $ac_status); }; }; then
5193  eval "$as_ac_Header=yes"
5194else
5195  echo "$as_me: failed program was:" >&5
5196sed 's/^/| /' conftest.$ac_ext >&5
5197
5198eval "$as_ac_Header=no"
5199fi
5200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5201fi
5202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5204if test `eval echo '${'$as_ac_Header'}'` = yes; then
5205  cat >>confdefs.h <<_ACEOF
5206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5207_ACEOF
5208
5209fi
5210
5211done
5212
5213
5214
5215for ac_header in dlfcn.h
5216do
5217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5218if eval "test \"\${$as_ac_Header+set}\" = set"; then
5219  echo "$as_me:$LINENO: checking for $ac_header" >&5
5220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5221if eval "test \"\${$as_ac_Header+set}\" = set"; then
5222  echo $ECHO_N "(cached) $ECHO_C" >&6
5223fi
5224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5226else
5227  # Is the header compilable?
5228echo "$as_me:$LINENO: checking $ac_header usability" >&5
5229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5230cat >conftest.$ac_ext <<_ACEOF
5231/* confdefs.h.  */
5232_ACEOF
5233cat confdefs.h >>conftest.$ac_ext
5234cat >>conftest.$ac_ext <<_ACEOF
5235/* end confdefs.h.  */
5236$ac_includes_default
5237#include <$ac_header>
5238_ACEOF
5239rm -f conftest.$ac_objext
5240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241  (eval $ac_compile) 2>conftest.er1
5242  ac_status=$?
5243  grep -v '^ *+' conftest.er1 >conftest.err
5244  rm -f conftest.er1
5245  cat conftest.err >&5
5246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247  (exit $ac_status); } &&
5248	 { ac_try='test -z "$ac_c_werror_flag"
5249			 || test ! -s conftest.err'
5250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251  (eval $ac_try) 2>&5
5252  ac_status=$?
5253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254  (exit $ac_status); }; } &&
5255	 { ac_try='test -s conftest.$ac_objext'
5256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257  (eval $ac_try) 2>&5
5258  ac_status=$?
5259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260  (exit $ac_status); }; }; then
5261  ac_header_compiler=yes
5262else
5263  echo "$as_me: failed program was:" >&5
5264sed 's/^/| /' conftest.$ac_ext >&5
5265
5266ac_header_compiler=no
5267fi
5268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5270echo "${ECHO_T}$ac_header_compiler" >&6
5271
5272# Is the header present?
5273echo "$as_me:$LINENO: checking $ac_header presence" >&5
5274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5275cat >conftest.$ac_ext <<_ACEOF
5276/* confdefs.h.  */
5277_ACEOF
5278cat confdefs.h >>conftest.$ac_ext
5279cat >>conftest.$ac_ext <<_ACEOF
5280/* end confdefs.h.  */
5281#include <$ac_header>
5282_ACEOF
5283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5284  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5285  ac_status=$?
5286  grep -v '^ *+' conftest.er1 >conftest.err
5287  rm -f conftest.er1
5288  cat conftest.err >&5
5289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290  (exit $ac_status); } >/dev/null; then
5291  if test -s conftest.err; then
5292    ac_cpp_err=$ac_c_preproc_warn_flag
5293    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5294  else
5295    ac_cpp_err=
5296  fi
5297else
5298  ac_cpp_err=yes
5299fi
5300if test -z "$ac_cpp_err"; then
5301  ac_header_preproc=yes
5302else
5303  echo "$as_me: failed program was:" >&5
5304sed 's/^/| /' conftest.$ac_ext >&5
5305
5306  ac_header_preproc=no
5307fi
5308rm -f conftest.err conftest.$ac_ext
5309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5310echo "${ECHO_T}$ac_header_preproc" >&6
5311
5312# So?  What about this header?
5313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5314  yes:no: )
5315    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5317    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5319    ac_header_preproc=yes
5320    ;;
5321  no:yes:* )
5322    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5324    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5325echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5326    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5328    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5329echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5330    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5332    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5334    (
5335      cat <<\_ASBOX
5336## -------------------------------------- ##
5337## Report this to heimdal-bugs@pdc.kth.se ##
5338## -------------------------------------- ##
5339_ASBOX
5340    ) |
5341      sed "s/^/$as_me: WARNING:     /" >&2
5342    ;;
5343esac
5344echo "$as_me:$LINENO: checking for $ac_header" >&5
5345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5346if eval "test \"\${$as_ac_Header+set}\" = set"; then
5347  echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349  eval "$as_ac_Header=\$ac_header_preproc"
5350fi
5351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5353
5354fi
5355if test `eval echo '${'$as_ac_Header'}'` = yes; then
5356  cat >>confdefs.h <<_ACEOF
5357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5358_ACEOF
5359
5360fi
5361
5362done
5363
5364ac_ext=cc
5365ac_cpp='$CXXCPP $CPPFLAGS'
5366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5369if test -n "$ac_tool_prefix"; then
5370  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5371  do
5372    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5373set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5374echo "$as_me:$LINENO: checking for $ac_word" >&5
5375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5376if test "${ac_cv_prog_CXX+set}" = set; then
5377  echo $ECHO_N "(cached) $ECHO_C" >&6
5378else
5379  if test -n "$CXX"; then
5380  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5381else
5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH
5384do
5385  IFS=$as_save_IFS
5386  test -z "$as_dir" && as_dir=.
5387  for ac_exec_ext in '' $ac_executable_extensions; do
5388  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5390    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5391    break 2
5392  fi
5393done
5394done
5395
5396fi
5397fi
5398CXX=$ac_cv_prog_CXX
5399if test -n "$CXX"; then
5400  echo "$as_me:$LINENO: result: $CXX" >&5
5401echo "${ECHO_T}$CXX" >&6
5402else
5403  echo "$as_me:$LINENO: result: no" >&5
5404echo "${ECHO_T}no" >&6
5405fi
5406
5407    test -n "$CXX" && break
5408  done
5409fi
5410if test -z "$CXX"; then
5411  ac_ct_CXX=$CXX
5412  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5413do
5414  # Extract the first word of "$ac_prog", so it can be a program name with args.
5415set dummy $ac_prog; ac_word=$2
5416echo "$as_me:$LINENO: checking for $ac_word" >&5
5417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5418if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5419  echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421  if test -n "$ac_ct_CXX"; then
5422  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5423else
5424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425for as_dir in $PATH
5426do
5427  IFS=$as_save_IFS
5428  test -z "$as_dir" && as_dir=.
5429  for ac_exec_ext in '' $ac_executable_extensions; do
5430  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5431    ac_cv_prog_ac_ct_CXX="$ac_prog"
5432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433    break 2
5434  fi
5435done
5436done
5437
5438fi
5439fi
5440ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5441if test -n "$ac_ct_CXX"; then
5442  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5443echo "${ECHO_T}$ac_ct_CXX" >&6
5444else
5445  echo "$as_me:$LINENO: result: no" >&5
5446echo "${ECHO_T}no" >&6
5447fi
5448
5449  test -n "$ac_ct_CXX" && break
5450done
5451test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5452
5453  CXX=$ac_ct_CXX
5454fi
5455
5456
5457# Provide some information about the compiler.
5458echo "$as_me:$LINENO:" \
5459     "checking for C++ compiler version" >&5
5460ac_compiler=`set X $ac_compile; echo $2`
5461{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5462  (eval $ac_compiler --version </dev/null >&5) 2>&5
5463  ac_status=$?
5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); }
5466{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5467  (eval $ac_compiler -v </dev/null >&5) 2>&5
5468  ac_status=$?
5469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470  (exit $ac_status); }
5471{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5472  (eval $ac_compiler -V </dev/null >&5) 2>&5
5473  ac_status=$?
5474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475  (exit $ac_status); }
5476
5477echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5478echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5479if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5480  echo $ECHO_N "(cached) $ECHO_C" >&6
5481else
5482  cat >conftest.$ac_ext <<_ACEOF
5483/* confdefs.h.  */
5484_ACEOF
5485cat confdefs.h >>conftest.$ac_ext
5486cat >>conftest.$ac_ext <<_ACEOF
5487/* end confdefs.h.  */
5488
5489int
5490main ()
5491{
5492#ifndef __GNUC__
5493       choke me
5494#endif
5495
5496  ;
5497  return 0;
5498}
5499_ACEOF
5500rm -f conftest.$ac_objext
5501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502  (eval $ac_compile) 2>conftest.er1
5503  ac_status=$?
5504  grep -v '^ *+' conftest.er1 >conftest.err
5505  rm -f conftest.er1
5506  cat conftest.err >&5
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); } &&
5509	 { ac_try='test -z "$ac_cxx_werror_flag"
5510			 || test ! -s conftest.err'
5511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512  (eval $ac_try) 2>&5
5513  ac_status=$?
5514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515  (exit $ac_status); }; } &&
5516	 { ac_try='test -s conftest.$ac_objext'
5517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518  (eval $ac_try) 2>&5
5519  ac_status=$?
5520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521  (exit $ac_status); }; }; then
5522  ac_compiler_gnu=yes
5523else
5524  echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
5526
5527ac_compiler_gnu=no
5528fi
5529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5530ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5531
5532fi
5533echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5534echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5535GXX=`test $ac_compiler_gnu = yes && echo yes`
5536ac_test_CXXFLAGS=${CXXFLAGS+set}
5537ac_save_CXXFLAGS=$CXXFLAGS
5538CXXFLAGS="-g"
5539echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5540echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5541if test "${ac_cv_prog_cxx_g+set}" = set; then
5542  echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
5544  cat >conftest.$ac_ext <<_ACEOF
5545/* confdefs.h.  */
5546_ACEOF
5547cat confdefs.h >>conftest.$ac_ext
5548cat >>conftest.$ac_ext <<_ACEOF
5549/* end confdefs.h.  */
5550
5551int
5552main ()
5553{
5554
5555  ;
5556  return 0;
5557}
5558_ACEOF
5559rm -f conftest.$ac_objext
5560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561  (eval $ac_compile) 2>conftest.er1
5562  ac_status=$?
5563  grep -v '^ *+' conftest.er1 >conftest.err
5564  rm -f conftest.er1
5565  cat conftest.err >&5
5566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567  (exit $ac_status); } &&
5568	 { ac_try='test -z "$ac_cxx_werror_flag"
5569			 || test ! -s conftest.err'
5570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571  (eval $ac_try) 2>&5
5572  ac_status=$?
5573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574  (exit $ac_status); }; } &&
5575	 { ac_try='test -s conftest.$ac_objext'
5576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577  (eval $ac_try) 2>&5
5578  ac_status=$?
5579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); }; }; then
5581  ac_cv_prog_cxx_g=yes
5582else
5583  echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
5586ac_cv_prog_cxx_g=no
5587fi
5588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5589fi
5590echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5591echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5592if test "$ac_test_CXXFLAGS" = set; then
5593  CXXFLAGS=$ac_save_CXXFLAGS
5594elif test $ac_cv_prog_cxx_g = yes; then
5595  if test "$GXX" = yes; then
5596    CXXFLAGS="-g -O2"
5597  else
5598    CXXFLAGS="-g"
5599  fi
5600else
5601  if test "$GXX" = yes; then
5602    CXXFLAGS="-O2"
5603  else
5604    CXXFLAGS=
5605  fi
5606fi
5607for ac_declaration in \
5608   '' \
5609   'extern "C" void std::exit (int) throw (); using std::exit;' \
5610   'extern "C" void std::exit (int); using std::exit;' \
5611   'extern "C" void exit (int) throw ();' \
5612   'extern "C" void exit (int);' \
5613   'void exit (int);'
5614do
5615  cat >conftest.$ac_ext <<_ACEOF
5616/* confdefs.h.  */
5617_ACEOF
5618cat confdefs.h >>conftest.$ac_ext
5619cat >>conftest.$ac_ext <<_ACEOF
5620/* end confdefs.h.  */
5621$ac_declaration
5622#include <stdlib.h>
5623int
5624main ()
5625{
5626exit (42);
5627  ;
5628  return 0;
5629}
5630_ACEOF
5631rm -f conftest.$ac_objext
5632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633  (eval $ac_compile) 2>conftest.er1
5634  ac_status=$?
5635  grep -v '^ *+' conftest.er1 >conftest.err
5636  rm -f conftest.er1
5637  cat conftest.err >&5
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); } &&
5640	 { ac_try='test -z "$ac_cxx_werror_flag"
5641			 || test ! -s conftest.err'
5642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643  (eval $ac_try) 2>&5
5644  ac_status=$?
5645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646  (exit $ac_status); }; } &&
5647	 { ac_try='test -s conftest.$ac_objext'
5648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649  (eval $ac_try) 2>&5
5650  ac_status=$?
5651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652  (exit $ac_status); }; }; then
5653  :
5654else
5655  echo "$as_me: failed program was:" >&5
5656sed 's/^/| /' conftest.$ac_ext >&5
5657
5658continue
5659fi
5660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5661  cat >conftest.$ac_ext <<_ACEOF
5662/* confdefs.h.  */
5663_ACEOF
5664cat confdefs.h >>conftest.$ac_ext
5665cat >>conftest.$ac_ext <<_ACEOF
5666/* end confdefs.h.  */
5667$ac_declaration
5668int
5669main ()
5670{
5671exit (42);
5672  ;
5673  return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext
5677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678  (eval $ac_compile) 2>conftest.er1
5679  ac_status=$?
5680  grep -v '^ *+' conftest.er1 >conftest.err
5681  rm -f conftest.er1
5682  cat conftest.err >&5
5683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684  (exit $ac_status); } &&
5685	 { ac_try='test -z "$ac_cxx_werror_flag"
5686			 || test ! -s conftest.err'
5687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688  (eval $ac_try) 2>&5
5689  ac_status=$?
5690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691  (exit $ac_status); }; } &&
5692	 { ac_try='test -s conftest.$ac_objext'
5693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694  (eval $ac_try) 2>&5
5695  ac_status=$?
5696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697  (exit $ac_status); }; }; then
5698  break
5699else
5700  echo "$as_me: failed program was:" >&5
5701sed 's/^/| /' conftest.$ac_ext >&5
5702
5703fi
5704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5705done
5706rm -f conftest*
5707if test -n "$ac_declaration"; then
5708  echo '#ifdef __cplusplus' >>confdefs.h
5709  echo $ac_declaration      >>confdefs.h
5710  echo '#endif'             >>confdefs.h
5711fi
5712
5713ac_ext=cc
5714ac_cpp='$CXXCPP $CPPFLAGS'
5715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5718
5719ac_ext=cc
5720ac_cpp='$CXXCPP $CPPFLAGS'
5721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5724echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5725echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5726if test -z "$CXXCPP"; then
5727  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5728  echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730      # Double quotes because CXXCPP needs to be expanded
5731    for CXXCPP in "$CXX -E" "/lib/cpp"
5732    do
5733      ac_preproc_ok=false
5734for ac_cxx_preproc_warn_flag in '' yes
5735do
5736  # Use a header file that comes with gcc, so configuring glibc
5737  # with a fresh cross-compiler works.
5738  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5739  # <limits.h> exists even on freestanding compilers.
5740  # On the NeXT, cc -E runs the code through the compiler's parser,
5741  # not just through cpp. "Syntax error" is here to catch this case.
5742  cat >conftest.$ac_ext <<_ACEOF
5743/* confdefs.h.  */
5744_ACEOF
5745cat confdefs.h >>conftest.$ac_ext
5746cat >>conftest.$ac_ext <<_ACEOF
5747/* end confdefs.h.  */
5748#ifdef __STDC__
5749# include <limits.h>
5750#else
5751# include <assert.h>
5752#endif
5753		     Syntax error
5754_ACEOF
5755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5756  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5757  ac_status=$?
5758  grep -v '^ *+' conftest.er1 >conftest.err
5759  rm -f conftest.er1
5760  cat conftest.err >&5
5761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762  (exit $ac_status); } >/dev/null; then
5763  if test -s conftest.err; then
5764    ac_cpp_err=$ac_cxx_preproc_warn_flag
5765    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5766  else
5767    ac_cpp_err=
5768  fi
5769else
5770  ac_cpp_err=yes
5771fi
5772if test -z "$ac_cpp_err"; then
5773  :
5774else
5775  echo "$as_me: failed program was:" >&5
5776sed 's/^/| /' conftest.$ac_ext >&5
5777
5778  # Broken: fails on valid input.
5779continue
5780fi
5781rm -f conftest.err conftest.$ac_ext
5782
5783  # OK, works on sane cases.  Now check whether non-existent headers
5784  # can be detected and how.
5785  cat >conftest.$ac_ext <<_ACEOF
5786/* confdefs.h.  */
5787_ACEOF
5788cat confdefs.h >>conftest.$ac_ext
5789cat >>conftest.$ac_ext <<_ACEOF
5790/* end confdefs.h.  */
5791#include <ac_nonexistent.h>
5792_ACEOF
5793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5794  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5795  ac_status=$?
5796  grep -v '^ *+' conftest.er1 >conftest.err
5797  rm -f conftest.er1
5798  cat conftest.err >&5
5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800  (exit $ac_status); } >/dev/null; then
5801  if test -s conftest.err; then
5802    ac_cpp_err=$ac_cxx_preproc_warn_flag
5803    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5804  else
5805    ac_cpp_err=
5806  fi
5807else
5808  ac_cpp_err=yes
5809fi
5810if test -z "$ac_cpp_err"; then
5811  # Broken: success on invalid input.
5812continue
5813else
5814  echo "$as_me: failed program was:" >&5
5815sed 's/^/| /' conftest.$ac_ext >&5
5816
5817  # Passes both tests.
5818ac_preproc_ok=:
5819break
5820fi
5821rm -f conftest.err conftest.$ac_ext
5822
5823done
5824# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5825rm -f conftest.err conftest.$ac_ext
5826if $ac_preproc_ok; then
5827  break
5828fi
5829
5830    done
5831    ac_cv_prog_CXXCPP=$CXXCPP
5832
5833fi
5834  CXXCPP=$ac_cv_prog_CXXCPP
5835else
5836  ac_cv_prog_CXXCPP=$CXXCPP
5837fi
5838echo "$as_me:$LINENO: result: $CXXCPP" >&5
5839echo "${ECHO_T}$CXXCPP" >&6
5840ac_preproc_ok=false
5841for ac_cxx_preproc_warn_flag in '' yes
5842do
5843  # Use a header file that comes with gcc, so configuring glibc
5844  # with a fresh cross-compiler works.
5845  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5846  # <limits.h> exists even on freestanding compilers.
5847  # On the NeXT, cc -E runs the code through the compiler's parser,
5848  # not just through cpp. "Syntax error" is here to catch this case.
5849  cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h.  */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h.  */
5855#ifdef __STDC__
5856# include <limits.h>
5857#else
5858# include <assert.h>
5859#endif
5860		     Syntax error
5861_ACEOF
5862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5863  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5864  ac_status=$?
5865  grep -v '^ *+' conftest.er1 >conftest.err
5866  rm -f conftest.er1
5867  cat conftest.err >&5
5868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869  (exit $ac_status); } >/dev/null; then
5870  if test -s conftest.err; then
5871    ac_cpp_err=$ac_cxx_preproc_warn_flag
5872    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5873  else
5874    ac_cpp_err=
5875  fi
5876else
5877  ac_cpp_err=yes
5878fi
5879if test -z "$ac_cpp_err"; then
5880  :
5881else
5882  echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885  # Broken: fails on valid input.
5886continue
5887fi
5888rm -f conftest.err conftest.$ac_ext
5889
5890  # OK, works on sane cases.  Now check whether non-existent headers
5891  # can be detected and how.
5892  cat >conftest.$ac_ext <<_ACEOF
5893/* confdefs.h.  */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h.  */
5898#include <ac_nonexistent.h>
5899_ACEOF
5900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5901  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5902  ac_status=$?
5903  grep -v '^ *+' conftest.er1 >conftest.err
5904  rm -f conftest.er1
5905  cat conftest.err >&5
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); } >/dev/null; then
5908  if test -s conftest.err; then
5909    ac_cpp_err=$ac_cxx_preproc_warn_flag
5910    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5911  else
5912    ac_cpp_err=
5913  fi
5914else
5915  ac_cpp_err=yes
5916fi
5917if test -z "$ac_cpp_err"; then
5918  # Broken: success on invalid input.
5919continue
5920else
5921  echo "$as_me: failed program was:" >&5
5922sed 's/^/| /' conftest.$ac_ext >&5
5923
5924  # Passes both tests.
5925ac_preproc_ok=:
5926break
5927fi
5928rm -f conftest.err conftest.$ac_ext
5929
5930done
5931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5932rm -f conftest.err conftest.$ac_ext
5933if $ac_preproc_ok; then
5934  :
5935else
5936  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5937See \`config.log' for more details." >&5
5938echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5939See \`config.log' for more details." >&2;}
5940   { (exit 1); exit 1; }; }
5941fi
5942
5943ac_ext=cc
5944ac_cpp='$CXXCPP $CPPFLAGS'
5945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5948
5949
5950ac_ext=f
5951ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5952ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5954if test -n "$ac_tool_prefix"; then
5955  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5956  do
5957    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5958set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5959echo "$as_me:$LINENO: checking for $ac_word" >&5
5960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5961if test "${ac_cv_prog_F77+set}" = set; then
5962  echo $ECHO_N "(cached) $ECHO_C" >&6
5963else
5964  if test -n "$F77"; then
5965  ac_cv_prog_F77="$F77" # Let the user override the test.
5966else
5967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968for as_dir in $PATH
5969do
5970  IFS=$as_save_IFS
5971  test -z "$as_dir" && as_dir=.
5972  for ac_exec_ext in '' $ac_executable_extensions; do
5973  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5974    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5975    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5976    break 2
5977  fi
5978done
5979done
5980
5981fi
5982fi
5983F77=$ac_cv_prog_F77
5984if test -n "$F77"; then
5985  echo "$as_me:$LINENO: result: $F77" >&5
5986echo "${ECHO_T}$F77" >&6
5987else
5988  echo "$as_me:$LINENO: result: no" >&5
5989echo "${ECHO_T}no" >&6
5990fi
5991
5992    test -n "$F77" && break
5993  done
5994fi
5995if test -z "$F77"; then
5996  ac_ct_F77=$F77
5997  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5998do
5999  # Extract the first word of "$ac_prog", so it can be a program name with args.
6000set dummy $ac_prog; ac_word=$2
6001echo "$as_me:$LINENO: checking for $ac_word" >&5
6002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6003if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6004  echo $ECHO_N "(cached) $ECHO_C" >&6
6005else
6006  if test -n "$ac_ct_F77"; then
6007  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012  IFS=$as_save_IFS
6013  test -z "$as_dir" && as_dir=.
6014  for ac_exec_ext in '' $ac_executable_extensions; do
6015  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016    ac_cv_prog_ac_ct_F77="$ac_prog"
6017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018    break 2
6019  fi
6020done
6021done
6022
6023fi
6024fi
6025ac_ct_F77=$ac_cv_prog_ac_ct_F77
6026if test -n "$ac_ct_F77"; then
6027  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6028echo "${ECHO_T}$ac_ct_F77" >&6
6029else
6030  echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6
6032fi
6033
6034  test -n "$ac_ct_F77" && break
6035done
6036
6037  F77=$ac_ct_F77
6038fi
6039
6040
6041# Provide some information about the compiler.
6042echo "$as_me:6042:" \
6043     "checking for Fortran 77 compiler version" >&5
6044ac_compiler=`set X $ac_compile; echo $2`
6045{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6046  (eval $ac_compiler --version </dev/null >&5) 2>&5
6047  ac_status=$?
6048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049  (exit $ac_status); }
6050{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6051  (eval $ac_compiler -v </dev/null >&5) 2>&5
6052  ac_status=$?
6053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054  (exit $ac_status); }
6055{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6056  (eval $ac_compiler -V </dev/null >&5) 2>&5
6057  ac_status=$?
6058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059  (exit $ac_status); }
6060rm -f a.out
6061
6062# If we don't use `.F' as extension, the preprocessor is not run on the
6063# input file.  (Note that this only needs to work for GNU compilers.)
6064ac_save_ext=$ac_ext
6065ac_ext=F
6066echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6067echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6068if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6069  echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071  cat >conftest.$ac_ext <<_ACEOF
6072      program main
6073#ifndef __GNUC__
6074       choke me
6075#endif
6076
6077      end
6078_ACEOF
6079rm -f conftest.$ac_objext
6080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081  (eval $ac_compile) 2>conftest.er1
6082  ac_status=$?
6083  grep -v '^ *+' conftest.er1 >conftest.err
6084  rm -f conftest.er1
6085  cat conftest.err >&5
6086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087  (exit $ac_status); } &&
6088	 { ac_try='test -z "$ac_f77_werror_flag"
6089			 || test ! -s conftest.err'
6090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091  (eval $ac_try) 2>&5
6092  ac_status=$?
6093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094  (exit $ac_status); }; } &&
6095	 { ac_try='test -s conftest.$ac_objext'
6096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097  (eval $ac_try) 2>&5
6098  ac_status=$?
6099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100  (exit $ac_status); }; }; then
6101  ac_compiler_gnu=yes
6102else
6103  echo "$as_me: failed program was:" >&5
6104sed 's/^/| /' conftest.$ac_ext >&5
6105
6106ac_compiler_gnu=no
6107fi
6108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6109ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6110
6111fi
6112echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6113echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6114ac_ext=$ac_save_ext
6115ac_test_FFLAGS=${FFLAGS+set}
6116ac_save_FFLAGS=$FFLAGS
6117FFLAGS=
6118echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6119echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6120if test "${ac_cv_prog_f77_g+set}" = set; then
6121  echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123  FFLAGS=-g
6124cat >conftest.$ac_ext <<_ACEOF
6125      program main
6126
6127      end
6128_ACEOF
6129rm -f conftest.$ac_objext
6130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131  (eval $ac_compile) 2>conftest.er1
6132  ac_status=$?
6133  grep -v '^ *+' conftest.er1 >conftest.err
6134  rm -f conftest.er1
6135  cat conftest.err >&5
6136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137  (exit $ac_status); } &&
6138	 { ac_try='test -z "$ac_f77_werror_flag"
6139			 || test ! -s conftest.err'
6140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141  (eval $ac_try) 2>&5
6142  ac_status=$?
6143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144  (exit $ac_status); }; } &&
6145	 { ac_try='test -s conftest.$ac_objext'
6146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147  (eval $ac_try) 2>&5
6148  ac_status=$?
6149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150  (exit $ac_status); }; }; then
6151  ac_cv_prog_f77_g=yes
6152else
6153  echo "$as_me: failed program was:" >&5
6154sed 's/^/| /' conftest.$ac_ext >&5
6155
6156ac_cv_prog_f77_g=no
6157fi
6158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159
6160fi
6161echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6162echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6163if test "$ac_test_FFLAGS" = set; then
6164  FFLAGS=$ac_save_FFLAGS
6165elif test $ac_cv_prog_f77_g = yes; then
6166  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6167    FFLAGS="-g -O2"
6168  else
6169    FFLAGS="-g"
6170  fi
6171else
6172  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6173    FFLAGS="-O2"
6174  else
6175    FFLAGS=
6176  fi
6177fi
6178
6179G77=`test $ac_compiler_gnu = yes && echo yes`
6180ac_ext=c
6181ac_cpp='$CPP $CPPFLAGS'
6182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184ac_compiler_gnu=$ac_cv_c_compiler_gnu
6185
6186
6187
6188# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6189
6190# find the maximum length of command line arguments
6191echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6192echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6193if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6194  echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196    i=0
6197  testring="ABCD"
6198
6199  case $build_os in
6200  msdosdjgpp*)
6201    # On DJGPP, this test can blow up pretty badly due to problems in libc
6202    # (any single argument exceeding 2000 bytes causes a buffer overrun
6203    # during glob expansion).  Even if it were fixed, the result of this
6204    # check would be larger than it should be.
6205    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6206    ;;
6207
6208  gnu*)
6209    # Under GNU Hurd, this test is not required because there is
6210    # no limit to the length of command line arguments.
6211    # Libtool will interpret -1 as no limit whatsoever
6212    lt_cv_sys_max_cmd_len=-1;
6213    ;;
6214
6215  cygwin* | mingw*)
6216    # On Win9x/ME, this test blows up -- it succeeds, but takes
6217    # about 5 minutes as the teststring grows exponentially.
6218    # Worse, since 9x/ME are not pre-emptively multitasking,
6219    # you end up with a "frozen" computer, even though with patience
6220    # the test eventually succeeds (with a max line length of 256k).
6221    # Instead, let's just punt: use the minimum linelength reported by
6222    # all of the supported platforms: 8192 (on NT/2K/XP).
6223    lt_cv_sys_max_cmd_len=8192;
6224    ;;
6225
6226  amigaos*)
6227    # On AmigaOS with pdksh, this test takes hours, literally.
6228    # So we just punt and use a minimum line length of 8192.
6229    lt_cv_sys_max_cmd_len=8192;
6230    ;;
6231
6232 *)
6233    # If test is not a shell built-in, we'll probably end up computing a
6234    # maximum length that is only half of the actual maximum length, but
6235    # we can't tell.
6236    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
6237	       = "XX$testring") >/dev/null 2>&1 &&
6238	    new_result=`expr "X$testring" : ".*" 2>&1` &&
6239	    lt_cv_sys_max_cmd_len=$new_result &&
6240	    test $i != 17 # 1/2 MB should be enough
6241    do
6242      i=`expr $i + 1`
6243      testring=$testring$testring
6244    done
6245    testring=
6246    # Add a significant safety factor because C++ compilers can tack on massive
6247    # amounts of additional arguments before passing them to the linker.
6248    # It appears as though 1/2 is a usable value.
6249    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6250    ;;
6251  esac
6252
6253fi
6254
6255if test -n $lt_cv_sys_max_cmd_len ; then
6256  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6257echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6258else
6259  echo "$as_me:$LINENO: result: none" >&5
6260echo "${ECHO_T}none" >&6
6261fi
6262
6263
6264
6265
6266# Check for command to grab the raw symbol name followed by C symbol from nm.
6267echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6268echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6269if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6270  echo $ECHO_N "(cached) $ECHO_C" >&6
6271else
6272
6273# These are sane defaults that work on at least a few old systems.
6274# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6275
6276# Character class describing NM global symbol codes.
6277symcode='[BCDEGRST]'
6278
6279# Regexp to match symbols that can be accessed directly from C.
6280sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6281
6282# Transform the above into a raw symbol and a C symbol.
6283symxfrm='\1 \2\3 \3'
6284
6285# Transform an extracted symbol line into a proper C declaration
6286lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6287
6288# Transform an extracted symbol line into symbol name and symbol address
6289lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6290
6291# Define system-specific variables.
6292case $host_os in
6293aix*)
6294  symcode='[BCDT]'
6295  ;;
6296cygwin* | mingw* | pw32*)
6297  symcode='[ABCDGISTW]'
6298  ;;
6299hpux*) # Its linker distinguishes data from code symbols
6300  if test "$host_cpu" = ia64; then
6301    symcode='[ABCDEGRST]'
6302  fi
6303  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6304  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6305  ;;
6306irix* | nonstopux*)
6307  symcode='[BCDEGRST]'
6308  ;;
6309osf*)
6310  symcode='[BCDEGQRST]'
6311  ;;
6312solaris* | sysv5*)
6313  symcode='[BDRT]'
6314  ;;
6315sysv4)
6316  symcode='[DFNSTU]'
6317  ;;
6318esac
6319
6320# Handle CRLF in mingw tool chain
6321opt_cr=
6322case $build_os in
6323mingw*)
6324  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6325  ;;
6326esac
6327
6328# If we're using GNU nm, then use its standard symbol codes.
6329case `$NM -V 2>&1` in
6330*GNU* | *'with BFD'*)
6331  symcode='[ABCDGIRSTW]' ;;
6332esac
6333
6334# Try without a prefix undercore, then with it.
6335for ac_symprfx in "" "_"; do
6336
6337  # Write the raw and C identifiers.
6338  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6339
6340  # Check to see that the pipe works correctly.
6341  pipe_works=no
6342
6343  rm -f conftest*
6344  cat > conftest.$ac_ext <<EOF
6345#ifdef __cplusplus
6346extern "C" {
6347#endif
6348char nm_test_var;
6349void nm_test_func(){}
6350#ifdef __cplusplus
6351}
6352#endif
6353int main(){nm_test_var='a';nm_test_func();return(0);}
6354EOF
6355
6356  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357  (eval $ac_compile) 2>&5
6358  ac_status=$?
6359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360  (exit $ac_status); }; then
6361    # Now try to grab the symbols.
6362    nlist=conftest.nm
6363    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6364  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6365  ac_status=$?
6366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); } && test -s "$nlist"; then
6368      # Try sorting and uniquifying the output.
6369      if sort "$nlist" | uniq > "$nlist"T; then
6370	mv -f "$nlist"T "$nlist"
6371      else
6372	rm -f "$nlist"T
6373      fi
6374
6375      # Make sure that we snagged all the symbols we need.
6376      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6377	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6378	  cat <<EOF > conftest.$ac_ext
6379#ifdef __cplusplus
6380extern "C" {
6381#endif
6382
6383EOF
6384	  # Now generate the symbol file.
6385	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6386
6387	  cat <<EOF >> conftest.$ac_ext
6388#if defined (__STDC__) && __STDC__
6389# define lt_ptr_t void *
6390#else
6391# define lt_ptr_t char *
6392# define const
6393#endif
6394
6395/* The mapping between symbol names and symbols. */
6396const struct {
6397  const char *name;
6398  lt_ptr_t address;
6399}
6400lt_preloaded_symbols[] =
6401{
6402EOF
6403	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6404	  cat <<\EOF >> conftest.$ac_ext
6405  {0, (lt_ptr_t) 0}
6406};
6407
6408#ifdef __cplusplus
6409}
6410#endif
6411EOF
6412	  # Now try linking the two files.
6413	  mv conftest.$ac_objext conftstm.$ac_objext
6414	  lt_save_LIBS="$LIBS"
6415	  lt_save_CFLAGS="$CFLAGS"
6416	  LIBS="conftstm.$ac_objext"
6417	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6418	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6419  (eval $ac_link) 2>&5
6420  ac_status=$?
6421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6423	    pipe_works=yes
6424	  fi
6425	  LIBS="$lt_save_LIBS"
6426	  CFLAGS="$lt_save_CFLAGS"
6427	else
6428	  echo "cannot find nm_test_func in $nlist" >&5
6429	fi
6430      else
6431	echo "cannot find nm_test_var in $nlist" >&5
6432      fi
6433    else
6434      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6435    fi
6436  else
6437    echo "$progname: failed program was:" >&5
6438    cat conftest.$ac_ext >&5
6439  fi
6440  rm -f conftest* conftst*
6441
6442  # Do not use the global_symbol_pipe unless it works.
6443  if test "$pipe_works" = yes; then
6444    break
6445  else
6446    lt_cv_sys_global_symbol_pipe=
6447  fi
6448done
6449
6450fi
6451
6452if test -z "$lt_cv_sys_global_symbol_pipe"; then
6453  lt_cv_sys_global_symbol_to_cdecl=
6454fi
6455if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6456  echo "$as_me:$LINENO: result: failed" >&5
6457echo "${ECHO_T}failed" >&6
6458else
6459  echo "$as_me:$LINENO: result: ok" >&5
6460echo "${ECHO_T}ok" >&6
6461fi
6462
6463echo "$as_me:$LINENO: checking for objdir" >&5
6464echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6465if test "${lt_cv_objdir+set}" = set; then
6466  echo $ECHO_N "(cached) $ECHO_C" >&6
6467else
6468  rm -f .libs 2>/dev/null
6469mkdir .libs 2>/dev/null
6470if test -d .libs; then
6471  lt_cv_objdir=.libs
6472else
6473  # MS-DOS does not allow filenames that begin with a dot.
6474  lt_cv_objdir=_libs
6475fi
6476rmdir .libs 2>/dev/null
6477fi
6478echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6479echo "${ECHO_T}$lt_cv_objdir" >&6
6480objdir=$lt_cv_objdir
6481
6482
6483
6484
6485
6486case $host_os in
6487aix3*)
6488  # AIX sometimes has problems with the GCC collect2 program.  For some
6489  # reason, if we set the COLLECT_NAMES environment variable, the problems
6490  # vanish in a puff of smoke.
6491  if test "X${COLLECT_NAMES+set}" != Xset; then
6492    COLLECT_NAMES=
6493    export COLLECT_NAMES
6494  fi
6495  ;;
6496esac
6497
6498# Sed substitution that helps us do robust quoting.  It backslashifies
6499# metacharacters that are still active within double-quoted strings.
6500Xsed='sed -e s/^X//'
6501sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6502
6503# Same as above, but do not quote variable references.
6504double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6505
6506# Sed substitution to delay expansion of an escaped shell variable in a
6507# double_quote_subst'ed string.
6508delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6509
6510# Sed substitution to avoid accidental globbing in evaled expressions
6511no_glob_subst='s/\*/\\\*/g'
6512
6513# Constants:
6514rm="rm -f"
6515
6516# Global variables:
6517default_ofile=libtool
6518can_build_shared=yes
6519
6520# All known linkers require a `.a' archive for static linking (except M$VC,
6521# which needs '.lib').
6522libext=a
6523ltmain="$ac_aux_dir/ltmain.sh"
6524ofile="$default_ofile"
6525with_gnu_ld="$lt_cv_prog_gnu_ld"
6526
6527if test -n "$ac_tool_prefix"; then
6528  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6529set dummy ${ac_tool_prefix}ar; ac_word=$2
6530echo "$as_me:$LINENO: checking for $ac_word" >&5
6531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6532if test "${ac_cv_prog_AR+set}" = set; then
6533  echo $ECHO_N "(cached) $ECHO_C" >&6
6534else
6535  if test -n "$AR"; then
6536  ac_cv_prog_AR="$AR" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541  IFS=$as_save_IFS
6542  test -z "$as_dir" && as_dir=.
6543  for ac_exec_ext in '' $ac_executable_extensions; do
6544  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545    ac_cv_prog_AR="${ac_tool_prefix}ar"
6546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547    break 2
6548  fi
6549done
6550done
6551
6552fi
6553fi
6554AR=$ac_cv_prog_AR
6555if test -n "$AR"; then
6556  echo "$as_me:$LINENO: result: $AR" >&5
6557echo "${ECHO_T}$AR" >&6
6558else
6559  echo "$as_me:$LINENO: result: no" >&5
6560echo "${ECHO_T}no" >&6
6561fi
6562
6563fi
6564if test -z "$ac_cv_prog_AR"; then
6565  ac_ct_AR=$AR
6566  # Extract the first word of "ar", so it can be a program name with args.
6567set dummy ar; ac_word=$2
6568echo "$as_me:$LINENO: checking for $ac_word" >&5
6569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6570if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6571  echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573  if test -n "$ac_ct_AR"; then
6574  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6575else
6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577for as_dir in $PATH
6578do
6579  IFS=$as_save_IFS
6580  test -z "$as_dir" && as_dir=.
6581  for ac_exec_ext in '' $ac_executable_extensions; do
6582  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583    ac_cv_prog_ac_ct_AR="ar"
6584    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585    break 2
6586  fi
6587done
6588done
6589
6590  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6591fi
6592fi
6593ac_ct_AR=$ac_cv_prog_ac_ct_AR
6594if test -n "$ac_ct_AR"; then
6595  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6596echo "${ECHO_T}$ac_ct_AR" >&6
6597else
6598  echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6
6600fi
6601
6602  AR=$ac_ct_AR
6603else
6604  AR="$ac_cv_prog_AR"
6605fi
6606
6607if test -n "$ac_tool_prefix"; then
6608  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6609set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6610echo "$as_me:$LINENO: checking for $ac_word" >&5
6611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6612if test "${ac_cv_prog_RANLIB+set}" = set; then
6613  echo $ECHO_N "(cached) $ECHO_C" >&6
6614else
6615  if test -n "$RANLIB"; then
6616  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6617else
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621  IFS=$as_save_IFS
6622  test -z "$as_dir" && as_dir=.
6623  for ac_exec_ext in '' $ac_executable_extensions; do
6624  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6626    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627    break 2
6628  fi
6629done
6630done
6631
6632fi
6633fi
6634RANLIB=$ac_cv_prog_RANLIB
6635if test -n "$RANLIB"; then
6636  echo "$as_me:$LINENO: result: $RANLIB" >&5
6637echo "${ECHO_T}$RANLIB" >&6
6638else
6639  echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6
6641fi
6642
6643fi
6644if test -z "$ac_cv_prog_RANLIB"; then
6645  ac_ct_RANLIB=$RANLIB
6646  # Extract the first word of "ranlib", so it can be a program name with args.
6647set dummy ranlib; ac_word=$2
6648echo "$as_me:$LINENO: checking for $ac_word" >&5
6649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6650if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6651  echo $ECHO_N "(cached) $ECHO_C" >&6
6652else
6653  if test -n "$ac_ct_RANLIB"; then
6654  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6655else
6656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657for as_dir in $PATH
6658do
6659  IFS=$as_save_IFS
6660  test -z "$as_dir" && as_dir=.
6661  for ac_exec_ext in '' $ac_executable_extensions; do
6662  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6663    ac_cv_prog_ac_ct_RANLIB="ranlib"
6664    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665    break 2
6666  fi
6667done
6668done
6669
6670  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6671fi
6672fi
6673ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6674if test -n "$ac_ct_RANLIB"; then
6675  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6676echo "${ECHO_T}$ac_ct_RANLIB" >&6
6677else
6678  echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6
6680fi
6681
6682  RANLIB=$ac_ct_RANLIB
6683else
6684  RANLIB="$ac_cv_prog_RANLIB"
6685fi
6686
6687if test -n "$ac_tool_prefix"; then
6688  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6689set dummy ${ac_tool_prefix}strip; ac_word=$2
6690echo "$as_me:$LINENO: checking for $ac_word" >&5
6691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6692if test "${ac_cv_prog_STRIP+set}" = set; then
6693  echo $ECHO_N "(cached) $ECHO_C" >&6
6694else
6695  if test -n "$STRIP"; then
6696  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703  for ac_exec_ext in '' $ac_executable_extensions; do
6704  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710done
6711
6712fi
6713fi
6714STRIP=$ac_cv_prog_STRIP
6715if test -n "$STRIP"; then
6716  echo "$as_me:$LINENO: result: $STRIP" >&5
6717echo "${ECHO_T}$STRIP" >&6
6718else
6719  echo "$as_me:$LINENO: result: no" >&5
6720echo "${ECHO_T}no" >&6
6721fi
6722
6723fi
6724if test -z "$ac_cv_prog_STRIP"; then
6725  ac_ct_STRIP=$STRIP
6726  # Extract the first word of "strip", so it can be a program name with args.
6727set dummy strip; ac_word=$2
6728echo "$as_me:$LINENO: checking for $ac_word" >&5
6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6731  echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733  if test -n "$ac_ct_STRIP"; then
6734  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739  IFS=$as_save_IFS
6740  test -z "$as_dir" && as_dir=.
6741  for ac_exec_ext in '' $ac_executable_extensions; do
6742  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743    ac_cv_prog_ac_ct_STRIP="strip"
6744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745    break 2
6746  fi
6747done
6748done
6749
6750  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6751fi
6752fi
6753ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6754if test -n "$ac_ct_STRIP"; then
6755  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6756echo "${ECHO_T}$ac_ct_STRIP" >&6
6757else
6758  echo "$as_me:$LINENO: result: no" >&5
6759echo "${ECHO_T}no" >&6
6760fi
6761
6762  STRIP=$ac_ct_STRIP
6763else
6764  STRIP="$ac_cv_prog_STRIP"
6765fi
6766
6767
6768old_CC="$CC"
6769old_CFLAGS="$CFLAGS"
6770
6771# Set sane defaults for various variables
6772test -z "$AR" && AR=ar
6773test -z "$AR_FLAGS" && AR_FLAGS=cru
6774test -z "$AS" && AS=as
6775test -z "$CC" && CC=cc
6776test -z "$LTCC" && LTCC=$CC
6777test -z "$DLLTOOL" && DLLTOOL=dlltool
6778test -z "$LD" && LD=ld
6779test -z "$LN_S" && LN_S="ln -s"
6780test -z "$MAGIC_CMD" && MAGIC_CMD=file
6781test -z "$NM" && NM=nm
6782test -z "$SED" && SED=sed
6783test -z "$OBJDUMP" && OBJDUMP=objdump
6784test -z "$RANLIB" && RANLIB=:
6785test -z "$STRIP" && STRIP=:
6786test -z "$ac_objext" && ac_objext=o
6787
6788# Determine commands to create old-style static archives.
6789old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6790old_postinstall_cmds='chmod 644 $oldlib'
6791old_postuninstall_cmds=
6792
6793if test -n "$RANLIB"; then
6794  case $host_os in
6795  openbsd*)
6796    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6797    ;;
6798  *)
6799    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6800    ;;
6801  esac
6802  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6803fi
6804
6805# Only perform the check for file, if the check method requires it
6806case $deplibs_check_method in
6807file_magic*)
6808  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6809    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6810echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6811if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6812  echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814  case $MAGIC_CMD in
6815[\\/*] |  ?:[\\/]*)
6816  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6817  ;;
6818*)
6819  lt_save_MAGIC_CMD="$MAGIC_CMD"
6820  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6821  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6822  for ac_dir in $ac_dummy; do
6823    IFS="$lt_save_ifs"
6824    test -z "$ac_dir" && ac_dir=.
6825    if test -f $ac_dir/${ac_tool_prefix}file; then
6826      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6827      if test -n "$file_magic_test_file"; then
6828	case $deplibs_check_method in
6829	"file_magic "*)
6830	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6831	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6832	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6833	    $EGREP "$file_magic_regex" > /dev/null; then
6834	    :
6835	  else
6836	    cat <<EOF 1>&2
6837
6838*** Warning: the command libtool uses to detect shared libraries,
6839*** $file_magic_cmd, produces output that libtool cannot recognize.
6840*** The result is that libtool may fail to recognize shared libraries
6841*** as such.  This will affect the creation of libtool libraries that
6842*** depend on shared libraries, but programs linked with such libtool
6843*** libraries will work regardless of this problem.  Nevertheless, you
6844*** may want to report the problem to your system manager and/or to
6845*** bug-libtool@gnu.org
6846
6847EOF
6848	  fi ;;
6849	esac
6850      fi
6851      break
6852    fi
6853  done
6854  IFS="$lt_save_ifs"
6855  MAGIC_CMD="$lt_save_MAGIC_CMD"
6856  ;;
6857esac
6858fi
6859
6860MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6861if test -n "$MAGIC_CMD"; then
6862  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6863echo "${ECHO_T}$MAGIC_CMD" >&6
6864else
6865  echo "$as_me:$LINENO: result: no" >&5
6866echo "${ECHO_T}no" >&6
6867fi
6868
6869if test -z "$lt_cv_path_MAGIC_CMD"; then
6870  if test -n "$ac_tool_prefix"; then
6871    echo "$as_me:$LINENO: checking for file" >&5
6872echo $ECHO_N "checking for file... $ECHO_C" >&6
6873if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6874  echo $ECHO_N "(cached) $ECHO_C" >&6
6875else
6876  case $MAGIC_CMD in
6877[\\/*] |  ?:[\\/]*)
6878  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6879  ;;
6880*)
6881  lt_save_MAGIC_CMD="$MAGIC_CMD"
6882  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6883  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6884  for ac_dir in $ac_dummy; do
6885    IFS="$lt_save_ifs"
6886    test -z "$ac_dir" && ac_dir=.
6887    if test -f $ac_dir/file; then
6888      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6889      if test -n "$file_magic_test_file"; then
6890	case $deplibs_check_method in
6891	"file_magic "*)
6892	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6893	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6894	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6895	    $EGREP "$file_magic_regex" > /dev/null; then
6896	    :
6897	  else
6898	    cat <<EOF 1>&2
6899
6900*** Warning: the command libtool uses to detect shared libraries,
6901*** $file_magic_cmd, produces output that libtool cannot recognize.
6902*** The result is that libtool may fail to recognize shared libraries
6903*** as such.  This will affect the creation of libtool libraries that
6904*** depend on shared libraries, but programs linked with such libtool
6905*** libraries will work regardless of this problem.  Nevertheless, you
6906*** may want to report the problem to your system manager and/or to
6907*** bug-libtool@gnu.org
6908
6909EOF
6910	  fi ;;
6911	esac
6912      fi
6913      break
6914    fi
6915  done
6916  IFS="$lt_save_ifs"
6917  MAGIC_CMD="$lt_save_MAGIC_CMD"
6918  ;;
6919esac
6920fi
6921
6922MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6923if test -n "$MAGIC_CMD"; then
6924  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6925echo "${ECHO_T}$MAGIC_CMD" >&6
6926else
6927  echo "$as_me:$LINENO: result: no" >&5
6928echo "${ECHO_T}no" >&6
6929fi
6930
6931  else
6932    MAGIC_CMD=:
6933  fi
6934fi
6935
6936  fi
6937  ;;
6938esac
6939
6940enable_dlopen=no
6941enable_win32_dll=no
6942
6943# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6944if test "${enable_libtool_lock+set}" = set; then
6945  enableval="$enable_libtool_lock"
6946
6947fi;
6948test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6949
6950
6951# Check whether --with-pic or --without-pic was given.
6952if test "${with_pic+set}" = set; then
6953  withval="$with_pic"
6954  pic_mode="$withval"
6955else
6956  pic_mode=default
6957fi;
6958test -z "$pic_mode" && pic_mode=default
6959
6960# Use C for the default configuration in the libtool script
6961tagname=
6962lt_save_CC="$CC"
6963ac_ext=c
6964ac_cpp='$CPP $CPPFLAGS'
6965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
6969
6970# Source file extension for C test sources.
6971ac_ext=c
6972
6973# Object file extension for compiled C test sources.
6974objext=o
6975objext=$objext
6976
6977# Code to be used in simple compile tests
6978lt_simple_compile_test_code="int some_variable = 0;\n"
6979
6980# Code to be used in simple link tests
6981lt_simple_link_test_code='int main(){return(0);}\n'
6982
6983
6984# If no C compiler was specified, use CC.
6985LTCC=${LTCC-"$CC"}
6986
6987# Allow CC to be a program name with arguments.
6988compiler=$CC
6989
6990
6991#
6992# Check for any special shared library compilation flags.
6993#
6994lt_prog_cc_shlib=
6995if test "$GCC" = no; then
6996  case $host_os in
6997  sco3.2v5*)
6998    lt_prog_cc_shlib='-belf'
6999    ;;
7000  esac
7001fi
7002if test -n "$lt_prog_cc_shlib"; then
7003  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7004echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7005  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
7006  else
7007    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7008echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7009    lt_cv_prog_cc_can_build_shared=no
7010  fi
7011fi
7012
7013
7014#
7015# Check to make sure the static flag actually works.
7016#
7017echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7018echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7019if test "${lt_prog_compiler_static_works+set}" = set; then
7020  echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022  lt_prog_compiler_static_works=no
7023   save_LDFLAGS="$LDFLAGS"
7024   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7025   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7026   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7027     # The compiler can only warn and ignore the option if not recognized
7028     # So say no if there are warnings
7029     if test -s conftest.err; then
7030       # Append any errors to the config.log.
7031       cat conftest.err 1>&5
7032     else
7033       lt_prog_compiler_static_works=yes
7034     fi
7035   fi
7036   $rm conftest*
7037   LDFLAGS="$save_LDFLAGS"
7038
7039fi
7040echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7041echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7042
7043if test x"$lt_prog_compiler_static_works" = xyes; then
7044    :
7045else
7046    lt_prog_compiler_static=
7047fi
7048
7049
7050
7051
7052lt_prog_compiler_no_builtin_flag=
7053
7054if test "$GCC" = yes; then
7055  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7056
7057
7058echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7059echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7060if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7061  echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063  lt_cv_prog_compiler_rtti_exceptions=no
7064  ac_outfile=conftest.$ac_objext
7065   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7066   lt_compiler_flag="-fno-rtti -fno-exceptions"
7067   # Insert the option either (1) after the last *FLAGS variable, or
7068   # (2) before a word containing "conftest.", or (3) at the end.
7069   # Note that $ac_compile itself does not contain backslashes and begins
7070   # with a dollar sign (not a hyphen), so the echo should work correctly.
7071   # The option is referenced via a variable to avoid confusing sed.
7072   lt_compile=`echo "$ac_compile" | $SED \
7073   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7074   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7075   -e 's:$: $lt_compiler_flag:'`
7076   (eval echo "\"\$as_me:7076: $lt_compile\"" >&5)
7077   (eval "$lt_compile" 2>conftest.err)
7078   ac_status=$?
7079   cat conftest.err >&5
7080   echo "$as_me:7080: \$? = $ac_status" >&5
7081   if (exit $ac_status) && test -s "$ac_outfile"; then
7082     # The compiler can only warn and ignore the option if not recognized
7083     # So say no if there are warnings
7084     if test ! -s conftest.err; then
7085       lt_cv_prog_compiler_rtti_exceptions=yes
7086     fi
7087   fi
7088   $rm conftest*
7089
7090fi
7091echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7092echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7093
7094if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7095    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7096else
7097    :
7098fi
7099
7100fi
7101
7102lt_prog_compiler_wl=
7103lt_prog_compiler_pic=
7104lt_prog_compiler_static=
7105
7106echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7107echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7108
7109  if test "$GCC" = yes; then
7110    lt_prog_compiler_wl='-Wl,'
7111    lt_prog_compiler_static='-static'
7112
7113    case $host_os in
7114      aix*)
7115      # All AIX code is PIC.
7116      if test "$host_cpu" = ia64; then
7117	# AIX 5 now supports IA64 processor
7118	lt_prog_compiler_static='-Bstatic'
7119      fi
7120      ;;
7121
7122    amigaos*)
7123      # FIXME: we need at least 68020 code to build shared libraries, but
7124      # adding the `-m68020' flag to GCC prevents building anything better,
7125      # like `-m68040'.
7126      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7127      ;;
7128
7129    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7130      # PIC is the default for these OSes.
7131      ;;
7132
7133    mingw* | pw32* | os2*)
7134      # This hack is so that the source file can tell whether it is being
7135      # built for inclusion in a dll (and should export symbols for example).
7136      lt_prog_compiler_pic='-DDLL_EXPORT'
7137      ;;
7138
7139    darwin* | rhapsody*)
7140      # PIC is the default on this platform
7141      # Common symbols not allowed in MH_DYLIB files
7142      lt_prog_compiler_pic='-fno-common'
7143      ;;
7144
7145    msdosdjgpp*)
7146      # Just because we use GCC doesn't mean we suddenly get shared libraries
7147      # on systems that don't support them.
7148      lt_prog_compiler_can_build_shared=no
7149      enable_shared=no
7150      ;;
7151
7152    sysv4*MP*)
7153      if test -d /usr/nec; then
7154	lt_prog_compiler_pic=-Kconform_pic
7155      fi
7156      ;;
7157
7158    hpux*)
7159      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7160      # not for PA HP-UX.
7161      case "$host_cpu" in
7162      hppa*64*|ia64*)
7163	# +Z the default
7164	;;
7165      *)
7166	lt_prog_compiler_pic='-fPIC'
7167	;;
7168      esac
7169      ;;
7170
7171    *)
7172      lt_prog_compiler_pic='-fPIC'
7173      ;;
7174    esac
7175  else
7176    # PORTME Check for flag to pass linker flags through the system compiler.
7177    case $host_os in
7178    aix*)
7179      lt_prog_compiler_wl='-Wl,'
7180      if test "$host_cpu" = ia64; then
7181	# AIX 5 now supports IA64 processor
7182	lt_prog_compiler_static='-Bstatic'
7183      else
7184	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7185      fi
7186      ;;
7187
7188    mingw* | pw32* | os2*)
7189      # This hack is so that the source file can tell whether it is being
7190      # built for inclusion in a dll (and should export symbols for example).
7191      lt_prog_compiler_pic='-DDLL_EXPORT'
7192      ;;
7193
7194    hpux9* | hpux10* | hpux11*)
7195      lt_prog_compiler_wl='-Wl,'
7196      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7197      # not for PA HP-UX.
7198      case "$host_cpu" in
7199      hppa*64*|ia64*)
7200	# +Z the default
7201	;;
7202      *)
7203	lt_prog_compiler_pic='+Z'
7204	;;
7205      esac
7206      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7207      lt_prog_compiler_static='${wl}-a ${wl}archive'
7208      ;;
7209
7210    irix5* | irix6* | nonstopux*)
7211      lt_prog_compiler_wl='-Wl,'
7212      # PIC (with -KPIC) is the default.
7213      lt_prog_compiler_static='-non_shared'
7214      ;;
7215
7216    newsos6)
7217      lt_prog_compiler_pic='-KPIC'
7218      lt_prog_compiler_static='-Bstatic'
7219      ;;
7220
7221    linux*)
7222      case $CC in
7223      icc* | ecc*)
7224	lt_prog_compiler_wl='-Wl,'
7225	lt_prog_compiler_pic='-KPIC'
7226	lt_prog_compiler_static='-static'
7227        ;;
7228      ccc*)
7229        lt_prog_compiler_wl='-Wl,'
7230        # All Alpha code is PIC.
7231        lt_prog_compiler_static='-non_shared'
7232        ;;
7233      esac
7234      ;;
7235
7236    osf3* | osf4* | osf5*)
7237      lt_prog_compiler_wl='-Wl,'
7238      # All OSF/1 code is PIC.
7239      lt_prog_compiler_static='-non_shared'
7240      ;;
7241
7242    sco3.2v5*)
7243      lt_prog_compiler_pic='-Kpic'
7244      lt_prog_compiler_static='-dn'
7245      ;;
7246
7247    solaris*)
7248      lt_prog_compiler_wl='-Wl,'
7249      lt_prog_compiler_pic='-KPIC'
7250      lt_prog_compiler_static='-Bstatic'
7251      ;;
7252
7253    sunos4*)
7254      lt_prog_compiler_wl='-Qoption ld '
7255      lt_prog_compiler_pic='-PIC'
7256      lt_prog_compiler_static='-Bstatic'
7257      ;;
7258
7259    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7260      lt_prog_compiler_wl='-Wl,'
7261      lt_prog_compiler_pic='-KPIC'
7262      lt_prog_compiler_static='-Bstatic'
7263      ;;
7264
7265    sysv4*MP*)
7266      if test -d /usr/nec ;then
7267	lt_prog_compiler_pic='-Kconform_pic'
7268	lt_prog_compiler_static='-Bstatic'
7269      fi
7270      ;;
7271
7272    uts4*)
7273      lt_prog_compiler_pic='-pic'
7274      lt_prog_compiler_static='-Bstatic'
7275      ;;
7276
7277    *)
7278      lt_prog_compiler_can_build_shared=no
7279      ;;
7280    esac
7281  fi
7282
7283echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7284echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7285
7286#
7287# Check to make sure the PIC flag actually works.
7288#
7289if test -n "$lt_prog_compiler_pic"; then
7290
7291echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7292echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7293if test "${lt_prog_compiler_pic_works+set}" = set; then
7294  echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296  lt_prog_compiler_pic_works=no
7297  ac_outfile=conftest.$ac_objext
7298   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7299   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7300   # Insert the option either (1) after the last *FLAGS variable, or
7301   # (2) before a word containing "conftest.", or (3) at the end.
7302   # Note that $ac_compile itself does not contain backslashes and begins
7303   # with a dollar sign (not a hyphen), so the echo should work correctly.
7304   # The option is referenced via a variable to avoid confusing sed.
7305   lt_compile=`echo "$ac_compile" | $SED \
7306   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7307   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7308   -e 's:$: $lt_compiler_flag:'`
7309   (eval echo "\"\$as_me:7309: $lt_compile\"" >&5)
7310   (eval "$lt_compile" 2>conftest.err)
7311   ac_status=$?
7312   cat conftest.err >&5
7313   echo "$as_me:7313: \$? = $ac_status" >&5
7314   if (exit $ac_status) && test -s "$ac_outfile"; then
7315     # The compiler can only warn and ignore the option if not recognized
7316     # So say no if there are warnings
7317     if test ! -s conftest.err; then
7318       lt_prog_compiler_pic_works=yes
7319     fi
7320   fi
7321   $rm conftest*
7322
7323fi
7324echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7325echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7326
7327if test x"$lt_prog_compiler_pic_works" = xyes; then
7328    case $lt_prog_compiler_pic in
7329     "" | " "*) ;;
7330     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7331     esac
7332else
7333    lt_prog_compiler_pic=
7334     lt_prog_compiler_can_build_shared=no
7335fi
7336
7337fi
7338case "$host_os" in
7339  # For platforms which do not support PIC, -DPIC is meaningless:
7340  *djgpp*)
7341    lt_prog_compiler_pic=
7342    ;;
7343  *)
7344    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7345    ;;
7346esac
7347
7348echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7349echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7350if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7351  echo $ECHO_N "(cached) $ECHO_C" >&6
7352else
7353  lt_cv_prog_compiler_c_o=no
7354   $rm -r conftest 2>/dev/null
7355   mkdir conftest
7356   cd conftest
7357   mkdir out
7358   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7359
7360   lt_compiler_flag="-o out/conftest2.$ac_objext"
7361   # Insert the option either (1) after the last *FLAGS variable, or
7362   # (2) before a word containing "conftest.", or (3) at the end.
7363   # Note that $ac_compile itself does not contain backslashes and begins
7364   # with a dollar sign (not a hyphen), so the echo should work correctly.
7365   lt_compile=`echo "$ac_compile" | $SED \
7366   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7367   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368   -e 's:$: $lt_compiler_flag:'`
7369   (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
7370   (eval "$lt_compile" 2>out/conftest.err)
7371   ac_status=$?
7372   cat out/conftest.err >&5
7373   echo "$as_me:7373: \$? = $ac_status" >&5
7374   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7375   then
7376     # The compiler can only warn and ignore the option if not recognized
7377     # So say no if there are warnings
7378     if test ! -s out/conftest.err; then
7379       lt_cv_prog_compiler_c_o=yes
7380     fi
7381   fi
7382   chmod u+w .
7383   $rm conftest*
7384   # SGI C++ compiler will create directory out/ii_files/ for
7385   # template instantiation
7386   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7387   $rm out/* && rmdir out
7388   cd ..
7389   rmdir conftest
7390   $rm conftest*
7391
7392fi
7393echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7394echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7395
7396
7397hard_links="nottested"
7398if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7399  # do not overwrite the value of need_locks provided by the user
7400  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7401echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7402  hard_links=yes
7403  $rm conftest*
7404  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7405  touch conftest.a
7406  ln conftest.a conftest.b 2>&5 || hard_links=no
7407  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7408  echo "$as_me:$LINENO: result: $hard_links" >&5
7409echo "${ECHO_T}$hard_links" >&6
7410  if test "$hard_links" = no; then
7411    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7412echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7413    need_locks=warn
7414  fi
7415else
7416  need_locks=no
7417fi
7418
7419echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7420echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7421
7422  runpath_var=
7423  allow_undefined_flag=
7424  enable_shared_with_static_runtimes=no
7425  archive_cmds=
7426  archive_expsym_cmds=
7427  old_archive_From_new_cmds=
7428  old_archive_from_expsyms_cmds=
7429  export_dynamic_flag_spec=
7430  whole_archive_flag_spec=
7431  thread_safe_flag_spec=
7432  hardcode_libdir_flag_spec=
7433  hardcode_libdir_flag_spec_ld=
7434  hardcode_libdir_separator=
7435  hardcode_direct=no
7436  hardcode_minus_L=no
7437  hardcode_shlibpath_var=unsupported
7438  link_all_deplibs=unknown
7439  hardcode_automatic=no
7440  module_cmds=
7441  module_expsym_cmds=
7442  always_export_symbols=no
7443  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7444  # include_expsyms should be a list of space-separated symbols to be *always*
7445  # included in the symbol list
7446  include_expsyms=
7447  # exclude_expsyms can be an extended regexp of symbols to exclude
7448  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7449  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7450  # as well as any symbol that contains `d'.
7451  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7452  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7453  # platforms (ab)use it in PIC code, but their linkers get confused if
7454  # the symbol is explicitly referenced.  Since portable code cannot
7455  # rely on this symbol name, it's probably fine to never include it in
7456  # preloaded symbol tables.
7457  extract_expsyms_cmds=
7458
7459  case $host_os in
7460  cygwin* | mingw* | pw32*)
7461    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7462    # When not using gcc, we currently assume that we are using
7463    # Microsoft Visual C++.
7464    if test "$GCC" != yes; then
7465      with_gnu_ld=no
7466    fi
7467    ;;
7468  openbsd*)
7469    with_gnu_ld=no
7470    ;;
7471  esac
7472
7473  ld_shlibs=yes
7474  if test "$with_gnu_ld" = yes; then
7475    # If archive_cmds runs LD, not CC, wlarc should be empty
7476    wlarc='${wl}'
7477
7478    # See if GNU ld supports shared libraries.
7479    case $host_os in
7480    aix3* | aix4* | aix5*)
7481      # On AIX/PPC, the GNU linker is very broken
7482      if test "$host_cpu" != ia64; then
7483	ld_shlibs=no
7484	cat <<EOF 1>&2
7485
7486*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7487*** to be unable to reliably create shared libraries on AIX.
7488*** Therefore, libtool is disabling shared libraries support.  If you
7489*** really care for shared libraries, you may want to modify your PATH
7490*** so that a non-GNU linker is found, and then restart.
7491
7492EOF
7493      fi
7494      ;;
7495
7496    amigaos*)
7497      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)'
7498      hardcode_libdir_flag_spec='-L$libdir'
7499      hardcode_minus_L=yes
7500
7501      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7502      # that the semantics of dynamic libraries on AmigaOS, at least up
7503      # to version 4, is to share data among multiple programs linked
7504      # with the same dynamic library.  Since this doesn't match the
7505      # behavior of shared libraries on other platforms, we can't use
7506      # them.
7507      ld_shlibs=no
7508      ;;
7509
7510    beos*)
7511      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7512	allow_undefined_flag=unsupported
7513	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7514	# support --undefined.  This deserves some investigation.  FIXME
7515	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7516      else
7517	ld_shlibs=no
7518      fi
7519      ;;
7520
7521    cygwin* | mingw* | pw32*)
7522      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7523      # as there is no search path for DLLs.
7524      hardcode_libdir_flag_spec='-L$libdir'
7525      allow_undefined_flag=unsupported
7526      always_export_symbols=no
7527      enable_shared_with_static_runtimes=yes
7528      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7529
7530      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7531        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7532	# If the export-symbols file already is a .def file (1st line
7533	# is EXPORTS), use it as is; otherwise, prepend...
7534	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7535	  cp $export_symbols $output_objdir/$soname.def;
7536	else
7537	  echo EXPORTS > $output_objdir/$soname.def;
7538	  cat $export_symbols >> $output_objdir/$soname.def;
7539	fi~
7540	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7541      else
7542	ld_shlibs=no
7543      fi
7544      ;;
7545
7546    netbsd*)
7547      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7548	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7549	wlarc=
7550      else
7551	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7552	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7553      fi
7554      ;;
7555
7556    solaris* | sysv5*)
7557      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7558	ld_shlibs=no
7559	cat <<EOF 1>&2
7560
7561*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7562*** create shared libraries on Solaris systems.  Therefore, libtool
7563*** is disabling shared libraries support.  We urge you to upgrade GNU
7564*** binutils to release 2.9.1 or newer.  Another option is to modify
7565*** your PATH or compiler configuration so that the native linker is
7566*** used, and then restart.
7567
7568EOF
7569      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7570	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7571	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7572      else
7573	ld_shlibs=no
7574      fi
7575      ;;
7576
7577    sunos4*)
7578      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7579      wlarc=
7580      hardcode_direct=yes
7581      hardcode_shlibpath_var=no
7582      ;;
7583
7584  linux*)
7585    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7586        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7587	archive_cmds="$tmp_archive_cmds"
7588      supports_anon_versioning=no
7589      case `$LD -v 2>/dev/null` in
7590        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7591        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7592        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7593        *\ 2.11.*) ;; # other 2.11 versions
7594        *) supports_anon_versioning=yes ;;
7595      esac
7596      if test $supports_anon_versioning = yes; then
7597        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7598cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7599$echo "local: *; };" >> $output_objdir/$libname.ver~
7600        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7601      else
7602        archive_expsym_cmds="$tmp_archive_cmds"
7603      fi
7604    else
7605      ld_shlibs=no
7606    fi
7607    ;;
7608
7609    *)
7610      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7611	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7612	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7613      else
7614	ld_shlibs=no
7615      fi
7616      ;;
7617    esac
7618
7619    if test "$ld_shlibs" = yes; then
7620      runpath_var=LD_RUN_PATH
7621      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7622      export_dynamic_flag_spec='${wl}--export-dynamic'
7623      # ancient GNU ld didn't support --whole-archive et. al.
7624      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7625 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7626      else
7627  	whole_archive_flag_spec=
7628      fi
7629    fi
7630  else
7631    # PORTME fill in a description of your system's linker (not GNU ld)
7632    case $host_os in
7633    aix3*)
7634      allow_undefined_flag=unsupported
7635      always_export_symbols=yes
7636      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'
7637      # Note: this linker hardcodes the directories in LIBPATH if there
7638      # are no directories specified by -L.
7639      hardcode_minus_L=yes
7640      if test "$GCC" = yes && test -z "$link_static_flag"; then
7641	# Neither direct hardcoding nor static linking is supported with a
7642	# broken collect2.
7643	hardcode_direct=unsupported
7644      fi
7645      ;;
7646
7647    aix4* | aix5*)
7648      if test "$host_cpu" = ia64; then
7649	# On IA64, the linker does run time linking by default, so we don't
7650	# have to do anything special.
7651	aix_use_runtimelinking=no
7652	exp_sym_flag='-Bexport'
7653	no_entry_flag=""
7654      else
7655	# If we're using GNU nm, then we don't want the "-C" option.
7656	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7657	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7658	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7659	else
7660	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7661	fi
7662	aix_use_runtimelinking=no
7663
7664	# Test if we are trying to use run time linking or normal
7665	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7666	# need to do runtime linking.
7667	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7668	  for ld_flag in $LDFLAGS; do
7669  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7670  	    aix_use_runtimelinking=yes
7671  	    break
7672  	  fi
7673	  done
7674	esac
7675
7676	exp_sym_flag='-bexport'
7677	no_entry_flag='-bnoentry'
7678      fi
7679
7680      # When large executables or shared objects are built, AIX ld can
7681      # have problems creating the table of contents.  If linking a library
7682      # or program results in "error TOC overflow" add -mminimal-toc to
7683      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7684      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7685
7686      archive_cmds=''
7687      hardcode_direct=yes
7688      hardcode_libdir_separator=':'
7689      link_all_deplibs=yes
7690
7691      if test "$GCC" = yes; then
7692	case $host_os in aix4.012|aix4.012.*)
7693	# We only want to do this on AIX 4.2 and lower, the check
7694	# below for broken collect2 doesn't work under 4.3+
7695	  collect2name=`${CC} -print-prog-name=collect2`
7696	  if test -f "$collect2name" && \
7697  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7698	  then
7699  	  # We have reworked collect2
7700  	  hardcode_direct=yes
7701	  else
7702  	  # We have old collect2
7703  	  hardcode_direct=unsupported
7704  	  # It fails to find uninstalled libraries when the uninstalled
7705  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7706  	  # to unsupported forces relinking
7707  	  hardcode_minus_L=yes
7708  	  hardcode_libdir_flag_spec='-L$libdir'
7709  	  hardcode_libdir_separator=
7710	  fi
7711	esac
7712	shared_flag='-shared'
7713      else
7714	# not using gcc
7715	if test "$host_cpu" = ia64; then
7716  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7717  	# chokes on -Wl,-G. The following line is correct:
7718	  shared_flag='-G'
7719	else
7720  	if test "$aix_use_runtimelinking" = yes; then
7721	    shared_flag='${wl}-G'
7722	  else
7723	    shared_flag='${wl}-bM:SRE'
7724  	fi
7725	fi
7726      fi
7727
7728      # It seems that -bexpall does not export symbols beginning with
7729      # underscore (_), so it is better to generate a list of symbols to export.
7730      always_export_symbols=yes
7731      if test "$aix_use_runtimelinking" = yes; then
7732	# Warning - without using the other runtime loading flags (-brtl),
7733	# -berok will link without error, but may produce a broken library.
7734	allow_undefined_flag='-berok'
7735       # Determine the default libpath from the value encoded in an empty executable.
7736       cat >conftest.$ac_ext <<_ACEOF
7737/* confdefs.h.  */
7738_ACEOF
7739cat confdefs.h >>conftest.$ac_ext
7740cat >>conftest.$ac_ext <<_ACEOF
7741/* end confdefs.h.  */
7742
7743int
7744main ()
7745{
7746
7747  ;
7748  return 0;
7749}
7750_ACEOF
7751rm -f conftest.$ac_objext conftest$ac_exeext
7752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753  (eval $ac_link) 2>conftest.er1
7754  ac_status=$?
7755  grep -v '^ *+' conftest.er1 >conftest.err
7756  rm -f conftest.er1
7757  cat conftest.err >&5
7758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759  (exit $ac_status); } &&
7760	 { ac_try='test -z "$ac_c_werror_flag"
7761			 || test ! -s conftest.err'
7762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763  (eval $ac_try) 2>&5
7764  ac_status=$?
7765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766  (exit $ac_status); }; } &&
7767	 { ac_try='test -s conftest$ac_exeext'
7768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769  (eval $ac_try) 2>&5
7770  ac_status=$?
7771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772  (exit $ac_status); }; }; then
7773
7774aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7775}'`
7776# Check for a 64-bit object if we didn't find anything.
7777if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7778}'`; fi
7779else
7780  echo "$as_me: failed program was:" >&5
7781sed 's/^/| /' conftest.$ac_ext >&5
7782
7783fi
7784rm -f conftest.err conftest.$ac_objext \
7785      conftest$ac_exeext conftest.$ac_ext
7786if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7787
7788       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7789	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"
7790       else
7791	if test "$host_cpu" = ia64; then
7792	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7793	  allow_undefined_flag="-z nodefs"
7794	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7795	else
7796	 # Determine the default libpath from the value encoded in an empty executable.
7797	 cat >conftest.$ac_ext <<_ACEOF
7798/* confdefs.h.  */
7799_ACEOF
7800cat confdefs.h >>conftest.$ac_ext
7801cat >>conftest.$ac_ext <<_ACEOF
7802/* end confdefs.h.  */
7803
7804int
7805main ()
7806{
7807
7808  ;
7809  return 0;
7810}
7811_ACEOF
7812rm -f conftest.$ac_objext conftest$ac_exeext
7813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814  (eval $ac_link) 2>conftest.er1
7815  ac_status=$?
7816  grep -v '^ *+' conftest.er1 >conftest.err
7817  rm -f conftest.er1
7818  cat conftest.err >&5
7819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820  (exit $ac_status); } &&
7821	 { ac_try='test -z "$ac_c_werror_flag"
7822			 || test ! -s conftest.err'
7823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824  (eval $ac_try) 2>&5
7825  ac_status=$?
7826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827  (exit $ac_status); }; } &&
7828	 { ac_try='test -s conftest$ac_exeext'
7829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830  (eval $ac_try) 2>&5
7831  ac_status=$?
7832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833  (exit $ac_status); }; }; then
7834
7835aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7836}'`
7837# Check for a 64-bit object if we didn't find anything.
7838if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7839}'`; fi
7840else
7841  echo "$as_me: failed program was:" >&5
7842sed 's/^/| /' conftest.$ac_ext >&5
7843
7844fi
7845rm -f conftest.err conftest.$ac_objext \
7846      conftest$ac_exeext conftest.$ac_ext
7847if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7848
7849	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7850	  # Warning - without using the other run time loading flags,
7851	  # -berok will link without error, but may produce a broken library.
7852	  no_undefined_flag=' ${wl}-bernotok'
7853	  allow_undefined_flag=' ${wl}-berok'
7854	  # -bexpall does not export symbols beginning with underscore (_)
7855	  always_export_symbols=yes
7856	  # Exported symbols can be pulled into shared objects from archives
7857	  whole_archive_flag_spec=' '
7858	  archive_cmds_need_lc=yes
7859	  # This is similar to how AIX traditionally builds it's shared libraries.
7860	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7861	fi
7862      fi
7863      ;;
7864
7865    amigaos*)
7866      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)'
7867      hardcode_libdir_flag_spec='-L$libdir'
7868      hardcode_minus_L=yes
7869      # see comment about different semantics on the GNU ld section
7870      ld_shlibs=no
7871      ;;
7872
7873    bsdi4*)
7874      export_dynamic_flag_spec=-rdynamic
7875      ;;
7876
7877    cygwin* | mingw* | pw32*)
7878      # When not using gcc, we currently assume that we are using
7879      # Microsoft Visual C++.
7880      # hardcode_libdir_flag_spec is actually meaningless, as there is
7881      # no search path for DLLs.
7882      hardcode_libdir_flag_spec=' '
7883      allow_undefined_flag=unsupported
7884      # Tell ltmain to make .lib files, not .a files.
7885      libext=lib
7886      # Tell ltmain to make .dll files, not .so files.
7887      shrext=".dll"
7888      # FIXME: Setting linknames here is a bad hack.
7889      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7890      # The linker will automatically build a .lib file if we build a DLL.
7891      old_archive_From_new_cmds='true'
7892      # FIXME: Should let the user specify the lib program.
7893      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7894      fix_srcfile_path='`cygpath -w "$srcfile"`'
7895      enable_shared_with_static_runtimes=yes
7896      ;;
7897
7898    darwin* | rhapsody*)
7899    if test "$GXX" = yes ; then
7900      archive_cmds_need_lc=no
7901      case "$host_os" in
7902      rhapsody* | darwin1.[012])
7903	allow_undefined_flag='-undefined suppress'
7904	;;
7905      *) # Darwin 1.3 on
7906      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7907      	allow_undefined_flag='-flat_namespace -undefined suppress'
7908      else
7909        case ${MACOSX_DEPLOYMENT_TARGET} in
7910          10.[012])
7911            allow_undefined_flag='-flat_namespace -undefined suppress'
7912            ;;
7913          10.*)
7914            allow_undefined_flag='-undefined dynamic_lookup'
7915            ;;
7916        esac
7917      fi
7918	;;
7919      esac
7920    	lt_int_apple_cc_single_mod=no
7921    	output_verbose_link_cmd='echo'
7922    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7923    	  lt_int_apple_cc_single_mod=yes
7924    	fi
7925    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7926    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7927    	else
7928        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7929      fi
7930      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7931      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7932        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7933          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7934        else
7935          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7936        fi
7937          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7938      hardcode_direct=no
7939      hardcode_automatic=yes
7940      hardcode_shlibpath_var=unsupported
7941      whole_archive_flag_spec='-all_load $convenience'
7942      link_all_deplibs=yes
7943    else
7944      ld_shlibs=no
7945    fi
7946      ;;
7947
7948    dgux*)
7949      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7950      hardcode_libdir_flag_spec='-L$libdir'
7951      hardcode_shlibpath_var=no
7952      ;;
7953
7954    freebsd1*)
7955      ld_shlibs=no
7956      ;;
7957
7958    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7959    # support.  Future versions do this automatically, but an explicit c++rt0.o
7960    # does not break anything, and helps significantly (at the cost of a little
7961    # extra space).
7962    freebsd2.2*)
7963      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7964      hardcode_libdir_flag_spec='-R$libdir'
7965      hardcode_direct=yes
7966      hardcode_shlibpath_var=no
7967      ;;
7968
7969    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7970    freebsd2*)
7971      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7972      hardcode_direct=yes
7973      hardcode_minus_L=yes
7974      hardcode_shlibpath_var=no
7975      ;;
7976
7977    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7978    freebsd* | kfreebsd*-gnu)
7979      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7980      hardcode_libdir_flag_spec='-R$libdir'
7981      hardcode_direct=yes
7982      hardcode_shlibpath_var=no
7983      ;;
7984
7985    hpux9*)
7986      if test "$GCC" = yes; then
7987	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7988      else
7989	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'
7990      fi
7991      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7992      hardcode_libdir_separator=:
7993      hardcode_direct=yes
7994
7995      # hardcode_minus_L: Not really in the search PATH,
7996      # but as the default location of the library.
7997      hardcode_minus_L=yes
7998      export_dynamic_flag_spec='${wl}-E'
7999      ;;
8000
8001    hpux10* | hpux11*)
8002      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8003	case "$host_cpu" in
8004	hppa*64*|ia64*)
8005	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8006	  ;;
8007	*)
8008	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8009	  ;;
8010	esac
8011      else
8012	case "$host_cpu" in
8013	hppa*64*|ia64*)
8014	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8015	  ;;
8016	*)
8017	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8018	  ;;
8019	esac
8020      fi
8021      if test "$with_gnu_ld" = no; then
8022	case "$host_cpu" in
8023	hppa*64*)
8024	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8025	  hardcode_libdir_flag_spec_ld='+b $libdir'
8026	  hardcode_libdir_separator=:
8027	  hardcode_direct=no
8028	  hardcode_shlibpath_var=no
8029	  ;;
8030	ia64*)
8031	  hardcode_libdir_flag_spec='-L$libdir'
8032	  hardcode_direct=no
8033	  hardcode_shlibpath_var=no
8034
8035	  # hardcode_minus_L: Not really in the search PATH,
8036	  # but as the default location of the library.
8037	  hardcode_minus_L=yes
8038	  ;;
8039	*)
8040	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8041	  hardcode_libdir_separator=:
8042	  hardcode_direct=yes
8043	  export_dynamic_flag_spec='${wl}-E'
8044
8045	  # hardcode_minus_L: Not really in the search PATH,
8046	  # but as the default location of the library.
8047	  hardcode_minus_L=yes
8048	  ;;
8049	esac
8050      fi
8051      ;;
8052
8053    irix5* | irix6* | nonstopux*)
8054      if test "$GCC" = yes; then
8055	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'
8056      else
8057	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'
8058	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8059      fi
8060      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8061      hardcode_libdir_separator=:
8062      link_all_deplibs=yes
8063      ;;
8064
8065    netbsd*)
8066      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8067	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8068      else
8069	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8070      fi
8071      hardcode_libdir_flag_spec='-R$libdir'
8072      hardcode_direct=yes
8073      hardcode_shlibpath_var=no
8074      ;;
8075
8076    newsos6)
8077      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8078      hardcode_direct=yes
8079      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8080      hardcode_libdir_separator=:
8081      hardcode_shlibpath_var=no
8082      ;;
8083
8084    openbsd*)
8085      hardcode_direct=yes
8086      hardcode_shlibpath_var=no
8087      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8088	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8089	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8090	export_dynamic_flag_spec='${wl}-E'
8091      else
8092       case $host_os in
8093	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8094	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8095	   hardcode_libdir_flag_spec='-R$libdir'
8096	   ;;
8097	 *)
8098	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8099	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8100	   ;;
8101       esac
8102      fi
8103      ;;
8104
8105    os2*)
8106      hardcode_libdir_flag_spec='-L$libdir'
8107      hardcode_minus_L=yes
8108      allow_undefined_flag=unsupported
8109      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'
8110      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8111      ;;
8112
8113    osf3*)
8114      if test "$GCC" = yes; then
8115	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8116	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'
8117      else
8118	allow_undefined_flag=' -expect_unresolved \*'
8119	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'
8120      fi
8121      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8122      hardcode_libdir_separator=:
8123      ;;
8124
8125    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8126      if test "$GCC" = yes; then
8127	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8128	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'
8129	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8130      else
8131	allow_undefined_flag=' -expect_unresolved \*'
8132	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'
8133	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8134	$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'
8135
8136	# Both c and cxx compiler support -rpath directly
8137	hardcode_libdir_flag_spec='-rpath $libdir'
8138      fi
8139      hardcode_libdir_separator=:
8140      ;;
8141
8142    sco3.2v5*)
8143      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8144      hardcode_shlibpath_var=no
8145      export_dynamic_flag_spec='${wl}-Bexport'
8146      runpath_var=LD_RUN_PATH
8147      hardcode_runpath_var=yes
8148      ;;
8149
8150    solaris*)
8151      no_undefined_flag=' -z text'
8152      if test "$GCC" = yes; then
8153	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8154	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8155	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8156      else
8157	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8158	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8159  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8160      fi
8161      hardcode_libdir_flag_spec='-R$libdir'
8162      hardcode_shlibpath_var=no
8163      case $host_os in
8164      solaris2.[0-5] | solaris2.[0-5].*) ;;
8165      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8166	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8167      esac
8168      link_all_deplibs=yes
8169      ;;
8170
8171    sunos4*)
8172      if test "x$host_vendor" = xsequent; then
8173	# Use $CC to link under sequent, because it throws in some extra .o
8174	# files that make .init and .fini sections work.
8175	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8176      else
8177	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8178      fi
8179      hardcode_libdir_flag_spec='-L$libdir'
8180      hardcode_direct=yes
8181      hardcode_minus_L=yes
8182      hardcode_shlibpath_var=no
8183      ;;
8184
8185    sysv4)
8186      case $host_vendor in
8187	sni)
8188	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8189	  hardcode_direct=yes # is this really true???
8190	;;
8191	siemens)
8192	  ## LD is ld it makes a PLAMLIB
8193	  ## CC just makes a GrossModule.
8194	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8195	  reload_cmds='$CC -r -o $output$reload_objs'
8196	  hardcode_direct=no
8197        ;;
8198	motorola)
8199	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8200	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8201	;;
8202      esac
8203      runpath_var='LD_RUN_PATH'
8204      hardcode_shlibpath_var=no
8205      ;;
8206
8207    sysv4.3*)
8208      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8209      hardcode_shlibpath_var=no
8210      export_dynamic_flag_spec='-Bexport'
8211      ;;
8212
8213    sysv4*MP*)
8214      if test -d /usr/nec; then
8215	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216	hardcode_shlibpath_var=no
8217	runpath_var=LD_RUN_PATH
8218	hardcode_runpath_var=yes
8219	ld_shlibs=yes
8220      fi
8221      ;;
8222
8223    sysv4.2uw2*)
8224      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8225      hardcode_direct=yes
8226      hardcode_minus_L=no
8227      hardcode_shlibpath_var=no
8228      hardcode_runpath_var=yes
8229      runpath_var=LD_RUN_PATH
8230      ;;
8231
8232   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8233      no_undefined_flag='${wl}-z ${wl}text'
8234      if test "$GCC" = yes; then
8235	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8236      else
8237	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8238      fi
8239      runpath_var='LD_RUN_PATH'
8240      hardcode_shlibpath_var=no
8241      ;;
8242
8243    sysv5*)
8244      no_undefined_flag=' -z text'
8245      # $CC -shared without GNU ld will not create a library from C++
8246      # object files and a static libstdc++, better avoid it by now
8247      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8248      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8249  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8250      hardcode_libdir_flag_spec=
8251      hardcode_shlibpath_var=no
8252      runpath_var='LD_RUN_PATH'
8253      ;;
8254
8255    uts4*)
8256      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8257      hardcode_libdir_flag_spec='-L$libdir'
8258      hardcode_shlibpath_var=no
8259      ;;
8260
8261    *)
8262      ld_shlibs=no
8263      ;;
8264    esac
8265  fi
8266
8267echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8268echo "${ECHO_T}$ld_shlibs" >&6
8269test "$ld_shlibs" = no && can_build_shared=no
8270
8271variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8272if test "$GCC" = yes; then
8273  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8274fi
8275
8276#
8277# Do we need to explicitly link libc?
8278#
8279case "x$archive_cmds_need_lc" in
8280x|xyes)
8281  # Assume -lc should be added
8282  archive_cmds_need_lc=yes
8283
8284  if test "$enable_shared" = yes && test "$GCC" = yes; then
8285    case $archive_cmds in
8286    *'~'*)
8287      # FIXME: we may have to deal with multi-command sequences.
8288      ;;
8289    '$CC '*)
8290      # Test whether the compiler implicitly links with -lc since on some
8291      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8292      # to ld, don't add -lc before -lgcc.
8293      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8294echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8295      $rm conftest*
8296      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8297
8298      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8299  (eval $ac_compile) 2>&5
8300  ac_status=$?
8301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302  (exit $ac_status); } 2>conftest.err; then
8303        soname=conftest
8304        lib=conftest
8305        libobjs=conftest.$ac_objext
8306        deplibs=
8307        wl=$lt_prog_compiler_wl
8308        compiler_flags=-v
8309        linker_flags=-v
8310        verstring=
8311        output_objdir=.
8312        libname=conftest
8313        lt_save_allow_undefined_flag=$allow_undefined_flag
8314        allow_undefined_flag=
8315        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8316  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8317  ac_status=$?
8318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319  (exit $ac_status); }
8320        then
8321	  archive_cmds_need_lc=no
8322        else
8323	  archive_cmds_need_lc=yes
8324        fi
8325        allow_undefined_flag=$lt_save_allow_undefined_flag
8326      else
8327        cat conftest.err 1>&5
8328      fi
8329      $rm conftest*
8330      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8331echo "${ECHO_T}$archive_cmds_need_lc" >&6
8332      ;;
8333    esac
8334  fi
8335  ;;
8336esac
8337
8338echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8339echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8340library_names_spec=
8341libname_spec='lib$name'
8342soname_spec=
8343shrext=".so"
8344postinstall_cmds=
8345postuninstall_cmds=
8346finish_cmds=
8347finish_eval=
8348shlibpath_var=
8349shlibpath_overrides_runpath=unknown
8350version_type=none
8351dynamic_linker="$host_os ld.so"
8352sys_lib_dlsearch_path_spec="/lib /usr/lib"
8353if test "$GCC" = yes; then
8354  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8355  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8356    # if the path contains ";" then we assume it to be the separator
8357    # otherwise default to the standard path separator (i.e. ":") - it is
8358    # assumed that no part of a normal pathname contains ";" but that should
8359    # okay in the real world where ";" in dirpaths is itself problematic.
8360    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8361  else
8362    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8363  fi
8364else
8365  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8366fi
8367need_lib_prefix=unknown
8368hardcode_into_libs=no
8369
8370# when you set need_version to no, make sure it does not cause -set_version
8371# flags to be left without arguments
8372need_version=unknown
8373
8374case $host_os in
8375aix3*)
8376  version_type=linux
8377  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8378  shlibpath_var=LIBPATH
8379
8380  # AIX 3 has no versioning support, so we append a major version to the name.
8381  soname_spec='${libname}${release}${shared_ext}$major'
8382  ;;
8383
8384aix4* | aix5*)
8385  version_type=linux
8386  need_lib_prefix=no
8387  need_version=no
8388  hardcode_into_libs=yes
8389  if test "$host_cpu" = ia64; then
8390    # AIX 5 supports IA64
8391    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8392    shlibpath_var=LD_LIBRARY_PATH
8393  else
8394    # With GCC up to 2.95.x, collect2 would create an import file
8395    # for dependence libraries.  The import file would start with
8396    # the line `#! .'.  This would cause the generated library to
8397    # depend on `.', always an invalid library.  This was fixed in
8398    # development snapshots of GCC prior to 3.0.
8399    case $host_os in
8400      aix4 | aix4.[01] | aix4.[01].*)
8401      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8402	   echo ' yes '
8403	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8404	:
8405      else
8406	can_build_shared=no
8407      fi
8408      ;;
8409    esac
8410    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8411    # soname into executable. Probably we can add versioning support to
8412    # collect2, so additional links can be useful in future.
8413    if test "$aix_use_runtimelinking" = yes; then
8414      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8415      # instead of lib<name>.a to let people know that these are not
8416      # typical AIX shared libraries.
8417      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8418    else
8419      # We preserve .a as extension for shared libraries through AIX4.2
8420      # and later when we are not doing run time linking.
8421      library_names_spec='${libname}${release}.a $libname.a'
8422      soname_spec='${libname}${release}${shared_ext}$major'
8423    fi
8424    shlibpath_var=LIBPATH
8425  fi
8426  ;;
8427
8428amigaos*)
8429  library_names_spec='$libname.ixlibrary $libname.a'
8430  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8431  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'
8432  ;;
8433
8434beos*)
8435  library_names_spec='${libname}${shared_ext}'
8436  dynamic_linker="$host_os ld.so"
8437  shlibpath_var=LIBRARY_PATH
8438  ;;
8439
8440bsdi4*)
8441  version_type=linux
8442  need_version=no
8443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8444  soname_spec='${libname}${release}${shared_ext}$major'
8445  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8446  shlibpath_var=LD_LIBRARY_PATH
8447  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8448  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8449  # the default ld.so.conf also contains /usr/contrib/lib and
8450  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8451  # libtool to hard-code these into programs
8452  ;;
8453
8454cygwin* | mingw* | pw32*)
8455  version_type=windows
8456  shrext=".dll"
8457  need_version=no
8458  need_lib_prefix=no
8459
8460  case $GCC,$host_os in
8461  yes,cygwin* | yes,mingw* | yes,pw32*)
8462    library_names_spec='$libname.dll.a'
8463    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8464    postinstall_cmds='base_file=`basename \${file}`~
8465      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8466      dldir=$destdir/`dirname \$dlpath`~
8467      test -d \$dldir || mkdir -p \$dldir~
8468      $install_prog $dir/$dlname \$dldir/$dlname'
8469    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8470      dlpath=$dir/\$dldll~
8471       $rm \$dlpath'
8472    shlibpath_overrides_runpath=yes
8473
8474    case $host_os in
8475    cygwin*)
8476      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8477      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8478      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8479      ;;
8480    mingw*)
8481      # MinGW DLLs use traditional 'lib' prefix
8482      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8483      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8484      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8485        # It is most probably a Windows format PATH printed by
8486        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8487        # path with ; separators, and with drive letters. We can handle the
8488        # drive letters (cygwin fileutils understands them), so leave them,
8489        # especially as we might pass files found there to a mingw objdump,
8490        # which wouldn't understand a cygwinified path. Ahh.
8491        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8492      else
8493        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8494      fi
8495      ;;
8496    pw32*)
8497      # pw32 DLLs use 'pw' prefix rather than 'lib'
8498      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8499      ;;
8500    esac
8501    ;;
8502
8503  *)
8504    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8505    ;;
8506  esac
8507  dynamic_linker='Win32 ld.exe'
8508  # FIXME: first we should search . and the directory the executable is in
8509  shlibpath_var=PATH
8510  ;;
8511
8512darwin* | rhapsody*)
8513  dynamic_linker="$host_os dyld"
8514  version_type=darwin
8515  need_lib_prefix=no
8516  need_version=no
8517  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8518  soname_spec='${libname}${release}${major}$shared_ext'
8519  shlibpath_overrides_runpath=yes
8520  shlibpath_var=DYLD_LIBRARY_PATH
8521  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8522  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8523  if test "$GCC" = yes; then
8524    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8525  else
8526    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8527  fi
8528  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8529  ;;
8530
8531dgux*)
8532  version_type=linux
8533  need_lib_prefix=no
8534  need_version=no
8535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8536  soname_spec='${libname}${release}${shared_ext}$major'
8537  shlibpath_var=LD_LIBRARY_PATH
8538  ;;
8539
8540freebsd1*)
8541  dynamic_linker=no
8542  ;;
8543
8544kfreebsd*-gnu)
8545  version_type=linux
8546  need_lib_prefix=no
8547  need_version=no
8548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8549  soname_spec='${libname}${release}${shared_ext}$major'
8550  shlibpath_var=LD_LIBRARY_PATH
8551  shlibpath_overrides_runpath=no
8552  hardcode_into_libs=yes
8553  dynamic_linker='GNU ld.so'
8554  ;;
8555
8556freebsd*)
8557  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8558  version_type=freebsd-$objformat
8559  case $version_type in
8560    freebsd-elf*)
8561      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8562      need_version=no
8563      need_lib_prefix=no
8564      ;;
8565    freebsd-*)
8566      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8567      need_version=yes
8568      ;;
8569  esac
8570  shlibpath_var=LD_LIBRARY_PATH
8571  case $host_os in
8572  freebsd2*)
8573    shlibpath_overrides_runpath=yes
8574    ;;
8575  freebsd3.01* | freebsdelf3.01*)
8576    shlibpath_overrides_runpath=yes
8577    hardcode_into_libs=yes
8578    ;;
8579  *) # from 3.2 on
8580    shlibpath_overrides_runpath=no
8581    hardcode_into_libs=yes
8582    ;;
8583  esac
8584  ;;
8585
8586gnu*)
8587  version_type=linux
8588  need_lib_prefix=no
8589  need_version=no
8590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8591  soname_spec='${libname}${release}${shared_ext}$major'
8592  shlibpath_var=LD_LIBRARY_PATH
8593  hardcode_into_libs=yes
8594  ;;
8595
8596hpux9* | hpux10* | hpux11*)
8597  # Give a soname corresponding to the major version so that dld.sl refuses to
8598  # link against other versions.
8599  version_type=sunos
8600  need_lib_prefix=no
8601  need_version=no
8602  case "$host_cpu" in
8603  ia64*)
8604    shrext='.so'
8605    hardcode_into_libs=yes
8606    dynamic_linker="$host_os dld.so"
8607    shlibpath_var=LD_LIBRARY_PATH
8608    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8609    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8610    soname_spec='${libname}${release}${shared_ext}$major'
8611    if test "X$HPUX_IA64_MODE" = X32; then
8612      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8613    else
8614      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8615    fi
8616    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8617    ;;
8618   hppa*64*)
8619     shrext='.sl'
8620     hardcode_into_libs=yes
8621     dynamic_linker="$host_os dld.sl"
8622     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8623     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8625     soname_spec='${libname}${release}${shared_ext}$major'
8626     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8627     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8628     ;;
8629   *)
8630    shrext='.sl'
8631    dynamic_linker="$host_os dld.sl"
8632    shlibpath_var=SHLIB_PATH
8633    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8634    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635    soname_spec='${libname}${release}${shared_ext}$major'
8636    ;;
8637  esac
8638  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8639  postinstall_cmds='chmod 555 $lib'
8640  ;;
8641
8642irix5* | irix6* | nonstopux*)
8643  case $host_os in
8644    nonstopux*) version_type=nonstopux ;;
8645    *)
8646	if test "$lt_cv_prog_gnu_ld" = yes; then
8647		version_type=linux
8648	else
8649		version_type=irix
8650	fi ;;
8651  esac
8652  need_lib_prefix=no
8653  need_version=no
8654  soname_spec='${libname}${release}${shared_ext}$major'
8655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8656  case $host_os in
8657  irix5* | nonstopux*)
8658    libsuff= shlibsuff=
8659    ;;
8660  *)
8661    case $LD in # libtool.m4 will add one of these switches to LD
8662    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8663      libsuff= shlibsuff= libmagic=32-bit;;
8664    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8665      libsuff=32 shlibsuff=N32 libmagic=N32;;
8666    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8667      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8668    *) libsuff= shlibsuff= libmagic=never-match;;
8669    esac
8670    ;;
8671  esac
8672  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8673  shlibpath_overrides_runpath=no
8674  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8675  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8676  hardcode_into_libs=yes
8677  ;;
8678
8679# No shared lib support for Linux oldld, aout, or coff.
8680linux*oldld* | linux*aout* | linux*coff*)
8681  dynamic_linker=no
8682  ;;
8683
8684# This must be Linux ELF.
8685linux*)
8686  version_type=linux
8687  need_lib_prefix=no
8688  need_version=no
8689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690  soname_spec='${libname}${release}${shared_ext}$major'
8691  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8692  shlibpath_var=LD_LIBRARY_PATH
8693  shlibpath_overrides_runpath=no
8694  # This implies no fast_install, which is unacceptable.
8695  # Some rework will be needed to allow for fast_install
8696  # before this can be enabled.
8697  hardcode_into_libs=yes
8698
8699  # Append ld.so.conf contents to the search path
8700  if test -f /etc/ld.so.conf; then
8701    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8702    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
8703  fi
8704
8705  # We used to test for /lib/ld.so.1 and disable shared libraries on
8706  # powerpc, because MkLinux only supported shared libraries with the
8707  # GNU dynamic linker.  Since this was broken with cross compilers,
8708  # most powerpc-linux boxes support dynamic linking these days and
8709  # people can always --disable-shared, the test was removed, and we
8710  # assume the GNU/Linux dynamic linker is in use.
8711  dynamic_linker='GNU/Linux ld.so'
8712  ;;
8713
8714knetbsd*-gnu)
8715  version_type=linux
8716  need_lib_prefix=no
8717  need_version=no
8718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8719  soname_spec='${libname}${release}${shared_ext}$major'
8720  shlibpath_var=LD_LIBRARY_PATH
8721  shlibpath_overrides_runpath=no
8722  hardcode_into_libs=yes
8723  dynamic_linker='GNU ld.so'
8724  ;;
8725
8726netbsd*)
8727  version_type=sunos
8728  need_lib_prefix=no
8729  need_version=no
8730  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8731    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8732    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8733    dynamic_linker='NetBSD (a.out) ld.so'
8734  else
8735    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8736    soname_spec='${libname}${release}${shared_ext}$major'
8737    dynamic_linker='NetBSD ld.elf_so'
8738  fi
8739  shlibpath_var=LD_LIBRARY_PATH
8740  shlibpath_overrides_runpath=yes
8741  hardcode_into_libs=yes
8742  ;;
8743
8744newsos6)
8745  version_type=linux
8746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8747  shlibpath_var=LD_LIBRARY_PATH
8748  shlibpath_overrides_runpath=yes
8749  ;;
8750
8751nto-qnx*)
8752  version_type=linux
8753  need_lib_prefix=no
8754  need_version=no
8755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756  soname_spec='${libname}${release}${shared_ext}$major'
8757  shlibpath_var=LD_LIBRARY_PATH
8758  shlibpath_overrides_runpath=yes
8759  ;;
8760
8761openbsd*)
8762  version_type=sunos
8763  need_lib_prefix=no
8764  need_version=yes
8765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8766  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8767  shlibpath_var=LD_LIBRARY_PATH
8768  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8769    case $host_os in
8770      openbsd2.[89] | openbsd2.[89].*)
8771	shlibpath_overrides_runpath=no
8772	;;
8773      *)
8774	shlibpath_overrides_runpath=yes
8775	;;
8776      esac
8777  else
8778    shlibpath_overrides_runpath=yes
8779  fi
8780  ;;
8781
8782os2*)
8783  libname_spec='$name'
8784  shrext=".dll"
8785  need_lib_prefix=no
8786  library_names_spec='$libname${shared_ext} $libname.a'
8787  dynamic_linker='OS/2 ld.exe'
8788  shlibpath_var=LIBPATH
8789  ;;
8790
8791osf3* | osf4* | osf5*)
8792  version_type=osf
8793  need_lib_prefix=no
8794  need_version=no
8795  soname_spec='${libname}${release}${shared_ext}$major'
8796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8797  shlibpath_var=LD_LIBRARY_PATH
8798  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8799  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8800  ;;
8801
8802sco3.2v5*)
8803  version_type=osf
8804  soname_spec='${libname}${release}${shared_ext}$major'
8805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8806  shlibpath_var=LD_LIBRARY_PATH
8807  ;;
8808
8809solaris*)
8810  version_type=linux
8811  need_lib_prefix=no
8812  need_version=no
8813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814  soname_spec='${libname}${release}${shared_ext}$major'
8815  shlibpath_var=LD_LIBRARY_PATH
8816  shlibpath_overrides_runpath=yes
8817  hardcode_into_libs=yes
8818  # ldd complains unless libraries are executable
8819  postinstall_cmds='chmod +x $lib'
8820  ;;
8821
8822sunos4*)
8823  version_type=sunos
8824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8825  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8826  shlibpath_var=LD_LIBRARY_PATH
8827  shlibpath_overrides_runpath=yes
8828  if test "$with_gnu_ld" = yes; then
8829    need_lib_prefix=no
8830  fi
8831  need_version=yes
8832  ;;
8833
8834sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8835  version_type=linux
8836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837  soname_spec='${libname}${release}${shared_ext}$major'
8838  shlibpath_var=LD_LIBRARY_PATH
8839  case $host_vendor in
8840    sni)
8841      shlibpath_overrides_runpath=no
8842      need_lib_prefix=no
8843      export_dynamic_flag_spec='${wl}-Blargedynsym'
8844      runpath_var=LD_RUN_PATH
8845      ;;
8846    siemens)
8847      need_lib_prefix=no
8848      ;;
8849    motorola)
8850      need_lib_prefix=no
8851      need_version=no
8852      shlibpath_overrides_runpath=no
8853      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8854      ;;
8855  esac
8856  ;;
8857
8858sysv4*MP*)
8859  if test -d /usr/nec ;then
8860    version_type=linux
8861    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8862    soname_spec='$libname${shared_ext}.$major'
8863    shlibpath_var=LD_LIBRARY_PATH
8864  fi
8865  ;;
8866
8867uts4*)
8868  version_type=linux
8869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870  soname_spec='${libname}${release}${shared_ext}$major'
8871  shlibpath_var=LD_LIBRARY_PATH
8872  ;;
8873
8874*)
8875  dynamic_linker=no
8876  ;;
8877esac
8878echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8879echo "${ECHO_T}$dynamic_linker" >&6
8880test "$dynamic_linker" = no && can_build_shared=no
8881
8882echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8883echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8884hardcode_action=
8885if test -n "$hardcode_libdir_flag_spec" || \
8886   test -n "$runpath_var " || \
8887   test "X$hardcode_automatic"="Xyes" ; then
8888
8889  # We can hardcode non-existant directories.
8890  if test "$hardcode_direct" != no &&
8891     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8892     # have to relink, otherwise we might link with an installed library
8893     # when we should be linking with a yet-to-be-installed one
8894     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8895     test "$hardcode_minus_L" != no; then
8896    # Linking always hardcodes the temporary library directory.
8897    hardcode_action=relink
8898  else
8899    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8900    hardcode_action=immediate
8901  fi
8902else
8903  # We cannot hardcode anything, or else we can only hardcode existing
8904  # directories.
8905  hardcode_action=unsupported
8906fi
8907echo "$as_me:$LINENO: result: $hardcode_action" >&5
8908echo "${ECHO_T}$hardcode_action" >&6
8909
8910if test "$hardcode_action" = relink; then
8911  # Fast installation is not supported
8912  enable_fast_install=no
8913elif test "$shlibpath_overrides_runpath" = yes ||
8914     test "$enable_shared" = no; then
8915  # Fast installation is not necessary
8916  enable_fast_install=needless
8917fi
8918
8919striplib=
8920old_striplib=
8921echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8922echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8923if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8924  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8925  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8926  echo "$as_me:$LINENO: result: yes" >&5
8927echo "${ECHO_T}yes" >&6
8928else
8929# FIXME - insert some real tests, host_os isn't really good enough
8930  case $host_os in
8931   darwin*)
8932       if test -n "$STRIP" ; then
8933         striplib="$STRIP -x"
8934         echo "$as_me:$LINENO: result: yes" >&5
8935echo "${ECHO_T}yes" >&6
8936       else
8937  echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
8939fi
8940       ;;
8941   *)
8942  echo "$as_me:$LINENO: result: no" >&5
8943echo "${ECHO_T}no" >&6
8944    ;;
8945  esac
8946fi
8947
8948if test "x$enable_dlopen" != xyes; then
8949  enable_dlopen=unknown
8950  enable_dlopen_self=unknown
8951  enable_dlopen_self_static=unknown
8952else
8953  lt_cv_dlopen=no
8954  lt_cv_dlopen_libs=
8955
8956  case $host_os in
8957  beos*)
8958    lt_cv_dlopen="load_add_on"
8959    lt_cv_dlopen_libs=
8960    lt_cv_dlopen_self=yes
8961    ;;
8962
8963  mingw* | pw32*)
8964    lt_cv_dlopen="LoadLibrary"
8965    lt_cv_dlopen_libs=
8966   ;;
8967
8968  cygwin*)
8969    lt_cv_dlopen="dlopen"
8970    lt_cv_dlopen_libs=
8971   ;;
8972
8973  darwin*)
8974  # if libdl is installed we need to link against it
8975    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8976echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8977if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8978  echo $ECHO_N "(cached) $ECHO_C" >&6
8979else
8980  ac_check_lib_save_LIBS=$LIBS
8981LIBS="-ldl  $LIBS"
8982cat >conftest.$ac_ext <<_ACEOF
8983/* confdefs.h.  */
8984_ACEOF
8985cat confdefs.h >>conftest.$ac_ext
8986cat >>conftest.$ac_ext <<_ACEOF
8987/* end confdefs.h.  */
8988
8989/* Override any gcc2 internal prototype to avoid an error.  */
8990#ifdef __cplusplus
8991extern "C"
8992#endif
8993/* We use char because int might match the return type of a gcc2
8994   builtin and then its argument prototype would still apply.  */
8995char dlopen ();
8996int
8997main ()
8998{
8999dlopen ();
9000  ;
9001  return 0;
9002}
9003_ACEOF
9004rm -f conftest.$ac_objext conftest$ac_exeext
9005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006  (eval $ac_link) 2>conftest.er1
9007  ac_status=$?
9008  grep -v '^ *+' conftest.er1 >conftest.err
9009  rm -f conftest.er1
9010  cat conftest.err >&5
9011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012  (exit $ac_status); } &&
9013	 { ac_try='test -z "$ac_c_werror_flag"
9014			 || test ! -s conftest.err'
9015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016  (eval $ac_try) 2>&5
9017  ac_status=$?
9018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019  (exit $ac_status); }; } &&
9020	 { ac_try='test -s conftest$ac_exeext'
9021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022  (eval $ac_try) 2>&5
9023  ac_status=$?
9024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025  (exit $ac_status); }; }; then
9026  ac_cv_lib_dl_dlopen=yes
9027else
9028  echo "$as_me: failed program was:" >&5
9029sed 's/^/| /' conftest.$ac_ext >&5
9030
9031ac_cv_lib_dl_dlopen=no
9032fi
9033rm -f conftest.err conftest.$ac_objext \
9034      conftest$ac_exeext conftest.$ac_ext
9035LIBS=$ac_check_lib_save_LIBS
9036fi
9037echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9038echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9039if test $ac_cv_lib_dl_dlopen = yes; then
9040  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9041else
9042
9043    lt_cv_dlopen="dyld"
9044    lt_cv_dlopen_libs=
9045    lt_cv_dlopen_self=yes
9046
9047fi
9048
9049   ;;
9050
9051  *)
9052    echo "$as_me:$LINENO: checking for shl_load" >&5
9053echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9054if test "${ac_cv_func_shl_load+set}" = set; then
9055  echo $ECHO_N "(cached) $ECHO_C" >&6
9056else
9057  cat >conftest.$ac_ext <<_ACEOF
9058/* confdefs.h.  */
9059_ACEOF
9060cat confdefs.h >>conftest.$ac_ext
9061cat >>conftest.$ac_ext <<_ACEOF
9062/* end confdefs.h.  */
9063/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9064   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9065#define shl_load innocuous_shl_load
9066
9067/* System header to define __stub macros and hopefully few prototypes,
9068    which can conflict with char shl_load (); below.
9069    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9070    <limits.h> exists even on freestanding compilers.  */
9071
9072#ifdef __STDC__
9073# include <limits.h>
9074#else
9075# include <assert.h>
9076#endif
9077
9078#undef shl_load
9079
9080/* Override any gcc2 internal prototype to avoid an error.  */
9081#ifdef __cplusplus
9082extern "C"
9083{
9084#endif
9085/* We use char because int might match the return type of a gcc2
9086   builtin and then its argument prototype would still apply.  */
9087char shl_load ();
9088/* The GNU C library defines this for functions which it implements
9089    to always fail with ENOSYS.  Some functions are actually named
9090    something starting with __ and the normal name is an alias.  */
9091#if defined (__stub_shl_load) || defined (__stub___shl_load)
9092choke me
9093#else
9094char (*f) () = shl_load;
9095#endif
9096#ifdef __cplusplus
9097}
9098#endif
9099
9100int
9101main ()
9102{
9103return f != shl_load;
9104  ;
9105  return 0;
9106}
9107_ACEOF
9108rm -f conftest.$ac_objext conftest$ac_exeext
9109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110  (eval $ac_link) 2>conftest.er1
9111  ac_status=$?
9112  grep -v '^ *+' conftest.er1 >conftest.err
9113  rm -f conftest.er1
9114  cat conftest.err >&5
9115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116  (exit $ac_status); } &&
9117	 { ac_try='test -z "$ac_c_werror_flag"
9118			 || test ! -s conftest.err'
9119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120  (eval $ac_try) 2>&5
9121  ac_status=$?
9122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123  (exit $ac_status); }; } &&
9124	 { ac_try='test -s conftest$ac_exeext'
9125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126  (eval $ac_try) 2>&5
9127  ac_status=$?
9128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129  (exit $ac_status); }; }; then
9130  ac_cv_func_shl_load=yes
9131else
9132  echo "$as_me: failed program was:" >&5
9133sed 's/^/| /' conftest.$ac_ext >&5
9134
9135ac_cv_func_shl_load=no
9136fi
9137rm -f conftest.err conftest.$ac_objext \
9138      conftest$ac_exeext conftest.$ac_ext
9139fi
9140echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9141echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9142if test $ac_cv_func_shl_load = yes; then
9143  lt_cv_dlopen="shl_load"
9144else
9145  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9146echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9147if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9148  echo $ECHO_N "(cached) $ECHO_C" >&6
9149else
9150  ac_check_lib_save_LIBS=$LIBS
9151LIBS="-ldld  $LIBS"
9152cat >conftest.$ac_ext <<_ACEOF
9153/* confdefs.h.  */
9154_ACEOF
9155cat confdefs.h >>conftest.$ac_ext
9156cat >>conftest.$ac_ext <<_ACEOF
9157/* end confdefs.h.  */
9158
9159/* Override any gcc2 internal prototype to avoid an error.  */
9160#ifdef __cplusplus
9161extern "C"
9162#endif
9163/* We use char because int might match the return type of a gcc2
9164   builtin and then its argument prototype would still apply.  */
9165char shl_load ();
9166int
9167main ()
9168{
9169shl_load ();
9170  ;
9171  return 0;
9172}
9173_ACEOF
9174rm -f conftest.$ac_objext conftest$ac_exeext
9175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176  (eval $ac_link) 2>conftest.er1
9177  ac_status=$?
9178  grep -v '^ *+' conftest.er1 >conftest.err
9179  rm -f conftest.er1
9180  cat conftest.err >&5
9181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182  (exit $ac_status); } &&
9183	 { ac_try='test -z "$ac_c_werror_flag"
9184			 || test ! -s conftest.err'
9185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186  (eval $ac_try) 2>&5
9187  ac_status=$?
9188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189  (exit $ac_status); }; } &&
9190	 { ac_try='test -s conftest$ac_exeext'
9191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192  (eval $ac_try) 2>&5
9193  ac_status=$?
9194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195  (exit $ac_status); }; }; then
9196  ac_cv_lib_dld_shl_load=yes
9197else
9198  echo "$as_me: failed program was:" >&5
9199sed 's/^/| /' conftest.$ac_ext >&5
9200
9201ac_cv_lib_dld_shl_load=no
9202fi
9203rm -f conftest.err conftest.$ac_objext \
9204      conftest$ac_exeext conftest.$ac_ext
9205LIBS=$ac_check_lib_save_LIBS
9206fi
9207echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9208echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9209if test $ac_cv_lib_dld_shl_load = yes; then
9210  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9211else
9212  echo "$as_me:$LINENO: checking for dlopen" >&5
9213echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9214if test "${ac_cv_func_dlopen+set}" = set; then
9215  echo $ECHO_N "(cached) $ECHO_C" >&6
9216else
9217  cat >conftest.$ac_ext <<_ACEOF
9218/* confdefs.h.  */
9219_ACEOF
9220cat confdefs.h >>conftest.$ac_ext
9221cat >>conftest.$ac_ext <<_ACEOF
9222/* end confdefs.h.  */
9223/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9224   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9225#define dlopen innocuous_dlopen
9226
9227/* System header to define __stub macros and hopefully few prototypes,
9228    which can conflict with char dlopen (); below.
9229    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9230    <limits.h> exists even on freestanding compilers.  */
9231
9232#ifdef __STDC__
9233# include <limits.h>
9234#else
9235# include <assert.h>
9236#endif
9237
9238#undef dlopen
9239
9240/* Override any gcc2 internal prototype to avoid an error.  */
9241#ifdef __cplusplus
9242extern "C"
9243{
9244#endif
9245/* We use char because int might match the return type of a gcc2
9246   builtin and then its argument prototype would still apply.  */
9247char dlopen ();
9248/* The GNU C library defines this for functions which it implements
9249    to always fail with ENOSYS.  Some functions are actually named
9250    something starting with __ and the normal name is an alias.  */
9251#if defined (__stub_dlopen) || defined (__stub___dlopen)
9252choke me
9253#else
9254char (*f) () = dlopen;
9255#endif
9256#ifdef __cplusplus
9257}
9258#endif
9259
9260int
9261main ()
9262{
9263return f != dlopen;
9264  ;
9265  return 0;
9266}
9267_ACEOF
9268rm -f conftest.$ac_objext conftest$ac_exeext
9269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9270  (eval $ac_link) 2>conftest.er1
9271  ac_status=$?
9272  grep -v '^ *+' conftest.er1 >conftest.err
9273  rm -f conftest.er1
9274  cat conftest.err >&5
9275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276  (exit $ac_status); } &&
9277	 { ac_try='test -z "$ac_c_werror_flag"
9278			 || test ! -s conftest.err'
9279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280  (eval $ac_try) 2>&5
9281  ac_status=$?
9282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283  (exit $ac_status); }; } &&
9284	 { ac_try='test -s conftest$ac_exeext'
9285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286  (eval $ac_try) 2>&5
9287  ac_status=$?
9288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289  (exit $ac_status); }; }; then
9290  ac_cv_func_dlopen=yes
9291else
9292  echo "$as_me: failed program was:" >&5
9293sed 's/^/| /' conftest.$ac_ext >&5
9294
9295ac_cv_func_dlopen=no
9296fi
9297rm -f conftest.err conftest.$ac_objext \
9298      conftest$ac_exeext conftest.$ac_ext
9299fi
9300echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9301echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9302if test $ac_cv_func_dlopen = yes; then
9303  lt_cv_dlopen="dlopen"
9304else
9305  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9306echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9307if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9308  echo $ECHO_N "(cached) $ECHO_C" >&6
9309else
9310  ac_check_lib_save_LIBS=$LIBS
9311LIBS="-ldl  $LIBS"
9312cat >conftest.$ac_ext <<_ACEOF
9313/* confdefs.h.  */
9314_ACEOF
9315cat confdefs.h >>conftest.$ac_ext
9316cat >>conftest.$ac_ext <<_ACEOF
9317/* end confdefs.h.  */
9318
9319/* Override any gcc2 internal prototype to avoid an error.  */
9320#ifdef __cplusplus
9321extern "C"
9322#endif
9323/* We use char because int might match the return type of a gcc2
9324   builtin and then its argument prototype would still apply.  */
9325char dlopen ();
9326int
9327main ()
9328{
9329dlopen ();
9330  ;
9331  return 0;
9332}
9333_ACEOF
9334rm -f conftest.$ac_objext conftest$ac_exeext
9335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336  (eval $ac_link) 2>conftest.er1
9337  ac_status=$?
9338  grep -v '^ *+' conftest.er1 >conftest.err
9339  rm -f conftest.er1
9340  cat conftest.err >&5
9341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342  (exit $ac_status); } &&
9343	 { ac_try='test -z "$ac_c_werror_flag"
9344			 || test ! -s conftest.err'
9345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346  (eval $ac_try) 2>&5
9347  ac_status=$?
9348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349  (exit $ac_status); }; } &&
9350	 { ac_try='test -s conftest$ac_exeext'
9351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352  (eval $ac_try) 2>&5
9353  ac_status=$?
9354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355  (exit $ac_status); }; }; then
9356  ac_cv_lib_dl_dlopen=yes
9357else
9358  echo "$as_me: failed program was:" >&5
9359sed 's/^/| /' conftest.$ac_ext >&5
9360
9361ac_cv_lib_dl_dlopen=no
9362fi
9363rm -f conftest.err conftest.$ac_objext \
9364      conftest$ac_exeext conftest.$ac_ext
9365LIBS=$ac_check_lib_save_LIBS
9366fi
9367echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9368echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9369if test $ac_cv_lib_dl_dlopen = yes; then
9370  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9371else
9372  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9373echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9374if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9375  echo $ECHO_N "(cached) $ECHO_C" >&6
9376else
9377  ac_check_lib_save_LIBS=$LIBS
9378LIBS="-lsvld  $LIBS"
9379cat >conftest.$ac_ext <<_ACEOF
9380/* confdefs.h.  */
9381_ACEOF
9382cat confdefs.h >>conftest.$ac_ext
9383cat >>conftest.$ac_ext <<_ACEOF
9384/* end confdefs.h.  */
9385
9386/* Override any gcc2 internal prototype to avoid an error.  */
9387#ifdef __cplusplus
9388extern "C"
9389#endif
9390/* We use char because int might match the return type of a gcc2
9391   builtin and then its argument prototype would still apply.  */
9392char dlopen ();
9393int
9394main ()
9395{
9396dlopen ();
9397  ;
9398  return 0;
9399}
9400_ACEOF
9401rm -f conftest.$ac_objext conftest$ac_exeext
9402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403  (eval $ac_link) 2>conftest.er1
9404  ac_status=$?
9405  grep -v '^ *+' conftest.er1 >conftest.err
9406  rm -f conftest.er1
9407  cat conftest.err >&5
9408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409  (exit $ac_status); } &&
9410	 { ac_try='test -z "$ac_c_werror_flag"
9411			 || test ! -s conftest.err'
9412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413  (eval $ac_try) 2>&5
9414  ac_status=$?
9415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416  (exit $ac_status); }; } &&
9417	 { ac_try='test -s conftest$ac_exeext'
9418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419  (eval $ac_try) 2>&5
9420  ac_status=$?
9421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422  (exit $ac_status); }; }; then
9423  ac_cv_lib_svld_dlopen=yes
9424else
9425  echo "$as_me: failed program was:" >&5
9426sed 's/^/| /' conftest.$ac_ext >&5
9427
9428ac_cv_lib_svld_dlopen=no
9429fi
9430rm -f conftest.err conftest.$ac_objext \
9431      conftest$ac_exeext conftest.$ac_ext
9432LIBS=$ac_check_lib_save_LIBS
9433fi
9434echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9435echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9436if test $ac_cv_lib_svld_dlopen = yes; then
9437  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9438else
9439  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9440echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9441if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9442  echo $ECHO_N "(cached) $ECHO_C" >&6
9443else
9444  ac_check_lib_save_LIBS=$LIBS
9445LIBS="-ldld  $LIBS"
9446cat >conftest.$ac_ext <<_ACEOF
9447/* confdefs.h.  */
9448_ACEOF
9449cat confdefs.h >>conftest.$ac_ext
9450cat >>conftest.$ac_ext <<_ACEOF
9451/* end confdefs.h.  */
9452
9453/* Override any gcc2 internal prototype to avoid an error.  */
9454#ifdef __cplusplus
9455extern "C"
9456#endif
9457/* We use char because int might match the return type of a gcc2
9458   builtin and then its argument prototype would still apply.  */
9459char dld_link ();
9460int
9461main ()
9462{
9463dld_link ();
9464  ;
9465  return 0;
9466}
9467_ACEOF
9468rm -f conftest.$ac_objext conftest$ac_exeext
9469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9470  (eval $ac_link) 2>conftest.er1
9471  ac_status=$?
9472  grep -v '^ *+' conftest.er1 >conftest.err
9473  rm -f conftest.er1
9474  cat conftest.err >&5
9475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476  (exit $ac_status); } &&
9477	 { ac_try='test -z "$ac_c_werror_flag"
9478			 || test ! -s conftest.err'
9479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480  (eval $ac_try) 2>&5
9481  ac_status=$?
9482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483  (exit $ac_status); }; } &&
9484	 { ac_try='test -s conftest$ac_exeext'
9485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486  (eval $ac_try) 2>&5
9487  ac_status=$?
9488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489  (exit $ac_status); }; }; then
9490  ac_cv_lib_dld_dld_link=yes
9491else
9492  echo "$as_me: failed program was:" >&5
9493sed 's/^/| /' conftest.$ac_ext >&5
9494
9495ac_cv_lib_dld_dld_link=no
9496fi
9497rm -f conftest.err conftest.$ac_objext \
9498      conftest$ac_exeext conftest.$ac_ext
9499LIBS=$ac_check_lib_save_LIBS
9500fi
9501echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9502echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9503if test $ac_cv_lib_dld_dld_link = yes; then
9504  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9505fi
9506
9507
9508fi
9509
9510
9511fi
9512
9513
9514fi
9515
9516
9517fi
9518
9519
9520fi
9521
9522    ;;
9523  esac
9524
9525  if test "x$lt_cv_dlopen" != xno; then
9526    enable_dlopen=yes
9527  else
9528    enable_dlopen=no
9529  fi
9530
9531  case $lt_cv_dlopen in
9532  dlopen)
9533    save_CPPFLAGS="$CPPFLAGS"
9534    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9535
9536    save_LDFLAGS="$LDFLAGS"
9537    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9538
9539    save_LIBS="$LIBS"
9540    LIBS="$lt_cv_dlopen_libs $LIBS"
9541
9542    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9543echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9544if test "${lt_cv_dlopen_self+set}" = set; then
9545  echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
9547  	  if test "$cross_compiling" = yes; then :
9548  lt_cv_dlopen_self=cross
9549else
9550  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9551  lt_status=$lt_dlunknown
9552  cat > conftest.$ac_ext <<EOF
9553#line 9553 "configure"
9554#include "confdefs.h"
9555
9556#if HAVE_DLFCN_H
9557#include <dlfcn.h>
9558#endif
9559
9560#include <stdio.h>
9561
9562#ifdef RTLD_GLOBAL
9563#  define LT_DLGLOBAL		RTLD_GLOBAL
9564#else
9565#  ifdef DL_GLOBAL
9566#    define LT_DLGLOBAL		DL_GLOBAL
9567#  else
9568#    define LT_DLGLOBAL		0
9569#  endif
9570#endif
9571
9572/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9573   find out it does not work in some platform. */
9574#ifndef LT_DLLAZY_OR_NOW
9575#  ifdef RTLD_LAZY
9576#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9577#  else
9578#    ifdef DL_LAZY
9579#      define LT_DLLAZY_OR_NOW		DL_LAZY
9580#    else
9581#      ifdef RTLD_NOW
9582#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9583#      else
9584#        ifdef DL_NOW
9585#          define LT_DLLAZY_OR_NOW	DL_NOW
9586#        else
9587#          define LT_DLLAZY_OR_NOW	0
9588#        endif
9589#      endif
9590#    endif
9591#  endif
9592#endif
9593
9594#ifdef __cplusplus
9595extern "C" void exit (int);
9596#endif
9597
9598void fnord() { int i=42;}
9599int main ()
9600{
9601  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9602  int status = $lt_dlunknown;
9603
9604  if (self)
9605    {
9606      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9607      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9608      /* dlclose (self); */
9609    }
9610
9611    exit (status);
9612}
9613EOF
9614  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9615  (eval $ac_link) 2>&5
9616  ac_status=$?
9617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9619    (./conftest; exit; ) 2>/dev/null
9620    lt_status=$?
9621    case x$lt_status in
9622      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9623      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9624      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9625    esac
9626  else :
9627    # compilation failed
9628    lt_cv_dlopen_self=no
9629  fi
9630fi
9631rm -fr conftest*
9632
9633
9634fi
9635echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9636echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9637
9638    if test "x$lt_cv_dlopen_self" = xyes; then
9639      LDFLAGS="$LDFLAGS $link_static_flag"
9640      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9641echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9642if test "${lt_cv_dlopen_self_static+set}" = set; then
9643  echo $ECHO_N "(cached) $ECHO_C" >&6
9644else
9645  	  if test "$cross_compiling" = yes; then :
9646  lt_cv_dlopen_self_static=cross
9647else
9648  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9649  lt_status=$lt_dlunknown
9650  cat > conftest.$ac_ext <<EOF
9651#line 9651 "configure"
9652#include "confdefs.h"
9653
9654#if HAVE_DLFCN_H
9655#include <dlfcn.h>
9656#endif
9657
9658#include <stdio.h>
9659
9660#ifdef RTLD_GLOBAL
9661#  define LT_DLGLOBAL		RTLD_GLOBAL
9662#else
9663#  ifdef DL_GLOBAL
9664#    define LT_DLGLOBAL		DL_GLOBAL
9665#  else
9666#    define LT_DLGLOBAL		0
9667#  endif
9668#endif
9669
9670/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9671   find out it does not work in some platform. */
9672#ifndef LT_DLLAZY_OR_NOW
9673#  ifdef RTLD_LAZY
9674#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9675#  else
9676#    ifdef DL_LAZY
9677#      define LT_DLLAZY_OR_NOW		DL_LAZY
9678#    else
9679#      ifdef RTLD_NOW
9680#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9681#      else
9682#        ifdef DL_NOW
9683#          define LT_DLLAZY_OR_NOW	DL_NOW
9684#        else
9685#          define LT_DLLAZY_OR_NOW	0
9686#        endif
9687#      endif
9688#    endif
9689#  endif
9690#endif
9691
9692#ifdef __cplusplus
9693extern "C" void exit (int);
9694#endif
9695
9696void fnord() { int i=42;}
9697int main ()
9698{
9699  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9700  int status = $lt_dlunknown;
9701
9702  if (self)
9703    {
9704      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9705      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9706      /* dlclose (self); */
9707    }
9708
9709    exit (status);
9710}
9711EOF
9712  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713  (eval $ac_link) 2>&5
9714  ac_status=$?
9715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9717    (./conftest; exit; ) 2>/dev/null
9718    lt_status=$?
9719    case x$lt_status in
9720      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9721      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9722      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9723    esac
9724  else :
9725    # compilation failed
9726    lt_cv_dlopen_self_static=no
9727  fi
9728fi
9729rm -fr conftest*
9730
9731
9732fi
9733echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9734echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9735    fi
9736
9737    CPPFLAGS="$save_CPPFLAGS"
9738    LDFLAGS="$save_LDFLAGS"
9739    LIBS="$save_LIBS"
9740    ;;
9741  esac
9742
9743  case $lt_cv_dlopen_self in
9744  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9745  *) enable_dlopen_self=unknown ;;
9746  esac
9747
9748  case $lt_cv_dlopen_self_static in
9749  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9750  *) enable_dlopen_self_static=unknown ;;
9751  esac
9752fi
9753
9754
9755# Report which librarie types wil actually be built
9756echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9757echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9758echo "$as_me:$LINENO: result: $can_build_shared" >&5
9759echo "${ECHO_T}$can_build_shared" >&6
9760
9761echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9762echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9763test "$can_build_shared" = "no" && enable_shared=no
9764
9765# On AIX, shared libraries and static libraries use the same namespace, and
9766# are all built from PIC.
9767case "$host_os" in
9768aix3*)
9769  test "$enable_shared" = yes && enable_static=no
9770  if test -n "$RANLIB"; then
9771    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9772    postinstall_cmds='$RANLIB $lib'
9773  fi
9774  ;;
9775
9776aix4*)
9777  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9778    test "$enable_shared" = yes && enable_static=no
9779  fi
9780  ;;
9781  darwin* | rhapsody*)
9782  if test "$GCC" = yes; then
9783    archive_cmds_need_lc=no
9784    case "$host_os" in
9785    rhapsody* | darwin1.[012])
9786      allow_undefined_flag='-undefined suppress'
9787      ;;
9788    *) # Darwin 1.3 on
9789      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9790      	allow_undefined_flag='-flat_namespace -undefined suppress'
9791      else
9792        case ${MACOSX_DEPLOYMENT_TARGET} in
9793          10.[012])
9794            allow_undefined_flag='-flat_namespace -undefined suppress'
9795            ;;
9796          10.*)
9797            allow_undefined_flag='-undefined dynamic_lookup'
9798            ;;
9799        esac
9800      fi
9801      ;;
9802    esac
9803    output_verbose_link_cmd='echo'
9804    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9805    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9806    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9807    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9808    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9809    hardcode_direct=no
9810    hardcode_automatic=yes
9811    hardcode_shlibpath_var=unsupported
9812    whole_archive_flag_spec='-all_load $convenience'
9813    link_all_deplibs=yes
9814  else
9815    ld_shlibs=no
9816  fi
9817    ;;
9818esac
9819echo "$as_me:$LINENO: result: $enable_shared" >&5
9820echo "${ECHO_T}$enable_shared" >&6
9821
9822echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9823echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9824# Make sure either enable_shared or enable_static is yes.
9825test "$enable_shared" = yes || enable_static=yes
9826echo "$as_me:$LINENO: result: $enable_static" >&5
9827echo "${ECHO_T}$enable_static" >&6
9828
9829# The else clause should only fire when bootstrapping the
9830# libtool distribution, otherwise you forgot to ship ltmain.sh
9831# with your package, and you will get complaints that there are
9832# no rules to generate ltmain.sh.
9833if test -f "$ltmain"; then
9834  # See if we are running on zsh, and set the options which allow our commands through
9835  # without removal of \ escapes.
9836  if test -n "${ZSH_VERSION+set}" ; then
9837    setopt NO_GLOB_SUBST
9838  fi
9839  # Now quote all the things that may contain metacharacters while being
9840  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9841  # variables and quote the copies for generation of the libtool script.
9842  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9843    SED SHELL STRIP \
9844    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9845    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9846    deplibs_check_method reload_flag reload_cmds need_locks \
9847    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9848    lt_cv_sys_global_symbol_to_c_name_address \
9849    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9850    old_postinstall_cmds old_postuninstall_cmds \
9851    compiler \
9852    CC \
9853    LD \
9854    lt_prog_compiler_wl \
9855    lt_prog_compiler_pic \
9856    lt_prog_compiler_static \
9857    lt_prog_compiler_no_builtin_flag \
9858    export_dynamic_flag_spec \
9859    thread_safe_flag_spec \
9860    whole_archive_flag_spec \
9861    enable_shared_with_static_runtimes \
9862    old_archive_cmds \
9863    old_archive_from_new_cmds \
9864    predep_objects \
9865    postdep_objects \
9866    predeps \
9867    postdeps \
9868    compiler_lib_search_path \
9869    archive_cmds \
9870    archive_expsym_cmds \
9871    postinstall_cmds \
9872    postuninstall_cmds \
9873    old_archive_from_expsyms_cmds \
9874    allow_undefined_flag \
9875    no_undefined_flag \
9876    export_symbols_cmds \
9877    hardcode_libdir_flag_spec \
9878    hardcode_libdir_flag_spec_ld \
9879    hardcode_libdir_separator \
9880    hardcode_automatic \
9881    module_cmds \
9882    module_expsym_cmds \
9883    lt_cv_prog_compiler_c_o \
9884    exclude_expsyms \
9885    include_expsyms; do
9886
9887    case $var in
9888    old_archive_cmds | \
9889    old_archive_from_new_cmds | \
9890    archive_cmds | \
9891    archive_expsym_cmds | \
9892    module_cmds | \
9893    module_expsym_cmds | \
9894    old_archive_from_expsyms_cmds | \
9895    export_symbols_cmds | \
9896    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9897    postinstall_cmds | postuninstall_cmds | \
9898    old_postinstall_cmds | old_postuninstall_cmds | \
9899    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9900      # Double-quote double-evaled strings.
9901      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9902      ;;
9903    *)
9904      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9905      ;;
9906    esac
9907  done
9908
9909  case $lt_echo in
9910  *'\$0 --fallback-echo"')
9911    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9912    ;;
9913  esac
9914
9915cfgfile="${ofile}T"
9916  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9917  $rm -f "$cfgfile"
9918  { echo "$as_me:$LINENO: creating $ofile" >&5
9919echo "$as_me: creating $ofile" >&6;}
9920
9921  cat <<__EOF__ >> "$cfgfile"
9922#! $SHELL
9923
9924# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9925# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9926# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9927#
9928# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9929# Free Software Foundation, Inc.
9930#
9931# This file is part of GNU Libtool:
9932# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9933#
9934# This program is free software; you can redistribute it and/or modify
9935# it under the terms of the GNU General Public License as published by
9936# the Free Software Foundation; either version 2 of the License, or
9937# (at your option) any later version.
9938#
9939# This program is distributed in the hope that it will be useful, but
9940# WITHOUT ANY WARRANTY; without even the implied warranty of
9941# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9942# General Public License for more details.
9943#
9944# You should have received a copy of the GNU General Public License
9945# along with this program; if not, write to the Free Software
9946# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9947#
9948# As a special exception to the GNU General Public License, if you
9949# distribute this file as part of a program that contains a
9950# configuration script generated by Autoconf, you may include it under
9951# the same distribution terms that you use for the rest of that program.
9952
9953# A sed program that does not truncate output.
9954SED=$lt_SED
9955
9956# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9957Xsed="$SED -e s/^X//"
9958
9959# The HP-UX ksh and POSIX shell print the target directory to stdout
9960# if CDPATH is set.
9961if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9962
9963# The names of the tagged configurations supported by this script.
9964available_tags=
9965
9966# ### BEGIN LIBTOOL CONFIG
9967
9968# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9969
9970# Shell to use when invoking shell scripts.
9971SHELL=$lt_SHELL
9972
9973# Whether or not to build shared libraries.
9974build_libtool_libs=$enable_shared
9975
9976# Whether or not to build static libraries.
9977build_old_libs=$enable_static
9978
9979# Whether or not to add -lc for building shared libraries.
9980build_libtool_need_lc=$archive_cmds_need_lc
9981
9982# Whether or not to disallow shared libs when runtime libs are static
9983allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9984
9985# Whether or not to optimize for fast installation.
9986fast_install=$enable_fast_install
9987
9988# The host system.
9989host_alias=$host_alias
9990host=$host
9991
9992# An echo program that does not interpret backslashes.
9993echo=$lt_echo
9994
9995# The archiver.
9996AR=$lt_AR
9997AR_FLAGS=$lt_AR_FLAGS
9998
9999# A C compiler.
10000LTCC=$lt_LTCC
10001
10002# A language-specific compiler.
10003CC=$lt_compiler
10004
10005# Is the compiler the GNU C compiler?
10006with_gcc=$GCC
10007
10008# An ERE matcher.
10009EGREP=$lt_EGREP
10010
10011# The linker used to build libraries.
10012LD=$lt_LD
10013
10014# Whether we need hard or soft links.
10015LN_S=$lt_LN_S
10016
10017# A BSD-compatible nm program.
10018NM=$lt_NM
10019
10020# A symbol stripping program
10021STRIP=$lt_STRIP
10022
10023# Used to examine libraries when file_magic_cmd begins "file"
10024MAGIC_CMD=$MAGIC_CMD
10025
10026# Used on cygwin: DLL creation program.
10027DLLTOOL="$DLLTOOL"
10028
10029# Used on cygwin: object dumper.
10030OBJDUMP="$OBJDUMP"
10031
10032# Used on cygwin: assembler.
10033AS="$AS"
10034
10035# The name of the directory that contains temporary libtool files.
10036objdir=$objdir
10037
10038# How to create reloadable object files.
10039reload_flag=$lt_reload_flag
10040reload_cmds=$lt_reload_cmds
10041
10042# How to pass a linker flag through the compiler.
10043wl=$lt_lt_prog_compiler_wl
10044
10045# Object file suffix (normally "o").
10046objext="$ac_objext"
10047
10048# Old archive suffix (normally "a").
10049libext="$libext"
10050
10051# Shared library suffix (normally ".so").
10052shrext='$shrext'
10053
10054# Executable file suffix (normally "").
10055exeext="$exeext"
10056
10057# Additional compiler flags for building library objects.
10058pic_flag=$lt_lt_prog_compiler_pic
10059pic_mode=$pic_mode
10060
10061# What is the maximum length of a command?
10062max_cmd_len=$lt_cv_sys_max_cmd_len
10063
10064# Does compiler simultaneously support -c and -o options?
10065compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10066
10067# Must we lock files when doing compilation ?
10068need_locks=$lt_need_locks
10069
10070# Do we need the lib prefix for modules?
10071need_lib_prefix=$need_lib_prefix
10072
10073# Do we need a version for libraries?
10074need_version=$need_version
10075
10076# Whether dlopen is supported.
10077dlopen_support=$enable_dlopen
10078
10079# Whether dlopen of programs is supported.
10080dlopen_self=$enable_dlopen_self
10081
10082# Whether dlopen of statically linked programs is supported.
10083dlopen_self_static=$enable_dlopen_self_static
10084
10085# Compiler flag to prevent dynamic linking.
10086link_static_flag=$lt_lt_prog_compiler_static
10087
10088# Compiler flag to turn off builtin functions.
10089no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10090
10091# Compiler flag to allow reflexive dlopens.
10092export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10093
10094# Compiler flag to generate shared objects directly from archives.
10095whole_archive_flag_spec=$lt_whole_archive_flag_spec
10096
10097# Compiler flag to generate thread-safe objects.
10098thread_safe_flag_spec=$lt_thread_safe_flag_spec
10099
10100# Library versioning type.
10101version_type=$version_type
10102
10103# Format of library name prefix.
10104libname_spec=$lt_libname_spec
10105
10106# List of archive names.  First name is the real one, the rest are links.
10107# The last name is the one that the linker finds with -lNAME.
10108library_names_spec=$lt_library_names_spec
10109
10110# The coded name of the library, if different from the real name.
10111soname_spec=$lt_soname_spec
10112
10113# Commands used to build and install an old-style archive.
10114RANLIB=$lt_RANLIB
10115old_archive_cmds=$lt_old_archive_cmds
10116old_postinstall_cmds=$lt_old_postinstall_cmds
10117old_postuninstall_cmds=$lt_old_postuninstall_cmds
10118
10119# Create an old-style archive from a shared archive.
10120old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10121
10122# Create a temporary old-style archive to link instead of a shared archive.
10123old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10124
10125# Commands used to build and install a shared archive.
10126archive_cmds=$lt_archive_cmds
10127archive_expsym_cmds=$lt_archive_expsym_cmds
10128postinstall_cmds=$lt_postinstall_cmds
10129postuninstall_cmds=$lt_postuninstall_cmds
10130
10131# Commands used to build a loadable module (assumed same as above if empty)
10132module_cmds=$lt_module_cmds
10133module_expsym_cmds=$lt_module_expsym_cmds
10134
10135# Commands to strip libraries.
10136old_striplib=$lt_old_striplib
10137striplib=$lt_striplib
10138
10139# Dependencies to place before the objects being linked to create a
10140# shared library.
10141predep_objects=$lt_predep_objects
10142
10143# Dependencies to place after the objects being linked to create a
10144# shared library.
10145postdep_objects=$lt_postdep_objects
10146
10147# Dependencies to place before the objects being linked to create a
10148# shared library.
10149predeps=$lt_predeps
10150
10151# Dependencies to place after the objects being linked to create a
10152# shared library.
10153postdeps=$lt_postdeps
10154
10155# The library search path used internally by the compiler when linking
10156# a shared library.
10157compiler_lib_search_path=$lt_compiler_lib_search_path
10158
10159# Method to check whether dependent libraries are shared objects.
10160deplibs_check_method=$lt_deplibs_check_method
10161
10162# Command to use when deplibs_check_method == file_magic.
10163file_magic_cmd=$lt_file_magic_cmd
10164
10165# Flag that allows shared libraries with undefined symbols to be built.
10166allow_undefined_flag=$lt_allow_undefined_flag
10167
10168# Flag that forces no undefined symbols.
10169no_undefined_flag=$lt_no_undefined_flag
10170
10171# Commands used to finish a libtool library installation in a directory.
10172finish_cmds=$lt_finish_cmds
10173
10174# Same as above, but a single script fragment to be evaled but not shown.
10175finish_eval=$lt_finish_eval
10176
10177# Take the output of nm and produce a listing of raw symbols and C names.
10178global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10179
10180# Transform the output of nm in a proper C declaration
10181global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10182
10183# Transform the output of nm in a C name address pair
10184global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10185
10186# This is the shared library runtime path variable.
10187runpath_var=$runpath_var
10188
10189# This is the shared library path variable.
10190shlibpath_var=$shlibpath_var
10191
10192# Is shlibpath searched before the hard-coded library search path?
10193shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10194
10195# How to hardcode a shared library path into an executable.
10196hardcode_action=$hardcode_action
10197
10198# Whether we should hardcode library paths into libraries.
10199hardcode_into_libs=$hardcode_into_libs
10200
10201# Flag to hardcode \$libdir into a binary during linking.
10202# This must work even if \$libdir does not exist.
10203hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10204
10205# If ld is used when linking, flag to hardcode \$libdir into
10206# a binary during linking. This must work even if \$libdir does
10207# not exist.
10208hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10209
10210# Whether we need a single -rpath flag with a separated argument.
10211hardcode_libdir_separator=$lt_hardcode_libdir_separator
10212
10213# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10214# resulting binary.
10215hardcode_direct=$hardcode_direct
10216
10217# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10218# resulting binary.
10219hardcode_minus_L=$hardcode_minus_L
10220
10221# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10222# the resulting binary.
10223hardcode_shlibpath_var=$hardcode_shlibpath_var
10224
10225# Set to yes if building a shared library automatically hardcodes DIR into the library
10226# and all subsequent libraries and executables linked against it.
10227hardcode_automatic=$hardcode_automatic
10228
10229# Variables whose values should be saved in libtool wrapper scripts and
10230# restored at relink time.
10231variables_saved_for_relink="$variables_saved_for_relink"
10232
10233# Whether libtool must link a program against all its dependency libraries.
10234link_all_deplibs=$link_all_deplibs
10235
10236# Compile-time system search path for libraries
10237sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10238
10239# Run-time system search path for libraries
10240sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10241
10242# Fix the shell variable \$srcfile for the compiler.
10243fix_srcfile_path="$fix_srcfile_path"
10244
10245# Set to yes if exported symbols are required.
10246always_export_symbols=$always_export_symbols
10247
10248# The commands to list exported symbols.
10249export_symbols_cmds=$lt_export_symbols_cmds
10250
10251# The commands to extract the exported symbol list from a shared archive.
10252extract_expsyms_cmds=$lt_extract_expsyms_cmds
10253
10254# Symbols that should not be listed in the preloaded symbols.
10255exclude_expsyms=$lt_exclude_expsyms
10256
10257# Symbols that must always be exported.
10258include_expsyms=$lt_include_expsyms
10259
10260# ### END LIBTOOL CONFIG
10261
10262__EOF__
10263
10264
10265  case $host_os in
10266  aix3*)
10267    cat <<\EOF >> "$cfgfile"
10268
10269# AIX sometimes has problems with the GCC collect2 program.  For some
10270# reason, if we set the COLLECT_NAMES environment variable, the problems
10271# vanish in a puff of smoke.
10272if test "X${COLLECT_NAMES+set}" != Xset; then
10273  COLLECT_NAMES=
10274  export COLLECT_NAMES
10275fi
10276EOF
10277    ;;
10278  esac
10279
10280  # We use sed instead of cat because bash on DJGPP gets confused if
10281  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10282  # text mode, it properly converts lines to CR/LF.  This bash problem
10283  # is reportedly fixed, but why not run on old versions too?
10284  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10285
10286  mv -f "$cfgfile" "$ofile" || \
10287    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10288  chmod +x "$ofile"
10289
10290else
10291  # If there is no Makefile yet, we rely on a make rule to execute
10292  # `config.status --recheck' to rerun these tests and create the
10293  # libtool script then.
10294  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10295  if test -f "$ltmain_in"; then
10296    test -f Makefile && make "$ltmain"
10297  fi
10298fi
10299
10300
10301ac_ext=c
10302ac_cpp='$CPP $CPPFLAGS'
10303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10305ac_compiler_gnu=$ac_cv_c_compiler_gnu
10306
10307CC="$lt_save_CC"
10308
10309
10310# Check whether --with-tags or --without-tags was given.
10311if test "${with_tags+set}" = set; then
10312  withval="$with_tags"
10313  tagnames="$withval"
10314fi;
10315
10316if test -f "$ltmain" && test -n "$tagnames"; then
10317  if test ! -f "${ofile}"; then
10318    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10319echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10320  fi
10321
10322  if test -z "$LTCC"; then
10323    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10324    if test -z "$LTCC"; then
10325      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10326echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10327    else
10328      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10329echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10330    fi
10331  fi
10332
10333  # Extract list of available tagged configurations in $ofile.
10334  # Note that this assumes the entire list is on one line.
10335  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10336
10337  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10338  for tagname in $tagnames; do
10339    IFS="$lt_save_ifs"
10340    # Check whether tagname contains only valid characters
10341    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10342    "") ;;
10343    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10344echo "$as_me: error: invalid tag name: $tagname" >&2;}
10345   { (exit 1); exit 1; }; }
10346	;;
10347    esac
10348
10349    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10350    then
10351      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10352echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10353   { (exit 1); exit 1; }; }
10354    fi
10355
10356    # Update the list of available tags.
10357    if test -n "$tagname"; then
10358      echo appending configuration tag \"$tagname\" to $ofile
10359
10360      case $tagname in
10361      CXX)
10362	if test -n "$CXX" && test "X$CXX" != "Xno"; then
10363	  ac_ext=cc
10364ac_cpp='$CXXCPP $CPPFLAGS'
10365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10368
10369
10370
10371
10372archive_cmds_need_lc_CXX=no
10373allow_undefined_flag_CXX=
10374always_export_symbols_CXX=no
10375archive_expsym_cmds_CXX=
10376export_dynamic_flag_spec_CXX=
10377hardcode_direct_CXX=no
10378hardcode_libdir_flag_spec_CXX=
10379hardcode_libdir_flag_spec_ld_CXX=
10380hardcode_libdir_separator_CXX=
10381hardcode_minus_L_CXX=no
10382hardcode_automatic_CXX=no
10383module_cmds_CXX=
10384module_expsym_cmds_CXX=
10385link_all_deplibs_CXX=unknown
10386old_archive_cmds_CXX=$old_archive_cmds
10387no_undefined_flag_CXX=
10388whole_archive_flag_spec_CXX=
10389enable_shared_with_static_runtimes_CXX=no
10390
10391# Dependencies to place before and after the object being linked:
10392predep_objects_CXX=
10393postdep_objects_CXX=
10394predeps_CXX=
10395postdeps_CXX=
10396compiler_lib_search_path_CXX=
10397
10398# Source file extension for C++ test sources.
10399ac_ext=cc
10400
10401# Object file extension for compiled C++ test sources.
10402objext=o
10403objext_CXX=$objext
10404
10405# Code to be used in simple compile tests
10406lt_simple_compile_test_code="int some_variable = 0;\n"
10407
10408# Code to be used in simple link tests
10409lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10410
10411# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10412
10413# If no C compiler was specified, use CC.
10414LTCC=${LTCC-"$CC"}
10415
10416# Allow CC to be a program name with arguments.
10417compiler=$CC
10418
10419
10420# Allow CC to be a program name with arguments.
10421lt_save_CC=$CC
10422lt_save_LD=$LD
10423lt_save_GCC=$GCC
10424GCC=$GXX
10425lt_save_with_gnu_ld=$with_gnu_ld
10426lt_save_path_LD=$lt_cv_path_LD
10427if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10428  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10429else
10430  unset lt_cv_prog_gnu_ld
10431fi
10432if test -n "${lt_cv_path_LDCXX+set}"; then
10433  lt_cv_path_LD=$lt_cv_path_LDCXX
10434else
10435  unset lt_cv_path_LD
10436fi
10437test -z "${LDCXX+set}" || LD=$LDCXX
10438CC=${CXX-"c++"}
10439compiler=$CC
10440compiler_CXX=$CC
10441cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10442
10443# We don't want -fno-exception wen compiling C++ code, so set the
10444# no_builtin_flag separately
10445if test "$GXX" = yes; then
10446  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10447else
10448  lt_prog_compiler_no_builtin_flag_CXX=
10449fi
10450
10451if test "$GXX" = yes; then
10452  # Set up default GNU C++ configuration
10453
10454
10455# Check whether --with-gnu-ld or --without-gnu-ld was given.
10456if test "${with_gnu_ld+set}" = set; then
10457  withval="$with_gnu_ld"
10458  test "$withval" = no || with_gnu_ld=yes
10459else
10460  with_gnu_ld=no
10461fi;
10462ac_prog=ld
10463if test "$GCC" = yes; then
10464  # Check if gcc -print-prog-name=ld gives a path.
10465  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10466echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10467  case $host in
10468  *-*-mingw*)
10469    # gcc leaves a trailing carriage return which upsets mingw
10470    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10471  *)
10472    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10473  esac
10474  case $ac_prog in
10475    # Accept absolute paths.
10476    [\\/]* | ?:[\\/]*)
10477      re_direlt='/[^/][^/]*/\.\./'
10478      # Canonicalize the pathname of ld
10479      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10480      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10481	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10482      done
10483      test -z "$LD" && LD="$ac_prog"
10484      ;;
10485  "")
10486    # If it fails, then pretend we aren't using GCC.
10487    ac_prog=ld
10488    ;;
10489  *)
10490    # If it is relative, then search for the first ld in PATH.
10491    with_gnu_ld=unknown
10492    ;;
10493  esac
10494elif test "$with_gnu_ld" = yes; then
10495  echo "$as_me:$LINENO: checking for GNU ld" >&5
10496echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10497else
10498  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10499echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10500fi
10501if test "${lt_cv_path_LD+set}" = set; then
10502  echo $ECHO_N "(cached) $ECHO_C" >&6
10503else
10504  if test -z "$LD"; then
10505  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10506  for ac_dir in $PATH; do
10507    IFS="$lt_save_ifs"
10508    test -z "$ac_dir" && ac_dir=.
10509    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10510      lt_cv_path_LD="$ac_dir/$ac_prog"
10511      # Check to see if the program is GNU ld.  I'd rather use --version,
10512      # but apparently some GNU ld's only accept -v.
10513      # Break only if it was the GNU/non-GNU ld that we prefer.
10514      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10515      *GNU* | *'with BFD'*)
10516	test "$with_gnu_ld" != no && break
10517	;;
10518      *)
10519	test "$with_gnu_ld" != yes && break
10520	;;
10521      esac
10522    fi
10523  done
10524  IFS="$lt_save_ifs"
10525else
10526  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10527fi
10528fi
10529
10530LD="$lt_cv_path_LD"
10531if test -n "$LD"; then
10532  echo "$as_me:$LINENO: result: $LD" >&5
10533echo "${ECHO_T}$LD" >&6
10534else
10535  echo "$as_me:$LINENO: result: no" >&5
10536echo "${ECHO_T}no" >&6
10537fi
10538test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10539echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10540   { (exit 1); exit 1; }; }
10541echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10542echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10543if test "${lt_cv_prog_gnu_ld+set}" = set; then
10544  echo $ECHO_N "(cached) $ECHO_C" >&6
10545else
10546  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10547case `$LD -v 2>&1 </dev/null` in
10548*GNU* | *'with BFD'*)
10549  lt_cv_prog_gnu_ld=yes
10550  ;;
10551*)
10552  lt_cv_prog_gnu_ld=no
10553  ;;
10554esac
10555fi
10556echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10557echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10558with_gnu_ld=$lt_cv_prog_gnu_ld
10559
10560
10561
10562  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10563  # archiving commands below assume that GNU ld is being used.
10564  if test "$with_gnu_ld" = yes; then
10565    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10566    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10567
10568    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10569    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10570
10571    # If archive_cmds runs LD, not CC, wlarc should be empty
10572    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10573    #     investigate it a little bit more. (MM)
10574    wlarc='${wl}'
10575
10576    # ancient GNU ld didn't support --whole-archive et. al.
10577    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10578	grep 'no-whole-archive' > /dev/null; then
10579      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10580    else
10581      whole_archive_flag_spec_CXX=
10582    fi
10583  else
10584    with_gnu_ld=no
10585    wlarc=
10586
10587    # A generic and very simple default shared library creation
10588    # command for GNU C++ for the case where it uses the native
10589    # linker, instead of GNU ld.  If possible, this setting should
10590    # overridden to take advantage of the native linker features on
10591    # the platform it is being used on.
10592    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10593  fi
10594
10595  # Commands to make compiler produce verbose output that lists
10596  # what "hidden" libraries, object files and flags are used when
10597  # linking a shared library.
10598  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10599
10600else
10601  GXX=no
10602  with_gnu_ld=no
10603  wlarc=
10604fi
10605
10606# PORTME: fill in a description of your system's C++ link characteristics
10607echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10608echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10609ld_shlibs_CXX=yes
10610case $host_os in
10611  aix3*)
10612    # FIXME: insert proper C++ library support
10613    ld_shlibs_CXX=no
10614    ;;
10615  aix4* | aix5*)
10616    if test "$host_cpu" = ia64; then
10617      # On IA64, the linker does run time linking by default, so we don't
10618      # have to do anything special.
10619      aix_use_runtimelinking=no
10620      exp_sym_flag='-Bexport'
10621      no_entry_flag=""
10622    else
10623      aix_use_runtimelinking=no
10624
10625      # Test if we are trying to use run time linking or normal
10626      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10627      # need to do runtime linking.
10628      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10629	for ld_flag in $LDFLAGS; do
10630	  case $ld_flag in
10631	  *-brtl*)
10632	    aix_use_runtimelinking=yes
10633	    break
10634	    ;;
10635	  esac
10636	done
10637      esac
10638
10639      exp_sym_flag='-bexport'
10640      no_entry_flag='-bnoentry'
10641    fi
10642
10643    # When large executables or shared objects are built, AIX ld can
10644    # have problems creating the table of contents.  If linking a library
10645    # or program results in "error TOC overflow" add -mminimal-toc to
10646    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10647    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10648
10649    archive_cmds_CXX=''
10650    hardcode_direct_CXX=yes
10651    hardcode_libdir_separator_CXX=':'
10652    link_all_deplibs_CXX=yes
10653
10654    if test "$GXX" = yes; then
10655      case $host_os in aix4.012|aix4.012.*)
10656      # We only want to do this on AIX 4.2 and lower, the check
10657      # below for broken collect2 doesn't work under 4.3+
10658	collect2name=`${CC} -print-prog-name=collect2`
10659	if test -f "$collect2name" && \
10660	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10661	then
10662	  # We have reworked collect2
10663	  hardcode_direct_CXX=yes
10664	else
10665	  # We have old collect2
10666	  hardcode_direct_CXX=unsupported
10667	  # It fails to find uninstalled libraries when the uninstalled
10668	  # path is not listed in the libpath.  Setting hardcode_minus_L
10669	  # to unsupported forces relinking
10670	  hardcode_minus_L_CXX=yes
10671	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10672	  hardcode_libdir_separator_CXX=
10673	fi
10674      esac
10675      shared_flag='-shared'
10676    else
10677      # not using gcc
10678      if test "$host_cpu" = ia64; then
10679	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10680	# chokes on -Wl,-G. The following line is correct:
10681	shared_flag='-G'
10682      else
10683	if test "$aix_use_runtimelinking" = yes; then
10684	  shared_flag='${wl}-G'
10685	else
10686	  shared_flag='${wl}-bM:SRE'
10687	fi
10688      fi
10689    fi
10690
10691    # It seems that -bexpall does not export symbols beginning with
10692    # underscore (_), so it is better to generate a list of symbols to export.
10693    always_export_symbols_CXX=yes
10694    if test "$aix_use_runtimelinking" = yes; then
10695      # Warning - without using the other runtime loading flags (-brtl),
10696      # -berok will link without error, but may produce a broken library.
10697      allow_undefined_flag_CXX='-berok'
10698      # Determine the default libpath from the value encoded in an empty executable.
10699      cat >conftest.$ac_ext <<_ACEOF
10700/* confdefs.h.  */
10701_ACEOF
10702cat confdefs.h >>conftest.$ac_ext
10703cat >>conftest.$ac_ext <<_ACEOF
10704/* end confdefs.h.  */
10705
10706int
10707main ()
10708{
10709
10710  ;
10711  return 0;
10712}
10713_ACEOF
10714rm -f conftest.$ac_objext conftest$ac_exeext
10715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10716  (eval $ac_link) 2>conftest.er1
10717  ac_status=$?
10718  grep -v '^ *+' conftest.er1 >conftest.err
10719  rm -f conftest.er1
10720  cat conftest.err >&5
10721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722  (exit $ac_status); } &&
10723	 { ac_try='test -z "$ac_cxx_werror_flag"
10724			 || test ! -s conftest.err'
10725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726  (eval $ac_try) 2>&5
10727  ac_status=$?
10728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729  (exit $ac_status); }; } &&
10730	 { ac_try='test -s conftest$ac_exeext'
10731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732  (eval $ac_try) 2>&5
10733  ac_status=$?
10734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735  (exit $ac_status); }; }; then
10736
10737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10738}'`
10739# Check for a 64-bit object if we didn't find anything.
10740if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10741}'`; fi
10742else
10743  echo "$as_me: failed program was:" >&5
10744sed 's/^/| /' conftest.$ac_ext >&5
10745
10746fi
10747rm -f conftest.err conftest.$ac_objext \
10748      conftest$ac_exeext conftest.$ac_ext
10749if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10750
10751      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10752
10753      archive_expsym_cmds_CXX="\$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"
10754     else
10755      if test "$host_cpu" = ia64; then
10756	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10757	allow_undefined_flag_CXX="-z nodefs"
10758	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10759      else
10760	# Determine the default libpath from the value encoded in an empty executable.
10761	cat >conftest.$ac_ext <<_ACEOF
10762/* confdefs.h.  */
10763_ACEOF
10764cat confdefs.h >>conftest.$ac_ext
10765cat >>conftest.$ac_ext <<_ACEOF
10766/* end confdefs.h.  */
10767
10768int
10769main ()
10770{
10771
10772  ;
10773  return 0;
10774}
10775_ACEOF
10776rm -f conftest.$ac_objext conftest$ac_exeext
10777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10778  (eval $ac_link) 2>conftest.er1
10779  ac_status=$?
10780  grep -v '^ *+' conftest.er1 >conftest.err
10781  rm -f conftest.er1
10782  cat conftest.err >&5
10783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784  (exit $ac_status); } &&
10785	 { ac_try='test -z "$ac_cxx_werror_flag"
10786			 || test ! -s conftest.err'
10787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788  (eval $ac_try) 2>&5
10789  ac_status=$?
10790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791  (exit $ac_status); }; } &&
10792	 { ac_try='test -s conftest$ac_exeext'
10793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794  (eval $ac_try) 2>&5
10795  ac_status=$?
10796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797  (exit $ac_status); }; }; then
10798
10799aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10800}'`
10801# Check for a 64-bit object if we didn't find anything.
10802if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10803}'`; fi
10804else
10805  echo "$as_me: failed program was:" >&5
10806sed 's/^/| /' conftest.$ac_ext >&5
10807
10808fi
10809rm -f conftest.err conftest.$ac_objext \
10810      conftest$ac_exeext conftest.$ac_ext
10811if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10812
10813	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10814	# Warning - without using the other run time loading flags,
10815	# -berok will link without error, but may produce a broken library.
10816	no_undefined_flag_CXX=' ${wl}-bernotok'
10817	allow_undefined_flag_CXX=' ${wl}-berok'
10818	# -bexpall does not export symbols beginning with underscore (_)
10819	always_export_symbols_CXX=yes
10820	# Exported symbols can be pulled into shared objects from archives
10821	whole_archive_flag_spec_CXX=' '
10822	archive_cmds_need_lc_CXX=yes
10823	# This is similar to how AIX traditionally builds it's shared libraries.
10824	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10825      fi
10826    fi
10827    ;;
10828  chorus*)
10829    case $cc_basename in
10830      *)
10831	# FIXME: insert proper C++ library support
10832	ld_shlibs_CXX=no
10833	;;
10834    esac
10835    ;;
10836
10837  cygwin* | mingw* | pw32*)
10838    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10839    # as there is no search path for DLLs.
10840    hardcode_libdir_flag_spec_CXX='-L$libdir'
10841    allow_undefined_flag_CXX=unsupported
10842    always_export_symbols_CXX=no
10843    enable_shared_with_static_runtimes_CXX=yes
10844
10845    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10846      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10847      # If the export-symbols file already is a .def file (1st line
10848      # is EXPORTS), use it as is; otherwise, prepend...
10849      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10850	cp $export_symbols $output_objdir/$soname.def;
10851      else
10852	echo EXPORTS > $output_objdir/$soname.def;
10853	cat $export_symbols >> $output_objdir/$soname.def;
10854      fi~
10855      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10856    else
10857      ld_shlibs_CXX=no
10858    fi
10859  ;;
10860
10861  darwin* | rhapsody*)
10862  if test "$GXX" = yes; then
10863    archive_cmds_need_lc_CXX=no
10864    case "$host_os" in
10865    rhapsody* | darwin1.[012])
10866      allow_undefined_flag_CXX='-undefined suppress'
10867      ;;
10868    *) # Darwin 1.3 on
10869      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10870      	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10871      else
10872        case ${MACOSX_DEPLOYMENT_TARGET} in
10873          10.[012])
10874            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10875            ;;
10876          10.*)
10877            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10878            ;;
10879        esac
10880      fi
10881      ;;
10882    esac
10883    lt_int_apple_cc_single_mod=no
10884    output_verbose_link_cmd='echo'
10885    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10886      lt_int_apple_cc_single_mod=yes
10887    fi
10888    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10889      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10890    else
10891      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10892    fi
10893    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10894
10895    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10896    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10897      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10898    else
10899      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10900    fi
10901    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10902    hardcode_direct_CXX=no
10903    hardcode_automatic_CXX=yes
10904    hardcode_shlibpath_var_CXX=unsupported
10905    whole_archive_flag_spec_CXX='-all_load $convenience'
10906    link_all_deplibs_CXX=yes
10907  else
10908    ld_shlibs_CXX=no
10909  fi
10910    ;;
10911
10912  dgux*)
10913    case $cc_basename in
10914      ec++)
10915	# FIXME: insert proper C++ library support
10916	ld_shlibs_CXX=no
10917	;;
10918      ghcx)
10919	# Green Hills C++ Compiler
10920	# FIXME: insert proper C++ library support
10921	ld_shlibs_CXX=no
10922	;;
10923      *)
10924	# FIXME: insert proper C++ library support
10925	ld_shlibs_CXX=no
10926	;;
10927    esac
10928    ;;
10929  freebsd12*)
10930    # C++ shared libraries reported to be fairly broken before switch to ELF
10931    ld_shlibs_CXX=no
10932    ;;
10933  freebsd-elf*)
10934    archive_cmds_need_lc_CXX=no
10935    ;;
10936  freebsd* | kfreebsd*-gnu)
10937    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10938    # conventions
10939    ld_shlibs_CXX=yes
10940    ;;
10941  gnu*)
10942    ;;
10943  hpux9*)
10944    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10945    hardcode_libdir_separator_CXX=:
10946    export_dynamic_flag_spec_CXX='${wl}-E'
10947    hardcode_direct_CXX=yes
10948    hardcode_minus_L_CXX=yes # Not in the search PATH,
10949				# but as the default
10950				# location of the library.
10951
10952    case $cc_basename in
10953    CC)
10954      # FIXME: insert proper C++ library support
10955      ld_shlibs_CXX=no
10956      ;;
10957    aCC)
10958      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10959      # Commands to make compiler produce verbose output that lists
10960      # what "hidden" libraries, object files and flags are used when
10961      # linking a shared library.
10962      #
10963      # There doesn't appear to be a way to prevent this compiler from
10964      # explicitly linking system object files so we need to strip them
10965      # from the output so that they don't get included in the library
10966      # dependencies.
10967      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10968      ;;
10969    *)
10970      if test "$GXX" = yes; then
10971        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10972      else
10973        # FIXME: insert proper C++ library support
10974        ld_shlibs_CXX=no
10975      fi
10976      ;;
10977    esac
10978    ;;
10979  hpux10*|hpux11*)
10980    if test $with_gnu_ld = no; then
10981      case "$host_cpu" in
10982      hppa*64*)
10983	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10984	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10985	hardcode_libdir_separator_CXX=:
10986        ;;
10987      ia64*)
10988	hardcode_libdir_flag_spec_CXX='-L$libdir'
10989        ;;
10990      *)
10991	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10992	hardcode_libdir_separator_CXX=:
10993	export_dynamic_flag_spec_CXX='${wl}-E'
10994        ;;
10995      esac
10996    fi
10997    case "$host_cpu" in
10998    hppa*64*)
10999      hardcode_direct_CXX=no
11000      hardcode_shlibpath_var_CXX=no
11001      ;;
11002    ia64*)
11003      hardcode_direct_CXX=no
11004      hardcode_shlibpath_var_CXX=no
11005      hardcode_minus_L_CXX=yes # Not in the search PATH,
11006					      # but as the default
11007					      # location of the library.
11008      ;;
11009    *)
11010      hardcode_direct_CXX=yes
11011      hardcode_minus_L_CXX=yes # Not in the search PATH,
11012					      # but as the default
11013					      # location of the library.
11014      ;;
11015    esac
11016
11017    case $cc_basename in
11018      CC)
11019	# FIXME: insert proper C++ library support
11020	ld_shlibs_CXX=no
11021	;;
11022      aCC)
11023	case "$host_cpu" in
11024	hppa*64*|ia64*)
11025	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11026	  ;;
11027	*)
11028	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11029	  ;;
11030	esac
11031	# Commands to make compiler produce verbose output that lists
11032	# what "hidden" libraries, object files and flags are used when
11033	# linking a shared library.
11034	#
11035	# There doesn't appear to be a way to prevent this compiler from
11036	# explicitly linking system object files so we need to strip them
11037	# from the output so that they don't get included in the library
11038	# dependencies.
11039	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11040	;;
11041      *)
11042	if test "$GXX" = yes; then
11043	  if test $with_gnu_ld = no; then
11044	    case "$host_cpu" in
11045	    ia64*|hppa*64*)
11046	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11047	      ;;
11048	    *)
11049	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11050	      ;;
11051	    esac
11052	  fi
11053	else
11054	  # FIXME: insert proper C++ library support
11055	  ld_shlibs_CXX=no
11056	fi
11057	;;
11058    esac
11059    ;;
11060  irix5* | irix6*)
11061    case $cc_basename in
11062      CC)
11063	# SGI C++
11064	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11065
11066	# Archives containing C++ object files must be created using
11067	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11068	# necessary to make sure instantiated templates are included
11069	# in the archive.
11070	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11071	;;
11072      *)
11073	if test "$GXX" = yes; then
11074	  if test "$with_gnu_ld" = no; then
11075	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11076	  else
11077	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11078	  fi
11079	fi
11080	link_all_deplibs_CXX=yes
11081	;;
11082    esac
11083    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11084    hardcode_libdir_separator_CXX=:
11085    ;;
11086  linux*)
11087    case $cc_basename in
11088      KCC)
11089	# Kuck and Associates, Inc. (KAI) C++ Compiler
11090
11091	# KCC will only create a shared library if the output file
11092	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11093	# to its proper name (with version) after linking.
11094	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11095	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11096	# Commands to make compiler produce verbose output that lists
11097	# what "hidden" libraries, object files and flags are used when
11098	# linking a shared library.
11099	#
11100	# There doesn't appear to be a way to prevent this compiler from
11101	# explicitly linking system object files so we need to strip them
11102	# from the output so that they don't get included in the library
11103	# dependencies.
11104	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11105
11106	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11107	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11108
11109	# Archives containing C++ object files must be created using
11110	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11111	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11112	;;
11113      icpc)
11114	# Intel C++
11115	with_gnu_ld=yes
11116	archive_cmds_need_lc_CXX=no
11117	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11118	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11119	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11120	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11121	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11122	;;
11123      cxx)
11124	# Compaq C++
11125	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11126	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11127
11128	runpath_var=LD_RUN_PATH
11129	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11130	hardcode_libdir_separator_CXX=:
11131
11132	# Commands to make compiler produce verbose output that lists
11133	# what "hidden" libraries, object files and flags are used when
11134	# linking a shared library.
11135	#
11136	# There doesn't appear to be a way to prevent this compiler from
11137	# explicitly linking system object files so we need to strip them
11138	# from the output so that they don't get included in the library
11139	# dependencies.
11140	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11141	;;
11142    esac
11143    ;;
11144  lynxos*)
11145    # FIXME: insert proper C++ library support
11146    ld_shlibs_CXX=no
11147    ;;
11148  m88k*)
11149    # FIXME: insert proper C++ library support
11150    ld_shlibs_CXX=no
11151    ;;
11152  mvs*)
11153    case $cc_basename in
11154      cxx)
11155	# FIXME: insert proper C++ library support
11156	ld_shlibs_CXX=no
11157	;;
11158      *)
11159	# FIXME: insert proper C++ library support
11160	ld_shlibs_CXX=no
11161	;;
11162    esac
11163    ;;
11164  netbsd*)
11165    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11166      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11167      wlarc=
11168      hardcode_libdir_flag_spec_CXX='-R$libdir'
11169      hardcode_direct_CXX=yes
11170      hardcode_shlibpath_var_CXX=no
11171    fi
11172    # Workaround some broken pre-1.5 toolchains
11173    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11174    ;;
11175  osf3*)
11176    case $cc_basename in
11177      KCC)
11178	# Kuck and Associates, Inc. (KAI) C++ Compiler
11179
11180	# KCC will only create a shared library if the output file
11181	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11182	# to its proper name (with version) after linking.
11183	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11184
11185	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11186	hardcode_libdir_separator_CXX=:
11187
11188	# Archives containing C++ object files must be created using
11189	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11190	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11191
11192	;;
11193      RCC)
11194	# Rational C++ 2.4.1
11195	# FIXME: insert proper C++ library support
11196	ld_shlibs_CXX=no
11197	;;
11198      cxx)
11199	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11200	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11201
11202	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11203	hardcode_libdir_separator_CXX=:
11204
11205	# Commands to make compiler produce verbose output that lists
11206	# what "hidden" libraries, object files and flags are used when
11207	# linking a shared library.
11208	#
11209	# There doesn't appear to be a way to prevent this compiler from
11210	# explicitly linking system object files so we need to strip them
11211	# from the output so that they don't get included in the library
11212	# dependencies.
11213	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11214	;;
11215      *)
11216	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11217	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11218	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11219
11220	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11221	  hardcode_libdir_separator_CXX=:
11222
11223	  # Commands to make compiler produce verbose output that lists
11224	  # what "hidden" libraries, object files and flags are used when
11225	  # linking a shared library.
11226	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11227
11228	else
11229	  # FIXME: insert proper C++ library support
11230	  ld_shlibs_CXX=no
11231	fi
11232	;;
11233    esac
11234    ;;
11235  osf4* | osf5*)
11236    case $cc_basename in
11237      KCC)
11238	# Kuck and Associates, Inc. (KAI) C++ Compiler
11239
11240	# KCC will only create a shared library if the output file
11241	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11242	# to its proper name (with version) after linking.
11243	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11244
11245	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11246	hardcode_libdir_separator_CXX=:
11247
11248	# Archives containing C++ object files must be created using
11249	# the KAI C++ compiler.
11250	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11251	;;
11252      RCC)
11253	# Rational C++ 2.4.1
11254	# FIXME: insert proper C++ library support
11255	ld_shlibs_CXX=no
11256	;;
11257      cxx)
11258	allow_undefined_flag_CXX=' -expect_unresolved \*'
11259	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11260	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11261	  echo "-hidden">> $lib.exp~
11262	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
11263	  $rm $lib.exp'
11264
11265	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11266	hardcode_libdir_separator_CXX=:
11267
11268	# Commands to make compiler produce verbose output that lists
11269	# what "hidden" libraries, object files and flags are used when
11270	# linking a shared library.
11271	#
11272	# There doesn't appear to be a way to prevent this compiler from
11273	# explicitly linking system object files so we need to strip them
11274	# from the output so that they don't get included in the library
11275	# dependencies.
11276	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11277	;;
11278      *)
11279	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11280	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11281	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11282
11283	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11284	  hardcode_libdir_separator_CXX=:
11285
11286	  # Commands to make compiler produce verbose output that lists
11287	  # what "hidden" libraries, object files and flags are used when
11288	  # linking a shared library.
11289	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11290
11291	else
11292	  # FIXME: insert proper C++ library support
11293	  ld_shlibs_CXX=no
11294	fi
11295	;;
11296    esac
11297    ;;
11298  psos*)
11299    # FIXME: insert proper C++ library support
11300    ld_shlibs_CXX=no
11301    ;;
11302  sco*)
11303    archive_cmds_need_lc_CXX=no
11304    case $cc_basename in
11305      CC)
11306	# FIXME: insert proper C++ library support
11307	ld_shlibs_CXX=no
11308	;;
11309      *)
11310	# FIXME: insert proper C++ library support
11311	ld_shlibs_CXX=no
11312	;;
11313    esac
11314    ;;
11315  sunos4*)
11316    case $cc_basename in
11317      CC)
11318	# Sun C++ 4.x
11319	# FIXME: insert proper C++ library support
11320	ld_shlibs_CXX=no
11321	;;
11322      lcc)
11323	# Lucid
11324	# FIXME: insert proper C++ library support
11325	ld_shlibs_CXX=no
11326	;;
11327      *)
11328	# FIXME: insert proper C++ library support
11329	ld_shlibs_CXX=no
11330	;;
11331    esac
11332    ;;
11333  solaris*)
11334    case $cc_basename in
11335      CC)
11336	# Sun C++ 4.2, 5.x and Centerline C++
11337	no_undefined_flag_CXX=' -zdefs'
11338	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11339	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11340	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11341
11342	hardcode_libdir_flag_spec_CXX='-R$libdir'
11343	hardcode_shlibpath_var_CXX=no
11344	case $host_os in
11345	  solaris2.0-5 | solaris2.0-5.*) ;;
11346	  *)
11347	    # The C++ compiler is used as linker so we must use $wl
11348	    # flag to pass the commands to the underlying system
11349	    # linker.
11350	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11351	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11352	    ;;
11353	esac
11354	link_all_deplibs_CXX=yes
11355
11356	# Commands to make compiler produce verbose output that lists
11357	# what "hidden" libraries, object files and flags are used when
11358	# linking a shared library.
11359	#
11360	# There doesn't appear to be a way to prevent this compiler from
11361	# explicitly linking system object files so we need to strip them
11362	# from the output so that they don't get included in the library
11363	# dependencies.
11364	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11365
11366	# Archives containing C++ object files must be created using
11367	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11368	# necessary to make sure instantiated templates are included
11369	# in the archive.
11370	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11371	;;
11372      gcx)
11373	# Green Hills C++ Compiler
11374	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11375
11376	# The C++ compiler must be used to create the archive.
11377	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11378	;;
11379      *)
11380	# GNU C++ compiler with Solaris linker
11381	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11382	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11383	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11384	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11385	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11386		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11387
11388	    # Commands to make compiler produce verbose output that lists
11389	    # what "hidden" libraries, object files and flags are used when
11390	    # linking a shared library.
11391	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11392	  else
11393	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11394	    # platform.
11395	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11396	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11397		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11398
11399	    # Commands to make compiler produce verbose output that lists
11400	    # what "hidden" libraries, object files and flags are used when
11401	    # linking a shared library.
11402	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11403	  fi
11404
11405	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11406	fi
11407	;;
11408    esac
11409    ;;
11410  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11411    archive_cmds_need_lc_CXX=no
11412    ;;
11413  tandem*)
11414    case $cc_basename in
11415      NCC)
11416	# NonStop-UX NCC 3.20
11417	# FIXME: insert proper C++ library support
11418	ld_shlibs_CXX=no
11419	;;
11420      *)
11421	# FIXME: insert proper C++ library support
11422	ld_shlibs_CXX=no
11423	;;
11424    esac
11425    ;;
11426  vxworks*)
11427    # FIXME: insert proper C++ library support
11428    ld_shlibs_CXX=no
11429    ;;
11430  *)
11431    # FIXME: insert proper C++ library support
11432    ld_shlibs_CXX=no
11433    ;;
11434esac
11435echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11436echo "${ECHO_T}$ld_shlibs_CXX" >&6
11437test "$ld_shlibs_CXX" = no && can_build_shared=no
11438
11439GCC_CXX="$GXX"
11440LD_CXX="$LD"
11441
11442
11443cat > conftest.$ac_ext <<EOF
11444class Foo
11445{
11446public:
11447  Foo (void) { a = 0; }
11448private:
11449  int a;
11450};
11451EOF
11452
11453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11454  (eval $ac_compile) 2>&5
11455  ac_status=$?
11456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457  (exit $ac_status); }; then
11458  # Parse the compiler output and extract the necessary
11459  # objects, libraries and library flags.
11460
11461  # Sentinel used to keep track of whether or not we are before
11462  # the conftest object file.
11463  pre_test_object_deps_done=no
11464
11465  # The `*' in the case matches for architectures that use `case' in
11466  # $output_verbose_cmd can trigger glob expansion during the loop
11467  # eval without this substitution.
11468  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11469
11470  for p in `eval $output_verbose_link_cmd`; do
11471    case $p in
11472
11473    -L* | -R* | -l*)
11474       # Some compilers place space between "-{L,R}" and the path.
11475       # Remove the space.
11476       if test $p = "-L" \
11477	  || test $p = "-R"; then
11478	 prev=$p
11479	 continue
11480       else
11481	 prev=
11482       fi
11483
11484       if test "$pre_test_object_deps_done" = no; then
11485	 case $p in
11486	 -L* | -R*)
11487	   # Internal compiler library paths should come after those
11488	   # provided the user.  The postdeps already come after the
11489	   # user supplied libs so there is no need to process them.
11490	   if test -z "$compiler_lib_search_path_CXX"; then
11491	     compiler_lib_search_path_CXX="${prev}${p}"
11492	   else
11493	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11494	   fi
11495	   ;;
11496	 # The "-l" case would never come before the object being
11497	 # linked, so don't bother handling this case.
11498	 esac
11499       else
11500	 if test -z "$postdeps_CXX"; then
11501	   postdeps_CXX="${prev}${p}"
11502	 else
11503	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11504	 fi
11505       fi
11506       ;;
11507
11508    *.$objext)
11509       # This assumes that the test object file only shows up
11510       # once in the compiler output.
11511       if test "$p" = "conftest.$objext"; then
11512	 pre_test_object_deps_done=yes
11513	 continue
11514       fi
11515
11516       if test "$pre_test_object_deps_done" = no; then
11517	 if test -z "$predep_objects_CXX"; then
11518	   predep_objects_CXX="$p"
11519	 else
11520	   predep_objects_CXX="$predep_objects_CXX $p"
11521	 fi
11522       else
11523	 if test -z "$postdep_objects_CXX"; then
11524	   postdep_objects_CXX="$p"
11525	 else
11526	   postdep_objects_CXX="$postdep_objects_CXX $p"
11527	 fi
11528       fi
11529       ;;
11530
11531    *) ;; # Ignore the rest.
11532
11533    esac
11534  done
11535
11536  # Clean up.
11537  rm -f a.out a.exe
11538else
11539  echo "libtool.m4: error: problem compiling CXX test program"
11540fi
11541
11542$rm -f confest.$objext
11543
11544case " $postdeps_CXX " in
11545*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11546esac
11547
11548lt_prog_compiler_wl_CXX=
11549lt_prog_compiler_pic_CXX=
11550lt_prog_compiler_static_CXX=
11551
11552echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11553echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11554
11555  # C++ specific cases for pic, static, wl, etc.
11556  if test "$GXX" = yes; then
11557    lt_prog_compiler_wl_CXX='-Wl,'
11558    lt_prog_compiler_static_CXX='-static'
11559
11560    case $host_os in
11561    aix*)
11562      # All AIX code is PIC.
11563      if test "$host_cpu" = ia64; then
11564	# AIX 5 now supports IA64 processor
11565	lt_prog_compiler_static_CXX='-Bstatic'
11566      fi
11567      ;;
11568    amigaos*)
11569      # FIXME: we need at least 68020 code to build shared libraries, but
11570      # adding the `-m68020' flag to GCC prevents building anything better,
11571      # like `-m68040'.
11572      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11573      ;;
11574    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11575      # PIC is the default for these OSes.
11576      ;;
11577    mingw* | os2* | pw32*)
11578      # This hack is so that the source file can tell whether it is being
11579      # built for inclusion in a dll (and should export symbols for example).
11580      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11581      ;;
11582    darwin* | rhapsody*)
11583      # PIC is the default on this platform
11584      # Common symbols not allowed in MH_DYLIB files
11585      lt_prog_compiler_pic_CXX='-fno-common'
11586      ;;
11587    *djgpp*)
11588      # DJGPP does not support shared libraries at all
11589      lt_prog_compiler_pic_CXX=
11590      ;;
11591    sysv4*MP*)
11592      if test -d /usr/nec; then
11593	lt_prog_compiler_pic_CXX=-Kconform_pic
11594      fi
11595      ;;
11596    hpux*)
11597      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11598      # not for PA HP-UX.
11599      case "$host_cpu" in
11600      hppa*64*|ia64*)
11601	;;
11602      *)
11603	lt_prog_compiler_pic_CXX='-fPIC'
11604	;;
11605      esac
11606      ;;
11607    *)
11608      lt_prog_compiler_pic_CXX='-fPIC'
11609      ;;
11610    esac
11611  else
11612    case $host_os in
11613      aix4* | aix5*)
11614	# All AIX code is PIC.
11615	if test "$host_cpu" = ia64; then
11616	  # AIX 5 now supports IA64 processor
11617	  lt_prog_compiler_static_CXX='-Bstatic'
11618	else
11619	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11620	fi
11621	;;
11622      chorus*)
11623	case $cc_basename in
11624	cxch68)
11625	  # Green Hills C++ Compiler
11626	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11627	  ;;
11628	esac
11629	;;
11630      dgux*)
11631	case $cc_basename in
11632	  ec++)
11633	    lt_prog_compiler_pic_CXX='-KPIC'
11634	    ;;
11635	  ghcx)
11636	    # Green Hills C++ Compiler
11637	    lt_prog_compiler_pic_CXX='-pic'
11638	    ;;
11639	  *)
11640	    ;;
11641	esac
11642	;;
11643      freebsd* | kfreebsd*-gnu)
11644	# FreeBSD uses GNU C++
11645	;;
11646      hpux9* | hpux10* | hpux11*)
11647	case $cc_basename in
11648	  CC)
11649	    lt_prog_compiler_wl_CXX='-Wl,'
11650	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11651	    if test "$host_cpu" != ia64; then
11652	      lt_prog_compiler_pic_CXX='+Z'
11653	    fi
11654	    ;;
11655	  aCC)
11656	    lt_prog_compiler_wl_CXX='-Wl,'
11657	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11658	    case "$host_cpu" in
11659	    hppa*64*|ia64*)
11660	      # +Z the default
11661	      ;;
11662	    *)
11663	      lt_prog_compiler_pic_CXX='+Z'
11664	      ;;
11665	    esac
11666	    ;;
11667	  *)
11668	    ;;
11669	esac
11670	;;
11671      irix5* | irix6* | nonstopux*)
11672	case $cc_basename in
11673	  CC)
11674	    lt_prog_compiler_wl_CXX='-Wl,'
11675	    lt_prog_compiler_static_CXX='-non_shared'
11676	    # CC pic flag -KPIC is the default.
11677	    ;;
11678	  *)
11679	    ;;
11680	esac
11681	;;
11682      linux*)
11683	case $cc_basename in
11684	  KCC)
11685	    # KAI C++ Compiler
11686	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11687	    lt_prog_compiler_pic_CXX='-fPIC'
11688	    ;;
11689	  icpc)
11690	    # Intel C++
11691	    lt_prog_compiler_wl_CXX='-Wl,'
11692	    lt_prog_compiler_pic_CXX='-KPIC'
11693	    lt_prog_compiler_static_CXX='-static'
11694	    ;;
11695	  cxx)
11696	    # Compaq C++
11697	    # Make sure the PIC flag is empty.  It appears that all Alpha
11698	    # Linux and Compaq Tru64 Unix objects are PIC.
11699	    lt_prog_compiler_pic_CXX=
11700	    lt_prog_compiler_static_CXX='-non_shared'
11701	    ;;
11702	  *)
11703	    ;;
11704	esac
11705	;;
11706      lynxos*)
11707	;;
11708      m88k*)
11709	;;
11710      mvs*)
11711	case $cc_basename in
11712	  cxx)
11713	    lt_prog_compiler_pic_CXX='-W c,exportall'
11714	    ;;
11715	  *)
11716	    ;;
11717	esac
11718	;;
11719      netbsd*)
11720	;;
11721      osf3* | osf4* | osf5*)
11722	case $cc_basename in
11723	  KCC)
11724	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11725	    ;;
11726	  RCC)
11727	    # Rational C++ 2.4.1
11728	    lt_prog_compiler_pic_CXX='-pic'
11729	    ;;
11730	  cxx)
11731	    # Digital/Compaq C++
11732	    lt_prog_compiler_wl_CXX='-Wl,'
11733	    # Make sure the PIC flag is empty.  It appears that all Alpha
11734	    # Linux and Compaq Tru64 Unix objects are PIC.
11735	    lt_prog_compiler_pic_CXX=
11736	    lt_prog_compiler_static_CXX='-non_shared'
11737	    ;;
11738	  *)
11739	    ;;
11740	esac
11741	;;
11742      psos*)
11743	;;
11744      sco*)
11745	case $cc_basename in
11746	  CC)
11747	    lt_prog_compiler_pic_CXX='-fPIC'
11748	    ;;
11749	  *)
11750	    ;;
11751	esac
11752	;;
11753      solaris*)
11754	case $cc_basename in
11755	  CC)
11756	    # Sun C++ 4.2, 5.x and Centerline C++
11757	    lt_prog_compiler_pic_CXX='-KPIC'
11758	    lt_prog_compiler_static_CXX='-Bstatic'
11759	    lt_prog_compiler_wl_CXX='-Qoption ld '
11760	    ;;
11761	  gcx)
11762	    # Green Hills C++ Compiler
11763	    lt_prog_compiler_pic_CXX='-PIC'
11764	    ;;
11765	  *)
11766	    ;;
11767	esac
11768	;;
11769      sunos4*)
11770	case $cc_basename in
11771	  CC)
11772	    # Sun C++ 4.x
11773	    lt_prog_compiler_pic_CXX='-pic'
11774	    lt_prog_compiler_static_CXX='-Bstatic'
11775	    ;;
11776	  lcc)
11777	    # Lucid
11778	    lt_prog_compiler_pic_CXX='-pic'
11779	    ;;
11780	  *)
11781	    ;;
11782	esac
11783	;;
11784      tandem*)
11785	case $cc_basename in
11786	  NCC)
11787	    # NonStop-UX NCC 3.20
11788	    lt_prog_compiler_pic_CXX='-KPIC'
11789	    ;;
11790	  *)
11791	    ;;
11792	esac
11793	;;
11794      unixware*)
11795	;;
11796      vxworks*)
11797	;;
11798      *)
11799	lt_prog_compiler_can_build_shared_CXX=no
11800	;;
11801    esac
11802  fi
11803
11804echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11805echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11806
11807#
11808# Check to make sure the PIC flag actually works.
11809#
11810if test -n "$lt_prog_compiler_pic_CXX"; then
11811
11812echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11813echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11814if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11815  echo $ECHO_N "(cached) $ECHO_C" >&6
11816else
11817  lt_prog_compiler_pic_works_CXX=no
11818  ac_outfile=conftest.$ac_objext
11819   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11820   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11821   # Insert the option either (1) after the last *FLAGS variable, or
11822   # (2) before a word containing "conftest.", or (3) at the end.
11823   # Note that $ac_compile itself does not contain backslashes and begins
11824   # with a dollar sign (not a hyphen), so the echo should work correctly.
11825   # The option is referenced via a variable to avoid confusing sed.
11826   lt_compile=`echo "$ac_compile" | $SED \
11827   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11828   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11829   -e 's:$: $lt_compiler_flag:'`
11830   (eval echo "\"\$as_me:11830: $lt_compile\"" >&5)
11831   (eval "$lt_compile" 2>conftest.err)
11832   ac_status=$?
11833   cat conftest.err >&5
11834   echo "$as_me:11834: \$? = $ac_status" >&5
11835   if (exit $ac_status) && test -s "$ac_outfile"; then
11836     # The compiler can only warn and ignore the option if not recognized
11837     # So say no if there are warnings
11838     if test ! -s conftest.err; then
11839       lt_prog_compiler_pic_works_CXX=yes
11840     fi
11841   fi
11842   $rm conftest*
11843
11844fi
11845echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11846echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11847
11848if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11849    case $lt_prog_compiler_pic_CXX in
11850     "" | " "*) ;;
11851     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11852     esac
11853else
11854    lt_prog_compiler_pic_CXX=
11855     lt_prog_compiler_can_build_shared_CXX=no
11856fi
11857
11858fi
11859case "$host_os" in
11860  # For platforms which do not support PIC, -DPIC is meaningless:
11861  *djgpp*)
11862    lt_prog_compiler_pic_CXX=
11863    ;;
11864  *)
11865    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11866    ;;
11867esac
11868
11869echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11870echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11871if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11872  echo $ECHO_N "(cached) $ECHO_C" >&6
11873else
11874  lt_cv_prog_compiler_c_o_CXX=no
11875   $rm -r conftest 2>/dev/null
11876   mkdir conftest
11877   cd conftest
11878   mkdir out
11879   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11880
11881   lt_compiler_flag="-o out/conftest2.$ac_objext"
11882   # Insert the option either (1) after the last *FLAGS variable, or
11883   # (2) before a word containing "conftest.", or (3) at the end.
11884   # Note that $ac_compile itself does not contain backslashes and begins
11885   # with a dollar sign (not a hyphen), so the echo should work correctly.
11886   lt_compile=`echo "$ac_compile" | $SED \
11887   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11888   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11889   -e 's:$: $lt_compiler_flag:'`
11890   (eval echo "\"\$as_me:11890: $lt_compile\"" >&5)
11891   (eval "$lt_compile" 2>out/conftest.err)
11892   ac_status=$?
11893   cat out/conftest.err >&5
11894   echo "$as_me:11894: \$? = $ac_status" >&5
11895   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11896   then
11897     # The compiler can only warn and ignore the option if not recognized
11898     # So say no if there are warnings
11899     if test ! -s out/conftest.err; then
11900       lt_cv_prog_compiler_c_o_CXX=yes
11901     fi
11902   fi
11903   chmod u+w .
11904   $rm conftest*
11905   # SGI C++ compiler will create directory out/ii_files/ for
11906   # template instantiation
11907   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11908   $rm out/* && rmdir out
11909   cd ..
11910   rmdir conftest
11911   $rm conftest*
11912
11913fi
11914echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11915echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11916
11917
11918hard_links="nottested"
11919if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11920  # do not overwrite the value of need_locks provided by the user
11921  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11922echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11923  hard_links=yes
11924  $rm conftest*
11925  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11926  touch conftest.a
11927  ln conftest.a conftest.b 2>&5 || hard_links=no
11928  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11929  echo "$as_me:$LINENO: result: $hard_links" >&5
11930echo "${ECHO_T}$hard_links" >&6
11931  if test "$hard_links" = no; then
11932    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11933echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11934    need_locks=warn
11935  fi
11936else
11937  need_locks=no
11938fi
11939
11940echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11941echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11942
11943  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11944  case $host_os in
11945  aix4* | aix5*)
11946    # If we're using GNU nm, then we don't want the "-C" option.
11947    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11948    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11949      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11950    else
11951      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11952    fi
11953    ;;
11954  pw32*)
11955    export_symbols_cmds_CXX="$ltdll_cmds"
11956  ;;
11957  cygwin* | mingw*)
11958    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11959  ;;
11960  *)
11961    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11962  ;;
11963  esac
11964
11965echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11966echo "${ECHO_T}$ld_shlibs_CXX" >&6
11967test "$ld_shlibs_CXX" = no && can_build_shared=no
11968
11969variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11970if test "$GCC" = yes; then
11971  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11972fi
11973
11974#
11975# Do we need to explicitly link libc?
11976#
11977case "x$archive_cmds_need_lc_CXX" in
11978x|xyes)
11979  # Assume -lc should be added
11980  archive_cmds_need_lc_CXX=yes
11981
11982  if test "$enable_shared" = yes && test "$GCC" = yes; then
11983    case $archive_cmds_CXX in
11984    *'~'*)
11985      # FIXME: we may have to deal with multi-command sequences.
11986      ;;
11987    '$CC '*)
11988      # Test whether the compiler implicitly links with -lc since on some
11989      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11990      # to ld, don't add -lc before -lgcc.
11991      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11992echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11993      $rm conftest*
11994      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11995
11996      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11997  (eval $ac_compile) 2>&5
11998  ac_status=$?
11999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000  (exit $ac_status); } 2>conftest.err; then
12001        soname=conftest
12002        lib=conftest
12003        libobjs=conftest.$ac_objext
12004        deplibs=
12005        wl=$lt_prog_compiler_wl_CXX
12006        compiler_flags=-v
12007        linker_flags=-v
12008        verstring=
12009        output_objdir=.
12010        libname=conftest
12011        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12012        allow_undefined_flag_CXX=
12013        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12014  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12015  ac_status=$?
12016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017  (exit $ac_status); }
12018        then
12019	  archive_cmds_need_lc_CXX=no
12020        else
12021	  archive_cmds_need_lc_CXX=yes
12022        fi
12023        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12024      else
12025        cat conftest.err 1>&5
12026      fi
12027      $rm conftest*
12028      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12029echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12030      ;;
12031    esac
12032  fi
12033  ;;
12034esac
12035
12036echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12037echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12038library_names_spec=
12039libname_spec='lib$name'
12040soname_spec=
12041shrext=".so"
12042postinstall_cmds=
12043postuninstall_cmds=
12044finish_cmds=
12045finish_eval=
12046shlibpath_var=
12047shlibpath_overrides_runpath=unknown
12048version_type=none
12049dynamic_linker="$host_os ld.so"
12050sys_lib_dlsearch_path_spec="/lib /usr/lib"
12051if test "$GCC" = yes; then
12052  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12053  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12054    # if the path contains ";" then we assume it to be the separator
12055    # otherwise default to the standard path separator (i.e. ":") - it is
12056    # assumed that no part of a normal pathname contains ";" but that should
12057    # okay in the real world where ";" in dirpaths is itself problematic.
12058    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12059  else
12060    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12061  fi
12062else
12063  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12064fi
12065need_lib_prefix=unknown
12066hardcode_into_libs=no
12067
12068# when you set need_version to no, make sure it does not cause -set_version
12069# flags to be left without arguments
12070need_version=unknown
12071
12072case $host_os in
12073aix3*)
12074  version_type=linux
12075  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12076  shlibpath_var=LIBPATH
12077
12078  # AIX 3 has no versioning support, so we append a major version to the name.
12079  soname_spec='${libname}${release}${shared_ext}$major'
12080  ;;
12081
12082aix4* | aix5*)
12083  version_type=linux
12084  need_lib_prefix=no
12085  need_version=no
12086  hardcode_into_libs=yes
12087  if test "$host_cpu" = ia64; then
12088    # AIX 5 supports IA64
12089    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12090    shlibpath_var=LD_LIBRARY_PATH
12091  else
12092    # With GCC up to 2.95.x, collect2 would create an import file
12093    # for dependence libraries.  The import file would start with
12094    # the line `#! .'.  This would cause the generated library to
12095    # depend on `.', always an invalid library.  This was fixed in
12096    # development snapshots of GCC prior to 3.0.
12097    case $host_os in
12098      aix4 | aix4.[01] | aix4.[01].*)
12099      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12100	   echo ' yes '
12101	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12102	:
12103      else
12104	can_build_shared=no
12105      fi
12106      ;;
12107    esac
12108    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12109    # soname into executable. Probably we can add versioning support to
12110    # collect2, so additional links can be useful in future.
12111    if test "$aix_use_runtimelinking" = yes; then
12112      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12113      # instead of lib<name>.a to let people know that these are not
12114      # typical AIX shared libraries.
12115      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12116    else
12117      # We preserve .a as extension for shared libraries through AIX4.2
12118      # and later when we are not doing run time linking.
12119      library_names_spec='${libname}${release}.a $libname.a'
12120      soname_spec='${libname}${release}${shared_ext}$major'
12121    fi
12122    shlibpath_var=LIBPATH
12123  fi
12124  ;;
12125
12126amigaos*)
12127  library_names_spec='$libname.ixlibrary $libname.a'
12128  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12129  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'
12130  ;;
12131
12132beos*)
12133  library_names_spec='${libname}${shared_ext}'
12134  dynamic_linker="$host_os ld.so"
12135  shlibpath_var=LIBRARY_PATH
12136  ;;
12137
12138bsdi4*)
12139  version_type=linux
12140  need_version=no
12141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12142  soname_spec='${libname}${release}${shared_ext}$major'
12143  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12144  shlibpath_var=LD_LIBRARY_PATH
12145  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12146  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12147  # the default ld.so.conf also contains /usr/contrib/lib and
12148  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12149  # libtool to hard-code these into programs
12150  ;;
12151
12152cygwin* | mingw* | pw32*)
12153  version_type=windows
12154  shrext=".dll"
12155  need_version=no
12156  need_lib_prefix=no
12157
12158  case $GCC,$host_os in
12159  yes,cygwin* | yes,mingw* | yes,pw32*)
12160    library_names_spec='$libname.dll.a'
12161    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12162    postinstall_cmds='base_file=`basename \${file}`~
12163      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12164      dldir=$destdir/`dirname \$dlpath`~
12165      test -d \$dldir || mkdir -p \$dldir~
12166      $install_prog $dir/$dlname \$dldir/$dlname'
12167    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12168      dlpath=$dir/\$dldll~
12169       $rm \$dlpath'
12170    shlibpath_overrides_runpath=yes
12171
12172    case $host_os in
12173    cygwin*)
12174      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12175      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12176      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12177      ;;
12178    mingw*)
12179      # MinGW DLLs use traditional 'lib' prefix
12180      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12181      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12182      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12183        # It is most probably a Windows format PATH printed by
12184        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12185        # path with ; separators, and with drive letters. We can handle the
12186        # drive letters (cygwin fileutils understands them), so leave them,
12187        # especially as we might pass files found there to a mingw objdump,
12188        # which wouldn't understand a cygwinified path. Ahh.
12189        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12190      else
12191        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12192      fi
12193      ;;
12194    pw32*)
12195      # pw32 DLLs use 'pw' prefix rather than 'lib'
12196      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12197      ;;
12198    esac
12199    ;;
12200
12201  *)
12202    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12203    ;;
12204  esac
12205  dynamic_linker='Win32 ld.exe'
12206  # FIXME: first we should search . and the directory the executable is in
12207  shlibpath_var=PATH
12208  ;;
12209
12210darwin* | rhapsody*)
12211  dynamic_linker="$host_os dyld"
12212  version_type=darwin
12213  need_lib_prefix=no
12214  need_version=no
12215  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12216  soname_spec='${libname}${release}${major}$shared_ext'
12217  shlibpath_overrides_runpath=yes
12218  shlibpath_var=DYLD_LIBRARY_PATH
12219  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
12220  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12221  if test "$GCC" = yes; then
12222    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12223  else
12224    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12225  fi
12226  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12227  ;;
12228
12229dgux*)
12230  version_type=linux
12231  need_lib_prefix=no
12232  need_version=no
12233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12234  soname_spec='${libname}${release}${shared_ext}$major'
12235  shlibpath_var=LD_LIBRARY_PATH
12236  ;;
12237
12238freebsd1*)
12239  dynamic_linker=no
12240  ;;
12241
12242kfreebsd*-gnu)
12243  version_type=linux
12244  need_lib_prefix=no
12245  need_version=no
12246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12247  soname_spec='${libname}${release}${shared_ext}$major'
12248  shlibpath_var=LD_LIBRARY_PATH
12249  shlibpath_overrides_runpath=no
12250  hardcode_into_libs=yes
12251  dynamic_linker='GNU ld.so'
12252  ;;
12253
12254freebsd*)
12255  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12256  version_type=freebsd-$objformat
12257  case $version_type in
12258    freebsd-elf*)
12259      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12260      need_version=no
12261      need_lib_prefix=no
12262      ;;
12263    freebsd-*)
12264      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12265      need_version=yes
12266      ;;
12267  esac
12268  shlibpath_var=LD_LIBRARY_PATH
12269  case $host_os in
12270  freebsd2*)
12271    shlibpath_overrides_runpath=yes
12272    ;;
12273  freebsd3.01* | freebsdelf3.01*)
12274    shlibpath_overrides_runpath=yes
12275    hardcode_into_libs=yes
12276    ;;
12277  *) # from 3.2 on
12278    shlibpath_overrides_runpath=no
12279    hardcode_into_libs=yes
12280    ;;
12281  esac
12282  ;;
12283
12284gnu*)
12285  version_type=linux
12286  need_lib_prefix=no
12287  need_version=no
12288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12289  soname_spec='${libname}${release}${shared_ext}$major'
12290  shlibpath_var=LD_LIBRARY_PATH
12291  hardcode_into_libs=yes
12292  ;;
12293
12294hpux9* | hpux10* | hpux11*)
12295  # Give a soname corresponding to the major version so that dld.sl refuses to
12296  # link against other versions.
12297  version_type=sunos
12298  need_lib_prefix=no
12299  need_version=no
12300  case "$host_cpu" in
12301  ia64*)
12302    shrext='.so'
12303    hardcode_into_libs=yes
12304    dynamic_linker="$host_os dld.so"
12305    shlibpath_var=LD_LIBRARY_PATH
12306    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12307    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12308    soname_spec='${libname}${release}${shared_ext}$major'
12309    if test "X$HPUX_IA64_MODE" = X32; then
12310      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12311    else
12312      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12313    fi
12314    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12315    ;;
12316   hppa*64*)
12317     shrext='.sl'
12318     hardcode_into_libs=yes
12319     dynamic_linker="$host_os dld.sl"
12320     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12321     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323     soname_spec='${libname}${release}${shared_ext}$major'
12324     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12325     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12326     ;;
12327   *)
12328    shrext='.sl'
12329    dynamic_linker="$host_os dld.sl"
12330    shlibpath_var=SHLIB_PATH
12331    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12332    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12333    soname_spec='${libname}${release}${shared_ext}$major'
12334    ;;
12335  esac
12336  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12337  postinstall_cmds='chmod 555 $lib'
12338  ;;
12339
12340irix5* | irix6* | nonstopux*)
12341  case $host_os in
12342    nonstopux*) version_type=nonstopux ;;
12343    *)
12344	if test "$lt_cv_prog_gnu_ld" = yes; then
12345		version_type=linux
12346	else
12347		version_type=irix
12348	fi ;;
12349  esac
12350  need_lib_prefix=no
12351  need_version=no
12352  soname_spec='${libname}${release}${shared_ext}$major'
12353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12354  case $host_os in
12355  irix5* | nonstopux*)
12356    libsuff= shlibsuff=
12357    ;;
12358  *)
12359    case $LD in # libtool.m4 will add one of these switches to LD
12360    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12361      libsuff= shlibsuff= libmagic=32-bit;;
12362    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12363      libsuff=32 shlibsuff=N32 libmagic=N32;;
12364    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12365      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12366    *) libsuff= shlibsuff= libmagic=never-match;;
12367    esac
12368    ;;
12369  esac
12370  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12371  shlibpath_overrides_runpath=no
12372  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12373  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12374  hardcode_into_libs=yes
12375  ;;
12376
12377# No shared lib support for Linux oldld, aout, or coff.
12378linux*oldld* | linux*aout* | linux*coff*)
12379  dynamic_linker=no
12380  ;;
12381
12382# This must be Linux ELF.
12383linux*)
12384  version_type=linux
12385  need_lib_prefix=no
12386  need_version=no
12387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12388  soname_spec='${libname}${release}${shared_ext}$major'
12389  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12390  shlibpath_var=LD_LIBRARY_PATH
12391  shlibpath_overrides_runpath=no
12392  # This implies no fast_install, which is unacceptable.
12393  # Some rework will be needed to allow for fast_install
12394  # before this can be enabled.
12395  hardcode_into_libs=yes
12396
12397  # Append ld.so.conf contents to the search path
12398  if test -f /etc/ld.so.conf; then
12399    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
12400    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
12401  fi
12402
12403  # We used to test for /lib/ld.so.1 and disable shared libraries on
12404  # powerpc, because MkLinux only supported shared libraries with the
12405  # GNU dynamic linker.  Since this was broken with cross compilers,
12406  # most powerpc-linux boxes support dynamic linking these days and
12407  # people can always --disable-shared, the test was removed, and we
12408  # assume the GNU/Linux dynamic linker is in use.
12409  dynamic_linker='GNU/Linux ld.so'
12410  ;;
12411
12412knetbsd*-gnu)
12413  version_type=linux
12414  need_lib_prefix=no
12415  need_version=no
12416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12417  soname_spec='${libname}${release}${shared_ext}$major'
12418  shlibpath_var=LD_LIBRARY_PATH
12419  shlibpath_overrides_runpath=no
12420  hardcode_into_libs=yes
12421  dynamic_linker='GNU ld.so'
12422  ;;
12423
12424netbsd*)
12425  version_type=sunos
12426  need_lib_prefix=no
12427  need_version=no
12428  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12429    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12430    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12431    dynamic_linker='NetBSD (a.out) ld.so'
12432  else
12433    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12434    soname_spec='${libname}${release}${shared_ext}$major'
12435    dynamic_linker='NetBSD ld.elf_so'
12436  fi
12437  shlibpath_var=LD_LIBRARY_PATH
12438  shlibpath_overrides_runpath=yes
12439  hardcode_into_libs=yes
12440  ;;
12441
12442newsos6)
12443  version_type=linux
12444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12445  shlibpath_var=LD_LIBRARY_PATH
12446  shlibpath_overrides_runpath=yes
12447  ;;
12448
12449nto-qnx*)
12450  version_type=linux
12451  need_lib_prefix=no
12452  need_version=no
12453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12454  soname_spec='${libname}${release}${shared_ext}$major'
12455  shlibpath_var=LD_LIBRARY_PATH
12456  shlibpath_overrides_runpath=yes
12457  ;;
12458
12459openbsd*)
12460  version_type=sunos
12461  need_lib_prefix=no
12462  need_version=yes
12463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12464  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12465  shlibpath_var=LD_LIBRARY_PATH
12466  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12467    case $host_os in
12468      openbsd2.[89] | openbsd2.[89].*)
12469	shlibpath_overrides_runpath=no
12470	;;
12471      *)
12472	shlibpath_overrides_runpath=yes
12473	;;
12474      esac
12475  else
12476    shlibpath_overrides_runpath=yes
12477  fi
12478  ;;
12479
12480os2*)
12481  libname_spec='$name'
12482  shrext=".dll"
12483  need_lib_prefix=no
12484  library_names_spec='$libname${shared_ext} $libname.a'
12485  dynamic_linker='OS/2 ld.exe'
12486  shlibpath_var=LIBPATH
12487  ;;
12488
12489osf3* | osf4* | osf5*)
12490  version_type=osf
12491  need_lib_prefix=no
12492  need_version=no
12493  soname_spec='${libname}${release}${shared_ext}$major'
12494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12495  shlibpath_var=LD_LIBRARY_PATH
12496  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12497  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12498  ;;
12499
12500sco3.2v5*)
12501  version_type=osf
12502  soname_spec='${libname}${release}${shared_ext}$major'
12503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12504  shlibpath_var=LD_LIBRARY_PATH
12505  ;;
12506
12507solaris*)
12508  version_type=linux
12509  need_lib_prefix=no
12510  need_version=no
12511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512  soname_spec='${libname}${release}${shared_ext}$major'
12513  shlibpath_var=LD_LIBRARY_PATH
12514  shlibpath_overrides_runpath=yes
12515  hardcode_into_libs=yes
12516  # ldd complains unless libraries are executable
12517  postinstall_cmds='chmod +x $lib'
12518  ;;
12519
12520sunos4*)
12521  version_type=sunos
12522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12523  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12524  shlibpath_var=LD_LIBRARY_PATH
12525  shlibpath_overrides_runpath=yes
12526  if test "$with_gnu_ld" = yes; then
12527    need_lib_prefix=no
12528  fi
12529  need_version=yes
12530  ;;
12531
12532sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12533  version_type=linux
12534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12535  soname_spec='${libname}${release}${shared_ext}$major'
12536  shlibpath_var=LD_LIBRARY_PATH
12537  case $host_vendor in
12538    sni)
12539      shlibpath_overrides_runpath=no
12540      need_lib_prefix=no
12541      export_dynamic_flag_spec='${wl}-Blargedynsym'
12542      runpath_var=LD_RUN_PATH
12543      ;;
12544    siemens)
12545      need_lib_prefix=no
12546      ;;
12547    motorola)
12548      need_lib_prefix=no
12549      need_version=no
12550      shlibpath_overrides_runpath=no
12551      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12552      ;;
12553  esac
12554  ;;
12555
12556sysv4*MP*)
12557  if test -d /usr/nec ;then
12558    version_type=linux
12559    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12560    soname_spec='$libname${shared_ext}.$major'
12561    shlibpath_var=LD_LIBRARY_PATH
12562  fi
12563  ;;
12564
12565uts4*)
12566  version_type=linux
12567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12568  soname_spec='${libname}${release}${shared_ext}$major'
12569  shlibpath_var=LD_LIBRARY_PATH
12570  ;;
12571
12572*)
12573  dynamic_linker=no
12574  ;;
12575esac
12576echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12577echo "${ECHO_T}$dynamic_linker" >&6
12578test "$dynamic_linker" = no && can_build_shared=no
12579
12580echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12581echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12582hardcode_action_CXX=
12583if test -n "$hardcode_libdir_flag_spec_CXX" || \
12584   test -n "$runpath_var CXX" || \
12585   test "X$hardcode_automatic_CXX"="Xyes" ; then
12586
12587  # We can hardcode non-existant directories.
12588  if test "$hardcode_direct_CXX" != no &&
12589     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12590     # have to relink, otherwise we might link with an installed library
12591     # when we should be linking with a yet-to-be-installed one
12592     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12593     test "$hardcode_minus_L_CXX" != no; then
12594    # Linking always hardcodes the temporary library directory.
12595    hardcode_action_CXX=relink
12596  else
12597    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12598    hardcode_action_CXX=immediate
12599  fi
12600else
12601  # We cannot hardcode anything, or else we can only hardcode existing
12602  # directories.
12603  hardcode_action_CXX=unsupported
12604fi
12605echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12606echo "${ECHO_T}$hardcode_action_CXX" >&6
12607
12608if test "$hardcode_action_CXX" = relink; then
12609  # Fast installation is not supported
12610  enable_fast_install=no
12611elif test "$shlibpath_overrides_runpath" = yes ||
12612     test "$enable_shared" = no; then
12613  # Fast installation is not necessary
12614  enable_fast_install=needless
12615fi
12616
12617striplib=
12618old_striplib=
12619echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12620echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12621if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12622  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12623  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12624  echo "$as_me:$LINENO: result: yes" >&5
12625echo "${ECHO_T}yes" >&6
12626else
12627# FIXME - insert some real tests, host_os isn't really good enough
12628  case $host_os in
12629   darwin*)
12630       if test -n "$STRIP" ; then
12631         striplib="$STRIP -x"
12632         echo "$as_me:$LINENO: result: yes" >&5
12633echo "${ECHO_T}yes" >&6
12634       else
12635  echo "$as_me:$LINENO: result: no" >&5
12636echo "${ECHO_T}no" >&6
12637fi
12638       ;;
12639   *)
12640  echo "$as_me:$LINENO: result: no" >&5
12641echo "${ECHO_T}no" >&6
12642    ;;
12643  esac
12644fi
12645
12646if test "x$enable_dlopen" != xyes; then
12647  enable_dlopen=unknown
12648  enable_dlopen_self=unknown
12649  enable_dlopen_self_static=unknown
12650else
12651  lt_cv_dlopen=no
12652  lt_cv_dlopen_libs=
12653
12654  case $host_os in
12655  beos*)
12656    lt_cv_dlopen="load_add_on"
12657    lt_cv_dlopen_libs=
12658    lt_cv_dlopen_self=yes
12659    ;;
12660
12661  mingw* | pw32*)
12662    lt_cv_dlopen="LoadLibrary"
12663    lt_cv_dlopen_libs=
12664   ;;
12665
12666  cygwin*)
12667    lt_cv_dlopen="dlopen"
12668    lt_cv_dlopen_libs=
12669   ;;
12670
12671  darwin*)
12672  # if libdl is installed we need to link against it
12673    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12674echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12675if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12676  echo $ECHO_N "(cached) $ECHO_C" >&6
12677else
12678  ac_check_lib_save_LIBS=$LIBS
12679LIBS="-ldl  $LIBS"
12680cat >conftest.$ac_ext <<_ACEOF
12681/* confdefs.h.  */
12682_ACEOF
12683cat confdefs.h >>conftest.$ac_ext
12684cat >>conftest.$ac_ext <<_ACEOF
12685/* end confdefs.h.  */
12686
12687/* Override any gcc2 internal prototype to avoid an error.  */
12688#ifdef __cplusplus
12689extern "C"
12690#endif
12691/* We use char because int might match the return type of a gcc2
12692   builtin and then its argument prototype would still apply.  */
12693char dlopen ();
12694int
12695main ()
12696{
12697dlopen ();
12698  ;
12699  return 0;
12700}
12701_ACEOF
12702rm -f conftest.$ac_objext conftest$ac_exeext
12703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12704  (eval $ac_link) 2>conftest.er1
12705  ac_status=$?
12706  grep -v '^ *+' conftest.er1 >conftest.err
12707  rm -f conftest.er1
12708  cat conftest.err >&5
12709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710  (exit $ac_status); } &&
12711	 { ac_try='test -z "$ac_cxx_werror_flag"
12712			 || test ! -s conftest.err'
12713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714  (eval $ac_try) 2>&5
12715  ac_status=$?
12716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717  (exit $ac_status); }; } &&
12718	 { ac_try='test -s conftest$ac_exeext'
12719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720  (eval $ac_try) 2>&5
12721  ac_status=$?
12722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723  (exit $ac_status); }; }; then
12724  ac_cv_lib_dl_dlopen=yes
12725else
12726  echo "$as_me: failed program was:" >&5
12727sed 's/^/| /' conftest.$ac_ext >&5
12728
12729ac_cv_lib_dl_dlopen=no
12730fi
12731rm -f conftest.err conftest.$ac_objext \
12732      conftest$ac_exeext conftest.$ac_ext
12733LIBS=$ac_check_lib_save_LIBS
12734fi
12735echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12736echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12737if test $ac_cv_lib_dl_dlopen = yes; then
12738  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12739else
12740
12741    lt_cv_dlopen="dyld"
12742    lt_cv_dlopen_libs=
12743    lt_cv_dlopen_self=yes
12744
12745fi
12746
12747   ;;
12748
12749  *)
12750    echo "$as_me:$LINENO: checking for shl_load" >&5
12751echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12752if test "${ac_cv_func_shl_load+set}" = set; then
12753  echo $ECHO_N "(cached) $ECHO_C" >&6
12754else
12755  cat >conftest.$ac_ext <<_ACEOF
12756/* confdefs.h.  */
12757_ACEOF
12758cat confdefs.h >>conftest.$ac_ext
12759cat >>conftest.$ac_ext <<_ACEOF
12760/* end confdefs.h.  */
12761/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12762   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12763#define shl_load innocuous_shl_load
12764
12765/* System header to define __stub macros and hopefully few prototypes,
12766    which can conflict with char shl_load (); below.
12767    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12768    <limits.h> exists even on freestanding compilers.  */
12769
12770#ifdef __STDC__
12771# include <limits.h>
12772#else
12773# include <assert.h>
12774#endif
12775
12776#undef shl_load
12777
12778/* Override any gcc2 internal prototype to avoid an error.  */
12779#ifdef __cplusplus
12780extern "C"
12781{
12782#endif
12783/* We use char because int might match the return type of a gcc2
12784   builtin and then its argument prototype would still apply.  */
12785char shl_load ();
12786/* The GNU C library defines this for functions which it implements
12787    to always fail with ENOSYS.  Some functions are actually named
12788    something starting with __ and the normal name is an alias.  */
12789#if defined (__stub_shl_load) || defined (__stub___shl_load)
12790choke me
12791#else
12792char (*f) () = shl_load;
12793#endif
12794#ifdef __cplusplus
12795}
12796#endif
12797
12798int
12799main ()
12800{
12801return f != shl_load;
12802  ;
12803  return 0;
12804}
12805_ACEOF
12806rm -f conftest.$ac_objext conftest$ac_exeext
12807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12808  (eval $ac_link) 2>conftest.er1
12809  ac_status=$?
12810  grep -v '^ *+' conftest.er1 >conftest.err
12811  rm -f conftest.er1
12812  cat conftest.err >&5
12813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814  (exit $ac_status); } &&
12815	 { ac_try='test -z "$ac_cxx_werror_flag"
12816			 || test ! -s conftest.err'
12817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818  (eval $ac_try) 2>&5
12819  ac_status=$?
12820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821  (exit $ac_status); }; } &&
12822	 { ac_try='test -s conftest$ac_exeext'
12823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824  (eval $ac_try) 2>&5
12825  ac_status=$?
12826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827  (exit $ac_status); }; }; then
12828  ac_cv_func_shl_load=yes
12829else
12830  echo "$as_me: failed program was:" >&5
12831sed 's/^/| /' conftest.$ac_ext >&5
12832
12833ac_cv_func_shl_load=no
12834fi
12835rm -f conftest.err conftest.$ac_objext \
12836      conftest$ac_exeext conftest.$ac_ext
12837fi
12838echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12839echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12840if test $ac_cv_func_shl_load = yes; then
12841  lt_cv_dlopen="shl_load"
12842else
12843  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12844echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12845if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12846  echo $ECHO_N "(cached) $ECHO_C" >&6
12847else
12848  ac_check_lib_save_LIBS=$LIBS
12849LIBS="-ldld  $LIBS"
12850cat >conftest.$ac_ext <<_ACEOF
12851/* confdefs.h.  */
12852_ACEOF
12853cat confdefs.h >>conftest.$ac_ext
12854cat >>conftest.$ac_ext <<_ACEOF
12855/* end confdefs.h.  */
12856
12857/* Override any gcc2 internal prototype to avoid an error.  */
12858#ifdef __cplusplus
12859extern "C"
12860#endif
12861/* We use char because int might match the return type of a gcc2
12862   builtin and then its argument prototype would still apply.  */
12863char shl_load ();
12864int
12865main ()
12866{
12867shl_load ();
12868  ;
12869  return 0;
12870}
12871_ACEOF
12872rm -f conftest.$ac_objext conftest$ac_exeext
12873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12874  (eval $ac_link) 2>conftest.er1
12875  ac_status=$?
12876  grep -v '^ *+' conftest.er1 >conftest.err
12877  rm -f conftest.er1
12878  cat conftest.err >&5
12879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880  (exit $ac_status); } &&
12881	 { ac_try='test -z "$ac_cxx_werror_flag"
12882			 || test ! -s conftest.err'
12883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884  (eval $ac_try) 2>&5
12885  ac_status=$?
12886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887  (exit $ac_status); }; } &&
12888	 { ac_try='test -s conftest$ac_exeext'
12889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890  (eval $ac_try) 2>&5
12891  ac_status=$?
12892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893  (exit $ac_status); }; }; then
12894  ac_cv_lib_dld_shl_load=yes
12895else
12896  echo "$as_me: failed program was:" >&5
12897sed 's/^/| /' conftest.$ac_ext >&5
12898
12899ac_cv_lib_dld_shl_load=no
12900fi
12901rm -f conftest.err conftest.$ac_objext \
12902      conftest$ac_exeext conftest.$ac_ext
12903LIBS=$ac_check_lib_save_LIBS
12904fi
12905echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12906echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12907if test $ac_cv_lib_dld_shl_load = yes; then
12908  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12909else
12910  echo "$as_me:$LINENO: checking for dlopen" >&5
12911echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12912if test "${ac_cv_func_dlopen+set}" = set; then
12913  echo $ECHO_N "(cached) $ECHO_C" >&6
12914else
12915  cat >conftest.$ac_ext <<_ACEOF
12916/* confdefs.h.  */
12917_ACEOF
12918cat confdefs.h >>conftest.$ac_ext
12919cat >>conftest.$ac_ext <<_ACEOF
12920/* end confdefs.h.  */
12921/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12922   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12923#define dlopen innocuous_dlopen
12924
12925/* System header to define __stub macros and hopefully few prototypes,
12926    which can conflict with char dlopen (); below.
12927    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12928    <limits.h> exists even on freestanding compilers.  */
12929
12930#ifdef __STDC__
12931# include <limits.h>
12932#else
12933# include <assert.h>
12934#endif
12935
12936#undef dlopen
12937
12938/* Override any gcc2 internal prototype to avoid an error.  */
12939#ifdef __cplusplus
12940extern "C"
12941{
12942#endif
12943/* We use char because int might match the return type of a gcc2
12944   builtin and then its argument prototype would still apply.  */
12945char dlopen ();
12946/* The GNU C library defines this for functions which it implements
12947    to always fail with ENOSYS.  Some functions are actually named
12948    something starting with __ and the normal name is an alias.  */
12949#if defined (__stub_dlopen) || defined (__stub___dlopen)
12950choke me
12951#else
12952char (*f) () = dlopen;
12953#endif
12954#ifdef __cplusplus
12955}
12956#endif
12957
12958int
12959main ()
12960{
12961return f != dlopen;
12962  ;
12963  return 0;
12964}
12965_ACEOF
12966rm -f conftest.$ac_objext conftest$ac_exeext
12967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12968  (eval $ac_link) 2>conftest.er1
12969  ac_status=$?
12970  grep -v '^ *+' conftest.er1 >conftest.err
12971  rm -f conftest.er1
12972  cat conftest.err >&5
12973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974  (exit $ac_status); } &&
12975	 { ac_try='test -z "$ac_cxx_werror_flag"
12976			 || test ! -s conftest.err'
12977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978  (eval $ac_try) 2>&5
12979  ac_status=$?
12980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981  (exit $ac_status); }; } &&
12982	 { ac_try='test -s conftest$ac_exeext'
12983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984  (eval $ac_try) 2>&5
12985  ac_status=$?
12986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987  (exit $ac_status); }; }; then
12988  ac_cv_func_dlopen=yes
12989else
12990  echo "$as_me: failed program was:" >&5
12991sed 's/^/| /' conftest.$ac_ext >&5
12992
12993ac_cv_func_dlopen=no
12994fi
12995rm -f conftest.err conftest.$ac_objext \
12996      conftest$ac_exeext conftest.$ac_ext
12997fi
12998echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12999echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13000if test $ac_cv_func_dlopen = yes; then
13001  lt_cv_dlopen="dlopen"
13002else
13003  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13004echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13005if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13006  echo $ECHO_N "(cached) $ECHO_C" >&6
13007else
13008  ac_check_lib_save_LIBS=$LIBS
13009LIBS="-ldl  $LIBS"
13010cat >conftest.$ac_ext <<_ACEOF
13011/* confdefs.h.  */
13012_ACEOF
13013cat confdefs.h >>conftest.$ac_ext
13014cat >>conftest.$ac_ext <<_ACEOF
13015/* end confdefs.h.  */
13016
13017/* Override any gcc2 internal prototype to avoid an error.  */
13018#ifdef __cplusplus
13019extern "C"
13020#endif
13021/* We use char because int might match the return type of a gcc2
13022   builtin and then its argument prototype would still apply.  */
13023char dlopen ();
13024int
13025main ()
13026{
13027dlopen ();
13028  ;
13029  return 0;
13030}
13031_ACEOF
13032rm -f conftest.$ac_objext conftest$ac_exeext
13033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13034  (eval $ac_link) 2>conftest.er1
13035  ac_status=$?
13036  grep -v '^ *+' conftest.er1 >conftest.err
13037  rm -f conftest.er1
13038  cat conftest.err >&5
13039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040  (exit $ac_status); } &&
13041	 { ac_try='test -z "$ac_cxx_werror_flag"
13042			 || test ! -s conftest.err'
13043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044  (eval $ac_try) 2>&5
13045  ac_status=$?
13046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047  (exit $ac_status); }; } &&
13048	 { ac_try='test -s conftest$ac_exeext'
13049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050  (eval $ac_try) 2>&5
13051  ac_status=$?
13052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053  (exit $ac_status); }; }; then
13054  ac_cv_lib_dl_dlopen=yes
13055else
13056  echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
13059ac_cv_lib_dl_dlopen=no
13060fi
13061rm -f conftest.err conftest.$ac_objext \
13062      conftest$ac_exeext conftest.$ac_ext
13063LIBS=$ac_check_lib_save_LIBS
13064fi
13065echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13066echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13067if test $ac_cv_lib_dl_dlopen = yes; then
13068  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13069else
13070  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13071echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13072if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13073  echo $ECHO_N "(cached) $ECHO_C" >&6
13074else
13075  ac_check_lib_save_LIBS=$LIBS
13076LIBS="-lsvld  $LIBS"
13077cat >conftest.$ac_ext <<_ACEOF
13078/* confdefs.h.  */
13079_ACEOF
13080cat confdefs.h >>conftest.$ac_ext
13081cat >>conftest.$ac_ext <<_ACEOF
13082/* end confdefs.h.  */
13083
13084/* Override any gcc2 internal prototype to avoid an error.  */
13085#ifdef __cplusplus
13086extern "C"
13087#endif
13088/* We use char because int might match the return type of a gcc2
13089   builtin and then its argument prototype would still apply.  */
13090char dlopen ();
13091int
13092main ()
13093{
13094dlopen ();
13095  ;
13096  return 0;
13097}
13098_ACEOF
13099rm -f conftest.$ac_objext conftest$ac_exeext
13100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13101  (eval $ac_link) 2>conftest.er1
13102  ac_status=$?
13103  grep -v '^ *+' conftest.er1 >conftest.err
13104  rm -f conftest.er1
13105  cat conftest.err >&5
13106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107  (exit $ac_status); } &&
13108	 { ac_try='test -z "$ac_cxx_werror_flag"
13109			 || test ! -s conftest.err'
13110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111  (eval $ac_try) 2>&5
13112  ac_status=$?
13113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114  (exit $ac_status); }; } &&
13115	 { ac_try='test -s conftest$ac_exeext'
13116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117  (eval $ac_try) 2>&5
13118  ac_status=$?
13119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120  (exit $ac_status); }; }; then
13121  ac_cv_lib_svld_dlopen=yes
13122else
13123  echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
13126ac_cv_lib_svld_dlopen=no
13127fi
13128rm -f conftest.err conftest.$ac_objext \
13129      conftest$ac_exeext conftest.$ac_ext
13130LIBS=$ac_check_lib_save_LIBS
13131fi
13132echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13133echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13134if test $ac_cv_lib_svld_dlopen = yes; then
13135  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13136else
13137  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13138echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13139if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13140  echo $ECHO_N "(cached) $ECHO_C" >&6
13141else
13142  ac_check_lib_save_LIBS=$LIBS
13143LIBS="-ldld  $LIBS"
13144cat >conftest.$ac_ext <<_ACEOF
13145/* confdefs.h.  */
13146_ACEOF
13147cat confdefs.h >>conftest.$ac_ext
13148cat >>conftest.$ac_ext <<_ACEOF
13149/* end confdefs.h.  */
13150
13151/* Override any gcc2 internal prototype to avoid an error.  */
13152#ifdef __cplusplus
13153extern "C"
13154#endif
13155/* We use char because int might match the return type of a gcc2
13156   builtin and then its argument prototype would still apply.  */
13157char dld_link ();
13158int
13159main ()
13160{
13161dld_link ();
13162  ;
13163  return 0;
13164}
13165_ACEOF
13166rm -f conftest.$ac_objext conftest$ac_exeext
13167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13168  (eval $ac_link) 2>conftest.er1
13169  ac_status=$?
13170  grep -v '^ *+' conftest.er1 >conftest.err
13171  rm -f conftest.er1
13172  cat conftest.err >&5
13173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174  (exit $ac_status); } &&
13175	 { ac_try='test -z "$ac_cxx_werror_flag"
13176			 || test ! -s conftest.err'
13177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178  (eval $ac_try) 2>&5
13179  ac_status=$?
13180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181  (exit $ac_status); }; } &&
13182	 { ac_try='test -s conftest$ac_exeext'
13183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184  (eval $ac_try) 2>&5
13185  ac_status=$?
13186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187  (exit $ac_status); }; }; then
13188  ac_cv_lib_dld_dld_link=yes
13189else
13190  echo "$as_me: failed program was:" >&5
13191sed 's/^/| /' conftest.$ac_ext >&5
13192
13193ac_cv_lib_dld_dld_link=no
13194fi
13195rm -f conftest.err conftest.$ac_objext \
13196      conftest$ac_exeext conftest.$ac_ext
13197LIBS=$ac_check_lib_save_LIBS
13198fi
13199echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13200echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13201if test $ac_cv_lib_dld_dld_link = yes; then
13202  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13203fi
13204
13205
13206fi
13207
13208
13209fi
13210
13211
13212fi
13213
13214
13215fi
13216
13217
13218fi
13219
13220    ;;
13221  esac
13222
13223  if test "x$lt_cv_dlopen" != xno; then
13224    enable_dlopen=yes
13225  else
13226    enable_dlopen=no
13227  fi
13228
13229  case $lt_cv_dlopen in
13230  dlopen)
13231    save_CPPFLAGS="$CPPFLAGS"
13232    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13233
13234    save_LDFLAGS="$LDFLAGS"
13235    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13236
13237    save_LIBS="$LIBS"
13238    LIBS="$lt_cv_dlopen_libs $LIBS"
13239
13240    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13241echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13242if test "${lt_cv_dlopen_self+set}" = set; then
13243  echo $ECHO_N "(cached) $ECHO_C" >&6
13244else
13245  	  if test "$cross_compiling" = yes; then :
13246  lt_cv_dlopen_self=cross
13247else
13248  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13249  lt_status=$lt_dlunknown
13250  cat > conftest.$ac_ext <<EOF
13251#line 13251 "configure"
13252#include "confdefs.h"
13253
13254#if HAVE_DLFCN_H
13255#include <dlfcn.h>
13256#endif
13257
13258#include <stdio.h>
13259
13260#ifdef RTLD_GLOBAL
13261#  define LT_DLGLOBAL		RTLD_GLOBAL
13262#else
13263#  ifdef DL_GLOBAL
13264#    define LT_DLGLOBAL		DL_GLOBAL
13265#  else
13266#    define LT_DLGLOBAL		0
13267#  endif
13268#endif
13269
13270/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13271   find out it does not work in some platform. */
13272#ifndef LT_DLLAZY_OR_NOW
13273#  ifdef RTLD_LAZY
13274#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13275#  else
13276#    ifdef DL_LAZY
13277#      define LT_DLLAZY_OR_NOW		DL_LAZY
13278#    else
13279#      ifdef RTLD_NOW
13280#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13281#      else
13282#        ifdef DL_NOW
13283#          define LT_DLLAZY_OR_NOW	DL_NOW
13284#        else
13285#          define LT_DLLAZY_OR_NOW	0
13286#        endif
13287#      endif
13288#    endif
13289#  endif
13290#endif
13291
13292#ifdef __cplusplus
13293extern "C" void exit (int);
13294#endif
13295
13296void fnord() { int i=42;}
13297int main ()
13298{
13299  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13300  int status = $lt_dlunknown;
13301
13302  if (self)
13303    {
13304      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13305      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13306      /* dlclose (self); */
13307    }
13308
13309    exit (status);
13310}
13311EOF
13312  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13313  (eval $ac_link) 2>&5
13314  ac_status=$?
13315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13317    (./conftest; exit; ) 2>/dev/null
13318    lt_status=$?
13319    case x$lt_status in
13320      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13321      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13322      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13323    esac
13324  else :
13325    # compilation failed
13326    lt_cv_dlopen_self=no
13327  fi
13328fi
13329rm -fr conftest*
13330
13331
13332fi
13333echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13334echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13335
13336    if test "x$lt_cv_dlopen_self" = xyes; then
13337      LDFLAGS="$LDFLAGS $link_static_flag"
13338      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13339echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13340if test "${lt_cv_dlopen_self_static+set}" = set; then
13341  echo $ECHO_N "(cached) $ECHO_C" >&6
13342else
13343  	  if test "$cross_compiling" = yes; then :
13344  lt_cv_dlopen_self_static=cross
13345else
13346  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13347  lt_status=$lt_dlunknown
13348  cat > conftest.$ac_ext <<EOF
13349#line 13349 "configure"
13350#include "confdefs.h"
13351
13352#if HAVE_DLFCN_H
13353#include <dlfcn.h>
13354#endif
13355
13356#include <stdio.h>
13357
13358#ifdef RTLD_GLOBAL
13359#  define LT_DLGLOBAL		RTLD_GLOBAL
13360#else
13361#  ifdef DL_GLOBAL
13362#    define LT_DLGLOBAL		DL_GLOBAL
13363#  else
13364#    define LT_DLGLOBAL		0
13365#  endif
13366#endif
13367
13368/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13369   find out it does not work in some platform. */
13370#ifndef LT_DLLAZY_OR_NOW
13371#  ifdef RTLD_LAZY
13372#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13373#  else
13374#    ifdef DL_LAZY
13375#      define LT_DLLAZY_OR_NOW		DL_LAZY
13376#    else
13377#      ifdef RTLD_NOW
13378#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13379#      else
13380#        ifdef DL_NOW
13381#          define LT_DLLAZY_OR_NOW	DL_NOW
13382#        else
13383#          define LT_DLLAZY_OR_NOW	0
13384#        endif
13385#      endif
13386#    endif
13387#  endif
13388#endif
13389
13390#ifdef __cplusplus
13391extern "C" void exit (int);
13392#endif
13393
13394void fnord() { int i=42;}
13395int main ()
13396{
13397  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13398  int status = $lt_dlunknown;
13399
13400  if (self)
13401    {
13402      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13403      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13404      /* dlclose (self); */
13405    }
13406
13407    exit (status);
13408}
13409EOF
13410  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13411  (eval $ac_link) 2>&5
13412  ac_status=$?
13413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13415    (./conftest; exit; ) 2>/dev/null
13416    lt_status=$?
13417    case x$lt_status in
13418      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13419      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13420      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13421    esac
13422  else :
13423    # compilation failed
13424    lt_cv_dlopen_self_static=no
13425  fi
13426fi
13427rm -fr conftest*
13428
13429
13430fi
13431echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13432echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13433    fi
13434
13435    CPPFLAGS="$save_CPPFLAGS"
13436    LDFLAGS="$save_LDFLAGS"
13437    LIBS="$save_LIBS"
13438    ;;
13439  esac
13440
13441  case $lt_cv_dlopen_self in
13442  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13443  *) enable_dlopen_self=unknown ;;
13444  esac
13445
13446  case $lt_cv_dlopen_self_static in
13447  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13448  *) enable_dlopen_self_static=unknown ;;
13449  esac
13450fi
13451
13452
13453# The else clause should only fire when bootstrapping the
13454# libtool distribution, otherwise you forgot to ship ltmain.sh
13455# with your package, and you will get complaints that there are
13456# no rules to generate ltmain.sh.
13457if test -f "$ltmain"; then
13458  # See if we are running on zsh, and set the options which allow our commands through
13459  # without removal of \ escapes.
13460  if test -n "${ZSH_VERSION+set}" ; then
13461    setopt NO_GLOB_SUBST
13462  fi
13463  # Now quote all the things that may contain metacharacters while being
13464  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13465  # variables and quote the copies for generation of the libtool script.
13466  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13467    SED SHELL STRIP \
13468    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13469    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13470    deplibs_check_method reload_flag reload_cmds need_locks \
13471    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13472    lt_cv_sys_global_symbol_to_c_name_address \
13473    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13474    old_postinstall_cmds old_postuninstall_cmds \
13475    compiler_CXX \
13476    CC_CXX \
13477    LD_CXX \
13478    lt_prog_compiler_wl_CXX \
13479    lt_prog_compiler_pic_CXX \
13480    lt_prog_compiler_static_CXX \
13481    lt_prog_compiler_no_builtin_flag_CXX \
13482    export_dynamic_flag_spec_CXX \
13483    thread_safe_flag_spec_CXX \
13484    whole_archive_flag_spec_CXX \
13485    enable_shared_with_static_runtimes_CXX \
13486    old_archive_cmds_CXX \
13487    old_archive_from_new_cmds_CXX \
13488    predep_objects_CXX \
13489    postdep_objects_CXX \
13490    predeps_CXX \
13491    postdeps_CXX \
13492    compiler_lib_search_path_CXX \
13493    archive_cmds_CXX \
13494    archive_expsym_cmds_CXX \
13495    postinstall_cmds_CXX \
13496    postuninstall_cmds_CXX \
13497    old_archive_from_expsyms_cmds_CXX \
13498    allow_undefined_flag_CXX \
13499    no_undefined_flag_CXX \
13500    export_symbols_cmds_CXX \
13501    hardcode_libdir_flag_spec_CXX \
13502    hardcode_libdir_flag_spec_ld_CXX \
13503    hardcode_libdir_separator_CXX \
13504    hardcode_automatic_CXX \
13505    module_cmds_CXX \
13506    module_expsym_cmds_CXX \
13507    lt_cv_prog_compiler_c_o_CXX \
13508    exclude_expsyms_CXX \
13509    include_expsyms_CXX; do
13510
13511    case $var in
13512    old_archive_cmds_CXX | \
13513    old_archive_from_new_cmds_CXX | \
13514    archive_cmds_CXX | \
13515    archive_expsym_cmds_CXX | \
13516    module_cmds_CXX | \
13517    module_expsym_cmds_CXX | \
13518    old_archive_from_expsyms_cmds_CXX | \
13519    export_symbols_cmds_CXX | \
13520    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13521    postinstall_cmds | postuninstall_cmds | \
13522    old_postinstall_cmds | old_postuninstall_cmds | \
13523    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13524      # Double-quote double-evaled strings.
13525      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13526      ;;
13527    *)
13528      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13529      ;;
13530    esac
13531  done
13532
13533  case $lt_echo in
13534  *'\$0 --fallback-echo"')
13535    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13536    ;;
13537  esac
13538
13539cfgfile="$ofile"
13540
13541  cat <<__EOF__ >> "$cfgfile"
13542# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13543
13544# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13545
13546# Shell to use when invoking shell scripts.
13547SHELL=$lt_SHELL
13548
13549# Whether or not to build shared libraries.
13550build_libtool_libs=$enable_shared
13551
13552# Whether or not to build static libraries.
13553build_old_libs=$enable_static
13554
13555# Whether or not to add -lc for building shared libraries.
13556build_libtool_need_lc=$archive_cmds_need_lc_CXX
13557
13558# Whether or not to disallow shared libs when runtime libs are static
13559allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13560
13561# Whether or not to optimize for fast installation.
13562fast_install=$enable_fast_install
13563
13564# The host system.
13565host_alias=$host_alias
13566host=$host
13567
13568# An echo program that does not interpret backslashes.
13569echo=$lt_echo
13570
13571# The archiver.
13572AR=$lt_AR
13573AR_FLAGS=$lt_AR_FLAGS
13574
13575# A C compiler.
13576LTCC=$lt_LTCC
13577
13578# A language-specific compiler.
13579CC=$lt_compiler_CXX
13580
13581# Is the compiler the GNU C compiler?
13582with_gcc=$GCC_CXX
13583
13584# An ERE matcher.
13585EGREP=$lt_EGREP
13586
13587# The linker used to build libraries.
13588LD=$lt_LD_CXX
13589
13590# Whether we need hard or soft links.
13591LN_S=$lt_LN_S
13592
13593# A BSD-compatible nm program.
13594NM=$lt_NM
13595
13596# A symbol stripping program
13597STRIP=$lt_STRIP
13598
13599# Used to examine libraries when file_magic_cmd begins "file"
13600MAGIC_CMD=$MAGIC_CMD
13601
13602# Used on cygwin: DLL creation program.
13603DLLTOOL="$DLLTOOL"
13604
13605# Used on cygwin: object dumper.
13606OBJDUMP="$OBJDUMP"
13607
13608# Used on cygwin: assembler.
13609AS="$AS"
13610
13611# The name of the directory that contains temporary libtool files.
13612objdir=$objdir
13613
13614# How to create reloadable object files.
13615reload_flag=$lt_reload_flag
13616reload_cmds=$lt_reload_cmds
13617
13618# How to pass a linker flag through the compiler.
13619wl=$lt_lt_prog_compiler_wl_CXX
13620
13621# Object file suffix (normally "o").
13622objext="$ac_objext"
13623
13624# Old archive suffix (normally "a").
13625libext="$libext"
13626
13627# Shared library suffix (normally ".so").
13628shrext='$shrext'
13629
13630# Executable file suffix (normally "").
13631exeext="$exeext"
13632
13633# Additional compiler flags for building library objects.
13634pic_flag=$lt_lt_prog_compiler_pic_CXX
13635pic_mode=$pic_mode
13636
13637# What is the maximum length of a command?
13638max_cmd_len=$lt_cv_sys_max_cmd_len
13639
13640# Does compiler simultaneously support -c and -o options?
13641compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13642
13643# Must we lock files when doing compilation ?
13644need_locks=$lt_need_locks
13645
13646# Do we need the lib prefix for modules?
13647need_lib_prefix=$need_lib_prefix
13648
13649# Do we need a version for libraries?
13650need_version=$need_version
13651
13652# Whether dlopen is supported.
13653dlopen_support=$enable_dlopen
13654
13655# Whether dlopen of programs is supported.
13656dlopen_self=$enable_dlopen_self
13657
13658# Whether dlopen of statically linked programs is supported.
13659dlopen_self_static=$enable_dlopen_self_static
13660
13661# Compiler flag to prevent dynamic linking.
13662link_static_flag=$lt_lt_prog_compiler_static_CXX
13663
13664# Compiler flag to turn off builtin functions.
13665no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13666
13667# Compiler flag to allow reflexive dlopens.
13668export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13669
13670# Compiler flag to generate shared objects directly from archives.
13671whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13672
13673# Compiler flag to generate thread-safe objects.
13674thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13675
13676# Library versioning type.
13677version_type=$version_type
13678
13679# Format of library name prefix.
13680libname_spec=$lt_libname_spec
13681
13682# List of archive names.  First name is the real one, the rest are links.
13683# The last name is the one that the linker finds with -lNAME.
13684library_names_spec=$lt_library_names_spec
13685
13686# The coded name of the library, if different from the real name.
13687soname_spec=$lt_soname_spec
13688
13689# Commands used to build and install an old-style archive.
13690RANLIB=$lt_RANLIB
13691old_archive_cmds=$lt_old_archive_cmds_CXX
13692old_postinstall_cmds=$lt_old_postinstall_cmds
13693old_postuninstall_cmds=$lt_old_postuninstall_cmds
13694
13695# Create an old-style archive from a shared archive.
13696old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13697
13698# Create a temporary old-style archive to link instead of a shared archive.
13699old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13700
13701# Commands used to build and install a shared archive.
13702archive_cmds=$lt_archive_cmds_CXX
13703archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13704postinstall_cmds=$lt_postinstall_cmds
13705postuninstall_cmds=$lt_postuninstall_cmds
13706
13707# Commands used to build a loadable module (assumed same as above if empty)
13708module_cmds=$lt_module_cmds_CXX
13709module_expsym_cmds=$lt_module_expsym_cmds_CXX
13710
13711# Commands to strip libraries.
13712old_striplib=$lt_old_striplib
13713striplib=$lt_striplib
13714
13715# Dependencies to place before the objects being linked to create a
13716# shared library.
13717predep_objects=$lt_predep_objects_CXX
13718
13719# Dependencies to place after the objects being linked to create a
13720# shared library.
13721postdep_objects=$lt_postdep_objects_CXX
13722
13723# Dependencies to place before the objects being linked to create a
13724# shared library.
13725predeps=$lt_predeps_CXX
13726
13727# Dependencies to place after the objects being linked to create a
13728# shared library.
13729postdeps=$lt_postdeps_CXX
13730
13731# The library search path used internally by the compiler when linking
13732# a shared library.
13733compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13734
13735# Method to check whether dependent libraries are shared objects.
13736deplibs_check_method=$lt_deplibs_check_method
13737
13738# Command to use when deplibs_check_method == file_magic.
13739file_magic_cmd=$lt_file_magic_cmd
13740
13741# Flag that allows shared libraries with undefined symbols to be built.
13742allow_undefined_flag=$lt_allow_undefined_flag_CXX
13743
13744# Flag that forces no undefined symbols.
13745no_undefined_flag=$lt_no_undefined_flag_CXX
13746
13747# Commands used to finish a libtool library installation in a directory.
13748finish_cmds=$lt_finish_cmds
13749
13750# Same as above, but a single script fragment to be evaled but not shown.
13751finish_eval=$lt_finish_eval
13752
13753# Take the output of nm and produce a listing of raw symbols and C names.
13754global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13755
13756# Transform the output of nm in a proper C declaration
13757global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13758
13759# Transform the output of nm in a C name address pair
13760global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13761
13762# This is the shared library runtime path variable.
13763runpath_var=$runpath_var
13764
13765# This is the shared library path variable.
13766shlibpath_var=$shlibpath_var
13767
13768# Is shlibpath searched before the hard-coded library search path?
13769shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13770
13771# How to hardcode a shared library path into an executable.
13772hardcode_action=$hardcode_action_CXX
13773
13774# Whether we should hardcode library paths into libraries.
13775hardcode_into_libs=$hardcode_into_libs
13776
13777# Flag to hardcode \$libdir into a binary during linking.
13778# This must work even if \$libdir does not exist.
13779hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13780
13781# If ld is used when linking, flag to hardcode \$libdir into
13782# a binary during linking. This must work even if \$libdir does
13783# not exist.
13784hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13785
13786# Whether we need a single -rpath flag with a separated argument.
13787hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13788
13789# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13790# resulting binary.
13791hardcode_direct=$hardcode_direct_CXX
13792
13793# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13794# resulting binary.
13795hardcode_minus_L=$hardcode_minus_L_CXX
13796
13797# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13798# the resulting binary.
13799hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13800
13801# Set to yes if building a shared library automatically hardcodes DIR into the library
13802# and all subsequent libraries and executables linked against it.
13803hardcode_automatic=$hardcode_automatic_CXX
13804
13805# Variables whose values should be saved in libtool wrapper scripts and
13806# restored at relink time.
13807variables_saved_for_relink="$variables_saved_for_relink"
13808
13809# Whether libtool must link a program against all its dependency libraries.
13810link_all_deplibs=$link_all_deplibs_CXX
13811
13812# Compile-time system search path for libraries
13813sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13814
13815# Run-time system search path for libraries
13816sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13817
13818# Fix the shell variable \$srcfile for the compiler.
13819fix_srcfile_path="$fix_srcfile_path_CXX"
13820
13821# Set to yes if exported symbols are required.
13822always_export_symbols=$always_export_symbols_CXX
13823
13824# The commands to list exported symbols.
13825export_symbols_cmds=$lt_export_symbols_cmds_CXX
13826
13827# The commands to extract the exported symbol list from a shared archive.
13828extract_expsyms_cmds=$lt_extract_expsyms_cmds
13829
13830# Symbols that should not be listed in the preloaded symbols.
13831exclude_expsyms=$lt_exclude_expsyms_CXX
13832
13833# Symbols that must always be exported.
13834include_expsyms=$lt_include_expsyms_CXX
13835
13836# ### END LIBTOOL TAG CONFIG: $tagname
13837
13838__EOF__
13839
13840
13841else
13842  # If there is no Makefile yet, we rely on a make rule to execute
13843  # `config.status --recheck' to rerun these tests and create the
13844  # libtool script then.
13845  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13846  if test -f "$ltmain_in"; then
13847    test -f Makefile && make "$ltmain"
13848  fi
13849fi
13850
13851
13852ac_ext=c
13853ac_cpp='$CPP $CPPFLAGS'
13854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856ac_compiler_gnu=$ac_cv_c_compiler_gnu
13857
13858CC=$lt_save_CC
13859LDCXX=$LD
13860LD=$lt_save_LD
13861GCC=$lt_save_GCC
13862with_gnu_ldcxx=$with_gnu_ld
13863with_gnu_ld=$lt_save_with_gnu_ld
13864lt_cv_path_LDCXX=$lt_cv_path_LD
13865lt_cv_path_LD=$lt_save_path_LD
13866lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13867lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13868
13869	else
13870	  tagname=""
13871	fi
13872	;;
13873
13874      F77)
13875	if test -n "$F77" && test "X$F77" != "Xno"; then
13876
13877ac_ext=f
13878ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13879ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13880ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13881
13882
13883archive_cmds_need_lc_F77=no
13884allow_undefined_flag_F77=
13885always_export_symbols_F77=no
13886archive_expsym_cmds_F77=
13887export_dynamic_flag_spec_F77=
13888hardcode_direct_F77=no
13889hardcode_libdir_flag_spec_F77=
13890hardcode_libdir_flag_spec_ld_F77=
13891hardcode_libdir_separator_F77=
13892hardcode_minus_L_F77=no
13893hardcode_automatic_F77=no
13894module_cmds_F77=
13895module_expsym_cmds_F77=
13896link_all_deplibs_F77=unknown
13897old_archive_cmds_F77=$old_archive_cmds
13898no_undefined_flag_F77=
13899whole_archive_flag_spec_F77=
13900enable_shared_with_static_runtimes_F77=no
13901
13902# Source file extension for f77 test sources.
13903ac_ext=f
13904
13905# Object file extension for compiled f77 test sources.
13906objext=o
13907objext_F77=$objext
13908
13909# Code to be used in simple compile tests
13910lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13911
13912# Code to be used in simple link tests
13913lt_simple_link_test_code="      program t\n      end\n"
13914
13915# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13916
13917# If no C compiler was specified, use CC.
13918LTCC=${LTCC-"$CC"}
13919
13920# Allow CC to be a program name with arguments.
13921compiler=$CC
13922
13923
13924# Allow CC to be a program name with arguments.
13925lt_save_CC="$CC"
13926CC=${F77-"f77"}
13927compiler=$CC
13928compiler_F77=$CC
13929cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13930
13931echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13932echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13933echo "$as_me:$LINENO: result: $can_build_shared" >&5
13934echo "${ECHO_T}$can_build_shared" >&6
13935
13936echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13937echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13938test "$can_build_shared" = "no" && enable_shared=no
13939
13940# On AIX, shared libraries and static libraries use the same namespace, and
13941# are all built from PIC.
13942case "$host_os" in
13943aix3*)
13944  test "$enable_shared" = yes && enable_static=no
13945  if test -n "$RANLIB"; then
13946    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13947    postinstall_cmds='$RANLIB $lib'
13948  fi
13949  ;;
13950aix4*)
13951  test "$enable_shared" = yes && enable_static=no
13952  ;;
13953esac
13954echo "$as_me:$LINENO: result: $enable_shared" >&5
13955echo "${ECHO_T}$enable_shared" >&6
13956
13957echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13958echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13959# Make sure either enable_shared or enable_static is yes.
13960test "$enable_shared" = yes || enable_static=yes
13961echo "$as_me:$LINENO: result: $enable_static" >&5
13962echo "${ECHO_T}$enable_static" >&6
13963
13964test "$ld_shlibs_F77" = no && can_build_shared=no
13965
13966GCC_F77="$G77"
13967LD_F77="$LD"
13968
13969lt_prog_compiler_wl_F77=
13970lt_prog_compiler_pic_F77=
13971lt_prog_compiler_static_F77=
13972
13973echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13974echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13975
13976  if test "$GCC" = yes; then
13977    lt_prog_compiler_wl_F77='-Wl,'
13978    lt_prog_compiler_static_F77='-static'
13979
13980    case $host_os in
13981      aix*)
13982      # All AIX code is PIC.
13983      if test "$host_cpu" = ia64; then
13984	# AIX 5 now supports IA64 processor
13985	lt_prog_compiler_static_F77='-Bstatic'
13986      fi
13987      ;;
13988
13989    amigaos*)
13990      # FIXME: we need at least 68020 code to build shared libraries, but
13991      # adding the `-m68020' flag to GCC prevents building anything better,
13992      # like `-m68040'.
13993      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13994      ;;
13995
13996    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13997      # PIC is the default for these OSes.
13998      ;;
13999
14000    mingw* | pw32* | os2*)
14001      # This hack is so that the source file can tell whether it is being
14002      # built for inclusion in a dll (and should export symbols for example).
14003      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14004      ;;
14005
14006    darwin* | rhapsody*)
14007      # PIC is the default on this platform
14008      # Common symbols not allowed in MH_DYLIB files
14009      lt_prog_compiler_pic_F77='-fno-common'
14010      ;;
14011
14012    msdosdjgpp*)
14013      # Just because we use GCC doesn't mean we suddenly get shared libraries
14014      # on systems that don't support them.
14015      lt_prog_compiler_can_build_shared_F77=no
14016      enable_shared=no
14017      ;;
14018
14019    sysv4*MP*)
14020      if test -d /usr/nec; then
14021	lt_prog_compiler_pic_F77=-Kconform_pic
14022      fi
14023      ;;
14024
14025    hpux*)
14026      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14027      # not for PA HP-UX.
14028      case "$host_cpu" in
14029      hppa*64*|ia64*)
14030	# +Z the default
14031	;;
14032      *)
14033	lt_prog_compiler_pic_F77='-fPIC'
14034	;;
14035      esac
14036      ;;
14037
14038    *)
14039      lt_prog_compiler_pic_F77='-fPIC'
14040      ;;
14041    esac
14042  else
14043    # PORTME Check for flag to pass linker flags through the system compiler.
14044    case $host_os in
14045    aix*)
14046      lt_prog_compiler_wl_F77='-Wl,'
14047      if test "$host_cpu" = ia64; then
14048	# AIX 5 now supports IA64 processor
14049	lt_prog_compiler_static_F77='-Bstatic'
14050      else
14051	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14052      fi
14053      ;;
14054
14055    mingw* | pw32* | os2*)
14056      # This hack is so that the source file can tell whether it is being
14057      # built for inclusion in a dll (and should export symbols for example).
14058      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14059      ;;
14060
14061    hpux9* | hpux10* | hpux11*)
14062      lt_prog_compiler_wl_F77='-Wl,'
14063      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14064      # not for PA HP-UX.
14065      case "$host_cpu" in
14066      hppa*64*|ia64*)
14067	# +Z the default
14068	;;
14069      *)
14070	lt_prog_compiler_pic_F77='+Z'
14071	;;
14072      esac
14073      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14074      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14075      ;;
14076
14077    irix5* | irix6* | nonstopux*)
14078      lt_prog_compiler_wl_F77='-Wl,'
14079      # PIC (with -KPIC) is the default.
14080      lt_prog_compiler_static_F77='-non_shared'
14081      ;;
14082
14083    newsos6)
14084      lt_prog_compiler_pic_F77='-KPIC'
14085      lt_prog_compiler_static_F77='-Bstatic'
14086      ;;
14087
14088    linux*)
14089      case $CC in
14090      icc* | ecc*)
14091	lt_prog_compiler_wl_F77='-Wl,'
14092	lt_prog_compiler_pic_F77='-KPIC'
14093	lt_prog_compiler_static_F77='-static'
14094        ;;
14095      ccc*)
14096        lt_prog_compiler_wl_F77='-Wl,'
14097        # All Alpha code is PIC.
14098        lt_prog_compiler_static_F77='-non_shared'
14099        ;;
14100      esac
14101      ;;
14102
14103    osf3* | osf4* | osf5*)
14104      lt_prog_compiler_wl_F77='-Wl,'
14105      # All OSF/1 code is PIC.
14106      lt_prog_compiler_static_F77='-non_shared'
14107      ;;
14108
14109    sco3.2v5*)
14110      lt_prog_compiler_pic_F77='-Kpic'
14111      lt_prog_compiler_static_F77='-dn'
14112      ;;
14113
14114    solaris*)
14115      lt_prog_compiler_wl_F77='-Wl,'
14116      lt_prog_compiler_pic_F77='-KPIC'
14117      lt_prog_compiler_static_F77='-Bstatic'
14118      ;;
14119
14120    sunos4*)
14121      lt_prog_compiler_wl_F77='-Qoption ld '
14122      lt_prog_compiler_pic_F77='-PIC'
14123      lt_prog_compiler_static_F77='-Bstatic'
14124      ;;
14125
14126    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14127      lt_prog_compiler_wl_F77='-Wl,'
14128      lt_prog_compiler_pic_F77='-KPIC'
14129      lt_prog_compiler_static_F77='-Bstatic'
14130      ;;
14131
14132    sysv4*MP*)
14133      if test -d /usr/nec ;then
14134	lt_prog_compiler_pic_F77='-Kconform_pic'
14135	lt_prog_compiler_static_F77='-Bstatic'
14136      fi
14137      ;;
14138
14139    uts4*)
14140      lt_prog_compiler_pic_F77='-pic'
14141      lt_prog_compiler_static_F77='-Bstatic'
14142      ;;
14143
14144    *)
14145      lt_prog_compiler_can_build_shared_F77=no
14146      ;;
14147    esac
14148  fi
14149
14150echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14151echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14152
14153#
14154# Check to make sure the PIC flag actually works.
14155#
14156if test -n "$lt_prog_compiler_pic_F77"; then
14157
14158echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14159echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14160if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14161  echo $ECHO_N "(cached) $ECHO_C" >&6
14162else
14163  lt_prog_compiler_pic_works_F77=no
14164  ac_outfile=conftest.$ac_objext
14165   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14166   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14167   # Insert the option either (1) after the last *FLAGS variable, or
14168   # (2) before a word containing "conftest.", or (3) at the end.
14169   # Note that $ac_compile itself does not contain backslashes and begins
14170   # with a dollar sign (not a hyphen), so the echo should work correctly.
14171   # The option is referenced via a variable to avoid confusing sed.
14172   lt_compile=`echo "$ac_compile" | $SED \
14173   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14174   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14175   -e 's:$: $lt_compiler_flag:'`
14176   (eval echo "\"\$as_me:14176: $lt_compile\"" >&5)
14177   (eval "$lt_compile" 2>conftest.err)
14178   ac_status=$?
14179   cat conftest.err >&5
14180   echo "$as_me:14180: \$? = $ac_status" >&5
14181   if (exit $ac_status) && test -s "$ac_outfile"; then
14182     # The compiler can only warn and ignore the option if not recognized
14183     # So say no if there are warnings
14184     if test ! -s conftest.err; then
14185       lt_prog_compiler_pic_works_F77=yes
14186     fi
14187   fi
14188   $rm conftest*
14189
14190fi
14191echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14192echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14193
14194if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14195    case $lt_prog_compiler_pic_F77 in
14196     "" | " "*) ;;
14197     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14198     esac
14199else
14200    lt_prog_compiler_pic_F77=
14201     lt_prog_compiler_can_build_shared_F77=no
14202fi
14203
14204fi
14205case "$host_os" in
14206  # For platforms which do not support PIC, -DPIC is meaningless:
14207  *djgpp*)
14208    lt_prog_compiler_pic_F77=
14209    ;;
14210  *)
14211    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14212    ;;
14213esac
14214
14215echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14216echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14217if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14218  echo $ECHO_N "(cached) $ECHO_C" >&6
14219else
14220  lt_cv_prog_compiler_c_o_F77=no
14221   $rm -r conftest 2>/dev/null
14222   mkdir conftest
14223   cd conftest
14224   mkdir out
14225   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14226
14227   lt_compiler_flag="-o out/conftest2.$ac_objext"
14228   # Insert the option either (1) after the last *FLAGS variable, or
14229   # (2) before a word containing "conftest.", or (3) at the end.
14230   # Note that $ac_compile itself does not contain backslashes and begins
14231   # with a dollar sign (not a hyphen), so the echo should work correctly.
14232   lt_compile=`echo "$ac_compile" | $SED \
14233   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14234   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14235   -e 's:$: $lt_compiler_flag:'`
14236   (eval echo "\"\$as_me:14236: $lt_compile\"" >&5)
14237   (eval "$lt_compile" 2>out/conftest.err)
14238   ac_status=$?
14239   cat out/conftest.err >&5
14240   echo "$as_me:14240: \$? = $ac_status" >&5
14241   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14242   then
14243     # The compiler can only warn and ignore the option if not recognized
14244     # So say no if there are warnings
14245     if test ! -s out/conftest.err; then
14246       lt_cv_prog_compiler_c_o_F77=yes
14247     fi
14248   fi
14249   chmod u+w .
14250   $rm conftest*
14251   # SGI C++ compiler will create directory out/ii_files/ for
14252   # template instantiation
14253   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14254   $rm out/* && rmdir out
14255   cd ..
14256   rmdir conftest
14257   $rm conftest*
14258
14259fi
14260echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14261echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14262
14263
14264hard_links="nottested"
14265if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14266  # do not overwrite the value of need_locks provided by the user
14267  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14268echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14269  hard_links=yes
14270  $rm conftest*
14271  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14272  touch conftest.a
14273  ln conftest.a conftest.b 2>&5 || hard_links=no
14274  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14275  echo "$as_me:$LINENO: result: $hard_links" >&5
14276echo "${ECHO_T}$hard_links" >&6
14277  if test "$hard_links" = no; then
14278    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14279echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14280    need_locks=warn
14281  fi
14282else
14283  need_locks=no
14284fi
14285
14286echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14287echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14288
14289  runpath_var=
14290  allow_undefined_flag_F77=
14291  enable_shared_with_static_runtimes_F77=no
14292  archive_cmds_F77=
14293  archive_expsym_cmds_F77=
14294  old_archive_From_new_cmds_F77=
14295  old_archive_from_expsyms_cmds_F77=
14296  export_dynamic_flag_spec_F77=
14297  whole_archive_flag_spec_F77=
14298  thread_safe_flag_spec_F77=
14299  hardcode_libdir_flag_spec_F77=
14300  hardcode_libdir_flag_spec_ld_F77=
14301  hardcode_libdir_separator_F77=
14302  hardcode_direct_F77=no
14303  hardcode_minus_L_F77=no
14304  hardcode_shlibpath_var_F77=unsupported
14305  link_all_deplibs_F77=unknown
14306  hardcode_automatic_F77=no
14307  module_cmds_F77=
14308  module_expsym_cmds_F77=
14309  always_export_symbols_F77=no
14310  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14311  # include_expsyms should be a list of space-separated symbols to be *always*
14312  # included in the symbol list
14313  include_expsyms_F77=
14314  # exclude_expsyms can be an extended regexp of symbols to exclude
14315  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14316  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14317  # as well as any symbol that contains `d'.
14318  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14319  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14320  # platforms (ab)use it in PIC code, but their linkers get confused if
14321  # the symbol is explicitly referenced.  Since portable code cannot
14322  # rely on this symbol name, it's probably fine to never include it in
14323  # preloaded symbol tables.
14324  extract_expsyms_cmds=
14325
14326  case $host_os in
14327  cygwin* | mingw* | pw32*)
14328    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14329    # When not using gcc, we currently assume that we are using
14330    # Microsoft Visual C++.
14331    if test "$GCC" != yes; then
14332      with_gnu_ld=no
14333    fi
14334    ;;
14335  openbsd*)
14336    with_gnu_ld=no
14337    ;;
14338  esac
14339
14340  ld_shlibs_F77=yes
14341  if test "$with_gnu_ld" = yes; then
14342    # If archive_cmds runs LD, not CC, wlarc should be empty
14343    wlarc='${wl}'
14344
14345    # See if GNU ld supports shared libraries.
14346    case $host_os in
14347    aix3* | aix4* | aix5*)
14348      # On AIX/PPC, the GNU linker is very broken
14349      if test "$host_cpu" != ia64; then
14350	ld_shlibs_F77=no
14351	cat <<EOF 1>&2
14352
14353*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14354*** to be unable to reliably create shared libraries on AIX.
14355*** Therefore, libtool is disabling shared libraries support.  If you
14356*** really care for shared libraries, you may want to modify your PATH
14357*** so that a non-GNU linker is found, and then restart.
14358
14359EOF
14360      fi
14361      ;;
14362
14363    amigaos*)
14364      archive_cmds_F77='$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)'
14365      hardcode_libdir_flag_spec_F77='-L$libdir'
14366      hardcode_minus_L_F77=yes
14367
14368      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14369      # that the semantics of dynamic libraries on AmigaOS, at least up
14370      # to version 4, is to share data among multiple programs linked
14371      # with the same dynamic library.  Since this doesn't match the
14372      # behavior of shared libraries on other platforms, we can't use
14373      # them.
14374      ld_shlibs_F77=no
14375      ;;
14376
14377    beos*)
14378      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14379	allow_undefined_flag_F77=unsupported
14380	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14381	# support --undefined.  This deserves some investigation.  FIXME
14382	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14383      else
14384	ld_shlibs_F77=no
14385      fi
14386      ;;
14387
14388    cygwin* | mingw* | pw32*)
14389      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14390      # as there is no search path for DLLs.
14391      hardcode_libdir_flag_spec_F77='-L$libdir'
14392      allow_undefined_flag_F77=unsupported
14393      always_export_symbols_F77=no
14394      enable_shared_with_static_runtimes_F77=yes
14395      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14396
14397      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14398        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14399	# If the export-symbols file already is a .def file (1st line
14400	# is EXPORTS), use it as is; otherwise, prepend...
14401	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14402	  cp $export_symbols $output_objdir/$soname.def;
14403	else
14404	  echo EXPORTS > $output_objdir/$soname.def;
14405	  cat $export_symbols >> $output_objdir/$soname.def;
14406	fi~
14407	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14408      else
14409	ld_shlibs=no
14410      fi
14411      ;;
14412
14413    netbsd*)
14414      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14415	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14416	wlarc=
14417      else
14418	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14419	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14420      fi
14421      ;;
14422
14423    solaris* | sysv5*)
14424      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14425	ld_shlibs_F77=no
14426	cat <<EOF 1>&2
14427
14428*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14429*** create shared libraries on Solaris systems.  Therefore, libtool
14430*** is disabling shared libraries support.  We urge you to upgrade GNU
14431*** binutils to release 2.9.1 or newer.  Another option is to modify
14432*** your PATH or compiler configuration so that the native linker is
14433*** used, and then restart.
14434
14435EOF
14436      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14437	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14438	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14439      else
14440	ld_shlibs_F77=no
14441      fi
14442      ;;
14443
14444    sunos4*)
14445      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14446      wlarc=
14447      hardcode_direct_F77=yes
14448      hardcode_shlibpath_var_F77=no
14449      ;;
14450
14451  linux*)
14452    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14453        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14454	archive_cmds_F77="$tmp_archive_cmds"
14455      supports_anon_versioning=no
14456      case `$LD -v 2>/dev/null` in
14457        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14458        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14459        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14460        *\ 2.11.*) ;; # other 2.11 versions
14461        *) supports_anon_versioning=yes ;;
14462      esac
14463      if test $supports_anon_versioning = yes; then
14464        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14465cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14466$echo "local: *; };" >> $output_objdir/$libname.ver~
14467        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14468      else
14469        archive_expsym_cmds_F77="$tmp_archive_cmds"
14470      fi
14471    else
14472      ld_shlibs_F77=no
14473    fi
14474    ;;
14475
14476    *)
14477      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14478	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14479	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14480      else
14481	ld_shlibs_F77=no
14482      fi
14483      ;;
14484    esac
14485
14486    if test "$ld_shlibs_F77" = yes; then
14487      runpath_var=LD_RUN_PATH
14488      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14489      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14490      # ancient GNU ld didn't support --whole-archive et. al.
14491      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14492 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14493      else
14494  	whole_archive_flag_spec_F77=
14495      fi
14496    fi
14497  else
14498    # PORTME fill in a description of your system's linker (not GNU ld)
14499    case $host_os in
14500    aix3*)
14501      allow_undefined_flag_F77=unsupported
14502      always_export_symbols_F77=yes
14503      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14504      # Note: this linker hardcodes the directories in LIBPATH if there
14505      # are no directories specified by -L.
14506      hardcode_minus_L_F77=yes
14507      if test "$GCC" = yes && test -z "$link_static_flag"; then
14508	# Neither direct hardcoding nor static linking is supported with a
14509	# broken collect2.
14510	hardcode_direct_F77=unsupported
14511      fi
14512      ;;
14513
14514    aix4* | aix5*)
14515      if test "$host_cpu" = ia64; then
14516	# On IA64, the linker does run time linking by default, so we don't
14517	# have to do anything special.
14518	aix_use_runtimelinking=no
14519	exp_sym_flag='-Bexport'
14520	no_entry_flag=""
14521      else
14522	# If we're using GNU nm, then we don't want the "-C" option.
14523	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14524	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14525	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14526	else
14527	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14528	fi
14529	aix_use_runtimelinking=no
14530
14531	# Test if we are trying to use run time linking or normal
14532	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14533	# need to do runtime linking.
14534	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14535	  for ld_flag in $LDFLAGS; do
14536  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14537  	    aix_use_runtimelinking=yes
14538  	    break
14539  	  fi
14540	  done
14541	esac
14542
14543	exp_sym_flag='-bexport'
14544	no_entry_flag='-bnoentry'
14545      fi
14546
14547      # When large executables or shared objects are built, AIX ld can
14548      # have problems creating the table of contents.  If linking a library
14549      # or program results in "error TOC overflow" add -mminimal-toc to
14550      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14551      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14552
14553      archive_cmds_F77=''
14554      hardcode_direct_F77=yes
14555      hardcode_libdir_separator_F77=':'
14556      link_all_deplibs_F77=yes
14557
14558      if test "$GCC" = yes; then
14559	case $host_os in aix4.012|aix4.012.*)
14560	# We only want to do this on AIX 4.2 and lower, the check
14561	# below for broken collect2 doesn't work under 4.3+
14562	  collect2name=`${CC} -print-prog-name=collect2`
14563	  if test -f "$collect2name" && \
14564  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14565	  then
14566  	  # We have reworked collect2
14567  	  hardcode_direct_F77=yes
14568	  else
14569  	  # We have old collect2
14570  	  hardcode_direct_F77=unsupported
14571  	  # It fails to find uninstalled libraries when the uninstalled
14572  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14573  	  # to unsupported forces relinking
14574  	  hardcode_minus_L_F77=yes
14575  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14576  	  hardcode_libdir_separator_F77=
14577	  fi
14578	esac
14579	shared_flag='-shared'
14580      else
14581	# not using gcc
14582	if test "$host_cpu" = ia64; then
14583  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14584  	# chokes on -Wl,-G. The following line is correct:
14585	  shared_flag='-G'
14586	else
14587  	if test "$aix_use_runtimelinking" = yes; then
14588	    shared_flag='${wl}-G'
14589	  else
14590	    shared_flag='${wl}-bM:SRE'
14591  	fi
14592	fi
14593      fi
14594
14595      # It seems that -bexpall does not export symbols beginning with
14596      # underscore (_), so it is better to generate a list of symbols to export.
14597      always_export_symbols_F77=yes
14598      if test "$aix_use_runtimelinking" = yes; then
14599	# Warning - without using the other runtime loading flags (-brtl),
14600	# -berok will link without error, but may produce a broken library.
14601	allow_undefined_flag_F77='-berok'
14602       # Determine the default libpath from the value encoded in an empty executable.
14603       cat >conftest.$ac_ext <<_ACEOF
14604      program main
14605
14606      end
14607_ACEOF
14608rm -f conftest.$ac_objext conftest$ac_exeext
14609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14610  (eval $ac_link) 2>conftest.er1
14611  ac_status=$?
14612  grep -v '^ *+' conftest.er1 >conftest.err
14613  rm -f conftest.er1
14614  cat conftest.err >&5
14615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616  (exit $ac_status); } &&
14617	 { ac_try='test -z "$ac_f77_werror_flag"
14618			 || test ! -s conftest.err'
14619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620  (eval $ac_try) 2>&5
14621  ac_status=$?
14622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623  (exit $ac_status); }; } &&
14624	 { ac_try='test -s conftest$ac_exeext'
14625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626  (eval $ac_try) 2>&5
14627  ac_status=$?
14628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629  (exit $ac_status); }; }; then
14630
14631aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14632}'`
14633# Check for a 64-bit object if we didn't find anything.
14634if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14635}'`; fi
14636else
14637  echo "$as_me: failed program was:" >&5
14638sed 's/^/| /' conftest.$ac_ext >&5
14639
14640fi
14641rm -f conftest.err conftest.$ac_objext \
14642      conftest$ac_exeext conftest.$ac_ext
14643if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14644
14645       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14646	archive_expsym_cmds_F77="\$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"
14647       else
14648	if test "$host_cpu" = ia64; then
14649	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14650	  allow_undefined_flag_F77="-z nodefs"
14651	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14652	else
14653	 # Determine the default libpath from the value encoded in an empty executable.
14654	 cat >conftest.$ac_ext <<_ACEOF
14655      program main
14656
14657      end
14658_ACEOF
14659rm -f conftest.$ac_objext conftest$ac_exeext
14660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14661  (eval $ac_link) 2>conftest.er1
14662  ac_status=$?
14663  grep -v '^ *+' conftest.er1 >conftest.err
14664  rm -f conftest.er1
14665  cat conftest.err >&5
14666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667  (exit $ac_status); } &&
14668	 { ac_try='test -z "$ac_f77_werror_flag"
14669			 || test ! -s conftest.err'
14670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671  (eval $ac_try) 2>&5
14672  ac_status=$?
14673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674  (exit $ac_status); }; } &&
14675	 { ac_try='test -s conftest$ac_exeext'
14676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677  (eval $ac_try) 2>&5
14678  ac_status=$?
14679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680  (exit $ac_status); }; }; then
14681
14682aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14683}'`
14684# Check for a 64-bit object if we didn't find anything.
14685if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14686}'`; fi
14687else
14688  echo "$as_me: failed program was:" >&5
14689sed 's/^/| /' conftest.$ac_ext >&5
14690
14691fi
14692rm -f conftest.err conftest.$ac_objext \
14693      conftest$ac_exeext conftest.$ac_ext
14694if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14695
14696	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14697	  # Warning - without using the other run time loading flags,
14698	  # -berok will link without error, but may produce a broken library.
14699	  no_undefined_flag_F77=' ${wl}-bernotok'
14700	  allow_undefined_flag_F77=' ${wl}-berok'
14701	  # -bexpall does not export symbols beginning with underscore (_)
14702	  always_export_symbols_F77=yes
14703	  # Exported symbols can be pulled into shared objects from archives
14704	  whole_archive_flag_spec_F77=' '
14705	  archive_cmds_need_lc_F77=yes
14706	  # This is similar to how AIX traditionally builds it's shared libraries.
14707	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14708	fi
14709      fi
14710      ;;
14711
14712    amigaos*)
14713      archive_cmds_F77='$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)'
14714      hardcode_libdir_flag_spec_F77='-L$libdir'
14715      hardcode_minus_L_F77=yes
14716      # see comment about different semantics on the GNU ld section
14717      ld_shlibs_F77=no
14718      ;;
14719
14720    bsdi4*)
14721      export_dynamic_flag_spec_F77=-rdynamic
14722      ;;
14723
14724    cygwin* | mingw* | pw32*)
14725      # When not using gcc, we currently assume that we are using
14726      # Microsoft Visual C++.
14727      # hardcode_libdir_flag_spec is actually meaningless, as there is
14728      # no search path for DLLs.
14729      hardcode_libdir_flag_spec_F77=' '
14730      allow_undefined_flag_F77=unsupported
14731      # Tell ltmain to make .lib files, not .a files.
14732      libext=lib
14733      # Tell ltmain to make .dll files, not .so files.
14734      shrext=".dll"
14735      # FIXME: Setting linknames here is a bad hack.
14736      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14737      # The linker will automatically build a .lib file if we build a DLL.
14738      old_archive_From_new_cmds_F77='true'
14739      # FIXME: Should let the user specify the lib program.
14740      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14741      fix_srcfile_path='`cygpath -w "$srcfile"`'
14742      enable_shared_with_static_runtimes_F77=yes
14743      ;;
14744
14745    darwin* | rhapsody*)
14746    if test "$GXX" = yes ; then
14747      archive_cmds_need_lc_F77=no
14748      case "$host_os" in
14749      rhapsody* | darwin1.[012])
14750	allow_undefined_flag_F77='-undefined suppress'
14751	;;
14752      *) # Darwin 1.3 on
14753      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14754      	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14755      else
14756        case ${MACOSX_DEPLOYMENT_TARGET} in
14757          10.[012])
14758            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14759            ;;
14760          10.*)
14761            allow_undefined_flag_F77='-undefined dynamic_lookup'
14762            ;;
14763        esac
14764      fi
14765	;;
14766      esac
14767    	lt_int_apple_cc_single_mod=no
14768    	output_verbose_link_cmd='echo'
14769    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14770    	  lt_int_apple_cc_single_mod=yes
14771    	fi
14772    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14773    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14774    	else
14775        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14776      fi
14777      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14778      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14779        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14780          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14781        else
14782          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14783        fi
14784          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14785      hardcode_direct_F77=no
14786      hardcode_automatic_F77=yes
14787      hardcode_shlibpath_var_F77=unsupported
14788      whole_archive_flag_spec_F77='-all_load $convenience'
14789      link_all_deplibs_F77=yes
14790    else
14791      ld_shlibs_F77=no
14792    fi
14793      ;;
14794
14795    dgux*)
14796      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14797      hardcode_libdir_flag_spec_F77='-L$libdir'
14798      hardcode_shlibpath_var_F77=no
14799      ;;
14800
14801    freebsd1*)
14802      ld_shlibs_F77=no
14803      ;;
14804
14805    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14806    # support.  Future versions do this automatically, but an explicit c++rt0.o
14807    # does not break anything, and helps significantly (at the cost of a little
14808    # extra space).
14809    freebsd2.2*)
14810      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14811      hardcode_libdir_flag_spec_F77='-R$libdir'
14812      hardcode_direct_F77=yes
14813      hardcode_shlibpath_var_F77=no
14814      ;;
14815
14816    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14817    freebsd2*)
14818      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14819      hardcode_direct_F77=yes
14820      hardcode_minus_L_F77=yes
14821      hardcode_shlibpath_var_F77=no
14822      ;;
14823
14824    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14825    freebsd* | kfreebsd*-gnu)
14826      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14827      hardcode_libdir_flag_spec_F77='-R$libdir'
14828      hardcode_direct_F77=yes
14829      hardcode_shlibpath_var_F77=no
14830      ;;
14831
14832    hpux9*)
14833      if test "$GCC" = yes; then
14834	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14835      else
14836	archive_cmds_F77='$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'
14837      fi
14838      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14839      hardcode_libdir_separator_F77=:
14840      hardcode_direct_F77=yes
14841
14842      # hardcode_minus_L: Not really in the search PATH,
14843      # but as the default location of the library.
14844      hardcode_minus_L_F77=yes
14845      export_dynamic_flag_spec_F77='${wl}-E'
14846      ;;
14847
14848    hpux10* | hpux11*)
14849      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14850	case "$host_cpu" in
14851	hppa*64*|ia64*)
14852	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14853	  ;;
14854	*)
14855	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14856	  ;;
14857	esac
14858      else
14859	case "$host_cpu" in
14860	hppa*64*|ia64*)
14861	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14862	  ;;
14863	*)
14864	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14865	  ;;
14866	esac
14867      fi
14868      if test "$with_gnu_ld" = no; then
14869	case "$host_cpu" in
14870	hppa*64*)
14871	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14872	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14873	  hardcode_libdir_separator_F77=:
14874	  hardcode_direct_F77=no
14875	  hardcode_shlibpath_var_F77=no
14876	  ;;
14877	ia64*)
14878	  hardcode_libdir_flag_spec_F77='-L$libdir'
14879	  hardcode_direct_F77=no
14880	  hardcode_shlibpath_var_F77=no
14881
14882	  # hardcode_minus_L: Not really in the search PATH,
14883	  # but as the default location of the library.
14884	  hardcode_minus_L_F77=yes
14885	  ;;
14886	*)
14887	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14888	  hardcode_libdir_separator_F77=:
14889	  hardcode_direct_F77=yes
14890	  export_dynamic_flag_spec_F77='${wl}-E'
14891
14892	  # hardcode_minus_L: Not really in the search PATH,
14893	  # but as the default location of the library.
14894	  hardcode_minus_L_F77=yes
14895	  ;;
14896	esac
14897      fi
14898      ;;
14899
14900    irix5* | irix6* | nonstopux*)
14901      if test "$GCC" = yes; then
14902	archive_cmds_F77='$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'
14903      else
14904	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14905	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14906      fi
14907      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14908      hardcode_libdir_separator_F77=:
14909      link_all_deplibs_F77=yes
14910      ;;
14911
14912    netbsd*)
14913      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14914	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14915      else
14916	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14917      fi
14918      hardcode_libdir_flag_spec_F77='-R$libdir'
14919      hardcode_direct_F77=yes
14920      hardcode_shlibpath_var_F77=no
14921      ;;
14922
14923    newsos6)
14924      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14925      hardcode_direct_F77=yes
14926      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14927      hardcode_libdir_separator_F77=:
14928      hardcode_shlibpath_var_F77=no
14929      ;;
14930
14931    openbsd*)
14932      hardcode_direct_F77=yes
14933      hardcode_shlibpath_var_F77=no
14934      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14935	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14936	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14937	export_dynamic_flag_spec_F77='${wl}-E'
14938      else
14939       case $host_os in
14940	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14941	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942	   hardcode_libdir_flag_spec_F77='-R$libdir'
14943	   ;;
14944	 *)
14945	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14946	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14947	   ;;
14948       esac
14949      fi
14950      ;;
14951
14952    os2*)
14953      hardcode_libdir_flag_spec_F77='-L$libdir'
14954      hardcode_minus_L_F77=yes
14955      allow_undefined_flag_F77=unsupported
14956      archive_cmds_F77='$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'
14957      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14958      ;;
14959
14960    osf3*)
14961      if test "$GCC" = yes; then
14962	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14963	archive_cmds_F77='$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'
14964      else
14965	allow_undefined_flag_F77=' -expect_unresolved \*'
14966	archive_cmds_F77='$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'
14967      fi
14968      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14969      hardcode_libdir_separator_F77=:
14970      ;;
14971
14972    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14973      if test "$GCC" = yes; then
14974	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14975	archive_cmds_F77='$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'
14976	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14977      else
14978	allow_undefined_flag_F77=' -expect_unresolved \*'
14979	archive_cmds_F77='$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'
14980	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14981	$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'
14982
14983	# Both c and cxx compiler support -rpath directly
14984	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14985      fi
14986      hardcode_libdir_separator_F77=:
14987      ;;
14988
14989    sco3.2v5*)
14990      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14991      hardcode_shlibpath_var_F77=no
14992      export_dynamic_flag_spec_F77='${wl}-Bexport'
14993      runpath_var=LD_RUN_PATH
14994      hardcode_runpath_var=yes
14995      ;;
14996
14997    solaris*)
14998      no_undefined_flag_F77=' -z text'
14999      if test "$GCC" = yes; then
15000	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15001	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15002	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15003      else
15004	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15006  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15007      fi
15008      hardcode_libdir_flag_spec_F77='-R$libdir'
15009      hardcode_shlibpath_var_F77=no
15010      case $host_os in
15011      solaris2.[0-5] | solaris2.[0-5].*) ;;
15012      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15013	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15014      esac
15015      link_all_deplibs_F77=yes
15016      ;;
15017
15018    sunos4*)
15019      if test "x$host_vendor" = xsequent; then
15020	# Use $CC to link under sequent, because it throws in some extra .o
15021	# files that make .init and .fini sections work.
15022	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15023      else
15024	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15025      fi
15026      hardcode_libdir_flag_spec_F77='-L$libdir'
15027      hardcode_direct_F77=yes
15028      hardcode_minus_L_F77=yes
15029      hardcode_shlibpath_var_F77=no
15030      ;;
15031
15032    sysv4)
15033      case $host_vendor in
15034	sni)
15035	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15036	  hardcode_direct_F77=yes # is this really true???
15037	;;
15038	siemens)
15039	  ## LD is ld it makes a PLAMLIB
15040	  ## CC just makes a GrossModule.
15041	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15042	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15043	  hardcode_direct_F77=no
15044        ;;
15045	motorola)
15046	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15047	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15048	;;
15049      esac
15050      runpath_var='LD_RUN_PATH'
15051      hardcode_shlibpath_var_F77=no
15052      ;;
15053
15054    sysv4.3*)
15055      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15056      hardcode_shlibpath_var_F77=no
15057      export_dynamic_flag_spec_F77='-Bexport'
15058      ;;
15059
15060    sysv4*MP*)
15061      if test -d /usr/nec; then
15062	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063	hardcode_shlibpath_var_F77=no
15064	runpath_var=LD_RUN_PATH
15065	hardcode_runpath_var=yes
15066	ld_shlibs_F77=yes
15067      fi
15068      ;;
15069
15070    sysv4.2uw2*)
15071      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15072      hardcode_direct_F77=yes
15073      hardcode_minus_L_F77=no
15074      hardcode_shlibpath_var_F77=no
15075      hardcode_runpath_var=yes
15076      runpath_var=LD_RUN_PATH
15077      ;;
15078
15079   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15080      no_undefined_flag_F77='${wl}-z ${wl}text'
15081      if test "$GCC" = yes; then
15082	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15083      else
15084	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15085      fi
15086      runpath_var='LD_RUN_PATH'
15087      hardcode_shlibpath_var_F77=no
15088      ;;
15089
15090    sysv5*)
15091      no_undefined_flag_F77=' -z text'
15092      # $CC -shared without GNU ld will not create a library from C++
15093      # object files and a static libstdc++, better avoid it by now
15094      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15095      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15096  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15097      hardcode_libdir_flag_spec_F77=
15098      hardcode_shlibpath_var_F77=no
15099      runpath_var='LD_RUN_PATH'
15100      ;;
15101
15102    uts4*)
15103      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104      hardcode_libdir_flag_spec_F77='-L$libdir'
15105      hardcode_shlibpath_var_F77=no
15106      ;;
15107
15108    *)
15109      ld_shlibs_F77=no
15110      ;;
15111    esac
15112  fi
15113
15114echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15115echo "${ECHO_T}$ld_shlibs_F77" >&6
15116test "$ld_shlibs_F77" = no && can_build_shared=no
15117
15118variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15119if test "$GCC" = yes; then
15120  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15121fi
15122
15123#
15124# Do we need to explicitly link libc?
15125#
15126case "x$archive_cmds_need_lc_F77" in
15127x|xyes)
15128  # Assume -lc should be added
15129  archive_cmds_need_lc_F77=yes
15130
15131  if test "$enable_shared" = yes && test "$GCC" = yes; then
15132    case $archive_cmds_F77 in
15133    *'~'*)
15134      # FIXME: we may have to deal with multi-command sequences.
15135      ;;
15136    '$CC '*)
15137      # Test whether the compiler implicitly links with -lc since on some
15138      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15139      # to ld, don't add -lc before -lgcc.
15140      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15141echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15142      $rm conftest*
15143      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15144
15145      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15146  (eval $ac_compile) 2>&5
15147  ac_status=$?
15148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149  (exit $ac_status); } 2>conftest.err; then
15150        soname=conftest
15151        lib=conftest
15152        libobjs=conftest.$ac_objext
15153        deplibs=
15154        wl=$lt_prog_compiler_wl_F77
15155        compiler_flags=-v
15156        linker_flags=-v
15157        verstring=
15158        output_objdir=.
15159        libname=conftest
15160        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15161        allow_undefined_flag_F77=
15162        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15163  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15164  ac_status=$?
15165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166  (exit $ac_status); }
15167        then
15168	  archive_cmds_need_lc_F77=no
15169        else
15170	  archive_cmds_need_lc_F77=yes
15171        fi
15172        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15173      else
15174        cat conftest.err 1>&5
15175      fi
15176      $rm conftest*
15177      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15178echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15179      ;;
15180    esac
15181  fi
15182  ;;
15183esac
15184
15185echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15186echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15187library_names_spec=
15188libname_spec='lib$name'
15189soname_spec=
15190shrext=".so"
15191postinstall_cmds=
15192postuninstall_cmds=
15193finish_cmds=
15194finish_eval=
15195shlibpath_var=
15196shlibpath_overrides_runpath=unknown
15197version_type=none
15198dynamic_linker="$host_os ld.so"
15199sys_lib_dlsearch_path_spec="/lib /usr/lib"
15200if test "$GCC" = yes; then
15201  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15202  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15203    # if the path contains ";" then we assume it to be the separator
15204    # otherwise default to the standard path separator (i.e. ":") - it is
15205    # assumed that no part of a normal pathname contains ";" but that should
15206    # okay in the real world where ";" in dirpaths is itself problematic.
15207    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15208  else
15209    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15210  fi
15211else
15212  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15213fi
15214need_lib_prefix=unknown
15215hardcode_into_libs=no
15216
15217# when you set need_version to no, make sure it does not cause -set_version
15218# flags to be left without arguments
15219need_version=unknown
15220
15221case $host_os in
15222aix3*)
15223  version_type=linux
15224  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15225  shlibpath_var=LIBPATH
15226
15227  # AIX 3 has no versioning support, so we append a major version to the name.
15228  soname_spec='${libname}${release}${shared_ext}$major'
15229  ;;
15230
15231aix4* | aix5*)
15232  version_type=linux
15233  need_lib_prefix=no
15234  need_version=no
15235  hardcode_into_libs=yes
15236  if test "$host_cpu" = ia64; then
15237    # AIX 5 supports IA64
15238    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15239    shlibpath_var=LD_LIBRARY_PATH
15240  else
15241    # With GCC up to 2.95.x, collect2 would create an import file
15242    # for dependence libraries.  The import file would start with
15243    # the line `#! .'.  This would cause the generated library to
15244    # depend on `.', always an invalid library.  This was fixed in
15245    # development snapshots of GCC prior to 3.0.
15246    case $host_os in
15247      aix4 | aix4.[01] | aix4.[01].*)
15248      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15249	   echo ' yes '
15250	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15251	:
15252      else
15253	can_build_shared=no
15254      fi
15255      ;;
15256    esac
15257    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15258    # soname into executable. Probably we can add versioning support to
15259    # collect2, so additional links can be useful in future.
15260    if test "$aix_use_runtimelinking" = yes; then
15261      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15262      # instead of lib<name>.a to let people know that these are not
15263      # typical AIX shared libraries.
15264      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265    else
15266      # We preserve .a as extension for shared libraries through AIX4.2
15267      # and later when we are not doing run time linking.
15268      library_names_spec='${libname}${release}.a $libname.a'
15269      soname_spec='${libname}${release}${shared_ext}$major'
15270    fi
15271    shlibpath_var=LIBPATH
15272  fi
15273  ;;
15274
15275amigaos*)
15276  library_names_spec='$libname.ixlibrary $libname.a'
15277  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15278  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'
15279  ;;
15280
15281beos*)
15282  library_names_spec='${libname}${shared_ext}'
15283  dynamic_linker="$host_os ld.so"
15284  shlibpath_var=LIBRARY_PATH
15285  ;;
15286
15287bsdi4*)
15288  version_type=linux
15289  need_version=no
15290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291  soname_spec='${libname}${release}${shared_ext}$major'
15292  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15293  shlibpath_var=LD_LIBRARY_PATH
15294  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15295  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15296  # the default ld.so.conf also contains /usr/contrib/lib and
15297  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15298  # libtool to hard-code these into programs
15299  ;;
15300
15301cygwin* | mingw* | pw32*)
15302  version_type=windows
15303  shrext=".dll"
15304  need_version=no
15305  need_lib_prefix=no
15306
15307  case $GCC,$host_os in
15308  yes,cygwin* | yes,mingw* | yes,pw32*)
15309    library_names_spec='$libname.dll.a'
15310    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15311    postinstall_cmds='base_file=`basename \${file}`~
15312      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15313      dldir=$destdir/`dirname \$dlpath`~
15314      test -d \$dldir || mkdir -p \$dldir~
15315      $install_prog $dir/$dlname \$dldir/$dlname'
15316    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15317      dlpath=$dir/\$dldll~
15318       $rm \$dlpath'
15319    shlibpath_overrides_runpath=yes
15320
15321    case $host_os in
15322    cygwin*)
15323      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15324      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15325      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15326      ;;
15327    mingw*)
15328      # MinGW DLLs use traditional 'lib' prefix
15329      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15331      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15332        # It is most probably a Windows format PATH printed by
15333        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15334        # path with ; separators, and with drive letters. We can handle the
15335        # drive letters (cygwin fileutils understands them), so leave them,
15336        # especially as we might pass files found there to a mingw objdump,
15337        # which wouldn't understand a cygwinified path. Ahh.
15338        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15339      else
15340        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15341      fi
15342      ;;
15343    pw32*)
15344      # pw32 DLLs use 'pw' prefix rather than 'lib'
15345      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15346      ;;
15347    esac
15348    ;;
15349
15350  *)
15351    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15352    ;;
15353  esac
15354  dynamic_linker='Win32 ld.exe'
15355  # FIXME: first we should search . and the directory the executable is in
15356  shlibpath_var=PATH
15357  ;;
15358
15359darwin* | rhapsody*)
15360  dynamic_linker="$host_os dyld"
15361  version_type=darwin
15362  need_lib_prefix=no
15363  need_version=no
15364  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15365  soname_spec='${libname}${release}${major}$shared_ext'
15366  shlibpath_overrides_runpath=yes
15367  shlibpath_var=DYLD_LIBRARY_PATH
15368  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15369  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15370  if test "$GCC" = yes; then
15371    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15372  else
15373    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15374  fi
15375  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15376  ;;
15377
15378dgux*)
15379  version_type=linux
15380  need_lib_prefix=no
15381  need_version=no
15382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15383  soname_spec='${libname}${release}${shared_ext}$major'
15384  shlibpath_var=LD_LIBRARY_PATH
15385  ;;
15386
15387freebsd1*)
15388  dynamic_linker=no
15389  ;;
15390
15391kfreebsd*-gnu)
15392  version_type=linux
15393  need_lib_prefix=no
15394  need_version=no
15395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15396  soname_spec='${libname}${release}${shared_ext}$major'
15397  shlibpath_var=LD_LIBRARY_PATH
15398  shlibpath_overrides_runpath=no
15399  hardcode_into_libs=yes
15400  dynamic_linker='GNU ld.so'
15401  ;;
15402
15403freebsd*)
15404  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15405  version_type=freebsd-$objformat
15406  case $version_type in
15407    freebsd-elf*)
15408      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15409      need_version=no
15410      need_lib_prefix=no
15411      ;;
15412    freebsd-*)
15413      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15414      need_version=yes
15415      ;;
15416  esac
15417  shlibpath_var=LD_LIBRARY_PATH
15418  case $host_os in
15419  freebsd2*)
15420    shlibpath_overrides_runpath=yes
15421    ;;
15422  freebsd3.01* | freebsdelf3.01*)
15423    shlibpath_overrides_runpath=yes
15424    hardcode_into_libs=yes
15425    ;;
15426  *) # from 3.2 on
15427    shlibpath_overrides_runpath=no
15428    hardcode_into_libs=yes
15429    ;;
15430  esac
15431  ;;
15432
15433gnu*)
15434  version_type=linux
15435  need_lib_prefix=no
15436  need_version=no
15437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15438  soname_spec='${libname}${release}${shared_ext}$major'
15439  shlibpath_var=LD_LIBRARY_PATH
15440  hardcode_into_libs=yes
15441  ;;
15442
15443hpux9* | hpux10* | hpux11*)
15444  # Give a soname corresponding to the major version so that dld.sl refuses to
15445  # link against other versions.
15446  version_type=sunos
15447  need_lib_prefix=no
15448  need_version=no
15449  case "$host_cpu" in
15450  ia64*)
15451    shrext='.so'
15452    hardcode_into_libs=yes
15453    dynamic_linker="$host_os dld.so"
15454    shlibpath_var=LD_LIBRARY_PATH
15455    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15456    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457    soname_spec='${libname}${release}${shared_ext}$major'
15458    if test "X$HPUX_IA64_MODE" = X32; then
15459      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15460    else
15461      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15462    fi
15463    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15464    ;;
15465   hppa*64*)
15466     shrext='.sl'
15467     hardcode_into_libs=yes
15468     dynamic_linker="$host_os dld.sl"
15469     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15470     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15471     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472     soname_spec='${libname}${release}${shared_ext}$major'
15473     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15474     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15475     ;;
15476   *)
15477    shrext='.sl'
15478    dynamic_linker="$host_os dld.sl"
15479    shlibpath_var=SHLIB_PATH
15480    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15481    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482    soname_spec='${libname}${release}${shared_ext}$major'
15483    ;;
15484  esac
15485  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15486  postinstall_cmds='chmod 555 $lib'
15487  ;;
15488
15489irix5* | irix6* | nonstopux*)
15490  case $host_os in
15491    nonstopux*) version_type=nonstopux ;;
15492    *)
15493	if test "$lt_cv_prog_gnu_ld" = yes; then
15494		version_type=linux
15495	else
15496		version_type=irix
15497	fi ;;
15498  esac
15499  need_lib_prefix=no
15500  need_version=no
15501  soname_spec='${libname}${release}${shared_ext}$major'
15502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15503  case $host_os in
15504  irix5* | nonstopux*)
15505    libsuff= shlibsuff=
15506    ;;
15507  *)
15508    case $LD in # libtool.m4 will add one of these switches to LD
15509    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15510      libsuff= shlibsuff= libmagic=32-bit;;
15511    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15512      libsuff=32 shlibsuff=N32 libmagic=N32;;
15513    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15514      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15515    *) libsuff= shlibsuff= libmagic=never-match;;
15516    esac
15517    ;;
15518  esac
15519  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15520  shlibpath_overrides_runpath=no
15521  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15522  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15523  hardcode_into_libs=yes
15524  ;;
15525
15526# No shared lib support for Linux oldld, aout, or coff.
15527linux*oldld* | linux*aout* | linux*coff*)
15528  dynamic_linker=no
15529  ;;
15530
15531# This must be Linux ELF.
15532linux*)
15533  version_type=linux
15534  need_lib_prefix=no
15535  need_version=no
15536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537  soname_spec='${libname}${release}${shared_ext}$major'
15538  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15539  shlibpath_var=LD_LIBRARY_PATH
15540  shlibpath_overrides_runpath=no
15541  # This implies no fast_install, which is unacceptable.
15542  # Some rework will be needed to allow for fast_install
15543  # before this can be enabled.
15544  hardcode_into_libs=yes
15545
15546  # Append ld.so.conf contents to the search path
15547  if test -f /etc/ld.so.conf; then
15548    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
15549    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
15550  fi
15551
15552  # We used to test for /lib/ld.so.1 and disable shared libraries on
15553  # powerpc, because MkLinux only supported shared libraries with the
15554  # GNU dynamic linker.  Since this was broken with cross compilers,
15555  # most powerpc-linux boxes support dynamic linking these days and
15556  # people can always --disable-shared, the test was removed, and we
15557  # assume the GNU/Linux dynamic linker is in use.
15558  dynamic_linker='GNU/Linux ld.so'
15559  ;;
15560
15561knetbsd*-gnu)
15562  version_type=linux
15563  need_lib_prefix=no
15564  need_version=no
15565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15566  soname_spec='${libname}${release}${shared_ext}$major'
15567  shlibpath_var=LD_LIBRARY_PATH
15568  shlibpath_overrides_runpath=no
15569  hardcode_into_libs=yes
15570  dynamic_linker='GNU ld.so'
15571  ;;
15572
15573netbsd*)
15574  version_type=sunos
15575  need_lib_prefix=no
15576  need_version=no
15577  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15578    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15579    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15580    dynamic_linker='NetBSD (a.out) ld.so'
15581  else
15582    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15583    soname_spec='${libname}${release}${shared_ext}$major'
15584    dynamic_linker='NetBSD ld.elf_so'
15585  fi
15586  shlibpath_var=LD_LIBRARY_PATH
15587  shlibpath_overrides_runpath=yes
15588  hardcode_into_libs=yes
15589  ;;
15590
15591newsos6)
15592  version_type=linux
15593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594  shlibpath_var=LD_LIBRARY_PATH
15595  shlibpath_overrides_runpath=yes
15596  ;;
15597
15598nto-qnx*)
15599  version_type=linux
15600  need_lib_prefix=no
15601  need_version=no
15602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603  soname_spec='${libname}${release}${shared_ext}$major'
15604  shlibpath_var=LD_LIBRARY_PATH
15605  shlibpath_overrides_runpath=yes
15606  ;;
15607
15608openbsd*)
15609  version_type=sunos
15610  need_lib_prefix=no
15611  need_version=yes
15612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15613  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15614  shlibpath_var=LD_LIBRARY_PATH
15615  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15616    case $host_os in
15617      openbsd2.[89] | openbsd2.[89].*)
15618	shlibpath_overrides_runpath=no
15619	;;
15620      *)
15621	shlibpath_overrides_runpath=yes
15622	;;
15623      esac
15624  else
15625    shlibpath_overrides_runpath=yes
15626  fi
15627  ;;
15628
15629os2*)
15630  libname_spec='$name'
15631  shrext=".dll"
15632  need_lib_prefix=no
15633  library_names_spec='$libname${shared_ext} $libname.a'
15634  dynamic_linker='OS/2 ld.exe'
15635  shlibpath_var=LIBPATH
15636  ;;
15637
15638osf3* | osf4* | osf5*)
15639  version_type=osf
15640  need_lib_prefix=no
15641  need_version=no
15642  soname_spec='${libname}${release}${shared_ext}$major'
15643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644  shlibpath_var=LD_LIBRARY_PATH
15645  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15646  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15647  ;;
15648
15649sco3.2v5*)
15650  version_type=osf
15651  soname_spec='${libname}${release}${shared_ext}$major'
15652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653  shlibpath_var=LD_LIBRARY_PATH
15654  ;;
15655
15656solaris*)
15657  version_type=linux
15658  need_lib_prefix=no
15659  need_version=no
15660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15661  soname_spec='${libname}${release}${shared_ext}$major'
15662  shlibpath_var=LD_LIBRARY_PATH
15663  shlibpath_overrides_runpath=yes
15664  hardcode_into_libs=yes
15665  # ldd complains unless libraries are executable
15666  postinstall_cmds='chmod +x $lib'
15667  ;;
15668
15669sunos4*)
15670  version_type=sunos
15671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15672  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15673  shlibpath_var=LD_LIBRARY_PATH
15674  shlibpath_overrides_runpath=yes
15675  if test "$with_gnu_ld" = yes; then
15676    need_lib_prefix=no
15677  fi
15678  need_version=yes
15679  ;;
15680
15681sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15682  version_type=linux
15683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684  soname_spec='${libname}${release}${shared_ext}$major'
15685  shlibpath_var=LD_LIBRARY_PATH
15686  case $host_vendor in
15687    sni)
15688      shlibpath_overrides_runpath=no
15689      need_lib_prefix=no
15690      export_dynamic_flag_spec='${wl}-Blargedynsym'
15691      runpath_var=LD_RUN_PATH
15692      ;;
15693    siemens)
15694      need_lib_prefix=no
15695      ;;
15696    motorola)
15697      need_lib_prefix=no
15698      need_version=no
15699      shlibpath_overrides_runpath=no
15700      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15701      ;;
15702  esac
15703  ;;
15704
15705sysv4*MP*)
15706  if test -d /usr/nec ;then
15707    version_type=linux
15708    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15709    soname_spec='$libname${shared_ext}.$major'
15710    shlibpath_var=LD_LIBRARY_PATH
15711  fi
15712  ;;
15713
15714uts4*)
15715  version_type=linux
15716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717  soname_spec='${libname}${release}${shared_ext}$major'
15718  shlibpath_var=LD_LIBRARY_PATH
15719  ;;
15720
15721*)
15722  dynamic_linker=no
15723  ;;
15724esac
15725echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15726echo "${ECHO_T}$dynamic_linker" >&6
15727test "$dynamic_linker" = no && can_build_shared=no
15728
15729echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15730echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15731hardcode_action_F77=
15732if test -n "$hardcode_libdir_flag_spec_F77" || \
15733   test -n "$runpath_var F77" || \
15734   test "X$hardcode_automatic_F77"="Xyes" ; then
15735
15736  # We can hardcode non-existant directories.
15737  if test "$hardcode_direct_F77" != no &&
15738     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15739     # have to relink, otherwise we might link with an installed library
15740     # when we should be linking with a yet-to-be-installed one
15741     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15742     test "$hardcode_minus_L_F77" != no; then
15743    # Linking always hardcodes the temporary library directory.
15744    hardcode_action_F77=relink
15745  else
15746    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15747    hardcode_action_F77=immediate
15748  fi
15749else
15750  # We cannot hardcode anything, or else we can only hardcode existing
15751  # directories.
15752  hardcode_action_F77=unsupported
15753fi
15754echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15755echo "${ECHO_T}$hardcode_action_F77" >&6
15756
15757if test "$hardcode_action_F77" = relink; then
15758  # Fast installation is not supported
15759  enable_fast_install=no
15760elif test "$shlibpath_overrides_runpath" = yes ||
15761     test "$enable_shared" = no; then
15762  # Fast installation is not necessary
15763  enable_fast_install=needless
15764fi
15765
15766striplib=
15767old_striplib=
15768echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15769echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15770if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15771  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15772  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15773  echo "$as_me:$LINENO: result: yes" >&5
15774echo "${ECHO_T}yes" >&6
15775else
15776# FIXME - insert some real tests, host_os isn't really good enough
15777  case $host_os in
15778   darwin*)
15779       if test -n "$STRIP" ; then
15780         striplib="$STRIP -x"
15781         echo "$as_me:$LINENO: result: yes" >&5
15782echo "${ECHO_T}yes" >&6
15783       else
15784  echo "$as_me:$LINENO: result: no" >&5
15785echo "${ECHO_T}no" >&6
15786fi
15787       ;;
15788   *)
15789  echo "$as_me:$LINENO: result: no" >&5
15790echo "${ECHO_T}no" >&6
15791    ;;
15792  esac
15793fi
15794
15795
15796
15797# The else clause should only fire when bootstrapping the
15798# libtool distribution, otherwise you forgot to ship ltmain.sh
15799# with your package, and you will get complaints that there are
15800# no rules to generate ltmain.sh.
15801if test -f "$ltmain"; then
15802  # See if we are running on zsh, and set the options which allow our commands through
15803  # without removal of \ escapes.
15804  if test -n "${ZSH_VERSION+set}" ; then
15805    setopt NO_GLOB_SUBST
15806  fi
15807  # Now quote all the things that may contain metacharacters while being
15808  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15809  # variables and quote the copies for generation of the libtool script.
15810  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15811    SED SHELL STRIP \
15812    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15813    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15814    deplibs_check_method reload_flag reload_cmds need_locks \
15815    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15816    lt_cv_sys_global_symbol_to_c_name_address \
15817    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15818    old_postinstall_cmds old_postuninstall_cmds \
15819    compiler_F77 \
15820    CC_F77 \
15821    LD_F77 \
15822    lt_prog_compiler_wl_F77 \
15823    lt_prog_compiler_pic_F77 \
15824    lt_prog_compiler_static_F77 \
15825    lt_prog_compiler_no_builtin_flag_F77 \
15826    export_dynamic_flag_spec_F77 \
15827    thread_safe_flag_spec_F77 \
15828    whole_archive_flag_spec_F77 \
15829    enable_shared_with_static_runtimes_F77 \
15830    old_archive_cmds_F77 \
15831    old_archive_from_new_cmds_F77 \
15832    predep_objects_F77 \
15833    postdep_objects_F77 \
15834    predeps_F77 \
15835    postdeps_F77 \
15836    compiler_lib_search_path_F77 \
15837    archive_cmds_F77 \
15838    archive_expsym_cmds_F77 \
15839    postinstall_cmds_F77 \
15840    postuninstall_cmds_F77 \
15841    old_archive_from_expsyms_cmds_F77 \
15842    allow_undefined_flag_F77 \
15843    no_undefined_flag_F77 \
15844    export_symbols_cmds_F77 \
15845    hardcode_libdir_flag_spec_F77 \
15846    hardcode_libdir_flag_spec_ld_F77 \
15847    hardcode_libdir_separator_F77 \
15848    hardcode_automatic_F77 \
15849    module_cmds_F77 \
15850    module_expsym_cmds_F77 \
15851    lt_cv_prog_compiler_c_o_F77 \
15852    exclude_expsyms_F77 \
15853    include_expsyms_F77; do
15854
15855    case $var in
15856    old_archive_cmds_F77 | \
15857    old_archive_from_new_cmds_F77 | \
15858    archive_cmds_F77 | \
15859    archive_expsym_cmds_F77 | \
15860    module_cmds_F77 | \
15861    module_expsym_cmds_F77 | \
15862    old_archive_from_expsyms_cmds_F77 | \
15863    export_symbols_cmds_F77 | \
15864    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15865    postinstall_cmds | postuninstall_cmds | \
15866    old_postinstall_cmds | old_postuninstall_cmds | \
15867    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15868      # Double-quote double-evaled strings.
15869      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15870      ;;
15871    *)
15872      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15873      ;;
15874    esac
15875  done
15876
15877  case $lt_echo in
15878  *'\$0 --fallback-echo"')
15879    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15880    ;;
15881  esac
15882
15883cfgfile="$ofile"
15884
15885  cat <<__EOF__ >> "$cfgfile"
15886# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15887
15888# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15889
15890# Shell to use when invoking shell scripts.
15891SHELL=$lt_SHELL
15892
15893# Whether or not to build shared libraries.
15894build_libtool_libs=$enable_shared
15895
15896# Whether or not to build static libraries.
15897build_old_libs=$enable_static
15898
15899# Whether or not to add -lc for building shared libraries.
15900build_libtool_need_lc=$archive_cmds_need_lc_F77
15901
15902# Whether or not to disallow shared libs when runtime libs are static
15903allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15904
15905# Whether or not to optimize for fast installation.
15906fast_install=$enable_fast_install
15907
15908# The host system.
15909host_alias=$host_alias
15910host=$host
15911
15912# An echo program that does not interpret backslashes.
15913echo=$lt_echo
15914
15915# The archiver.
15916AR=$lt_AR
15917AR_FLAGS=$lt_AR_FLAGS
15918
15919# A C compiler.
15920LTCC=$lt_LTCC
15921
15922# A language-specific compiler.
15923CC=$lt_compiler_F77
15924
15925# Is the compiler the GNU C compiler?
15926with_gcc=$GCC_F77
15927
15928# An ERE matcher.
15929EGREP=$lt_EGREP
15930
15931# The linker used to build libraries.
15932LD=$lt_LD_F77
15933
15934# Whether we need hard or soft links.
15935LN_S=$lt_LN_S
15936
15937# A BSD-compatible nm program.
15938NM=$lt_NM
15939
15940# A symbol stripping program
15941STRIP=$lt_STRIP
15942
15943# Used to examine libraries when file_magic_cmd begins "file"
15944MAGIC_CMD=$MAGIC_CMD
15945
15946# Used on cygwin: DLL creation program.
15947DLLTOOL="$DLLTOOL"
15948
15949# Used on cygwin: object dumper.
15950OBJDUMP="$OBJDUMP"
15951
15952# Used on cygwin: assembler.
15953AS="$AS"
15954
15955# The name of the directory that contains temporary libtool files.
15956objdir=$objdir
15957
15958# How to create reloadable object files.
15959reload_flag=$lt_reload_flag
15960reload_cmds=$lt_reload_cmds
15961
15962# How to pass a linker flag through the compiler.
15963wl=$lt_lt_prog_compiler_wl_F77
15964
15965# Object file suffix (normally "o").
15966objext="$ac_objext"
15967
15968# Old archive suffix (normally "a").
15969libext="$libext"
15970
15971# Shared library suffix (normally ".so").
15972shrext='$shrext'
15973
15974# Executable file suffix (normally "").
15975exeext="$exeext"
15976
15977# Additional compiler flags for building library objects.
15978pic_flag=$lt_lt_prog_compiler_pic_F77
15979pic_mode=$pic_mode
15980
15981# What is the maximum length of a command?
15982max_cmd_len=$lt_cv_sys_max_cmd_len
15983
15984# Does compiler simultaneously support -c and -o options?
15985compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15986
15987# Must we lock files when doing compilation ?
15988need_locks=$lt_need_locks
15989
15990# Do we need the lib prefix for modules?
15991need_lib_prefix=$need_lib_prefix
15992
15993# Do we need a version for libraries?
15994need_version=$need_version
15995
15996# Whether dlopen is supported.
15997dlopen_support=$enable_dlopen
15998
15999# Whether dlopen of programs is supported.
16000dlopen_self=$enable_dlopen_self
16001
16002# Whether dlopen of statically linked programs is supported.
16003dlopen_self_static=$enable_dlopen_self_static
16004
16005# Compiler flag to prevent dynamic linking.
16006link_static_flag=$lt_lt_prog_compiler_static_F77
16007
16008# Compiler flag to turn off builtin functions.
16009no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16010
16011# Compiler flag to allow reflexive dlopens.
16012export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16013
16014# Compiler flag to generate shared objects directly from archives.
16015whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16016
16017# Compiler flag to generate thread-safe objects.
16018thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16019
16020# Library versioning type.
16021version_type=$version_type
16022
16023# Format of library name prefix.
16024libname_spec=$lt_libname_spec
16025
16026# List of archive names.  First name is the real one, the rest are links.
16027# The last name is the one that the linker finds with -lNAME.
16028library_names_spec=$lt_library_names_spec
16029
16030# The coded name of the library, if different from the real name.
16031soname_spec=$lt_soname_spec
16032
16033# Commands used to build and install an old-style archive.
16034RANLIB=$lt_RANLIB
16035old_archive_cmds=$lt_old_archive_cmds_F77
16036old_postinstall_cmds=$lt_old_postinstall_cmds
16037old_postuninstall_cmds=$lt_old_postuninstall_cmds
16038
16039# Create an old-style archive from a shared archive.
16040old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16041
16042# Create a temporary old-style archive to link instead of a shared archive.
16043old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16044
16045# Commands used to build and install a shared archive.
16046archive_cmds=$lt_archive_cmds_F77
16047archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16048postinstall_cmds=$lt_postinstall_cmds
16049postuninstall_cmds=$lt_postuninstall_cmds
16050
16051# Commands used to build a loadable module (assumed same as above if empty)
16052module_cmds=$lt_module_cmds_F77
16053module_expsym_cmds=$lt_module_expsym_cmds_F77
16054
16055# Commands to strip libraries.
16056old_striplib=$lt_old_striplib
16057striplib=$lt_striplib
16058
16059# Dependencies to place before the objects being linked to create a
16060# shared library.
16061predep_objects=$lt_predep_objects_F77
16062
16063# Dependencies to place after the objects being linked to create a
16064# shared library.
16065postdep_objects=$lt_postdep_objects_F77
16066
16067# Dependencies to place before the objects being linked to create a
16068# shared library.
16069predeps=$lt_predeps_F77
16070
16071# Dependencies to place after the objects being linked to create a
16072# shared library.
16073postdeps=$lt_postdeps_F77
16074
16075# The library search path used internally by the compiler when linking
16076# a shared library.
16077compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16078
16079# Method to check whether dependent libraries are shared objects.
16080deplibs_check_method=$lt_deplibs_check_method
16081
16082# Command to use when deplibs_check_method == file_magic.
16083file_magic_cmd=$lt_file_magic_cmd
16084
16085# Flag that allows shared libraries with undefined symbols to be built.
16086allow_undefined_flag=$lt_allow_undefined_flag_F77
16087
16088# Flag that forces no undefined symbols.
16089no_undefined_flag=$lt_no_undefined_flag_F77
16090
16091# Commands used to finish a libtool library installation in a directory.
16092finish_cmds=$lt_finish_cmds
16093
16094# Same as above, but a single script fragment to be evaled but not shown.
16095finish_eval=$lt_finish_eval
16096
16097# Take the output of nm and produce a listing of raw symbols and C names.
16098global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16099
16100# Transform the output of nm in a proper C declaration
16101global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16102
16103# Transform the output of nm in a C name address pair
16104global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16105
16106# This is the shared library runtime path variable.
16107runpath_var=$runpath_var
16108
16109# This is the shared library path variable.
16110shlibpath_var=$shlibpath_var
16111
16112# Is shlibpath searched before the hard-coded library search path?
16113shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16114
16115# How to hardcode a shared library path into an executable.
16116hardcode_action=$hardcode_action_F77
16117
16118# Whether we should hardcode library paths into libraries.
16119hardcode_into_libs=$hardcode_into_libs
16120
16121# Flag to hardcode \$libdir into a binary during linking.
16122# This must work even if \$libdir does not exist.
16123hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16124
16125# If ld is used when linking, flag to hardcode \$libdir into
16126# a binary during linking. This must work even if \$libdir does
16127# not exist.
16128hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16129
16130# Whether we need a single -rpath flag with a separated argument.
16131hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16132
16133# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16134# resulting binary.
16135hardcode_direct=$hardcode_direct_F77
16136
16137# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16138# resulting binary.
16139hardcode_minus_L=$hardcode_minus_L_F77
16140
16141# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16142# the resulting binary.
16143hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16144
16145# Set to yes if building a shared library automatically hardcodes DIR into the library
16146# and all subsequent libraries and executables linked against it.
16147hardcode_automatic=$hardcode_automatic_F77
16148
16149# Variables whose values should be saved in libtool wrapper scripts and
16150# restored at relink time.
16151variables_saved_for_relink="$variables_saved_for_relink"
16152
16153# Whether libtool must link a program against all its dependency libraries.
16154link_all_deplibs=$link_all_deplibs_F77
16155
16156# Compile-time system search path for libraries
16157sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16158
16159# Run-time system search path for libraries
16160sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16161
16162# Fix the shell variable \$srcfile for the compiler.
16163fix_srcfile_path="$fix_srcfile_path_F77"
16164
16165# Set to yes if exported symbols are required.
16166always_export_symbols=$always_export_symbols_F77
16167
16168# The commands to list exported symbols.
16169export_symbols_cmds=$lt_export_symbols_cmds_F77
16170
16171# The commands to extract the exported symbol list from a shared archive.
16172extract_expsyms_cmds=$lt_extract_expsyms_cmds
16173
16174# Symbols that should not be listed in the preloaded symbols.
16175exclude_expsyms=$lt_exclude_expsyms_F77
16176
16177# Symbols that must always be exported.
16178include_expsyms=$lt_include_expsyms_F77
16179
16180# ### END LIBTOOL TAG CONFIG: $tagname
16181
16182__EOF__
16183
16184
16185else
16186  # If there is no Makefile yet, we rely on a make rule to execute
16187  # `config.status --recheck' to rerun these tests and create the
16188  # libtool script then.
16189  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16190  if test -f "$ltmain_in"; then
16191    test -f Makefile && make "$ltmain"
16192  fi
16193fi
16194
16195
16196ac_ext=c
16197ac_cpp='$CPP $CPPFLAGS'
16198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16200ac_compiler_gnu=$ac_cv_c_compiler_gnu
16201
16202CC="$lt_save_CC"
16203
16204	else
16205	  tagname=""
16206	fi
16207	;;
16208
16209      GCJ)
16210	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16211
16212
16213
16214# Source file extension for Java test sources.
16215ac_ext=java
16216
16217# Object file extension for compiled Java test sources.
16218objext=o
16219objext_GCJ=$objext
16220
16221# Code to be used in simple compile tests
16222lt_simple_compile_test_code="class foo {}\n"
16223
16224# Code to be used in simple link tests
16225lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16226
16227# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16228
16229# If no C compiler was specified, use CC.
16230LTCC=${LTCC-"$CC"}
16231
16232# Allow CC to be a program name with arguments.
16233compiler=$CC
16234
16235
16236# Allow CC to be a program name with arguments.
16237lt_save_CC="$CC"
16238CC=${GCJ-"gcj"}
16239compiler=$CC
16240compiler_GCJ=$CC
16241
16242# GCJ did not exist at the time GCC didn't implicitly link libc in.
16243archive_cmds_need_lc_GCJ=no
16244
16245
16246lt_prog_compiler_no_builtin_flag_GCJ=
16247
16248if test "$GCC" = yes; then
16249  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16250
16251
16252echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16253echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16254if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16255  echo $ECHO_N "(cached) $ECHO_C" >&6
16256else
16257  lt_cv_prog_compiler_rtti_exceptions=no
16258  ac_outfile=conftest.$ac_objext
16259   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16260   lt_compiler_flag="-fno-rtti -fno-exceptions"
16261   # Insert the option either (1) after the last *FLAGS variable, or
16262   # (2) before a word containing "conftest.", or (3) at the end.
16263   # Note that $ac_compile itself does not contain backslashes and begins
16264   # with a dollar sign (not a hyphen), so the echo should work correctly.
16265   # The option is referenced via a variable to avoid confusing sed.
16266   lt_compile=`echo "$ac_compile" | $SED \
16267   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16268   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16269   -e 's:$: $lt_compiler_flag:'`
16270   (eval echo "\"\$as_me:16270: $lt_compile\"" >&5)
16271   (eval "$lt_compile" 2>conftest.err)
16272   ac_status=$?
16273   cat conftest.err >&5
16274   echo "$as_me:16274: \$? = $ac_status" >&5
16275   if (exit $ac_status) && test -s "$ac_outfile"; then
16276     # The compiler can only warn and ignore the option if not recognized
16277     # So say no if there are warnings
16278     if test ! -s conftest.err; then
16279       lt_cv_prog_compiler_rtti_exceptions=yes
16280     fi
16281   fi
16282   $rm conftest*
16283
16284fi
16285echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16286echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16287
16288if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16289    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16290else
16291    :
16292fi
16293
16294fi
16295
16296lt_prog_compiler_wl_GCJ=
16297lt_prog_compiler_pic_GCJ=
16298lt_prog_compiler_static_GCJ=
16299
16300echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16301echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16302
16303  if test "$GCC" = yes; then
16304    lt_prog_compiler_wl_GCJ='-Wl,'
16305    lt_prog_compiler_static_GCJ='-static'
16306
16307    case $host_os in
16308      aix*)
16309      # All AIX code is PIC.
16310      if test "$host_cpu" = ia64; then
16311	# AIX 5 now supports IA64 processor
16312	lt_prog_compiler_static_GCJ='-Bstatic'
16313      fi
16314      ;;
16315
16316    amigaos*)
16317      # FIXME: we need at least 68020 code to build shared libraries, but
16318      # adding the `-m68020' flag to GCC prevents building anything better,
16319      # like `-m68040'.
16320      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16321      ;;
16322
16323    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16324      # PIC is the default for these OSes.
16325      ;;
16326
16327    mingw* | pw32* | os2*)
16328      # This hack is so that the source file can tell whether it is being
16329      # built for inclusion in a dll (and should export symbols for example).
16330      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16331      ;;
16332
16333    darwin* | rhapsody*)
16334      # PIC is the default on this platform
16335      # Common symbols not allowed in MH_DYLIB files
16336      lt_prog_compiler_pic_GCJ='-fno-common'
16337      ;;
16338
16339    msdosdjgpp*)
16340      # Just because we use GCC doesn't mean we suddenly get shared libraries
16341      # on systems that don't support them.
16342      lt_prog_compiler_can_build_shared_GCJ=no
16343      enable_shared=no
16344      ;;
16345
16346    sysv4*MP*)
16347      if test -d /usr/nec; then
16348	lt_prog_compiler_pic_GCJ=-Kconform_pic
16349      fi
16350      ;;
16351
16352    hpux*)
16353      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16354      # not for PA HP-UX.
16355      case "$host_cpu" in
16356      hppa*64*|ia64*)
16357	# +Z the default
16358	;;
16359      *)
16360	lt_prog_compiler_pic_GCJ='-fPIC'
16361	;;
16362      esac
16363      ;;
16364
16365    *)
16366      lt_prog_compiler_pic_GCJ='-fPIC'
16367      ;;
16368    esac
16369  else
16370    # PORTME Check for flag to pass linker flags through the system compiler.
16371    case $host_os in
16372    aix*)
16373      lt_prog_compiler_wl_GCJ='-Wl,'
16374      if test "$host_cpu" = ia64; then
16375	# AIX 5 now supports IA64 processor
16376	lt_prog_compiler_static_GCJ='-Bstatic'
16377      else
16378	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16379      fi
16380      ;;
16381
16382    mingw* | pw32* | os2*)
16383      # This hack is so that the source file can tell whether it is being
16384      # built for inclusion in a dll (and should export symbols for example).
16385      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16386      ;;
16387
16388    hpux9* | hpux10* | hpux11*)
16389      lt_prog_compiler_wl_GCJ='-Wl,'
16390      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16391      # not for PA HP-UX.
16392      case "$host_cpu" in
16393      hppa*64*|ia64*)
16394	# +Z the default
16395	;;
16396      *)
16397	lt_prog_compiler_pic_GCJ='+Z'
16398	;;
16399      esac
16400      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16401      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16402      ;;
16403
16404    irix5* | irix6* | nonstopux*)
16405      lt_prog_compiler_wl_GCJ='-Wl,'
16406      # PIC (with -KPIC) is the default.
16407      lt_prog_compiler_static_GCJ='-non_shared'
16408      ;;
16409
16410    newsos6)
16411      lt_prog_compiler_pic_GCJ='-KPIC'
16412      lt_prog_compiler_static_GCJ='-Bstatic'
16413      ;;
16414
16415    linux*)
16416      case $CC in
16417      icc* | ecc*)
16418	lt_prog_compiler_wl_GCJ='-Wl,'
16419	lt_prog_compiler_pic_GCJ='-KPIC'
16420	lt_prog_compiler_static_GCJ='-static'
16421        ;;
16422      ccc*)
16423        lt_prog_compiler_wl_GCJ='-Wl,'
16424        # All Alpha code is PIC.
16425        lt_prog_compiler_static_GCJ='-non_shared'
16426        ;;
16427      esac
16428      ;;
16429
16430    osf3* | osf4* | osf5*)
16431      lt_prog_compiler_wl_GCJ='-Wl,'
16432      # All OSF/1 code is PIC.
16433      lt_prog_compiler_static_GCJ='-non_shared'
16434      ;;
16435
16436    sco3.2v5*)
16437      lt_prog_compiler_pic_GCJ='-Kpic'
16438      lt_prog_compiler_static_GCJ='-dn'
16439      ;;
16440
16441    solaris*)
16442      lt_prog_compiler_wl_GCJ='-Wl,'
16443      lt_prog_compiler_pic_GCJ='-KPIC'
16444      lt_prog_compiler_static_GCJ='-Bstatic'
16445      ;;
16446
16447    sunos4*)
16448      lt_prog_compiler_wl_GCJ='-Qoption ld '
16449      lt_prog_compiler_pic_GCJ='-PIC'
16450      lt_prog_compiler_static_GCJ='-Bstatic'
16451      ;;
16452
16453    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16454      lt_prog_compiler_wl_GCJ='-Wl,'
16455      lt_prog_compiler_pic_GCJ='-KPIC'
16456      lt_prog_compiler_static_GCJ='-Bstatic'
16457      ;;
16458
16459    sysv4*MP*)
16460      if test -d /usr/nec ;then
16461	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16462	lt_prog_compiler_static_GCJ='-Bstatic'
16463      fi
16464      ;;
16465
16466    uts4*)
16467      lt_prog_compiler_pic_GCJ='-pic'
16468      lt_prog_compiler_static_GCJ='-Bstatic'
16469      ;;
16470
16471    *)
16472      lt_prog_compiler_can_build_shared_GCJ=no
16473      ;;
16474    esac
16475  fi
16476
16477echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16478echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16479
16480#
16481# Check to make sure the PIC flag actually works.
16482#
16483if test -n "$lt_prog_compiler_pic_GCJ"; then
16484
16485echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16486echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16487if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16488  echo $ECHO_N "(cached) $ECHO_C" >&6
16489else
16490  lt_prog_compiler_pic_works_GCJ=no
16491  ac_outfile=conftest.$ac_objext
16492   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16493   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16494   # Insert the option either (1) after the last *FLAGS variable, or
16495   # (2) before a word containing "conftest.", or (3) at the end.
16496   # Note that $ac_compile itself does not contain backslashes and begins
16497   # with a dollar sign (not a hyphen), so the echo should work correctly.
16498   # The option is referenced via a variable to avoid confusing sed.
16499   lt_compile=`echo "$ac_compile" | $SED \
16500   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16501   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16502   -e 's:$: $lt_compiler_flag:'`
16503   (eval echo "\"\$as_me:16503: $lt_compile\"" >&5)
16504   (eval "$lt_compile" 2>conftest.err)
16505   ac_status=$?
16506   cat conftest.err >&5
16507   echo "$as_me:16507: \$? = $ac_status" >&5
16508   if (exit $ac_status) && test -s "$ac_outfile"; then
16509     # The compiler can only warn and ignore the option if not recognized
16510     # So say no if there are warnings
16511     if test ! -s conftest.err; then
16512       lt_prog_compiler_pic_works_GCJ=yes
16513     fi
16514   fi
16515   $rm conftest*
16516
16517fi
16518echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16519echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16520
16521if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16522    case $lt_prog_compiler_pic_GCJ in
16523     "" | " "*) ;;
16524     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16525     esac
16526else
16527    lt_prog_compiler_pic_GCJ=
16528     lt_prog_compiler_can_build_shared_GCJ=no
16529fi
16530
16531fi
16532case "$host_os" in
16533  # For platforms which do not support PIC, -DPIC is meaningless:
16534  *djgpp*)
16535    lt_prog_compiler_pic_GCJ=
16536    ;;
16537  *)
16538    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16539    ;;
16540esac
16541
16542echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16543echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16544if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16545  echo $ECHO_N "(cached) $ECHO_C" >&6
16546else
16547  lt_cv_prog_compiler_c_o_GCJ=no
16548   $rm -r conftest 2>/dev/null
16549   mkdir conftest
16550   cd conftest
16551   mkdir out
16552   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16553
16554   lt_compiler_flag="-o out/conftest2.$ac_objext"
16555   # Insert the option either (1) after the last *FLAGS variable, or
16556   # (2) before a word containing "conftest.", or (3) at the end.
16557   # Note that $ac_compile itself does not contain backslashes and begins
16558   # with a dollar sign (not a hyphen), so the echo should work correctly.
16559   lt_compile=`echo "$ac_compile" | $SED \
16560   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16561   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16562   -e 's:$: $lt_compiler_flag:'`
16563   (eval echo "\"\$as_me:16563: $lt_compile\"" >&5)
16564   (eval "$lt_compile" 2>out/conftest.err)
16565   ac_status=$?
16566   cat out/conftest.err >&5
16567   echo "$as_me:16567: \$? = $ac_status" >&5
16568   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16569   then
16570     # The compiler can only warn and ignore the option if not recognized
16571     # So say no if there are warnings
16572     if test ! -s out/conftest.err; then
16573       lt_cv_prog_compiler_c_o_GCJ=yes
16574     fi
16575   fi
16576   chmod u+w .
16577   $rm conftest*
16578   # SGI C++ compiler will create directory out/ii_files/ for
16579   # template instantiation
16580   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16581   $rm out/* && rmdir out
16582   cd ..
16583   rmdir conftest
16584   $rm conftest*
16585
16586fi
16587echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16588echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16589
16590
16591hard_links="nottested"
16592if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16593  # do not overwrite the value of need_locks provided by the user
16594  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16595echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16596  hard_links=yes
16597  $rm conftest*
16598  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16599  touch conftest.a
16600  ln conftest.a conftest.b 2>&5 || hard_links=no
16601  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16602  echo "$as_me:$LINENO: result: $hard_links" >&5
16603echo "${ECHO_T}$hard_links" >&6
16604  if test "$hard_links" = no; then
16605    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16606echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16607    need_locks=warn
16608  fi
16609else
16610  need_locks=no
16611fi
16612
16613echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16614echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16615
16616  runpath_var=
16617  allow_undefined_flag_GCJ=
16618  enable_shared_with_static_runtimes_GCJ=no
16619  archive_cmds_GCJ=
16620  archive_expsym_cmds_GCJ=
16621  old_archive_From_new_cmds_GCJ=
16622  old_archive_from_expsyms_cmds_GCJ=
16623  export_dynamic_flag_spec_GCJ=
16624  whole_archive_flag_spec_GCJ=
16625  thread_safe_flag_spec_GCJ=
16626  hardcode_libdir_flag_spec_GCJ=
16627  hardcode_libdir_flag_spec_ld_GCJ=
16628  hardcode_libdir_separator_GCJ=
16629  hardcode_direct_GCJ=no
16630  hardcode_minus_L_GCJ=no
16631  hardcode_shlibpath_var_GCJ=unsupported
16632  link_all_deplibs_GCJ=unknown
16633  hardcode_automatic_GCJ=no
16634  module_cmds_GCJ=
16635  module_expsym_cmds_GCJ=
16636  always_export_symbols_GCJ=no
16637  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16638  # include_expsyms should be a list of space-separated symbols to be *always*
16639  # included in the symbol list
16640  include_expsyms_GCJ=
16641  # exclude_expsyms can be an extended regexp of symbols to exclude
16642  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16643  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16644  # as well as any symbol that contains `d'.
16645  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16646  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16647  # platforms (ab)use it in PIC code, but their linkers get confused if
16648  # the symbol is explicitly referenced.  Since portable code cannot
16649  # rely on this symbol name, it's probably fine to never include it in
16650  # preloaded symbol tables.
16651  extract_expsyms_cmds=
16652
16653  case $host_os in
16654  cygwin* | mingw* | pw32*)
16655    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16656    # When not using gcc, we currently assume that we are using
16657    # Microsoft Visual C++.
16658    if test "$GCC" != yes; then
16659      with_gnu_ld=no
16660    fi
16661    ;;
16662  openbsd*)
16663    with_gnu_ld=no
16664    ;;
16665  esac
16666
16667  ld_shlibs_GCJ=yes
16668  if test "$with_gnu_ld" = yes; then
16669    # If archive_cmds runs LD, not CC, wlarc should be empty
16670    wlarc='${wl}'
16671
16672    # See if GNU ld supports shared libraries.
16673    case $host_os in
16674    aix3* | aix4* | aix5*)
16675      # On AIX/PPC, the GNU linker is very broken
16676      if test "$host_cpu" != ia64; then
16677	ld_shlibs_GCJ=no
16678	cat <<EOF 1>&2
16679
16680*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16681*** to be unable to reliably create shared libraries on AIX.
16682*** Therefore, libtool is disabling shared libraries support.  If you
16683*** really care for shared libraries, you may want to modify your PATH
16684*** so that a non-GNU linker is found, and then restart.
16685
16686EOF
16687      fi
16688      ;;
16689
16690    amigaos*)
16691      archive_cmds_GCJ='$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)'
16692      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16693      hardcode_minus_L_GCJ=yes
16694
16695      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16696      # that the semantics of dynamic libraries on AmigaOS, at least up
16697      # to version 4, is to share data among multiple programs linked
16698      # with the same dynamic library.  Since this doesn't match the
16699      # behavior of shared libraries on other platforms, we can't use
16700      # them.
16701      ld_shlibs_GCJ=no
16702      ;;
16703
16704    beos*)
16705      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16706	allow_undefined_flag_GCJ=unsupported
16707	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16708	# support --undefined.  This deserves some investigation.  FIXME
16709	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16710      else
16711	ld_shlibs_GCJ=no
16712      fi
16713      ;;
16714
16715    cygwin* | mingw* | pw32*)
16716      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16717      # as there is no search path for DLLs.
16718      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16719      allow_undefined_flag_GCJ=unsupported
16720      always_export_symbols_GCJ=no
16721      enable_shared_with_static_runtimes_GCJ=yes
16722      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16723
16724      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16725        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16726	# If the export-symbols file already is a .def file (1st line
16727	# is EXPORTS), use it as is; otherwise, prepend...
16728	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16729	  cp $export_symbols $output_objdir/$soname.def;
16730	else
16731	  echo EXPORTS > $output_objdir/$soname.def;
16732	  cat $export_symbols >> $output_objdir/$soname.def;
16733	fi~
16734	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16735      else
16736	ld_shlibs=no
16737      fi
16738      ;;
16739
16740    netbsd*)
16741      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16742	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16743	wlarc=
16744      else
16745	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16746	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16747      fi
16748      ;;
16749
16750    solaris* | sysv5*)
16751      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16752	ld_shlibs_GCJ=no
16753	cat <<EOF 1>&2
16754
16755*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16756*** create shared libraries on Solaris systems.  Therefore, libtool
16757*** is disabling shared libraries support.  We urge you to upgrade GNU
16758*** binutils to release 2.9.1 or newer.  Another option is to modify
16759*** your PATH or compiler configuration so that the native linker is
16760*** used, and then restart.
16761
16762EOF
16763      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16764	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16765	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16766      else
16767	ld_shlibs_GCJ=no
16768      fi
16769      ;;
16770
16771    sunos4*)
16772      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16773      wlarc=
16774      hardcode_direct_GCJ=yes
16775      hardcode_shlibpath_var_GCJ=no
16776      ;;
16777
16778  linux*)
16779    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16780        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16781	archive_cmds_GCJ="$tmp_archive_cmds"
16782      supports_anon_versioning=no
16783      case `$LD -v 2>/dev/null` in
16784        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16785        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16786        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16787        *\ 2.11.*) ;; # other 2.11 versions
16788        *) supports_anon_versioning=yes ;;
16789      esac
16790      if test $supports_anon_versioning = yes; then
16791        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16792cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16793$echo "local: *; };" >> $output_objdir/$libname.ver~
16794        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16795      else
16796        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16797      fi
16798    else
16799      ld_shlibs_GCJ=no
16800    fi
16801    ;;
16802
16803    *)
16804      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16805	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16806	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16807      else
16808	ld_shlibs_GCJ=no
16809      fi
16810      ;;
16811    esac
16812
16813    if test "$ld_shlibs_GCJ" = yes; then
16814      runpath_var=LD_RUN_PATH
16815      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16816      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16817      # ancient GNU ld didn't support --whole-archive et. al.
16818      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16819 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16820      else
16821  	whole_archive_flag_spec_GCJ=
16822      fi
16823    fi
16824  else
16825    # PORTME fill in a description of your system's linker (not GNU ld)
16826    case $host_os in
16827    aix3*)
16828      allow_undefined_flag_GCJ=unsupported
16829      always_export_symbols_GCJ=yes
16830      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16831      # Note: this linker hardcodes the directories in LIBPATH if there
16832      # are no directories specified by -L.
16833      hardcode_minus_L_GCJ=yes
16834      if test "$GCC" = yes && test -z "$link_static_flag"; then
16835	# Neither direct hardcoding nor static linking is supported with a
16836	# broken collect2.
16837	hardcode_direct_GCJ=unsupported
16838      fi
16839      ;;
16840
16841    aix4* | aix5*)
16842      if test "$host_cpu" = ia64; then
16843	# On IA64, the linker does run time linking by default, so we don't
16844	# have to do anything special.
16845	aix_use_runtimelinking=no
16846	exp_sym_flag='-Bexport'
16847	no_entry_flag=""
16848      else
16849	# If we're using GNU nm, then we don't want the "-C" option.
16850	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16851	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16852	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16853	else
16854	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16855	fi
16856	aix_use_runtimelinking=no
16857
16858	# Test if we are trying to use run time linking or normal
16859	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16860	# need to do runtime linking.
16861	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16862	  for ld_flag in $LDFLAGS; do
16863  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16864  	    aix_use_runtimelinking=yes
16865  	    break
16866  	  fi
16867	  done
16868	esac
16869
16870	exp_sym_flag='-bexport'
16871	no_entry_flag='-bnoentry'
16872      fi
16873
16874      # When large executables or shared objects are built, AIX ld can
16875      # have problems creating the table of contents.  If linking a library
16876      # or program results in "error TOC overflow" add -mminimal-toc to
16877      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16878      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16879
16880      archive_cmds_GCJ=''
16881      hardcode_direct_GCJ=yes
16882      hardcode_libdir_separator_GCJ=':'
16883      link_all_deplibs_GCJ=yes
16884
16885      if test "$GCC" = yes; then
16886	case $host_os in aix4.012|aix4.012.*)
16887	# We only want to do this on AIX 4.2 and lower, the check
16888	# below for broken collect2 doesn't work under 4.3+
16889	  collect2name=`${CC} -print-prog-name=collect2`
16890	  if test -f "$collect2name" && \
16891  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16892	  then
16893  	  # We have reworked collect2
16894  	  hardcode_direct_GCJ=yes
16895	  else
16896  	  # We have old collect2
16897  	  hardcode_direct_GCJ=unsupported
16898  	  # It fails to find uninstalled libraries when the uninstalled
16899  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16900  	  # to unsupported forces relinking
16901  	  hardcode_minus_L_GCJ=yes
16902  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16903  	  hardcode_libdir_separator_GCJ=
16904	  fi
16905	esac
16906	shared_flag='-shared'
16907      else
16908	# not using gcc
16909	if test "$host_cpu" = ia64; then
16910  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16911  	# chokes on -Wl,-G. The following line is correct:
16912	  shared_flag='-G'
16913	else
16914  	if test "$aix_use_runtimelinking" = yes; then
16915	    shared_flag='${wl}-G'
16916	  else
16917	    shared_flag='${wl}-bM:SRE'
16918  	fi
16919	fi
16920      fi
16921
16922      # It seems that -bexpall does not export symbols beginning with
16923      # underscore (_), so it is better to generate a list of symbols to export.
16924      always_export_symbols_GCJ=yes
16925      if test "$aix_use_runtimelinking" = yes; then
16926	# Warning - without using the other runtime loading flags (-brtl),
16927	# -berok will link without error, but may produce a broken library.
16928	allow_undefined_flag_GCJ='-berok'
16929       # Determine the default libpath from the value encoded in an empty executable.
16930       cat >conftest.$ac_ext <<_ACEOF
16931/* confdefs.h.  */
16932_ACEOF
16933cat confdefs.h >>conftest.$ac_ext
16934cat >>conftest.$ac_ext <<_ACEOF
16935/* end confdefs.h.  */
16936
16937int
16938main ()
16939{
16940
16941  ;
16942  return 0;
16943}
16944_ACEOF
16945rm -f conftest.$ac_objext conftest$ac_exeext
16946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16947  (eval $ac_link) 2>conftest.er1
16948  ac_status=$?
16949  grep -v '^ *+' conftest.er1 >conftest.err
16950  rm -f conftest.er1
16951  cat conftest.err >&5
16952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953  (exit $ac_status); } &&
16954	 { ac_try='test -z "$ac_c_werror_flag"
16955			 || test ! -s conftest.err'
16956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957  (eval $ac_try) 2>&5
16958  ac_status=$?
16959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960  (exit $ac_status); }; } &&
16961	 { ac_try='test -s conftest$ac_exeext'
16962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963  (eval $ac_try) 2>&5
16964  ac_status=$?
16965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966  (exit $ac_status); }; }; then
16967
16968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16969}'`
16970# Check for a 64-bit object if we didn't find anything.
16971if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16972}'`; fi
16973else
16974  echo "$as_me: failed program was:" >&5
16975sed 's/^/| /' conftest.$ac_ext >&5
16976
16977fi
16978rm -f conftest.err conftest.$ac_objext \
16979      conftest$ac_exeext conftest.$ac_ext
16980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16981
16982       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16983	archive_expsym_cmds_GCJ="\$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"
16984       else
16985	if test "$host_cpu" = ia64; then
16986	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16987	  allow_undefined_flag_GCJ="-z nodefs"
16988	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16989	else
16990	 # Determine the default libpath from the value encoded in an empty executable.
16991	 cat >conftest.$ac_ext <<_ACEOF
16992/* confdefs.h.  */
16993_ACEOF
16994cat confdefs.h >>conftest.$ac_ext
16995cat >>conftest.$ac_ext <<_ACEOF
16996/* end confdefs.h.  */
16997
16998int
16999main ()
17000{
17001
17002  ;
17003  return 0;
17004}
17005_ACEOF
17006rm -f conftest.$ac_objext conftest$ac_exeext
17007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17008  (eval $ac_link) 2>conftest.er1
17009  ac_status=$?
17010  grep -v '^ *+' conftest.er1 >conftest.err
17011  rm -f conftest.er1
17012  cat conftest.err >&5
17013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014  (exit $ac_status); } &&
17015	 { ac_try='test -z "$ac_c_werror_flag"
17016			 || test ! -s conftest.err'
17017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018  (eval $ac_try) 2>&5
17019  ac_status=$?
17020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021  (exit $ac_status); }; } &&
17022	 { ac_try='test -s conftest$ac_exeext'
17023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024  (eval $ac_try) 2>&5
17025  ac_status=$?
17026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027  (exit $ac_status); }; }; then
17028
17029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17030}'`
17031# Check for a 64-bit object if we didn't find anything.
17032if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17033}'`; fi
17034else
17035  echo "$as_me: failed program was:" >&5
17036sed 's/^/| /' conftest.$ac_ext >&5
17037
17038fi
17039rm -f conftest.err conftest.$ac_objext \
17040      conftest$ac_exeext conftest.$ac_ext
17041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17042
17043	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17044	  # Warning - without using the other run time loading flags,
17045	  # -berok will link without error, but may produce a broken library.
17046	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17047	  allow_undefined_flag_GCJ=' ${wl}-berok'
17048	  # -bexpall does not export symbols beginning with underscore (_)
17049	  always_export_symbols_GCJ=yes
17050	  # Exported symbols can be pulled into shared objects from archives
17051	  whole_archive_flag_spec_GCJ=' '
17052	  archive_cmds_need_lc_GCJ=yes
17053	  # This is similar to how AIX traditionally builds it's shared libraries.
17054	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17055	fi
17056      fi
17057      ;;
17058
17059    amigaos*)
17060      archive_cmds_GCJ='$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)'
17061      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17062      hardcode_minus_L_GCJ=yes
17063      # see comment about different semantics on the GNU ld section
17064      ld_shlibs_GCJ=no
17065      ;;
17066
17067    bsdi4*)
17068      export_dynamic_flag_spec_GCJ=-rdynamic
17069      ;;
17070
17071    cygwin* | mingw* | pw32*)
17072      # When not using gcc, we currently assume that we are using
17073      # Microsoft Visual C++.
17074      # hardcode_libdir_flag_spec is actually meaningless, as there is
17075      # no search path for DLLs.
17076      hardcode_libdir_flag_spec_GCJ=' '
17077      allow_undefined_flag_GCJ=unsupported
17078      # Tell ltmain to make .lib files, not .a files.
17079      libext=lib
17080      # Tell ltmain to make .dll files, not .so files.
17081      shrext=".dll"
17082      # FIXME: Setting linknames here is a bad hack.
17083      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17084      # The linker will automatically build a .lib file if we build a DLL.
17085      old_archive_From_new_cmds_GCJ='true'
17086      # FIXME: Should let the user specify the lib program.
17087      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17088      fix_srcfile_path='`cygpath -w "$srcfile"`'
17089      enable_shared_with_static_runtimes_GCJ=yes
17090      ;;
17091
17092    darwin* | rhapsody*)
17093    if test "$GXX" = yes ; then
17094      archive_cmds_need_lc_GCJ=no
17095      case "$host_os" in
17096      rhapsody* | darwin1.[012])
17097	allow_undefined_flag_GCJ='-undefined suppress'
17098	;;
17099      *) # Darwin 1.3 on
17100      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17101      	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17102      else
17103        case ${MACOSX_DEPLOYMENT_TARGET} in
17104          10.[012])
17105            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17106            ;;
17107          10.*)
17108            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17109            ;;
17110        esac
17111      fi
17112	;;
17113      esac
17114    	lt_int_apple_cc_single_mod=no
17115    	output_verbose_link_cmd='echo'
17116    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17117    	  lt_int_apple_cc_single_mod=yes
17118    	fi
17119    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17120    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17121    	else
17122        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17123      fi
17124      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17125      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17126        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17127          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17128        else
17129          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17130        fi
17131          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17132      hardcode_direct_GCJ=no
17133      hardcode_automatic_GCJ=yes
17134      hardcode_shlibpath_var_GCJ=unsupported
17135      whole_archive_flag_spec_GCJ='-all_load $convenience'
17136      link_all_deplibs_GCJ=yes
17137    else
17138      ld_shlibs_GCJ=no
17139    fi
17140      ;;
17141
17142    dgux*)
17143      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17144      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17145      hardcode_shlibpath_var_GCJ=no
17146      ;;
17147
17148    freebsd1*)
17149      ld_shlibs_GCJ=no
17150      ;;
17151
17152    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17153    # support.  Future versions do this automatically, but an explicit c++rt0.o
17154    # does not break anything, and helps significantly (at the cost of a little
17155    # extra space).
17156    freebsd2.2*)
17157      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17158      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17159      hardcode_direct_GCJ=yes
17160      hardcode_shlibpath_var_GCJ=no
17161      ;;
17162
17163    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17164    freebsd2*)
17165      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17166      hardcode_direct_GCJ=yes
17167      hardcode_minus_L_GCJ=yes
17168      hardcode_shlibpath_var_GCJ=no
17169      ;;
17170
17171    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17172    freebsd* | kfreebsd*-gnu)
17173      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17174      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17175      hardcode_direct_GCJ=yes
17176      hardcode_shlibpath_var_GCJ=no
17177      ;;
17178
17179    hpux9*)
17180      if test "$GCC" = yes; then
17181	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17182      else
17183	archive_cmds_GCJ='$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'
17184      fi
17185      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17186      hardcode_libdir_separator_GCJ=:
17187      hardcode_direct_GCJ=yes
17188
17189      # hardcode_minus_L: Not really in the search PATH,
17190      # but as the default location of the library.
17191      hardcode_minus_L_GCJ=yes
17192      export_dynamic_flag_spec_GCJ='${wl}-E'
17193      ;;
17194
17195    hpux10* | hpux11*)
17196      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17197	case "$host_cpu" in
17198	hppa*64*|ia64*)
17199	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17200	  ;;
17201	*)
17202	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17203	  ;;
17204	esac
17205      else
17206	case "$host_cpu" in
17207	hppa*64*|ia64*)
17208	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17209	  ;;
17210	*)
17211	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17212	  ;;
17213	esac
17214      fi
17215      if test "$with_gnu_ld" = no; then
17216	case "$host_cpu" in
17217	hppa*64*)
17218	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17219	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17220	  hardcode_libdir_separator_GCJ=:
17221	  hardcode_direct_GCJ=no
17222	  hardcode_shlibpath_var_GCJ=no
17223	  ;;
17224	ia64*)
17225	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17226	  hardcode_direct_GCJ=no
17227	  hardcode_shlibpath_var_GCJ=no
17228
17229	  # hardcode_minus_L: Not really in the search PATH,
17230	  # but as the default location of the library.
17231	  hardcode_minus_L_GCJ=yes
17232	  ;;
17233	*)
17234	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17235	  hardcode_libdir_separator_GCJ=:
17236	  hardcode_direct_GCJ=yes
17237	  export_dynamic_flag_spec_GCJ='${wl}-E'
17238
17239	  # hardcode_minus_L: Not really in the search PATH,
17240	  # but as the default location of the library.
17241	  hardcode_minus_L_GCJ=yes
17242	  ;;
17243	esac
17244      fi
17245      ;;
17246
17247    irix5* | irix6* | nonstopux*)
17248      if test "$GCC" = yes; then
17249	archive_cmds_GCJ='$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'
17250      else
17251	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17252	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17253      fi
17254      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17255      hardcode_libdir_separator_GCJ=:
17256      link_all_deplibs_GCJ=yes
17257      ;;
17258
17259    netbsd*)
17260      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17261	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17262      else
17263	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17264      fi
17265      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17266      hardcode_direct_GCJ=yes
17267      hardcode_shlibpath_var_GCJ=no
17268      ;;
17269
17270    newsos6)
17271      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17272      hardcode_direct_GCJ=yes
17273      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17274      hardcode_libdir_separator_GCJ=:
17275      hardcode_shlibpath_var_GCJ=no
17276      ;;
17277
17278    openbsd*)
17279      hardcode_direct_GCJ=yes
17280      hardcode_shlibpath_var_GCJ=no
17281      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17282	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17283	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17284	export_dynamic_flag_spec_GCJ='${wl}-E'
17285      else
17286       case $host_os in
17287	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17288	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17289	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17290	   ;;
17291	 *)
17292	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17293	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17294	   ;;
17295       esac
17296      fi
17297      ;;
17298
17299    os2*)
17300      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17301      hardcode_minus_L_GCJ=yes
17302      allow_undefined_flag_GCJ=unsupported
17303      archive_cmds_GCJ='$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'
17304      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17305      ;;
17306
17307    osf3*)
17308      if test "$GCC" = yes; then
17309	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17310	archive_cmds_GCJ='$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'
17311      else
17312	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17313	archive_cmds_GCJ='$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'
17314      fi
17315      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17316      hardcode_libdir_separator_GCJ=:
17317      ;;
17318
17319    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17320      if test "$GCC" = yes; then
17321	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17322	archive_cmds_GCJ='$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'
17323	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17324      else
17325	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17326	archive_cmds_GCJ='$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'
17327	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17328	$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'
17329
17330	# Both c and cxx compiler support -rpath directly
17331	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17332      fi
17333      hardcode_libdir_separator_GCJ=:
17334      ;;
17335
17336    sco3.2v5*)
17337      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17338      hardcode_shlibpath_var_GCJ=no
17339      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17340      runpath_var=LD_RUN_PATH
17341      hardcode_runpath_var=yes
17342      ;;
17343
17344    solaris*)
17345      no_undefined_flag_GCJ=' -z text'
17346      if test "$GCC" = yes; then
17347	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17348	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17349	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17350      else
17351	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17352	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17353  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17354      fi
17355      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17356      hardcode_shlibpath_var_GCJ=no
17357      case $host_os in
17358      solaris2.[0-5] | solaris2.[0-5].*) ;;
17359      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17360	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17361      esac
17362      link_all_deplibs_GCJ=yes
17363      ;;
17364
17365    sunos4*)
17366      if test "x$host_vendor" = xsequent; then
17367	# Use $CC to link under sequent, because it throws in some extra .o
17368	# files that make .init and .fini sections work.
17369	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17370      else
17371	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17372      fi
17373      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17374      hardcode_direct_GCJ=yes
17375      hardcode_minus_L_GCJ=yes
17376      hardcode_shlibpath_var_GCJ=no
17377      ;;
17378
17379    sysv4)
17380      case $host_vendor in
17381	sni)
17382	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17383	  hardcode_direct_GCJ=yes # is this really true???
17384	;;
17385	siemens)
17386	  ## LD is ld it makes a PLAMLIB
17387	  ## CC just makes a GrossModule.
17388	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17389	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17390	  hardcode_direct_GCJ=no
17391        ;;
17392	motorola)
17393	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17394	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17395	;;
17396      esac
17397      runpath_var='LD_RUN_PATH'
17398      hardcode_shlibpath_var_GCJ=no
17399      ;;
17400
17401    sysv4.3*)
17402      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403      hardcode_shlibpath_var_GCJ=no
17404      export_dynamic_flag_spec_GCJ='-Bexport'
17405      ;;
17406
17407    sysv4*MP*)
17408      if test -d /usr/nec; then
17409	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17410	hardcode_shlibpath_var_GCJ=no
17411	runpath_var=LD_RUN_PATH
17412	hardcode_runpath_var=yes
17413	ld_shlibs_GCJ=yes
17414      fi
17415      ;;
17416
17417    sysv4.2uw2*)
17418      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17419      hardcode_direct_GCJ=yes
17420      hardcode_minus_L_GCJ=no
17421      hardcode_shlibpath_var_GCJ=no
17422      hardcode_runpath_var=yes
17423      runpath_var=LD_RUN_PATH
17424      ;;
17425
17426   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17427      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17428      if test "$GCC" = yes; then
17429	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17430      else
17431	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17432      fi
17433      runpath_var='LD_RUN_PATH'
17434      hardcode_shlibpath_var_GCJ=no
17435      ;;
17436
17437    sysv5*)
17438      no_undefined_flag_GCJ=' -z text'
17439      # $CC -shared without GNU ld will not create a library from C++
17440      # object files and a static libstdc++, better avoid it by now
17441      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17442      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17443  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17444      hardcode_libdir_flag_spec_GCJ=
17445      hardcode_shlibpath_var_GCJ=no
17446      runpath_var='LD_RUN_PATH'
17447      ;;
17448
17449    uts4*)
17450      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17451      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17452      hardcode_shlibpath_var_GCJ=no
17453      ;;
17454
17455    *)
17456      ld_shlibs_GCJ=no
17457      ;;
17458    esac
17459  fi
17460
17461echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17462echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17463test "$ld_shlibs_GCJ" = no && can_build_shared=no
17464
17465variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17466if test "$GCC" = yes; then
17467  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17468fi
17469
17470#
17471# Do we need to explicitly link libc?
17472#
17473case "x$archive_cmds_need_lc_GCJ" in
17474x|xyes)
17475  # Assume -lc should be added
17476  archive_cmds_need_lc_GCJ=yes
17477
17478  if test "$enable_shared" = yes && test "$GCC" = yes; then
17479    case $archive_cmds_GCJ in
17480    *'~'*)
17481      # FIXME: we may have to deal with multi-command sequences.
17482      ;;
17483    '$CC '*)
17484      # Test whether the compiler implicitly links with -lc since on some
17485      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17486      # to ld, don't add -lc before -lgcc.
17487      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17488echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17489      $rm conftest*
17490      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17491
17492      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17493  (eval $ac_compile) 2>&5
17494  ac_status=$?
17495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496  (exit $ac_status); } 2>conftest.err; then
17497        soname=conftest
17498        lib=conftest
17499        libobjs=conftest.$ac_objext
17500        deplibs=
17501        wl=$lt_prog_compiler_wl_GCJ
17502        compiler_flags=-v
17503        linker_flags=-v
17504        verstring=
17505        output_objdir=.
17506        libname=conftest
17507        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17508        allow_undefined_flag_GCJ=
17509        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17510  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17511  ac_status=$?
17512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513  (exit $ac_status); }
17514        then
17515	  archive_cmds_need_lc_GCJ=no
17516        else
17517	  archive_cmds_need_lc_GCJ=yes
17518        fi
17519        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17520      else
17521        cat conftest.err 1>&5
17522      fi
17523      $rm conftest*
17524      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17525echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17526      ;;
17527    esac
17528  fi
17529  ;;
17530esac
17531
17532echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17533echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17534library_names_spec=
17535libname_spec='lib$name'
17536soname_spec=
17537shrext=".so"
17538postinstall_cmds=
17539postuninstall_cmds=
17540finish_cmds=
17541finish_eval=
17542shlibpath_var=
17543shlibpath_overrides_runpath=unknown
17544version_type=none
17545dynamic_linker="$host_os ld.so"
17546sys_lib_dlsearch_path_spec="/lib /usr/lib"
17547if test "$GCC" = yes; then
17548  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17549  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17550    # if the path contains ";" then we assume it to be the separator
17551    # otherwise default to the standard path separator (i.e. ":") - it is
17552    # assumed that no part of a normal pathname contains ";" but that should
17553    # okay in the real world where ";" in dirpaths is itself problematic.
17554    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17555  else
17556    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17557  fi
17558else
17559  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17560fi
17561need_lib_prefix=unknown
17562hardcode_into_libs=no
17563
17564# when you set need_version to no, make sure it does not cause -set_version
17565# flags to be left without arguments
17566need_version=unknown
17567
17568case $host_os in
17569aix3*)
17570  version_type=linux
17571  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17572  shlibpath_var=LIBPATH
17573
17574  # AIX 3 has no versioning support, so we append a major version to the name.
17575  soname_spec='${libname}${release}${shared_ext}$major'
17576  ;;
17577
17578aix4* | aix5*)
17579  version_type=linux
17580  need_lib_prefix=no
17581  need_version=no
17582  hardcode_into_libs=yes
17583  if test "$host_cpu" = ia64; then
17584    # AIX 5 supports IA64
17585    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17586    shlibpath_var=LD_LIBRARY_PATH
17587  else
17588    # With GCC up to 2.95.x, collect2 would create an import file
17589    # for dependence libraries.  The import file would start with
17590    # the line `#! .'.  This would cause the generated library to
17591    # depend on `.', always an invalid library.  This was fixed in
17592    # development snapshots of GCC prior to 3.0.
17593    case $host_os in
17594      aix4 | aix4.[01] | aix4.[01].*)
17595      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17596	   echo ' yes '
17597	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17598	:
17599      else
17600	can_build_shared=no
17601      fi
17602      ;;
17603    esac
17604    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17605    # soname into executable. Probably we can add versioning support to
17606    # collect2, so additional links can be useful in future.
17607    if test "$aix_use_runtimelinking" = yes; then
17608      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17609      # instead of lib<name>.a to let people know that these are not
17610      # typical AIX shared libraries.
17611      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612    else
17613      # We preserve .a as extension for shared libraries through AIX4.2
17614      # and later when we are not doing run time linking.
17615      library_names_spec='${libname}${release}.a $libname.a'
17616      soname_spec='${libname}${release}${shared_ext}$major'
17617    fi
17618    shlibpath_var=LIBPATH
17619  fi
17620  ;;
17621
17622amigaos*)
17623  library_names_spec='$libname.ixlibrary $libname.a'
17624  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17625  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'
17626  ;;
17627
17628beos*)
17629  library_names_spec='${libname}${shared_ext}'
17630  dynamic_linker="$host_os ld.so"
17631  shlibpath_var=LIBRARY_PATH
17632  ;;
17633
17634bsdi4*)
17635  version_type=linux
17636  need_version=no
17637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17638  soname_spec='${libname}${release}${shared_ext}$major'
17639  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17640  shlibpath_var=LD_LIBRARY_PATH
17641  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17642  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17643  # the default ld.so.conf also contains /usr/contrib/lib and
17644  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17645  # libtool to hard-code these into programs
17646  ;;
17647
17648cygwin* | mingw* | pw32*)
17649  version_type=windows
17650  shrext=".dll"
17651  need_version=no
17652  need_lib_prefix=no
17653
17654  case $GCC,$host_os in
17655  yes,cygwin* | yes,mingw* | yes,pw32*)
17656    library_names_spec='$libname.dll.a'
17657    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17658    postinstall_cmds='base_file=`basename \${file}`~
17659      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17660      dldir=$destdir/`dirname \$dlpath`~
17661      test -d \$dldir || mkdir -p \$dldir~
17662      $install_prog $dir/$dlname \$dldir/$dlname'
17663    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17664      dlpath=$dir/\$dldll~
17665       $rm \$dlpath'
17666    shlibpath_overrides_runpath=yes
17667
17668    case $host_os in
17669    cygwin*)
17670      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17671      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17672      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17673      ;;
17674    mingw*)
17675      # MinGW DLLs use traditional 'lib' prefix
17676      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17677      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17678      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17679        # It is most probably a Windows format PATH printed by
17680        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17681        # path with ; separators, and with drive letters. We can handle the
17682        # drive letters (cygwin fileutils understands them), so leave them,
17683        # especially as we might pass files found there to a mingw objdump,
17684        # which wouldn't understand a cygwinified path. Ahh.
17685        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17686      else
17687        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17688      fi
17689      ;;
17690    pw32*)
17691      # pw32 DLLs use 'pw' prefix rather than 'lib'
17692      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17693      ;;
17694    esac
17695    ;;
17696
17697  *)
17698    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17699    ;;
17700  esac
17701  dynamic_linker='Win32 ld.exe'
17702  # FIXME: first we should search . and the directory the executable is in
17703  shlibpath_var=PATH
17704  ;;
17705
17706darwin* | rhapsody*)
17707  dynamic_linker="$host_os dyld"
17708  version_type=darwin
17709  need_lib_prefix=no
17710  need_version=no
17711  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17712  soname_spec='${libname}${release}${major}$shared_ext'
17713  shlibpath_overrides_runpath=yes
17714  shlibpath_var=DYLD_LIBRARY_PATH
17715  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17716  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17717  if test "$GCC" = yes; then
17718    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17719  else
17720    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17721  fi
17722  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17723  ;;
17724
17725dgux*)
17726  version_type=linux
17727  need_lib_prefix=no
17728  need_version=no
17729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17730  soname_spec='${libname}${release}${shared_ext}$major'
17731  shlibpath_var=LD_LIBRARY_PATH
17732  ;;
17733
17734freebsd1*)
17735  dynamic_linker=no
17736  ;;
17737
17738kfreebsd*-gnu)
17739  version_type=linux
17740  need_lib_prefix=no
17741  need_version=no
17742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17743  soname_spec='${libname}${release}${shared_ext}$major'
17744  shlibpath_var=LD_LIBRARY_PATH
17745  shlibpath_overrides_runpath=no
17746  hardcode_into_libs=yes
17747  dynamic_linker='GNU ld.so'
17748  ;;
17749
17750freebsd*)
17751  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17752  version_type=freebsd-$objformat
17753  case $version_type in
17754    freebsd-elf*)
17755      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17756      need_version=no
17757      need_lib_prefix=no
17758      ;;
17759    freebsd-*)
17760      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17761      need_version=yes
17762      ;;
17763  esac
17764  shlibpath_var=LD_LIBRARY_PATH
17765  case $host_os in
17766  freebsd2*)
17767    shlibpath_overrides_runpath=yes
17768    ;;
17769  freebsd3.01* | freebsdelf3.01*)
17770    shlibpath_overrides_runpath=yes
17771    hardcode_into_libs=yes
17772    ;;
17773  *) # from 3.2 on
17774    shlibpath_overrides_runpath=no
17775    hardcode_into_libs=yes
17776    ;;
17777  esac
17778  ;;
17779
17780gnu*)
17781  version_type=linux
17782  need_lib_prefix=no
17783  need_version=no
17784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17785  soname_spec='${libname}${release}${shared_ext}$major'
17786  shlibpath_var=LD_LIBRARY_PATH
17787  hardcode_into_libs=yes
17788  ;;
17789
17790hpux9* | hpux10* | hpux11*)
17791  # Give a soname corresponding to the major version so that dld.sl refuses to
17792  # link against other versions.
17793  version_type=sunos
17794  need_lib_prefix=no
17795  need_version=no
17796  case "$host_cpu" in
17797  ia64*)
17798    shrext='.so'
17799    hardcode_into_libs=yes
17800    dynamic_linker="$host_os dld.so"
17801    shlibpath_var=LD_LIBRARY_PATH
17802    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17803    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17804    soname_spec='${libname}${release}${shared_ext}$major'
17805    if test "X$HPUX_IA64_MODE" = X32; then
17806      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17807    else
17808      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17809    fi
17810    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17811    ;;
17812   hppa*64*)
17813     shrext='.sl'
17814     hardcode_into_libs=yes
17815     dynamic_linker="$host_os dld.sl"
17816     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17817     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17819     soname_spec='${libname}${release}${shared_ext}$major'
17820     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17821     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17822     ;;
17823   *)
17824    shrext='.sl'
17825    dynamic_linker="$host_os dld.sl"
17826    shlibpath_var=SHLIB_PATH
17827    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17828    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829    soname_spec='${libname}${release}${shared_ext}$major'
17830    ;;
17831  esac
17832  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17833  postinstall_cmds='chmod 555 $lib'
17834  ;;
17835
17836irix5* | irix6* | nonstopux*)
17837  case $host_os in
17838    nonstopux*) version_type=nonstopux ;;
17839    *)
17840	if test "$lt_cv_prog_gnu_ld" = yes; then
17841		version_type=linux
17842	else
17843		version_type=irix
17844	fi ;;
17845  esac
17846  need_lib_prefix=no
17847  need_version=no
17848  soname_spec='${libname}${release}${shared_ext}$major'
17849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17850  case $host_os in
17851  irix5* | nonstopux*)
17852    libsuff= shlibsuff=
17853    ;;
17854  *)
17855    case $LD in # libtool.m4 will add one of these switches to LD
17856    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17857      libsuff= shlibsuff= libmagic=32-bit;;
17858    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17859      libsuff=32 shlibsuff=N32 libmagic=N32;;
17860    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17861      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17862    *) libsuff= shlibsuff= libmagic=never-match;;
17863    esac
17864    ;;
17865  esac
17866  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17867  shlibpath_overrides_runpath=no
17868  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17869  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17870  hardcode_into_libs=yes
17871  ;;
17872
17873# No shared lib support for Linux oldld, aout, or coff.
17874linux*oldld* | linux*aout* | linux*coff*)
17875  dynamic_linker=no
17876  ;;
17877
17878# This must be Linux ELF.
17879linux*)
17880  version_type=linux
17881  need_lib_prefix=no
17882  need_version=no
17883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17884  soname_spec='${libname}${release}${shared_ext}$major'
17885  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17886  shlibpath_var=LD_LIBRARY_PATH
17887  shlibpath_overrides_runpath=no
17888  # This implies no fast_install, which is unacceptable.
17889  # Some rework will be needed to allow for fast_install
17890  # before this can be enabled.
17891  hardcode_into_libs=yes
17892
17893  # Append ld.so.conf contents to the search path
17894  if test -f /etc/ld.so.conf; then
17895    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17896    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17897  fi
17898
17899  # We used to test for /lib/ld.so.1 and disable shared libraries on
17900  # powerpc, because MkLinux only supported shared libraries with the
17901  # GNU dynamic linker.  Since this was broken with cross compilers,
17902  # most powerpc-linux boxes support dynamic linking these days and
17903  # people can always --disable-shared, the test was removed, and we
17904  # assume the GNU/Linux dynamic linker is in use.
17905  dynamic_linker='GNU/Linux ld.so'
17906  ;;
17907
17908knetbsd*-gnu)
17909  version_type=linux
17910  need_lib_prefix=no
17911  need_version=no
17912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17913  soname_spec='${libname}${release}${shared_ext}$major'
17914  shlibpath_var=LD_LIBRARY_PATH
17915  shlibpath_overrides_runpath=no
17916  hardcode_into_libs=yes
17917  dynamic_linker='GNU ld.so'
17918  ;;
17919
17920netbsd*)
17921  version_type=sunos
17922  need_lib_prefix=no
17923  need_version=no
17924  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17926    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17927    dynamic_linker='NetBSD (a.out) ld.so'
17928  else
17929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17930    soname_spec='${libname}${release}${shared_ext}$major'
17931    dynamic_linker='NetBSD ld.elf_so'
17932  fi
17933  shlibpath_var=LD_LIBRARY_PATH
17934  shlibpath_overrides_runpath=yes
17935  hardcode_into_libs=yes
17936  ;;
17937
17938newsos6)
17939  version_type=linux
17940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941  shlibpath_var=LD_LIBRARY_PATH
17942  shlibpath_overrides_runpath=yes
17943  ;;
17944
17945nto-qnx*)
17946  version_type=linux
17947  need_lib_prefix=no
17948  need_version=no
17949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17950  soname_spec='${libname}${release}${shared_ext}$major'
17951  shlibpath_var=LD_LIBRARY_PATH
17952  shlibpath_overrides_runpath=yes
17953  ;;
17954
17955openbsd*)
17956  version_type=sunos
17957  need_lib_prefix=no
17958  need_version=yes
17959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17960  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17961  shlibpath_var=LD_LIBRARY_PATH
17962  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17963    case $host_os in
17964      openbsd2.[89] | openbsd2.[89].*)
17965	shlibpath_overrides_runpath=no
17966	;;
17967      *)
17968	shlibpath_overrides_runpath=yes
17969	;;
17970      esac
17971  else
17972    shlibpath_overrides_runpath=yes
17973  fi
17974  ;;
17975
17976os2*)
17977  libname_spec='$name'
17978  shrext=".dll"
17979  need_lib_prefix=no
17980  library_names_spec='$libname${shared_ext} $libname.a'
17981  dynamic_linker='OS/2 ld.exe'
17982  shlibpath_var=LIBPATH
17983  ;;
17984
17985osf3* | osf4* | osf5*)
17986  version_type=osf
17987  need_lib_prefix=no
17988  need_version=no
17989  soname_spec='${libname}${release}${shared_ext}$major'
17990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17991  shlibpath_var=LD_LIBRARY_PATH
17992  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17993  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17994  ;;
17995
17996sco3.2v5*)
17997  version_type=osf
17998  soname_spec='${libname}${release}${shared_ext}$major'
17999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18000  shlibpath_var=LD_LIBRARY_PATH
18001  ;;
18002
18003solaris*)
18004  version_type=linux
18005  need_lib_prefix=no
18006  need_version=no
18007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18008  soname_spec='${libname}${release}${shared_ext}$major'
18009  shlibpath_var=LD_LIBRARY_PATH
18010  shlibpath_overrides_runpath=yes
18011  hardcode_into_libs=yes
18012  # ldd complains unless libraries are executable
18013  postinstall_cmds='chmod +x $lib'
18014  ;;
18015
18016sunos4*)
18017  version_type=sunos
18018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18019  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18020  shlibpath_var=LD_LIBRARY_PATH
18021  shlibpath_overrides_runpath=yes
18022  if test "$with_gnu_ld" = yes; then
18023    need_lib_prefix=no
18024  fi
18025  need_version=yes
18026  ;;
18027
18028sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18029  version_type=linux
18030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18031  soname_spec='${libname}${release}${shared_ext}$major'
18032  shlibpath_var=LD_LIBRARY_PATH
18033  case $host_vendor in
18034    sni)
18035      shlibpath_overrides_runpath=no
18036      need_lib_prefix=no
18037      export_dynamic_flag_spec='${wl}-Blargedynsym'
18038      runpath_var=LD_RUN_PATH
18039      ;;
18040    siemens)
18041      need_lib_prefix=no
18042      ;;
18043    motorola)
18044      need_lib_prefix=no
18045      need_version=no
18046      shlibpath_overrides_runpath=no
18047      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18048      ;;
18049  esac
18050  ;;
18051
18052sysv4*MP*)
18053  if test -d /usr/nec ;then
18054    version_type=linux
18055    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18056    soname_spec='$libname${shared_ext}.$major'
18057    shlibpath_var=LD_LIBRARY_PATH
18058  fi
18059  ;;
18060
18061uts4*)
18062  version_type=linux
18063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18064  soname_spec='${libname}${release}${shared_ext}$major'
18065  shlibpath_var=LD_LIBRARY_PATH
18066  ;;
18067
18068*)
18069  dynamic_linker=no
18070  ;;
18071esac
18072echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18073echo "${ECHO_T}$dynamic_linker" >&6
18074test "$dynamic_linker" = no && can_build_shared=no
18075
18076echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18077echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18078hardcode_action_GCJ=
18079if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18080   test -n "$runpath_var GCJ" || \
18081   test "X$hardcode_automatic_GCJ"="Xyes" ; then
18082
18083  # We can hardcode non-existant directories.
18084  if test "$hardcode_direct_GCJ" != no &&
18085     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18086     # have to relink, otherwise we might link with an installed library
18087     # when we should be linking with a yet-to-be-installed one
18088     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18089     test "$hardcode_minus_L_GCJ" != no; then
18090    # Linking always hardcodes the temporary library directory.
18091    hardcode_action_GCJ=relink
18092  else
18093    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18094    hardcode_action_GCJ=immediate
18095  fi
18096else
18097  # We cannot hardcode anything, or else we can only hardcode existing
18098  # directories.
18099  hardcode_action_GCJ=unsupported
18100fi
18101echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18102echo "${ECHO_T}$hardcode_action_GCJ" >&6
18103
18104if test "$hardcode_action_GCJ" = relink; then
18105  # Fast installation is not supported
18106  enable_fast_install=no
18107elif test "$shlibpath_overrides_runpath" = yes ||
18108     test "$enable_shared" = no; then
18109  # Fast installation is not necessary
18110  enable_fast_install=needless
18111fi
18112
18113striplib=
18114old_striplib=
18115echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18116echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18117if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18118  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18119  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18120  echo "$as_me:$LINENO: result: yes" >&5
18121echo "${ECHO_T}yes" >&6
18122else
18123# FIXME - insert some real tests, host_os isn't really good enough
18124  case $host_os in
18125   darwin*)
18126       if test -n "$STRIP" ; then
18127         striplib="$STRIP -x"
18128         echo "$as_me:$LINENO: result: yes" >&5
18129echo "${ECHO_T}yes" >&6
18130       else
18131  echo "$as_me:$LINENO: result: no" >&5
18132echo "${ECHO_T}no" >&6
18133fi
18134       ;;
18135   *)
18136  echo "$as_me:$LINENO: result: no" >&5
18137echo "${ECHO_T}no" >&6
18138    ;;
18139  esac
18140fi
18141
18142if test "x$enable_dlopen" != xyes; then
18143  enable_dlopen=unknown
18144  enable_dlopen_self=unknown
18145  enable_dlopen_self_static=unknown
18146else
18147  lt_cv_dlopen=no
18148  lt_cv_dlopen_libs=
18149
18150  case $host_os in
18151  beos*)
18152    lt_cv_dlopen="load_add_on"
18153    lt_cv_dlopen_libs=
18154    lt_cv_dlopen_self=yes
18155    ;;
18156
18157  mingw* | pw32*)
18158    lt_cv_dlopen="LoadLibrary"
18159    lt_cv_dlopen_libs=
18160   ;;
18161
18162  cygwin*)
18163    lt_cv_dlopen="dlopen"
18164    lt_cv_dlopen_libs=
18165   ;;
18166
18167  darwin*)
18168  # if libdl is installed we need to link against it
18169    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18170echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18171if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18172  echo $ECHO_N "(cached) $ECHO_C" >&6
18173else
18174  ac_check_lib_save_LIBS=$LIBS
18175LIBS="-ldl  $LIBS"
18176cat >conftest.$ac_ext <<_ACEOF
18177/* confdefs.h.  */
18178_ACEOF
18179cat confdefs.h >>conftest.$ac_ext
18180cat >>conftest.$ac_ext <<_ACEOF
18181/* end confdefs.h.  */
18182
18183/* Override any gcc2 internal prototype to avoid an error.  */
18184#ifdef __cplusplus
18185extern "C"
18186#endif
18187/* We use char because int might match the return type of a gcc2
18188   builtin and then its argument prototype would still apply.  */
18189char dlopen ();
18190int
18191main ()
18192{
18193dlopen ();
18194  ;
18195  return 0;
18196}
18197_ACEOF
18198rm -f conftest.$ac_objext conftest$ac_exeext
18199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18200  (eval $ac_link) 2>conftest.er1
18201  ac_status=$?
18202  grep -v '^ *+' conftest.er1 >conftest.err
18203  rm -f conftest.er1
18204  cat conftest.err >&5
18205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206  (exit $ac_status); } &&
18207	 { ac_try='test -z "$ac_c_werror_flag"
18208			 || test ! -s conftest.err'
18209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210  (eval $ac_try) 2>&5
18211  ac_status=$?
18212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213  (exit $ac_status); }; } &&
18214	 { ac_try='test -s conftest$ac_exeext'
18215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216  (eval $ac_try) 2>&5
18217  ac_status=$?
18218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219  (exit $ac_status); }; }; then
18220  ac_cv_lib_dl_dlopen=yes
18221else
18222  echo "$as_me: failed program was:" >&5
18223sed 's/^/| /' conftest.$ac_ext >&5
18224
18225ac_cv_lib_dl_dlopen=no
18226fi
18227rm -f conftest.err conftest.$ac_objext \
18228      conftest$ac_exeext conftest.$ac_ext
18229LIBS=$ac_check_lib_save_LIBS
18230fi
18231echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18232echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18233if test $ac_cv_lib_dl_dlopen = yes; then
18234  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18235else
18236
18237    lt_cv_dlopen="dyld"
18238    lt_cv_dlopen_libs=
18239    lt_cv_dlopen_self=yes
18240
18241fi
18242
18243   ;;
18244
18245  *)
18246    echo "$as_me:$LINENO: checking for shl_load" >&5
18247echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18248if test "${ac_cv_func_shl_load+set}" = set; then
18249  echo $ECHO_N "(cached) $ECHO_C" >&6
18250else
18251  cat >conftest.$ac_ext <<_ACEOF
18252/* confdefs.h.  */
18253_ACEOF
18254cat confdefs.h >>conftest.$ac_ext
18255cat >>conftest.$ac_ext <<_ACEOF
18256/* end confdefs.h.  */
18257/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18258   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18259#define shl_load innocuous_shl_load
18260
18261/* System header to define __stub macros and hopefully few prototypes,
18262    which can conflict with char shl_load (); below.
18263    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18264    <limits.h> exists even on freestanding compilers.  */
18265
18266#ifdef __STDC__
18267# include <limits.h>
18268#else
18269# include <assert.h>
18270#endif
18271
18272#undef shl_load
18273
18274/* Override any gcc2 internal prototype to avoid an error.  */
18275#ifdef __cplusplus
18276extern "C"
18277{
18278#endif
18279/* We use char because int might match the return type of a gcc2
18280   builtin and then its argument prototype would still apply.  */
18281char shl_load ();
18282/* The GNU C library defines this for functions which it implements
18283    to always fail with ENOSYS.  Some functions are actually named
18284    something starting with __ and the normal name is an alias.  */
18285#if defined (__stub_shl_load) || defined (__stub___shl_load)
18286choke me
18287#else
18288char (*f) () = shl_load;
18289#endif
18290#ifdef __cplusplus
18291}
18292#endif
18293
18294int
18295main ()
18296{
18297return f != shl_load;
18298  ;
18299  return 0;
18300}
18301_ACEOF
18302rm -f conftest.$ac_objext conftest$ac_exeext
18303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18304  (eval $ac_link) 2>conftest.er1
18305  ac_status=$?
18306  grep -v '^ *+' conftest.er1 >conftest.err
18307  rm -f conftest.er1
18308  cat conftest.err >&5
18309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310  (exit $ac_status); } &&
18311	 { ac_try='test -z "$ac_c_werror_flag"
18312			 || test ! -s conftest.err'
18313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314  (eval $ac_try) 2>&5
18315  ac_status=$?
18316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317  (exit $ac_status); }; } &&
18318	 { ac_try='test -s conftest$ac_exeext'
18319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320  (eval $ac_try) 2>&5
18321  ac_status=$?
18322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323  (exit $ac_status); }; }; then
18324  ac_cv_func_shl_load=yes
18325else
18326  echo "$as_me: failed program was:" >&5
18327sed 's/^/| /' conftest.$ac_ext >&5
18328
18329ac_cv_func_shl_load=no
18330fi
18331rm -f conftest.err conftest.$ac_objext \
18332      conftest$ac_exeext conftest.$ac_ext
18333fi
18334echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18335echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18336if test $ac_cv_func_shl_load = yes; then
18337  lt_cv_dlopen="shl_load"
18338else
18339  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18340echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18341if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18342  echo $ECHO_N "(cached) $ECHO_C" >&6
18343else
18344  ac_check_lib_save_LIBS=$LIBS
18345LIBS="-ldld  $LIBS"
18346cat >conftest.$ac_ext <<_ACEOF
18347/* confdefs.h.  */
18348_ACEOF
18349cat confdefs.h >>conftest.$ac_ext
18350cat >>conftest.$ac_ext <<_ACEOF
18351/* end confdefs.h.  */
18352
18353/* Override any gcc2 internal prototype to avoid an error.  */
18354#ifdef __cplusplus
18355extern "C"
18356#endif
18357/* We use char because int might match the return type of a gcc2
18358   builtin and then its argument prototype would still apply.  */
18359char shl_load ();
18360int
18361main ()
18362{
18363shl_load ();
18364  ;
18365  return 0;
18366}
18367_ACEOF
18368rm -f conftest.$ac_objext conftest$ac_exeext
18369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370  (eval $ac_link) 2>conftest.er1
18371  ac_status=$?
18372  grep -v '^ *+' conftest.er1 >conftest.err
18373  rm -f conftest.er1
18374  cat conftest.err >&5
18375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376  (exit $ac_status); } &&
18377	 { ac_try='test -z "$ac_c_werror_flag"
18378			 || test ! -s conftest.err'
18379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380  (eval $ac_try) 2>&5
18381  ac_status=$?
18382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383  (exit $ac_status); }; } &&
18384	 { ac_try='test -s conftest$ac_exeext'
18385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386  (eval $ac_try) 2>&5
18387  ac_status=$?
18388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389  (exit $ac_status); }; }; then
18390  ac_cv_lib_dld_shl_load=yes
18391else
18392  echo "$as_me: failed program was:" >&5
18393sed 's/^/| /' conftest.$ac_ext >&5
18394
18395ac_cv_lib_dld_shl_load=no
18396fi
18397rm -f conftest.err conftest.$ac_objext \
18398      conftest$ac_exeext conftest.$ac_ext
18399LIBS=$ac_check_lib_save_LIBS
18400fi
18401echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18402echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18403if test $ac_cv_lib_dld_shl_load = yes; then
18404  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18405else
18406  echo "$as_me:$LINENO: checking for dlopen" >&5
18407echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18408if test "${ac_cv_func_dlopen+set}" = set; then
18409  echo $ECHO_N "(cached) $ECHO_C" >&6
18410else
18411  cat >conftest.$ac_ext <<_ACEOF
18412/* confdefs.h.  */
18413_ACEOF
18414cat confdefs.h >>conftest.$ac_ext
18415cat >>conftest.$ac_ext <<_ACEOF
18416/* end confdefs.h.  */
18417/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18418   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18419#define dlopen innocuous_dlopen
18420
18421/* System header to define __stub macros and hopefully few prototypes,
18422    which can conflict with char dlopen (); below.
18423    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18424    <limits.h> exists even on freestanding compilers.  */
18425
18426#ifdef __STDC__
18427# include <limits.h>
18428#else
18429# include <assert.h>
18430#endif
18431
18432#undef dlopen
18433
18434/* Override any gcc2 internal prototype to avoid an error.  */
18435#ifdef __cplusplus
18436extern "C"
18437{
18438#endif
18439/* We use char because int might match the return type of a gcc2
18440   builtin and then its argument prototype would still apply.  */
18441char dlopen ();
18442/* The GNU C library defines this for functions which it implements
18443    to always fail with ENOSYS.  Some functions are actually named
18444    something starting with __ and the normal name is an alias.  */
18445#if defined (__stub_dlopen) || defined (__stub___dlopen)
18446choke me
18447#else
18448char (*f) () = dlopen;
18449#endif
18450#ifdef __cplusplus
18451}
18452#endif
18453
18454int
18455main ()
18456{
18457return f != dlopen;
18458  ;
18459  return 0;
18460}
18461_ACEOF
18462rm -f conftest.$ac_objext conftest$ac_exeext
18463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18464  (eval $ac_link) 2>conftest.er1
18465  ac_status=$?
18466  grep -v '^ *+' conftest.er1 >conftest.err
18467  rm -f conftest.er1
18468  cat conftest.err >&5
18469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470  (exit $ac_status); } &&
18471	 { ac_try='test -z "$ac_c_werror_flag"
18472			 || test ! -s conftest.err'
18473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474  (eval $ac_try) 2>&5
18475  ac_status=$?
18476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477  (exit $ac_status); }; } &&
18478	 { ac_try='test -s conftest$ac_exeext'
18479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480  (eval $ac_try) 2>&5
18481  ac_status=$?
18482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483  (exit $ac_status); }; }; then
18484  ac_cv_func_dlopen=yes
18485else
18486  echo "$as_me: failed program was:" >&5
18487sed 's/^/| /' conftest.$ac_ext >&5
18488
18489ac_cv_func_dlopen=no
18490fi
18491rm -f conftest.err conftest.$ac_objext \
18492      conftest$ac_exeext conftest.$ac_ext
18493fi
18494echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18495echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18496if test $ac_cv_func_dlopen = yes; then
18497  lt_cv_dlopen="dlopen"
18498else
18499  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18500echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18501if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18502  echo $ECHO_N "(cached) $ECHO_C" >&6
18503else
18504  ac_check_lib_save_LIBS=$LIBS
18505LIBS="-ldl  $LIBS"
18506cat >conftest.$ac_ext <<_ACEOF
18507/* confdefs.h.  */
18508_ACEOF
18509cat confdefs.h >>conftest.$ac_ext
18510cat >>conftest.$ac_ext <<_ACEOF
18511/* end confdefs.h.  */
18512
18513/* Override any gcc2 internal prototype to avoid an error.  */
18514#ifdef __cplusplus
18515extern "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.  */
18519char dlopen ();
18520int
18521main ()
18522{
18523dlopen ();
18524  ;
18525  return 0;
18526}
18527_ACEOF
18528rm -f conftest.$ac_objext conftest$ac_exeext
18529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18530  (eval $ac_link) 2>conftest.er1
18531  ac_status=$?
18532  grep -v '^ *+' conftest.er1 >conftest.err
18533  rm -f conftest.er1
18534  cat conftest.err >&5
18535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536  (exit $ac_status); } &&
18537	 { ac_try='test -z "$ac_c_werror_flag"
18538			 || test ! -s conftest.err'
18539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540  (eval $ac_try) 2>&5
18541  ac_status=$?
18542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543  (exit $ac_status); }; } &&
18544	 { ac_try='test -s conftest$ac_exeext'
18545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546  (eval $ac_try) 2>&5
18547  ac_status=$?
18548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549  (exit $ac_status); }; }; then
18550  ac_cv_lib_dl_dlopen=yes
18551else
18552  echo "$as_me: failed program was:" >&5
18553sed 's/^/| /' conftest.$ac_ext >&5
18554
18555ac_cv_lib_dl_dlopen=no
18556fi
18557rm -f conftest.err conftest.$ac_objext \
18558      conftest$ac_exeext conftest.$ac_ext
18559LIBS=$ac_check_lib_save_LIBS
18560fi
18561echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18562echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18563if test $ac_cv_lib_dl_dlopen = yes; then
18564  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18565else
18566  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18567echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18568if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18569  echo $ECHO_N "(cached) $ECHO_C" >&6
18570else
18571  ac_check_lib_save_LIBS=$LIBS
18572LIBS="-lsvld  $LIBS"
18573cat >conftest.$ac_ext <<_ACEOF
18574/* confdefs.h.  */
18575_ACEOF
18576cat confdefs.h >>conftest.$ac_ext
18577cat >>conftest.$ac_ext <<_ACEOF
18578/* end confdefs.h.  */
18579
18580/* Override any gcc2 internal prototype to avoid an error.  */
18581#ifdef __cplusplus
18582extern "C"
18583#endif
18584/* We use char because int might match the return type of a gcc2
18585   builtin and then its argument prototype would still apply.  */
18586char dlopen ();
18587int
18588main ()
18589{
18590dlopen ();
18591  ;
18592  return 0;
18593}
18594_ACEOF
18595rm -f conftest.$ac_objext conftest$ac_exeext
18596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18597  (eval $ac_link) 2>conftest.er1
18598  ac_status=$?
18599  grep -v '^ *+' conftest.er1 >conftest.err
18600  rm -f conftest.er1
18601  cat conftest.err >&5
18602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603  (exit $ac_status); } &&
18604	 { ac_try='test -z "$ac_c_werror_flag"
18605			 || test ! -s conftest.err'
18606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607  (eval $ac_try) 2>&5
18608  ac_status=$?
18609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610  (exit $ac_status); }; } &&
18611	 { ac_try='test -s conftest$ac_exeext'
18612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613  (eval $ac_try) 2>&5
18614  ac_status=$?
18615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616  (exit $ac_status); }; }; then
18617  ac_cv_lib_svld_dlopen=yes
18618else
18619  echo "$as_me: failed program was:" >&5
18620sed 's/^/| /' conftest.$ac_ext >&5
18621
18622ac_cv_lib_svld_dlopen=no
18623fi
18624rm -f conftest.err conftest.$ac_objext \
18625      conftest$ac_exeext conftest.$ac_ext
18626LIBS=$ac_check_lib_save_LIBS
18627fi
18628echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18629echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18630if test $ac_cv_lib_svld_dlopen = yes; then
18631  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18632else
18633  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18634echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18635if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18636  echo $ECHO_N "(cached) $ECHO_C" >&6
18637else
18638  ac_check_lib_save_LIBS=$LIBS
18639LIBS="-ldld  $LIBS"
18640cat >conftest.$ac_ext <<_ACEOF
18641/* confdefs.h.  */
18642_ACEOF
18643cat confdefs.h >>conftest.$ac_ext
18644cat >>conftest.$ac_ext <<_ACEOF
18645/* end confdefs.h.  */
18646
18647/* Override any gcc2 internal prototype to avoid an error.  */
18648#ifdef __cplusplus
18649extern "C"
18650#endif
18651/* We use char because int might match the return type of a gcc2
18652   builtin and then its argument prototype would still apply.  */
18653char dld_link ();
18654int
18655main ()
18656{
18657dld_link ();
18658  ;
18659  return 0;
18660}
18661_ACEOF
18662rm -f conftest.$ac_objext conftest$ac_exeext
18663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18664  (eval $ac_link) 2>conftest.er1
18665  ac_status=$?
18666  grep -v '^ *+' conftest.er1 >conftest.err
18667  rm -f conftest.er1
18668  cat conftest.err >&5
18669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670  (exit $ac_status); } &&
18671	 { ac_try='test -z "$ac_c_werror_flag"
18672			 || test ! -s conftest.err'
18673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674  (eval $ac_try) 2>&5
18675  ac_status=$?
18676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677  (exit $ac_status); }; } &&
18678	 { ac_try='test -s conftest$ac_exeext'
18679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680  (eval $ac_try) 2>&5
18681  ac_status=$?
18682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683  (exit $ac_status); }; }; then
18684  ac_cv_lib_dld_dld_link=yes
18685else
18686  echo "$as_me: failed program was:" >&5
18687sed 's/^/| /' conftest.$ac_ext >&5
18688
18689ac_cv_lib_dld_dld_link=no
18690fi
18691rm -f conftest.err conftest.$ac_objext \
18692      conftest$ac_exeext conftest.$ac_ext
18693LIBS=$ac_check_lib_save_LIBS
18694fi
18695echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18696echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18697if test $ac_cv_lib_dld_dld_link = yes; then
18698  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18699fi
18700
18701
18702fi
18703
18704
18705fi
18706
18707
18708fi
18709
18710
18711fi
18712
18713
18714fi
18715
18716    ;;
18717  esac
18718
18719  if test "x$lt_cv_dlopen" != xno; then
18720    enable_dlopen=yes
18721  else
18722    enable_dlopen=no
18723  fi
18724
18725  case $lt_cv_dlopen in
18726  dlopen)
18727    save_CPPFLAGS="$CPPFLAGS"
18728    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18729
18730    save_LDFLAGS="$LDFLAGS"
18731    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18732
18733    save_LIBS="$LIBS"
18734    LIBS="$lt_cv_dlopen_libs $LIBS"
18735
18736    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18737echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18738if test "${lt_cv_dlopen_self+set}" = set; then
18739  echo $ECHO_N "(cached) $ECHO_C" >&6
18740else
18741  	  if test "$cross_compiling" = yes; then :
18742  lt_cv_dlopen_self=cross
18743else
18744  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18745  lt_status=$lt_dlunknown
18746  cat > conftest.$ac_ext <<EOF
18747#line 18747 "configure"
18748#include "confdefs.h"
18749
18750#if HAVE_DLFCN_H
18751#include <dlfcn.h>
18752#endif
18753
18754#include <stdio.h>
18755
18756#ifdef RTLD_GLOBAL
18757#  define LT_DLGLOBAL		RTLD_GLOBAL
18758#else
18759#  ifdef DL_GLOBAL
18760#    define LT_DLGLOBAL		DL_GLOBAL
18761#  else
18762#    define LT_DLGLOBAL		0
18763#  endif
18764#endif
18765
18766/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18767   find out it does not work in some platform. */
18768#ifndef LT_DLLAZY_OR_NOW
18769#  ifdef RTLD_LAZY
18770#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18771#  else
18772#    ifdef DL_LAZY
18773#      define LT_DLLAZY_OR_NOW		DL_LAZY
18774#    else
18775#      ifdef RTLD_NOW
18776#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18777#      else
18778#        ifdef DL_NOW
18779#          define LT_DLLAZY_OR_NOW	DL_NOW
18780#        else
18781#          define LT_DLLAZY_OR_NOW	0
18782#        endif
18783#      endif
18784#    endif
18785#  endif
18786#endif
18787
18788#ifdef __cplusplus
18789extern "C" void exit (int);
18790#endif
18791
18792void fnord() { int i=42;}
18793int main ()
18794{
18795  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18796  int status = $lt_dlunknown;
18797
18798  if (self)
18799    {
18800      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18801      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18802      /* dlclose (self); */
18803    }
18804
18805    exit (status);
18806}
18807EOF
18808  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18809  (eval $ac_link) 2>&5
18810  ac_status=$?
18811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18813    (./conftest; exit; ) 2>/dev/null
18814    lt_status=$?
18815    case x$lt_status in
18816      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18817      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18818      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18819    esac
18820  else :
18821    # compilation failed
18822    lt_cv_dlopen_self=no
18823  fi
18824fi
18825rm -fr conftest*
18826
18827
18828fi
18829echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18830echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18831
18832    if test "x$lt_cv_dlopen_self" = xyes; then
18833      LDFLAGS="$LDFLAGS $link_static_flag"
18834      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18835echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18836if test "${lt_cv_dlopen_self_static+set}" = set; then
18837  echo $ECHO_N "(cached) $ECHO_C" >&6
18838else
18839  	  if test "$cross_compiling" = yes; then :
18840  lt_cv_dlopen_self_static=cross
18841else
18842  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18843  lt_status=$lt_dlunknown
18844  cat > conftest.$ac_ext <<EOF
18845#line 18845 "configure"
18846#include "confdefs.h"
18847
18848#if HAVE_DLFCN_H
18849#include <dlfcn.h>
18850#endif
18851
18852#include <stdio.h>
18853
18854#ifdef RTLD_GLOBAL
18855#  define LT_DLGLOBAL		RTLD_GLOBAL
18856#else
18857#  ifdef DL_GLOBAL
18858#    define LT_DLGLOBAL		DL_GLOBAL
18859#  else
18860#    define LT_DLGLOBAL		0
18861#  endif
18862#endif
18863
18864/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18865   find out it does not work in some platform. */
18866#ifndef LT_DLLAZY_OR_NOW
18867#  ifdef RTLD_LAZY
18868#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18869#  else
18870#    ifdef DL_LAZY
18871#      define LT_DLLAZY_OR_NOW		DL_LAZY
18872#    else
18873#      ifdef RTLD_NOW
18874#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18875#      else
18876#        ifdef DL_NOW
18877#          define LT_DLLAZY_OR_NOW	DL_NOW
18878#        else
18879#          define LT_DLLAZY_OR_NOW	0
18880#        endif
18881#      endif
18882#    endif
18883#  endif
18884#endif
18885
18886#ifdef __cplusplus
18887extern "C" void exit (int);
18888#endif
18889
18890void fnord() { int i=42;}
18891int main ()
18892{
18893  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18894  int status = $lt_dlunknown;
18895
18896  if (self)
18897    {
18898      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18899      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18900      /* dlclose (self); */
18901    }
18902
18903    exit (status);
18904}
18905EOF
18906  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18907  (eval $ac_link) 2>&5
18908  ac_status=$?
18909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18911    (./conftest; exit; ) 2>/dev/null
18912    lt_status=$?
18913    case x$lt_status in
18914      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18915      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18916      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18917    esac
18918  else :
18919    # compilation failed
18920    lt_cv_dlopen_self_static=no
18921  fi
18922fi
18923rm -fr conftest*
18924
18925
18926fi
18927echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18928echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18929    fi
18930
18931    CPPFLAGS="$save_CPPFLAGS"
18932    LDFLAGS="$save_LDFLAGS"
18933    LIBS="$save_LIBS"
18934    ;;
18935  esac
18936
18937  case $lt_cv_dlopen_self in
18938  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18939  *) enable_dlopen_self=unknown ;;
18940  esac
18941
18942  case $lt_cv_dlopen_self_static in
18943  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18944  *) enable_dlopen_self_static=unknown ;;
18945  esac
18946fi
18947
18948
18949# The else clause should only fire when bootstrapping the
18950# libtool distribution, otherwise you forgot to ship ltmain.sh
18951# with your package, and you will get complaints that there are
18952# no rules to generate ltmain.sh.
18953if test -f "$ltmain"; then
18954  # See if we are running on zsh, and set the options which allow our commands through
18955  # without removal of \ escapes.
18956  if test -n "${ZSH_VERSION+set}" ; then
18957    setopt NO_GLOB_SUBST
18958  fi
18959  # Now quote all the things that may contain metacharacters while being
18960  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18961  # variables and quote the copies for generation of the libtool script.
18962  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18963    SED SHELL STRIP \
18964    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18965    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18966    deplibs_check_method reload_flag reload_cmds need_locks \
18967    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18968    lt_cv_sys_global_symbol_to_c_name_address \
18969    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18970    old_postinstall_cmds old_postuninstall_cmds \
18971    compiler_GCJ \
18972    CC_GCJ \
18973    LD_GCJ \
18974    lt_prog_compiler_wl_GCJ \
18975    lt_prog_compiler_pic_GCJ \
18976    lt_prog_compiler_static_GCJ \
18977    lt_prog_compiler_no_builtin_flag_GCJ \
18978    export_dynamic_flag_spec_GCJ \
18979    thread_safe_flag_spec_GCJ \
18980    whole_archive_flag_spec_GCJ \
18981    enable_shared_with_static_runtimes_GCJ \
18982    old_archive_cmds_GCJ \
18983    old_archive_from_new_cmds_GCJ \
18984    predep_objects_GCJ \
18985    postdep_objects_GCJ \
18986    predeps_GCJ \
18987    postdeps_GCJ \
18988    compiler_lib_search_path_GCJ \
18989    archive_cmds_GCJ \
18990    archive_expsym_cmds_GCJ \
18991    postinstall_cmds_GCJ \
18992    postuninstall_cmds_GCJ \
18993    old_archive_from_expsyms_cmds_GCJ \
18994    allow_undefined_flag_GCJ \
18995    no_undefined_flag_GCJ \
18996    export_symbols_cmds_GCJ \
18997    hardcode_libdir_flag_spec_GCJ \
18998    hardcode_libdir_flag_spec_ld_GCJ \
18999    hardcode_libdir_separator_GCJ \
19000    hardcode_automatic_GCJ \
19001    module_cmds_GCJ \
19002    module_expsym_cmds_GCJ \
19003    lt_cv_prog_compiler_c_o_GCJ \
19004    exclude_expsyms_GCJ \
19005    include_expsyms_GCJ; do
19006
19007    case $var in
19008    old_archive_cmds_GCJ | \
19009    old_archive_from_new_cmds_GCJ | \
19010    archive_cmds_GCJ | \
19011    archive_expsym_cmds_GCJ | \
19012    module_cmds_GCJ | \
19013    module_expsym_cmds_GCJ | \
19014    old_archive_from_expsyms_cmds_GCJ | \
19015    export_symbols_cmds_GCJ | \
19016    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19017    postinstall_cmds | postuninstall_cmds | \
19018    old_postinstall_cmds | old_postuninstall_cmds | \
19019    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19020      # Double-quote double-evaled strings.
19021      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19022      ;;
19023    *)
19024      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19025      ;;
19026    esac
19027  done
19028
19029  case $lt_echo in
19030  *'\$0 --fallback-echo"')
19031    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19032    ;;
19033  esac
19034
19035cfgfile="$ofile"
19036
19037  cat <<__EOF__ >> "$cfgfile"
19038# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19039
19040# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19041
19042# Shell to use when invoking shell scripts.
19043SHELL=$lt_SHELL
19044
19045# Whether or not to build shared libraries.
19046build_libtool_libs=$enable_shared
19047
19048# Whether or not to build static libraries.
19049build_old_libs=$enable_static
19050
19051# Whether or not to add -lc for building shared libraries.
19052build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19053
19054# Whether or not to disallow shared libs when runtime libs are static
19055allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19056
19057# Whether or not to optimize for fast installation.
19058fast_install=$enable_fast_install
19059
19060# The host system.
19061host_alias=$host_alias
19062host=$host
19063
19064# An echo program that does not interpret backslashes.
19065echo=$lt_echo
19066
19067# The archiver.
19068AR=$lt_AR
19069AR_FLAGS=$lt_AR_FLAGS
19070
19071# A C compiler.
19072LTCC=$lt_LTCC
19073
19074# A language-specific compiler.
19075CC=$lt_compiler_GCJ
19076
19077# Is the compiler the GNU C compiler?
19078with_gcc=$GCC_GCJ
19079
19080# An ERE matcher.
19081EGREP=$lt_EGREP
19082
19083# The linker used to build libraries.
19084LD=$lt_LD_GCJ
19085
19086# Whether we need hard or soft links.
19087LN_S=$lt_LN_S
19088
19089# A BSD-compatible nm program.
19090NM=$lt_NM
19091
19092# A symbol stripping program
19093STRIP=$lt_STRIP
19094
19095# Used to examine libraries when file_magic_cmd begins "file"
19096MAGIC_CMD=$MAGIC_CMD
19097
19098# Used on cygwin: DLL creation program.
19099DLLTOOL="$DLLTOOL"
19100
19101# Used on cygwin: object dumper.
19102OBJDUMP="$OBJDUMP"
19103
19104# Used on cygwin: assembler.
19105AS="$AS"
19106
19107# The name of the directory that contains temporary libtool files.
19108objdir=$objdir
19109
19110# How to create reloadable object files.
19111reload_flag=$lt_reload_flag
19112reload_cmds=$lt_reload_cmds
19113
19114# How to pass a linker flag through the compiler.
19115wl=$lt_lt_prog_compiler_wl_GCJ
19116
19117# Object file suffix (normally "o").
19118objext="$ac_objext"
19119
19120# Old archive suffix (normally "a").
19121libext="$libext"
19122
19123# Shared library suffix (normally ".so").
19124shrext='$shrext'
19125
19126# Executable file suffix (normally "").
19127exeext="$exeext"
19128
19129# Additional compiler flags for building library objects.
19130pic_flag=$lt_lt_prog_compiler_pic_GCJ
19131pic_mode=$pic_mode
19132
19133# What is the maximum length of a command?
19134max_cmd_len=$lt_cv_sys_max_cmd_len
19135
19136# Does compiler simultaneously support -c and -o options?
19137compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19138
19139# Must we lock files when doing compilation ?
19140need_locks=$lt_need_locks
19141
19142# Do we need the lib prefix for modules?
19143need_lib_prefix=$need_lib_prefix
19144
19145# Do we need a version for libraries?
19146need_version=$need_version
19147
19148# Whether dlopen is supported.
19149dlopen_support=$enable_dlopen
19150
19151# Whether dlopen of programs is supported.
19152dlopen_self=$enable_dlopen_self
19153
19154# Whether dlopen of statically linked programs is supported.
19155dlopen_self_static=$enable_dlopen_self_static
19156
19157# Compiler flag to prevent dynamic linking.
19158link_static_flag=$lt_lt_prog_compiler_static_GCJ
19159
19160# Compiler flag to turn off builtin functions.
19161no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19162
19163# Compiler flag to allow reflexive dlopens.
19164export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19165
19166# Compiler flag to generate shared objects directly from archives.
19167whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19168
19169# Compiler flag to generate thread-safe objects.
19170thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19171
19172# Library versioning type.
19173version_type=$version_type
19174
19175# Format of library name prefix.
19176libname_spec=$lt_libname_spec
19177
19178# List of archive names.  First name is the real one, the rest are links.
19179# The last name is the one that the linker finds with -lNAME.
19180library_names_spec=$lt_library_names_spec
19181
19182# The coded name of the library, if different from the real name.
19183soname_spec=$lt_soname_spec
19184
19185# Commands used to build and install an old-style archive.
19186RANLIB=$lt_RANLIB
19187old_archive_cmds=$lt_old_archive_cmds_GCJ
19188old_postinstall_cmds=$lt_old_postinstall_cmds
19189old_postuninstall_cmds=$lt_old_postuninstall_cmds
19190
19191# Create an old-style archive from a shared archive.
19192old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19193
19194# Create a temporary old-style archive to link instead of a shared archive.
19195old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19196
19197# Commands used to build and install a shared archive.
19198archive_cmds=$lt_archive_cmds_GCJ
19199archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19200postinstall_cmds=$lt_postinstall_cmds
19201postuninstall_cmds=$lt_postuninstall_cmds
19202
19203# Commands used to build a loadable module (assumed same as above if empty)
19204module_cmds=$lt_module_cmds_GCJ
19205module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19206
19207# Commands to strip libraries.
19208old_striplib=$lt_old_striplib
19209striplib=$lt_striplib
19210
19211# Dependencies to place before the objects being linked to create a
19212# shared library.
19213predep_objects=$lt_predep_objects_GCJ
19214
19215# Dependencies to place after the objects being linked to create a
19216# shared library.
19217postdep_objects=$lt_postdep_objects_GCJ
19218
19219# Dependencies to place before the objects being linked to create a
19220# shared library.
19221predeps=$lt_predeps_GCJ
19222
19223# Dependencies to place after the objects being linked to create a
19224# shared library.
19225postdeps=$lt_postdeps_GCJ
19226
19227# The library search path used internally by the compiler when linking
19228# a shared library.
19229compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19230
19231# Method to check whether dependent libraries are shared objects.
19232deplibs_check_method=$lt_deplibs_check_method
19233
19234# Command to use when deplibs_check_method == file_magic.
19235file_magic_cmd=$lt_file_magic_cmd
19236
19237# Flag that allows shared libraries with undefined symbols to be built.
19238allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19239
19240# Flag that forces no undefined symbols.
19241no_undefined_flag=$lt_no_undefined_flag_GCJ
19242
19243# Commands used to finish a libtool library installation in a directory.
19244finish_cmds=$lt_finish_cmds
19245
19246# Same as above, but a single script fragment to be evaled but not shown.
19247finish_eval=$lt_finish_eval
19248
19249# Take the output of nm and produce a listing of raw symbols and C names.
19250global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19251
19252# Transform the output of nm in a proper C declaration
19253global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19254
19255# Transform the output of nm in a C name address pair
19256global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19257
19258# This is the shared library runtime path variable.
19259runpath_var=$runpath_var
19260
19261# This is the shared library path variable.
19262shlibpath_var=$shlibpath_var
19263
19264# Is shlibpath searched before the hard-coded library search path?
19265shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19266
19267# How to hardcode a shared library path into an executable.
19268hardcode_action=$hardcode_action_GCJ
19269
19270# Whether we should hardcode library paths into libraries.
19271hardcode_into_libs=$hardcode_into_libs
19272
19273# Flag to hardcode \$libdir into a binary during linking.
19274# This must work even if \$libdir does not exist.
19275hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19276
19277# If ld is used when linking, flag to hardcode \$libdir into
19278# a binary during linking. This must work even if \$libdir does
19279# not exist.
19280hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19281
19282# Whether we need a single -rpath flag with a separated argument.
19283hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19284
19285# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19286# resulting binary.
19287hardcode_direct=$hardcode_direct_GCJ
19288
19289# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19290# resulting binary.
19291hardcode_minus_L=$hardcode_minus_L_GCJ
19292
19293# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19294# the resulting binary.
19295hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19296
19297# Set to yes if building a shared library automatically hardcodes DIR into the library
19298# and all subsequent libraries and executables linked against it.
19299hardcode_automatic=$hardcode_automatic_GCJ
19300
19301# Variables whose values should be saved in libtool wrapper scripts and
19302# restored at relink time.
19303variables_saved_for_relink="$variables_saved_for_relink"
19304
19305# Whether libtool must link a program against all its dependency libraries.
19306link_all_deplibs=$link_all_deplibs_GCJ
19307
19308# Compile-time system search path for libraries
19309sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19310
19311# Run-time system search path for libraries
19312sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19313
19314# Fix the shell variable \$srcfile for the compiler.
19315fix_srcfile_path="$fix_srcfile_path_GCJ"
19316
19317# Set to yes if exported symbols are required.
19318always_export_symbols=$always_export_symbols_GCJ
19319
19320# The commands to list exported symbols.
19321export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19322
19323# The commands to extract the exported symbol list from a shared archive.
19324extract_expsyms_cmds=$lt_extract_expsyms_cmds
19325
19326# Symbols that should not be listed in the preloaded symbols.
19327exclude_expsyms=$lt_exclude_expsyms_GCJ
19328
19329# Symbols that must always be exported.
19330include_expsyms=$lt_include_expsyms_GCJ
19331
19332# ### END LIBTOOL TAG CONFIG: $tagname
19333
19334__EOF__
19335
19336
19337else
19338  # If there is no Makefile yet, we rely on a make rule to execute
19339  # `config.status --recheck' to rerun these tests and create the
19340  # libtool script then.
19341  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19342  if test -f "$ltmain_in"; then
19343    test -f Makefile && make "$ltmain"
19344  fi
19345fi
19346
19347
19348ac_ext=c
19349ac_cpp='$CPP $CPPFLAGS'
19350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19352ac_compiler_gnu=$ac_cv_c_compiler_gnu
19353
19354CC="$lt_save_CC"
19355
19356	else
19357	  tagname=""
19358	fi
19359	;;
19360
19361      RC)
19362
19363
19364
19365# Source file extension for RC test sources.
19366ac_ext=rc
19367
19368# Object file extension for compiled RC test sources.
19369objext=o
19370objext_RC=$objext
19371
19372# Code to be used in simple compile tests
19373lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19374
19375# Code to be used in simple link tests
19376lt_simple_link_test_code="$lt_simple_compile_test_code"
19377
19378# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19379
19380# If no C compiler was specified, use CC.
19381LTCC=${LTCC-"$CC"}
19382
19383# Allow CC to be a program name with arguments.
19384compiler=$CC
19385
19386
19387# Allow CC to be a program name with arguments.
19388lt_save_CC="$CC"
19389CC=${RC-"windres"}
19390compiler=$CC
19391compiler_RC=$CC
19392lt_cv_prog_compiler_c_o_RC=yes
19393
19394# The else clause should only fire when bootstrapping the
19395# libtool distribution, otherwise you forgot to ship ltmain.sh
19396# with your package, and you will get complaints that there are
19397# no rules to generate ltmain.sh.
19398if test -f "$ltmain"; then
19399  # See if we are running on zsh, and set the options which allow our commands through
19400  # without removal of \ escapes.
19401  if test -n "${ZSH_VERSION+set}" ; then
19402    setopt NO_GLOB_SUBST
19403  fi
19404  # Now quote all the things that may contain metacharacters while being
19405  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19406  # variables and quote the copies for generation of the libtool script.
19407  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19408    SED SHELL STRIP \
19409    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19410    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19411    deplibs_check_method reload_flag reload_cmds need_locks \
19412    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19413    lt_cv_sys_global_symbol_to_c_name_address \
19414    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19415    old_postinstall_cmds old_postuninstall_cmds \
19416    compiler_RC \
19417    CC_RC \
19418    LD_RC \
19419    lt_prog_compiler_wl_RC \
19420    lt_prog_compiler_pic_RC \
19421    lt_prog_compiler_static_RC \
19422    lt_prog_compiler_no_builtin_flag_RC \
19423    export_dynamic_flag_spec_RC \
19424    thread_safe_flag_spec_RC \
19425    whole_archive_flag_spec_RC \
19426    enable_shared_with_static_runtimes_RC \
19427    old_archive_cmds_RC \
19428    old_archive_from_new_cmds_RC \
19429    predep_objects_RC \
19430    postdep_objects_RC \
19431    predeps_RC \
19432    postdeps_RC \
19433    compiler_lib_search_path_RC \
19434    archive_cmds_RC \
19435    archive_expsym_cmds_RC \
19436    postinstall_cmds_RC \
19437    postuninstall_cmds_RC \
19438    old_archive_from_expsyms_cmds_RC \
19439    allow_undefined_flag_RC \
19440    no_undefined_flag_RC \
19441    export_symbols_cmds_RC \
19442    hardcode_libdir_flag_spec_RC \
19443    hardcode_libdir_flag_spec_ld_RC \
19444    hardcode_libdir_separator_RC \
19445    hardcode_automatic_RC \
19446    module_cmds_RC \
19447    module_expsym_cmds_RC \
19448    lt_cv_prog_compiler_c_o_RC \
19449    exclude_expsyms_RC \
19450    include_expsyms_RC; do
19451
19452    case $var in
19453    old_archive_cmds_RC | \
19454    old_archive_from_new_cmds_RC | \
19455    archive_cmds_RC | \
19456    archive_expsym_cmds_RC | \
19457    module_cmds_RC | \
19458    module_expsym_cmds_RC | \
19459    old_archive_from_expsyms_cmds_RC | \
19460    export_symbols_cmds_RC | \
19461    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19462    postinstall_cmds | postuninstall_cmds | \
19463    old_postinstall_cmds | old_postuninstall_cmds | \
19464    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19465      # Double-quote double-evaled strings.
19466      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19467      ;;
19468    *)
19469      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19470      ;;
19471    esac
19472  done
19473
19474  case $lt_echo in
19475  *'\$0 --fallback-echo"')
19476    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19477    ;;
19478  esac
19479
19480cfgfile="$ofile"
19481
19482  cat <<__EOF__ >> "$cfgfile"
19483# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19484
19485# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19486
19487# Shell to use when invoking shell scripts.
19488SHELL=$lt_SHELL
19489
19490# Whether or not to build shared libraries.
19491build_libtool_libs=$enable_shared
19492
19493# Whether or not to build static libraries.
19494build_old_libs=$enable_static
19495
19496# Whether or not to add -lc for building shared libraries.
19497build_libtool_need_lc=$archive_cmds_need_lc_RC
19498
19499# Whether or not to disallow shared libs when runtime libs are static
19500allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19501
19502# Whether or not to optimize for fast installation.
19503fast_install=$enable_fast_install
19504
19505# The host system.
19506host_alias=$host_alias
19507host=$host
19508
19509# An echo program that does not interpret backslashes.
19510echo=$lt_echo
19511
19512# The archiver.
19513AR=$lt_AR
19514AR_FLAGS=$lt_AR_FLAGS
19515
19516# A C compiler.
19517LTCC=$lt_LTCC
19518
19519# A language-specific compiler.
19520CC=$lt_compiler_RC
19521
19522# Is the compiler the GNU C compiler?
19523with_gcc=$GCC_RC
19524
19525# An ERE matcher.
19526EGREP=$lt_EGREP
19527
19528# The linker used to build libraries.
19529LD=$lt_LD_RC
19530
19531# Whether we need hard or soft links.
19532LN_S=$lt_LN_S
19533
19534# A BSD-compatible nm program.
19535NM=$lt_NM
19536
19537# A symbol stripping program
19538STRIP=$lt_STRIP
19539
19540# Used to examine libraries when file_magic_cmd begins "file"
19541MAGIC_CMD=$MAGIC_CMD
19542
19543# Used on cygwin: DLL creation program.
19544DLLTOOL="$DLLTOOL"
19545
19546# Used on cygwin: object dumper.
19547OBJDUMP="$OBJDUMP"
19548
19549# Used on cygwin: assembler.
19550AS="$AS"
19551
19552# The name of the directory that contains temporary libtool files.
19553objdir=$objdir
19554
19555# How to create reloadable object files.
19556reload_flag=$lt_reload_flag
19557reload_cmds=$lt_reload_cmds
19558
19559# How to pass a linker flag through the compiler.
19560wl=$lt_lt_prog_compiler_wl_RC
19561
19562# Object file suffix (normally "o").
19563objext="$ac_objext"
19564
19565# Old archive suffix (normally "a").
19566libext="$libext"
19567
19568# Shared library suffix (normally ".so").
19569shrext='$shrext'
19570
19571# Executable file suffix (normally "").
19572exeext="$exeext"
19573
19574# Additional compiler flags for building library objects.
19575pic_flag=$lt_lt_prog_compiler_pic_RC
19576pic_mode=$pic_mode
19577
19578# What is the maximum length of a command?
19579max_cmd_len=$lt_cv_sys_max_cmd_len
19580
19581# Does compiler simultaneously support -c and -o options?
19582compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19583
19584# Must we lock files when doing compilation ?
19585need_locks=$lt_need_locks
19586
19587# Do we need the lib prefix for modules?
19588need_lib_prefix=$need_lib_prefix
19589
19590# Do we need a version for libraries?
19591need_version=$need_version
19592
19593# Whether dlopen is supported.
19594dlopen_support=$enable_dlopen
19595
19596# Whether dlopen of programs is supported.
19597dlopen_self=$enable_dlopen_self
19598
19599# Whether dlopen of statically linked programs is supported.
19600dlopen_self_static=$enable_dlopen_self_static
19601
19602# Compiler flag to prevent dynamic linking.
19603link_static_flag=$lt_lt_prog_compiler_static_RC
19604
19605# Compiler flag to turn off builtin functions.
19606no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19607
19608# Compiler flag to allow reflexive dlopens.
19609export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19610
19611# Compiler flag to generate shared objects directly from archives.
19612whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19613
19614# Compiler flag to generate thread-safe objects.
19615thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19616
19617# Library versioning type.
19618version_type=$version_type
19619
19620# Format of library name prefix.
19621libname_spec=$lt_libname_spec
19622
19623# List of archive names.  First name is the real one, the rest are links.
19624# The last name is the one that the linker finds with -lNAME.
19625library_names_spec=$lt_library_names_spec
19626
19627# The coded name of the library, if different from the real name.
19628soname_spec=$lt_soname_spec
19629
19630# Commands used to build and install an old-style archive.
19631RANLIB=$lt_RANLIB
19632old_archive_cmds=$lt_old_archive_cmds_RC
19633old_postinstall_cmds=$lt_old_postinstall_cmds
19634old_postuninstall_cmds=$lt_old_postuninstall_cmds
19635
19636# Create an old-style archive from a shared archive.
19637old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19638
19639# Create a temporary old-style archive to link instead of a shared archive.
19640old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19641
19642# Commands used to build and install a shared archive.
19643archive_cmds=$lt_archive_cmds_RC
19644archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19645postinstall_cmds=$lt_postinstall_cmds
19646postuninstall_cmds=$lt_postuninstall_cmds
19647
19648# Commands used to build a loadable module (assumed same as above if empty)
19649module_cmds=$lt_module_cmds_RC
19650module_expsym_cmds=$lt_module_expsym_cmds_RC
19651
19652# Commands to strip libraries.
19653old_striplib=$lt_old_striplib
19654striplib=$lt_striplib
19655
19656# Dependencies to place before the objects being linked to create a
19657# shared library.
19658predep_objects=$lt_predep_objects_RC
19659
19660# Dependencies to place after the objects being linked to create a
19661# shared library.
19662postdep_objects=$lt_postdep_objects_RC
19663
19664# Dependencies to place before the objects being linked to create a
19665# shared library.
19666predeps=$lt_predeps_RC
19667
19668# Dependencies to place after the objects being linked to create a
19669# shared library.
19670postdeps=$lt_postdeps_RC
19671
19672# The library search path used internally by the compiler when linking
19673# a shared library.
19674compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19675
19676# Method to check whether dependent libraries are shared objects.
19677deplibs_check_method=$lt_deplibs_check_method
19678
19679# Command to use when deplibs_check_method == file_magic.
19680file_magic_cmd=$lt_file_magic_cmd
19681
19682# Flag that allows shared libraries with undefined symbols to be built.
19683allow_undefined_flag=$lt_allow_undefined_flag_RC
19684
19685# Flag that forces no undefined symbols.
19686no_undefined_flag=$lt_no_undefined_flag_RC
19687
19688# Commands used to finish a libtool library installation in a directory.
19689finish_cmds=$lt_finish_cmds
19690
19691# Same as above, but a single script fragment to be evaled but not shown.
19692finish_eval=$lt_finish_eval
19693
19694# Take the output of nm and produce a listing of raw symbols and C names.
19695global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19696
19697# Transform the output of nm in a proper C declaration
19698global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19699
19700# Transform the output of nm in a C name address pair
19701global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19702
19703# This is the shared library runtime path variable.
19704runpath_var=$runpath_var
19705
19706# This is the shared library path variable.
19707shlibpath_var=$shlibpath_var
19708
19709# Is shlibpath searched before the hard-coded library search path?
19710shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19711
19712# How to hardcode a shared library path into an executable.
19713hardcode_action=$hardcode_action_RC
19714
19715# Whether we should hardcode library paths into libraries.
19716hardcode_into_libs=$hardcode_into_libs
19717
19718# Flag to hardcode \$libdir into a binary during linking.
19719# This must work even if \$libdir does not exist.
19720hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19721
19722# If ld is used when linking, flag to hardcode \$libdir into
19723# a binary during linking. This must work even if \$libdir does
19724# not exist.
19725hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19726
19727# Whether we need a single -rpath flag with a separated argument.
19728hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19729
19730# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19731# resulting binary.
19732hardcode_direct=$hardcode_direct_RC
19733
19734# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19735# resulting binary.
19736hardcode_minus_L=$hardcode_minus_L_RC
19737
19738# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19739# the resulting binary.
19740hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19741
19742# Set to yes if building a shared library automatically hardcodes DIR into the library
19743# and all subsequent libraries and executables linked against it.
19744hardcode_automatic=$hardcode_automatic_RC
19745
19746# Variables whose values should be saved in libtool wrapper scripts and
19747# restored at relink time.
19748variables_saved_for_relink="$variables_saved_for_relink"
19749
19750# Whether libtool must link a program against all its dependency libraries.
19751link_all_deplibs=$link_all_deplibs_RC
19752
19753# Compile-time system search path for libraries
19754sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19755
19756# Run-time system search path for libraries
19757sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19758
19759# Fix the shell variable \$srcfile for the compiler.
19760fix_srcfile_path="$fix_srcfile_path_RC"
19761
19762# Set to yes if exported symbols are required.
19763always_export_symbols=$always_export_symbols_RC
19764
19765# The commands to list exported symbols.
19766export_symbols_cmds=$lt_export_symbols_cmds_RC
19767
19768# The commands to extract the exported symbol list from a shared archive.
19769extract_expsyms_cmds=$lt_extract_expsyms_cmds
19770
19771# Symbols that should not be listed in the preloaded symbols.
19772exclude_expsyms=$lt_exclude_expsyms_RC
19773
19774# Symbols that must always be exported.
19775include_expsyms=$lt_include_expsyms_RC
19776
19777# ### END LIBTOOL TAG CONFIG: $tagname
19778
19779__EOF__
19780
19781
19782else
19783  # If there is no Makefile yet, we rely on a make rule to execute
19784  # `config.status --recheck' to rerun these tests and create the
19785  # libtool script then.
19786  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19787  if test -f "$ltmain_in"; then
19788    test -f Makefile && make "$ltmain"
19789  fi
19790fi
19791
19792
19793ac_ext=c
19794ac_cpp='$CPP $CPPFLAGS'
19795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19797ac_compiler_gnu=$ac_cv_c_compiler_gnu
19798
19799CC="$lt_save_CC"
19800
19801	;;
19802
19803      *)
19804	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19805echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19806   { (exit 1); exit 1; }; }
19807	;;
19808      esac
19809
19810      # Append the new tag name to the list of available tags.
19811      if test -n "$tagname" ; then
19812      available_tags="$available_tags $tagname"
19813    fi
19814    fi
19815  done
19816  IFS="$lt_save_ifs"
19817
19818  # Now substitute the updated list of available tags.
19819  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19820    mv "${ofile}T" "$ofile"
19821    chmod +x "$ofile"
19822  else
19823    rm -f "${ofile}T"
19824    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19825echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19826   { (exit 1); exit 1; }; }
19827  fi
19828fi
19829
19830
19831
19832# This can be used to rebuild libtool when needed
19833LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19834
19835# Always use our own libtool.
19836LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19837
19838# Prevent multiple expansion
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861WFLAGS_NOUNUSED=""
19862WFLAGS_NOIMPLICITINT=""
19863if test -z "$WFLAGS" -a "$GCC" = "yes"; then
19864  # -Wno-implicit-int for broken X11 headers
19865  # leave these out for now:
19866  #   -Wcast-align doesn't work well on alpha osf/1
19867  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
19868  #   -Wmissing-declarations -Wnested-externs
19869  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
19870  WFLAGS_NOUNUSED="-Wno-unused"
19871  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
19872fi
19873
19874
19875
19876
19877# Check whether --with-openldap or --without-openldap was given.
19878if test "${with_openldap+set}" = set; then
19879  withval="$with_openldap"
19880
19881fi;
19882
19883# Check whether --with-openldap-lib or --without-openldap-lib was given.
19884if test "${with_openldap_lib+set}" = set; then
19885  withval="$with_openldap_lib"
19886  if test "$withval" = "yes" -o "$withval" = "no"; then
19887  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
19888echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
19889   { (exit 1); exit 1; }; }
19890elif test "X$with_openldap" = "X"; then
19891  with_openldap=yes
19892fi
19893fi;
19894
19895# Check whether --with-openldap-include or --without-openldap-include was given.
19896if test "${with_openldap_include+set}" = set; then
19897  withval="$with_openldap_include"
19898  if test "$withval" = "yes" -o "$withval" = "no"; then
19899  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
19900echo "$as_me: error: No argument for --with-openldap-include" >&2;}
19901   { (exit 1); exit 1; }; }
19902elif test "X$with_openldap" = "X"; then
19903  with_openldap=yes
19904fi
19905fi;
19906
19907# Check whether --with-openldap-config or --without-openldap-config was given.
19908if test "${with_openldap_config+set}" = set; then
19909  withval="$with_openldap_config"
19910
19911fi;
19912
19913
19914
19915echo "$as_me:$LINENO: checking for openldap" >&5
19916echo $ECHO_N "checking for openldap... $ECHO_C" >&6
19917
19918case "$with_openldap" in
19919yes|"") d='' ;;
19920no)	d= ;;
19921*)	d="$with_openldap" ;;
19922esac
19923
19924header_dirs=
19925lib_dirs=
19926for i in $d; do
19927	if test "$with_openldap_include" = ""; then
19928		if test -d "$i/include/openldap"; then
19929			header_dirs="$header_dirs $i/include/openldap"
19930		fi
19931		if test -d "$i/include"; then
19932			header_dirs="$header_dirs $i/include"
19933		fi
19934	fi
19935	if test "$with_openldap_lib" = ""; then
19936		if test -d "$i/lib$abilibdirext"; then
19937			lib_dirs="$lib_dirs $i/lib$abilibdirext"
19938		fi
19939	fi
19940done
19941
19942if test "$with_openldap_include"; then
19943	header_dirs="$with_openldap_include $header_dirs"
19944fi
19945if test "$with_openldap_lib"; then
19946	lib_dirs="$with_openldap_lib $lib_dirs"
19947fi
19948
19949if test "$with_openldap_config" = ""; then
19950	with_openldap_config=''
19951fi
19952
19953openldap_cflags=
19954openldap_libs=
19955
19956case "$with_openldap_config" in
19957yes|no|"")
19958	;;
19959*)
19960	openldap_cflags="`$with_openldap_config --cflags 2>&1`"
19961	openldap_libs="`$with_openldap_config --libs 2>&1`"
19962	;;
19963esac
19964
19965found=no
19966if test "$with_openldap" != no; then
19967	save_CFLAGS="$CFLAGS"
19968	save_LIBS="$LIBS"
19969	if test "$openldap_cflags" -a "$openldap_libs"; then
19970		CFLAGS="$openldap_cflags $save_CFLAGS"
19971		LIBS="$openldap_libs $save_LIBS"
19972		cat >conftest.$ac_ext <<_ACEOF
19973/* confdefs.h.  */
19974_ACEOF
19975cat confdefs.h >>conftest.$ac_ext
19976cat >>conftest.$ac_ext <<_ACEOF
19977/* end confdefs.h.  */
19978#include <lber.h>
19979#include <ldap.h>
19980int
19981main ()
19982{
19983
19984  ;
19985  return 0;
19986}
19987_ACEOF
19988rm -f conftest.$ac_objext conftest$ac_exeext
19989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19990  (eval $ac_link) 2>conftest.er1
19991  ac_status=$?
19992  grep -v '^ *+' conftest.er1 >conftest.err
19993  rm -f conftest.er1
19994  cat conftest.err >&5
19995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996  (exit $ac_status); } &&
19997	 { ac_try='test -z "$ac_c_werror_flag"
19998			 || test ! -s conftest.err'
19999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000  (eval $ac_try) 2>&5
20001  ac_status=$?
20002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003  (exit $ac_status); }; } &&
20004	 { ac_try='test -s conftest$ac_exeext'
20005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006  (eval $ac_try) 2>&5
20007  ac_status=$?
20008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009  (exit $ac_status); }; }; then
20010
20011			INCLUDE_openldap="$openldap_cflags"
20012			LIB_openldap="$openldap_libs"
20013			echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
20014echo "${ECHO_T}from $with_openldap_config" >&6
20015			found=yes
20016else
20017  echo "$as_me: failed program was:" >&5
20018sed 's/^/| /' conftest.$ac_ext >&5
20019
20020fi
20021rm -f conftest.err conftest.$ac_objext \
20022      conftest$ac_exeext conftest.$ac_ext
20023	fi
20024	if test "$found" = no; then
20025		ires= lres=
20026		for i in $header_dirs; do
20027			CFLAGS="-I$i $save_CFLAGS"
20028			cat >conftest.$ac_ext <<_ACEOF
20029/* confdefs.h.  */
20030_ACEOF
20031cat confdefs.h >>conftest.$ac_ext
20032cat >>conftest.$ac_ext <<_ACEOF
20033/* end confdefs.h.  */
20034#include <lber.h>
20035#include <ldap.h>
20036int
20037main ()
20038{
20039
20040  ;
20041  return 0;
20042}
20043_ACEOF
20044rm -f conftest.$ac_objext
20045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046  (eval $ac_compile) 2>conftest.er1
20047  ac_status=$?
20048  grep -v '^ *+' conftest.er1 >conftest.err
20049  rm -f conftest.er1
20050  cat conftest.err >&5
20051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052  (exit $ac_status); } &&
20053	 { ac_try='test -z "$ac_c_werror_flag"
20054			 || test ! -s conftest.err'
20055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056  (eval $ac_try) 2>&5
20057  ac_status=$?
20058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059  (exit $ac_status); }; } &&
20060	 { ac_try='test -s conftest.$ac_objext'
20061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062  (eval $ac_try) 2>&5
20063  ac_status=$?
20064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065  (exit $ac_status); }; }; then
20066  ires=$i;break
20067else
20068  echo "$as_me: failed program was:" >&5
20069sed 's/^/| /' conftest.$ac_ext >&5
20070
20071fi
20072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20073		done
20074		for i in $lib_dirs; do
20075			LIBS="-L$i -lldap -llber  $save_LIBS"
20076			cat >conftest.$ac_ext <<_ACEOF
20077/* confdefs.h.  */
20078_ACEOF
20079cat confdefs.h >>conftest.$ac_ext
20080cat >>conftest.$ac_ext <<_ACEOF
20081/* end confdefs.h.  */
20082#include <lber.h>
20083#include <ldap.h>
20084int
20085main ()
20086{
20087
20088  ;
20089  return 0;
20090}
20091_ACEOF
20092rm -f conftest.$ac_objext conftest$ac_exeext
20093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20094  (eval $ac_link) 2>conftest.er1
20095  ac_status=$?
20096  grep -v '^ *+' conftest.er1 >conftest.err
20097  rm -f conftest.er1
20098  cat conftest.err >&5
20099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100  (exit $ac_status); } &&
20101	 { ac_try='test -z "$ac_c_werror_flag"
20102			 || test ! -s conftest.err'
20103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104  (eval $ac_try) 2>&5
20105  ac_status=$?
20106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107  (exit $ac_status); }; } &&
20108	 { ac_try='test -s conftest$ac_exeext'
20109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110  (eval $ac_try) 2>&5
20111  ac_status=$?
20112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113  (exit $ac_status); }; }; then
20114  lres=$i;break
20115else
20116  echo "$as_me: failed program was:" >&5
20117sed 's/^/| /' conftest.$ac_ext >&5
20118
20119fi
20120rm -f conftest.err conftest.$ac_objext \
20121      conftest$ac_exeext conftest.$ac_ext
20122		done
20123		if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
20124			INCLUDE_openldap="-I$ires"
20125			LIB_openldap="-L$lres -lldap -llber "
20126			found=yes
20127			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
20128echo "${ECHO_T}headers $ires, libraries $lres" >&6
20129		fi
20130	fi
20131	CFLAGS="$save_CFLAGS"
20132	LIBS="$save_LIBS"
20133fi
20134
20135if test "$found" = yes; then
20136
20137cat >>confdefs.h <<_ACEOF
20138#define OPENLDAP 1
20139_ACEOF
20140
20141	with_openldap=yes
20142else
20143	with_openldap=no
20144	INCLUDE_openldap=
20145	LIB_openldap=
20146	echo "$as_me:$LINENO: result: no" >&5
20147echo "${ECHO_T}no" >&6
20148fi
20149
20150
20151
20152
20153
20154
20155
20156# Check whether --with-krb4 or --without-krb4 was given.
20157if test "${with_krb4+set}" = set; then
20158  withval="$with_krb4"
20159
20160fi;
20161
20162# Check whether --with-krb4-lib or --without-krb4-lib was given.
20163if test "${with_krb4_lib+set}" = set; then
20164  withval="$with_krb4_lib"
20165  if test "$withval" = "yes" -o "$withval" = "no"; then
20166  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
20167echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
20168   { (exit 1); exit 1; }; }
20169elif test "X$with_krb4" = "X"; then
20170  with_krb4=yes
20171fi
20172fi;
20173
20174# Check whether --with-krb4-include or --without-krb4-include was given.
20175if test "${with_krb4_include+set}" = set; then
20176  withval="$with_krb4_include"
20177  if test "$withval" = "yes" -o "$withval" = "no"; then
20178  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
20179echo "$as_me: error: No argument for --with-krb4-include" >&2;}
20180   { (exit 1); exit 1; }; }
20181elif test "X$with_krb4" = "X"; then
20182  with_krb4=yes
20183fi
20184fi;
20185
20186# Check whether --with-krb4-config or --without-krb4-config was given.
20187if test "${with_krb4_config+set}" = set; then
20188  withval="$with_krb4_config"
20189
20190fi;
20191
20192
20193
20194echo "$as_me:$LINENO: checking for krb4" >&5
20195echo $ECHO_N "checking for krb4... $ECHO_C" >&6
20196
20197case "$with_krb4" in
20198yes|"") d='/usr/athena' ;;
20199no)	d= ;;
20200*)	d="$with_krb4" ;;
20201esac
20202
20203header_dirs=
20204lib_dirs=
20205for i in $d; do
20206	if test "$with_krb4_include" = ""; then
20207		if test -d "$i/include/krb4"; then
20208			header_dirs="$header_dirs $i/include/krb4"
20209		fi
20210		if test -d "$i/include"; then
20211			header_dirs="$header_dirs $i/include"
20212		fi
20213	fi
20214	if test "$with_krb4_lib" = ""; then
20215		if test -d "$i/lib$abilibdirext"; then
20216			lib_dirs="$lib_dirs $i/lib$abilibdirext"
20217		fi
20218	fi
20219done
20220
20221if test "$with_krb4_include"; then
20222	header_dirs="$with_krb4_include $header_dirs"
20223fi
20224if test "$with_krb4_lib"; then
20225	lib_dirs="$with_krb4_lib $lib_dirs"
20226fi
20227
20228if test "$with_krb4_config" = ""; then
20229	with_krb4_config='krb4-config'
20230fi
20231
20232krb4_cflags=
20233krb4_libs=
20234
20235case "$with_krb4_config" in
20236yes|no|"")
20237	;;
20238*)
20239	krb4_cflags="`$with_krb4_config --cflags 2>&1`"
20240	krb4_libs="`$with_krb4_config --libs 2>&1`"
20241	;;
20242esac
20243
20244found=no
20245if test "$with_krb4" != no; then
20246	save_CFLAGS="$CFLAGS"
20247	save_LIBS="$LIBS"
20248	if test "$krb4_cflags" -a "$krb4_libs"; then
20249		CFLAGS="$krb4_cflags $save_CFLAGS"
20250		LIBS="$krb4_libs $save_LIBS"
20251		cat >conftest.$ac_ext <<_ACEOF
20252/* confdefs.h.  */
20253_ACEOF
20254cat confdefs.h >>conftest.$ac_ext
20255cat >>conftest.$ac_ext <<_ACEOF
20256/* end confdefs.h.  */
20257#include <krb.h>
20258int
20259main ()
20260{
20261
20262  ;
20263  return 0;
20264}
20265_ACEOF
20266rm -f conftest.$ac_objext conftest$ac_exeext
20267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20268  (eval $ac_link) 2>conftest.er1
20269  ac_status=$?
20270  grep -v '^ *+' conftest.er1 >conftest.err
20271  rm -f conftest.er1
20272  cat conftest.err >&5
20273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274  (exit $ac_status); } &&
20275	 { ac_try='test -z "$ac_c_werror_flag"
20276			 || test ! -s conftest.err'
20277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278  (eval $ac_try) 2>&5
20279  ac_status=$?
20280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281  (exit $ac_status); }; } &&
20282	 { ac_try='test -s conftest$ac_exeext'
20283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284  (eval $ac_try) 2>&5
20285  ac_status=$?
20286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287  (exit $ac_status); }; }; then
20288
20289			INCLUDE_krb4="$krb4_cflags"
20290			LIB_krb4="$krb4_libs"
20291			echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
20292echo "${ECHO_T}from $with_krb4_config" >&6
20293			found=yes
20294else
20295  echo "$as_me: failed program was:" >&5
20296sed 's/^/| /' conftest.$ac_ext >&5
20297
20298fi
20299rm -f conftest.err conftest.$ac_objext \
20300      conftest$ac_exeext conftest.$ac_ext
20301	fi
20302	if test "$found" = no; then
20303		ires= lres=
20304		for i in $header_dirs; do
20305			CFLAGS="-I$i $save_CFLAGS"
20306			cat >conftest.$ac_ext <<_ACEOF
20307/* confdefs.h.  */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h.  */
20312#include <krb.h>
20313int
20314main ()
20315{
20316
20317  ;
20318  return 0;
20319}
20320_ACEOF
20321rm -f conftest.$ac_objext
20322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20323  (eval $ac_compile) 2>conftest.er1
20324  ac_status=$?
20325  grep -v '^ *+' conftest.er1 >conftest.err
20326  rm -f conftest.er1
20327  cat conftest.err >&5
20328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329  (exit $ac_status); } &&
20330	 { ac_try='test -z "$ac_c_werror_flag"
20331			 || test ! -s conftest.err'
20332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333  (eval $ac_try) 2>&5
20334  ac_status=$?
20335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336  (exit $ac_status); }; } &&
20337	 { ac_try='test -s conftest.$ac_objext'
20338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339  (eval $ac_try) 2>&5
20340  ac_status=$?
20341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342  (exit $ac_status); }; }; then
20343  ires=$i;break
20344else
20345  echo "$as_me: failed program was:" >&5
20346sed 's/^/| /' conftest.$ac_ext >&5
20347
20348fi
20349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20350		done
20351		for i in $lib_dirs; do
20352			LIBS="-L$i -lkrb -ldes $save_LIBS"
20353			cat >conftest.$ac_ext <<_ACEOF
20354/* confdefs.h.  */
20355_ACEOF
20356cat confdefs.h >>conftest.$ac_ext
20357cat >>conftest.$ac_ext <<_ACEOF
20358/* end confdefs.h.  */
20359#include <krb.h>
20360int
20361main ()
20362{
20363
20364  ;
20365  return 0;
20366}
20367_ACEOF
20368rm -f conftest.$ac_objext conftest$ac_exeext
20369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20370  (eval $ac_link) 2>conftest.er1
20371  ac_status=$?
20372  grep -v '^ *+' conftest.er1 >conftest.err
20373  rm -f conftest.er1
20374  cat conftest.err >&5
20375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376  (exit $ac_status); } &&
20377	 { ac_try='test -z "$ac_c_werror_flag"
20378			 || test ! -s conftest.err'
20379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380  (eval $ac_try) 2>&5
20381  ac_status=$?
20382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383  (exit $ac_status); }; } &&
20384	 { ac_try='test -s conftest$ac_exeext'
20385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386  (eval $ac_try) 2>&5
20387  ac_status=$?
20388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389  (exit $ac_status); }; }; then
20390  lres=$i;break
20391else
20392  echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
20395fi
20396rm -f conftest.err conftest.$ac_objext \
20397      conftest$ac_exeext conftest.$ac_ext
20398		done
20399		if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
20400			INCLUDE_krb4="-I$ires"
20401			LIB_krb4="-L$lres -lkrb -ldes"
20402			found=yes
20403			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
20404echo "${ECHO_T}headers $ires, libraries $lres" >&6
20405		fi
20406	fi
20407	CFLAGS="$save_CFLAGS"
20408	LIBS="$save_LIBS"
20409fi
20410
20411if test "$found" = yes; then
20412
20413cat >>confdefs.h <<_ACEOF
20414#define KRB4 1
20415_ACEOF
20416
20417	with_krb4=yes
20418else
20419	with_krb4=no
20420	INCLUDE_krb4=
20421	LIB_krb4=
20422	echo "$as_me:$LINENO: result: no" >&5
20423echo "${ECHO_T}no" >&6
20424fi
20425
20426
20427
20428
20429
20430LIB_kdb=
20431if test "$with_krb4" != "no"; then
20432	save_CFLAGS="$CFLAGS"
20433	CFLAGS="$CFLAGS $INCLUDE_krb4"
20434	save_LIBS="$LIBS"
20435	LIBS="$LIB_krb4 $LIBS"
20436	EXTRA_LIB45=lib45.a
20437
20438	echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
20439echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
20440if test "${ac_cv_func_krb_put_int_four+set}" = set; then
20441  echo $ECHO_N "(cached) $ECHO_C" >&6
20442else
20443  cat >conftest.$ac_ext <<_ACEOF
20444/* confdefs.h.  */
20445_ACEOF
20446cat confdefs.h >>conftest.$ac_ext
20447cat >>conftest.$ac_ext <<_ACEOF
20448/* end confdefs.h.  */
20449#include <krb.h>
20450int
20451main ()
20452{
20453
20454		char tmp[4];
20455		krb_put_int(17, tmp, 4, sizeof(tmp));
20456  ;
20457  return 0;
20458}
20459_ACEOF
20460rm -f conftest.$ac_objext
20461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20462  (eval $ac_compile) 2>conftest.er1
20463  ac_status=$?
20464  grep -v '^ *+' conftest.er1 >conftest.err
20465  rm -f conftest.er1
20466  cat conftest.err >&5
20467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468  (exit $ac_status); } &&
20469	 { ac_try='test -z "$ac_c_werror_flag"
20470			 || test ! -s conftest.err'
20471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472  (eval $ac_try) 2>&5
20473  ac_status=$?
20474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475  (exit $ac_status); }; } &&
20476	 { ac_try='test -s conftest.$ac_objext'
20477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478  (eval $ac_try) 2>&5
20479  ac_status=$?
20480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481  (exit $ac_status); }; }; then
20482  ac_cv_func_krb_put_int_four=yes
20483else
20484  echo "$as_me: failed program was:" >&5
20485sed 's/^/| /' conftest.$ac_ext >&5
20486
20487ac_cv_func_krb_put_int_four=no
20488fi
20489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20490
20491fi
20492echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
20493echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
20494	if test "$ac_cv_func_krb_put_int_four" = yes; then
20495
20496cat >>confdefs.h <<\_ACEOF
20497#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
20498_ACEOF
20499
20500	fi
20501
20502
20503	echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
20504echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
20505if test "${ac_cv_func_krb_verify_secure+set}" = set; then
20506  echo $ECHO_N "(cached) $ECHO_C" >&6
20507else
20508  cat >conftest.$ac_ext <<_ACEOF
20509/* confdefs.h.  */
20510_ACEOF
20511cat confdefs.h >>conftest.$ac_ext
20512cat >>conftest.$ac_ext <<_ACEOF
20513/* end confdefs.h.  */
20514#include <krb.h>
20515int
20516main ()
20517{
20518
20519		int x = KRB_VERIFY_SECURE
20520  ;
20521  return 0;
20522}
20523_ACEOF
20524rm -f conftest.$ac_objext
20525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20526  (eval $ac_compile) 2>conftest.er1
20527  ac_status=$?
20528  grep -v '^ *+' conftest.er1 >conftest.err
20529  rm -f conftest.er1
20530  cat conftest.err >&5
20531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532  (exit $ac_status); } &&
20533	 { ac_try='test -z "$ac_c_werror_flag"
20534			 || test ! -s conftest.err'
20535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536  (eval $ac_try) 2>&5
20537  ac_status=$?
20538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539  (exit $ac_status); }; } &&
20540	 { ac_try='test -s conftest.$ac_objext'
20541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542  (eval $ac_try) 2>&5
20543  ac_status=$?
20544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545  (exit $ac_status); }; }; then
20546  ac_cv_func_krb_verify_secure=yes
20547else
20548  echo "$as_me: failed program was:" >&5
20549sed 's/^/| /' conftest.$ac_ext >&5
20550
20551ac_cv_func_krb_verify_secure=no
20552fi
20553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20554
20555fi
20556echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
20557echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
20558	if test "$ac_cv_func_krb_verify_secure" != yes; then
20559
20560cat >>confdefs.h <<\_ACEOF
20561#define KRB_VERIFY_SECURE 1
20562_ACEOF
20563
20564
20565cat >>confdefs.h <<\_ACEOF
20566#define KRB_VERIFY_SECURE_FAIL 2
20567_ACEOF
20568
20569	fi
20570	echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
20571echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
20572if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
20573  echo $ECHO_N "(cached) $ECHO_C" >&6
20574else
20575  cat >conftest.$ac_ext <<_ACEOF
20576/* confdefs.h.  */
20577_ACEOF
20578cat confdefs.h >>conftest.$ac_ext
20579cat >>conftest.$ac_ext <<_ACEOF
20580/* end confdefs.h.  */
20581#include <krb.h>
20582int
20583main ()
20584{
20585
20586		int x = KRB_VERIFY_NOT_SECURE
20587  ;
20588  return 0;
20589}
20590_ACEOF
20591rm -f conftest.$ac_objext
20592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20593  (eval $ac_compile) 2>conftest.er1
20594  ac_status=$?
20595  grep -v '^ *+' conftest.er1 >conftest.err
20596  rm -f conftest.er1
20597  cat conftest.err >&5
20598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599  (exit $ac_status); } &&
20600	 { ac_try='test -z "$ac_c_werror_flag"
20601			 || test ! -s conftest.err'
20602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603  (eval $ac_try) 2>&5
20604  ac_status=$?
20605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606  (exit $ac_status); }; } &&
20607	 { ac_try='test -s conftest.$ac_objext'
20608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609  (eval $ac_try) 2>&5
20610  ac_status=$?
20611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612  (exit $ac_status); }; }; then
20613  ac_cv_func_krb_verify_not_secure=yes
20614else
20615  echo "$as_me: failed program was:" >&5
20616sed 's/^/| /' conftest.$ac_ext >&5
20617
20618ac_cv_func_krb_verify_not_secure=no
20619fi
20620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20621
20622fi
20623echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
20624echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
20625	if test "$ac_cv_func_krb_verify_not_secure" != yes; then
20626
20627cat >>confdefs.h <<\_ACEOF
20628#define KRB_VERIFY_NOT_SECURE 0
20629_ACEOF
20630
20631	fi
20632
20633
20634
20635
20636echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
20637echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
20638if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
20639  echo $ECHO_N "(cached) $ECHO_C" >&6
20640else
20641
20642if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
20643	ac_save_LIBS="$LIBS"
20644	for ac_lib in "" ; do
20645		case "$ac_lib" in
20646		"") ;;
20647		yes) ac_lib="" ;;
20648		no) continue ;;
20649		-l*) ;;
20650		*) ac_lib="-l$ac_lib" ;;
20651		esac
20652		LIBS=" $ac_lib  $ac_save_LIBS"
20653		cat >conftest.$ac_ext <<_ACEOF
20654/* confdefs.h.  */
20655_ACEOF
20656cat confdefs.h >>conftest.$ac_ext
20657cat >>conftest.$ac_ext <<_ACEOF
20658/* end confdefs.h.  */
20659
20660int
20661main ()
20662{
20663krb_enable_debug()
20664  ;
20665  return 0;
20666}
20667_ACEOF
20668rm -f conftest.$ac_objext conftest$ac_exeext
20669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20670  (eval $ac_link) 2>conftest.er1
20671  ac_status=$?
20672  grep -v '^ *+' conftest.er1 >conftest.err
20673  rm -f conftest.er1
20674  cat conftest.err >&5
20675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676  (exit $ac_status); } &&
20677	 { ac_try='test -z "$ac_c_werror_flag"
20678			 || test ! -s conftest.err'
20679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680  (eval $ac_try) 2>&5
20681  ac_status=$?
20682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683  (exit $ac_status); }; } &&
20684	 { ac_try='test -s conftest$ac_exeext'
20685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686  (eval $ac_try) 2>&5
20687  ac_status=$?
20688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689  (exit $ac_status); }; }; then
20690  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
20691else
20692  echo "$as_me: failed program was:" >&5
20693sed 's/^/| /' conftest.$ac_ext >&5
20694
20695fi
20696rm -f conftest.err conftest.$ac_objext \
20697      conftest$ac_exeext conftest.$ac_ext
20698	done
20699	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
20700	LIBS="$ac_save_LIBS"
20701fi
20702
20703fi
20704
20705
20706eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
20707
20708if false; then
20709
20710for ac_func in krb_enable_debug
20711do
20712as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20713echo "$as_me:$LINENO: checking for $ac_func" >&5
20714echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20715if eval "test \"\${$as_ac_var+set}\" = set"; then
20716  echo $ECHO_N "(cached) $ECHO_C" >&6
20717else
20718  cat >conftest.$ac_ext <<_ACEOF
20719/* confdefs.h.  */
20720_ACEOF
20721cat confdefs.h >>conftest.$ac_ext
20722cat >>conftest.$ac_ext <<_ACEOF
20723/* end confdefs.h.  */
20724/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20725   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20726#define $ac_func innocuous_$ac_func
20727
20728/* System header to define __stub macros and hopefully few prototypes,
20729    which can conflict with char $ac_func (); below.
20730    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20731    <limits.h> exists even on freestanding compilers.  */
20732
20733#ifdef __STDC__
20734# include <limits.h>
20735#else
20736# include <assert.h>
20737#endif
20738
20739#undef $ac_func
20740
20741/* Override any gcc2 internal prototype to avoid an error.  */
20742#ifdef __cplusplus
20743extern "C"
20744{
20745#endif
20746/* We use char because int might match the return type of a gcc2
20747   builtin and then its argument prototype would still apply.  */
20748char $ac_func ();
20749/* The GNU C library defines this for functions which it implements
20750    to always fail with ENOSYS.  Some functions are actually named
20751    something starting with __ and the normal name is an alias.  */
20752#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20753choke me
20754#else
20755char (*f) () = $ac_func;
20756#endif
20757#ifdef __cplusplus
20758}
20759#endif
20760
20761int
20762main ()
20763{
20764return f != $ac_func;
20765  ;
20766  return 0;
20767}
20768_ACEOF
20769rm -f conftest.$ac_objext conftest$ac_exeext
20770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20771  (eval $ac_link) 2>conftest.er1
20772  ac_status=$?
20773  grep -v '^ *+' conftest.er1 >conftest.err
20774  rm -f conftest.er1
20775  cat conftest.err >&5
20776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777  (exit $ac_status); } &&
20778	 { ac_try='test -z "$ac_c_werror_flag"
20779			 || test ! -s conftest.err'
20780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781  (eval $ac_try) 2>&5
20782  ac_status=$?
20783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784  (exit $ac_status); }; } &&
20785	 { ac_try='test -s conftest$ac_exeext'
20786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787  (eval $ac_try) 2>&5
20788  ac_status=$?
20789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790  (exit $ac_status); }; }; then
20791  eval "$as_ac_var=yes"
20792else
20793  echo "$as_me: failed program was:" >&5
20794sed 's/^/| /' conftest.$ac_ext >&5
20795
20796eval "$as_ac_var=no"
20797fi
20798rm -f conftest.err conftest.$ac_objext \
20799      conftest$ac_exeext conftest.$ac_ext
20800fi
20801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20802echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20803if test `eval echo '${'$as_ac_var'}'` = yes; then
20804  cat >>confdefs.h <<_ACEOF
20805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20806_ACEOF
20807
20808fi
20809done
20810
20811fi
20812# krb_enable_debug
20813eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
20814eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
20815eval "LIB_krb_enable_debug=$ac_res"
20816
20817case "$ac_res" in
20818	yes)
20819	eval "ac_cv_func_krb_enable_debug=yes"
20820	eval "LIB_krb_enable_debug="
20821	cat >>confdefs.h <<_ACEOF
20822#define $ac_tr_func 1
20823_ACEOF
20824
20825	echo "$as_me:$LINENO: result: yes" >&5
20826echo "${ECHO_T}yes" >&6
20827	;;
20828	no)
20829	eval "ac_cv_func_krb_enable_debug=no"
20830	eval "LIB_krb_enable_debug="
20831	echo "$as_me:$LINENO: result: no" >&5
20832echo "${ECHO_T}no" >&6
20833	;;
20834	*)
20835	eval "ac_cv_func_krb_enable_debug=yes"
20836	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
20837	cat >>confdefs.h <<_ACEOF
20838#define $ac_tr_func 1
20839_ACEOF
20840
20841	cat >>confdefs.h <<_ACEOF
20842#define $ac_tr_lib 1
20843_ACEOF
20844
20845	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
20846echo "${ECHO_T}yes, in $ac_res" >&6
20847	;;
20848esac
20849
20850
20851if test -n "$LIB_krb_enable_debug"; then
20852	LIBS="$LIB_krb_enable_debug $LIBS"
20853fi
20854
20855
20856
20857
20858
20859echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
20860echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
20861if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
20862  echo $ECHO_N "(cached) $ECHO_C" >&6
20863else
20864
20865if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
20866	ac_save_LIBS="$LIBS"
20867	for ac_lib in "" ; do
20868		case "$ac_lib" in
20869		"") ;;
20870		yes) ac_lib="" ;;
20871		no) continue ;;
20872		-l*) ;;
20873		*) ac_lib="-l$ac_lib" ;;
20874		esac
20875		LIBS=" $ac_lib  $ac_save_LIBS"
20876		cat >conftest.$ac_ext <<_ACEOF
20877/* confdefs.h.  */
20878_ACEOF
20879cat confdefs.h >>conftest.$ac_ext
20880cat >>conftest.$ac_ext <<_ACEOF
20881/* end confdefs.h.  */
20882
20883int
20884main ()
20885{
20886krb_disable_debug()
20887  ;
20888  return 0;
20889}
20890_ACEOF
20891rm -f conftest.$ac_objext conftest$ac_exeext
20892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20893  (eval $ac_link) 2>conftest.er1
20894  ac_status=$?
20895  grep -v '^ *+' conftest.er1 >conftest.err
20896  rm -f conftest.er1
20897  cat conftest.err >&5
20898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899  (exit $ac_status); } &&
20900	 { ac_try='test -z "$ac_c_werror_flag"
20901			 || test ! -s conftest.err'
20902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903  (eval $ac_try) 2>&5
20904  ac_status=$?
20905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906  (exit $ac_status); }; } &&
20907	 { ac_try='test -s conftest$ac_exeext'
20908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909  (eval $ac_try) 2>&5
20910  ac_status=$?
20911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912  (exit $ac_status); }; }; then
20913  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
20914else
20915  echo "$as_me: failed program was:" >&5
20916sed 's/^/| /' conftest.$ac_ext >&5
20917
20918fi
20919rm -f conftest.err conftest.$ac_objext \
20920      conftest$ac_exeext conftest.$ac_ext
20921	done
20922	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
20923	LIBS="$ac_save_LIBS"
20924fi
20925
20926fi
20927
20928
20929eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
20930
20931if false; then
20932
20933for ac_func in krb_disable_debug
20934do
20935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20936echo "$as_me:$LINENO: checking for $ac_func" >&5
20937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20938if eval "test \"\${$as_ac_var+set}\" = set"; then
20939  echo $ECHO_N "(cached) $ECHO_C" >&6
20940else
20941  cat >conftest.$ac_ext <<_ACEOF
20942/* confdefs.h.  */
20943_ACEOF
20944cat confdefs.h >>conftest.$ac_ext
20945cat >>conftest.$ac_ext <<_ACEOF
20946/* end confdefs.h.  */
20947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20948   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20949#define $ac_func innocuous_$ac_func
20950
20951/* System header to define __stub macros and hopefully few prototypes,
20952    which can conflict with char $ac_func (); below.
20953    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20954    <limits.h> exists even on freestanding compilers.  */
20955
20956#ifdef __STDC__
20957# include <limits.h>
20958#else
20959# include <assert.h>
20960#endif
20961
20962#undef $ac_func
20963
20964/* Override any gcc2 internal prototype to avoid an error.  */
20965#ifdef __cplusplus
20966extern "C"
20967{
20968#endif
20969/* We use char because int might match the return type of a gcc2
20970   builtin and then its argument prototype would still apply.  */
20971char $ac_func ();
20972/* The GNU C library defines this for functions which it implements
20973    to always fail with ENOSYS.  Some functions are actually named
20974    something starting with __ and the normal name is an alias.  */
20975#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20976choke me
20977#else
20978char (*f) () = $ac_func;
20979#endif
20980#ifdef __cplusplus
20981}
20982#endif
20983
20984int
20985main ()
20986{
20987return f != $ac_func;
20988  ;
20989  return 0;
20990}
20991_ACEOF
20992rm -f conftest.$ac_objext conftest$ac_exeext
20993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20994  (eval $ac_link) 2>conftest.er1
20995  ac_status=$?
20996  grep -v '^ *+' conftest.er1 >conftest.err
20997  rm -f conftest.er1
20998  cat conftest.err >&5
20999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000  (exit $ac_status); } &&
21001	 { ac_try='test -z "$ac_c_werror_flag"
21002			 || test ! -s conftest.err'
21003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004  (eval $ac_try) 2>&5
21005  ac_status=$?
21006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007  (exit $ac_status); }; } &&
21008	 { ac_try='test -s conftest$ac_exeext'
21009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010  (eval $ac_try) 2>&5
21011  ac_status=$?
21012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013  (exit $ac_status); }; }; then
21014  eval "$as_ac_var=yes"
21015else
21016  echo "$as_me: failed program was:" >&5
21017sed 's/^/| /' conftest.$ac_ext >&5
21018
21019eval "$as_ac_var=no"
21020fi
21021rm -f conftest.err conftest.$ac_objext \
21022      conftest$ac_exeext conftest.$ac_ext
21023fi
21024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21025echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21026if test `eval echo '${'$as_ac_var'}'` = yes; then
21027  cat >>confdefs.h <<_ACEOF
21028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21029_ACEOF
21030
21031fi
21032done
21033
21034fi
21035# krb_disable_debug
21036eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21037eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21038eval "LIB_krb_disable_debug=$ac_res"
21039
21040case "$ac_res" in
21041	yes)
21042	eval "ac_cv_func_krb_disable_debug=yes"
21043	eval "LIB_krb_disable_debug="
21044	cat >>confdefs.h <<_ACEOF
21045#define $ac_tr_func 1
21046_ACEOF
21047
21048	echo "$as_me:$LINENO: result: yes" >&5
21049echo "${ECHO_T}yes" >&6
21050	;;
21051	no)
21052	eval "ac_cv_func_krb_disable_debug=no"
21053	eval "LIB_krb_disable_debug="
21054	echo "$as_me:$LINENO: result: no" >&5
21055echo "${ECHO_T}no" >&6
21056	;;
21057	*)
21058	eval "ac_cv_func_krb_disable_debug=yes"
21059	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21060	cat >>confdefs.h <<_ACEOF
21061#define $ac_tr_func 1
21062_ACEOF
21063
21064	cat >>confdefs.h <<_ACEOF
21065#define $ac_tr_lib 1
21066_ACEOF
21067
21068	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21069echo "${ECHO_T}yes, in $ac_res" >&6
21070	;;
21071esac
21072
21073
21074if test -n "$LIB_krb_disable_debug"; then
21075	LIBS="$LIB_krb_disable_debug $LIBS"
21076fi
21077
21078
21079
21080
21081
21082echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
21083echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
21084if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
21085  echo $ECHO_N "(cached) $ECHO_C" >&6
21086else
21087
21088if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
21089	ac_save_LIBS="$LIBS"
21090	for ac_lib in "" ; do
21091		case "$ac_lib" in
21092		"") ;;
21093		yes) ac_lib="" ;;
21094		no) continue ;;
21095		-l*) ;;
21096		*) ac_lib="-l$ac_lib" ;;
21097		esac
21098		LIBS=" $ac_lib  $ac_save_LIBS"
21099		cat >conftest.$ac_ext <<_ACEOF
21100/* confdefs.h.  */
21101_ACEOF
21102cat confdefs.h >>conftest.$ac_ext
21103cat >>conftest.$ac_ext <<_ACEOF
21104/* end confdefs.h.  */
21105
21106int
21107main ()
21108{
21109krb_get_our_ip_for_realm()
21110  ;
21111  return 0;
21112}
21113_ACEOF
21114rm -f conftest.$ac_objext conftest$ac_exeext
21115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21116  (eval $ac_link) 2>conftest.er1
21117  ac_status=$?
21118  grep -v '^ *+' conftest.er1 >conftest.err
21119  rm -f conftest.er1
21120  cat conftest.err >&5
21121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122  (exit $ac_status); } &&
21123	 { ac_try='test -z "$ac_c_werror_flag"
21124			 || test ! -s conftest.err'
21125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126  (eval $ac_try) 2>&5
21127  ac_status=$?
21128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129  (exit $ac_status); }; } &&
21130	 { ac_try='test -s conftest$ac_exeext'
21131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132  (eval $ac_try) 2>&5
21133  ac_status=$?
21134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135  (exit $ac_status); }; }; then
21136  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
21137else
21138  echo "$as_me: failed program was:" >&5
21139sed 's/^/| /' conftest.$ac_ext >&5
21140
21141fi
21142rm -f conftest.err conftest.$ac_objext \
21143      conftest$ac_exeext conftest.$ac_ext
21144	done
21145	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
21146	LIBS="$ac_save_LIBS"
21147fi
21148
21149fi
21150
21151
21152eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
21153
21154if false; then
21155
21156for ac_func in krb_get_our_ip_for_realm
21157do
21158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21159echo "$as_me:$LINENO: checking for $ac_func" >&5
21160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21161if eval "test \"\${$as_ac_var+set}\" = set"; then
21162  echo $ECHO_N "(cached) $ECHO_C" >&6
21163else
21164  cat >conftest.$ac_ext <<_ACEOF
21165/* confdefs.h.  */
21166_ACEOF
21167cat confdefs.h >>conftest.$ac_ext
21168cat >>conftest.$ac_ext <<_ACEOF
21169/* end confdefs.h.  */
21170/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21171   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21172#define $ac_func innocuous_$ac_func
21173
21174/* System header to define __stub macros and hopefully few prototypes,
21175    which can conflict with char $ac_func (); below.
21176    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21177    <limits.h> exists even on freestanding compilers.  */
21178
21179#ifdef __STDC__
21180# include <limits.h>
21181#else
21182# include <assert.h>
21183#endif
21184
21185#undef $ac_func
21186
21187/* Override any gcc2 internal prototype to avoid an error.  */
21188#ifdef __cplusplus
21189extern "C"
21190{
21191#endif
21192/* We use char because int might match the return type of a gcc2
21193   builtin and then its argument prototype would still apply.  */
21194char $ac_func ();
21195/* The GNU C library defines this for functions which it implements
21196    to always fail with ENOSYS.  Some functions are actually named
21197    something starting with __ and the normal name is an alias.  */
21198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21199choke me
21200#else
21201char (*f) () = $ac_func;
21202#endif
21203#ifdef __cplusplus
21204}
21205#endif
21206
21207int
21208main ()
21209{
21210return f != $ac_func;
21211  ;
21212  return 0;
21213}
21214_ACEOF
21215rm -f conftest.$ac_objext conftest$ac_exeext
21216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21217  (eval $ac_link) 2>conftest.er1
21218  ac_status=$?
21219  grep -v '^ *+' conftest.er1 >conftest.err
21220  rm -f conftest.er1
21221  cat conftest.err >&5
21222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223  (exit $ac_status); } &&
21224	 { ac_try='test -z "$ac_c_werror_flag"
21225			 || test ! -s conftest.err'
21226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227  (eval $ac_try) 2>&5
21228  ac_status=$?
21229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230  (exit $ac_status); }; } &&
21231	 { ac_try='test -s conftest$ac_exeext'
21232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233  (eval $ac_try) 2>&5
21234  ac_status=$?
21235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236  (exit $ac_status); }; }; then
21237  eval "$as_ac_var=yes"
21238else
21239  echo "$as_me: failed program was:" >&5
21240sed 's/^/| /' conftest.$ac_ext >&5
21241
21242eval "$as_ac_var=no"
21243fi
21244rm -f conftest.err conftest.$ac_objext \
21245      conftest$ac_exeext conftest.$ac_ext
21246fi
21247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21248echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21249if test `eval echo '${'$as_ac_var'}'` = yes; then
21250  cat >>confdefs.h <<_ACEOF
21251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21252_ACEOF
21253
21254fi
21255done
21256
21257fi
21258# krb_get_our_ip_for_realm
21259eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21260eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21261eval "LIB_krb_get_our_ip_for_realm=$ac_res"
21262
21263case "$ac_res" in
21264	yes)
21265	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
21266	eval "LIB_krb_get_our_ip_for_realm="
21267	cat >>confdefs.h <<_ACEOF
21268#define $ac_tr_func 1
21269_ACEOF
21270
21271	echo "$as_me:$LINENO: result: yes" >&5
21272echo "${ECHO_T}yes" >&6
21273	;;
21274	no)
21275	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
21276	eval "LIB_krb_get_our_ip_for_realm="
21277	echo "$as_me:$LINENO: result: no" >&5
21278echo "${ECHO_T}no" >&6
21279	;;
21280	*)
21281	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
21282	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21283	cat >>confdefs.h <<_ACEOF
21284#define $ac_tr_func 1
21285_ACEOF
21286
21287	cat >>confdefs.h <<_ACEOF
21288#define $ac_tr_lib 1
21289_ACEOF
21290
21291	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21292echo "${ECHO_T}yes, in $ac_res" >&6
21293	;;
21294esac
21295
21296
21297if test -n "$LIB_krb_get_our_ip_for_realm"; then
21298	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
21299fi
21300
21301
21302
21303
21304
21305echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
21306echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
21307if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
21308  echo $ECHO_N "(cached) $ECHO_C" >&6
21309else
21310
21311if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
21312	ac_save_LIBS="$LIBS"
21313	for ac_lib in "" ; do
21314		case "$ac_lib" in
21315		"") ;;
21316		yes) ac_lib="" ;;
21317		no) continue ;;
21318		-l*) ;;
21319		*) ac_lib="-l$ac_lib" ;;
21320		esac
21321		LIBS=" $ac_lib  $ac_save_LIBS"
21322		cat >conftest.$ac_ext <<_ACEOF
21323/* confdefs.h.  */
21324_ACEOF
21325cat confdefs.h >>conftest.$ac_ext
21326cat >>conftest.$ac_ext <<_ACEOF
21327/* end confdefs.h.  */
21328
21329int
21330main ()
21331{
21332krb_kdctimeofday()
21333  ;
21334  return 0;
21335}
21336_ACEOF
21337rm -f conftest.$ac_objext conftest$ac_exeext
21338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339  (eval $ac_link) 2>conftest.er1
21340  ac_status=$?
21341  grep -v '^ *+' conftest.er1 >conftest.err
21342  rm -f conftest.er1
21343  cat conftest.err >&5
21344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345  (exit $ac_status); } &&
21346	 { ac_try='test -z "$ac_c_werror_flag"
21347			 || test ! -s conftest.err'
21348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349  (eval $ac_try) 2>&5
21350  ac_status=$?
21351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352  (exit $ac_status); }; } &&
21353	 { ac_try='test -s conftest$ac_exeext'
21354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355  (eval $ac_try) 2>&5
21356  ac_status=$?
21357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358  (exit $ac_status); }; }; then
21359  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
21360else
21361  echo "$as_me: failed program was:" >&5
21362sed 's/^/| /' conftest.$ac_ext >&5
21363
21364fi
21365rm -f conftest.err conftest.$ac_objext \
21366      conftest$ac_exeext conftest.$ac_ext
21367	done
21368	eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
21369	LIBS="$ac_save_LIBS"
21370fi
21371
21372fi
21373
21374
21375eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"
21376
21377if false; then
21378
21379for ac_func in krb_kdctimeofday
21380do
21381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21382echo "$as_me:$LINENO: checking for $ac_func" >&5
21383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21384if eval "test \"\${$as_ac_var+set}\" = set"; then
21385  echo $ECHO_N "(cached) $ECHO_C" >&6
21386else
21387  cat >conftest.$ac_ext <<_ACEOF
21388/* confdefs.h.  */
21389_ACEOF
21390cat confdefs.h >>conftest.$ac_ext
21391cat >>conftest.$ac_ext <<_ACEOF
21392/* end confdefs.h.  */
21393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21394   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21395#define $ac_func innocuous_$ac_func
21396
21397/* System header to define __stub macros and hopefully few prototypes,
21398    which can conflict with char $ac_func (); below.
21399    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21400    <limits.h> exists even on freestanding compilers.  */
21401
21402#ifdef __STDC__
21403# include <limits.h>
21404#else
21405# include <assert.h>
21406#endif
21407
21408#undef $ac_func
21409
21410/* Override any gcc2 internal prototype to avoid an error.  */
21411#ifdef __cplusplus
21412extern "C"
21413{
21414#endif
21415/* We use char because int might match the return type of a gcc2
21416   builtin and then its argument prototype would still apply.  */
21417char $ac_func ();
21418/* The GNU C library defines this for functions which it implements
21419    to always fail with ENOSYS.  Some functions are actually named
21420    something starting with __ and the normal name is an alias.  */
21421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21422choke me
21423#else
21424char (*f) () = $ac_func;
21425#endif
21426#ifdef __cplusplus
21427}
21428#endif
21429
21430int
21431main ()
21432{
21433return f != $ac_func;
21434  ;
21435  return 0;
21436}
21437_ACEOF
21438rm -f conftest.$ac_objext conftest$ac_exeext
21439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21440  (eval $ac_link) 2>conftest.er1
21441  ac_status=$?
21442  grep -v '^ *+' conftest.er1 >conftest.err
21443  rm -f conftest.er1
21444  cat conftest.err >&5
21445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446  (exit $ac_status); } &&
21447	 { ac_try='test -z "$ac_c_werror_flag"
21448			 || test ! -s conftest.err'
21449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450  (eval $ac_try) 2>&5
21451  ac_status=$?
21452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453  (exit $ac_status); }; } &&
21454	 { ac_try='test -s conftest$ac_exeext'
21455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456  (eval $ac_try) 2>&5
21457  ac_status=$?
21458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459  (exit $ac_status); }; }; then
21460  eval "$as_ac_var=yes"
21461else
21462  echo "$as_me: failed program was:" >&5
21463sed 's/^/| /' conftest.$ac_ext >&5
21464
21465eval "$as_ac_var=no"
21466fi
21467rm -f conftest.err conftest.$ac_objext \
21468      conftest$ac_exeext conftest.$ac_ext
21469fi
21470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21472if test `eval echo '${'$as_ac_var'}'` = yes; then
21473  cat >>confdefs.h <<_ACEOF
21474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21475_ACEOF
21476
21477fi
21478done
21479
21480fi
21481# krb_kdctimeofday
21482eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21483eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21484eval "LIB_krb_kdctimeofday=$ac_res"
21485
21486case "$ac_res" in
21487	yes)
21488	eval "ac_cv_func_krb_kdctimeofday=yes"
21489	eval "LIB_krb_kdctimeofday="
21490	cat >>confdefs.h <<_ACEOF
21491#define $ac_tr_func 1
21492_ACEOF
21493
21494	echo "$as_me:$LINENO: result: yes" >&5
21495echo "${ECHO_T}yes" >&6
21496	;;
21497	no)
21498	eval "ac_cv_func_krb_kdctimeofday=no"
21499	eval "LIB_krb_kdctimeofday="
21500	echo "$as_me:$LINENO: result: no" >&5
21501echo "${ECHO_T}no" >&6
21502	;;
21503	*)
21504	eval "ac_cv_func_krb_kdctimeofday=yes"
21505	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21506	cat >>confdefs.h <<_ACEOF
21507#define $ac_tr_func 1
21508_ACEOF
21509
21510	cat >>confdefs.h <<_ACEOF
21511#define $ac_tr_lib 1
21512_ACEOF
21513
21514	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21515echo "${ECHO_T}yes, in $ac_res" >&6
21516	;;
21517esac
21518
21519
21520if test -n "$LIB_krb_kdctimeofday"; then
21521	LIBS="$LIB_krb_kdctimeofday $LIBS"
21522fi
21523
21524
21525
21526
21527
21528
21529
21530echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
21531echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
21532if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
21533  echo $ECHO_N "(cached) $ECHO_C" >&6
21534else
21535
21536if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
21537	ac_save_LIBS="$LIBS"
21538	for ac_lib in "" ; do
21539		case "$ac_lib" in
21540		"") ;;
21541		yes) ac_lib="" ;;
21542		no) continue ;;
21543		-l*) ;;
21544		*) ac_lib="-l$ac_lib" ;;
21545		esac
21546		LIBS=" $ac_lib  $ac_save_LIBS"
21547		cat >conftest.$ac_ext <<_ACEOF
21548/* confdefs.h.  */
21549_ACEOF
21550cat confdefs.h >>conftest.$ac_ext
21551cat >>conftest.$ac_ext <<_ACEOF
21552/* end confdefs.h.  */
21553
21554int
21555main ()
21556{
21557krb_get_kdc_time_diff()
21558  ;
21559  return 0;
21560}
21561_ACEOF
21562rm -f conftest.$ac_objext conftest$ac_exeext
21563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21564  (eval $ac_link) 2>conftest.er1
21565  ac_status=$?
21566  grep -v '^ *+' conftest.er1 >conftest.err
21567  rm -f conftest.er1
21568  cat conftest.err >&5
21569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570  (exit $ac_status); } &&
21571	 { ac_try='test -z "$ac_c_werror_flag"
21572			 || test ! -s conftest.err'
21573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574  (eval $ac_try) 2>&5
21575  ac_status=$?
21576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577  (exit $ac_status); }; } &&
21578	 { ac_try='test -s conftest$ac_exeext'
21579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21580  (eval $ac_try) 2>&5
21581  ac_status=$?
21582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583  (exit $ac_status); }; }; then
21584  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
21585else
21586  echo "$as_me: failed program was:" >&5
21587sed 's/^/| /' conftest.$ac_ext >&5
21588
21589fi
21590rm -f conftest.err conftest.$ac_objext \
21591      conftest$ac_exeext conftest.$ac_ext
21592	done
21593	eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
21594	LIBS="$ac_save_LIBS"
21595fi
21596
21597fi
21598
21599
21600eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
21601
21602if false; then
21603
21604for ac_func in krb_get_kdc_time_diff
21605do
21606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21607echo "$as_me:$LINENO: checking for $ac_func" >&5
21608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21609if eval "test \"\${$as_ac_var+set}\" = set"; then
21610  echo $ECHO_N "(cached) $ECHO_C" >&6
21611else
21612  cat >conftest.$ac_ext <<_ACEOF
21613/* confdefs.h.  */
21614_ACEOF
21615cat confdefs.h >>conftest.$ac_ext
21616cat >>conftest.$ac_ext <<_ACEOF
21617/* end confdefs.h.  */
21618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21619   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21620#define $ac_func innocuous_$ac_func
21621
21622/* System header to define __stub macros and hopefully few prototypes,
21623    which can conflict with char $ac_func (); below.
21624    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21625    <limits.h> exists even on freestanding compilers.  */
21626
21627#ifdef __STDC__
21628# include <limits.h>
21629#else
21630# include <assert.h>
21631#endif
21632
21633#undef $ac_func
21634
21635/* Override any gcc2 internal prototype to avoid an error.  */
21636#ifdef __cplusplus
21637extern "C"
21638{
21639#endif
21640/* We use char because int might match the return type of a gcc2
21641   builtin and then its argument prototype would still apply.  */
21642char $ac_func ();
21643/* The GNU C library defines this for functions which it implements
21644    to always fail with ENOSYS.  Some functions are actually named
21645    something starting with __ and the normal name is an alias.  */
21646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21647choke me
21648#else
21649char (*f) () = $ac_func;
21650#endif
21651#ifdef __cplusplus
21652}
21653#endif
21654
21655int
21656main ()
21657{
21658return f != $ac_func;
21659  ;
21660  return 0;
21661}
21662_ACEOF
21663rm -f conftest.$ac_objext conftest$ac_exeext
21664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21665  (eval $ac_link) 2>conftest.er1
21666  ac_status=$?
21667  grep -v '^ *+' conftest.er1 >conftest.err
21668  rm -f conftest.er1
21669  cat conftest.err >&5
21670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671  (exit $ac_status); } &&
21672	 { ac_try='test -z "$ac_c_werror_flag"
21673			 || test ! -s conftest.err'
21674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675  (eval $ac_try) 2>&5
21676  ac_status=$?
21677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678  (exit $ac_status); }; } &&
21679	 { ac_try='test -s conftest$ac_exeext'
21680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681  (eval $ac_try) 2>&5
21682  ac_status=$?
21683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684  (exit $ac_status); }; }; then
21685  eval "$as_ac_var=yes"
21686else
21687  echo "$as_me: failed program was:" >&5
21688sed 's/^/| /' conftest.$ac_ext >&5
21689
21690eval "$as_ac_var=no"
21691fi
21692rm -f conftest.err conftest.$ac_objext \
21693      conftest$ac_exeext conftest.$ac_ext
21694fi
21695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21696echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21697if test `eval echo '${'$as_ac_var'}'` = yes; then
21698  cat >>confdefs.h <<_ACEOF
21699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21700_ACEOF
21701
21702fi
21703done
21704
21705fi
21706# krb_get_kdc_time_diff
21707eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21708eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21709eval "LIB_krb_get_kdc_time_diff=$ac_res"
21710
21711case "$ac_res" in
21712	yes)
21713	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
21714	eval "LIB_krb_get_kdc_time_diff="
21715	cat >>confdefs.h <<_ACEOF
21716#define $ac_tr_func 1
21717_ACEOF
21718
21719	echo "$as_me:$LINENO: result: yes" >&5
21720echo "${ECHO_T}yes" >&6
21721	;;
21722	no)
21723	eval "ac_cv_func_krb_get_kdc_time_diff=no"
21724	eval "LIB_krb_get_kdc_time_diff="
21725	echo "$as_me:$LINENO: result: no" >&5
21726echo "${ECHO_T}no" >&6
21727	;;
21728	*)
21729	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
21730	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21731	cat >>confdefs.h <<_ACEOF
21732#define $ac_tr_func 1
21733_ACEOF
21734
21735	cat >>confdefs.h <<_ACEOF
21736#define $ac_tr_lib 1
21737_ACEOF
21738
21739	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21740echo "${ECHO_T}yes, in $ac_res" >&6
21741	;;
21742esac
21743
21744
21745if test -n "$LIB_krb_get_kdc_time_diff"; then
21746	LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
21747fi
21748
21749
21750
21751	echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
21752echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
21753if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
21754  echo $ECHO_N "(cached) $ECHO_C" >&6
21755else
21756  cat >conftest.$ac_ext <<_ACEOF
21757/* confdefs.h.  */
21758_ACEOF
21759cat confdefs.h >>conftest.$ac_ext
21760cat >>conftest.$ac_ext <<_ACEOF
21761/* end confdefs.h.  */
21762#include <krb.h>
21763			#include <prot.h>
21764int
21765main ()
21766{
21767
21768		char *x = KRB_SENDAUTH_VERS
21769  ;
21770  return 0;
21771}
21772_ACEOF
21773rm -f conftest.$ac_objext
21774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21775  (eval $ac_compile) 2>conftest.er1
21776  ac_status=$?
21777  grep -v '^ *+' conftest.er1 >conftest.err
21778  rm -f conftest.er1
21779  cat conftest.err >&5
21780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781  (exit $ac_status); } &&
21782	 { ac_try='test -z "$ac_c_werror_flag"
21783			 || test ! -s conftest.err'
21784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785  (eval $ac_try) 2>&5
21786  ac_status=$?
21787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788  (exit $ac_status); }; } &&
21789	 { ac_try='test -s conftest.$ac_objext'
21790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791  (eval $ac_try) 2>&5
21792  ac_status=$?
21793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794  (exit $ac_status); }; }; then
21795  ac_cv_func_krb_sendauth_vers=yes
21796else
21797  echo "$as_me: failed program was:" >&5
21798sed 's/^/| /' conftest.$ac_ext >&5
21799
21800ac_cv_func_krb_sendauth_vers=no
21801fi
21802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21803
21804fi
21805echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
21806echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
21807	if test "$ac_cv_func_krb_sendauth_vers" != yes; then
21808
21809cat >>confdefs.h <<\_ACEOF
21810#define KRB_SENDAUTH_VERS "AUTHV0.1"
21811_ACEOF
21812
21813	fi
21814	echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
21815echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
21816if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
21817  echo $ECHO_N "(cached) $ECHO_C" >&6
21818else
21819  cat >conftest.$ac_ext <<_ACEOF
21820/* confdefs.h.  */
21821_ACEOF
21822cat confdefs.h >>conftest.$ac_ext
21823cat >>conftest.$ac_ext <<_ACEOF
21824/* end confdefs.h.  */
21825#include <krb.h>
21826		int krb_mk_req(KTEXT a, const char *s, const char *i,
21827			       const char *r, int32_t checksum)
21828		{ return 17; }
21829int
21830main ()
21831{
21832
21833  ;
21834  return 0;
21835}
21836_ACEOF
21837rm -f conftest.$ac_objext
21838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21839  (eval $ac_compile) 2>conftest.er1
21840  ac_status=$?
21841  grep -v '^ *+' conftest.er1 >conftest.err
21842  rm -f conftest.er1
21843  cat conftest.err >&5
21844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845  (exit $ac_status); } &&
21846	 { ac_try='test -z "$ac_c_werror_flag"
21847			 || test ! -s conftest.err'
21848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849  (eval $ac_try) 2>&5
21850  ac_status=$?
21851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852  (exit $ac_status); }; } &&
21853	 { ac_try='test -s conftest.$ac_objext'
21854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855  (eval $ac_try) 2>&5
21856  ac_status=$?
21857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858  (exit $ac_status); }; }; then
21859  ac_cv_func_krb_mk_req_const=yes
21860else
21861  echo "$as_me: failed program was:" >&5
21862sed 's/^/| /' conftest.$ac_ext >&5
21863
21864ac_cv_func_krb_mk_req_const=no
21865fi
21866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21867
21868fi
21869echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
21870echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
21871	if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
21872
21873cat >>confdefs.h <<\_ACEOF
21874#define KRB_MK_REQ_CONST 1
21875_ACEOF
21876
21877	fi
21878
21879	LIBS="$save_LIBS"
21880	CFLAGS="$save_CFLAGS"
21881	LIB_kdb="-lkdb -lkrb"
21882fi
21883
21884
21885if test "$with_krb4" != "no"; then
21886  KRB4_TRUE=
21887  KRB4_FALSE='#'
21888else
21889  KRB4_TRUE='#'
21890  KRB4_FALSE=
21891fi
21892
21893
21894
21895if true; then
21896  KRB5_TRUE=
21897  KRB5_FALSE='#'
21898else
21899  KRB5_TRUE='#'
21900  KRB5_FALSE=
21901fi
21902
21903
21904
21905if true; then
21906  do_roken_rename_TRUE=
21907  do_roken_rename_FALSE='#'
21908else
21909  do_roken_rename_TRUE='#'
21910  do_roken_rename_FALSE=
21911fi
21912
21913
21914
21915cat >>confdefs.h <<\_ACEOF
21916#define KRB5 1
21917_ACEOF
21918
21919
21920crypto_lib=unknown
21921
21922
21923# Check whether --with-openssl or --without-openssl was given.
21924if test "${with_openssl+set}" = set; then
21925  withval="$with_openssl"
21926
21927fi;
21928
21929
21930# Check whether --with-openssl-lib or --without-openssl-lib was given.
21931if test "${with_openssl_lib+set}" = set; then
21932  withval="$with_openssl_lib"
21933  if test "$withval" = "yes" -o "$withval" = "no"; then
21934  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
21935echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
21936   { (exit 1); exit 1; }; }
21937elif test "X$with_openssl" = "X"; then
21938  with_openssl=yes
21939fi
21940fi;
21941
21942
21943# Check whether --with-openssl-include or --without-openssl-include was given.
21944if test "${with_openssl_include+set}" = set; then
21945  withval="$with_openssl_include"
21946  if test "$withval" = "yes" -o "$withval" = "no"; then
21947  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
21948echo "$as_me: error: No argument for --with-openssl-include" >&2;}
21949   { (exit 1); exit 1; }; }
21950elif test "X$with_openssl" = "X"; then
21951  with_openssl=yes
21952fi
21953fi;
21954
21955case "$with_openssl" in
21956yes)	;;
21957no)	;;
21958"")	;;
21959*)	if test "$with_openssl_include" = ""; then
21960		with_openssl_include="$with_openssl/include"
21961	fi
21962	if test "$with_openssl_lib" = ""; then
21963		with_openssl_lib="$with_openssl/lib$abilibdirext"
21964	fi
21965	;;
21966esac
21967
21968
21969DIR_des=
21970
21971echo "$as_me:$LINENO: checking for crypto library" >&5
21972echo $ECHO_N "checking for crypto library... $ECHO_C" >&6
21973
21974openssl=no
21975old_hash=no
21976
21977if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
21978	save_CPPFLAGS="$CPPFLAGS"
21979	save_LIBS="$LIBS"
21980
21981	cdirs= clibs=
21982	for i in $LIB_krb4; do
21983		case "$i" in
21984		-L*) cdirs="$cdirs $i";;
21985		-l*) clibs="$clibs $i";;
21986		esac
21987	done
21988
21989	ires=
21990	for i in $INCLUDE_krb4; do
21991		CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
21992		for j in $cdirs; do
21993			for k in $clibs; do
21994				LIBS="$j $k $save_LIBS"
21995				cat >conftest.$ac_ext <<_ACEOF
21996/* confdefs.h.  */
21997_ACEOF
21998cat confdefs.h >>conftest.$ac_ext
21999cat >>conftest.$ac_ext <<_ACEOF
22000/* end confdefs.h.  */
22001
22002		#undef KRB5 /* makes md4.h et al unhappy */
22003		#ifdef HAVE_OPENSSL
22004		#include <openssl/md4.h>
22005		#include <openssl/md5.h>
22006		#include <openssl/sha.h>
22007		#define OPENSSL_DES_LIBDES_COMPATIBILITY
22008		#include <openssl/des.h>
22009		#include <openssl/rc4.h>
22010		#include <openssl/rand.h>
22011		#else
22012		#include <md4.h>
22013		#include <md5.h>
22014		#include <sha.h>
22015		#include <des.h>
22016		#include <rc4.h>
22017		#endif
22018		#ifdef OLD_HASH_NAMES
22019		typedef struct md4 MD4_CTX;
22020		#define MD4_Init(C) md4_init((C))
22021		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
22022		#define MD4_Final(D, C) md4_finito((C), (D))
22023		typedef struct md5 MD5_CTX;
22024		#define MD5_Init(C) md5_init((C))
22025		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
22026		#define MD5_Final(D, C) md5_finito((C), (D))
22027		typedef struct sha SHA_CTX;
22028		#define SHA1_Init(C) sha_init((C))
22029		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22030		#define SHA1_Final(D, C) sha_finito((C), (D))
22031		#endif
22032
22033int
22034main ()
22035{
22036
22037		void *schedule = 0;
22038		MD4_CTX md4;
22039		MD5_CTX md5;
22040		SHA_CTX sha1;
22041
22042		MD4_Init(&md4);
22043		MD5_Init(&md5);
22044		SHA1_Init(&sha1);
22045		#ifdef HAVE_OPENSSL
22046		RAND_status();
22047		#endif
22048
22049		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22050		RC4(0, 0, 0, 0);
22051  ;
22052  return 0;
22053}
22054_ACEOF
22055rm -f conftest.$ac_objext conftest$ac_exeext
22056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22057  (eval $ac_link) 2>conftest.er1
22058  ac_status=$?
22059  grep -v '^ *+' conftest.er1 >conftest.err
22060  rm -f conftest.er1
22061  cat conftest.err >&5
22062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063  (exit $ac_status); } &&
22064	 { ac_try='test -z "$ac_c_werror_flag"
22065			 || test ! -s conftest.err'
22066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22067  (eval $ac_try) 2>&5
22068  ac_status=$?
22069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070  (exit $ac_status); }; } &&
22071	 { ac_try='test -s conftest$ac_exeext'
22072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073  (eval $ac_try) 2>&5
22074  ac_status=$?
22075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076  (exit $ac_status); }; }; then
22077  openssl=yes ires="$i" lres="$j $k"; break 3
22078else
22079  echo "$as_me: failed program was:" >&5
22080sed 's/^/| /' conftest.$ac_ext >&5
22081
22082fi
22083rm -f conftest.err conftest.$ac_objext \
22084      conftest$ac_exeext conftest.$ac_ext
22085			done
22086		done
22087		CFLAGS="$i $save_CFLAGS"
22088		for j in $cdirs; do
22089			for k in $clibs; do
22090				LIBS="$j $k $save_LIBS"
22091				cat >conftest.$ac_ext <<_ACEOF
22092/* confdefs.h.  */
22093_ACEOF
22094cat confdefs.h >>conftest.$ac_ext
22095cat >>conftest.$ac_ext <<_ACEOF
22096/* end confdefs.h.  */
22097
22098		#undef KRB5 /* makes md4.h et al unhappy */
22099		#ifdef HAVE_OPENSSL
22100		#include <openssl/md4.h>
22101		#include <openssl/md5.h>
22102		#include <openssl/sha.h>
22103		#define OPENSSL_DES_LIBDES_COMPATIBILITY
22104		#include <openssl/des.h>
22105		#include <openssl/rc4.h>
22106		#include <openssl/rand.h>
22107		#else
22108		#include <md4.h>
22109		#include <md5.h>
22110		#include <sha.h>
22111		#include <des.h>
22112		#include <rc4.h>
22113		#endif
22114		#ifdef OLD_HASH_NAMES
22115		typedef struct md4 MD4_CTX;
22116		#define MD4_Init(C) md4_init((C))
22117		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
22118		#define MD4_Final(D, C) md4_finito((C), (D))
22119		typedef struct md5 MD5_CTX;
22120		#define MD5_Init(C) md5_init((C))
22121		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
22122		#define MD5_Final(D, C) md5_finito((C), (D))
22123		typedef struct sha SHA_CTX;
22124		#define SHA1_Init(C) sha_init((C))
22125		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22126		#define SHA1_Final(D, C) sha_finito((C), (D))
22127		#endif
22128
22129int
22130main ()
22131{
22132
22133		void *schedule = 0;
22134		MD4_CTX md4;
22135		MD5_CTX md5;
22136		SHA_CTX sha1;
22137
22138		MD4_Init(&md4);
22139		MD5_Init(&md5);
22140		SHA1_Init(&sha1);
22141		#ifdef HAVE_OPENSSL
22142		RAND_status();
22143		#endif
22144
22145		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22146		RC4(0, 0, 0, 0);
22147  ;
22148  return 0;
22149}
22150_ACEOF
22151rm -f conftest.$ac_objext conftest$ac_exeext
22152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22153  (eval $ac_link) 2>conftest.er1
22154  ac_status=$?
22155  grep -v '^ *+' conftest.er1 >conftest.err
22156  rm -f conftest.er1
22157  cat conftest.err >&5
22158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159  (exit $ac_status); } &&
22160	 { ac_try='test -z "$ac_c_werror_flag"
22161			 || test ! -s conftest.err'
22162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163  (eval $ac_try) 2>&5
22164  ac_status=$?
22165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166  (exit $ac_status); }; } &&
22167	 { ac_try='test -s conftest$ac_exeext'
22168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169  (eval $ac_try) 2>&5
22170  ac_status=$?
22171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172  (exit $ac_status); }; }; then
22173  openssl=no ires="$i" lres="$j $k"; break 3
22174else
22175  echo "$as_me: failed program was:" >&5
22176sed 's/^/| /' conftest.$ac_ext >&5
22177
22178fi
22179rm -f conftest.err conftest.$ac_objext \
22180      conftest$ac_exeext conftest.$ac_ext
22181			done
22182		done
22183		CFLAGS="-DHAVE_OLD_HASH_NAMES $i $save_CFLAGS"
22184		for j in $cdirs; do
22185			for k in $clibs; do
22186				LIBS="$j $k $save_LIBS"
22187				cat >conftest.$ac_ext <<_ACEOF
22188/* confdefs.h.  */
22189_ACEOF
22190cat confdefs.h >>conftest.$ac_ext
22191cat >>conftest.$ac_ext <<_ACEOF
22192/* end confdefs.h.  */
22193
22194		#undef KRB5 /* makes md4.h et al unhappy */
22195		#ifdef HAVE_OPENSSL
22196		#include <openssl/md4.h>
22197		#include <openssl/md5.h>
22198		#include <openssl/sha.h>
22199		#define OPENSSL_DES_LIBDES_COMPATIBILITY
22200		#include <openssl/des.h>
22201		#include <openssl/rc4.h>
22202		#include <openssl/rand.h>
22203		#else
22204		#include <md4.h>
22205		#include <md5.h>
22206		#include <sha.h>
22207		#include <des.h>
22208		#include <rc4.h>
22209		#endif
22210		#ifdef OLD_HASH_NAMES
22211		typedef struct md4 MD4_CTX;
22212		#define MD4_Init(C) md4_init((C))
22213		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
22214		#define MD4_Final(D, C) md4_finito((C), (D))
22215		typedef struct md5 MD5_CTX;
22216		#define MD5_Init(C) md5_init((C))
22217		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
22218		#define MD5_Final(D, C) md5_finito((C), (D))
22219		typedef struct sha SHA_CTX;
22220		#define SHA1_Init(C) sha_init((C))
22221		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22222		#define SHA1_Final(D, C) sha_finito((C), (D))
22223		#endif
22224
22225int
22226main ()
22227{
22228
22229		void *schedule = 0;
22230		MD4_CTX md4;
22231		MD5_CTX md5;
22232		SHA_CTX sha1;
22233
22234		MD4_Init(&md4);
22235		MD5_Init(&md5);
22236		SHA1_Init(&sha1);
22237		#ifdef HAVE_OPENSSL
22238		RAND_status();
22239		#endif
22240
22241		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22242		RC4(0, 0, 0, 0);
22243  ;
22244  return 0;
22245}
22246_ACEOF
22247rm -f conftest.$ac_objext conftest$ac_exeext
22248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22249  (eval $ac_link) 2>conftest.er1
22250  ac_status=$?
22251  grep -v '^ *+' conftest.er1 >conftest.err
22252  rm -f conftest.er1
22253  cat conftest.err >&5
22254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255  (exit $ac_status); } &&
22256	 { ac_try='test -z "$ac_c_werror_flag"
22257			 || test ! -s conftest.err'
22258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259  (eval $ac_try) 2>&5
22260  ac_status=$?
22261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262  (exit $ac_status); }; } &&
22263	 { ac_try='test -s conftest$ac_exeext'
22264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265  (eval $ac_try) 2>&5
22266  ac_status=$?
22267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268  (exit $ac_status); }; }; then
22269  openssl=no ires="$i" lres="$j $k"; break 3
22270else
22271  echo "$as_me: failed program was:" >&5
22272sed 's/^/| /' conftest.$ac_ext >&5
22273
22274fi
22275rm -f conftest.err conftest.$ac_objext \
22276      conftest$ac_exeext conftest.$ac_ext
22277			done
22278		done
22279	done
22280
22281	CFLAGS="$save_CFLAGS"
22282	LIBS="$save_LIBS"
22283	if test "$ires" -a "$lres"; then
22284		INCLUDE_des="$ires"
22285		LIB_des="$lres"
22286		crypto_lib=krb4
22287		echo "$as_me:$LINENO: result: same as krb4" >&5
22288echo "${ECHO_T}same as krb4" >&6
22289		LIB_des_a='$(LIB_des)'
22290		LIB_des_so='$(LIB_des)'
22291		LIB_des_appl='$(LIB_des)'
22292	fi
22293fi
22294
22295if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
22296	save_CFLAGS="$CFLAGS"
22297	save_LIBS="$LIBS"
22298	INCLUDE_des=
22299	LIB_des=
22300	if test "$with_openssl_include" != ""; then
22301		INCLUDE_des="-I${with_openssl_include}"
22302	fi
22303	if test "$with_openssl_lib" != ""; then
22304		LIB_des="-L${with_openssl_lib}"
22305	fi
22306	CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
22307	saved_LIB_des="$LIB_des"
22308	for lres in "" "-lnsl -lsocket"; do
22309		LIB_des="${saved_LIB_des} -lcrypto $lres"
22310		LIB_des_a="$LIB_des"
22311		LIB_des_so="$LIB_des"
22312		LIB_des_appl="$LIB_des"
22313		LIBS="${LIBS} ${LIB_des}"
22314		cat >conftest.$ac_ext <<_ACEOF
22315/* confdefs.h.  */
22316_ACEOF
22317cat confdefs.h >>conftest.$ac_ext
22318cat >>conftest.$ac_ext <<_ACEOF
22319/* end confdefs.h.  */
22320
22321		#undef KRB5 /* makes md4.h et al unhappy */
22322		#ifdef HAVE_OPENSSL
22323		#include <openssl/md4.h>
22324		#include <openssl/md5.h>
22325		#include <openssl/sha.h>
22326		#define OPENSSL_DES_LIBDES_COMPATIBILITY
22327		#include <openssl/des.h>
22328		#include <openssl/rc4.h>
22329		#include <openssl/rand.h>
22330		#else
22331		#include <md4.h>
22332		#include <md5.h>
22333		#include <sha.h>
22334		#include <des.h>
22335		#include <rc4.h>
22336		#endif
22337		#ifdef OLD_HASH_NAMES
22338		typedef struct md4 MD4_CTX;
22339		#define MD4_Init(C) md4_init((C))
22340		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
22341		#define MD4_Final(D, C) md4_finito((C), (D))
22342		typedef struct md5 MD5_CTX;
22343		#define MD5_Init(C) md5_init((C))
22344		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
22345		#define MD5_Final(D, C) md5_finito((C), (D))
22346		typedef struct sha SHA_CTX;
22347		#define SHA1_Init(C) sha_init((C))
22348		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22349		#define SHA1_Final(D, C) sha_finito((C), (D))
22350		#endif
22351
22352int
22353main ()
22354{
22355
22356		void *schedule = 0;
22357		MD4_CTX md4;
22358		MD5_CTX md5;
22359		SHA_CTX sha1;
22360
22361		MD4_Init(&md4);
22362		MD5_Init(&md5);
22363		SHA1_Init(&sha1);
22364		#ifdef HAVE_OPENSSL
22365		RAND_status();
22366		#endif
22367
22368		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22369		RC4(0, 0, 0, 0);
22370  ;
22371  return 0;
22372}
22373_ACEOF
22374rm -f conftest.$ac_objext conftest$ac_exeext
22375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22376  (eval $ac_link) 2>conftest.er1
22377  ac_status=$?
22378  grep -v '^ *+' conftest.er1 >conftest.err
22379  rm -f conftest.er1
22380  cat conftest.err >&5
22381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382  (exit $ac_status); } &&
22383	 { ac_try='test -z "$ac_c_werror_flag"
22384			 || test ! -s conftest.err'
22385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386  (eval $ac_try) 2>&5
22387  ac_status=$?
22388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389  (exit $ac_status); }; } &&
22390	 { ac_try='test -s conftest$ac_exeext'
22391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392  (eval $ac_try) 2>&5
22393  ac_status=$?
22394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395  (exit $ac_status); }; }; then
22396
22397			crypto_lib=libcrypto openssl=yes
22398			echo "$as_me:$LINENO: result: libcrypto" >&5
22399echo "${ECHO_T}libcrypto" >&6
22400
22401else
22402  echo "$as_me: failed program was:" >&5
22403sed 's/^/| /' conftest.$ac_ext >&5
22404
22405fi
22406rm -f conftest.err conftest.$ac_objext \
22407      conftest$ac_exeext conftest.$ac_ext
22408		if test "$crypto_lib" = libcrypto ; then
22409			break;
22410		fi
22411	done
22412	CFLAGS="$save_CFLAGS"
22413	LIBS="$save_LIBS"
22414fi
22415
22416if test "$crypto_lib" = "unknown"; then
22417
22418  DIR_des='des'
22419  LIB_des='$(top_builddir)/lib/des/libdes.la'
22420  LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
22421  LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
22422  LIB_des_appl="-ldes"
22423
22424  echo "$as_me:$LINENO: result: included libdes" >&5
22425echo "${ECHO_T}included libdes" >&6
22426
22427fi
22428
22429if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
22430	{ { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
22431required by Kerberos 5; to continue, you need to install a newer
22432Kerberos 4 or configure --without-krb4" >&5
22433echo "$as_me: error: the crypto library used by krb4 lacks features
22434required by Kerberos 5; to continue, you need to install a newer
22435Kerberos 4 or configure --without-krb4" >&2;}
22436   { (exit 1); exit 1; }; }
22437fi
22438
22439if test "$openssl" = "yes"; then
22440
22441cat >>confdefs.h <<\_ACEOF
22442#define HAVE_OPENSSL 1
22443_ACEOF
22444
22445fi
22446if test "$old_hash" = yes; then
22447
22448cat >>confdefs.h <<\_ACEOF
22449#define HAVE_OLD_HASH_NAMES 1
22450_ACEOF
22451
22452fi
22453
22454
22455if test "$openssl" = yes; then
22456  HAVE_OPENSSL_TRUE=
22457  HAVE_OPENSSL_FALSE='#'
22458else
22459  HAVE_OPENSSL_TRUE='#'
22460  HAVE_OPENSSL_FALSE=
22461fi
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471# Check whether --enable-dce or --disable-dce was given.
22472if test "${enable_dce+set}" = set; then
22473  enableval="$enable_dce"
22474
22475fi;
22476if test "$enable_dce" = yes; then
22477
22478cat >>confdefs.h <<\_ACEOF
22479#define DCE 1
22480_ACEOF
22481
22482fi
22483
22484
22485if test "$enable_dce" = yes; then
22486  DCE_TRUE=
22487  DCE_FALSE='#'
22488else
22489  DCE_TRUE='#'
22490  DCE_FALSE=
22491fi
22492
22493
22494## XXX quite horrible:
22495if test -f /etc/ibmcxx.cfg; then
22496	dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
22497	dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
22498	dpagaix_ldflags=
22499else
22500	dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
22501	dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
22502	dpagaix_ldflags="-Wl,-bI:dfspag.exp"
22503fi
22504
22505
22506
22507
22508
22509# Check whether --enable-berkeley-db or --disable-berkeley-db was given.
22510if test "${enable_berkeley_db+set}" = set; then
22511  enableval="$enable_berkeley_db"
22512
22513
22514fi;
22515
22516have_ndbm=no
22517db_type=unknown
22518
22519if test "$enable_berkeley_db" != no; then
22520
22521
22522
22523
22524
22525for ac_header in 				\
22526	db4/db.h				\
22527	db3/db.h				\
22528	db.h					\
22529	db_185.h				\
22530
22531do
22532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22533if eval "test \"\${$as_ac_Header+set}\" = set"; then
22534  echo "$as_me:$LINENO: checking for $ac_header" >&5
22535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22536if eval "test \"\${$as_ac_Header+set}\" = set"; then
22537  echo $ECHO_N "(cached) $ECHO_C" >&6
22538fi
22539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22541else
22542  # Is the header compilable?
22543echo "$as_me:$LINENO: checking $ac_header usability" >&5
22544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22545cat >conftest.$ac_ext <<_ACEOF
22546/* confdefs.h.  */
22547_ACEOF
22548cat confdefs.h >>conftest.$ac_ext
22549cat >>conftest.$ac_ext <<_ACEOF
22550/* end confdefs.h.  */
22551$ac_includes_default
22552#include <$ac_header>
22553_ACEOF
22554rm -f conftest.$ac_objext
22555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22556  (eval $ac_compile) 2>conftest.er1
22557  ac_status=$?
22558  grep -v '^ *+' conftest.er1 >conftest.err
22559  rm -f conftest.er1
22560  cat conftest.err >&5
22561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562  (exit $ac_status); } &&
22563	 { ac_try='test -z "$ac_c_werror_flag"
22564			 || test ! -s conftest.err'
22565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566  (eval $ac_try) 2>&5
22567  ac_status=$?
22568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569  (exit $ac_status); }; } &&
22570	 { ac_try='test -s conftest.$ac_objext'
22571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572  (eval $ac_try) 2>&5
22573  ac_status=$?
22574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575  (exit $ac_status); }; }; then
22576  ac_header_compiler=yes
22577else
22578  echo "$as_me: failed program was:" >&5
22579sed 's/^/| /' conftest.$ac_ext >&5
22580
22581ac_header_compiler=no
22582fi
22583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22585echo "${ECHO_T}$ac_header_compiler" >&6
22586
22587# Is the header present?
22588echo "$as_me:$LINENO: checking $ac_header presence" >&5
22589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22590cat >conftest.$ac_ext <<_ACEOF
22591/* confdefs.h.  */
22592_ACEOF
22593cat confdefs.h >>conftest.$ac_ext
22594cat >>conftest.$ac_ext <<_ACEOF
22595/* end confdefs.h.  */
22596#include <$ac_header>
22597_ACEOF
22598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22599  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22600  ac_status=$?
22601  grep -v '^ *+' conftest.er1 >conftest.err
22602  rm -f conftest.er1
22603  cat conftest.err >&5
22604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605  (exit $ac_status); } >/dev/null; then
22606  if test -s conftest.err; then
22607    ac_cpp_err=$ac_c_preproc_warn_flag
22608    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22609  else
22610    ac_cpp_err=
22611  fi
22612else
22613  ac_cpp_err=yes
22614fi
22615if test -z "$ac_cpp_err"; then
22616  ac_header_preproc=yes
22617else
22618  echo "$as_me: failed program was:" >&5
22619sed 's/^/| /' conftest.$ac_ext >&5
22620
22621  ac_header_preproc=no
22622fi
22623rm -f conftest.err conftest.$ac_ext
22624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22625echo "${ECHO_T}$ac_header_preproc" >&6
22626
22627# So?  What about this header?
22628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22629  yes:no: )
22630    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22632    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22634    ac_header_preproc=yes
22635    ;;
22636  no:yes:* )
22637    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22639    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22640echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22641    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22643    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22644echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22645    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22647    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22649    (
22650      cat <<\_ASBOX
22651## -------------------------------------- ##
22652## Report this to heimdal-bugs@pdc.kth.se ##
22653## -------------------------------------- ##
22654_ASBOX
22655    ) |
22656      sed "s/^/$as_me: WARNING:     /" >&2
22657    ;;
22658esac
22659echo "$as_me:$LINENO: checking for $ac_header" >&5
22660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22661if eval "test \"\${$as_ac_Header+set}\" = set"; then
22662  echo $ECHO_N "(cached) $ECHO_C" >&6
22663else
22664  eval "$as_ac_Header=\$ac_header_preproc"
22665fi
22666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22668
22669fi
22670if test `eval echo '${'$as_ac_Header'}'` = yes; then
22671  cat >>confdefs.h <<_ACEOF
22672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22673_ACEOF
22674
22675fi
22676
22677done
22678
22679
22680
22681
22682
22683
22684echo "$as_me:$LINENO: checking for db_create" >&5
22685echo $ECHO_N "checking for db_create... $ECHO_C" >&6
22686if test "${ac_cv_funclib_db_create+set}" = set; then
22687  echo $ECHO_N "(cached) $ECHO_C" >&6
22688else
22689
22690if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
22691	ac_save_LIBS="$LIBS"
22692	for ac_lib in "" db4 db3 db; do
22693		case "$ac_lib" in
22694		"") ;;
22695		yes) ac_lib="" ;;
22696		no) continue ;;
22697		-l*) ;;
22698		*) ac_lib="-l$ac_lib" ;;
22699		esac
22700		LIBS=" $ac_lib  $ac_save_LIBS"
22701		cat >conftest.$ac_ext <<_ACEOF
22702/* confdefs.h.  */
22703_ACEOF
22704cat confdefs.h >>conftest.$ac_ext
22705cat >>conftest.$ac_ext <<_ACEOF
22706/* end confdefs.h.  */
22707
22708  #include <stdio.h>
22709  #ifdef HAVE_DB4_DB_H
22710  #include <db4/db.h>
22711  #elif defined(HAVE_DB3_DB_H)
22712  #include <db3/db.h>
22713  #else
22714  #include <db.h>
22715  #endif
22716
22717int
22718main ()
22719{
22720db_create(NULL, NULL, 0)
22721  ;
22722  return 0;
22723}
22724_ACEOF
22725rm -f conftest.$ac_objext conftest$ac_exeext
22726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22727  (eval $ac_link) 2>conftest.er1
22728  ac_status=$?
22729  grep -v '^ *+' conftest.er1 >conftest.err
22730  rm -f conftest.er1
22731  cat conftest.err >&5
22732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733  (exit $ac_status); } &&
22734	 { ac_try='test -z "$ac_c_werror_flag"
22735			 || test ! -s conftest.err'
22736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22737  (eval $ac_try) 2>&5
22738  ac_status=$?
22739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740  (exit $ac_status); }; } &&
22741	 { ac_try='test -s conftest$ac_exeext'
22742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743  (eval $ac_try) 2>&5
22744  ac_status=$?
22745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746  (exit $ac_status); }; }; then
22747  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
22748else
22749  echo "$as_me: failed program was:" >&5
22750sed 's/^/| /' conftest.$ac_ext >&5
22751
22752fi
22753rm -f conftest.err conftest.$ac_objext \
22754      conftest$ac_exeext conftest.$ac_ext
22755	done
22756	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
22757	LIBS="$ac_save_LIBS"
22758fi
22759
22760fi
22761
22762
22763eval "ac_res=\$ac_cv_funclib_db_create"
22764
22765if false; then
22766
22767for ac_func in db_create
22768do
22769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22770echo "$as_me:$LINENO: checking for $ac_func" >&5
22771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22772if eval "test \"\${$as_ac_var+set}\" = set"; then
22773  echo $ECHO_N "(cached) $ECHO_C" >&6
22774else
22775  cat >conftest.$ac_ext <<_ACEOF
22776/* confdefs.h.  */
22777_ACEOF
22778cat confdefs.h >>conftest.$ac_ext
22779cat >>conftest.$ac_ext <<_ACEOF
22780/* end confdefs.h.  */
22781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22782   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22783#define $ac_func innocuous_$ac_func
22784
22785/* System header to define __stub macros and hopefully few prototypes,
22786    which can conflict with char $ac_func (); below.
22787    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22788    <limits.h> exists even on freestanding compilers.  */
22789
22790#ifdef __STDC__
22791# include <limits.h>
22792#else
22793# include <assert.h>
22794#endif
22795
22796#undef $ac_func
22797
22798/* Override any gcc2 internal prototype to avoid an error.  */
22799#ifdef __cplusplus
22800extern "C"
22801{
22802#endif
22803/* We use char because int might match the return type of a gcc2
22804   builtin and then its argument prototype would still apply.  */
22805char $ac_func ();
22806/* The GNU C library defines this for functions which it implements
22807    to always fail with ENOSYS.  Some functions are actually named
22808    something starting with __ and the normal name is an alias.  */
22809#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22810choke me
22811#else
22812char (*f) () = $ac_func;
22813#endif
22814#ifdef __cplusplus
22815}
22816#endif
22817
22818int
22819main ()
22820{
22821return f != $ac_func;
22822  ;
22823  return 0;
22824}
22825_ACEOF
22826rm -f conftest.$ac_objext conftest$ac_exeext
22827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22828  (eval $ac_link) 2>conftest.er1
22829  ac_status=$?
22830  grep -v '^ *+' conftest.er1 >conftest.err
22831  rm -f conftest.er1
22832  cat conftest.err >&5
22833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834  (exit $ac_status); } &&
22835	 { ac_try='test -z "$ac_c_werror_flag"
22836			 || test ! -s conftest.err'
22837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22838  (eval $ac_try) 2>&5
22839  ac_status=$?
22840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841  (exit $ac_status); }; } &&
22842	 { ac_try='test -s conftest$ac_exeext'
22843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844  (eval $ac_try) 2>&5
22845  ac_status=$?
22846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847  (exit $ac_status); }; }; then
22848  eval "$as_ac_var=yes"
22849else
22850  echo "$as_me: failed program was:" >&5
22851sed 's/^/| /' conftest.$ac_ext >&5
22852
22853eval "$as_ac_var=no"
22854fi
22855rm -f conftest.err conftest.$ac_objext \
22856      conftest$ac_exeext conftest.$ac_ext
22857fi
22858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22859echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22860if test `eval echo '${'$as_ac_var'}'` = yes; then
22861  cat >>confdefs.h <<_ACEOF
22862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22863_ACEOF
22864
22865fi
22866done
22867
22868fi
22869# db_create
22870eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22871eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22872eval "LIB_db_create=$ac_res"
22873
22874case "$ac_res" in
22875	yes)
22876	eval "ac_cv_func_db_create=yes"
22877	eval "LIB_db_create="
22878	cat >>confdefs.h <<_ACEOF
22879#define $ac_tr_func 1
22880_ACEOF
22881
22882	echo "$as_me:$LINENO: result: yes" >&5
22883echo "${ECHO_T}yes" >&6
22884	;;
22885	no)
22886	eval "ac_cv_func_db_create=no"
22887	eval "LIB_db_create="
22888	echo "$as_me:$LINENO: result: no" >&5
22889echo "${ECHO_T}no" >&6
22890	;;
22891	*)
22892	eval "ac_cv_func_db_create=yes"
22893	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
22894	cat >>confdefs.h <<_ACEOF
22895#define $ac_tr_func 1
22896_ACEOF
22897
22898	cat >>confdefs.h <<_ACEOF
22899#define $ac_tr_lib 1
22900_ACEOF
22901
22902	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
22903echo "${ECHO_T}yes, in $ac_res" >&6
22904	;;
22905esac
22906
22907
22908
22909  if test "$ac_cv_func_db_create" = "yes"; then
22910    db_type=db3
22911    if test "$ac_cv_funclib_db_create" != "yes"; then
22912      DBLIB="$ac_cv_funclib_db_create"
22913    else
22914      DBLIB=""
22915    fi
22916
22917cat >>confdefs.h <<\_ACEOF
22918#define HAVE_DB3 1
22919_ACEOF
22920
22921  else
22922
22923
22924
22925
22926
22927echo "$as_me:$LINENO: checking for dbopen" >&5
22928echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
22929if test "${ac_cv_funclib_dbopen+set}" = set; then
22930  echo $ECHO_N "(cached) $ECHO_C" >&6
22931else
22932
22933if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
22934	ac_save_LIBS="$LIBS"
22935	for ac_lib in "" db2 db; do
22936		case "$ac_lib" in
22937		"") ;;
22938		yes) ac_lib="" ;;
22939		no) continue ;;
22940		-l*) ;;
22941		*) ac_lib="-l$ac_lib" ;;
22942		esac
22943		LIBS=" $ac_lib  $ac_save_LIBS"
22944		cat >conftest.$ac_ext <<_ACEOF
22945/* confdefs.h.  */
22946_ACEOF
22947cat confdefs.h >>conftest.$ac_ext
22948cat >>conftest.$ac_ext <<_ACEOF
22949/* end confdefs.h.  */
22950
22951    #include <stdio.h>
22952    #if defined(HAVE_DB2_DB_H)
22953    #include <db2/db.h>
22954    #elif defined(HAVE_DB_185_H)
22955    #include <db_185.h>
22956    #elif defined(HAVE_DB_H)
22957    #include <db.h>
22958    #else
22959    #error no db.h
22960    #endif
22961
22962int
22963main ()
22964{
22965dbopen(NULL, 0, 0, 0, NULL)
22966  ;
22967  return 0;
22968}
22969_ACEOF
22970rm -f conftest.$ac_objext conftest$ac_exeext
22971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22972  (eval $ac_link) 2>conftest.er1
22973  ac_status=$?
22974  grep -v '^ *+' conftest.er1 >conftest.err
22975  rm -f conftest.er1
22976  cat conftest.err >&5
22977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978  (exit $ac_status); } &&
22979	 { ac_try='test -z "$ac_c_werror_flag"
22980			 || test ! -s conftest.err'
22981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982  (eval $ac_try) 2>&5
22983  ac_status=$?
22984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985  (exit $ac_status); }; } &&
22986	 { ac_try='test -s conftest$ac_exeext'
22987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988  (eval $ac_try) 2>&5
22989  ac_status=$?
22990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991  (exit $ac_status); }; }; then
22992  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
22993else
22994  echo "$as_me: failed program was:" >&5
22995sed 's/^/| /' conftest.$ac_ext >&5
22996
22997fi
22998rm -f conftest.err conftest.$ac_objext \
22999      conftest$ac_exeext conftest.$ac_ext
23000	done
23001	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
23002	LIBS="$ac_save_LIBS"
23003fi
23004
23005fi
23006
23007
23008eval "ac_res=\$ac_cv_funclib_dbopen"
23009
23010if false; then
23011
23012for ac_func in dbopen
23013do
23014as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23015echo "$as_me:$LINENO: checking for $ac_func" >&5
23016echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23017if eval "test \"\${$as_ac_var+set}\" = set"; then
23018  echo $ECHO_N "(cached) $ECHO_C" >&6
23019else
23020  cat >conftest.$ac_ext <<_ACEOF
23021/* confdefs.h.  */
23022_ACEOF
23023cat confdefs.h >>conftest.$ac_ext
23024cat >>conftest.$ac_ext <<_ACEOF
23025/* end confdefs.h.  */
23026/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23027   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23028#define $ac_func innocuous_$ac_func
23029
23030/* System header to define __stub macros and hopefully few prototypes,
23031    which can conflict with char $ac_func (); below.
23032    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23033    <limits.h> exists even on freestanding compilers.  */
23034
23035#ifdef __STDC__
23036# include <limits.h>
23037#else
23038# include <assert.h>
23039#endif
23040
23041#undef $ac_func
23042
23043/* Override any gcc2 internal prototype to avoid an error.  */
23044#ifdef __cplusplus
23045extern "C"
23046{
23047#endif
23048/* We use char because int might match the return type of a gcc2
23049   builtin and then its argument prototype would still apply.  */
23050char $ac_func ();
23051/* The GNU C library defines this for functions which it implements
23052    to always fail with ENOSYS.  Some functions are actually named
23053    something starting with __ and the normal name is an alias.  */
23054#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23055choke me
23056#else
23057char (*f) () = $ac_func;
23058#endif
23059#ifdef __cplusplus
23060}
23061#endif
23062
23063int
23064main ()
23065{
23066return f != $ac_func;
23067  ;
23068  return 0;
23069}
23070_ACEOF
23071rm -f conftest.$ac_objext conftest$ac_exeext
23072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23073  (eval $ac_link) 2>conftest.er1
23074  ac_status=$?
23075  grep -v '^ *+' conftest.er1 >conftest.err
23076  rm -f conftest.er1
23077  cat conftest.err >&5
23078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079  (exit $ac_status); } &&
23080	 { ac_try='test -z "$ac_c_werror_flag"
23081			 || test ! -s conftest.err'
23082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083  (eval $ac_try) 2>&5
23084  ac_status=$?
23085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086  (exit $ac_status); }; } &&
23087	 { ac_try='test -s conftest$ac_exeext'
23088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089  (eval $ac_try) 2>&5
23090  ac_status=$?
23091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092  (exit $ac_status); }; }; then
23093  eval "$as_ac_var=yes"
23094else
23095  echo "$as_me: failed program was:" >&5
23096sed 's/^/| /' conftest.$ac_ext >&5
23097
23098eval "$as_ac_var=no"
23099fi
23100rm -f conftest.err conftest.$ac_objext \
23101      conftest$ac_exeext conftest.$ac_ext
23102fi
23103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23105if test `eval echo '${'$as_ac_var'}'` = yes; then
23106  cat >>confdefs.h <<_ACEOF
23107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23108_ACEOF
23109
23110fi
23111done
23112
23113fi
23114# dbopen
23115eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23116eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23117eval "LIB_dbopen=$ac_res"
23118
23119case "$ac_res" in
23120	yes)
23121	eval "ac_cv_func_dbopen=yes"
23122	eval "LIB_dbopen="
23123	cat >>confdefs.h <<_ACEOF
23124#define $ac_tr_func 1
23125_ACEOF
23126
23127	echo "$as_me:$LINENO: result: yes" >&5
23128echo "${ECHO_T}yes" >&6
23129	;;
23130	no)
23131	eval "ac_cv_func_dbopen=no"
23132	eval "LIB_dbopen="
23133	echo "$as_me:$LINENO: result: no" >&5
23134echo "${ECHO_T}no" >&6
23135	;;
23136	*)
23137	eval "ac_cv_func_dbopen=yes"
23138	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23139	cat >>confdefs.h <<_ACEOF
23140#define $ac_tr_func 1
23141_ACEOF
23142
23143	cat >>confdefs.h <<_ACEOF
23144#define $ac_tr_lib 1
23145_ACEOF
23146
23147	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
23148echo "${ECHO_T}yes, in $ac_res" >&6
23149	;;
23150esac
23151
23152
23153
23154    if test "$ac_cv_func_dbopen" = "yes"; then
23155      db_type=db1
23156      if test "$ac_cv_funclib_dbopen" != "yes"; then
23157        DBLIB="$ac_cv_funclib_dbopen"
23158      else
23159        DBLIB=""
23160      fi
23161
23162cat >>confdefs.h <<\_ACEOF
23163#define HAVE_DB1 1
23164_ACEOF
23165
23166    fi
23167  fi
23168
23169
23170  if test "$ac_cv_func_dbm_firstkey" != yes; then
23171
23172
23173echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
23174echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
23175if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
23176  echo $ECHO_N "(cached) $ECHO_C" >&6
23177else
23178
23179if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
23180	ac_save_LIBS="$LIBS"
23181	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
23182		case "$ac_lib" in
23183		"") ;;
23184		yes) ac_lib="" ;;
23185		no) continue ;;
23186		-l*) ;;
23187		*) ac_lib="-l$ac_lib" ;;
23188		esac
23189		LIBS=" $ac_lib  $ac_save_LIBS"
23190		cat >conftest.$ac_ext <<_ACEOF
23191/* confdefs.h.  */
23192_ACEOF
23193cat confdefs.h >>conftest.$ac_ext
23194cat >>conftest.$ac_ext <<_ACEOF
23195/* end confdefs.h.  */
23196
23197    #include <stdio.h>
23198    #define DB_DBM_HSEARCH 1
23199    #include <db.h>
23200    DBM *dbm;
23201
23202int
23203main ()
23204{
23205dbm_firstkey(NULL)
23206  ;
23207  return 0;
23208}
23209_ACEOF
23210rm -f conftest.$ac_objext conftest$ac_exeext
23211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23212  (eval $ac_link) 2>conftest.er1
23213  ac_status=$?
23214  grep -v '^ *+' conftest.er1 >conftest.err
23215  rm -f conftest.er1
23216  cat conftest.err >&5
23217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218  (exit $ac_status); } &&
23219	 { ac_try='test -z "$ac_c_werror_flag"
23220			 || test ! -s conftest.err'
23221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222  (eval $ac_try) 2>&5
23223  ac_status=$?
23224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225  (exit $ac_status); }; } &&
23226	 { ac_try='test -s conftest$ac_exeext'
23227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228  (eval $ac_try) 2>&5
23229  ac_status=$?
23230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231  (exit $ac_status); }; }; then
23232  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
23233else
23234  echo "$as_me: failed program was:" >&5
23235sed 's/^/| /' conftest.$ac_ext >&5
23236
23237fi
23238rm -f conftest.err conftest.$ac_objext \
23239      conftest$ac_exeext conftest.$ac_ext
23240	done
23241	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
23242	LIBS="$ac_save_LIBS"
23243fi
23244
23245fi
23246
23247
23248eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
23249
23250if false; then
23251
23252for ac_func in dbm_firstkey
23253do
23254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23255echo "$as_me:$LINENO: checking for $ac_func" >&5
23256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23257if eval "test \"\${$as_ac_var+set}\" = set"; then
23258  echo $ECHO_N "(cached) $ECHO_C" >&6
23259else
23260  cat >conftest.$ac_ext <<_ACEOF
23261/* confdefs.h.  */
23262_ACEOF
23263cat confdefs.h >>conftest.$ac_ext
23264cat >>conftest.$ac_ext <<_ACEOF
23265/* end confdefs.h.  */
23266/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23267   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23268#define $ac_func innocuous_$ac_func
23269
23270/* System header to define __stub macros and hopefully few prototypes,
23271    which can conflict with char $ac_func (); below.
23272    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23273    <limits.h> exists even on freestanding compilers.  */
23274
23275#ifdef __STDC__
23276# include <limits.h>
23277#else
23278# include <assert.h>
23279#endif
23280
23281#undef $ac_func
23282
23283/* Override any gcc2 internal prototype to avoid an error.  */
23284#ifdef __cplusplus
23285extern "C"
23286{
23287#endif
23288/* We use char because int might match the return type of a gcc2
23289   builtin and then its argument prototype would still apply.  */
23290char $ac_func ();
23291/* The GNU C library defines this for functions which it implements
23292    to always fail with ENOSYS.  Some functions are actually named
23293    something starting with __ and the normal name is an alias.  */
23294#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23295choke me
23296#else
23297char (*f) () = $ac_func;
23298#endif
23299#ifdef __cplusplus
23300}
23301#endif
23302
23303int
23304main ()
23305{
23306return f != $ac_func;
23307  ;
23308  return 0;
23309}
23310_ACEOF
23311rm -f conftest.$ac_objext conftest$ac_exeext
23312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23313  (eval $ac_link) 2>conftest.er1
23314  ac_status=$?
23315  grep -v '^ *+' conftest.er1 >conftest.err
23316  rm -f conftest.er1
23317  cat conftest.err >&5
23318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319  (exit $ac_status); } &&
23320	 { ac_try='test -z "$ac_c_werror_flag"
23321			 || test ! -s conftest.err'
23322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323  (eval $ac_try) 2>&5
23324  ac_status=$?
23325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326  (exit $ac_status); }; } &&
23327	 { ac_try='test -s conftest$ac_exeext'
23328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329  (eval $ac_try) 2>&5
23330  ac_status=$?
23331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332  (exit $ac_status); }; }; then
23333  eval "$as_ac_var=yes"
23334else
23335  echo "$as_me: failed program was:" >&5
23336sed 's/^/| /' conftest.$ac_ext >&5
23337
23338eval "$as_ac_var=no"
23339fi
23340rm -f conftest.err conftest.$ac_objext \
23341      conftest$ac_exeext conftest.$ac_ext
23342fi
23343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23344echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23345if test `eval echo '${'$as_ac_var'}'` = yes; then
23346  cat >>confdefs.h <<_ACEOF
23347#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23348_ACEOF
23349
23350fi
23351done
23352
23353fi
23354# dbm_firstkey
23355eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23356eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23357eval "LIB_dbm_firstkey=$ac_res"
23358
23359case "$ac_res" in
23360	yes)
23361	eval "ac_cv_func_dbm_firstkey=yes"
23362	eval "LIB_dbm_firstkey="
23363	cat >>confdefs.h <<_ACEOF
23364#define $ac_tr_func 1
23365_ACEOF
23366
23367	echo "$as_me:$LINENO: result: yes" >&5
23368echo "${ECHO_T}yes" >&6
23369	;;
23370	no)
23371	eval "ac_cv_func_dbm_firstkey=no"
23372	eval "LIB_dbm_firstkey="
23373	echo "$as_me:$LINENO: result: no" >&5
23374echo "${ECHO_T}no" >&6
23375	;;
23376	*)
23377	eval "ac_cv_func_dbm_firstkey=yes"
23378	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23379	cat >>confdefs.h <<_ACEOF
23380#define $ac_tr_func 1
23381_ACEOF
23382
23383	cat >>confdefs.h <<_ACEOF
23384#define $ac_tr_lib 1
23385_ACEOF
23386
23387	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
23388echo "${ECHO_T}yes, in $ac_res" >&6
23389	;;
23390esac
23391
23392
23393
23394    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
23395      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
23396        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
23397      else
23398        LIB_NDBM=""
23399      fi
23400
23401cat >>confdefs.h <<\_ACEOF
23402#define HAVE_DB_NDBM 1
23403_ACEOF
23404
23405
23406cat >>confdefs.h <<\_ACEOF
23407#define HAVE_NEW_DB 1
23408_ACEOF
23409
23410    else
23411      $as_unset ac_cv_func_dbm_firstkey
23412      $as_unset ac_cv_funclib_dbm_firstkey
23413    fi
23414  fi
23415
23416fi # berkeley db
23417
23418if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
23419
23420
23421
23422for ac_header in 				\
23423	dbm.h					\
23424	ndbm.h					\
23425
23426do
23427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23428if eval "test \"\${$as_ac_Header+set}\" = set"; then
23429  echo "$as_me:$LINENO: checking for $ac_header" >&5
23430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23431if eval "test \"\${$as_ac_Header+set}\" = set"; then
23432  echo $ECHO_N "(cached) $ECHO_C" >&6
23433fi
23434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23436else
23437  # Is the header compilable?
23438echo "$as_me:$LINENO: checking $ac_header usability" >&5
23439echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23440cat >conftest.$ac_ext <<_ACEOF
23441/* confdefs.h.  */
23442_ACEOF
23443cat confdefs.h >>conftest.$ac_ext
23444cat >>conftest.$ac_ext <<_ACEOF
23445/* end confdefs.h.  */
23446$ac_includes_default
23447#include <$ac_header>
23448_ACEOF
23449rm -f conftest.$ac_objext
23450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23451  (eval $ac_compile) 2>conftest.er1
23452  ac_status=$?
23453  grep -v '^ *+' conftest.er1 >conftest.err
23454  rm -f conftest.er1
23455  cat conftest.err >&5
23456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457  (exit $ac_status); } &&
23458	 { ac_try='test -z "$ac_c_werror_flag"
23459			 || test ! -s conftest.err'
23460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461  (eval $ac_try) 2>&5
23462  ac_status=$?
23463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464  (exit $ac_status); }; } &&
23465	 { ac_try='test -s conftest.$ac_objext'
23466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467  (eval $ac_try) 2>&5
23468  ac_status=$?
23469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470  (exit $ac_status); }; }; then
23471  ac_header_compiler=yes
23472else
23473  echo "$as_me: failed program was:" >&5
23474sed 's/^/| /' conftest.$ac_ext >&5
23475
23476ac_header_compiler=no
23477fi
23478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23479echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23480echo "${ECHO_T}$ac_header_compiler" >&6
23481
23482# Is the header present?
23483echo "$as_me:$LINENO: checking $ac_header presence" >&5
23484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23485cat >conftest.$ac_ext <<_ACEOF
23486/* confdefs.h.  */
23487_ACEOF
23488cat confdefs.h >>conftest.$ac_ext
23489cat >>conftest.$ac_ext <<_ACEOF
23490/* end confdefs.h.  */
23491#include <$ac_header>
23492_ACEOF
23493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23494  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23495  ac_status=$?
23496  grep -v '^ *+' conftest.er1 >conftest.err
23497  rm -f conftest.er1
23498  cat conftest.err >&5
23499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500  (exit $ac_status); } >/dev/null; then
23501  if test -s conftest.err; then
23502    ac_cpp_err=$ac_c_preproc_warn_flag
23503    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23504  else
23505    ac_cpp_err=
23506  fi
23507else
23508  ac_cpp_err=yes
23509fi
23510if test -z "$ac_cpp_err"; then
23511  ac_header_preproc=yes
23512else
23513  echo "$as_me: failed program was:" >&5
23514sed 's/^/| /' conftest.$ac_ext >&5
23515
23516  ac_header_preproc=no
23517fi
23518rm -f conftest.err conftest.$ac_ext
23519echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23520echo "${ECHO_T}$ac_header_preproc" >&6
23521
23522# So?  What about this header?
23523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23524  yes:no: )
23525    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23526echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23527    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23528echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23529    ac_header_preproc=yes
23530    ;;
23531  no:yes:* )
23532    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23533echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23534    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23535echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23536    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23537echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23538    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23539echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23540    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23541echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23542    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23543echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23544    (
23545      cat <<\_ASBOX
23546## -------------------------------------- ##
23547## Report this to heimdal-bugs@pdc.kth.se ##
23548## -------------------------------------- ##
23549_ASBOX
23550    ) |
23551      sed "s/^/$as_me: WARNING:     /" >&2
23552    ;;
23553esac
23554echo "$as_me:$LINENO: checking for $ac_header" >&5
23555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23556if eval "test \"\${$as_ac_Header+set}\" = set"; then
23557  echo $ECHO_N "(cached) $ECHO_C" >&6
23558else
23559  eval "$as_ac_Header=\$ac_header_preproc"
23560fi
23561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23563
23564fi
23565if test `eval echo '${'$as_ac_Header'}'` = yes; then
23566  cat >>confdefs.h <<_ACEOF
23567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23568_ACEOF
23569
23570fi
23571
23572done
23573
23574
23575
23576
23577
23578echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
23579echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
23580if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
23581  echo $ECHO_N "(cached) $ECHO_C" >&6
23582else
23583
23584if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
23585	ac_save_LIBS="$LIBS"
23586	for ac_lib in "" ndbm; do
23587		case "$ac_lib" in
23588		"") ;;
23589		yes) ac_lib="" ;;
23590		no) continue ;;
23591		-l*) ;;
23592		*) ac_lib="-l$ac_lib" ;;
23593		esac
23594		LIBS=" $ac_lib  $ac_save_LIBS"
23595		cat >conftest.$ac_ext <<_ACEOF
23596/* confdefs.h.  */
23597_ACEOF
23598cat confdefs.h >>conftest.$ac_ext
23599cat >>conftest.$ac_ext <<_ACEOF
23600/* end confdefs.h.  */
23601
23602  #include <stdio.h>
23603  #if defined(HAVE_NDBM_H)
23604  #include <ndbm.h>
23605  #elif defined(HAVE_DBM_H)
23606  #include <dbm.h>
23607  #endif
23608  DBM *dbm;
23609
23610int
23611main ()
23612{
23613dbm_firstkey(NULL)
23614  ;
23615  return 0;
23616}
23617_ACEOF
23618rm -f conftest.$ac_objext conftest$ac_exeext
23619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23620  (eval $ac_link) 2>conftest.er1
23621  ac_status=$?
23622  grep -v '^ *+' conftest.er1 >conftest.err
23623  rm -f conftest.er1
23624  cat conftest.err >&5
23625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626  (exit $ac_status); } &&
23627	 { ac_try='test -z "$ac_c_werror_flag"
23628			 || test ! -s conftest.err'
23629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630  (eval $ac_try) 2>&5
23631  ac_status=$?
23632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633  (exit $ac_status); }; } &&
23634	 { ac_try='test -s conftest$ac_exeext'
23635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636  (eval $ac_try) 2>&5
23637  ac_status=$?
23638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639  (exit $ac_status); }; }; then
23640  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
23641else
23642  echo "$as_me: failed program was:" >&5
23643sed 's/^/| /' conftest.$ac_ext >&5
23644
23645fi
23646rm -f conftest.err conftest.$ac_objext \
23647      conftest$ac_exeext conftest.$ac_ext
23648	done
23649	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
23650	LIBS="$ac_save_LIBS"
23651fi
23652
23653fi
23654
23655
23656eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
23657
23658if false; then
23659
23660for ac_func in dbm_firstkey
23661do
23662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23663echo "$as_me:$LINENO: checking for $ac_func" >&5
23664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23665if eval "test \"\${$as_ac_var+set}\" = set"; then
23666  echo $ECHO_N "(cached) $ECHO_C" >&6
23667else
23668  cat >conftest.$ac_ext <<_ACEOF
23669/* confdefs.h.  */
23670_ACEOF
23671cat confdefs.h >>conftest.$ac_ext
23672cat >>conftest.$ac_ext <<_ACEOF
23673/* end confdefs.h.  */
23674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23675   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23676#define $ac_func innocuous_$ac_func
23677
23678/* System header to define __stub macros and hopefully few prototypes,
23679    which can conflict with char $ac_func (); below.
23680    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23681    <limits.h> exists even on freestanding compilers.  */
23682
23683#ifdef __STDC__
23684# include <limits.h>
23685#else
23686# include <assert.h>
23687#endif
23688
23689#undef $ac_func
23690
23691/* Override any gcc2 internal prototype to avoid an error.  */
23692#ifdef __cplusplus
23693extern "C"
23694{
23695#endif
23696/* We use char because int might match the return type of a gcc2
23697   builtin and then its argument prototype would still apply.  */
23698char $ac_func ();
23699/* The GNU C library defines this for functions which it implements
23700    to always fail with ENOSYS.  Some functions are actually named
23701    something starting with __ and the normal name is an alias.  */
23702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23703choke me
23704#else
23705char (*f) () = $ac_func;
23706#endif
23707#ifdef __cplusplus
23708}
23709#endif
23710
23711int
23712main ()
23713{
23714return f != $ac_func;
23715  ;
23716  return 0;
23717}
23718_ACEOF
23719rm -f conftest.$ac_objext conftest$ac_exeext
23720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23721  (eval $ac_link) 2>conftest.er1
23722  ac_status=$?
23723  grep -v '^ *+' conftest.er1 >conftest.err
23724  rm -f conftest.er1
23725  cat conftest.err >&5
23726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727  (exit $ac_status); } &&
23728	 { ac_try='test -z "$ac_c_werror_flag"
23729			 || test ! -s conftest.err'
23730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731  (eval $ac_try) 2>&5
23732  ac_status=$?
23733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734  (exit $ac_status); }; } &&
23735	 { ac_try='test -s conftest$ac_exeext'
23736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737  (eval $ac_try) 2>&5
23738  ac_status=$?
23739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740  (exit $ac_status); }; }; then
23741  eval "$as_ac_var=yes"
23742else
23743  echo "$as_me: failed program was:" >&5
23744sed 's/^/| /' conftest.$ac_ext >&5
23745
23746eval "$as_ac_var=no"
23747fi
23748rm -f conftest.err conftest.$ac_objext \
23749      conftest$ac_exeext conftest.$ac_ext
23750fi
23751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23752echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23753if test `eval echo '${'$as_ac_var'}'` = yes; then
23754  cat >>confdefs.h <<_ACEOF
23755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23756_ACEOF
23757
23758fi
23759done
23760
23761fi
23762# dbm_firstkey
23763eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23764eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23765eval "LIB_dbm_firstkey=$ac_res"
23766
23767case "$ac_res" in
23768	yes)
23769	eval "ac_cv_func_dbm_firstkey=yes"
23770	eval "LIB_dbm_firstkey="
23771	cat >>confdefs.h <<_ACEOF
23772#define $ac_tr_func 1
23773_ACEOF
23774
23775	echo "$as_me:$LINENO: result: yes" >&5
23776echo "${ECHO_T}yes" >&6
23777	;;
23778	no)
23779	eval "ac_cv_func_dbm_firstkey=no"
23780	eval "LIB_dbm_firstkey="
23781	echo "$as_me:$LINENO: result: no" >&5
23782echo "${ECHO_T}no" >&6
23783	;;
23784	*)
23785	eval "ac_cv_func_dbm_firstkey=yes"
23786	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23787	cat >>confdefs.h <<_ACEOF
23788#define $ac_tr_func 1
23789_ACEOF
23790
23791	cat >>confdefs.h <<_ACEOF
23792#define $ac_tr_lib 1
23793_ACEOF
23794
23795	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
23796echo "${ECHO_T}yes, in $ac_res" >&6
23797	;;
23798esac
23799
23800
23801
23802  if test "$ac_cv_func_dbm_firstkey" = "yes"; then
23803    if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
23804      LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
23805    else
23806      LIB_NDBM=""
23807    fi
23808
23809cat >>confdefs.h <<\_ACEOF
23810#define HAVE_NDBM 1
23811_ACEOF
23812    have_ndbm=yes
23813    if test "$db_type" = "unknown"; then
23814      db_type=ndbm
23815      DBLIB="$LIB_NDBM"
23816    fi
23817  else
23818
23819    $as_unset ac_cv_func_dbm_firstkey
23820    $as_unset ac_cv_funclib_dbm_firstkey
23821
23822
23823for ac_header in 				\
23824	  gdbm/ndbm.h				\
23825
23826do
23827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23828if eval "test \"\${$as_ac_Header+set}\" = set"; then
23829  echo "$as_me:$LINENO: checking for $ac_header" >&5
23830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23831if eval "test \"\${$as_ac_Header+set}\" = set"; then
23832  echo $ECHO_N "(cached) $ECHO_C" >&6
23833fi
23834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23836else
23837  # Is the header compilable?
23838echo "$as_me:$LINENO: checking $ac_header usability" >&5
23839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23840cat >conftest.$ac_ext <<_ACEOF
23841/* confdefs.h.  */
23842_ACEOF
23843cat confdefs.h >>conftest.$ac_ext
23844cat >>conftest.$ac_ext <<_ACEOF
23845/* end confdefs.h.  */
23846$ac_includes_default
23847#include <$ac_header>
23848_ACEOF
23849rm -f conftest.$ac_objext
23850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23851  (eval $ac_compile) 2>conftest.er1
23852  ac_status=$?
23853  grep -v '^ *+' conftest.er1 >conftest.err
23854  rm -f conftest.er1
23855  cat conftest.err >&5
23856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857  (exit $ac_status); } &&
23858	 { ac_try='test -z "$ac_c_werror_flag"
23859			 || test ! -s conftest.err'
23860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861  (eval $ac_try) 2>&5
23862  ac_status=$?
23863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864  (exit $ac_status); }; } &&
23865	 { ac_try='test -s conftest.$ac_objext'
23866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867  (eval $ac_try) 2>&5
23868  ac_status=$?
23869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870  (exit $ac_status); }; }; then
23871  ac_header_compiler=yes
23872else
23873  echo "$as_me: failed program was:" >&5
23874sed 's/^/| /' conftest.$ac_ext >&5
23875
23876ac_header_compiler=no
23877fi
23878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23879echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23880echo "${ECHO_T}$ac_header_compiler" >&6
23881
23882# Is the header present?
23883echo "$as_me:$LINENO: checking $ac_header presence" >&5
23884echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23885cat >conftest.$ac_ext <<_ACEOF
23886/* confdefs.h.  */
23887_ACEOF
23888cat confdefs.h >>conftest.$ac_ext
23889cat >>conftest.$ac_ext <<_ACEOF
23890/* end confdefs.h.  */
23891#include <$ac_header>
23892_ACEOF
23893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23894  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23895  ac_status=$?
23896  grep -v '^ *+' conftest.er1 >conftest.err
23897  rm -f conftest.er1
23898  cat conftest.err >&5
23899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900  (exit $ac_status); } >/dev/null; then
23901  if test -s conftest.err; then
23902    ac_cpp_err=$ac_c_preproc_warn_flag
23903    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23904  else
23905    ac_cpp_err=
23906  fi
23907else
23908  ac_cpp_err=yes
23909fi
23910if test -z "$ac_cpp_err"; then
23911  ac_header_preproc=yes
23912else
23913  echo "$as_me: failed program was:" >&5
23914sed 's/^/| /' conftest.$ac_ext >&5
23915
23916  ac_header_preproc=no
23917fi
23918rm -f conftest.err conftest.$ac_ext
23919echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23920echo "${ECHO_T}$ac_header_preproc" >&6
23921
23922# So?  What about this header?
23923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23924  yes:no: )
23925    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23926echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23927    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23928echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23929    ac_header_preproc=yes
23930    ;;
23931  no:yes:* )
23932    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23933echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23934    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23935echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23936    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23937echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23938    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23939echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23940    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23941echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23942    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23943echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23944    (
23945      cat <<\_ASBOX
23946## -------------------------------------- ##
23947## Report this to heimdal-bugs@pdc.kth.se ##
23948## -------------------------------------- ##
23949_ASBOX
23950    ) |
23951      sed "s/^/$as_me: WARNING:     /" >&2
23952    ;;
23953esac
23954echo "$as_me:$LINENO: checking for $ac_header" >&5
23955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23956if eval "test \"\${$as_ac_Header+set}\" = set"; then
23957  echo $ECHO_N "(cached) $ECHO_C" >&6
23958else
23959  eval "$as_ac_Header=\$ac_header_preproc"
23960fi
23961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23962echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23963
23964fi
23965if test `eval echo '${'$as_ac_Header'}'` = yes; then
23966  cat >>confdefs.h <<_ACEOF
23967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23968_ACEOF
23969
23970fi
23971
23972done
23973
23974
23975
23976
23977
23978echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
23979echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
23980if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
23981  echo $ECHO_N "(cached) $ECHO_C" >&6
23982else
23983
23984if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
23985	ac_save_LIBS="$LIBS"
23986	for ac_lib in "" gdbm; do
23987		case "$ac_lib" in
23988		"") ;;
23989		yes) ac_lib="" ;;
23990		no) continue ;;
23991		-l*) ;;
23992		*) ac_lib="-l$ac_lib" ;;
23993		esac
23994		LIBS=" $ac_lib  $ac_save_LIBS"
23995		cat >conftest.$ac_ext <<_ACEOF
23996/* confdefs.h.  */
23997_ACEOF
23998cat confdefs.h >>conftest.$ac_ext
23999cat >>conftest.$ac_ext <<_ACEOF
24000/* end confdefs.h.  */
24001
24002    #include <stdio.h>
24003    #include <gdbm/ndbm.h>
24004    DBM *dbm;
24005
24006int
24007main ()
24008{
24009dbm_firstkey(NULL)
24010  ;
24011  return 0;
24012}
24013_ACEOF
24014rm -f conftest.$ac_objext conftest$ac_exeext
24015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24016  (eval $ac_link) 2>conftest.er1
24017  ac_status=$?
24018  grep -v '^ *+' conftest.er1 >conftest.err
24019  rm -f conftest.er1
24020  cat conftest.err >&5
24021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022  (exit $ac_status); } &&
24023	 { ac_try='test -z "$ac_c_werror_flag"
24024			 || test ! -s conftest.err'
24025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24026  (eval $ac_try) 2>&5
24027  ac_status=$?
24028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029  (exit $ac_status); }; } &&
24030	 { ac_try='test -s conftest$ac_exeext'
24031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032  (eval $ac_try) 2>&5
24033  ac_status=$?
24034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035  (exit $ac_status); }; }; then
24036  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
24037else
24038  echo "$as_me: failed program was:" >&5
24039sed 's/^/| /' conftest.$ac_ext >&5
24040
24041fi
24042rm -f conftest.err conftest.$ac_objext \
24043      conftest$ac_exeext conftest.$ac_ext
24044	done
24045	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
24046	LIBS="$ac_save_LIBS"
24047fi
24048
24049fi
24050
24051
24052eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
24053
24054if false; then
24055
24056for ac_func in dbm_firstkey
24057do
24058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24059echo "$as_me:$LINENO: checking for $ac_func" >&5
24060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24061if eval "test \"\${$as_ac_var+set}\" = set"; then
24062  echo $ECHO_N "(cached) $ECHO_C" >&6
24063else
24064  cat >conftest.$ac_ext <<_ACEOF
24065/* confdefs.h.  */
24066_ACEOF
24067cat confdefs.h >>conftest.$ac_ext
24068cat >>conftest.$ac_ext <<_ACEOF
24069/* end confdefs.h.  */
24070/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24071   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24072#define $ac_func innocuous_$ac_func
24073
24074/* System header to define __stub macros and hopefully few prototypes,
24075    which can conflict with char $ac_func (); below.
24076    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24077    <limits.h> exists even on freestanding compilers.  */
24078
24079#ifdef __STDC__
24080# include <limits.h>
24081#else
24082# include <assert.h>
24083#endif
24084
24085#undef $ac_func
24086
24087/* Override any gcc2 internal prototype to avoid an error.  */
24088#ifdef __cplusplus
24089extern "C"
24090{
24091#endif
24092/* We use char because int might match the return type of a gcc2
24093   builtin and then its argument prototype would still apply.  */
24094char $ac_func ();
24095/* The GNU C library defines this for functions which it implements
24096    to always fail with ENOSYS.  Some functions are actually named
24097    something starting with __ and the normal name is an alias.  */
24098#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24099choke me
24100#else
24101char (*f) () = $ac_func;
24102#endif
24103#ifdef __cplusplus
24104}
24105#endif
24106
24107int
24108main ()
24109{
24110return f != $ac_func;
24111  ;
24112  return 0;
24113}
24114_ACEOF
24115rm -f conftest.$ac_objext conftest$ac_exeext
24116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24117  (eval $ac_link) 2>conftest.er1
24118  ac_status=$?
24119  grep -v '^ *+' conftest.er1 >conftest.err
24120  rm -f conftest.er1
24121  cat conftest.err >&5
24122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123  (exit $ac_status); } &&
24124	 { ac_try='test -z "$ac_c_werror_flag"
24125			 || test ! -s conftest.err'
24126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127  (eval $ac_try) 2>&5
24128  ac_status=$?
24129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130  (exit $ac_status); }; } &&
24131	 { ac_try='test -s conftest$ac_exeext'
24132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133  (eval $ac_try) 2>&5
24134  ac_status=$?
24135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136  (exit $ac_status); }; }; then
24137  eval "$as_ac_var=yes"
24138else
24139  echo "$as_me: failed program was:" >&5
24140sed 's/^/| /' conftest.$ac_ext >&5
24141
24142eval "$as_ac_var=no"
24143fi
24144rm -f conftest.err conftest.$ac_objext \
24145      conftest$ac_exeext conftest.$ac_ext
24146fi
24147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24148echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24149if test `eval echo '${'$as_ac_var'}'` = yes; then
24150  cat >>confdefs.h <<_ACEOF
24151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24152_ACEOF
24153
24154fi
24155done
24156
24157fi
24158# dbm_firstkey
24159eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24160eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24161eval "LIB_dbm_firstkey=$ac_res"
24162
24163case "$ac_res" in
24164	yes)
24165	eval "ac_cv_func_dbm_firstkey=yes"
24166	eval "LIB_dbm_firstkey="
24167	cat >>confdefs.h <<_ACEOF
24168#define $ac_tr_func 1
24169_ACEOF
24170
24171	echo "$as_me:$LINENO: result: yes" >&5
24172echo "${ECHO_T}yes" >&6
24173	;;
24174	no)
24175	eval "ac_cv_func_dbm_firstkey=no"
24176	eval "LIB_dbm_firstkey="
24177	echo "$as_me:$LINENO: result: no" >&5
24178echo "${ECHO_T}no" >&6
24179	;;
24180	*)
24181	eval "ac_cv_func_dbm_firstkey=yes"
24182	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
24183	cat >>confdefs.h <<_ACEOF
24184#define $ac_tr_func 1
24185_ACEOF
24186
24187	cat >>confdefs.h <<_ACEOF
24188#define $ac_tr_lib 1
24189_ACEOF
24190
24191	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
24192echo "${ECHO_T}yes, in $ac_res" >&6
24193	;;
24194esac
24195
24196
24197
24198    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
24199      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
24200	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
24201      else
24202	LIB_NDBM=""
24203      fi
24204
24205cat >>confdefs.h <<\_ACEOF
24206#define HAVE_NDBM 1
24207_ACEOF
24208      have_ndbm=yes
24209      if test "$db_type" = "unknown"; then
24210	db_type=ndbm
24211	DBLIB="$LIB_NDBM"
24212      fi
24213    fi
24214  fi
24215
24216fi # unknown
24217
24218if test "$have_ndbm" = "yes"; then
24219  echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
24220echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
24221  if test "$cross_compiling" = yes; then
24222  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24223See \`config.log' for more details." >&5
24224echo "$as_me: error: cannot run test program while cross compiling
24225See \`config.log' for more details." >&2;}
24226   { (exit 1); exit 1; }; }
24227else
24228  cat >conftest.$ac_ext <<_ACEOF
24229/* confdefs.h.  */
24230_ACEOF
24231cat confdefs.h >>conftest.$ac_ext
24232cat >>conftest.$ac_ext <<_ACEOF
24233/* end confdefs.h.  */
24234
24235#include <unistd.h>
24236#include <fcntl.h>
24237#if defined(HAVE_GDBM_NDBM_H)
24238#include <gdbm/ndbm.h>
24239#elif defined(HAVE_NDBM_H)
24240#include <ndbm.h>
24241#elif defined(HAVE_DBM_H)
24242#include <dbm.h>
24243#endif
24244int main()
24245{
24246  DBM *d;
24247
24248  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
24249  if (d == NULL)
24250    return 1;
24251  dbm_close(d);
24252  return 0;
24253}
24254_ACEOF
24255rm -f conftest$ac_exeext
24256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24257  (eval $ac_link) 2>&5
24258  ac_status=$?
24259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24262  (eval $ac_try) 2>&5
24263  ac_status=$?
24264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265  (exit $ac_status); }; }; then
24266
24267    if test -f conftest.db; then
24268      echo "$as_me:$LINENO: result: yes" >&5
24269echo "${ECHO_T}yes" >&6
24270
24271cat >>confdefs.h <<\_ACEOF
24272#define HAVE_NEW_DB 1
24273_ACEOF
24274
24275    else
24276      echo "$as_me:$LINENO: result: no" >&5
24277echo "${ECHO_T}no" >&6
24278    fi
24279else
24280  echo "$as_me: program exited with status $ac_status" >&5
24281echo "$as_me: failed program was:" >&5
24282sed 's/^/| /' conftest.$ac_ext >&5
24283
24284( exit $ac_status )
24285echo "$as_me:$LINENO: result: no" >&5
24286echo "${ECHO_T}no" >&6
24287fi
24288rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24289fi
24290fi
24291
24292
24293
24294if test "$db_type" = db1; then
24295  HAVE_DB1_TRUE=
24296  HAVE_DB1_FALSE='#'
24297else
24298  HAVE_DB1_TRUE='#'
24299  HAVE_DB1_FALSE=
24300fi
24301
24302
24303if test "$db_type" = db3; then
24304  HAVE_DB3_TRUE=
24305  HAVE_DB3_FALSE='#'
24306else
24307  HAVE_DB3_TRUE='#'
24308  HAVE_DB3_FALSE=
24309fi
24310
24311
24312if test "$db_type" = ndbm; then
24313  HAVE_NDBM_TRUE=
24314  HAVE_NDBM_FALSE='#'
24315else
24316  HAVE_NDBM_TRUE='#'
24317  HAVE_NDBM_FALSE=
24318fi
24319
24320## it's probably not correct to include LDFLAGS here, but we might
24321## need it, for now just add any possible -L
24322z=""
24323for i in $LDFLAGS; do
24324	case "$i" in
24325	-L*) z="$z $i";;
24326	esac
24327done
24328DBLIB="$z $DBLIB"
24329
24330
24331
24332
24333
24334echo "$as_me:$LINENO: checking for inline" >&5
24335echo $ECHO_N "checking for inline... $ECHO_C" >&6
24336if test "${ac_cv_c_inline+set}" = set; then
24337  echo $ECHO_N "(cached) $ECHO_C" >&6
24338else
24339  ac_cv_c_inline=no
24340for ac_kw in inline __inline__ __inline; do
24341  cat >conftest.$ac_ext <<_ACEOF
24342/* confdefs.h.  */
24343_ACEOF
24344cat confdefs.h >>conftest.$ac_ext
24345cat >>conftest.$ac_ext <<_ACEOF
24346/* end confdefs.h.  */
24347#ifndef __cplusplus
24348typedef int foo_t;
24349static $ac_kw foo_t static_foo () {return 0; }
24350$ac_kw foo_t foo () {return 0; }
24351#endif
24352
24353_ACEOF
24354rm -f conftest.$ac_objext
24355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24356  (eval $ac_compile) 2>conftest.er1
24357  ac_status=$?
24358  grep -v '^ *+' conftest.er1 >conftest.err
24359  rm -f conftest.er1
24360  cat conftest.err >&5
24361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362  (exit $ac_status); } &&
24363	 { ac_try='test -z "$ac_c_werror_flag"
24364			 || test ! -s conftest.err'
24365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24366  (eval $ac_try) 2>&5
24367  ac_status=$?
24368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369  (exit $ac_status); }; } &&
24370	 { ac_try='test -s conftest.$ac_objext'
24371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24372  (eval $ac_try) 2>&5
24373  ac_status=$?
24374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375  (exit $ac_status); }; }; then
24376  ac_cv_c_inline=$ac_kw; break
24377else
24378  echo "$as_me: failed program was:" >&5
24379sed 's/^/| /' conftest.$ac_ext >&5
24380
24381fi
24382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24383done
24384
24385fi
24386echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24387echo "${ECHO_T}$ac_cv_c_inline" >&6
24388
24389
24390case $ac_cv_c_inline in
24391  inline | yes) ;;
24392  *)
24393    case $ac_cv_c_inline in
24394      no) ac_val=;;
24395      *) ac_val=$ac_cv_c_inline;;
24396    esac
24397    cat >>confdefs.h <<_ACEOF
24398#ifndef __cplusplus
24399#define inline $ac_val
24400#endif
24401_ACEOF
24402    ;;
24403esac
24404
24405echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24406echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
24407if test "${ac_cv_c_const+set}" = set; then
24408  echo $ECHO_N "(cached) $ECHO_C" >&6
24409else
24410  cat >conftest.$ac_ext <<_ACEOF
24411/* confdefs.h.  */
24412_ACEOF
24413cat confdefs.h >>conftest.$ac_ext
24414cat >>conftest.$ac_ext <<_ACEOF
24415/* end confdefs.h.  */
24416
24417int
24418main ()
24419{
24420/* FIXME: Include the comments suggested by Paul. */
24421#ifndef __cplusplus
24422  /* Ultrix mips cc rejects this.  */
24423  typedef int charset[2];
24424  const charset x;
24425  /* SunOS 4.1.1 cc rejects this.  */
24426  char const *const *ccp;
24427  char **p;
24428  /* NEC SVR4.0.2 mips cc rejects this.  */
24429  struct point {int x, y;};
24430  static struct point const zero = {0,0};
24431  /* AIX XL C 1.02.0.0 rejects this.
24432     It does not let you subtract one const X* pointer from another in
24433     an arm of an if-expression whose if-part is not a constant
24434     expression */
24435  const char *g = "string";
24436  ccp = &g + (g ? g-g : 0);
24437  /* HPUX 7.0 cc rejects these. */
24438  ++ccp;
24439  p = (char**) ccp;
24440  ccp = (char const *const *) p;
24441  { /* SCO 3.2v4 cc rejects this.  */
24442    char *t;
24443    char const *s = 0 ? (char *) 0 : (char const *) 0;
24444
24445    *t++ = 0;
24446  }
24447  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24448    int x[] = {25, 17};
24449    const int *foo = &x[0];
24450    ++foo;
24451  }
24452  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24453    typedef const int *iptr;
24454    iptr p = 0;
24455    ++p;
24456  }
24457  { /* AIX XL C 1.02.0.0 rejects this saying
24458       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24459    struct s { int j; const int *ap[3]; };
24460    struct s *b; b->j = 5;
24461  }
24462  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24463    const int foo = 10;
24464  }
24465#endif
24466
24467  ;
24468  return 0;
24469}
24470_ACEOF
24471rm -f conftest.$ac_objext
24472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24473  (eval $ac_compile) 2>conftest.er1
24474  ac_status=$?
24475  grep -v '^ *+' conftest.er1 >conftest.err
24476  rm -f conftest.er1
24477  cat conftest.err >&5
24478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479  (exit $ac_status); } &&
24480	 { ac_try='test -z "$ac_c_werror_flag"
24481			 || test ! -s conftest.err'
24482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483  (eval $ac_try) 2>&5
24484  ac_status=$?
24485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486  (exit $ac_status); }; } &&
24487	 { ac_try='test -s conftest.$ac_objext'
24488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489  (eval $ac_try) 2>&5
24490  ac_status=$?
24491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492  (exit $ac_status); }; }; then
24493  ac_cv_c_const=yes
24494else
24495  echo "$as_me: failed program was:" >&5
24496sed 's/^/| /' conftest.$ac_ext >&5
24497
24498ac_cv_c_const=no
24499fi
24500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24501fi
24502echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24503echo "${ECHO_T}$ac_cv_c_const" >&6
24504if test $ac_cv_c_const = no; then
24505
24506cat >>confdefs.h <<\_ACEOF
24507#define const
24508_ACEOF
24509
24510fi
24511
24512echo "$as_me:$LINENO: checking for size_t" >&5
24513echo $ECHO_N "checking for size_t... $ECHO_C" >&6
24514if test "${ac_cv_type_size_t+set}" = set; then
24515  echo $ECHO_N "(cached) $ECHO_C" >&6
24516else
24517  cat >conftest.$ac_ext <<_ACEOF
24518/* confdefs.h.  */
24519_ACEOF
24520cat confdefs.h >>conftest.$ac_ext
24521cat >>conftest.$ac_ext <<_ACEOF
24522/* end confdefs.h.  */
24523$ac_includes_default
24524int
24525main ()
24526{
24527if ((size_t *) 0)
24528  return 0;
24529if (sizeof (size_t))
24530  return 0;
24531  ;
24532  return 0;
24533}
24534_ACEOF
24535rm -f conftest.$ac_objext
24536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24537  (eval $ac_compile) 2>conftest.er1
24538  ac_status=$?
24539  grep -v '^ *+' conftest.er1 >conftest.err
24540  rm -f conftest.er1
24541  cat conftest.err >&5
24542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543  (exit $ac_status); } &&
24544	 { ac_try='test -z "$ac_c_werror_flag"
24545			 || test ! -s conftest.err'
24546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547  (eval $ac_try) 2>&5
24548  ac_status=$?
24549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550  (exit $ac_status); }; } &&
24551	 { ac_try='test -s conftest.$ac_objext'
24552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24553  (eval $ac_try) 2>&5
24554  ac_status=$?
24555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556  (exit $ac_status); }; }; then
24557  ac_cv_type_size_t=yes
24558else
24559  echo "$as_me: failed program was:" >&5
24560sed 's/^/| /' conftest.$ac_ext >&5
24561
24562ac_cv_type_size_t=no
24563fi
24564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24565fi
24566echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24567echo "${ECHO_T}$ac_cv_type_size_t" >&6
24568if test $ac_cv_type_size_t = yes; then
24569  :
24570else
24571
24572cat >>confdefs.h <<_ACEOF
24573#define size_t unsigned
24574_ACEOF
24575
24576fi
24577
24578echo "$as_me:$LINENO: checking for pid_t" >&5
24579echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
24580if test "${ac_cv_type_pid_t+set}" = set; then
24581  echo $ECHO_N "(cached) $ECHO_C" >&6
24582else
24583  cat >conftest.$ac_ext <<_ACEOF
24584/* confdefs.h.  */
24585_ACEOF
24586cat confdefs.h >>conftest.$ac_ext
24587cat >>conftest.$ac_ext <<_ACEOF
24588/* end confdefs.h.  */
24589$ac_includes_default
24590int
24591main ()
24592{
24593if ((pid_t *) 0)
24594  return 0;
24595if (sizeof (pid_t))
24596  return 0;
24597  ;
24598  return 0;
24599}
24600_ACEOF
24601rm -f conftest.$ac_objext
24602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24603  (eval $ac_compile) 2>conftest.er1
24604  ac_status=$?
24605  grep -v '^ *+' conftest.er1 >conftest.err
24606  rm -f conftest.er1
24607  cat conftest.err >&5
24608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609  (exit $ac_status); } &&
24610	 { ac_try='test -z "$ac_c_werror_flag"
24611			 || test ! -s conftest.err'
24612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613  (eval $ac_try) 2>&5
24614  ac_status=$?
24615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616  (exit $ac_status); }; } &&
24617	 { ac_try='test -s conftest.$ac_objext'
24618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619  (eval $ac_try) 2>&5
24620  ac_status=$?
24621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622  (exit $ac_status); }; }; then
24623  ac_cv_type_pid_t=yes
24624else
24625  echo "$as_me: failed program was:" >&5
24626sed 's/^/| /' conftest.$ac_ext >&5
24627
24628ac_cv_type_pid_t=no
24629fi
24630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24631fi
24632echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24633echo "${ECHO_T}$ac_cv_type_pid_t" >&6
24634if test $ac_cv_type_pid_t = yes; then
24635  :
24636else
24637
24638cat >>confdefs.h <<_ACEOF
24639#define pid_t int
24640_ACEOF
24641
24642fi
24643
24644echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24645echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
24646if test "${ac_cv_type_uid_t+set}" = set; then
24647  echo $ECHO_N "(cached) $ECHO_C" >&6
24648else
24649  cat >conftest.$ac_ext <<_ACEOF
24650/* confdefs.h.  */
24651_ACEOF
24652cat confdefs.h >>conftest.$ac_ext
24653cat >>conftest.$ac_ext <<_ACEOF
24654/* end confdefs.h.  */
24655#include <sys/types.h>
24656
24657_ACEOF
24658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24659  $EGREP "uid_t" >/dev/null 2>&1; then
24660  ac_cv_type_uid_t=yes
24661else
24662  ac_cv_type_uid_t=no
24663fi
24664rm -f conftest*
24665
24666fi
24667echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24668echo "${ECHO_T}$ac_cv_type_uid_t" >&6
24669if test $ac_cv_type_uid_t = no; then
24670
24671cat >>confdefs.h <<\_ACEOF
24672#define uid_t int
24673_ACEOF
24674
24675
24676cat >>confdefs.h <<\_ACEOF
24677#define gid_t int
24678_ACEOF
24679
24680fi
24681
24682
24683echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24684echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
24685if test "${ac_cv_type_signal+set}" = set; then
24686  echo $ECHO_N "(cached) $ECHO_C" >&6
24687else
24688  cat >conftest.$ac_ext <<_ACEOF
24689/* confdefs.h.  */
24690_ACEOF
24691cat confdefs.h >>conftest.$ac_ext
24692cat >>conftest.$ac_ext <<_ACEOF
24693/* end confdefs.h.  */
24694#include <sys/types.h>
24695#include <signal.h>
24696#ifdef signal
24697# undef signal
24698#endif
24699#ifdef __cplusplus
24700extern "C" void (*signal (int, void (*)(int)))(int);
24701#else
24702void (*signal ()) ();
24703#endif
24704
24705int
24706main ()
24707{
24708int i;
24709  ;
24710  return 0;
24711}
24712_ACEOF
24713rm -f conftest.$ac_objext
24714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24715  (eval $ac_compile) 2>conftest.er1
24716  ac_status=$?
24717  grep -v '^ *+' conftest.er1 >conftest.err
24718  rm -f conftest.er1
24719  cat conftest.err >&5
24720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721  (exit $ac_status); } &&
24722	 { ac_try='test -z "$ac_c_werror_flag"
24723			 || test ! -s conftest.err'
24724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24725  (eval $ac_try) 2>&5
24726  ac_status=$?
24727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728  (exit $ac_status); }; } &&
24729	 { ac_try='test -s conftest.$ac_objext'
24730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731  (eval $ac_try) 2>&5
24732  ac_status=$?
24733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734  (exit $ac_status); }; }; then
24735  ac_cv_type_signal=void
24736else
24737  echo "$as_me: failed program was:" >&5
24738sed 's/^/| /' conftest.$ac_ext >&5
24739
24740ac_cv_type_signal=int
24741fi
24742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24743fi
24744echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24745echo "${ECHO_T}$ac_cv_type_signal" >&6
24746
24747cat >>confdefs.h <<_ACEOF
24748#define RETSIGTYPE $ac_cv_type_signal
24749_ACEOF
24750
24751
24752if test "$ac_cv_type_signal" = "void" ; then
24753
24754cat >>confdefs.h <<\_ACEOF
24755#define VOID_RETSIGTYPE 1
24756_ACEOF
24757
24758fi
24759
24760
24761
24762
24763echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24764echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
24765if test "${ac_cv_header_time+set}" = set; then
24766  echo $ECHO_N "(cached) $ECHO_C" >&6
24767else
24768  cat >conftest.$ac_ext <<_ACEOF
24769/* confdefs.h.  */
24770_ACEOF
24771cat confdefs.h >>conftest.$ac_ext
24772cat >>conftest.$ac_ext <<_ACEOF
24773/* end confdefs.h.  */
24774#include <sys/types.h>
24775#include <sys/time.h>
24776#include <time.h>
24777
24778int
24779main ()
24780{
24781if ((struct tm *) 0)
24782return 0;
24783  ;
24784  return 0;
24785}
24786_ACEOF
24787rm -f conftest.$ac_objext
24788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24789  (eval $ac_compile) 2>conftest.er1
24790  ac_status=$?
24791  grep -v '^ *+' conftest.er1 >conftest.err
24792  rm -f conftest.er1
24793  cat conftest.err >&5
24794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795  (exit $ac_status); } &&
24796	 { ac_try='test -z "$ac_c_werror_flag"
24797			 || test ! -s conftest.err'
24798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799  (eval $ac_try) 2>&5
24800  ac_status=$?
24801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802  (exit $ac_status); }; } &&
24803	 { ac_try='test -s conftest.$ac_objext'
24804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805  (eval $ac_try) 2>&5
24806  ac_status=$?
24807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808  (exit $ac_status); }; }; then
24809  ac_cv_header_time=yes
24810else
24811  echo "$as_me: failed program was:" >&5
24812sed 's/^/| /' conftest.$ac_ext >&5
24813
24814ac_cv_header_time=no
24815fi
24816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24817fi
24818echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24819echo "${ECHO_T}$ac_cv_header_time" >&6
24820if test $ac_cv_header_time = yes; then
24821
24822cat >>confdefs.h <<\_ACEOF
24823#define TIME_WITH_SYS_TIME 1
24824_ACEOF
24825
24826fi
24827
24828
24829
24830for ac_header in standards.h
24831do
24832as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24833if eval "test \"\${$as_ac_Header+set}\" = set"; then
24834  echo "$as_me:$LINENO: checking for $ac_header" >&5
24835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24836if eval "test \"\${$as_ac_Header+set}\" = set"; then
24837  echo $ECHO_N "(cached) $ECHO_C" >&6
24838fi
24839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24841else
24842  # Is the header compilable?
24843echo "$as_me:$LINENO: checking $ac_header usability" >&5
24844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24845cat >conftest.$ac_ext <<_ACEOF
24846/* confdefs.h.  */
24847_ACEOF
24848cat confdefs.h >>conftest.$ac_ext
24849cat >>conftest.$ac_ext <<_ACEOF
24850/* end confdefs.h.  */
24851$ac_includes_default
24852#include <$ac_header>
24853_ACEOF
24854rm -f conftest.$ac_objext
24855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24856  (eval $ac_compile) 2>conftest.er1
24857  ac_status=$?
24858  grep -v '^ *+' conftest.er1 >conftest.err
24859  rm -f conftest.er1
24860  cat conftest.err >&5
24861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862  (exit $ac_status); } &&
24863	 { ac_try='test -z "$ac_c_werror_flag"
24864			 || test ! -s conftest.err'
24865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24866  (eval $ac_try) 2>&5
24867  ac_status=$?
24868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869  (exit $ac_status); }; } &&
24870	 { ac_try='test -s conftest.$ac_objext'
24871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24872  (eval $ac_try) 2>&5
24873  ac_status=$?
24874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875  (exit $ac_status); }; }; then
24876  ac_header_compiler=yes
24877else
24878  echo "$as_me: failed program was:" >&5
24879sed 's/^/| /' conftest.$ac_ext >&5
24880
24881ac_header_compiler=no
24882fi
24883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24885echo "${ECHO_T}$ac_header_compiler" >&6
24886
24887# Is the header present?
24888echo "$as_me:$LINENO: checking $ac_header presence" >&5
24889echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24890cat >conftest.$ac_ext <<_ACEOF
24891/* confdefs.h.  */
24892_ACEOF
24893cat confdefs.h >>conftest.$ac_ext
24894cat >>conftest.$ac_ext <<_ACEOF
24895/* end confdefs.h.  */
24896#include <$ac_header>
24897_ACEOF
24898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24899  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24900  ac_status=$?
24901  grep -v '^ *+' conftest.er1 >conftest.err
24902  rm -f conftest.er1
24903  cat conftest.err >&5
24904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905  (exit $ac_status); } >/dev/null; then
24906  if test -s conftest.err; then
24907    ac_cpp_err=$ac_c_preproc_warn_flag
24908    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24909  else
24910    ac_cpp_err=
24911  fi
24912else
24913  ac_cpp_err=yes
24914fi
24915if test -z "$ac_cpp_err"; then
24916  ac_header_preproc=yes
24917else
24918  echo "$as_me: failed program was:" >&5
24919sed 's/^/| /' conftest.$ac_ext >&5
24920
24921  ac_header_preproc=no
24922fi
24923rm -f conftest.err conftest.$ac_ext
24924echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24925echo "${ECHO_T}$ac_header_preproc" >&6
24926
24927# So?  What about this header?
24928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24929  yes:no: )
24930    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24932    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24934    ac_header_preproc=yes
24935    ;;
24936  no:yes:* )
24937    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24939    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24940echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24941    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24943    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24944echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24945    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24947    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24949    (
24950      cat <<\_ASBOX
24951## -------------------------------------- ##
24952## Report this to heimdal-bugs@pdc.kth.se ##
24953## -------------------------------------- ##
24954_ASBOX
24955    ) |
24956      sed "s/^/$as_me: WARNING:     /" >&2
24957    ;;
24958esac
24959echo "$as_me:$LINENO: checking for $ac_header" >&5
24960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24961if eval "test \"\${$as_ac_Header+set}\" = set"; then
24962  echo $ECHO_N "(cached) $ECHO_C" >&6
24963else
24964  eval "$as_ac_Header=\$ac_header_preproc"
24965fi
24966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24968
24969fi
24970if test `eval echo '${'$as_ac_Header'}'` = yes; then
24971  cat >>confdefs.h <<_ACEOF
24972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24973_ACEOF
24974
24975fi
24976
24977done
24978
24979for i in netinet/ip.h netinet/tcp.h; do
24980
24981cv=`echo "$i" | sed 'y%./+-%__p_%'`
24982
24983echo "$as_me:$LINENO: checking for $i" >&5
24984echo $ECHO_N "checking for $i... $ECHO_C" >&6
24985if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
24986  echo $ECHO_N "(cached) $ECHO_C" >&6
24987else
24988  cat >conftest.$ac_ext <<_ACEOF
24989/* confdefs.h.  */
24990_ACEOF
24991cat confdefs.h >>conftest.$ac_ext
24992cat >>conftest.$ac_ext <<_ACEOF
24993/* end confdefs.h.  */
24994\
24995#ifdef HAVE_STANDARDS_H
24996#include <standards.h>
24997#endif
24998#include <$i>
24999
25000_ACEOF
25001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25002  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25003  ac_status=$?
25004  grep -v '^ *+' conftest.er1 >conftest.err
25005  rm -f conftest.er1
25006  cat conftest.err >&5
25007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008  (exit $ac_status); } >/dev/null; then
25009  if test -s conftest.err; then
25010    ac_cpp_err=$ac_c_preproc_warn_flag
25011    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25012  else
25013    ac_cpp_err=
25014  fi
25015else
25016  ac_cpp_err=yes
25017fi
25018if test -z "$ac_cpp_err"; then
25019  eval "ac_cv_header_$cv=yes"
25020else
25021  echo "$as_me: failed program was:" >&5
25022sed 's/^/| /' conftest.$ac_ext >&5
25023
25024  eval "ac_cv_header_$cv=no"
25025fi
25026rm -f conftest.err conftest.$ac_ext
25027fi
25028echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
25029echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
25030ac_res=`eval echo \\$ac_cv_header_$cv`
25031if test "$ac_res" = yes; then
25032	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
25033	cat >>confdefs.h <<_ACEOF
25034#define $ac_tr_hdr 1
25035_ACEOF
25036
25037fi
25038done
25039if false;then
25040
25041
25042for ac_header in netinet/ip.h netinet/tcp.h
25043do
25044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25045if eval "test \"\${$as_ac_Header+set}\" = set"; then
25046  echo "$as_me:$LINENO: checking for $ac_header" >&5
25047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25048if eval "test \"\${$as_ac_Header+set}\" = set"; then
25049  echo $ECHO_N "(cached) $ECHO_C" >&6
25050fi
25051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25053else
25054  # Is the header compilable?
25055echo "$as_me:$LINENO: checking $ac_header usability" >&5
25056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25057cat >conftest.$ac_ext <<_ACEOF
25058/* confdefs.h.  */
25059_ACEOF
25060cat confdefs.h >>conftest.$ac_ext
25061cat >>conftest.$ac_ext <<_ACEOF
25062/* end confdefs.h.  */
25063$ac_includes_default
25064#include <$ac_header>
25065_ACEOF
25066rm -f conftest.$ac_objext
25067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25068  (eval $ac_compile) 2>conftest.er1
25069  ac_status=$?
25070  grep -v '^ *+' conftest.er1 >conftest.err
25071  rm -f conftest.er1
25072  cat conftest.err >&5
25073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074  (exit $ac_status); } &&
25075	 { ac_try='test -z "$ac_c_werror_flag"
25076			 || test ! -s conftest.err'
25077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25078  (eval $ac_try) 2>&5
25079  ac_status=$?
25080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081  (exit $ac_status); }; } &&
25082	 { ac_try='test -s conftest.$ac_objext'
25083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084  (eval $ac_try) 2>&5
25085  ac_status=$?
25086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087  (exit $ac_status); }; }; then
25088  ac_header_compiler=yes
25089else
25090  echo "$as_me: failed program was:" >&5
25091sed 's/^/| /' conftest.$ac_ext >&5
25092
25093ac_header_compiler=no
25094fi
25095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25097echo "${ECHO_T}$ac_header_compiler" >&6
25098
25099# Is the header present?
25100echo "$as_me:$LINENO: checking $ac_header presence" >&5
25101echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25102cat >conftest.$ac_ext <<_ACEOF
25103/* confdefs.h.  */
25104_ACEOF
25105cat confdefs.h >>conftest.$ac_ext
25106cat >>conftest.$ac_ext <<_ACEOF
25107/* end confdefs.h.  */
25108#include <$ac_header>
25109_ACEOF
25110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25111  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25112  ac_status=$?
25113  grep -v '^ *+' conftest.er1 >conftest.err
25114  rm -f conftest.er1
25115  cat conftest.err >&5
25116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117  (exit $ac_status); } >/dev/null; then
25118  if test -s conftest.err; then
25119    ac_cpp_err=$ac_c_preproc_warn_flag
25120    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25121  else
25122    ac_cpp_err=
25123  fi
25124else
25125  ac_cpp_err=yes
25126fi
25127if test -z "$ac_cpp_err"; then
25128  ac_header_preproc=yes
25129else
25130  echo "$as_me: failed program was:" >&5
25131sed 's/^/| /' conftest.$ac_ext >&5
25132
25133  ac_header_preproc=no
25134fi
25135rm -f conftest.err conftest.$ac_ext
25136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25137echo "${ECHO_T}$ac_header_preproc" >&6
25138
25139# So?  What about this header?
25140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25141  yes:no: )
25142    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25144    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25146    ac_header_preproc=yes
25147    ;;
25148  no:yes:* )
25149    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25151    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25152echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25153    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25155    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25156echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25157    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25159    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25161    (
25162      cat <<\_ASBOX
25163## -------------------------------------- ##
25164## Report this to heimdal-bugs@pdc.kth.se ##
25165## -------------------------------------- ##
25166_ASBOX
25167    ) |
25168      sed "s/^/$as_me: WARNING:     /" >&2
25169    ;;
25170esac
25171echo "$as_me:$LINENO: checking for $ac_header" >&5
25172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25173if eval "test \"\${$as_ac_Header+set}\" = set"; then
25174  echo $ECHO_N "(cached) $ECHO_C" >&6
25175else
25176  eval "$as_ac_Header=\$ac_header_preproc"
25177fi
25178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25180
25181fi
25182if test `eval echo '${'$as_ac_Header'}'` = yes; then
25183  cat >>confdefs.h <<_ACEOF
25184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25185_ACEOF
25186
25187fi
25188
25189done
25190
25191fi
25192
25193
25194
25195
25196for ac_func in getlogin setlogin
25197do
25198as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25199echo "$as_me:$LINENO: checking for $ac_func" >&5
25200echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25201if eval "test \"\${$as_ac_var+set}\" = set"; then
25202  echo $ECHO_N "(cached) $ECHO_C" >&6
25203else
25204  cat >conftest.$ac_ext <<_ACEOF
25205/* confdefs.h.  */
25206_ACEOF
25207cat confdefs.h >>conftest.$ac_ext
25208cat >>conftest.$ac_ext <<_ACEOF
25209/* end confdefs.h.  */
25210/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25211   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25212#define $ac_func innocuous_$ac_func
25213
25214/* System header to define __stub macros and hopefully few prototypes,
25215    which can conflict with char $ac_func (); below.
25216    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25217    <limits.h> exists even on freestanding compilers.  */
25218
25219#ifdef __STDC__
25220# include <limits.h>
25221#else
25222# include <assert.h>
25223#endif
25224
25225#undef $ac_func
25226
25227/* Override any gcc2 internal prototype to avoid an error.  */
25228#ifdef __cplusplus
25229extern "C"
25230{
25231#endif
25232/* We use char because int might match the return type of a gcc2
25233   builtin and then its argument prototype would still apply.  */
25234char $ac_func ();
25235/* The GNU C library defines this for functions which it implements
25236    to always fail with ENOSYS.  Some functions are actually named
25237    something starting with __ and the normal name is an alias.  */
25238#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25239choke me
25240#else
25241char (*f) () = $ac_func;
25242#endif
25243#ifdef __cplusplus
25244}
25245#endif
25246
25247int
25248main ()
25249{
25250return f != $ac_func;
25251  ;
25252  return 0;
25253}
25254_ACEOF
25255rm -f conftest.$ac_objext conftest$ac_exeext
25256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25257  (eval $ac_link) 2>conftest.er1
25258  ac_status=$?
25259  grep -v '^ *+' conftest.er1 >conftest.err
25260  rm -f conftest.er1
25261  cat conftest.err >&5
25262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263  (exit $ac_status); } &&
25264	 { ac_try='test -z "$ac_c_werror_flag"
25265			 || test ! -s conftest.err'
25266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267  (eval $ac_try) 2>&5
25268  ac_status=$?
25269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270  (exit $ac_status); }; } &&
25271	 { ac_try='test -s conftest$ac_exeext'
25272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273  (eval $ac_try) 2>&5
25274  ac_status=$?
25275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276  (exit $ac_status); }; }; then
25277  eval "$as_ac_var=yes"
25278else
25279  echo "$as_me: failed program was:" >&5
25280sed 's/^/| /' conftest.$ac_ext >&5
25281
25282eval "$as_ac_var=no"
25283fi
25284rm -f conftest.err conftest.$ac_objext \
25285      conftest$ac_exeext conftest.$ac_ext
25286fi
25287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25288echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25289if test `eval echo '${'$as_ac_var'}'` = yes; then
25290  cat >>confdefs.h <<_ACEOF
25291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25292_ACEOF
25293
25294fi
25295done
25296
25297if test "$ac_cv_func_getlogin" = yes; then
25298echo "$as_me:$LINENO: checking if getlogin is posix" >&5
25299echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
25300if test "${ac_cv_func_getlogin_posix+set}" = set; then
25301  echo $ECHO_N "(cached) $ECHO_C" >&6
25302else
25303
25304if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
25305	ac_cv_func_getlogin_posix=no
25306else
25307	ac_cv_func_getlogin_posix=yes
25308fi
25309
25310fi
25311echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
25312echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
25313if test "$ac_cv_func_getlogin_posix" = yes; then
25314
25315cat >>confdefs.h <<\_ACEOF
25316#define POSIX_GETLOGIN 1
25317_ACEOF
25318
25319fi
25320fi
25321
25322
25323
25324for ac_header in stdlib.h unistd.h
25325do
25326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25327if eval "test \"\${$as_ac_Header+set}\" = set"; then
25328  echo "$as_me:$LINENO: checking for $ac_header" >&5
25329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25330if eval "test \"\${$as_ac_Header+set}\" = set"; then
25331  echo $ECHO_N "(cached) $ECHO_C" >&6
25332fi
25333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25335else
25336  # Is the header compilable?
25337echo "$as_me:$LINENO: checking $ac_header usability" >&5
25338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25339cat >conftest.$ac_ext <<_ACEOF
25340/* confdefs.h.  */
25341_ACEOF
25342cat confdefs.h >>conftest.$ac_ext
25343cat >>conftest.$ac_ext <<_ACEOF
25344/* end confdefs.h.  */
25345$ac_includes_default
25346#include <$ac_header>
25347_ACEOF
25348rm -f conftest.$ac_objext
25349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25350  (eval $ac_compile) 2>conftest.er1
25351  ac_status=$?
25352  grep -v '^ *+' conftest.er1 >conftest.err
25353  rm -f conftest.er1
25354  cat conftest.err >&5
25355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356  (exit $ac_status); } &&
25357	 { ac_try='test -z "$ac_c_werror_flag"
25358			 || test ! -s conftest.err'
25359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360  (eval $ac_try) 2>&5
25361  ac_status=$?
25362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363  (exit $ac_status); }; } &&
25364	 { ac_try='test -s conftest.$ac_objext'
25365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366  (eval $ac_try) 2>&5
25367  ac_status=$?
25368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369  (exit $ac_status); }; }; then
25370  ac_header_compiler=yes
25371else
25372  echo "$as_me: failed program was:" >&5
25373sed 's/^/| /' conftest.$ac_ext >&5
25374
25375ac_header_compiler=no
25376fi
25377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25379echo "${ECHO_T}$ac_header_compiler" >&6
25380
25381# Is the header present?
25382echo "$as_me:$LINENO: checking $ac_header presence" >&5
25383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25384cat >conftest.$ac_ext <<_ACEOF
25385/* confdefs.h.  */
25386_ACEOF
25387cat confdefs.h >>conftest.$ac_ext
25388cat >>conftest.$ac_ext <<_ACEOF
25389/* end confdefs.h.  */
25390#include <$ac_header>
25391_ACEOF
25392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25393  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25394  ac_status=$?
25395  grep -v '^ *+' conftest.er1 >conftest.err
25396  rm -f conftest.er1
25397  cat conftest.err >&5
25398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399  (exit $ac_status); } >/dev/null; then
25400  if test -s conftest.err; then
25401    ac_cpp_err=$ac_c_preproc_warn_flag
25402    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25403  else
25404    ac_cpp_err=
25405  fi
25406else
25407  ac_cpp_err=yes
25408fi
25409if test -z "$ac_cpp_err"; then
25410  ac_header_preproc=yes
25411else
25412  echo "$as_me: failed program was:" >&5
25413sed 's/^/| /' conftest.$ac_ext >&5
25414
25415  ac_header_preproc=no
25416fi
25417rm -f conftest.err conftest.$ac_ext
25418echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25419echo "${ECHO_T}$ac_header_preproc" >&6
25420
25421# So?  What about this header?
25422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25423  yes:no: )
25424    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25426    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25428    ac_header_preproc=yes
25429    ;;
25430  no:yes:* )
25431    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25433    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25434echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25435    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25437    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25438echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25439    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25441    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25443    (
25444      cat <<\_ASBOX
25445## -------------------------------------- ##
25446## Report this to heimdal-bugs@pdc.kth.se ##
25447## -------------------------------------- ##
25448_ASBOX
25449    ) |
25450      sed "s/^/$as_me: WARNING:     /" >&2
25451    ;;
25452esac
25453echo "$as_me:$LINENO: checking for $ac_header" >&5
25454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25455if eval "test \"\${$as_ac_Header+set}\" = set"; then
25456  echo $ECHO_N "(cached) $ECHO_C" >&6
25457else
25458  eval "$as_ac_Header=\$ac_header_preproc"
25459fi
25460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25462
25463fi
25464if test `eval echo '${'$as_ac_Header'}'` = yes; then
25465  cat >>confdefs.h <<_ACEOF
25466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25467_ACEOF
25468
25469fi
25470
25471done
25472
25473
25474for ac_func in getpagesize
25475do
25476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25477echo "$as_me:$LINENO: checking for $ac_func" >&5
25478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25479if eval "test \"\${$as_ac_var+set}\" = set"; then
25480  echo $ECHO_N "(cached) $ECHO_C" >&6
25481else
25482  cat >conftest.$ac_ext <<_ACEOF
25483/* confdefs.h.  */
25484_ACEOF
25485cat confdefs.h >>conftest.$ac_ext
25486cat >>conftest.$ac_ext <<_ACEOF
25487/* end confdefs.h.  */
25488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25489   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25490#define $ac_func innocuous_$ac_func
25491
25492/* System header to define __stub macros and hopefully few prototypes,
25493    which can conflict with char $ac_func (); below.
25494    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25495    <limits.h> exists even on freestanding compilers.  */
25496
25497#ifdef __STDC__
25498# include <limits.h>
25499#else
25500# include <assert.h>
25501#endif
25502
25503#undef $ac_func
25504
25505/* Override any gcc2 internal prototype to avoid an error.  */
25506#ifdef __cplusplus
25507extern "C"
25508{
25509#endif
25510/* We use char because int might match the return type of a gcc2
25511   builtin and then its argument prototype would still apply.  */
25512char $ac_func ();
25513/* The GNU C library defines this for functions which it implements
25514    to always fail with ENOSYS.  Some functions are actually named
25515    something starting with __ and the normal name is an alias.  */
25516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25517choke me
25518#else
25519char (*f) () = $ac_func;
25520#endif
25521#ifdef __cplusplus
25522}
25523#endif
25524
25525int
25526main ()
25527{
25528return f != $ac_func;
25529  ;
25530  return 0;
25531}
25532_ACEOF
25533rm -f conftest.$ac_objext conftest$ac_exeext
25534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25535  (eval $ac_link) 2>conftest.er1
25536  ac_status=$?
25537  grep -v '^ *+' conftest.er1 >conftest.err
25538  rm -f conftest.er1
25539  cat conftest.err >&5
25540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541  (exit $ac_status); } &&
25542	 { ac_try='test -z "$ac_c_werror_flag"
25543			 || test ! -s conftest.err'
25544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545  (eval $ac_try) 2>&5
25546  ac_status=$?
25547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548  (exit $ac_status); }; } &&
25549	 { ac_try='test -s conftest$ac_exeext'
25550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551  (eval $ac_try) 2>&5
25552  ac_status=$?
25553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554  (exit $ac_status); }; }; then
25555  eval "$as_ac_var=yes"
25556else
25557  echo "$as_me: failed program was:" >&5
25558sed 's/^/| /' conftest.$ac_ext >&5
25559
25560eval "$as_ac_var=no"
25561fi
25562rm -f conftest.err conftest.$ac_objext \
25563      conftest$ac_exeext conftest.$ac_ext
25564fi
25565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25566echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25567if test `eval echo '${'$as_ac_var'}'` = yes; then
25568  cat >>confdefs.h <<_ACEOF
25569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25570_ACEOF
25571
25572fi
25573done
25574
25575echo "$as_me:$LINENO: checking for working mmap" >&5
25576echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
25577if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25578  echo $ECHO_N "(cached) $ECHO_C" >&6
25579else
25580  if test "$cross_compiling" = yes; then
25581  ac_cv_func_mmap_fixed_mapped=no
25582else
25583  cat >conftest.$ac_ext <<_ACEOF
25584/* confdefs.h.  */
25585_ACEOF
25586cat confdefs.h >>conftest.$ac_ext
25587cat >>conftest.$ac_ext <<_ACEOF
25588/* end confdefs.h.  */
25589$ac_includes_default
25590/* malloc might have been renamed as rpl_malloc. */
25591#undef malloc
25592
25593/* Thanks to Mike Haertel and Jim Avera for this test.
25594   Here is a matrix of mmap possibilities:
25595	mmap private not fixed
25596	mmap private fixed at somewhere currently unmapped
25597	mmap private fixed at somewhere already mapped
25598	mmap shared not fixed
25599	mmap shared fixed at somewhere currently unmapped
25600	mmap shared fixed at somewhere already mapped
25601   For private mappings, we should verify that changes cannot be read()
25602   back from the file, nor mmap's back from the file at a different
25603   address.  (There have been systems where private was not correctly
25604   implemented like the infamous i386 svr4.0, and systems where the
25605   VM page cache was not coherent with the file system buffer cache
25606   like early versions of FreeBSD and possibly contemporary NetBSD.)
25607   For shared mappings, we should conversely verify that changes get
25608   propagated back to all the places they're supposed to be.
25609
25610   Grep wants private fixed already mapped.
25611   The main things grep needs to know about mmap are:
25612   * does it exist and is it safe to write into the mmap'd area
25613   * how to use it (BSD variants)  */
25614
25615#include <fcntl.h>
25616#include <sys/mman.h>
25617
25618#if !STDC_HEADERS && !HAVE_STDLIB_H
25619char *malloc ();
25620#endif
25621
25622/* This mess was copied from the GNU getpagesize.h.  */
25623#if !HAVE_GETPAGESIZE
25624/* Assume that all systems that can run configure have sys/param.h.  */
25625# if !HAVE_SYS_PARAM_H
25626#  define HAVE_SYS_PARAM_H 1
25627# endif
25628
25629# ifdef _SC_PAGESIZE
25630#  define getpagesize() sysconf(_SC_PAGESIZE)
25631# else /* no _SC_PAGESIZE */
25632#  if HAVE_SYS_PARAM_H
25633#   include <sys/param.h>
25634#   ifdef EXEC_PAGESIZE
25635#    define getpagesize() EXEC_PAGESIZE
25636#   else /* no EXEC_PAGESIZE */
25637#    ifdef NBPG
25638#     define getpagesize() NBPG * CLSIZE
25639#     ifndef CLSIZE
25640#      define CLSIZE 1
25641#     endif /* no CLSIZE */
25642#    else /* no NBPG */
25643#     ifdef NBPC
25644#      define getpagesize() NBPC
25645#     else /* no NBPC */
25646#      ifdef PAGESIZE
25647#       define getpagesize() PAGESIZE
25648#      endif /* PAGESIZE */
25649#     endif /* no NBPC */
25650#    endif /* no NBPG */
25651#   endif /* no EXEC_PAGESIZE */
25652#  else /* no HAVE_SYS_PARAM_H */
25653#   define getpagesize() 8192	/* punt totally */
25654#  endif /* no HAVE_SYS_PARAM_H */
25655# endif /* no _SC_PAGESIZE */
25656
25657#endif /* no HAVE_GETPAGESIZE */
25658
25659int
25660main ()
25661{
25662  char *data, *data2, *data3;
25663  int i, pagesize;
25664  int fd;
25665
25666  pagesize = getpagesize ();
25667
25668  /* First, make a file with some known garbage in it. */
25669  data = (char *) malloc (pagesize);
25670  if (!data)
25671    exit (1);
25672  for (i = 0; i < pagesize; ++i)
25673    *(data + i) = rand ();
25674  umask (0);
25675  fd = creat ("conftest.mmap", 0600);
25676  if (fd < 0)
25677    exit (1);
25678  if (write (fd, data, pagesize) != pagesize)
25679    exit (1);
25680  close (fd);
25681
25682  /* Next, try to mmap the file at a fixed address which already has
25683     something else allocated at it.  If we can, also make sure that
25684     we see the same garbage.  */
25685  fd = open ("conftest.mmap", O_RDWR);
25686  if (fd < 0)
25687    exit (1);
25688  data2 = (char *) malloc (2 * pagesize);
25689  if (!data2)
25690    exit (1);
25691  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
25692  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25693		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
25694    exit (1);
25695  for (i = 0; i < pagesize; ++i)
25696    if (*(data + i) != *(data2 + i))
25697      exit (1);
25698
25699  /* Finally, make sure that changes to the mapped area do not
25700     percolate back to the file as seen by read().  (This is a bug on
25701     some variants of i386 svr4.0.)  */
25702  for (i = 0; i < pagesize; ++i)
25703    *(data2 + i) = *(data2 + i) + 1;
25704  data3 = (char *) malloc (pagesize);
25705  if (!data3)
25706    exit (1);
25707  if (read (fd, data3, pagesize) != pagesize)
25708    exit (1);
25709  for (i = 0; i < pagesize; ++i)
25710    if (*(data + i) != *(data3 + i))
25711      exit (1);
25712  close (fd);
25713  exit (0);
25714}
25715_ACEOF
25716rm -f conftest$ac_exeext
25717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25718  (eval $ac_link) 2>&5
25719  ac_status=$?
25720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723  (eval $ac_try) 2>&5
25724  ac_status=$?
25725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726  (exit $ac_status); }; }; then
25727  ac_cv_func_mmap_fixed_mapped=yes
25728else
25729  echo "$as_me: program exited with status $ac_status" >&5
25730echo "$as_me: failed program was:" >&5
25731sed 's/^/| /' conftest.$ac_ext >&5
25732
25733( exit $ac_status )
25734ac_cv_func_mmap_fixed_mapped=no
25735fi
25736rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25737fi
25738fi
25739echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25740echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
25741if test $ac_cv_func_mmap_fixed_mapped = yes; then
25742
25743cat >>confdefs.h <<\_ACEOF
25744#define HAVE_MMAP 1
25745_ACEOF
25746
25747fi
25748rm -f conftest.mmap
25749
25750
25751echo "$as_me:$LINENO: checking if realloc if broken" >&5
25752echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
25753if test "${ac_cv_func_realloc_broken+set}" = set; then
25754  echo $ECHO_N "(cached) $ECHO_C" >&6
25755else
25756
25757ac_cv_func_realloc_broken=no
25758if test "$cross_compiling" = yes; then
25759  :
25760else
25761  cat >conftest.$ac_ext <<_ACEOF
25762/* confdefs.h.  */
25763_ACEOF
25764cat confdefs.h >>conftest.$ac_ext
25765cat >>conftest.$ac_ext <<_ACEOF
25766/* end confdefs.h.  */
25767
25768#include <stddef.h>
25769#include <stdlib.h>
25770
25771int main()
25772{
25773	return realloc(NULL, 17) == NULL;
25774}
25775
25776_ACEOF
25777rm -f conftest$ac_exeext
25778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25779  (eval $ac_link) 2>&5
25780  ac_status=$?
25781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784  (eval $ac_try) 2>&5
25785  ac_status=$?
25786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787  (exit $ac_status); }; }; then
25788  :
25789else
25790  echo "$as_me: program exited with status $ac_status" >&5
25791echo "$as_me: failed program was:" >&5
25792sed 's/^/| /' conftest.$ac_ext >&5
25793
25794( exit $ac_status )
25795ac_cv_func_realloc_broken=yes
25796fi
25797rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25798fi
25799
25800fi
25801echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
25802echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
25803if test "$ac_cv_func_realloc_broken" = yes ; then
25804
25805cat >>confdefs.h <<\_ACEOF
25806#define BROKEN_REALLOC 1
25807_ACEOF
25808
25809fi
25810
25811
25812
25813
25814
25815
25816
25817DIR_roken=roken
25818LIB_roken='$(top_builddir)/lib/roken/libroken.la'
25819INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834WFLAGS_NOUNUSED=""
25835WFLAGS_NOIMPLICITINT=""
25836if test -z "$WFLAGS" -a "$GCC" = "yes"; then
25837  # -Wno-implicit-int for broken X11 headers
25838  # leave these out for now:
25839  #   -Wcast-align doesn't work well on alpha osf/1
25840  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
25841  #   -Wmissing-declarations -Wnested-externs
25842  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
25843  WFLAGS_NOUNUSED="-Wno-unused"
25844  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
25845fi
25846
25847
25848
25849
25850
25851
25852
25853
25854cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
25855echo "$as_me:$LINENO: checking for ssize_t" >&5
25856echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
25857if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
25858  echo $ECHO_N "(cached) $ECHO_C" >&6
25859else
25860  cat >conftest.$ac_ext <<_ACEOF
25861/* confdefs.h.  */
25862_ACEOF
25863cat confdefs.h >>conftest.$ac_ext
25864cat >>conftest.$ac_ext <<_ACEOF
25865/* end confdefs.h.  */
25866#include <sys/types.h>
25867#if STDC_HEADERS
25868#include <stdlib.h>
25869#include <stddef.h>
25870#endif
25871#include <unistd.h>
25872int
25873main ()
25874{
25875ssize_t foo;
25876  ;
25877  return 0;
25878}
25879_ACEOF
25880rm -f conftest.$ac_objext
25881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25882  (eval $ac_compile) 2>conftest.er1
25883  ac_status=$?
25884  grep -v '^ *+' conftest.er1 >conftest.err
25885  rm -f conftest.er1
25886  cat conftest.err >&5
25887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888  (exit $ac_status); } &&
25889	 { ac_try='test -z "$ac_c_werror_flag"
25890			 || test ! -s conftest.err'
25891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892  (eval $ac_try) 2>&5
25893  ac_status=$?
25894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895  (exit $ac_status); }; } &&
25896	 { ac_try='test -s conftest.$ac_objext'
25897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898  (eval $ac_try) 2>&5
25899  ac_status=$?
25900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901  (exit $ac_status); }; }; then
25902  eval "ac_cv_type_$cv=yes"
25903else
25904  echo "$as_me: failed program was:" >&5
25905sed 's/^/| /' conftest.$ac_ext >&5
25906
25907eval "ac_cv_type_$cv=no"
25908fi
25909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25910fi
25911ac_foo=`eval echo \\$ac_cv_type_$cv`
25912echo "$as_me:$LINENO: result: $ac_foo" >&5
25913echo "${ECHO_T}$ac_foo" >&6
25914if test "$ac_foo" = yes; then
25915  ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
25916if false; then
25917	echo "$as_me:$LINENO: checking for ssize_t" >&5
25918echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
25919if test "${ac_cv_type_ssize_t+set}" = set; then
25920  echo $ECHO_N "(cached) $ECHO_C" >&6
25921else
25922  cat >conftest.$ac_ext <<_ACEOF
25923/* confdefs.h.  */
25924_ACEOF
25925cat confdefs.h >>conftest.$ac_ext
25926cat >>conftest.$ac_ext <<_ACEOF
25927/* end confdefs.h.  */
25928$ac_includes_default
25929int
25930main ()
25931{
25932if ((ssize_t *) 0)
25933  return 0;
25934if (sizeof (ssize_t))
25935  return 0;
25936  ;
25937  return 0;
25938}
25939_ACEOF
25940rm -f conftest.$ac_objext
25941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25942  (eval $ac_compile) 2>conftest.er1
25943  ac_status=$?
25944  grep -v '^ *+' conftest.er1 >conftest.err
25945  rm -f conftest.er1
25946  cat conftest.err >&5
25947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948  (exit $ac_status); } &&
25949	 { ac_try='test -z "$ac_c_werror_flag"
25950			 || test ! -s conftest.err'
25951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952  (eval $ac_try) 2>&5
25953  ac_status=$?
25954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955  (exit $ac_status); }; } &&
25956	 { ac_try='test -s conftest.$ac_objext'
25957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958  (eval $ac_try) 2>&5
25959  ac_status=$?
25960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961  (exit $ac_status); }; }; then
25962  ac_cv_type_ssize_t=yes
25963else
25964  echo "$as_me: failed program was:" >&5
25965sed 's/^/| /' conftest.$ac_ext >&5
25966
25967ac_cv_type_ssize_t=no
25968fi
25969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25970fi
25971echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25972echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
25973if test $ac_cv_type_ssize_t = yes; then
25974
25975cat >>confdefs.h <<_ACEOF
25976#define HAVE_SSIZE_T 1
25977_ACEOF
25978
25979
25980fi
25981
25982fi
25983
25984cat >>confdefs.h <<_ACEOF
25985#define $ac_tr_hdr 1
25986_ACEOF
25987
25988fi
25989
25990
25991
25992
25993
25994cv=`echo "long long" | sed 'y%./+- %__p__%'`
25995echo "$as_me:$LINENO: checking for long long" >&5
25996echo $ECHO_N "checking for long long... $ECHO_C" >&6
25997if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
25998  echo $ECHO_N "(cached) $ECHO_C" >&6
25999else
26000  cat >conftest.$ac_ext <<_ACEOF
26001/* confdefs.h.  */
26002_ACEOF
26003cat confdefs.h >>conftest.$ac_ext
26004cat >>conftest.$ac_ext <<_ACEOF
26005/* end confdefs.h.  */
26006#include <sys/types.h>
26007#if STDC_HEADERS
26008#include <stdlib.h>
26009#include <stddef.h>
26010#endif
26011
26012int
26013main ()
26014{
26015long long foo;
26016  ;
26017  return 0;
26018}
26019_ACEOF
26020rm -f conftest.$ac_objext
26021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26022  (eval $ac_compile) 2>conftest.er1
26023  ac_status=$?
26024  grep -v '^ *+' conftest.er1 >conftest.err
26025  rm -f conftest.er1
26026  cat conftest.err >&5
26027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028  (exit $ac_status); } &&
26029	 { ac_try='test -z "$ac_c_werror_flag"
26030			 || test ! -s conftest.err'
26031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26032  (eval $ac_try) 2>&5
26033  ac_status=$?
26034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035  (exit $ac_status); }; } &&
26036	 { ac_try='test -s conftest.$ac_objext'
26037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26038  (eval $ac_try) 2>&5
26039  ac_status=$?
26040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041  (exit $ac_status); }; }; then
26042  eval "ac_cv_type_$cv=yes"
26043else
26044  echo "$as_me: failed program was:" >&5
26045sed 's/^/| /' conftest.$ac_ext >&5
26046
26047eval "ac_cv_type_$cv=no"
26048fi
26049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26050fi
26051ac_foo=`eval echo \\$ac_cv_type_$cv`
26052echo "$as_me:$LINENO: result: $ac_foo" >&5
26053echo "${ECHO_T}$ac_foo" >&6
26054if test "$ac_foo" = yes; then
26055  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26056if false; then
26057	echo "$as_me:$LINENO: checking for long long" >&5
26058echo $ECHO_N "checking for long long... $ECHO_C" >&6
26059if test "${ac_cv_type_long_long+set}" = set; then
26060  echo $ECHO_N "(cached) $ECHO_C" >&6
26061else
26062  cat >conftest.$ac_ext <<_ACEOF
26063/* confdefs.h.  */
26064_ACEOF
26065cat confdefs.h >>conftest.$ac_ext
26066cat >>conftest.$ac_ext <<_ACEOF
26067/* end confdefs.h.  */
26068$ac_includes_default
26069int
26070main ()
26071{
26072if ((long long *) 0)
26073  return 0;
26074if (sizeof (long long))
26075  return 0;
26076  ;
26077  return 0;
26078}
26079_ACEOF
26080rm -f conftest.$ac_objext
26081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26082  (eval $ac_compile) 2>conftest.er1
26083  ac_status=$?
26084  grep -v '^ *+' conftest.er1 >conftest.err
26085  rm -f conftest.er1
26086  cat conftest.err >&5
26087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088  (exit $ac_status); } &&
26089	 { ac_try='test -z "$ac_c_werror_flag"
26090			 || test ! -s conftest.err'
26091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092  (eval $ac_try) 2>&5
26093  ac_status=$?
26094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095  (exit $ac_status); }; } &&
26096	 { ac_try='test -s conftest.$ac_objext'
26097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098  (eval $ac_try) 2>&5
26099  ac_status=$?
26100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101  (exit $ac_status); }; }; then
26102  ac_cv_type_long_long=yes
26103else
26104  echo "$as_me: failed program was:" >&5
26105sed 's/^/| /' conftest.$ac_ext >&5
26106
26107ac_cv_type_long_long=no
26108fi
26109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26110fi
26111echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
26112echo "${ECHO_T}$ac_cv_type_long_long" >&6
26113if test $ac_cv_type_long_long = yes; then
26114
26115cat >>confdefs.h <<_ACEOF
26116#define HAVE_LONG_LONG 1
26117_ACEOF
26118
26119
26120fi
26121
26122fi
26123
26124cat >>confdefs.h <<_ACEOF
26125#define $ac_tr_hdr 1
26126_ACEOF
26127
26128fi
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181for ac_header in \
26182	arpa/inet.h				\
26183	arpa/nameser.h				\
26184	config.h				\
26185	crypt.h					\
26186	dirent.h				\
26187	errno.h					\
26188	err.h					\
26189	fcntl.h					\
26190	grp.h					\
26191	ifaddrs.h				\
26192	net/if.h				\
26193	netdb.h					\
26194	netinet/in.h				\
26195	netinet/in6.h				\
26196	netinet/in_systm.h			\
26197	netinet6/in6.h				\
26198	netinet6/in6_var.h			\
26199	paths.h					\
26200	pwd.h					\
26201	resolv.h				\
26202	rpcsvc/ypclnt.h				\
26203	shadow.h				\
26204	sys/bswap.h				\
26205	sys/ioctl.h				\
26206	sys/mman.h				\
26207	sys/param.h				\
26208	sys/proc.h				\
26209	sys/resource.h				\
26210	sys/socket.h				\
26211	sys/sockio.h				\
26212	sys/stat.h				\
26213	sys/sysctl.h				\
26214	sys/time.h				\
26215	sys/tty.h				\
26216	sys/types.h				\
26217	sys/uio.h				\
26218	sys/utsname.h				\
26219	sys/wait.h				\
26220	syslog.h				\
26221	termios.h				\
26222	unistd.h				\
26223	userconf.h				\
26224	usersec.h				\
26225	util.h					\
26226	vis.h					\
26227
26228do
26229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26230if eval "test \"\${$as_ac_Header+set}\" = set"; then
26231  echo "$as_me:$LINENO: checking for $ac_header" >&5
26232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26233if eval "test \"\${$as_ac_Header+set}\" = set"; then
26234  echo $ECHO_N "(cached) $ECHO_C" >&6
26235fi
26236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26238else
26239  # Is the header compilable?
26240echo "$as_me:$LINENO: checking $ac_header usability" >&5
26241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26242cat >conftest.$ac_ext <<_ACEOF
26243/* confdefs.h.  */
26244_ACEOF
26245cat confdefs.h >>conftest.$ac_ext
26246cat >>conftest.$ac_ext <<_ACEOF
26247/* end confdefs.h.  */
26248$ac_includes_default
26249#include <$ac_header>
26250_ACEOF
26251rm -f conftest.$ac_objext
26252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26253  (eval $ac_compile) 2>conftest.er1
26254  ac_status=$?
26255  grep -v '^ *+' conftest.er1 >conftest.err
26256  rm -f conftest.er1
26257  cat conftest.err >&5
26258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259  (exit $ac_status); } &&
26260	 { ac_try='test -z "$ac_c_werror_flag"
26261			 || test ! -s conftest.err'
26262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263  (eval $ac_try) 2>&5
26264  ac_status=$?
26265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266  (exit $ac_status); }; } &&
26267	 { ac_try='test -s conftest.$ac_objext'
26268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26269  (eval $ac_try) 2>&5
26270  ac_status=$?
26271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272  (exit $ac_status); }; }; then
26273  ac_header_compiler=yes
26274else
26275  echo "$as_me: failed program was:" >&5
26276sed 's/^/| /' conftest.$ac_ext >&5
26277
26278ac_header_compiler=no
26279fi
26280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26281echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26282echo "${ECHO_T}$ac_header_compiler" >&6
26283
26284# Is the header present?
26285echo "$as_me:$LINENO: checking $ac_header presence" >&5
26286echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26287cat >conftest.$ac_ext <<_ACEOF
26288/* confdefs.h.  */
26289_ACEOF
26290cat confdefs.h >>conftest.$ac_ext
26291cat >>conftest.$ac_ext <<_ACEOF
26292/* end confdefs.h.  */
26293#include <$ac_header>
26294_ACEOF
26295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26296  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26297  ac_status=$?
26298  grep -v '^ *+' conftest.er1 >conftest.err
26299  rm -f conftest.er1
26300  cat conftest.err >&5
26301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302  (exit $ac_status); } >/dev/null; then
26303  if test -s conftest.err; then
26304    ac_cpp_err=$ac_c_preproc_warn_flag
26305    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26306  else
26307    ac_cpp_err=
26308  fi
26309else
26310  ac_cpp_err=yes
26311fi
26312if test -z "$ac_cpp_err"; then
26313  ac_header_preproc=yes
26314else
26315  echo "$as_me: failed program was:" >&5
26316sed 's/^/| /' conftest.$ac_ext >&5
26317
26318  ac_header_preproc=no
26319fi
26320rm -f conftest.err conftest.$ac_ext
26321echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26322echo "${ECHO_T}$ac_header_preproc" >&6
26323
26324# So?  What about this header?
26325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26326  yes:no: )
26327    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26328echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26329    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26330echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26331    ac_header_preproc=yes
26332    ;;
26333  no:yes:* )
26334    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26335echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26336    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26337echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26338    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26339echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26340    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26341echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26342    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26344    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26345echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26346    (
26347      cat <<\_ASBOX
26348## -------------------------------------- ##
26349## Report this to heimdal-bugs@pdc.kth.se ##
26350## -------------------------------------- ##
26351_ASBOX
26352    ) |
26353      sed "s/^/$as_me: WARNING:     /" >&2
26354    ;;
26355esac
26356echo "$as_me:$LINENO: checking for $ac_header" >&5
26357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26358if eval "test \"\${$as_ac_Header+set}\" = set"; then
26359  echo $ECHO_N "(cached) $ECHO_C" >&6
26360else
26361  eval "$as_ac_Header=\$ac_header_preproc"
26362fi
26363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26365
26366fi
26367if test `eval echo '${'$as_ac_Header'}'` = yes; then
26368  cat >>confdefs.h <<_ACEOF
26369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26370_ACEOF
26371
26372fi
26373
26374done
26375
26376
26377
26378
26379
26380
26381if test "$ac_cv_header_err_h" = yes; then
26382  have_err_h_TRUE=
26383  have_err_h_FALSE='#'
26384else
26385  have_err_h_TRUE='#'
26386  have_err_h_FALSE=
26387fi
26388
26389
26390
26391if test "$ac_cv_header_fnmatch_h" = yes; then
26392  have_fnmatch_h_TRUE=
26393  have_fnmatch_h_FALSE='#'
26394else
26395  have_fnmatch_h_TRUE='#'
26396  have_fnmatch_h_FALSE=
26397fi
26398
26399
26400
26401if test "$ac_cv_header_ifaddrs_h" = yes; then
26402  have_ifaddrs_h_TRUE=
26403  have_ifaddrs_h_FALSE='#'
26404else
26405  have_ifaddrs_h_TRUE='#'
26406  have_ifaddrs_h_FALSE=
26407fi
26408
26409
26410
26411if test "$ac_cv_header_vis_h" = yes; then
26412  have_vis_h_TRUE=
26413  have_vis_h_FALSE='#'
26414else
26415  have_vis_h_TRUE='#'
26416  have_vis_h_FALSE=
26417fi
26418
26419
26420
26421
26422
26423
26424
26425echo "$as_me:$LINENO: checking for socket" >&5
26426echo $ECHO_N "checking for socket... $ECHO_C" >&6
26427if test "${ac_cv_funclib_socket+set}" = set; then
26428  echo $ECHO_N "(cached) $ECHO_C" >&6
26429else
26430
26431if eval "test \"\$ac_cv_func_socket\" != yes" ; then
26432	ac_save_LIBS="$LIBS"
26433	for ac_lib in "" socket; do
26434		case "$ac_lib" in
26435		"") ;;
26436		yes) ac_lib="" ;;
26437		no) continue ;;
26438		-l*) ;;
26439		*) ac_lib="-l$ac_lib" ;;
26440		esac
26441		LIBS=" $ac_lib  $ac_save_LIBS"
26442		cat >conftest.$ac_ext <<_ACEOF
26443/* confdefs.h.  */
26444_ACEOF
26445cat confdefs.h >>conftest.$ac_ext
26446cat >>conftest.$ac_ext <<_ACEOF
26447/* end confdefs.h.  */
26448
26449int
26450main ()
26451{
26452socket()
26453  ;
26454  return 0;
26455}
26456_ACEOF
26457rm -f conftest.$ac_objext conftest$ac_exeext
26458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26459  (eval $ac_link) 2>conftest.er1
26460  ac_status=$?
26461  grep -v '^ *+' conftest.er1 >conftest.err
26462  rm -f conftest.er1
26463  cat conftest.err >&5
26464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465  (exit $ac_status); } &&
26466	 { ac_try='test -z "$ac_c_werror_flag"
26467			 || test ! -s conftest.err'
26468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26469  (eval $ac_try) 2>&5
26470  ac_status=$?
26471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472  (exit $ac_status); }; } &&
26473	 { ac_try='test -s conftest$ac_exeext'
26474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475  (eval $ac_try) 2>&5
26476  ac_status=$?
26477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478  (exit $ac_status); }; }; then
26479  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
26480else
26481  echo "$as_me: failed program was:" >&5
26482sed 's/^/| /' conftest.$ac_ext >&5
26483
26484fi
26485rm -f conftest.err conftest.$ac_objext \
26486      conftest$ac_exeext conftest.$ac_ext
26487	done
26488	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
26489	LIBS="$ac_save_LIBS"
26490fi
26491
26492fi
26493
26494
26495eval "ac_res=\$ac_cv_funclib_socket"
26496
26497if false; then
26498
26499for ac_func in socket
26500do
26501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26502echo "$as_me:$LINENO: checking for $ac_func" >&5
26503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26504if eval "test \"\${$as_ac_var+set}\" = set"; then
26505  echo $ECHO_N "(cached) $ECHO_C" >&6
26506else
26507  cat >conftest.$ac_ext <<_ACEOF
26508/* confdefs.h.  */
26509_ACEOF
26510cat confdefs.h >>conftest.$ac_ext
26511cat >>conftest.$ac_ext <<_ACEOF
26512/* end confdefs.h.  */
26513/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26514   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26515#define $ac_func innocuous_$ac_func
26516
26517/* System header to define __stub macros and hopefully few prototypes,
26518    which can conflict with char $ac_func (); below.
26519    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26520    <limits.h> exists even on freestanding compilers.  */
26521
26522#ifdef __STDC__
26523# include <limits.h>
26524#else
26525# include <assert.h>
26526#endif
26527
26528#undef $ac_func
26529
26530/* Override any gcc2 internal prototype to avoid an error.  */
26531#ifdef __cplusplus
26532extern "C"
26533{
26534#endif
26535/* We use char because int might match the return type of a gcc2
26536   builtin and then its argument prototype would still apply.  */
26537char $ac_func ();
26538/* The GNU C library defines this for functions which it implements
26539    to always fail with ENOSYS.  Some functions are actually named
26540    something starting with __ and the normal name is an alias.  */
26541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26542choke me
26543#else
26544char (*f) () = $ac_func;
26545#endif
26546#ifdef __cplusplus
26547}
26548#endif
26549
26550int
26551main ()
26552{
26553return f != $ac_func;
26554  ;
26555  return 0;
26556}
26557_ACEOF
26558rm -f conftest.$ac_objext conftest$ac_exeext
26559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26560  (eval $ac_link) 2>conftest.er1
26561  ac_status=$?
26562  grep -v '^ *+' conftest.er1 >conftest.err
26563  rm -f conftest.er1
26564  cat conftest.err >&5
26565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566  (exit $ac_status); } &&
26567	 { ac_try='test -z "$ac_c_werror_flag"
26568			 || test ! -s conftest.err'
26569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570  (eval $ac_try) 2>&5
26571  ac_status=$?
26572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573  (exit $ac_status); }; } &&
26574	 { ac_try='test -s conftest$ac_exeext'
26575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576  (eval $ac_try) 2>&5
26577  ac_status=$?
26578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579  (exit $ac_status); }; }; then
26580  eval "$as_ac_var=yes"
26581else
26582  echo "$as_me: failed program was:" >&5
26583sed 's/^/| /' conftest.$ac_ext >&5
26584
26585eval "$as_ac_var=no"
26586fi
26587rm -f conftest.err conftest.$ac_objext \
26588      conftest$ac_exeext conftest.$ac_ext
26589fi
26590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26592if test `eval echo '${'$as_ac_var'}'` = yes; then
26593  cat >>confdefs.h <<_ACEOF
26594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26595_ACEOF
26596
26597fi
26598done
26599
26600fi
26601# socket
26602eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26603eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26604eval "LIB_socket=$ac_res"
26605
26606case "$ac_res" in
26607	yes)
26608	eval "ac_cv_func_socket=yes"
26609	eval "LIB_socket="
26610	cat >>confdefs.h <<_ACEOF
26611#define $ac_tr_func 1
26612_ACEOF
26613
26614	echo "$as_me:$LINENO: result: yes" >&5
26615echo "${ECHO_T}yes" >&6
26616	;;
26617	no)
26618	eval "ac_cv_func_socket=no"
26619	eval "LIB_socket="
26620	echo "$as_me:$LINENO: result: no" >&5
26621echo "${ECHO_T}no" >&6
26622	;;
26623	*)
26624	eval "ac_cv_func_socket=yes"
26625	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26626	cat >>confdefs.h <<_ACEOF
26627#define $ac_tr_func 1
26628_ACEOF
26629
26630	cat >>confdefs.h <<_ACEOF
26631#define $ac_tr_lib 1
26632_ACEOF
26633
26634	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26635echo "${ECHO_T}yes, in $ac_res" >&6
26636	;;
26637esac
26638
26639
26640if test -n "$LIB_socket"; then
26641	LIBS="$LIB_socket $LIBS"
26642fi
26643
26644
26645
26646
26647
26648echo "$as_me:$LINENO: checking for gethostbyname" >&5
26649echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26650if test "${ac_cv_funclib_gethostbyname+set}" = set; then
26651  echo $ECHO_N "(cached) $ECHO_C" >&6
26652else
26653
26654if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
26655	ac_save_LIBS="$LIBS"
26656	for ac_lib in "" nsl; do
26657		case "$ac_lib" in
26658		"") ;;
26659		yes) ac_lib="" ;;
26660		no) continue ;;
26661		-l*) ;;
26662		*) ac_lib="-l$ac_lib" ;;
26663		esac
26664		LIBS=" $ac_lib  $ac_save_LIBS"
26665		cat >conftest.$ac_ext <<_ACEOF
26666/* confdefs.h.  */
26667_ACEOF
26668cat confdefs.h >>conftest.$ac_ext
26669cat >>conftest.$ac_ext <<_ACEOF
26670/* end confdefs.h.  */
26671
26672int
26673main ()
26674{
26675gethostbyname()
26676  ;
26677  return 0;
26678}
26679_ACEOF
26680rm -f conftest.$ac_objext conftest$ac_exeext
26681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26682  (eval $ac_link) 2>conftest.er1
26683  ac_status=$?
26684  grep -v '^ *+' conftest.er1 >conftest.err
26685  rm -f conftest.er1
26686  cat conftest.err >&5
26687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688  (exit $ac_status); } &&
26689	 { ac_try='test -z "$ac_c_werror_flag"
26690			 || test ! -s conftest.err'
26691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692  (eval $ac_try) 2>&5
26693  ac_status=$?
26694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695  (exit $ac_status); }; } &&
26696	 { ac_try='test -s conftest$ac_exeext'
26697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698  (eval $ac_try) 2>&5
26699  ac_status=$?
26700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701  (exit $ac_status); }; }; then
26702  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
26703else
26704  echo "$as_me: failed program was:" >&5
26705sed 's/^/| /' conftest.$ac_ext >&5
26706
26707fi
26708rm -f conftest.err conftest.$ac_objext \
26709      conftest$ac_exeext conftest.$ac_ext
26710	done
26711	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
26712	LIBS="$ac_save_LIBS"
26713fi
26714
26715fi
26716
26717
26718eval "ac_res=\$ac_cv_funclib_gethostbyname"
26719
26720if false; then
26721
26722for ac_func in gethostbyname
26723do
26724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26725echo "$as_me:$LINENO: checking for $ac_func" >&5
26726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26727if eval "test \"\${$as_ac_var+set}\" = set"; then
26728  echo $ECHO_N "(cached) $ECHO_C" >&6
26729else
26730  cat >conftest.$ac_ext <<_ACEOF
26731/* confdefs.h.  */
26732_ACEOF
26733cat confdefs.h >>conftest.$ac_ext
26734cat >>conftest.$ac_ext <<_ACEOF
26735/* end confdefs.h.  */
26736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26738#define $ac_func innocuous_$ac_func
26739
26740/* System header to define __stub macros and hopefully few prototypes,
26741    which can conflict with char $ac_func (); below.
26742    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26743    <limits.h> exists even on freestanding compilers.  */
26744
26745#ifdef __STDC__
26746# include <limits.h>
26747#else
26748# include <assert.h>
26749#endif
26750
26751#undef $ac_func
26752
26753/* Override any gcc2 internal prototype to avoid an error.  */
26754#ifdef __cplusplus
26755extern "C"
26756{
26757#endif
26758/* We use char because int might match the return type of a gcc2
26759   builtin and then its argument prototype would still apply.  */
26760char $ac_func ();
26761/* The GNU C library defines this for functions which it implements
26762    to always fail with ENOSYS.  Some functions are actually named
26763    something starting with __ and the normal name is an alias.  */
26764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26765choke me
26766#else
26767char (*f) () = $ac_func;
26768#endif
26769#ifdef __cplusplus
26770}
26771#endif
26772
26773int
26774main ()
26775{
26776return f != $ac_func;
26777  ;
26778  return 0;
26779}
26780_ACEOF
26781rm -f conftest.$ac_objext conftest$ac_exeext
26782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26783  (eval $ac_link) 2>conftest.er1
26784  ac_status=$?
26785  grep -v '^ *+' conftest.er1 >conftest.err
26786  rm -f conftest.er1
26787  cat conftest.err >&5
26788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789  (exit $ac_status); } &&
26790	 { ac_try='test -z "$ac_c_werror_flag"
26791			 || test ! -s conftest.err'
26792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793  (eval $ac_try) 2>&5
26794  ac_status=$?
26795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796  (exit $ac_status); }; } &&
26797	 { ac_try='test -s conftest$ac_exeext'
26798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799  (eval $ac_try) 2>&5
26800  ac_status=$?
26801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802  (exit $ac_status); }; }; then
26803  eval "$as_ac_var=yes"
26804else
26805  echo "$as_me: failed program was:" >&5
26806sed 's/^/| /' conftest.$ac_ext >&5
26807
26808eval "$as_ac_var=no"
26809fi
26810rm -f conftest.err conftest.$ac_objext \
26811      conftest$ac_exeext conftest.$ac_ext
26812fi
26813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26814echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26815if test `eval echo '${'$as_ac_var'}'` = yes; then
26816  cat >>confdefs.h <<_ACEOF
26817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26818_ACEOF
26819
26820fi
26821done
26822
26823fi
26824# gethostbyname
26825eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26826eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26827eval "LIB_gethostbyname=$ac_res"
26828
26829case "$ac_res" in
26830	yes)
26831	eval "ac_cv_func_gethostbyname=yes"
26832	eval "LIB_gethostbyname="
26833	cat >>confdefs.h <<_ACEOF
26834#define $ac_tr_func 1
26835_ACEOF
26836
26837	echo "$as_me:$LINENO: result: yes" >&5
26838echo "${ECHO_T}yes" >&6
26839	;;
26840	no)
26841	eval "ac_cv_func_gethostbyname=no"
26842	eval "LIB_gethostbyname="
26843	echo "$as_me:$LINENO: result: no" >&5
26844echo "${ECHO_T}no" >&6
26845	;;
26846	*)
26847	eval "ac_cv_func_gethostbyname=yes"
26848	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26849	cat >>confdefs.h <<_ACEOF
26850#define $ac_tr_func 1
26851_ACEOF
26852
26853	cat >>confdefs.h <<_ACEOF
26854#define $ac_tr_lib 1
26855_ACEOF
26856
26857	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26858echo "${ECHO_T}yes, in $ac_res" >&6
26859	;;
26860esac
26861
26862
26863if test -n "$LIB_gethostbyname"; then
26864	LIBS="$LIB_gethostbyname $LIBS"
26865fi
26866
26867
26868
26869
26870
26871echo "$as_me:$LINENO: checking for syslog" >&5
26872echo $ECHO_N "checking for syslog... $ECHO_C" >&6
26873if test "${ac_cv_funclib_syslog+set}" = set; then
26874  echo $ECHO_N "(cached) $ECHO_C" >&6
26875else
26876
26877if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
26878	ac_save_LIBS="$LIBS"
26879	for ac_lib in "" syslog; do
26880		case "$ac_lib" in
26881		"") ;;
26882		yes) ac_lib="" ;;
26883		no) continue ;;
26884		-l*) ;;
26885		*) ac_lib="-l$ac_lib" ;;
26886		esac
26887		LIBS=" $ac_lib  $ac_save_LIBS"
26888		cat >conftest.$ac_ext <<_ACEOF
26889/* confdefs.h.  */
26890_ACEOF
26891cat confdefs.h >>conftest.$ac_ext
26892cat >>conftest.$ac_ext <<_ACEOF
26893/* end confdefs.h.  */
26894
26895int
26896main ()
26897{
26898syslog()
26899  ;
26900  return 0;
26901}
26902_ACEOF
26903rm -f conftest.$ac_objext conftest$ac_exeext
26904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26905  (eval $ac_link) 2>conftest.er1
26906  ac_status=$?
26907  grep -v '^ *+' conftest.er1 >conftest.err
26908  rm -f conftest.er1
26909  cat conftest.err >&5
26910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911  (exit $ac_status); } &&
26912	 { ac_try='test -z "$ac_c_werror_flag"
26913			 || test ! -s conftest.err'
26914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915  (eval $ac_try) 2>&5
26916  ac_status=$?
26917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918  (exit $ac_status); }; } &&
26919	 { ac_try='test -s conftest$ac_exeext'
26920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921  (eval $ac_try) 2>&5
26922  ac_status=$?
26923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924  (exit $ac_status); }; }; then
26925  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
26926else
26927  echo "$as_me: failed program was:" >&5
26928sed 's/^/| /' conftest.$ac_ext >&5
26929
26930fi
26931rm -f conftest.err conftest.$ac_objext \
26932      conftest$ac_exeext conftest.$ac_ext
26933	done
26934	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
26935	LIBS="$ac_save_LIBS"
26936fi
26937
26938fi
26939
26940
26941eval "ac_res=\$ac_cv_funclib_syslog"
26942
26943if false; then
26944
26945for ac_func in syslog
26946do
26947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26948echo "$as_me:$LINENO: checking for $ac_func" >&5
26949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26950if eval "test \"\${$as_ac_var+set}\" = set"; then
26951  echo $ECHO_N "(cached) $ECHO_C" >&6
26952else
26953  cat >conftest.$ac_ext <<_ACEOF
26954/* confdefs.h.  */
26955_ACEOF
26956cat confdefs.h >>conftest.$ac_ext
26957cat >>conftest.$ac_ext <<_ACEOF
26958/* end confdefs.h.  */
26959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26960   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26961#define $ac_func innocuous_$ac_func
26962
26963/* System header to define __stub macros and hopefully few prototypes,
26964    which can conflict with char $ac_func (); below.
26965    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26966    <limits.h> exists even on freestanding compilers.  */
26967
26968#ifdef __STDC__
26969# include <limits.h>
26970#else
26971# include <assert.h>
26972#endif
26973
26974#undef $ac_func
26975
26976/* Override any gcc2 internal prototype to avoid an error.  */
26977#ifdef __cplusplus
26978extern "C"
26979{
26980#endif
26981/* We use char because int might match the return type of a gcc2
26982   builtin and then its argument prototype would still apply.  */
26983char $ac_func ();
26984/* The GNU C library defines this for functions which it implements
26985    to always fail with ENOSYS.  Some functions are actually named
26986    something starting with __ and the normal name is an alias.  */
26987#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26988choke me
26989#else
26990char (*f) () = $ac_func;
26991#endif
26992#ifdef __cplusplus
26993}
26994#endif
26995
26996int
26997main ()
26998{
26999return f != $ac_func;
27000  ;
27001  return 0;
27002}
27003_ACEOF
27004rm -f conftest.$ac_objext conftest$ac_exeext
27005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27006  (eval $ac_link) 2>conftest.er1
27007  ac_status=$?
27008  grep -v '^ *+' conftest.er1 >conftest.err
27009  rm -f conftest.er1
27010  cat conftest.err >&5
27011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012  (exit $ac_status); } &&
27013	 { ac_try='test -z "$ac_c_werror_flag"
27014			 || test ! -s conftest.err'
27015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016  (eval $ac_try) 2>&5
27017  ac_status=$?
27018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019  (exit $ac_status); }; } &&
27020	 { ac_try='test -s conftest$ac_exeext'
27021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27022  (eval $ac_try) 2>&5
27023  ac_status=$?
27024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025  (exit $ac_status); }; }; then
27026  eval "$as_ac_var=yes"
27027else
27028  echo "$as_me: failed program was:" >&5
27029sed 's/^/| /' conftest.$ac_ext >&5
27030
27031eval "$as_ac_var=no"
27032fi
27033rm -f conftest.err conftest.$ac_objext \
27034      conftest$ac_exeext conftest.$ac_ext
27035fi
27036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27037echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27038if test `eval echo '${'$as_ac_var'}'` = yes; then
27039  cat >>confdefs.h <<_ACEOF
27040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27041_ACEOF
27042
27043fi
27044done
27045
27046fi
27047# syslog
27048eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27049eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27050eval "LIB_syslog=$ac_res"
27051
27052case "$ac_res" in
27053	yes)
27054	eval "ac_cv_func_syslog=yes"
27055	eval "LIB_syslog="
27056	cat >>confdefs.h <<_ACEOF
27057#define $ac_tr_func 1
27058_ACEOF
27059
27060	echo "$as_me:$LINENO: result: yes" >&5
27061echo "${ECHO_T}yes" >&6
27062	;;
27063	no)
27064	eval "ac_cv_func_syslog=no"
27065	eval "LIB_syslog="
27066	echo "$as_me:$LINENO: result: no" >&5
27067echo "${ECHO_T}no" >&6
27068	;;
27069	*)
27070	eval "ac_cv_func_syslog=yes"
27071	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27072	cat >>confdefs.h <<_ACEOF
27073#define $ac_tr_func 1
27074_ACEOF
27075
27076	cat >>confdefs.h <<_ACEOF
27077#define $ac_tr_lib 1
27078_ACEOF
27079
27080	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27081echo "${ECHO_T}yes, in $ac_res" >&6
27082	;;
27083esac
27084
27085
27086if test -n "$LIB_syslog"; then
27087	LIBS="$LIB_syslog $LIBS"
27088fi
27089
27090
27091
27092
27093# Check whether --with-ipv6 or --without-ipv6 was given.
27094if test "${with_ipv6+set}" = set; then
27095  withval="$with_ipv6"
27096
27097if test "$withval" = "no"; then
27098	ac_cv_lib_ipv6=no
27099fi
27100fi;
27101save_CFLAGS="${CFLAGS}"
27102echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
27103echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
27104if test "${v6type+set}" = set; then
27105  echo $ECHO_N "(cached) $ECHO_C" >&6
27106else
27107  v6type=unknown
27108v6lib=none
27109
27110for i in v6d toshiba kame inria zeta linux; do
27111	case $i in
27112	v6d)
27113		cat >conftest.$ac_ext <<_ACEOF
27114/* confdefs.h.  */
27115_ACEOF
27116cat confdefs.h >>conftest.$ac_ext
27117cat >>conftest.$ac_ext <<_ACEOF
27118/* end confdefs.h.  */
27119
27120#include </usr/local/v6/include/sys/types.h>
27121#ifdef __V6D__
27122yes
27123#endif
27124_ACEOF
27125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27126  $EGREP "yes" >/dev/null 2>&1; then
27127  v6type=$i; v6lib=v6;
27128			v6libdir=/usr/local/v6/lib;
27129			CFLAGS="-I/usr/local/v6/include $CFLAGS"
27130fi
27131rm -f conftest*
27132
27133		;;
27134	toshiba)
27135		cat >conftest.$ac_ext <<_ACEOF
27136/* confdefs.h.  */
27137_ACEOF
27138cat confdefs.h >>conftest.$ac_ext
27139cat >>conftest.$ac_ext <<_ACEOF
27140/* end confdefs.h.  */
27141
27142#include <sys/param.h>
27143#ifdef _TOSHIBA_INET6
27144yes
27145#endif
27146_ACEOF
27147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27148  $EGREP "yes" >/dev/null 2>&1; then
27149  v6type=$i; v6lib=inet6;
27150			v6libdir=/usr/local/v6/lib;
27151			CFLAGS="-DINET6 $CFLAGS"
27152fi
27153rm -f conftest*
27154
27155		;;
27156	kame)
27157		cat >conftest.$ac_ext <<_ACEOF
27158/* confdefs.h.  */
27159_ACEOF
27160cat confdefs.h >>conftest.$ac_ext
27161cat >>conftest.$ac_ext <<_ACEOF
27162/* end confdefs.h.  */
27163
27164#include <netinet/in.h>
27165#ifdef __KAME__
27166yes
27167#endif
27168_ACEOF
27169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27170  $EGREP "yes" >/dev/null 2>&1; then
27171  v6type=$i; v6lib=inet6;
27172			v6libdir=/usr/local/v6/lib;
27173			CFLAGS="-DINET6 $CFLAGS"
27174fi
27175rm -f conftest*
27176
27177		;;
27178	inria)
27179		cat >conftest.$ac_ext <<_ACEOF
27180/* confdefs.h.  */
27181_ACEOF
27182cat confdefs.h >>conftest.$ac_ext
27183cat >>conftest.$ac_ext <<_ACEOF
27184/* end confdefs.h.  */
27185
27186#include <netinet/in.h>
27187#ifdef IPV6_INRIA_VERSION
27188yes
27189#endif
27190_ACEOF
27191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27192  $EGREP "yes" >/dev/null 2>&1; then
27193  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
27194fi
27195rm -f conftest*
27196
27197		;;
27198	zeta)
27199		cat >conftest.$ac_ext <<_ACEOF
27200/* confdefs.h.  */
27201_ACEOF
27202cat confdefs.h >>conftest.$ac_ext
27203cat >>conftest.$ac_ext <<_ACEOF
27204/* end confdefs.h.  */
27205
27206#include <sys/param.h>
27207#ifdef _ZETA_MINAMI_INET6
27208yes
27209#endif
27210_ACEOF
27211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27212  $EGREP "yes" >/dev/null 2>&1; then
27213  v6type=$i; v6lib=inet6;
27214			v6libdir=/usr/local/v6/lib;
27215			CFLAGS="-DINET6 $CFLAGS"
27216fi
27217rm -f conftest*
27218
27219		;;
27220	linux)
27221		if test -d /usr/inet6; then
27222			v6type=$i
27223			v6lib=inet6
27224			v6libdir=/usr/inet6
27225			CFLAGS="-DINET6 $CFLAGS"
27226		fi
27227		;;
27228	esac
27229	if test "$v6type" != "unknown"; then
27230		break
27231	fi
27232done
27233
27234if test "$v6lib" != "none"; then
27235	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
27236		if test -d $dir -a -f $dir/lib$v6lib.a; then
27237			LIBS="-L$dir -l$v6lib $LIBS"
27238			break
27239		fi
27240	done
27241fi
27242
27243fi
27244echo "$as_me:$LINENO: result: $v6type" >&5
27245echo "${ECHO_T}$v6type" >&6
27246
27247echo "$as_me:$LINENO: checking for IPv6" >&5
27248echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
27249if test "${ac_cv_lib_ipv6+set}" = set; then
27250  echo $ECHO_N "(cached) $ECHO_C" >&6
27251else
27252
27253cat >conftest.$ac_ext <<_ACEOF
27254/* confdefs.h.  */
27255_ACEOF
27256cat confdefs.h >>conftest.$ac_ext
27257cat >>conftest.$ac_ext <<_ACEOF
27258/* end confdefs.h.  */
27259
27260#ifdef HAVE_SYS_TYPES_H
27261#include <sys/types.h>
27262#endif
27263#ifdef HAVE_SYS_SOCKET_H
27264#include <sys/socket.h>
27265#endif
27266#ifdef HAVE_NETINET_IN_H
27267#include <netinet/in.h>
27268#endif
27269#ifdef HAVE_NETINET_IN6_H
27270#include <netinet/in6.h>
27271#endif
27272
27273int
27274main ()
27275{
27276
27277 struct sockaddr_in6 sin6;
27278 int s;
27279
27280 s = socket(AF_INET6, SOCK_DGRAM, 0);
27281
27282 sin6.sin6_family = AF_INET6;
27283 sin6.sin6_port = htons(17);
27284 sin6.sin6_addr = in6addr_any;
27285 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
27286
27287  ;
27288  return 0;
27289}
27290_ACEOF
27291rm -f conftest.$ac_objext conftest$ac_exeext
27292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27293  (eval $ac_link) 2>conftest.er1
27294  ac_status=$?
27295  grep -v '^ *+' conftest.er1 >conftest.err
27296  rm -f conftest.er1
27297  cat conftest.err >&5
27298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299  (exit $ac_status); } &&
27300	 { ac_try='test -z "$ac_c_werror_flag"
27301			 || test ! -s conftest.err'
27302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303  (eval $ac_try) 2>&5
27304  ac_status=$?
27305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306  (exit $ac_status); }; } &&
27307	 { ac_try='test -s conftest$ac_exeext'
27308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309  (eval $ac_try) 2>&5
27310  ac_status=$?
27311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312  (exit $ac_status); }; }; then
27313  ac_cv_lib_ipv6=yes
27314else
27315  echo "$as_me: failed program was:" >&5
27316sed 's/^/| /' conftest.$ac_ext >&5
27317
27318ac_cv_lib_ipv6=no
27319fi
27320rm -f conftest.err conftest.$ac_objext \
27321      conftest$ac_exeext conftest.$ac_ext
27322fi
27323echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
27324echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
27325if test "$ac_cv_lib_ipv6" = yes; then
27326
27327cat >>confdefs.h <<\_ACEOF
27328#define HAVE_IPV6 1
27329_ACEOF
27330
27331else
27332  CFLAGS="${save_CFLAGS}"
27333fi
27334
27335## test for AIX missing in6addr_loopback
27336if test "$ac_cv_lib_ipv6" = yes; then
27337	echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
27338echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
27339if test "${ac_cv_var_in6addr_loopback+set}" = set; then
27340  echo $ECHO_N "(cached) $ECHO_C" >&6
27341else
27342
27343	cat >conftest.$ac_ext <<_ACEOF
27344/* confdefs.h.  */
27345_ACEOF
27346cat confdefs.h >>conftest.$ac_ext
27347cat >>conftest.$ac_ext <<_ACEOF
27348/* end confdefs.h.  */
27349
27350#ifdef HAVE_SYS_TYPES_H
27351#include <sys/types.h>
27352#endif
27353#ifdef HAVE_SYS_SOCKET_H
27354#include <sys/socket.h>
27355#endif
27356#ifdef HAVE_NETINET_IN_H
27357#include <netinet/in.h>
27358#endif
27359#ifdef HAVE_NETINET_IN6_H
27360#include <netinet/in6.h>
27361#endif
27362int
27363main ()
27364{
27365
27366struct sockaddr_in6 sin6;
27367sin6.sin6_addr = in6addr_loopback;
27368
27369  ;
27370  return 0;
27371}
27372_ACEOF
27373rm -f conftest.$ac_objext conftest$ac_exeext
27374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27375  (eval $ac_link) 2>conftest.er1
27376  ac_status=$?
27377  grep -v '^ *+' conftest.er1 >conftest.err
27378  rm -f conftest.er1
27379  cat conftest.err >&5
27380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381  (exit $ac_status); } &&
27382	 { ac_try='test -z "$ac_c_werror_flag"
27383			 || test ! -s conftest.err'
27384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27385  (eval $ac_try) 2>&5
27386  ac_status=$?
27387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388  (exit $ac_status); }; } &&
27389	 { ac_try='test -s conftest$ac_exeext'
27390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27391  (eval $ac_try) 2>&5
27392  ac_status=$?
27393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394  (exit $ac_status); }; }; then
27395  ac_cv_var_in6addr_loopback=yes
27396else
27397  echo "$as_me: failed program was:" >&5
27398sed 's/^/| /' conftest.$ac_ext >&5
27399
27400ac_cv_var_in6addr_loopback=no
27401fi
27402rm -f conftest.err conftest.$ac_objext \
27403      conftest$ac_exeext conftest.$ac_ext
27404fi
27405echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
27406echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
27407	if test "$ac_cv_var_in6addr_loopback" = yes; then
27408
27409cat >>confdefs.h <<\_ACEOF
27410#define HAVE_IN6ADDR_LOOPBACK 1
27411_ACEOF
27412
27413	fi
27414fi
27415
27416
27417
27418
27419
27420
27421echo "$as_me:$LINENO: checking for gethostbyname2" >&5
27422echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
27423if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
27424  echo $ECHO_N "(cached) $ECHO_C" >&6
27425else
27426
27427if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
27428	ac_save_LIBS="$LIBS"
27429	for ac_lib in "" inet6 ip6; do
27430		case "$ac_lib" in
27431		"") ;;
27432		yes) ac_lib="" ;;
27433		no) continue ;;
27434		-l*) ;;
27435		*) ac_lib="-l$ac_lib" ;;
27436		esac
27437		LIBS=" $ac_lib  $ac_save_LIBS"
27438		cat >conftest.$ac_ext <<_ACEOF
27439/* confdefs.h.  */
27440_ACEOF
27441cat confdefs.h >>conftest.$ac_ext
27442cat >>conftest.$ac_ext <<_ACEOF
27443/* end confdefs.h.  */
27444
27445int
27446main ()
27447{
27448gethostbyname2()
27449  ;
27450  return 0;
27451}
27452_ACEOF
27453rm -f conftest.$ac_objext conftest$ac_exeext
27454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27455  (eval $ac_link) 2>conftest.er1
27456  ac_status=$?
27457  grep -v '^ *+' conftest.er1 >conftest.err
27458  rm -f conftest.er1
27459  cat conftest.err >&5
27460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461  (exit $ac_status); } &&
27462	 { ac_try='test -z "$ac_c_werror_flag"
27463			 || test ! -s conftest.err'
27464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465  (eval $ac_try) 2>&5
27466  ac_status=$?
27467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468  (exit $ac_status); }; } &&
27469	 { ac_try='test -s conftest$ac_exeext'
27470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27471  (eval $ac_try) 2>&5
27472  ac_status=$?
27473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474  (exit $ac_status); }; }; then
27475  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
27476else
27477  echo "$as_me: failed program was:" >&5
27478sed 's/^/| /' conftest.$ac_ext >&5
27479
27480fi
27481rm -f conftest.err conftest.$ac_objext \
27482      conftest$ac_exeext conftest.$ac_ext
27483	done
27484	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
27485	LIBS="$ac_save_LIBS"
27486fi
27487
27488fi
27489
27490
27491eval "ac_res=\$ac_cv_funclib_gethostbyname2"
27492
27493if false; then
27494
27495for ac_func in gethostbyname2
27496do
27497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27498echo "$as_me:$LINENO: checking for $ac_func" >&5
27499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27500if eval "test \"\${$as_ac_var+set}\" = set"; then
27501  echo $ECHO_N "(cached) $ECHO_C" >&6
27502else
27503  cat >conftest.$ac_ext <<_ACEOF
27504/* confdefs.h.  */
27505_ACEOF
27506cat confdefs.h >>conftest.$ac_ext
27507cat >>conftest.$ac_ext <<_ACEOF
27508/* end confdefs.h.  */
27509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27510   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27511#define $ac_func innocuous_$ac_func
27512
27513/* System header to define __stub macros and hopefully few prototypes,
27514    which can conflict with char $ac_func (); below.
27515    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27516    <limits.h> exists even on freestanding compilers.  */
27517
27518#ifdef __STDC__
27519# include <limits.h>
27520#else
27521# include <assert.h>
27522#endif
27523
27524#undef $ac_func
27525
27526/* Override any gcc2 internal prototype to avoid an error.  */
27527#ifdef __cplusplus
27528extern "C"
27529{
27530#endif
27531/* We use char because int might match the return type of a gcc2
27532   builtin and then its argument prototype would still apply.  */
27533char $ac_func ();
27534/* The GNU C library defines this for functions which it implements
27535    to always fail with ENOSYS.  Some functions are actually named
27536    something starting with __ and the normal name is an alias.  */
27537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27538choke me
27539#else
27540char (*f) () = $ac_func;
27541#endif
27542#ifdef __cplusplus
27543}
27544#endif
27545
27546int
27547main ()
27548{
27549return f != $ac_func;
27550  ;
27551  return 0;
27552}
27553_ACEOF
27554rm -f conftest.$ac_objext conftest$ac_exeext
27555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27556  (eval $ac_link) 2>conftest.er1
27557  ac_status=$?
27558  grep -v '^ *+' conftest.er1 >conftest.err
27559  rm -f conftest.er1
27560  cat conftest.err >&5
27561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562  (exit $ac_status); } &&
27563	 { ac_try='test -z "$ac_c_werror_flag"
27564			 || test ! -s conftest.err'
27565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27566  (eval $ac_try) 2>&5
27567  ac_status=$?
27568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569  (exit $ac_status); }; } &&
27570	 { ac_try='test -s conftest$ac_exeext'
27571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572  (eval $ac_try) 2>&5
27573  ac_status=$?
27574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575  (exit $ac_status); }; }; then
27576  eval "$as_ac_var=yes"
27577else
27578  echo "$as_me: failed program was:" >&5
27579sed 's/^/| /' conftest.$ac_ext >&5
27580
27581eval "$as_ac_var=no"
27582fi
27583rm -f conftest.err conftest.$ac_objext \
27584      conftest$ac_exeext conftest.$ac_ext
27585fi
27586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27588if test `eval echo '${'$as_ac_var'}'` = yes; then
27589  cat >>confdefs.h <<_ACEOF
27590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27591_ACEOF
27592
27593fi
27594done
27595
27596fi
27597# gethostbyname2
27598eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27599eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27600eval "LIB_gethostbyname2=$ac_res"
27601
27602case "$ac_res" in
27603	yes)
27604	eval "ac_cv_func_gethostbyname2=yes"
27605	eval "LIB_gethostbyname2="
27606	cat >>confdefs.h <<_ACEOF
27607#define $ac_tr_func 1
27608_ACEOF
27609
27610	echo "$as_me:$LINENO: result: yes" >&5
27611echo "${ECHO_T}yes" >&6
27612	;;
27613	no)
27614	eval "ac_cv_func_gethostbyname2=no"
27615	eval "LIB_gethostbyname2="
27616	echo "$as_me:$LINENO: result: no" >&5
27617echo "${ECHO_T}no" >&6
27618	;;
27619	*)
27620	eval "ac_cv_func_gethostbyname2=yes"
27621	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27622	cat >>confdefs.h <<_ACEOF
27623#define $ac_tr_func 1
27624_ACEOF
27625
27626	cat >>confdefs.h <<_ACEOF
27627#define $ac_tr_lib 1
27628_ACEOF
27629
27630	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27631echo "${ECHO_T}yes, in $ac_res" >&6
27632	;;
27633esac
27634
27635
27636if test -n "$LIB_gethostbyname2"; then
27637	LIBS="$LIB_gethostbyname2 $LIBS"
27638fi
27639
27640
27641
27642
27643
27644
27645echo "$as_me:$LINENO: checking for res_search" >&5
27646echo $ECHO_N "checking for res_search... $ECHO_C" >&6
27647if test "${ac_cv_funclib_res_search+set}" = set; then
27648  echo $ECHO_N "(cached) $ECHO_C" >&6
27649else
27650
27651if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
27652	ac_save_LIBS="$LIBS"
27653	for ac_lib in "" resolv; do
27654		case "$ac_lib" in
27655		"") ;;
27656		yes) ac_lib="" ;;
27657		no) continue ;;
27658		-l*) ;;
27659		*) ac_lib="-l$ac_lib" ;;
27660		esac
27661		LIBS=" $ac_lib  $ac_save_LIBS"
27662		cat >conftest.$ac_ext <<_ACEOF
27663/* confdefs.h.  */
27664_ACEOF
27665cat confdefs.h >>conftest.$ac_ext
27666cat >>conftest.$ac_ext <<_ACEOF
27667/* end confdefs.h.  */
27668
27669#include <stdio.h>
27670#ifdef HAVE_SYS_TYPES_H
27671#include <sys/types.h>
27672#endif
27673#ifdef HAVE_NETINET_IN_H
27674#include <netinet/in.h>
27675#endif
27676#ifdef HAVE_ARPA_NAMESER_H
27677#include <arpa/nameser.h>
27678#endif
27679#ifdef HAVE_RESOLV_H
27680#include <resolv.h>
27681#endif
27682
27683int
27684main ()
27685{
27686res_search(0,0,0,0,0)
27687  ;
27688  return 0;
27689}
27690_ACEOF
27691rm -f conftest.$ac_objext conftest$ac_exeext
27692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27693  (eval $ac_link) 2>conftest.er1
27694  ac_status=$?
27695  grep -v '^ *+' conftest.er1 >conftest.err
27696  rm -f conftest.er1
27697  cat conftest.err >&5
27698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699  (exit $ac_status); } &&
27700	 { ac_try='test -z "$ac_c_werror_flag"
27701			 || test ! -s conftest.err'
27702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27703  (eval $ac_try) 2>&5
27704  ac_status=$?
27705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706  (exit $ac_status); }; } &&
27707	 { ac_try='test -s conftest$ac_exeext'
27708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709  (eval $ac_try) 2>&5
27710  ac_status=$?
27711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712  (exit $ac_status); }; }; then
27713  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
27714else
27715  echo "$as_me: failed program was:" >&5
27716sed 's/^/| /' conftest.$ac_ext >&5
27717
27718fi
27719rm -f conftest.err conftest.$ac_objext \
27720      conftest$ac_exeext conftest.$ac_ext
27721	done
27722	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
27723	LIBS="$ac_save_LIBS"
27724fi
27725
27726fi
27727
27728
27729eval "ac_res=\$ac_cv_funclib_res_search"
27730
27731if false; then
27732
27733for ac_func in res_search
27734do
27735as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27736echo "$as_me:$LINENO: checking for $ac_func" >&5
27737echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27738if eval "test \"\${$as_ac_var+set}\" = set"; then
27739  echo $ECHO_N "(cached) $ECHO_C" >&6
27740else
27741  cat >conftest.$ac_ext <<_ACEOF
27742/* confdefs.h.  */
27743_ACEOF
27744cat confdefs.h >>conftest.$ac_ext
27745cat >>conftest.$ac_ext <<_ACEOF
27746/* end confdefs.h.  */
27747/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27748   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27749#define $ac_func innocuous_$ac_func
27750
27751/* System header to define __stub macros and hopefully few prototypes,
27752    which can conflict with char $ac_func (); below.
27753    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27754    <limits.h> exists even on freestanding compilers.  */
27755
27756#ifdef __STDC__
27757# include <limits.h>
27758#else
27759# include <assert.h>
27760#endif
27761
27762#undef $ac_func
27763
27764/* Override any gcc2 internal prototype to avoid an error.  */
27765#ifdef __cplusplus
27766extern "C"
27767{
27768#endif
27769/* We use char because int might match the return type of a gcc2
27770   builtin and then its argument prototype would still apply.  */
27771char $ac_func ();
27772/* The GNU C library defines this for functions which it implements
27773    to always fail with ENOSYS.  Some functions are actually named
27774    something starting with __ and the normal name is an alias.  */
27775#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27776choke me
27777#else
27778char (*f) () = $ac_func;
27779#endif
27780#ifdef __cplusplus
27781}
27782#endif
27783
27784int
27785main ()
27786{
27787return f != $ac_func;
27788  ;
27789  return 0;
27790}
27791_ACEOF
27792rm -f conftest.$ac_objext conftest$ac_exeext
27793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27794  (eval $ac_link) 2>conftest.er1
27795  ac_status=$?
27796  grep -v '^ *+' conftest.er1 >conftest.err
27797  rm -f conftest.er1
27798  cat conftest.err >&5
27799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800  (exit $ac_status); } &&
27801	 { ac_try='test -z "$ac_c_werror_flag"
27802			 || test ! -s conftest.err'
27803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804  (eval $ac_try) 2>&5
27805  ac_status=$?
27806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807  (exit $ac_status); }; } &&
27808	 { ac_try='test -s conftest$ac_exeext'
27809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810  (eval $ac_try) 2>&5
27811  ac_status=$?
27812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813  (exit $ac_status); }; }; then
27814  eval "$as_ac_var=yes"
27815else
27816  echo "$as_me: failed program was:" >&5
27817sed 's/^/| /' conftest.$ac_ext >&5
27818
27819eval "$as_ac_var=no"
27820fi
27821rm -f conftest.err conftest.$ac_objext \
27822      conftest$ac_exeext conftest.$ac_ext
27823fi
27824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27826if test `eval echo '${'$as_ac_var'}'` = yes; then
27827  cat >>confdefs.h <<_ACEOF
27828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27829_ACEOF
27830
27831fi
27832done
27833
27834fi
27835# res_search
27836eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27837eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27838eval "LIB_res_search=$ac_res"
27839
27840case "$ac_res" in
27841	yes)
27842	eval "ac_cv_func_res_search=yes"
27843	eval "LIB_res_search="
27844	cat >>confdefs.h <<_ACEOF
27845#define $ac_tr_func 1
27846_ACEOF
27847
27848	echo "$as_me:$LINENO: result: yes" >&5
27849echo "${ECHO_T}yes" >&6
27850	;;
27851	no)
27852	eval "ac_cv_func_res_search=no"
27853	eval "LIB_res_search="
27854	echo "$as_me:$LINENO: result: no" >&5
27855echo "${ECHO_T}no" >&6
27856	;;
27857	*)
27858	eval "ac_cv_func_res_search=yes"
27859	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27860	cat >>confdefs.h <<_ACEOF
27861#define $ac_tr_func 1
27862_ACEOF
27863
27864	cat >>confdefs.h <<_ACEOF
27865#define $ac_tr_lib 1
27866_ACEOF
27867
27868	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27869echo "${ECHO_T}yes, in $ac_res" >&6
27870	;;
27871esac
27872
27873
27874if test -n "$LIB_res_search"; then
27875	LIBS="$LIB_res_search $LIBS"
27876fi
27877
27878
27879
27880
27881
27882
27883echo "$as_me:$LINENO: checking for res_nsearch" >&5
27884echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6
27885if test "${ac_cv_funclib_res_nsearch+set}" = set; then
27886  echo $ECHO_N "(cached) $ECHO_C" >&6
27887else
27888
27889if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
27890	ac_save_LIBS="$LIBS"
27891	for ac_lib in "" resolv; do
27892		case "$ac_lib" in
27893		"") ;;
27894		yes) ac_lib="" ;;
27895		no) continue ;;
27896		-l*) ;;
27897		*) ac_lib="-l$ac_lib" ;;
27898		esac
27899		LIBS=" $ac_lib  $ac_save_LIBS"
27900		cat >conftest.$ac_ext <<_ACEOF
27901/* confdefs.h.  */
27902_ACEOF
27903cat confdefs.h >>conftest.$ac_ext
27904cat >>conftest.$ac_ext <<_ACEOF
27905/* end confdefs.h.  */
27906
27907#include <stdio.h>
27908#ifdef HAVE_SYS_TYPES_H
27909#include <sys/types.h>
27910#endif
27911#ifdef HAVE_NETINET_IN_H
27912#include <netinet/in.h>
27913#endif
27914#ifdef HAVE_ARPA_NAMESER_H
27915#include <arpa/nameser.h>
27916#endif
27917#ifdef HAVE_RESOLV_H
27918#include <resolv.h>
27919#endif
27920
27921int
27922main ()
27923{
27924res_nsearch(0,0,0,0,0,0)
27925  ;
27926  return 0;
27927}
27928_ACEOF
27929rm -f conftest.$ac_objext conftest$ac_exeext
27930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27931  (eval $ac_link) 2>conftest.er1
27932  ac_status=$?
27933  grep -v '^ *+' conftest.er1 >conftest.err
27934  rm -f conftest.er1
27935  cat conftest.err >&5
27936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937  (exit $ac_status); } &&
27938	 { ac_try='test -z "$ac_c_werror_flag"
27939			 || test ! -s conftest.err'
27940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27941  (eval $ac_try) 2>&5
27942  ac_status=$?
27943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944  (exit $ac_status); }; } &&
27945	 { ac_try='test -s conftest$ac_exeext'
27946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27947  (eval $ac_try) 2>&5
27948  ac_status=$?
27949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950  (exit $ac_status); }; }; then
27951  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
27952else
27953  echo "$as_me: failed program was:" >&5
27954sed 's/^/| /' conftest.$ac_ext >&5
27955
27956fi
27957rm -f conftest.err conftest.$ac_objext \
27958      conftest$ac_exeext conftest.$ac_ext
27959	done
27960	eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
27961	LIBS="$ac_save_LIBS"
27962fi
27963
27964fi
27965
27966
27967eval "ac_res=\$ac_cv_funclib_res_nsearch"
27968
27969if false; then
27970
27971for ac_func in res_nsearch
27972do
27973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27974echo "$as_me:$LINENO: checking for $ac_func" >&5
27975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27976if eval "test \"\${$as_ac_var+set}\" = set"; then
27977  echo $ECHO_N "(cached) $ECHO_C" >&6
27978else
27979  cat >conftest.$ac_ext <<_ACEOF
27980/* confdefs.h.  */
27981_ACEOF
27982cat confdefs.h >>conftest.$ac_ext
27983cat >>conftest.$ac_ext <<_ACEOF
27984/* end confdefs.h.  */
27985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27986   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27987#define $ac_func innocuous_$ac_func
27988
27989/* System header to define __stub macros and hopefully few prototypes,
27990    which can conflict with char $ac_func (); below.
27991    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27992    <limits.h> exists even on freestanding compilers.  */
27993
27994#ifdef __STDC__
27995# include <limits.h>
27996#else
27997# include <assert.h>
27998#endif
27999
28000#undef $ac_func
28001
28002/* Override any gcc2 internal prototype to avoid an error.  */
28003#ifdef __cplusplus
28004extern "C"
28005{
28006#endif
28007/* We use char because int might match the return type of a gcc2
28008   builtin and then its argument prototype would still apply.  */
28009char $ac_func ();
28010/* The GNU C library defines this for functions which it implements
28011    to always fail with ENOSYS.  Some functions are actually named
28012    something starting with __ and the normal name is an alias.  */
28013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28014choke me
28015#else
28016char (*f) () = $ac_func;
28017#endif
28018#ifdef __cplusplus
28019}
28020#endif
28021
28022int
28023main ()
28024{
28025return f != $ac_func;
28026  ;
28027  return 0;
28028}
28029_ACEOF
28030rm -f conftest.$ac_objext conftest$ac_exeext
28031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28032  (eval $ac_link) 2>conftest.er1
28033  ac_status=$?
28034  grep -v '^ *+' conftest.er1 >conftest.err
28035  rm -f conftest.er1
28036  cat conftest.err >&5
28037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038  (exit $ac_status); } &&
28039	 { ac_try='test -z "$ac_c_werror_flag"
28040			 || test ! -s conftest.err'
28041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28042  (eval $ac_try) 2>&5
28043  ac_status=$?
28044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045  (exit $ac_status); }; } &&
28046	 { ac_try='test -s conftest$ac_exeext'
28047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048  (eval $ac_try) 2>&5
28049  ac_status=$?
28050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051  (exit $ac_status); }; }; then
28052  eval "$as_ac_var=yes"
28053else
28054  echo "$as_me: failed program was:" >&5
28055sed 's/^/| /' conftest.$ac_ext >&5
28056
28057eval "$as_ac_var=no"
28058fi
28059rm -f conftest.err conftest.$ac_objext \
28060      conftest$ac_exeext conftest.$ac_ext
28061fi
28062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28064if test `eval echo '${'$as_ac_var'}'` = yes; then
28065  cat >>confdefs.h <<_ACEOF
28066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28067_ACEOF
28068
28069fi
28070done
28071
28072fi
28073# res_nsearch
28074eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28075eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28076eval "LIB_res_nsearch=$ac_res"
28077
28078case "$ac_res" in
28079	yes)
28080	eval "ac_cv_func_res_nsearch=yes"
28081	eval "LIB_res_nsearch="
28082	cat >>confdefs.h <<_ACEOF
28083#define $ac_tr_func 1
28084_ACEOF
28085
28086	echo "$as_me:$LINENO: result: yes" >&5
28087echo "${ECHO_T}yes" >&6
28088	;;
28089	no)
28090	eval "ac_cv_func_res_nsearch=no"
28091	eval "LIB_res_nsearch="
28092	echo "$as_me:$LINENO: result: no" >&5
28093echo "${ECHO_T}no" >&6
28094	;;
28095	*)
28096	eval "ac_cv_func_res_nsearch=yes"
28097	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28098	cat >>confdefs.h <<_ACEOF
28099#define $ac_tr_func 1
28100_ACEOF
28101
28102	cat >>confdefs.h <<_ACEOF
28103#define $ac_tr_lib 1
28104_ACEOF
28105
28106	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28107echo "${ECHO_T}yes, in $ac_res" >&6
28108	;;
28109esac
28110
28111
28112if test -n "$LIB_res_nsearch"; then
28113	LIBS="$LIB_res_nsearch $LIBS"
28114fi
28115
28116
28117
28118
28119
28120
28121echo "$as_me:$LINENO: checking for dn_expand" >&5
28122echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
28123if test "${ac_cv_funclib_dn_expand+set}" = set; then
28124  echo $ECHO_N "(cached) $ECHO_C" >&6
28125else
28126
28127if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
28128	ac_save_LIBS="$LIBS"
28129	for ac_lib in "" resolv; do
28130		case "$ac_lib" in
28131		"") ;;
28132		yes) ac_lib="" ;;
28133		no) continue ;;
28134		-l*) ;;
28135		*) ac_lib="-l$ac_lib" ;;
28136		esac
28137		LIBS=" $ac_lib  $ac_save_LIBS"
28138		cat >conftest.$ac_ext <<_ACEOF
28139/* confdefs.h.  */
28140_ACEOF
28141cat confdefs.h >>conftest.$ac_ext
28142cat >>conftest.$ac_ext <<_ACEOF
28143/* end confdefs.h.  */
28144
28145#include <stdio.h>
28146#ifdef HAVE_SYS_TYPES_H
28147#include <sys/types.h>
28148#endif
28149#ifdef HAVE_NETINET_IN_H
28150#include <netinet/in.h>
28151#endif
28152#ifdef HAVE_ARPA_NAMESER_H
28153#include <arpa/nameser.h>
28154#endif
28155#ifdef HAVE_RESOLV_H
28156#include <resolv.h>
28157#endif
28158
28159int
28160main ()
28161{
28162dn_expand(0,0,0,0,0)
28163  ;
28164  return 0;
28165}
28166_ACEOF
28167rm -f conftest.$ac_objext conftest$ac_exeext
28168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28169  (eval $ac_link) 2>conftest.er1
28170  ac_status=$?
28171  grep -v '^ *+' conftest.er1 >conftest.err
28172  rm -f conftest.er1
28173  cat conftest.err >&5
28174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175  (exit $ac_status); } &&
28176	 { ac_try='test -z "$ac_c_werror_flag"
28177			 || test ! -s conftest.err'
28178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28179  (eval $ac_try) 2>&5
28180  ac_status=$?
28181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182  (exit $ac_status); }; } &&
28183	 { ac_try='test -s conftest$ac_exeext'
28184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28185  (eval $ac_try) 2>&5
28186  ac_status=$?
28187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188  (exit $ac_status); }; }; then
28189  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
28190else
28191  echo "$as_me: failed program was:" >&5
28192sed 's/^/| /' conftest.$ac_ext >&5
28193
28194fi
28195rm -f conftest.err conftest.$ac_objext \
28196      conftest$ac_exeext conftest.$ac_ext
28197	done
28198	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
28199	LIBS="$ac_save_LIBS"
28200fi
28201
28202fi
28203
28204
28205eval "ac_res=\$ac_cv_funclib_dn_expand"
28206
28207if false; then
28208
28209for ac_func in dn_expand
28210do
28211as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28212echo "$as_me:$LINENO: checking for $ac_func" >&5
28213echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28214if eval "test \"\${$as_ac_var+set}\" = set"; then
28215  echo $ECHO_N "(cached) $ECHO_C" >&6
28216else
28217  cat >conftest.$ac_ext <<_ACEOF
28218/* confdefs.h.  */
28219_ACEOF
28220cat confdefs.h >>conftest.$ac_ext
28221cat >>conftest.$ac_ext <<_ACEOF
28222/* end confdefs.h.  */
28223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28224   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28225#define $ac_func innocuous_$ac_func
28226
28227/* System header to define __stub macros and hopefully few prototypes,
28228    which can conflict with char $ac_func (); below.
28229    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28230    <limits.h> exists even on freestanding compilers.  */
28231
28232#ifdef __STDC__
28233# include <limits.h>
28234#else
28235# include <assert.h>
28236#endif
28237
28238#undef $ac_func
28239
28240/* Override any gcc2 internal prototype to avoid an error.  */
28241#ifdef __cplusplus
28242extern "C"
28243{
28244#endif
28245/* We use char because int might match the return type of a gcc2
28246   builtin and then its argument prototype would still apply.  */
28247char $ac_func ();
28248/* The GNU C library defines this for functions which it implements
28249    to always fail with ENOSYS.  Some functions are actually named
28250    something starting with __ and the normal name is an alias.  */
28251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28252choke me
28253#else
28254char (*f) () = $ac_func;
28255#endif
28256#ifdef __cplusplus
28257}
28258#endif
28259
28260int
28261main ()
28262{
28263return f != $ac_func;
28264  ;
28265  return 0;
28266}
28267_ACEOF
28268rm -f conftest.$ac_objext conftest$ac_exeext
28269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28270  (eval $ac_link) 2>conftest.er1
28271  ac_status=$?
28272  grep -v '^ *+' conftest.er1 >conftest.err
28273  rm -f conftest.er1
28274  cat conftest.err >&5
28275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276  (exit $ac_status); } &&
28277	 { ac_try='test -z "$ac_c_werror_flag"
28278			 || test ! -s conftest.err'
28279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28280  (eval $ac_try) 2>&5
28281  ac_status=$?
28282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283  (exit $ac_status); }; } &&
28284	 { ac_try='test -s conftest$ac_exeext'
28285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286  (eval $ac_try) 2>&5
28287  ac_status=$?
28288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289  (exit $ac_status); }; }; then
28290  eval "$as_ac_var=yes"
28291else
28292  echo "$as_me: failed program was:" >&5
28293sed 's/^/| /' conftest.$ac_ext >&5
28294
28295eval "$as_ac_var=no"
28296fi
28297rm -f conftest.err conftest.$ac_objext \
28298      conftest$ac_exeext conftest.$ac_ext
28299fi
28300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28301echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28302if test `eval echo '${'$as_ac_var'}'` = yes; then
28303  cat >>confdefs.h <<_ACEOF
28304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28305_ACEOF
28306
28307fi
28308done
28309
28310fi
28311# dn_expand
28312eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28313eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28314eval "LIB_dn_expand=$ac_res"
28315
28316case "$ac_res" in
28317	yes)
28318	eval "ac_cv_func_dn_expand=yes"
28319	eval "LIB_dn_expand="
28320	cat >>confdefs.h <<_ACEOF
28321#define $ac_tr_func 1
28322_ACEOF
28323
28324	echo "$as_me:$LINENO: result: yes" >&5
28325echo "${ECHO_T}yes" >&6
28326	;;
28327	no)
28328	eval "ac_cv_func_dn_expand=no"
28329	eval "LIB_dn_expand="
28330	echo "$as_me:$LINENO: result: no" >&5
28331echo "${ECHO_T}no" >&6
28332	;;
28333	*)
28334	eval "ac_cv_func_dn_expand=yes"
28335	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28336	cat >>confdefs.h <<_ACEOF
28337#define $ac_tr_func 1
28338_ACEOF
28339
28340	cat >>confdefs.h <<_ACEOF
28341#define $ac_tr_lib 1
28342_ACEOF
28343
28344	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28345echo "${ECHO_T}yes, in $ac_res" >&6
28346	;;
28347esac
28348
28349
28350if test -n "$LIB_dn_expand"; then
28351	LIBS="$LIB_dn_expand $LIBS"
28352fi
28353
28354
28355
28356echo "$as_me:$LINENO: checking for _res" >&5
28357echo $ECHO_N "checking for _res... $ECHO_C" >&6
28358if test "${ac_cv_var__res+set}" = set; then
28359  echo $ECHO_N "(cached) $ECHO_C" >&6
28360else
28361
28362
28363	cat >conftest.$ac_ext <<_ACEOF
28364/* confdefs.h.  */
28365_ACEOF
28366cat confdefs.h >>conftest.$ac_ext
28367cat >>conftest.$ac_ext <<_ACEOF
28368/* end confdefs.h.  */
28369#include <stdio.h>
28370#ifdef HAVE_SYS_TYPES_H
28371#include <sys/types.h>
28372#endif
28373#ifdef HAVE_NETINET_IN_H
28374#include <netinet/in.h>
28375#endif
28376#ifdef HAVE_ARPA_NAMESER_H
28377#include <arpa/nameser.h>
28378#endif
28379#ifdef HAVE_RESOLV_H
28380#include <resolv.h>
28381#endif
28382	void * foo() { return &_res; }
28383int
28384main ()
28385{
28386foo()
28387  ;
28388  return 0;
28389}
28390_ACEOF
28391rm -f conftest.$ac_objext conftest$ac_exeext
28392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28393  (eval $ac_link) 2>conftest.er1
28394  ac_status=$?
28395  grep -v '^ *+' conftest.er1 >conftest.err
28396  rm -f conftest.er1
28397  cat conftest.err >&5
28398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399  (exit $ac_status); } &&
28400	 { ac_try='test -z "$ac_c_werror_flag"
28401			 || test ! -s conftest.err'
28402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403  (eval $ac_try) 2>&5
28404  ac_status=$?
28405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406  (exit $ac_status); }; } &&
28407	 { ac_try='test -s conftest$ac_exeext'
28408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409  (eval $ac_try) 2>&5
28410  ac_status=$?
28411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412  (exit $ac_status); }; }; then
28413  ac_cv_var__res=yes
28414else
28415  echo "$as_me: failed program was:" >&5
28416sed 's/^/| /' conftest.$ac_ext >&5
28417
28418ac_cv_var__res=no
28419fi
28420rm -f conftest.err conftest.$ac_objext \
28421      conftest$ac_exeext conftest.$ac_ext
28422if test "$ac_cv_var__res" != yes ; then
28423cat >conftest.$ac_ext <<_ACEOF
28424/* confdefs.h.  */
28425_ACEOF
28426cat confdefs.h >>conftest.$ac_ext
28427cat >>conftest.$ac_ext <<_ACEOF
28428/* end confdefs.h.  */
28429extern int _res;
28430int foo() { return _res; }
28431int
28432main ()
28433{
28434foo()
28435  ;
28436  return 0;
28437}
28438_ACEOF
28439rm -f conftest.$ac_objext conftest$ac_exeext
28440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28441  (eval $ac_link) 2>conftest.er1
28442  ac_status=$?
28443  grep -v '^ *+' conftest.er1 >conftest.err
28444  rm -f conftest.er1
28445  cat conftest.err >&5
28446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447  (exit $ac_status); } &&
28448	 { ac_try='test -z "$ac_c_werror_flag"
28449			 || test ! -s conftest.err'
28450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451  (eval $ac_try) 2>&5
28452  ac_status=$?
28453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454  (exit $ac_status); }; } &&
28455	 { ac_try='test -s conftest$ac_exeext'
28456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457  (eval $ac_try) 2>&5
28458  ac_status=$?
28459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460  (exit $ac_status); }; }; then
28461  ac_cv_var__res=yes
28462else
28463  echo "$as_me: failed program was:" >&5
28464sed 's/^/| /' conftest.$ac_ext >&5
28465
28466ac_cv_var__res=no
28467fi
28468rm -f conftest.err conftest.$ac_objext \
28469      conftest$ac_exeext conftest.$ac_ext
28470fi
28471
28472fi
28473
28474ac_foo=`eval echo \\$ac_cv_var__res`
28475echo "$as_me:$LINENO: result: $ac_foo" >&5
28476echo "${ECHO_T}$ac_foo" >&6
28477if test "$ac_foo" = yes; then
28478
28479cat >>confdefs.h <<_ACEOF
28480#define HAVE__RES 1
28481_ACEOF
28482
28483
28484echo "$as_me:$LINENO: checking if _res is properly declared" >&5
28485echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
28486if test "${ac_cv_var__res_declaration+set}" = set; then
28487  echo $ECHO_N "(cached) $ECHO_C" >&6
28488else
28489
28490cat >conftest.$ac_ext <<_ACEOF
28491/* confdefs.h.  */
28492_ACEOF
28493cat confdefs.h >>conftest.$ac_ext
28494cat >>conftest.$ac_ext <<_ACEOF
28495/* end confdefs.h.  */
28496#include <stdio.h>
28497#ifdef HAVE_SYS_TYPES_H
28498#include <sys/types.h>
28499#endif
28500#ifdef HAVE_NETINET_IN_H
28501#include <netinet/in.h>
28502#endif
28503#ifdef HAVE_ARPA_NAMESER_H
28504#include <arpa/nameser.h>
28505#endif
28506#ifdef HAVE_RESOLV_H
28507#include <resolv.h>
28508#endif
28509extern struct { int foo; } _res;
28510int
28511main ()
28512{
28513_res.foo = 1;
28514  ;
28515  return 0;
28516}
28517_ACEOF
28518rm -f conftest.$ac_objext
28519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28520  (eval $ac_compile) 2>conftest.er1
28521  ac_status=$?
28522  grep -v '^ *+' conftest.er1 >conftest.err
28523  rm -f conftest.er1
28524  cat conftest.err >&5
28525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526  (exit $ac_status); } &&
28527	 { ac_try='test -z "$ac_c_werror_flag"
28528			 || test ! -s conftest.err'
28529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530  (eval $ac_try) 2>&5
28531  ac_status=$?
28532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533  (exit $ac_status); }; } &&
28534	 { ac_try='test -s conftest.$ac_objext'
28535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536  (eval $ac_try) 2>&5
28537  ac_status=$?
28538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539  (exit $ac_status); }; }; then
28540  eval "ac_cv_var__res_declaration=no"
28541else
28542  echo "$as_me: failed program was:" >&5
28543sed 's/^/| /' conftest.$ac_ext >&5
28544
28545eval "ac_cv_var__res_declaration=yes"
28546fi
28547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28548
28549fi
28550
28551
28552
28553
28554echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
28555echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
28556if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then
28557
28558cat >>confdefs.h <<\_ACEOF
28559#define HAVE__RES_DECLARATION 1
28560_ACEOF
28561
28562fi
28563
28564
28565fi
28566
28567
28568
28569
28570echo "$as_me:$LINENO: checking for working snprintf" >&5
28571echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
28572if test "${ac_cv_func_snprintf_working+set}" = set; then
28573  echo $ECHO_N "(cached) $ECHO_C" >&6
28574else
28575  ac_cv_func_snprintf_working=yes
28576if test "$cross_compiling" = yes; then
28577  :
28578else
28579  cat >conftest.$ac_ext <<_ACEOF
28580/* confdefs.h.  */
28581_ACEOF
28582cat confdefs.h >>conftest.$ac_ext
28583cat >>conftest.$ac_ext <<_ACEOF
28584/* end confdefs.h.  */
28585
28586#include <stdio.h>
28587#include <string.h>
28588int main()
28589{
28590	char foo[3];
28591	snprintf(foo, 2, "12");
28592	return strcmp(foo, "1");
28593}
28594_ACEOF
28595rm -f conftest$ac_exeext
28596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28597  (eval $ac_link) 2>&5
28598  ac_status=$?
28599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28602  (eval $ac_try) 2>&5
28603  ac_status=$?
28604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605  (exit $ac_status); }; }; then
28606  :
28607else
28608  echo "$as_me: program exited with status $ac_status" >&5
28609echo "$as_me: failed program was:" >&5
28610sed 's/^/| /' conftest.$ac_ext >&5
28611
28612( exit $ac_status )
28613ac_cv_func_snprintf_working=no
28614fi
28615rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28616fi
28617fi
28618echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
28619echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
28620
28621if test "$ac_cv_func_snprintf_working" = yes; then
28622
28623cat >>confdefs.h <<_ACEOF
28624#define HAVE_SNPRINTF 1
28625_ACEOF
28626
28627fi
28628if test "$ac_cv_func_snprintf_working" = yes; then
28629
28630if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
28631echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
28632echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
28633if test "${ac_cv_func_snprintf_noproto+set}" = set; then
28634  echo $ECHO_N "(cached) $ECHO_C" >&6
28635else
28636  cat >conftest.$ac_ext <<_ACEOF
28637/* confdefs.h.  */
28638_ACEOF
28639cat confdefs.h >>conftest.$ac_ext
28640cat >>conftest.$ac_ext <<_ACEOF
28641/* end confdefs.h.  */
28642#include <stdio.h>
28643int
28644main ()
28645{
28646struct foo { int foo; } xx;
28647extern int snprintf (struct foo*);
28648snprintf(&xx);
28649
28650  ;
28651  return 0;
28652}
28653_ACEOF
28654rm -f conftest.$ac_objext
28655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28656  (eval $ac_compile) 2>conftest.er1
28657  ac_status=$?
28658  grep -v '^ *+' conftest.er1 >conftest.err
28659  rm -f conftest.er1
28660  cat conftest.err >&5
28661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662  (exit $ac_status); } &&
28663	 { ac_try='test -z "$ac_c_werror_flag"
28664			 || test ! -s conftest.err'
28665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666  (eval $ac_try) 2>&5
28667  ac_status=$?
28668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669  (exit $ac_status); }; } &&
28670	 { ac_try='test -s conftest.$ac_objext'
28671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672  (eval $ac_try) 2>&5
28673  ac_status=$?
28674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675  (exit $ac_status); }; }; then
28676  eval "ac_cv_func_snprintf_noproto=yes"
28677else
28678  echo "$as_me: failed program was:" >&5
28679sed 's/^/| /' conftest.$ac_ext >&5
28680
28681eval "ac_cv_func_snprintf_noproto=no"
28682fi
28683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28684fi
28685echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
28686echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
28687if test "$ac_cv_func_snprintf_noproto" = yes; then
28688
28689cat >>confdefs.h <<\_ACEOF
28690#define NEED_SNPRINTF_PROTO 1
28691_ACEOF
28692
28693fi
28694fi
28695
28696fi
28697
28698
28699echo "$as_me:$LINENO: checking for working vsnprintf" >&5
28700echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
28701if test "${ac_cv_func_vsnprintf_working+set}" = set; then
28702  echo $ECHO_N "(cached) $ECHO_C" >&6
28703else
28704  ac_cv_func_vsnprintf_working=yes
28705if test "$cross_compiling" = yes; then
28706  :
28707else
28708  cat >conftest.$ac_ext <<_ACEOF
28709/* confdefs.h.  */
28710_ACEOF
28711cat confdefs.h >>conftest.$ac_ext
28712cat >>conftest.$ac_ext <<_ACEOF
28713/* end confdefs.h.  */
28714
28715#include <stdio.h>
28716#include <string.h>
28717#include <stdarg.h>
28718
28719int foo(int num, ...)
28720{
28721	char bar[3];
28722	va_list arg;
28723	va_start(arg, num);
28724	vsnprintf(bar, 2, "%s", arg);
28725	va_end(arg);
28726	return strcmp(bar, "1");
28727}
28728
28729
28730int main()
28731{
28732	return foo(0, "12");
28733}
28734_ACEOF
28735rm -f conftest$ac_exeext
28736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28737  (eval $ac_link) 2>&5
28738  ac_status=$?
28739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742  (eval $ac_try) 2>&5
28743  ac_status=$?
28744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745  (exit $ac_status); }; }; then
28746  :
28747else
28748  echo "$as_me: program exited with status $ac_status" >&5
28749echo "$as_me: failed program was:" >&5
28750sed 's/^/| /' conftest.$ac_ext >&5
28751
28752( exit $ac_status )
28753ac_cv_func_vsnprintf_working=no
28754fi
28755rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28756fi
28757fi
28758echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
28759echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
28760
28761if test "$ac_cv_func_vsnprintf_working" = yes; then
28762
28763cat >>confdefs.h <<_ACEOF
28764#define HAVE_VSNPRINTF 1
28765_ACEOF
28766
28767fi
28768if test "$ac_cv_func_vsnprintf_working" = yes; then
28769
28770if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
28771echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
28772echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
28773if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
28774  echo $ECHO_N "(cached) $ECHO_C" >&6
28775else
28776  cat >conftest.$ac_ext <<_ACEOF
28777/* confdefs.h.  */
28778_ACEOF
28779cat confdefs.h >>conftest.$ac_ext
28780cat >>conftest.$ac_ext <<_ACEOF
28781/* end confdefs.h.  */
28782#include <stdio.h>
28783int
28784main ()
28785{
28786struct foo { int foo; } xx;
28787extern int vsnprintf (struct foo*);
28788vsnprintf(&xx);
28789
28790  ;
28791  return 0;
28792}
28793_ACEOF
28794rm -f conftest.$ac_objext
28795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28796  (eval $ac_compile) 2>conftest.er1
28797  ac_status=$?
28798  grep -v '^ *+' conftest.er1 >conftest.err
28799  rm -f conftest.er1
28800  cat conftest.err >&5
28801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802  (exit $ac_status); } &&
28803	 { ac_try='test -z "$ac_c_werror_flag"
28804			 || test ! -s conftest.err'
28805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806  (eval $ac_try) 2>&5
28807  ac_status=$?
28808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809  (exit $ac_status); }; } &&
28810	 { ac_try='test -s conftest.$ac_objext'
28811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28812  (eval $ac_try) 2>&5
28813  ac_status=$?
28814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815  (exit $ac_status); }; }; then
28816  eval "ac_cv_func_vsnprintf_noproto=yes"
28817else
28818  echo "$as_me: failed program was:" >&5
28819sed 's/^/| /' conftest.$ac_ext >&5
28820
28821eval "ac_cv_func_vsnprintf_noproto=no"
28822fi
28823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28824fi
28825echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
28826echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
28827if test "$ac_cv_func_vsnprintf_noproto" = yes; then
28828
28829cat >>confdefs.h <<\_ACEOF
28830#define NEED_VSNPRINTF_PROTO 1
28831_ACEOF
28832
28833fi
28834fi
28835
28836fi
28837
28838
28839
28840echo "$as_me:$LINENO: checking for working glob" >&5
28841echo $ECHO_N "checking for working glob... $ECHO_C" >&6
28842if test "${ac_cv_func_glob_working+set}" = set; then
28843  echo $ECHO_N "(cached) $ECHO_C" >&6
28844else
28845  ac_cv_func_glob_working=yes
28846cat >conftest.$ac_ext <<_ACEOF
28847/* confdefs.h.  */
28848_ACEOF
28849cat confdefs.h >>conftest.$ac_ext
28850cat >>conftest.$ac_ext <<_ACEOF
28851/* end confdefs.h.  */
28852
28853#include <stdio.h>
28854#include <glob.h>
28855int
28856main ()
28857{
28858
28859glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
28860#ifdef GLOB_MAXPATH
28861GLOB_MAXPATH
28862#else
28863GLOB_LIMIT
28864#endif
28865,
28866NULL, NULL);
28867
28868  ;
28869  return 0;
28870}
28871_ACEOF
28872rm -f conftest.$ac_objext conftest$ac_exeext
28873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28874  (eval $ac_link) 2>conftest.er1
28875  ac_status=$?
28876  grep -v '^ *+' conftest.er1 >conftest.err
28877  rm -f conftest.er1
28878  cat conftest.err >&5
28879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880  (exit $ac_status); } &&
28881	 { ac_try='test -z "$ac_c_werror_flag"
28882			 || test ! -s conftest.err'
28883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884  (eval $ac_try) 2>&5
28885  ac_status=$?
28886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887  (exit $ac_status); }; } &&
28888	 { ac_try='test -s conftest$ac_exeext'
28889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890  (eval $ac_try) 2>&5
28891  ac_status=$?
28892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893  (exit $ac_status); }; }; then
28894  :
28895else
28896  echo "$as_me: failed program was:" >&5
28897sed 's/^/| /' conftest.$ac_ext >&5
28898
28899ac_cv_func_glob_working=no
28900fi
28901rm -f conftest.err conftest.$ac_objext \
28902      conftest$ac_exeext conftest.$ac_ext
28903fi
28904echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
28905echo "${ECHO_T}$ac_cv_func_glob_working" >&6
28906
28907if test "$ac_cv_func_glob_working" = yes; then
28908
28909cat >>confdefs.h <<\_ACEOF
28910#define HAVE_GLOB 1
28911_ACEOF
28912
28913fi
28914if test "$ac_cv_func_glob_working" = yes; then
28915
28916if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
28917echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
28918echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
28919if test "${ac_cv_func_glob_noproto+set}" = set; then
28920  echo $ECHO_N "(cached) $ECHO_C" >&6
28921else
28922  cat >conftest.$ac_ext <<_ACEOF
28923/* confdefs.h.  */
28924_ACEOF
28925cat confdefs.h >>conftest.$ac_ext
28926cat >>conftest.$ac_ext <<_ACEOF
28927/* end confdefs.h.  */
28928#include <stdio.h>
28929#include <glob.h>
28930int
28931main ()
28932{
28933struct foo { int foo; } xx;
28934extern int glob (struct foo*);
28935glob(&xx);
28936
28937  ;
28938  return 0;
28939}
28940_ACEOF
28941rm -f conftest.$ac_objext
28942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28943  (eval $ac_compile) 2>conftest.er1
28944  ac_status=$?
28945  grep -v '^ *+' conftest.er1 >conftest.err
28946  rm -f conftest.er1
28947  cat conftest.err >&5
28948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949  (exit $ac_status); } &&
28950	 { ac_try='test -z "$ac_c_werror_flag"
28951			 || test ! -s conftest.err'
28952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28953  (eval $ac_try) 2>&5
28954  ac_status=$?
28955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956  (exit $ac_status); }; } &&
28957	 { ac_try='test -s conftest.$ac_objext'
28958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959  (eval $ac_try) 2>&5
28960  ac_status=$?
28961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962  (exit $ac_status); }; }; then
28963  eval "ac_cv_func_glob_noproto=yes"
28964else
28965  echo "$as_me: failed program was:" >&5
28966sed 's/^/| /' conftest.$ac_ext >&5
28967
28968eval "ac_cv_func_glob_noproto=no"
28969fi
28970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28971fi
28972echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
28973echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
28974if test "$ac_cv_func_glob_noproto" = yes; then
28975
28976cat >>confdefs.h <<\_ACEOF
28977#define NEED_GLOB_PROTO 1
28978_ACEOF
28979
28980fi
28981fi
28982
28983fi
28984
28985if test "$ac_cv_func_glob_working" != yes; then
28986	case $LIBOBJS in
28987    "glob.$ac_objext"   | \
28988  *" glob.$ac_objext"   | \
28989    "glob.$ac_objext "* | \
28990  *" glob.$ac_objext "* ) ;;
28991  *) LIBOBJS="$LIBOBJS glob.$ac_objext" ;;
28992esac
28993
28994fi
28995
28996
28997if test "$ac_cv_func_glob_working" = yes; then
28998  have_glob_h_TRUE=
28999  have_glob_h_FALSE='#'
29000else
29001  have_glob_h_TRUE='#'
29002  have_glob_h_FALSE=
29003fi
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033for ac_func in 				\
29034	asnprintf				\
29035	asprintf				\
29036	atexit					\
29037	cgetent					\
29038	getconfattr				\
29039	getprogname				\
29040	getrlimit				\
29041	getspnam				\
29042	initstate				\
29043	issetugid				\
29044	on_exit					\
29045	random					\
29046	setprogname				\
29047	setstate				\
29048	strsvis					\
29049	strunvis				\
29050	strvis					\
29051	strvisx					\
29052	svis					\
29053	sysconf					\
29054	sysctl					\
29055	uname					\
29056	unvis					\
29057	vasnprintf				\
29058	vasprintf				\
29059	vis					\
29060
29061do
29062as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29063echo "$as_me:$LINENO: checking for $ac_func" >&5
29064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29065if eval "test \"\${$as_ac_var+set}\" = set"; then
29066  echo $ECHO_N "(cached) $ECHO_C" >&6
29067else
29068  cat >conftest.$ac_ext <<_ACEOF
29069/* confdefs.h.  */
29070_ACEOF
29071cat confdefs.h >>conftest.$ac_ext
29072cat >>conftest.$ac_ext <<_ACEOF
29073/* end confdefs.h.  */
29074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29075   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29076#define $ac_func innocuous_$ac_func
29077
29078/* System header to define __stub macros and hopefully few prototypes,
29079    which can conflict with char $ac_func (); below.
29080    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29081    <limits.h> exists even on freestanding compilers.  */
29082
29083#ifdef __STDC__
29084# include <limits.h>
29085#else
29086# include <assert.h>
29087#endif
29088
29089#undef $ac_func
29090
29091/* Override any gcc2 internal prototype to avoid an error.  */
29092#ifdef __cplusplus
29093extern "C"
29094{
29095#endif
29096/* We use char because int might match the return type of a gcc2
29097   builtin and then its argument prototype would still apply.  */
29098char $ac_func ();
29099/* The GNU C library defines this for functions which it implements
29100    to always fail with ENOSYS.  Some functions are actually named
29101    something starting with __ and the normal name is an alias.  */
29102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29103choke me
29104#else
29105char (*f) () = $ac_func;
29106#endif
29107#ifdef __cplusplus
29108}
29109#endif
29110
29111int
29112main ()
29113{
29114return f != $ac_func;
29115  ;
29116  return 0;
29117}
29118_ACEOF
29119rm -f conftest.$ac_objext conftest$ac_exeext
29120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29121  (eval $ac_link) 2>conftest.er1
29122  ac_status=$?
29123  grep -v '^ *+' conftest.er1 >conftest.err
29124  rm -f conftest.er1
29125  cat conftest.err >&5
29126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127  (exit $ac_status); } &&
29128	 { ac_try='test -z "$ac_c_werror_flag"
29129			 || test ! -s conftest.err'
29130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29131  (eval $ac_try) 2>&5
29132  ac_status=$?
29133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134  (exit $ac_status); }; } &&
29135	 { ac_try='test -s conftest$ac_exeext'
29136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29137  (eval $ac_try) 2>&5
29138  ac_status=$?
29139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140  (exit $ac_status); }; }; then
29141  eval "$as_ac_var=yes"
29142else
29143  echo "$as_me: failed program was:" >&5
29144sed 's/^/| /' conftest.$ac_ext >&5
29145
29146eval "$as_ac_var=no"
29147fi
29148rm -f conftest.err conftest.$ac_objext \
29149      conftest$ac_exeext conftest.$ac_ext
29150fi
29151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29152echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29153if test `eval echo '${'$as_ac_var'}'` = yes; then
29154  cat >>confdefs.h <<_ACEOF
29155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29156_ACEOF
29157
29158fi
29159done
29160
29161
29162if test "$ac_cv_func_cgetent" = no; then
29163	case $LIBOBJS in
29164    "getcap.$ac_objext"   | \
29165  *" getcap.$ac_objext"   | \
29166    "getcap.$ac_objext "* | \
29167  *" getcap.$ac_objext "* ) ;;
29168  *) LIBOBJS="$LIBOBJS getcap.$ac_objext" ;;
29169esac
29170
29171fi
29172
29173
29174
29175
29176
29177
29178
29179
29180echo "$as_me:$LINENO: checking for getsockopt" >&5
29181echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
29182if test "${ac_cv_funclib_getsockopt+set}" = set; then
29183  echo $ECHO_N "(cached) $ECHO_C" >&6
29184else
29185
29186if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
29187	ac_save_LIBS="$LIBS"
29188	for ac_lib in "" ; do
29189		case "$ac_lib" in
29190		"") ;;
29191		yes) ac_lib="" ;;
29192		no) continue ;;
29193		-l*) ;;
29194		*) ac_lib="-l$ac_lib" ;;
29195		esac
29196		LIBS=" $ac_lib  $ac_save_LIBS"
29197		cat >conftest.$ac_ext <<_ACEOF
29198/* confdefs.h.  */
29199_ACEOF
29200cat confdefs.h >>conftest.$ac_ext
29201cat >>conftest.$ac_ext <<_ACEOF
29202/* end confdefs.h.  */
29203#ifdef HAVE_SYS_TYPES_H
29204#include <sys/types.h>
29205#endif
29206#ifdef HAVE_SYS_SOCKET_H
29207#include <sys/socket.h>
29208#endif
29209int
29210main ()
29211{
29212getsockopt(0,0,0,0,0)
29213  ;
29214  return 0;
29215}
29216_ACEOF
29217rm -f conftest.$ac_objext conftest$ac_exeext
29218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29219  (eval $ac_link) 2>conftest.er1
29220  ac_status=$?
29221  grep -v '^ *+' conftest.er1 >conftest.err
29222  rm -f conftest.er1
29223  cat conftest.err >&5
29224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225  (exit $ac_status); } &&
29226	 { ac_try='test -z "$ac_c_werror_flag"
29227			 || test ! -s conftest.err'
29228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229  (eval $ac_try) 2>&5
29230  ac_status=$?
29231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232  (exit $ac_status); }; } &&
29233	 { ac_try='test -s conftest$ac_exeext'
29234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29235  (eval $ac_try) 2>&5
29236  ac_status=$?
29237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238  (exit $ac_status); }; }; then
29239  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
29240else
29241  echo "$as_me: failed program was:" >&5
29242sed 's/^/| /' conftest.$ac_ext >&5
29243
29244fi
29245rm -f conftest.err conftest.$ac_objext \
29246      conftest$ac_exeext conftest.$ac_ext
29247	done
29248	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
29249	LIBS="$ac_save_LIBS"
29250fi
29251
29252fi
29253
29254
29255eval "ac_res=\$ac_cv_funclib_getsockopt"
29256
29257if false; then
29258
29259for ac_func in getsockopt
29260do
29261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29262echo "$as_me:$LINENO: checking for $ac_func" >&5
29263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29264if eval "test \"\${$as_ac_var+set}\" = set"; then
29265  echo $ECHO_N "(cached) $ECHO_C" >&6
29266else
29267  cat >conftest.$ac_ext <<_ACEOF
29268/* confdefs.h.  */
29269_ACEOF
29270cat confdefs.h >>conftest.$ac_ext
29271cat >>conftest.$ac_ext <<_ACEOF
29272/* end confdefs.h.  */
29273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29274   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29275#define $ac_func innocuous_$ac_func
29276
29277/* System header to define __stub macros and hopefully few prototypes,
29278    which can conflict with char $ac_func (); below.
29279    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29280    <limits.h> exists even on freestanding compilers.  */
29281
29282#ifdef __STDC__
29283# include <limits.h>
29284#else
29285# include <assert.h>
29286#endif
29287
29288#undef $ac_func
29289
29290/* Override any gcc2 internal prototype to avoid an error.  */
29291#ifdef __cplusplus
29292extern "C"
29293{
29294#endif
29295/* We use char because int might match the return type of a gcc2
29296   builtin and then its argument prototype would still apply.  */
29297char $ac_func ();
29298/* The GNU C library defines this for functions which it implements
29299    to always fail with ENOSYS.  Some functions are actually named
29300    something starting with __ and the normal name is an alias.  */
29301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29302choke me
29303#else
29304char (*f) () = $ac_func;
29305#endif
29306#ifdef __cplusplus
29307}
29308#endif
29309
29310int
29311main ()
29312{
29313return f != $ac_func;
29314  ;
29315  return 0;
29316}
29317_ACEOF
29318rm -f conftest.$ac_objext conftest$ac_exeext
29319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29320  (eval $ac_link) 2>conftest.er1
29321  ac_status=$?
29322  grep -v '^ *+' conftest.er1 >conftest.err
29323  rm -f conftest.er1
29324  cat conftest.err >&5
29325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326  (exit $ac_status); } &&
29327	 { ac_try='test -z "$ac_c_werror_flag"
29328			 || test ! -s conftest.err'
29329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330  (eval $ac_try) 2>&5
29331  ac_status=$?
29332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333  (exit $ac_status); }; } &&
29334	 { ac_try='test -s conftest$ac_exeext'
29335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336  (eval $ac_try) 2>&5
29337  ac_status=$?
29338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339  (exit $ac_status); }; }; then
29340  eval "$as_ac_var=yes"
29341else
29342  echo "$as_me: failed program was:" >&5
29343sed 's/^/| /' conftest.$ac_ext >&5
29344
29345eval "$as_ac_var=no"
29346fi
29347rm -f conftest.err conftest.$ac_objext \
29348      conftest$ac_exeext conftest.$ac_ext
29349fi
29350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29351echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29352if test `eval echo '${'$as_ac_var'}'` = yes; then
29353  cat >>confdefs.h <<_ACEOF
29354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29355_ACEOF
29356
29357fi
29358done
29359
29360fi
29361# getsockopt
29362eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29363eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29364eval "LIB_getsockopt=$ac_res"
29365
29366case "$ac_res" in
29367	yes)
29368	eval "ac_cv_func_getsockopt=yes"
29369	eval "LIB_getsockopt="
29370	cat >>confdefs.h <<_ACEOF
29371#define $ac_tr_func 1
29372_ACEOF
29373
29374	echo "$as_me:$LINENO: result: yes" >&5
29375echo "${ECHO_T}yes" >&6
29376	;;
29377	no)
29378	eval "ac_cv_func_getsockopt=no"
29379	eval "LIB_getsockopt="
29380	echo "$as_me:$LINENO: result: no" >&5
29381echo "${ECHO_T}no" >&6
29382	;;
29383	*)
29384	eval "ac_cv_func_getsockopt=yes"
29385	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29386	cat >>confdefs.h <<_ACEOF
29387#define $ac_tr_func 1
29388_ACEOF
29389
29390	cat >>confdefs.h <<_ACEOF
29391#define $ac_tr_lib 1
29392_ACEOF
29393
29394	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29395echo "${ECHO_T}yes, in $ac_res" >&6
29396	;;
29397esac
29398
29399
29400
29401
29402
29403echo "$as_me:$LINENO: checking for setsockopt" >&5
29404echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
29405if test "${ac_cv_funclib_setsockopt+set}" = set; then
29406  echo $ECHO_N "(cached) $ECHO_C" >&6
29407else
29408
29409if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
29410	ac_save_LIBS="$LIBS"
29411	for ac_lib in "" ; do
29412		case "$ac_lib" in
29413		"") ;;
29414		yes) ac_lib="" ;;
29415		no) continue ;;
29416		-l*) ;;
29417		*) ac_lib="-l$ac_lib" ;;
29418		esac
29419		LIBS=" $ac_lib  $ac_save_LIBS"
29420		cat >conftest.$ac_ext <<_ACEOF
29421/* confdefs.h.  */
29422_ACEOF
29423cat confdefs.h >>conftest.$ac_ext
29424cat >>conftest.$ac_ext <<_ACEOF
29425/* end confdefs.h.  */
29426#ifdef HAVE_SYS_TYPES_H
29427#include <sys/types.h>
29428#endif
29429#ifdef HAVE_SYS_SOCKET_H
29430#include <sys/socket.h>
29431#endif
29432int
29433main ()
29434{
29435setsockopt(0,0,0,0,0)
29436  ;
29437  return 0;
29438}
29439_ACEOF
29440rm -f conftest.$ac_objext conftest$ac_exeext
29441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29442  (eval $ac_link) 2>conftest.er1
29443  ac_status=$?
29444  grep -v '^ *+' conftest.er1 >conftest.err
29445  rm -f conftest.er1
29446  cat conftest.err >&5
29447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448  (exit $ac_status); } &&
29449	 { ac_try='test -z "$ac_c_werror_flag"
29450			 || test ! -s conftest.err'
29451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29452  (eval $ac_try) 2>&5
29453  ac_status=$?
29454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455  (exit $ac_status); }; } &&
29456	 { ac_try='test -s conftest$ac_exeext'
29457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29458  (eval $ac_try) 2>&5
29459  ac_status=$?
29460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461  (exit $ac_status); }; }; then
29462  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
29463else
29464  echo "$as_me: failed program was:" >&5
29465sed 's/^/| /' conftest.$ac_ext >&5
29466
29467fi
29468rm -f conftest.err conftest.$ac_objext \
29469      conftest$ac_exeext conftest.$ac_ext
29470	done
29471	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
29472	LIBS="$ac_save_LIBS"
29473fi
29474
29475fi
29476
29477
29478eval "ac_res=\$ac_cv_funclib_setsockopt"
29479
29480if false; then
29481
29482for ac_func in setsockopt
29483do
29484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29485echo "$as_me:$LINENO: checking for $ac_func" >&5
29486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29487if eval "test \"\${$as_ac_var+set}\" = set"; then
29488  echo $ECHO_N "(cached) $ECHO_C" >&6
29489else
29490  cat >conftest.$ac_ext <<_ACEOF
29491/* confdefs.h.  */
29492_ACEOF
29493cat confdefs.h >>conftest.$ac_ext
29494cat >>conftest.$ac_ext <<_ACEOF
29495/* end confdefs.h.  */
29496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29497   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29498#define $ac_func innocuous_$ac_func
29499
29500/* System header to define __stub macros and hopefully few prototypes,
29501    which can conflict with char $ac_func (); below.
29502    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29503    <limits.h> exists even on freestanding compilers.  */
29504
29505#ifdef __STDC__
29506# include <limits.h>
29507#else
29508# include <assert.h>
29509#endif
29510
29511#undef $ac_func
29512
29513/* Override any gcc2 internal prototype to avoid an error.  */
29514#ifdef __cplusplus
29515extern "C"
29516{
29517#endif
29518/* We use char because int might match the return type of a gcc2
29519   builtin and then its argument prototype would still apply.  */
29520char $ac_func ();
29521/* The GNU C library defines this for functions which it implements
29522    to always fail with ENOSYS.  Some functions are actually named
29523    something starting with __ and the normal name is an alias.  */
29524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29525choke me
29526#else
29527char (*f) () = $ac_func;
29528#endif
29529#ifdef __cplusplus
29530}
29531#endif
29532
29533int
29534main ()
29535{
29536return f != $ac_func;
29537  ;
29538  return 0;
29539}
29540_ACEOF
29541rm -f conftest.$ac_objext conftest$ac_exeext
29542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29543  (eval $ac_link) 2>conftest.er1
29544  ac_status=$?
29545  grep -v '^ *+' conftest.er1 >conftest.err
29546  rm -f conftest.er1
29547  cat conftest.err >&5
29548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549  (exit $ac_status); } &&
29550	 { ac_try='test -z "$ac_c_werror_flag"
29551			 || test ! -s conftest.err'
29552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29553  (eval $ac_try) 2>&5
29554  ac_status=$?
29555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556  (exit $ac_status); }; } &&
29557	 { ac_try='test -s conftest$ac_exeext'
29558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559  (eval $ac_try) 2>&5
29560  ac_status=$?
29561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562  (exit $ac_status); }; }; then
29563  eval "$as_ac_var=yes"
29564else
29565  echo "$as_me: failed program was:" >&5
29566sed 's/^/| /' conftest.$ac_ext >&5
29567
29568eval "$as_ac_var=no"
29569fi
29570rm -f conftest.err conftest.$ac_objext \
29571      conftest$ac_exeext conftest.$ac_ext
29572fi
29573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29574echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29575if test `eval echo '${'$as_ac_var'}'` = yes; then
29576  cat >>confdefs.h <<_ACEOF
29577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29578_ACEOF
29579
29580fi
29581done
29582
29583fi
29584# setsockopt
29585eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29586eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29587eval "LIB_setsockopt=$ac_res"
29588
29589case "$ac_res" in
29590	yes)
29591	eval "ac_cv_func_setsockopt=yes"
29592	eval "LIB_setsockopt="
29593	cat >>confdefs.h <<_ACEOF
29594#define $ac_tr_func 1
29595_ACEOF
29596
29597	echo "$as_me:$LINENO: result: yes" >&5
29598echo "${ECHO_T}yes" >&6
29599	;;
29600	no)
29601	eval "ac_cv_func_setsockopt=no"
29602	eval "LIB_setsockopt="
29603	echo "$as_me:$LINENO: result: no" >&5
29604echo "${ECHO_T}no" >&6
29605	;;
29606	*)
29607	eval "ac_cv_func_setsockopt=yes"
29608	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29609	cat >>confdefs.h <<_ACEOF
29610#define $ac_tr_func 1
29611_ACEOF
29612
29613	cat >>confdefs.h <<_ACEOF
29614#define $ac_tr_lib 1
29615_ACEOF
29616
29617	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29618echo "${ECHO_T}yes, in $ac_res" >&6
29619	;;
29620esac
29621
29622
29623
29624
29625
29626
29627
29628echo "$as_me:$LINENO: checking for hstrerror" >&5
29629echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
29630if test "${ac_cv_funclib_hstrerror+set}" = set; then
29631  echo $ECHO_N "(cached) $ECHO_C" >&6
29632else
29633
29634if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
29635	ac_save_LIBS="$LIBS"
29636	for ac_lib in "" resolv; do
29637		case "$ac_lib" in
29638		"") ;;
29639		yes) ac_lib="" ;;
29640		no) continue ;;
29641		-l*) ;;
29642		*) ac_lib="-l$ac_lib" ;;
29643		esac
29644		LIBS=" $ac_lib  $ac_save_LIBS"
29645		cat >conftest.$ac_ext <<_ACEOF
29646/* confdefs.h.  */
29647_ACEOF
29648cat confdefs.h >>conftest.$ac_ext
29649cat >>conftest.$ac_ext <<_ACEOF
29650/* end confdefs.h.  */
29651#ifdef HAVE_NETDB_H
29652#include <netdb.h>
29653#endif
29654int
29655main ()
29656{
29657hstrerror(17)
29658  ;
29659  return 0;
29660}
29661_ACEOF
29662rm -f conftest.$ac_objext conftest$ac_exeext
29663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29664  (eval $ac_link) 2>conftest.er1
29665  ac_status=$?
29666  grep -v '^ *+' conftest.er1 >conftest.err
29667  rm -f conftest.er1
29668  cat conftest.err >&5
29669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670  (exit $ac_status); } &&
29671	 { ac_try='test -z "$ac_c_werror_flag"
29672			 || test ! -s conftest.err'
29673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29674  (eval $ac_try) 2>&5
29675  ac_status=$?
29676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677  (exit $ac_status); }; } &&
29678	 { ac_try='test -s conftest$ac_exeext'
29679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29680  (eval $ac_try) 2>&5
29681  ac_status=$?
29682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683  (exit $ac_status); }; }; then
29684  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
29685else
29686  echo "$as_me: failed program was:" >&5
29687sed 's/^/| /' conftest.$ac_ext >&5
29688
29689fi
29690rm -f conftest.err conftest.$ac_objext \
29691      conftest$ac_exeext conftest.$ac_ext
29692	done
29693	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
29694	LIBS="$ac_save_LIBS"
29695fi
29696
29697fi
29698
29699
29700eval "ac_res=\$ac_cv_funclib_hstrerror"
29701
29702if false; then
29703
29704for ac_func in hstrerror
29705do
29706as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29707echo "$as_me:$LINENO: checking for $ac_func" >&5
29708echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29709if eval "test \"\${$as_ac_var+set}\" = set"; then
29710  echo $ECHO_N "(cached) $ECHO_C" >&6
29711else
29712  cat >conftest.$ac_ext <<_ACEOF
29713/* confdefs.h.  */
29714_ACEOF
29715cat confdefs.h >>conftest.$ac_ext
29716cat >>conftest.$ac_ext <<_ACEOF
29717/* end confdefs.h.  */
29718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29719   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29720#define $ac_func innocuous_$ac_func
29721
29722/* System header to define __stub macros and hopefully few prototypes,
29723    which can conflict with char $ac_func (); below.
29724    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29725    <limits.h> exists even on freestanding compilers.  */
29726
29727#ifdef __STDC__
29728# include <limits.h>
29729#else
29730# include <assert.h>
29731#endif
29732
29733#undef $ac_func
29734
29735/* Override any gcc2 internal prototype to avoid an error.  */
29736#ifdef __cplusplus
29737extern "C"
29738{
29739#endif
29740/* We use char because int might match the return type of a gcc2
29741   builtin and then its argument prototype would still apply.  */
29742char $ac_func ();
29743/* The GNU C library defines this for functions which it implements
29744    to always fail with ENOSYS.  Some functions are actually named
29745    something starting with __ and the normal name is an alias.  */
29746#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29747choke me
29748#else
29749char (*f) () = $ac_func;
29750#endif
29751#ifdef __cplusplus
29752}
29753#endif
29754
29755int
29756main ()
29757{
29758return f != $ac_func;
29759  ;
29760  return 0;
29761}
29762_ACEOF
29763rm -f conftest.$ac_objext conftest$ac_exeext
29764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29765  (eval $ac_link) 2>conftest.er1
29766  ac_status=$?
29767  grep -v '^ *+' conftest.er1 >conftest.err
29768  rm -f conftest.er1
29769  cat conftest.err >&5
29770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771  (exit $ac_status); } &&
29772	 { ac_try='test -z "$ac_c_werror_flag"
29773			 || test ! -s conftest.err'
29774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29775  (eval $ac_try) 2>&5
29776  ac_status=$?
29777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778  (exit $ac_status); }; } &&
29779	 { ac_try='test -s conftest$ac_exeext'
29780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781  (eval $ac_try) 2>&5
29782  ac_status=$?
29783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784  (exit $ac_status); }; }; then
29785  eval "$as_ac_var=yes"
29786else
29787  echo "$as_me: failed program was:" >&5
29788sed 's/^/| /' conftest.$ac_ext >&5
29789
29790eval "$as_ac_var=no"
29791fi
29792rm -f conftest.err conftest.$ac_objext \
29793      conftest$ac_exeext conftest.$ac_ext
29794fi
29795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29796echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29797if test `eval echo '${'$as_ac_var'}'` = yes; then
29798  cat >>confdefs.h <<_ACEOF
29799#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29800_ACEOF
29801
29802fi
29803done
29804
29805fi
29806# hstrerror
29807eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29808eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29809eval "LIB_hstrerror=$ac_res"
29810
29811case "$ac_res" in
29812	yes)
29813	eval "ac_cv_func_hstrerror=yes"
29814	eval "LIB_hstrerror="
29815	cat >>confdefs.h <<_ACEOF
29816#define $ac_tr_func 1
29817_ACEOF
29818
29819	echo "$as_me:$LINENO: result: yes" >&5
29820echo "${ECHO_T}yes" >&6
29821	;;
29822	no)
29823	eval "ac_cv_func_hstrerror=no"
29824	eval "LIB_hstrerror="
29825	echo "$as_me:$LINENO: result: no" >&5
29826echo "${ECHO_T}no" >&6
29827	;;
29828	*)
29829	eval "ac_cv_func_hstrerror=yes"
29830	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29831	cat >>confdefs.h <<_ACEOF
29832#define $ac_tr_func 1
29833_ACEOF
29834
29835	cat >>confdefs.h <<_ACEOF
29836#define $ac_tr_lib 1
29837_ACEOF
29838
29839	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29840echo "${ECHO_T}yes, in $ac_res" >&6
29841	;;
29842esac
29843
29844
29845if test -n "$LIB_hstrerror"; then
29846	LIBS="$LIB_hstrerror $LIBS"
29847fi
29848
29849if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
29850	case $LIBOBJS in
29851    "hstrerror.$ac_objext"   | \
29852  *" hstrerror.$ac_objext"   | \
29853    "hstrerror.$ac_objext "* | \
29854  *" hstrerror.$ac_objext "* ) ;;
29855  *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext" ;;
29856esac
29857
29858fi
29859
29860
29861if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
29862echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
29863echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
29864if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
29865  echo $ECHO_N "(cached) $ECHO_C" >&6
29866else
29867  cat >conftest.$ac_ext <<_ACEOF
29868/* confdefs.h.  */
29869_ACEOF
29870cat confdefs.h >>conftest.$ac_ext
29871cat >>conftest.$ac_ext <<_ACEOF
29872/* end confdefs.h.  */
29873
29874#ifdef HAVE_NETDB_H
29875#include <netdb.h>
29876#endif
29877int
29878main ()
29879{
29880struct foo { int foo; } xx;
29881extern int hstrerror (struct foo*);
29882hstrerror(&xx);
29883
29884  ;
29885  return 0;
29886}
29887_ACEOF
29888rm -f conftest.$ac_objext
29889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29890  (eval $ac_compile) 2>conftest.er1
29891  ac_status=$?
29892  grep -v '^ *+' conftest.er1 >conftest.err
29893  rm -f conftest.er1
29894  cat conftest.err >&5
29895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896  (exit $ac_status); } &&
29897	 { ac_try='test -z "$ac_c_werror_flag"
29898			 || test ! -s conftest.err'
29899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900  (eval $ac_try) 2>&5
29901  ac_status=$?
29902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903  (exit $ac_status); }; } &&
29904	 { ac_try='test -s conftest.$ac_objext'
29905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29906  (eval $ac_try) 2>&5
29907  ac_status=$?
29908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909  (exit $ac_status); }; }; then
29910  eval "ac_cv_func_hstrerror_noproto=yes"
29911else
29912  echo "$as_me: failed program was:" >&5
29913sed 's/^/| /' conftest.$ac_ext >&5
29914
29915eval "ac_cv_func_hstrerror_noproto=no"
29916fi
29917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29918fi
29919echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
29920echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
29921if test "$ac_cv_func_hstrerror_noproto" = yes; then
29922
29923cat >>confdefs.h <<\_ACEOF
29924#define NEED_HSTRERROR_PROTO 1
29925_ACEOF
29926
29927fi
29928fi
29929
29930
29931
29932if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
29933echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
29934echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
29935if test "${ac_cv_func_asprintf_noproto+set}" = set; then
29936  echo $ECHO_N "(cached) $ECHO_C" >&6
29937else
29938  cat >conftest.$ac_ext <<_ACEOF
29939/* confdefs.h.  */
29940_ACEOF
29941cat confdefs.h >>conftest.$ac_ext
29942cat >>conftest.$ac_ext <<_ACEOF
29943/* end confdefs.h.  */
29944
29945	#include <stdio.h>
29946	#include <string.h>
29947int
29948main ()
29949{
29950struct foo { int foo; } xx;
29951extern int asprintf (struct foo*);
29952asprintf(&xx);
29953
29954  ;
29955  return 0;
29956}
29957_ACEOF
29958rm -f conftest.$ac_objext
29959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29960  (eval $ac_compile) 2>conftest.er1
29961  ac_status=$?
29962  grep -v '^ *+' conftest.er1 >conftest.err
29963  rm -f conftest.er1
29964  cat conftest.err >&5
29965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966  (exit $ac_status); } &&
29967	 { ac_try='test -z "$ac_c_werror_flag"
29968			 || test ! -s conftest.err'
29969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29970  (eval $ac_try) 2>&5
29971  ac_status=$?
29972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973  (exit $ac_status); }; } &&
29974	 { ac_try='test -s conftest.$ac_objext'
29975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29976  (eval $ac_try) 2>&5
29977  ac_status=$?
29978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979  (exit $ac_status); }; }; then
29980  eval "ac_cv_func_asprintf_noproto=yes"
29981else
29982  echo "$as_me: failed program was:" >&5
29983sed 's/^/| /' conftest.$ac_ext >&5
29984
29985eval "ac_cv_func_asprintf_noproto=no"
29986fi
29987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29988fi
29989echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
29990echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
29991if test "$ac_cv_func_asprintf_noproto" = yes; then
29992
29993cat >>confdefs.h <<\_ACEOF
29994#define NEED_ASPRINTF_PROTO 1
29995_ACEOF
29996
29997fi
29998fi
29999
30000if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
30001echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
30002echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
30003if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
30004  echo $ECHO_N "(cached) $ECHO_C" >&6
30005else
30006  cat >conftest.$ac_ext <<_ACEOF
30007/* confdefs.h.  */
30008_ACEOF
30009cat confdefs.h >>conftest.$ac_ext
30010cat >>conftest.$ac_ext <<_ACEOF
30011/* end confdefs.h.  */
30012
30013	#include <stdio.h>
30014	#include <string.h>
30015int
30016main ()
30017{
30018struct foo { int foo; } xx;
30019extern int vasprintf (struct foo*);
30020vasprintf(&xx);
30021
30022  ;
30023  return 0;
30024}
30025_ACEOF
30026rm -f conftest.$ac_objext
30027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30028  (eval $ac_compile) 2>conftest.er1
30029  ac_status=$?
30030  grep -v '^ *+' conftest.er1 >conftest.err
30031  rm -f conftest.er1
30032  cat conftest.err >&5
30033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034  (exit $ac_status); } &&
30035	 { ac_try='test -z "$ac_c_werror_flag"
30036			 || test ! -s conftest.err'
30037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30038  (eval $ac_try) 2>&5
30039  ac_status=$?
30040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041  (exit $ac_status); }; } &&
30042	 { ac_try='test -s conftest.$ac_objext'
30043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30044  (eval $ac_try) 2>&5
30045  ac_status=$?
30046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047  (exit $ac_status); }; }; then
30048  eval "ac_cv_func_vasprintf_noproto=yes"
30049else
30050  echo "$as_me: failed program was:" >&5
30051sed 's/^/| /' conftest.$ac_ext >&5
30052
30053eval "ac_cv_func_vasprintf_noproto=no"
30054fi
30055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30056fi
30057echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
30058echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
30059if test "$ac_cv_func_vasprintf_noproto" = yes; then
30060
30061cat >>confdefs.h <<\_ACEOF
30062#define NEED_VASPRINTF_PROTO 1
30063_ACEOF
30064
30065fi
30066fi
30067
30068if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
30069echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
30070echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
30071if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
30072  echo $ECHO_N "(cached) $ECHO_C" >&6
30073else
30074  cat >conftest.$ac_ext <<_ACEOF
30075/* confdefs.h.  */
30076_ACEOF
30077cat confdefs.h >>conftest.$ac_ext
30078cat >>conftest.$ac_ext <<_ACEOF
30079/* end confdefs.h.  */
30080
30081	#include <stdio.h>
30082	#include <string.h>
30083int
30084main ()
30085{
30086struct foo { int foo; } xx;
30087extern int asnprintf (struct foo*);
30088asnprintf(&xx);
30089
30090  ;
30091  return 0;
30092}
30093_ACEOF
30094rm -f conftest.$ac_objext
30095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30096  (eval $ac_compile) 2>conftest.er1
30097  ac_status=$?
30098  grep -v '^ *+' conftest.er1 >conftest.err
30099  rm -f conftest.er1
30100  cat conftest.err >&5
30101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102  (exit $ac_status); } &&
30103	 { ac_try='test -z "$ac_c_werror_flag"
30104			 || test ! -s conftest.err'
30105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106  (eval $ac_try) 2>&5
30107  ac_status=$?
30108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109  (exit $ac_status); }; } &&
30110	 { ac_try='test -s conftest.$ac_objext'
30111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112  (eval $ac_try) 2>&5
30113  ac_status=$?
30114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115  (exit $ac_status); }; }; then
30116  eval "ac_cv_func_asnprintf_noproto=yes"
30117else
30118  echo "$as_me: failed program was:" >&5
30119sed 's/^/| /' conftest.$ac_ext >&5
30120
30121eval "ac_cv_func_asnprintf_noproto=no"
30122fi
30123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30124fi
30125echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
30126echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
30127if test "$ac_cv_func_asnprintf_noproto" = yes; then
30128
30129cat >>confdefs.h <<\_ACEOF
30130#define NEED_ASNPRINTF_PROTO 1
30131_ACEOF
30132
30133fi
30134fi
30135
30136if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
30137echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
30138echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
30139if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
30140  echo $ECHO_N "(cached) $ECHO_C" >&6
30141else
30142  cat >conftest.$ac_ext <<_ACEOF
30143/* confdefs.h.  */
30144_ACEOF
30145cat confdefs.h >>conftest.$ac_ext
30146cat >>conftest.$ac_ext <<_ACEOF
30147/* end confdefs.h.  */
30148
30149	#include <stdio.h>
30150	#include <string.h>
30151int
30152main ()
30153{
30154struct foo { int foo; } xx;
30155extern int vasnprintf (struct foo*);
30156vasnprintf(&xx);
30157
30158  ;
30159  return 0;
30160}
30161_ACEOF
30162rm -f conftest.$ac_objext
30163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30164  (eval $ac_compile) 2>conftest.er1
30165  ac_status=$?
30166  grep -v '^ *+' conftest.er1 >conftest.err
30167  rm -f conftest.er1
30168  cat conftest.err >&5
30169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170  (exit $ac_status); } &&
30171	 { ac_try='test -z "$ac_c_werror_flag"
30172			 || test ! -s conftest.err'
30173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30174  (eval $ac_try) 2>&5
30175  ac_status=$?
30176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177  (exit $ac_status); }; } &&
30178	 { ac_try='test -s conftest.$ac_objext'
30179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30180  (eval $ac_try) 2>&5
30181  ac_status=$?
30182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183  (exit $ac_status); }; }; then
30184  eval "ac_cv_func_vasnprintf_noproto=yes"
30185else
30186  echo "$as_me: failed program was:" >&5
30187sed 's/^/| /' conftest.$ac_ext >&5
30188
30189eval "ac_cv_func_vasnprintf_noproto=no"
30190fi
30191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30192fi
30193echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
30194echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
30195if test "$ac_cv_func_vasnprintf_noproto" = yes; then
30196
30197cat >>confdefs.h <<\_ACEOF
30198#define NEED_VASNPRINTF_PROTO 1
30199_ACEOF
30200
30201fi
30202fi
30203
30204
30205
30206
30207
30208echo "$as_me:$LINENO: checking for bswap16" >&5
30209echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
30210if test "${ac_cv_funclib_bswap16+set}" = set; then
30211  echo $ECHO_N "(cached) $ECHO_C" >&6
30212else
30213
30214if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
30215	ac_save_LIBS="$LIBS"
30216	for ac_lib in "" ; do
30217		case "$ac_lib" in
30218		"") ;;
30219		yes) ac_lib="" ;;
30220		no) continue ;;
30221		-l*) ;;
30222		*) ac_lib="-l$ac_lib" ;;
30223		esac
30224		LIBS=" $ac_lib  $ac_save_LIBS"
30225		cat >conftest.$ac_ext <<_ACEOF
30226/* confdefs.h.  */
30227_ACEOF
30228cat confdefs.h >>conftest.$ac_ext
30229cat >>conftest.$ac_ext <<_ACEOF
30230/* end confdefs.h.  */
30231#ifdef HAVE_SYS_BSWAP_H
30232#include <sys/bswap.h>
30233#endif
30234int
30235main ()
30236{
30237bswap16(0)
30238  ;
30239  return 0;
30240}
30241_ACEOF
30242rm -f conftest.$ac_objext conftest$ac_exeext
30243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30244  (eval $ac_link) 2>conftest.er1
30245  ac_status=$?
30246  grep -v '^ *+' conftest.er1 >conftest.err
30247  rm -f conftest.er1
30248  cat conftest.err >&5
30249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250  (exit $ac_status); } &&
30251	 { ac_try='test -z "$ac_c_werror_flag"
30252			 || test ! -s conftest.err'
30253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30254  (eval $ac_try) 2>&5
30255  ac_status=$?
30256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257  (exit $ac_status); }; } &&
30258	 { ac_try='test -s conftest$ac_exeext'
30259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30260  (eval $ac_try) 2>&5
30261  ac_status=$?
30262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263  (exit $ac_status); }; }; then
30264  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
30265else
30266  echo "$as_me: failed program was:" >&5
30267sed 's/^/| /' conftest.$ac_ext >&5
30268
30269fi
30270rm -f conftest.err conftest.$ac_objext \
30271      conftest$ac_exeext conftest.$ac_ext
30272	done
30273	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
30274	LIBS="$ac_save_LIBS"
30275fi
30276
30277fi
30278
30279
30280eval "ac_res=\$ac_cv_funclib_bswap16"
30281
30282if false; then
30283
30284for ac_func in bswap16
30285do
30286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30287echo "$as_me:$LINENO: checking for $ac_func" >&5
30288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30289if eval "test \"\${$as_ac_var+set}\" = set"; then
30290  echo $ECHO_N "(cached) $ECHO_C" >&6
30291else
30292  cat >conftest.$ac_ext <<_ACEOF
30293/* confdefs.h.  */
30294_ACEOF
30295cat confdefs.h >>conftest.$ac_ext
30296cat >>conftest.$ac_ext <<_ACEOF
30297/* end confdefs.h.  */
30298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30299   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30300#define $ac_func innocuous_$ac_func
30301
30302/* System header to define __stub macros and hopefully few prototypes,
30303    which can conflict with char $ac_func (); below.
30304    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30305    <limits.h> exists even on freestanding compilers.  */
30306
30307#ifdef __STDC__
30308# include <limits.h>
30309#else
30310# include <assert.h>
30311#endif
30312
30313#undef $ac_func
30314
30315/* Override any gcc2 internal prototype to avoid an error.  */
30316#ifdef __cplusplus
30317extern "C"
30318{
30319#endif
30320/* We use char because int might match the return type of a gcc2
30321   builtin and then its argument prototype would still apply.  */
30322char $ac_func ();
30323/* The GNU C library defines this for functions which it implements
30324    to always fail with ENOSYS.  Some functions are actually named
30325    something starting with __ and the normal name is an alias.  */
30326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30327choke me
30328#else
30329char (*f) () = $ac_func;
30330#endif
30331#ifdef __cplusplus
30332}
30333#endif
30334
30335int
30336main ()
30337{
30338return f != $ac_func;
30339  ;
30340  return 0;
30341}
30342_ACEOF
30343rm -f conftest.$ac_objext conftest$ac_exeext
30344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30345  (eval $ac_link) 2>conftest.er1
30346  ac_status=$?
30347  grep -v '^ *+' conftest.er1 >conftest.err
30348  rm -f conftest.er1
30349  cat conftest.err >&5
30350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351  (exit $ac_status); } &&
30352	 { ac_try='test -z "$ac_c_werror_flag"
30353			 || test ! -s conftest.err'
30354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355  (eval $ac_try) 2>&5
30356  ac_status=$?
30357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358  (exit $ac_status); }; } &&
30359	 { ac_try='test -s conftest$ac_exeext'
30360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30361  (eval $ac_try) 2>&5
30362  ac_status=$?
30363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364  (exit $ac_status); }; }; then
30365  eval "$as_ac_var=yes"
30366else
30367  echo "$as_me: failed program was:" >&5
30368sed 's/^/| /' conftest.$ac_ext >&5
30369
30370eval "$as_ac_var=no"
30371fi
30372rm -f conftest.err conftest.$ac_objext \
30373      conftest$ac_exeext conftest.$ac_ext
30374fi
30375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30376echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30377if test `eval echo '${'$as_ac_var'}'` = yes; then
30378  cat >>confdefs.h <<_ACEOF
30379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30380_ACEOF
30381
30382fi
30383done
30384
30385fi
30386# bswap16
30387eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30388eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30389eval "LIB_bswap16=$ac_res"
30390
30391case "$ac_res" in
30392	yes)
30393	eval "ac_cv_func_bswap16=yes"
30394	eval "LIB_bswap16="
30395	cat >>confdefs.h <<_ACEOF
30396#define $ac_tr_func 1
30397_ACEOF
30398
30399	echo "$as_me:$LINENO: result: yes" >&5
30400echo "${ECHO_T}yes" >&6
30401	;;
30402	no)
30403	eval "ac_cv_func_bswap16=no"
30404	eval "LIB_bswap16="
30405	echo "$as_me:$LINENO: result: no" >&5
30406echo "${ECHO_T}no" >&6
30407	;;
30408	*)
30409	eval "ac_cv_func_bswap16=yes"
30410	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30411	cat >>confdefs.h <<_ACEOF
30412#define $ac_tr_func 1
30413_ACEOF
30414
30415	cat >>confdefs.h <<_ACEOF
30416#define $ac_tr_lib 1
30417_ACEOF
30418
30419	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30420echo "${ECHO_T}yes, in $ac_res" >&6
30421	;;
30422esac
30423
30424
30425
30426
30427
30428
30429echo "$as_me:$LINENO: checking for bswap32" >&5
30430echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
30431if test "${ac_cv_funclib_bswap32+set}" = set; then
30432  echo $ECHO_N "(cached) $ECHO_C" >&6
30433else
30434
30435if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
30436	ac_save_LIBS="$LIBS"
30437	for ac_lib in "" ; do
30438		case "$ac_lib" in
30439		"") ;;
30440		yes) ac_lib="" ;;
30441		no) continue ;;
30442		-l*) ;;
30443		*) ac_lib="-l$ac_lib" ;;
30444		esac
30445		LIBS=" $ac_lib  $ac_save_LIBS"
30446		cat >conftest.$ac_ext <<_ACEOF
30447/* confdefs.h.  */
30448_ACEOF
30449cat confdefs.h >>conftest.$ac_ext
30450cat >>conftest.$ac_ext <<_ACEOF
30451/* end confdefs.h.  */
30452#ifdef HAVE_SYS_BSWAP_H
30453#include <sys/bswap.h>
30454#endif
30455int
30456main ()
30457{
30458bswap32(0)
30459  ;
30460  return 0;
30461}
30462_ACEOF
30463rm -f conftest.$ac_objext conftest$ac_exeext
30464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30465  (eval $ac_link) 2>conftest.er1
30466  ac_status=$?
30467  grep -v '^ *+' conftest.er1 >conftest.err
30468  rm -f conftest.er1
30469  cat conftest.err >&5
30470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30471  (exit $ac_status); } &&
30472	 { ac_try='test -z "$ac_c_werror_flag"
30473			 || test ! -s conftest.err'
30474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30475  (eval $ac_try) 2>&5
30476  ac_status=$?
30477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478  (exit $ac_status); }; } &&
30479	 { ac_try='test -s conftest$ac_exeext'
30480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30481  (eval $ac_try) 2>&5
30482  ac_status=$?
30483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484  (exit $ac_status); }; }; then
30485  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
30486else
30487  echo "$as_me: failed program was:" >&5
30488sed 's/^/| /' conftest.$ac_ext >&5
30489
30490fi
30491rm -f conftest.err conftest.$ac_objext \
30492      conftest$ac_exeext conftest.$ac_ext
30493	done
30494	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
30495	LIBS="$ac_save_LIBS"
30496fi
30497
30498fi
30499
30500
30501eval "ac_res=\$ac_cv_funclib_bswap32"
30502
30503if false; then
30504
30505for ac_func in bswap32
30506do
30507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30508echo "$as_me:$LINENO: checking for $ac_func" >&5
30509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30510if eval "test \"\${$as_ac_var+set}\" = set"; then
30511  echo $ECHO_N "(cached) $ECHO_C" >&6
30512else
30513  cat >conftest.$ac_ext <<_ACEOF
30514/* confdefs.h.  */
30515_ACEOF
30516cat confdefs.h >>conftest.$ac_ext
30517cat >>conftest.$ac_ext <<_ACEOF
30518/* end confdefs.h.  */
30519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30520   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30521#define $ac_func innocuous_$ac_func
30522
30523/* System header to define __stub macros and hopefully few prototypes,
30524    which can conflict with char $ac_func (); below.
30525    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30526    <limits.h> exists even on freestanding compilers.  */
30527
30528#ifdef __STDC__
30529# include <limits.h>
30530#else
30531# include <assert.h>
30532#endif
30533
30534#undef $ac_func
30535
30536/* Override any gcc2 internal prototype to avoid an error.  */
30537#ifdef __cplusplus
30538extern "C"
30539{
30540#endif
30541/* We use char because int might match the return type of a gcc2
30542   builtin and then its argument prototype would still apply.  */
30543char $ac_func ();
30544/* The GNU C library defines this for functions which it implements
30545    to always fail with ENOSYS.  Some functions are actually named
30546    something starting with __ and the normal name is an alias.  */
30547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30548choke me
30549#else
30550char (*f) () = $ac_func;
30551#endif
30552#ifdef __cplusplus
30553}
30554#endif
30555
30556int
30557main ()
30558{
30559return f != $ac_func;
30560  ;
30561  return 0;
30562}
30563_ACEOF
30564rm -f conftest.$ac_objext conftest$ac_exeext
30565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30566  (eval $ac_link) 2>conftest.er1
30567  ac_status=$?
30568  grep -v '^ *+' conftest.er1 >conftest.err
30569  rm -f conftest.er1
30570  cat conftest.err >&5
30571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572  (exit $ac_status); } &&
30573	 { ac_try='test -z "$ac_c_werror_flag"
30574			 || test ! -s conftest.err'
30575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30576  (eval $ac_try) 2>&5
30577  ac_status=$?
30578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30579  (exit $ac_status); }; } &&
30580	 { ac_try='test -s conftest$ac_exeext'
30581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30582  (eval $ac_try) 2>&5
30583  ac_status=$?
30584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585  (exit $ac_status); }; }; then
30586  eval "$as_ac_var=yes"
30587else
30588  echo "$as_me: failed program was:" >&5
30589sed 's/^/| /' conftest.$ac_ext >&5
30590
30591eval "$as_ac_var=no"
30592fi
30593rm -f conftest.err conftest.$ac_objext \
30594      conftest$ac_exeext conftest.$ac_ext
30595fi
30596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30598if test `eval echo '${'$as_ac_var'}'` = yes; then
30599  cat >>confdefs.h <<_ACEOF
30600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30601_ACEOF
30602
30603fi
30604done
30605
30606fi
30607# bswap32
30608eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30609eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30610eval "LIB_bswap32=$ac_res"
30611
30612case "$ac_res" in
30613	yes)
30614	eval "ac_cv_func_bswap32=yes"
30615	eval "LIB_bswap32="
30616	cat >>confdefs.h <<_ACEOF
30617#define $ac_tr_func 1
30618_ACEOF
30619
30620	echo "$as_me:$LINENO: result: yes" >&5
30621echo "${ECHO_T}yes" >&6
30622	;;
30623	no)
30624	eval "ac_cv_func_bswap32=no"
30625	eval "LIB_bswap32="
30626	echo "$as_me:$LINENO: result: no" >&5
30627echo "${ECHO_T}no" >&6
30628	;;
30629	*)
30630	eval "ac_cv_func_bswap32=yes"
30631	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30632	cat >>confdefs.h <<_ACEOF
30633#define $ac_tr_func 1
30634_ACEOF
30635
30636	cat >>confdefs.h <<_ACEOF
30637#define $ac_tr_lib 1
30638_ACEOF
30639
30640	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30641echo "${ECHO_T}yes, in $ac_res" >&6
30642	;;
30643esac
30644
30645
30646
30647
30648
30649
30650echo "$as_me:$LINENO: checking for pidfile" >&5
30651echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
30652if test "${ac_cv_funclib_pidfile+set}" = set; then
30653  echo $ECHO_N "(cached) $ECHO_C" >&6
30654else
30655
30656if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
30657	ac_save_LIBS="$LIBS"
30658	for ac_lib in "" util; do
30659		case "$ac_lib" in
30660		"") ;;
30661		yes) ac_lib="" ;;
30662		no) continue ;;
30663		-l*) ;;
30664		*) ac_lib="-l$ac_lib" ;;
30665		esac
30666		LIBS=" $ac_lib  $ac_save_LIBS"
30667		cat >conftest.$ac_ext <<_ACEOF
30668/* confdefs.h.  */
30669_ACEOF
30670cat confdefs.h >>conftest.$ac_ext
30671cat >>conftest.$ac_ext <<_ACEOF
30672/* end confdefs.h.  */
30673#ifdef HAVE_UTIL_H
30674#include <util.h>
30675#endif
30676int
30677main ()
30678{
30679pidfile(0)
30680  ;
30681  return 0;
30682}
30683_ACEOF
30684rm -f conftest.$ac_objext conftest$ac_exeext
30685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30686  (eval $ac_link) 2>conftest.er1
30687  ac_status=$?
30688  grep -v '^ *+' conftest.er1 >conftest.err
30689  rm -f conftest.er1
30690  cat conftest.err >&5
30691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692  (exit $ac_status); } &&
30693	 { ac_try='test -z "$ac_c_werror_flag"
30694			 || test ! -s conftest.err'
30695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30696  (eval $ac_try) 2>&5
30697  ac_status=$?
30698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699  (exit $ac_status); }; } &&
30700	 { ac_try='test -s conftest$ac_exeext'
30701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30702  (eval $ac_try) 2>&5
30703  ac_status=$?
30704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705  (exit $ac_status); }; }; then
30706  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
30707else
30708  echo "$as_me: failed program was:" >&5
30709sed 's/^/| /' conftest.$ac_ext >&5
30710
30711fi
30712rm -f conftest.err conftest.$ac_objext \
30713      conftest$ac_exeext conftest.$ac_ext
30714	done
30715	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
30716	LIBS="$ac_save_LIBS"
30717fi
30718
30719fi
30720
30721
30722eval "ac_res=\$ac_cv_funclib_pidfile"
30723
30724if false; then
30725
30726for ac_func in pidfile
30727do
30728as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30729echo "$as_me:$LINENO: checking for $ac_func" >&5
30730echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30731if eval "test \"\${$as_ac_var+set}\" = set"; then
30732  echo $ECHO_N "(cached) $ECHO_C" >&6
30733else
30734  cat >conftest.$ac_ext <<_ACEOF
30735/* confdefs.h.  */
30736_ACEOF
30737cat confdefs.h >>conftest.$ac_ext
30738cat >>conftest.$ac_ext <<_ACEOF
30739/* end confdefs.h.  */
30740/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30741   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30742#define $ac_func innocuous_$ac_func
30743
30744/* System header to define __stub macros and hopefully few prototypes,
30745    which can conflict with char $ac_func (); below.
30746    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30747    <limits.h> exists even on freestanding compilers.  */
30748
30749#ifdef __STDC__
30750# include <limits.h>
30751#else
30752# include <assert.h>
30753#endif
30754
30755#undef $ac_func
30756
30757/* Override any gcc2 internal prototype to avoid an error.  */
30758#ifdef __cplusplus
30759extern "C"
30760{
30761#endif
30762/* We use char because int might match the return type of a gcc2
30763   builtin and then its argument prototype would still apply.  */
30764char $ac_func ();
30765/* The GNU C library defines this for functions which it implements
30766    to always fail with ENOSYS.  Some functions are actually named
30767    something starting with __ and the normal name is an alias.  */
30768#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30769choke me
30770#else
30771char (*f) () = $ac_func;
30772#endif
30773#ifdef __cplusplus
30774}
30775#endif
30776
30777int
30778main ()
30779{
30780return f != $ac_func;
30781  ;
30782  return 0;
30783}
30784_ACEOF
30785rm -f conftest.$ac_objext conftest$ac_exeext
30786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30787  (eval $ac_link) 2>conftest.er1
30788  ac_status=$?
30789  grep -v '^ *+' conftest.er1 >conftest.err
30790  rm -f conftest.er1
30791  cat conftest.err >&5
30792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793  (exit $ac_status); } &&
30794	 { ac_try='test -z "$ac_c_werror_flag"
30795			 || test ! -s conftest.err'
30796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30797  (eval $ac_try) 2>&5
30798  ac_status=$?
30799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800  (exit $ac_status); }; } &&
30801	 { ac_try='test -s conftest$ac_exeext'
30802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30803  (eval $ac_try) 2>&5
30804  ac_status=$?
30805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806  (exit $ac_status); }; }; then
30807  eval "$as_ac_var=yes"
30808else
30809  echo "$as_me: failed program was:" >&5
30810sed 's/^/| /' conftest.$ac_ext >&5
30811
30812eval "$as_ac_var=no"
30813fi
30814rm -f conftest.err conftest.$ac_objext \
30815      conftest$ac_exeext conftest.$ac_ext
30816fi
30817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30818echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30819if test `eval echo '${'$as_ac_var'}'` = yes; then
30820  cat >>confdefs.h <<_ACEOF
30821#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30822_ACEOF
30823
30824fi
30825done
30826
30827fi
30828# pidfile
30829eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30830eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30831eval "LIB_pidfile=$ac_res"
30832
30833case "$ac_res" in
30834	yes)
30835	eval "ac_cv_func_pidfile=yes"
30836	eval "LIB_pidfile="
30837	cat >>confdefs.h <<_ACEOF
30838#define $ac_tr_func 1
30839_ACEOF
30840
30841	echo "$as_me:$LINENO: result: yes" >&5
30842echo "${ECHO_T}yes" >&6
30843	;;
30844	no)
30845	eval "ac_cv_func_pidfile=no"
30846	eval "LIB_pidfile="
30847	echo "$as_me:$LINENO: result: no" >&5
30848echo "${ECHO_T}no" >&6
30849	;;
30850	*)
30851	eval "ac_cv_func_pidfile=yes"
30852	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30853	cat >>confdefs.h <<_ACEOF
30854#define $ac_tr_func 1
30855_ACEOF
30856
30857	cat >>confdefs.h <<_ACEOF
30858#define $ac_tr_lib 1
30859_ACEOF
30860
30861	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30862echo "${ECHO_T}yes, in $ac_res" >&6
30863	;;
30864esac
30865
30866
30867
30868
30869
30870
30871
30872echo "$as_me:$LINENO: checking for getaddrinfo" >&5
30873echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
30874if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
30875  echo $ECHO_N "(cached) $ECHO_C" >&6
30876else
30877
30878if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
30879	ac_save_LIBS="$LIBS"
30880	for ac_lib in "" ; do
30881		case "$ac_lib" in
30882		"") ;;
30883		yes) ac_lib="" ;;
30884		no) continue ;;
30885		-l*) ;;
30886		*) ac_lib="-l$ac_lib" ;;
30887		esac
30888		LIBS=" $ac_lib  $ac_save_LIBS"
30889		cat >conftest.$ac_ext <<_ACEOF
30890/* confdefs.h.  */
30891_ACEOF
30892cat confdefs.h >>conftest.$ac_ext
30893cat >>conftest.$ac_ext <<_ACEOF
30894/* end confdefs.h.  */
30895#ifdef HAVE_NETDB_H
30896#include <netdb.h>
30897#endif
30898int
30899main ()
30900{
30901getaddrinfo(0,0,0,0)
30902  ;
30903  return 0;
30904}
30905_ACEOF
30906rm -f conftest.$ac_objext conftest$ac_exeext
30907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30908  (eval $ac_link) 2>conftest.er1
30909  ac_status=$?
30910  grep -v '^ *+' conftest.er1 >conftest.err
30911  rm -f conftest.er1
30912  cat conftest.err >&5
30913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914  (exit $ac_status); } &&
30915	 { ac_try='test -z "$ac_c_werror_flag"
30916			 || test ! -s conftest.err'
30917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30918  (eval $ac_try) 2>&5
30919  ac_status=$?
30920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921  (exit $ac_status); }; } &&
30922	 { ac_try='test -s conftest$ac_exeext'
30923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30924  (eval $ac_try) 2>&5
30925  ac_status=$?
30926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927  (exit $ac_status); }; }; then
30928  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
30929else
30930  echo "$as_me: failed program was:" >&5
30931sed 's/^/| /' conftest.$ac_ext >&5
30932
30933fi
30934rm -f conftest.err conftest.$ac_objext \
30935      conftest$ac_exeext conftest.$ac_ext
30936	done
30937	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
30938	LIBS="$ac_save_LIBS"
30939fi
30940
30941fi
30942
30943
30944eval "ac_res=\$ac_cv_funclib_getaddrinfo"
30945
30946if false; then
30947
30948for ac_func in getaddrinfo
30949do
30950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30951echo "$as_me:$LINENO: checking for $ac_func" >&5
30952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30953if eval "test \"\${$as_ac_var+set}\" = set"; then
30954  echo $ECHO_N "(cached) $ECHO_C" >&6
30955else
30956  cat >conftest.$ac_ext <<_ACEOF
30957/* confdefs.h.  */
30958_ACEOF
30959cat confdefs.h >>conftest.$ac_ext
30960cat >>conftest.$ac_ext <<_ACEOF
30961/* end confdefs.h.  */
30962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30963   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30964#define $ac_func innocuous_$ac_func
30965
30966/* System header to define __stub macros and hopefully few prototypes,
30967    which can conflict with char $ac_func (); below.
30968    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30969    <limits.h> exists even on freestanding compilers.  */
30970
30971#ifdef __STDC__
30972# include <limits.h>
30973#else
30974# include <assert.h>
30975#endif
30976
30977#undef $ac_func
30978
30979/* Override any gcc2 internal prototype to avoid an error.  */
30980#ifdef __cplusplus
30981extern "C"
30982{
30983#endif
30984/* We use char because int might match the return type of a gcc2
30985   builtin and then its argument prototype would still apply.  */
30986char $ac_func ();
30987/* The GNU C library defines this for functions which it implements
30988    to always fail with ENOSYS.  Some functions are actually named
30989    something starting with __ and the normal name is an alias.  */
30990#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30991choke me
30992#else
30993char (*f) () = $ac_func;
30994#endif
30995#ifdef __cplusplus
30996}
30997#endif
30998
30999int
31000main ()
31001{
31002return f != $ac_func;
31003  ;
31004  return 0;
31005}
31006_ACEOF
31007rm -f conftest.$ac_objext conftest$ac_exeext
31008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31009  (eval $ac_link) 2>conftest.er1
31010  ac_status=$?
31011  grep -v '^ *+' conftest.er1 >conftest.err
31012  rm -f conftest.er1
31013  cat conftest.err >&5
31014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015  (exit $ac_status); } &&
31016	 { ac_try='test -z "$ac_c_werror_flag"
31017			 || test ! -s conftest.err'
31018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31019  (eval $ac_try) 2>&5
31020  ac_status=$?
31021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022  (exit $ac_status); }; } &&
31023	 { ac_try='test -s conftest$ac_exeext'
31024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31025  (eval $ac_try) 2>&5
31026  ac_status=$?
31027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028  (exit $ac_status); }; }; then
31029  eval "$as_ac_var=yes"
31030else
31031  echo "$as_me: failed program was:" >&5
31032sed 's/^/| /' conftest.$ac_ext >&5
31033
31034eval "$as_ac_var=no"
31035fi
31036rm -f conftest.err conftest.$ac_objext \
31037      conftest$ac_exeext conftest.$ac_ext
31038fi
31039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31040echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31041if test `eval echo '${'$as_ac_var'}'` = yes; then
31042  cat >>confdefs.h <<_ACEOF
31043#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31044_ACEOF
31045
31046fi
31047done
31048
31049fi
31050# getaddrinfo
31051eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31052eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31053eval "LIB_getaddrinfo=$ac_res"
31054
31055case "$ac_res" in
31056	yes)
31057	eval "ac_cv_func_getaddrinfo=yes"
31058	eval "LIB_getaddrinfo="
31059	cat >>confdefs.h <<_ACEOF
31060#define $ac_tr_func 1
31061_ACEOF
31062
31063	echo "$as_me:$LINENO: result: yes" >&5
31064echo "${ECHO_T}yes" >&6
31065	;;
31066	no)
31067	eval "ac_cv_func_getaddrinfo=no"
31068	eval "LIB_getaddrinfo="
31069	echo "$as_me:$LINENO: result: no" >&5
31070echo "${ECHO_T}no" >&6
31071	;;
31072	*)
31073	eval "ac_cv_func_getaddrinfo=yes"
31074	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31075	cat >>confdefs.h <<_ACEOF
31076#define $ac_tr_func 1
31077_ACEOF
31078
31079	cat >>confdefs.h <<_ACEOF
31080#define $ac_tr_lib 1
31081_ACEOF
31082
31083	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31084echo "${ECHO_T}yes, in $ac_res" >&6
31085	;;
31086esac
31087
31088
31089if test -n "$LIB_getaddrinfo"; then
31090	LIBS="$LIB_getaddrinfo $LIBS"
31091fi
31092
31093if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
31094	case $LIBOBJS in
31095    "getaddrinfo.$ac_objext"   | \
31096  *" getaddrinfo.$ac_objext"   | \
31097    "getaddrinfo.$ac_objext "* | \
31098  *" getaddrinfo.$ac_objext "* ) ;;
31099  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
31100esac
31101
31102fi
31103
31104
31105
31106
31107
31108
31109echo "$as_me:$LINENO: checking for getnameinfo" >&5
31110echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
31111if test "${ac_cv_funclib_getnameinfo+set}" = set; then
31112  echo $ECHO_N "(cached) $ECHO_C" >&6
31113else
31114
31115if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
31116	ac_save_LIBS="$LIBS"
31117	for ac_lib in "" ; do
31118		case "$ac_lib" in
31119		"") ;;
31120		yes) ac_lib="" ;;
31121		no) continue ;;
31122		-l*) ;;
31123		*) ac_lib="-l$ac_lib" ;;
31124		esac
31125		LIBS=" $ac_lib  $ac_save_LIBS"
31126		cat >conftest.$ac_ext <<_ACEOF
31127/* confdefs.h.  */
31128_ACEOF
31129cat confdefs.h >>conftest.$ac_ext
31130cat >>conftest.$ac_ext <<_ACEOF
31131/* end confdefs.h.  */
31132#ifdef HAVE_NETDB_H
31133#include <netdb.h>
31134#endif
31135int
31136main ()
31137{
31138getnameinfo(0,0,0,0,0,0,0)
31139  ;
31140  return 0;
31141}
31142_ACEOF
31143rm -f conftest.$ac_objext conftest$ac_exeext
31144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31145  (eval $ac_link) 2>conftest.er1
31146  ac_status=$?
31147  grep -v '^ *+' conftest.er1 >conftest.err
31148  rm -f conftest.er1
31149  cat conftest.err >&5
31150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151  (exit $ac_status); } &&
31152	 { ac_try='test -z "$ac_c_werror_flag"
31153			 || test ! -s conftest.err'
31154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31155  (eval $ac_try) 2>&5
31156  ac_status=$?
31157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158  (exit $ac_status); }; } &&
31159	 { ac_try='test -s conftest$ac_exeext'
31160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31161  (eval $ac_try) 2>&5
31162  ac_status=$?
31163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164  (exit $ac_status); }; }; then
31165  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
31166else
31167  echo "$as_me: failed program was:" >&5
31168sed 's/^/| /' conftest.$ac_ext >&5
31169
31170fi
31171rm -f conftest.err conftest.$ac_objext \
31172      conftest$ac_exeext conftest.$ac_ext
31173	done
31174	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
31175	LIBS="$ac_save_LIBS"
31176fi
31177
31178fi
31179
31180
31181eval "ac_res=\$ac_cv_funclib_getnameinfo"
31182
31183if false; then
31184
31185for ac_func in getnameinfo
31186do
31187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31188echo "$as_me:$LINENO: checking for $ac_func" >&5
31189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31190if eval "test \"\${$as_ac_var+set}\" = set"; then
31191  echo $ECHO_N "(cached) $ECHO_C" >&6
31192else
31193  cat >conftest.$ac_ext <<_ACEOF
31194/* confdefs.h.  */
31195_ACEOF
31196cat confdefs.h >>conftest.$ac_ext
31197cat >>conftest.$ac_ext <<_ACEOF
31198/* end confdefs.h.  */
31199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31200   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31201#define $ac_func innocuous_$ac_func
31202
31203/* System header to define __stub macros and hopefully few prototypes,
31204    which can conflict with char $ac_func (); below.
31205    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31206    <limits.h> exists even on freestanding compilers.  */
31207
31208#ifdef __STDC__
31209# include <limits.h>
31210#else
31211# include <assert.h>
31212#endif
31213
31214#undef $ac_func
31215
31216/* Override any gcc2 internal prototype to avoid an error.  */
31217#ifdef __cplusplus
31218extern "C"
31219{
31220#endif
31221/* We use char because int might match the return type of a gcc2
31222   builtin and then its argument prototype would still apply.  */
31223char $ac_func ();
31224/* The GNU C library defines this for functions which it implements
31225    to always fail with ENOSYS.  Some functions are actually named
31226    something starting with __ and the normal name is an alias.  */
31227#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31228choke me
31229#else
31230char (*f) () = $ac_func;
31231#endif
31232#ifdef __cplusplus
31233}
31234#endif
31235
31236int
31237main ()
31238{
31239return f != $ac_func;
31240  ;
31241  return 0;
31242}
31243_ACEOF
31244rm -f conftest.$ac_objext conftest$ac_exeext
31245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31246  (eval $ac_link) 2>conftest.er1
31247  ac_status=$?
31248  grep -v '^ *+' conftest.er1 >conftest.err
31249  rm -f conftest.er1
31250  cat conftest.err >&5
31251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252  (exit $ac_status); } &&
31253	 { ac_try='test -z "$ac_c_werror_flag"
31254			 || test ! -s conftest.err'
31255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31256  (eval $ac_try) 2>&5
31257  ac_status=$?
31258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259  (exit $ac_status); }; } &&
31260	 { ac_try='test -s conftest$ac_exeext'
31261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31262  (eval $ac_try) 2>&5
31263  ac_status=$?
31264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265  (exit $ac_status); }; }; then
31266  eval "$as_ac_var=yes"
31267else
31268  echo "$as_me: failed program was:" >&5
31269sed 's/^/| /' conftest.$ac_ext >&5
31270
31271eval "$as_ac_var=no"
31272fi
31273rm -f conftest.err conftest.$ac_objext \
31274      conftest$ac_exeext conftest.$ac_ext
31275fi
31276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31277echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31278if test `eval echo '${'$as_ac_var'}'` = yes; then
31279  cat >>confdefs.h <<_ACEOF
31280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31281_ACEOF
31282
31283fi
31284done
31285
31286fi
31287# getnameinfo
31288eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31289eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31290eval "LIB_getnameinfo=$ac_res"
31291
31292case "$ac_res" in
31293	yes)
31294	eval "ac_cv_func_getnameinfo=yes"
31295	eval "LIB_getnameinfo="
31296	cat >>confdefs.h <<_ACEOF
31297#define $ac_tr_func 1
31298_ACEOF
31299
31300	echo "$as_me:$LINENO: result: yes" >&5
31301echo "${ECHO_T}yes" >&6
31302	;;
31303	no)
31304	eval "ac_cv_func_getnameinfo=no"
31305	eval "LIB_getnameinfo="
31306	echo "$as_me:$LINENO: result: no" >&5
31307echo "${ECHO_T}no" >&6
31308	;;
31309	*)
31310	eval "ac_cv_func_getnameinfo=yes"
31311	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31312	cat >>confdefs.h <<_ACEOF
31313#define $ac_tr_func 1
31314_ACEOF
31315
31316	cat >>confdefs.h <<_ACEOF
31317#define $ac_tr_lib 1
31318_ACEOF
31319
31320	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31321echo "${ECHO_T}yes, in $ac_res" >&6
31322	;;
31323esac
31324
31325
31326if test -n "$LIB_getnameinfo"; then
31327	LIBS="$LIB_getnameinfo $LIBS"
31328fi
31329
31330if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
31331	case $LIBOBJS in
31332    "getnameinfo.$ac_objext"   | \
31333  *" getnameinfo.$ac_objext"   | \
31334    "getnameinfo.$ac_objext "* | \
31335  *" getnameinfo.$ac_objext "* ) ;;
31336  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" ;;
31337esac
31338
31339fi
31340
31341
31342
31343
31344
31345
31346echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
31347echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
31348if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
31349  echo $ECHO_N "(cached) $ECHO_C" >&6
31350else
31351
31352if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
31353	ac_save_LIBS="$LIBS"
31354	for ac_lib in "" ; do
31355		case "$ac_lib" in
31356		"") ;;
31357		yes) ac_lib="" ;;
31358		no) continue ;;
31359		-l*) ;;
31360		*) ac_lib="-l$ac_lib" ;;
31361		esac
31362		LIBS=" $ac_lib  $ac_save_LIBS"
31363		cat >conftest.$ac_ext <<_ACEOF
31364/* confdefs.h.  */
31365_ACEOF
31366cat confdefs.h >>conftest.$ac_ext
31367cat >>conftest.$ac_ext <<_ACEOF
31368/* end confdefs.h.  */
31369#ifdef HAVE_NETDB_H
31370#include <netdb.h>
31371#endif
31372int
31373main ()
31374{
31375freeaddrinfo(0)
31376  ;
31377  return 0;
31378}
31379_ACEOF
31380rm -f conftest.$ac_objext conftest$ac_exeext
31381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31382  (eval $ac_link) 2>conftest.er1
31383  ac_status=$?
31384  grep -v '^ *+' conftest.er1 >conftest.err
31385  rm -f conftest.er1
31386  cat conftest.err >&5
31387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388  (exit $ac_status); } &&
31389	 { ac_try='test -z "$ac_c_werror_flag"
31390			 || test ! -s conftest.err'
31391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392  (eval $ac_try) 2>&5
31393  ac_status=$?
31394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395  (exit $ac_status); }; } &&
31396	 { ac_try='test -s conftest$ac_exeext'
31397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398  (eval $ac_try) 2>&5
31399  ac_status=$?
31400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401  (exit $ac_status); }; }; then
31402  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
31403else
31404  echo "$as_me: failed program was:" >&5
31405sed 's/^/| /' conftest.$ac_ext >&5
31406
31407fi
31408rm -f conftest.err conftest.$ac_objext \
31409      conftest$ac_exeext conftest.$ac_ext
31410	done
31411	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
31412	LIBS="$ac_save_LIBS"
31413fi
31414
31415fi
31416
31417
31418eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
31419
31420if false; then
31421
31422for ac_func in freeaddrinfo
31423do
31424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31425echo "$as_me:$LINENO: checking for $ac_func" >&5
31426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31427if eval "test \"\${$as_ac_var+set}\" = set"; then
31428  echo $ECHO_N "(cached) $ECHO_C" >&6
31429else
31430  cat >conftest.$ac_ext <<_ACEOF
31431/* confdefs.h.  */
31432_ACEOF
31433cat confdefs.h >>conftest.$ac_ext
31434cat >>conftest.$ac_ext <<_ACEOF
31435/* end confdefs.h.  */
31436/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31437   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31438#define $ac_func innocuous_$ac_func
31439
31440/* System header to define __stub macros and hopefully few prototypes,
31441    which can conflict with char $ac_func (); below.
31442    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31443    <limits.h> exists even on freestanding compilers.  */
31444
31445#ifdef __STDC__
31446# include <limits.h>
31447#else
31448# include <assert.h>
31449#endif
31450
31451#undef $ac_func
31452
31453/* Override any gcc2 internal prototype to avoid an error.  */
31454#ifdef __cplusplus
31455extern "C"
31456{
31457#endif
31458/* We use char because int might match the return type of a gcc2
31459   builtin and then its argument prototype would still apply.  */
31460char $ac_func ();
31461/* The GNU C library defines this for functions which it implements
31462    to always fail with ENOSYS.  Some functions are actually named
31463    something starting with __ and the normal name is an alias.  */
31464#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31465choke me
31466#else
31467char (*f) () = $ac_func;
31468#endif
31469#ifdef __cplusplus
31470}
31471#endif
31472
31473int
31474main ()
31475{
31476return f != $ac_func;
31477  ;
31478  return 0;
31479}
31480_ACEOF
31481rm -f conftest.$ac_objext conftest$ac_exeext
31482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31483  (eval $ac_link) 2>conftest.er1
31484  ac_status=$?
31485  grep -v '^ *+' conftest.er1 >conftest.err
31486  rm -f conftest.er1
31487  cat conftest.err >&5
31488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489  (exit $ac_status); } &&
31490	 { ac_try='test -z "$ac_c_werror_flag"
31491			 || test ! -s conftest.err'
31492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493  (eval $ac_try) 2>&5
31494  ac_status=$?
31495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496  (exit $ac_status); }; } &&
31497	 { ac_try='test -s conftest$ac_exeext'
31498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499  (eval $ac_try) 2>&5
31500  ac_status=$?
31501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502  (exit $ac_status); }; }; then
31503  eval "$as_ac_var=yes"
31504else
31505  echo "$as_me: failed program was:" >&5
31506sed 's/^/| /' conftest.$ac_ext >&5
31507
31508eval "$as_ac_var=no"
31509fi
31510rm -f conftest.err conftest.$ac_objext \
31511      conftest$ac_exeext conftest.$ac_ext
31512fi
31513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31514echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31515if test `eval echo '${'$as_ac_var'}'` = yes; then
31516  cat >>confdefs.h <<_ACEOF
31517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31518_ACEOF
31519
31520fi
31521done
31522
31523fi
31524# freeaddrinfo
31525eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31526eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31527eval "LIB_freeaddrinfo=$ac_res"
31528
31529case "$ac_res" in
31530	yes)
31531	eval "ac_cv_func_freeaddrinfo=yes"
31532	eval "LIB_freeaddrinfo="
31533	cat >>confdefs.h <<_ACEOF
31534#define $ac_tr_func 1
31535_ACEOF
31536
31537	echo "$as_me:$LINENO: result: yes" >&5
31538echo "${ECHO_T}yes" >&6
31539	;;
31540	no)
31541	eval "ac_cv_func_freeaddrinfo=no"
31542	eval "LIB_freeaddrinfo="
31543	echo "$as_me:$LINENO: result: no" >&5
31544echo "${ECHO_T}no" >&6
31545	;;
31546	*)
31547	eval "ac_cv_func_freeaddrinfo=yes"
31548	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31549	cat >>confdefs.h <<_ACEOF
31550#define $ac_tr_func 1
31551_ACEOF
31552
31553	cat >>confdefs.h <<_ACEOF
31554#define $ac_tr_lib 1
31555_ACEOF
31556
31557	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31558echo "${ECHO_T}yes, in $ac_res" >&6
31559	;;
31560esac
31561
31562
31563if test -n "$LIB_freeaddrinfo"; then
31564	LIBS="$LIB_freeaddrinfo $LIBS"
31565fi
31566
31567if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
31568	case $LIBOBJS in
31569    "freeaddrinfo.$ac_objext"   | \
31570  *" freeaddrinfo.$ac_objext"   | \
31571    "freeaddrinfo.$ac_objext "* | \
31572  *" freeaddrinfo.$ac_objext "* ) ;;
31573  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" ;;
31574esac
31575
31576fi
31577
31578
31579
31580
31581
31582
31583echo "$as_me:$LINENO: checking for gai_strerror" >&5
31584echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
31585if test "${ac_cv_funclib_gai_strerror+set}" = set; then
31586  echo $ECHO_N "(cached) $ECHO_C" >&6
31587else
31588
31589if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
31590	ac_save_LIBS="$LIBS"
31591	for ac_lib in "" ; do
31592		case "$ac_lib" in
31593		"") ;;
31594		yes) ac_lib="" ;;
31595		no) continue ;;
31596		-l*) ;;
31597		*) ac_lib="-l$ac_lib" ;;
31598		esac
31599		LIBS=" $ac_lib  $ac_save_LIBS"
31600		cat >conftest.$ac_ext <<_ACEOF
31601/* confdefs.h.  */
31602_ACEOF
31603cat confdefs.h >>conftest.$ac_ext
31604cat >>conftest.$ac_ext <<_ACEOF
31605/* end confdefs.h.  */
31606#ifdef HAVE_NETDB_H
31607#include <netdb.h>
31608#endif
31609int
31610main ()
31611{
31612gai_strerror(0)
31613  ;
31614  return 0;
31615}
31616_ACEOF
31617rm -f conftest.$ac_objext conftest$ac_exeext
31618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31619  (eval $ac_link) 2>conftest.er1
31620  ac_status=$?
31621  grep -v '^ *+' conftest.er1 >conftest.err
31622  rm -f conftest.er1
31623  cat conftest.err >&5
31624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625  (exit $ac_status); } &&
31626	 { ac_try='test -z "$ac_c_werror_flag"
31627			 || test ! -s conftest.err'
31628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31629  (eval $ac_try) 2>&5
31630  ac_status=$?
31631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632  (exit $ac_status); }; } &&
31633	 { ac_try='test -s conftest$ac_exeext'
31634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635  (eval $ac_try) 2>&5
31636  ac_status=$?
31637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638  (exit $ac_status); }; }; then
31639  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
31640else
31641  echo "$as_me: failed program was:" >&5
31642sed 's/^/| /' conftest.$ac_ext >&5
31643
31644fi
31645rm -f conftest.err conftest.$ac_objext \
31646      conftest$ac_exeext conftest.$ac_ext
31647	done
31648	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
31649	LIBS="$ac_save_LIBS"
31650fi
31651
31652fi
31653
31654
31655eval "ac_res=\$ac_cv_funclib_gai_strerror"
31656
31657if false; then
31658
31659for ac_func in gai_strerror
31660do
31661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31662echo "$as_me:$LINENO: checking for $ac_func" >&5
31663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31664if eval "test \"\${$as_ac_var+set}\" = set"; then
31665  echo $ECHO_N "(cached) $ECHO_C" >&6
31666else
31667  cat >conftest.$ac_ext <<_ACEOF
31668/* confdefs.h.  */
31669_ACEOF
31670cat confdefs.h >>conftest.$ac_ext
31671cat >>conftest.$ac_ext <<_ACEOF
31672/* end confdefs.h.  */
31673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31674   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31675#define $ac_func innocuous_$ac_func
31676
31677/* System header to define __stub macros and hopefully few prototypes,
31678    which can conflict with char $ac_func (); below.
31679    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31680    <limits.h> exists even on freestanding compilers.  */
31681
31682#ifdef __STDC__
31683# include <limits.h>
31684#else
31685# include <assert.h>
31686#endif
31687
31688#undef $ac_func
31689
31690/* Override any gcc2 internal prototype to avoid an error.  */
31691#ifdef __cplusplus
31692extern "C"
31693{
31694#endif
31695/* We use char because int might match the return type of a gcc2
31696   builtin and then its argument prototype would still apply.  */
31697char $ac_func ();
31698/* The GNU C library defines this for functions which it implements
31699    to always fail with ENOSYS.  Some functions are actually named
31700    something starting with __ and the normal name is an alias.  */
31701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31702choke me
31703#else
31704char (*f) () = $ac_func;
31705#endif
31706#ifdef __cplusplus
31707}
31708#endif
31709
31710int
31711main ()
31712{
31713return f != $ac_func;
31714  ;
31715  return 0;
31716}
31717_ACEOF
31718rm -f conftest.$ac_objext conftest$ac_exeext
31719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31720  (eval $ac_link) 2>conftest.er1
31721  ac_status=$?
31722  grep -v '^ *+' conftest.er1 >conftest.err
31723  rm -f conftest.er1
31724  cat conftest.err >&5
31725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726  (exit $ac_status); } &&
31727	 { ac_try='test -z "$ac_c_werror_flag"
31728			 || test ! -s conftest.err'
31729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31730  (eval $ac_try) 2>&5
31731  ac_status=$?
31732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733  (exit $ac_status); }; } &&
31734	 { ac_try='test -s conftest$ac_exeext'
31735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31736  (eval $ac_try) 2>&5
31737  ac_status=$?
31738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739  (exit $ac_status); }; }; then
31740  eval "$as_ac_var=yes"
31741else
31742  echo "$as_me: failed program was:" >&5
31743sed 's/^/| /' conftest.$ac_ext >&5
31744
31745eval "$as_ac_var=no"
31746fi
31747rm -f conftest.err conftest.$ac_objext \
31748      conftest$ac_exeext conftest.$ac_ext
31749fi
31750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31752if test `eval echo '${'$as_ac_var'}'` = yes; then
31753  cat >>confdefs.h <<_ACEOF
31754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31755_ACEOF
31756
31757fi
31758done
31759
31760fi
31761# gai_strerror
31762eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31763eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31764eval "LIB_gai_strerror=$ac_res"
31765
31766case "$ac_res" in
31767	yes)
31768	eval "ac_cv_func_gai_strerror=yes"
31769	eval "LIB_gai_strerror="
31770	cat >>confdefs.h <<_ACEOF
31771#define $ac_tr_func 1
31772_ACEOF
31773
31774	echo "$as_me:$LINENO: result: yes" >&5
31775echo "${ECHO_T}yes" >&6
31776	;;
31777	no)
31778	eval "ac_cv_func_gai_strerror=no"
31779	eval "LIB_gai_strerror="
31780	echo "$as_me:$LINENO: result: no" >&5
31781echo "${ECHO_T}no" >&6
31782	;;
31783	*)
31784	eval "ac_cv_func_gai_strerror=yes"
31785	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31786	cat >>confdefs.h <<_ACEOF
31787#define $ac_tr_func 1
31788_ACEOF
31789
31790	cat >>confdefs.h <<_ACEOF
31791#define $ac_tr_lib 1
31792_ACEOF
31793
31794	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31795echo "${ECHO_T}yes, in $ac_res" >&6
31796	;;
31797esac
31798
31799
31800if test -n "$LIB_gai_strerror"; then
31801	LIBS="$LIB_gai_strerror $LIBS"
31802fi
31803
31804if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
31805	case $LIBOBJS in
31806    "gai_strerror.$ac_objext"   | \
31807  *" gai_strerror.$ac_objext"   | \
31808    "gai_strerror.$ac_objext "* | \
31809  *" gai_strerror.$ac_objext "* ) ;;
31810  *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" ;;
31811esac
31812
31813fi
31814
31815
31816echo "$as_me:$LINENO: checking for chown" >&5
31817echo $ECHO_N "checking for chown... $ECHO_C" >&6
31818if test "${ac_cv_func_chown+set}" = set; then
31819  echo $ECHO_N "(cached) $ECHO_C" >&6
31820else
31821  cat >conftest.$ac_ext <<_ACEOF
31822/* confdefs.h.  */
31823_ACEOF
31824cat confdefs.h >>conftest.$ac_ext
31825cat >>conftest.$ac_ext <<_ACEOF
31826/* end confdefs.h.  */
31827/* Define chown to an innocuous variant, in case <limits.h> declares chown.
31828   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31829#define chown innocuous_chown
31830
31831/* System header to define __stub macros and hopefully few prototypes,
31832    which can conflict with char chown (); below.
31833    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31834    <limits.h> exists even on freestanding compilers.  */
31835
31836#ifdef __STDC__
31837# include <limits.h>
31838#else
31839# include <assert.h>
31840#endif
31841
31842#undef chown
31843
31844/* Override any gcc2 internal prototype to avoid an error.  */
31845#ifdef __cplusplus
31846extern "C"
31847{
31848#endif
31849/* We use char because int might match the return type of a gcc2
31850   builtin and then its argument prototype would still apply.  */
31851char chown ();
31852/* The GNU C library defines this for functions which it implements
31853    to always fail with ENOSYS.  Some functions are actually named
31854    something starting with __ and the normal name is an alias.  */
31855#if defined (__stub_chown) || defined (__stub___chown)
31856choke me
31857#else
31858char (*f) () = chown;
31859#endif
31860#ifdef __cplusplus
31861}
31862#endif
31863
31864int
31865main ()
31866{
31867return f != chown;
31868  ;
31869  return 0;
31870}
31871_ACEOF
31872rm -f conftest.$ac_objext conftest$ac_exeext
31873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31874  (eval $ac_link) 2>conftest.er1
31875  ac_status=$?
31876  grep -v '^ *+' conftest.er1 >conftest.err
31877  rm -f conftest.er1
31878  cat conftest.err >&5
31879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880  (exit $ac_status); } &&
31881	 { ac_try='test -z "$ac_c_werror_flag"
31882			 || test ! -s conftest.err'
31883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31884  (eval $ac_try) 2>&5
31885  ac_status=$?
31886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887  (exit $ac_status); }; } &&
31888	 { ac_try='test -s conftest$ac_exeext'
31889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890  (eval $ac_try) 2>&5
31891  ac_status=$?
31892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893  (exit $ac_status); }; }; then
31894  ac_cv_func_chown=yes
31895else
31896  echo "$as_me: failed program was:" >&5
31897sed 's/^/| /' conftest.$ac_ext >&5
31898
31899ac_cv_func_chown=no
31900fi
31901rm -f conftest.err conftest.$ac_objext \
31902      conftest$ac_exeext conftest.$ac_ext
31903fi
31904echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
31905echo "${ECHO_T}$ac_cv_func_chown" >&6
31906if test $ac_cv_func_chown = yes; then
31907
31908cat >>confdefs.h <<_ACEOF
31909#define HAVE_CHOWN 1
31910_ACEOF
31911
31912else
31913  case $LIBOBJS in
31914    "chown.$ac_objext"   | \
31915  *" chown.$ac_objext"   | \
31916    "chown.$ac_objext "* | \
31917  *" chown.$ac_objext "* ) ;;
31918  *) LIBOBJS="$LIBOBJS chown.$ac_objext" ;;
31919esac
31920
31921fi
31922echo "$as_me:$LINENO: checking for copyhostent" >&5
31923echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
31924if test "${ac_cv_func_copyhostent+set}" = set; then
31925  echo $ECHO_N "(cached) $ECHO_C" >&6
31926else
31927  cat >conftest.$ac_ext <<_ACEOF
31928/* confdefs.h.  */
31929_ACEOF
31930cat confdefs.h >>conftest.$ac_ext
31931cat >>conftest.$ac_ext <<_ACEOF
31932/* end confdefs.h.  */
31933/* Define copyhostent to an innocuous variant, in case <limits.h> declares copyhostent.
31934   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31935#define copyhostent innocuous_copyhostent
31936
31937/* System header to define __stub macros and hopefully few prototypes,
31938    which can conflict with char copyhostent (); below.
31939    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31940    <limits.h> exists even on freestanding compilers.  */
31941
31942#ifdef __STDC__
31943# include <limits.h>
31944#else
31945# include <assert.h>
31946#endif
31947
31948#undef copyhostent
31949
31950/* Override any gcc2 internal prototype to avoid an error.  */
31951#ifdef __cplusplus
31952extern "C"
31953{
31954#endif
31955/* We use char because int might match the return type of a gcc2
31956   builtin and then its argument prototype would still apply.  */
31957char copyhostent ();
31958/* The GNU C library defines this for functions which it implements
31959    to always fail with ENOSYS.  Some functions are actually named
31960    something starting with __ and the normal name is an alias.  */
31961#if defined (__stub_copyhostent) || defined (__stub___copyhostent)
31962choke me
31963#else
31964char (*f) () = copyhostent;
31965#endif
31966#ifdef __cplusplus
31967}
31968#endif
31969
31970int
31971main ()
31972{
31973return f != copyhostent;
31974  ;
31975  return 0;
31976}
31977_ACEOF
31978rm -f conftest.$ac_objext conftest$ac_exeext
31979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31980  (eval $ac_link) 2>conftest.er1
31981  ac_status=$?
31982  grep -v '^ *+' conftest.er1 >conftest.err
31983  rm -f conftest.er1
31984  cat conftest.err >&5
31985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986  (exit $ac_status); } &&
31987	 { ac_try='test -z "$ac_c_werror_flag"
31988			 || test ! -s conftest.err'
31989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31990  (eval $ac_try) 2>&5
31991  ac_status=$?
31992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993  (exit $ac_status); }; } &&
31994	 { ac_try='test -s conftest$ac_exeext'
31995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31996  (eval $ac_try) 2>&5
31997  ac_status=$?
31998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999  (exit $ac_status); }; }; then
32000  ac_cv_func_copyhostent=yes
32001else
32002  echo "$as_me: failed program was:" >&5
32003sed 's/^/| /' conftest.$ac_ext >&5
32004
32005ac_cv_func_copyhostent=no
32006fi
32007rm -f conftest.err conftest.$ac_objext \
32008      conftest$ac_exeext conftest.$ac_ext
32009fi
32010echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
32011echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
32012if test $ac_cv_func_copyhostent = yes; then
32013
32014cat >>confdefs.h <<_ACEOF
32015#define HAVE_COPYHOSTENT 1
32016_ACEOF
32017
32018else
32019  case $LIBOBJS in
32020    "copyhostent.$ac_objext"   | \
32021  *" copyhostent.$ac_objext"   | \
32022    "copyhostent.$ac_objext "* | \
32023  *" copyhostent.$ac_objext "* ) ;;
32024  *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext" ;;
32025esac
32026
32027fi
32028echo "$as_me:$LINENO: checking for daemon" >&5
32029echo $ECHO_N "checking for daemon... $ECHO_C" >&6
32030if test "${ac_cv_func_daemon+set}" = set; then
32031  echo $ECHO_N "(cached) $ECHO_C" >&6
32032else
32033  cat >conftest.$ac_ext <<_ACEOF
32034/* confdefs.h.  */
32035_ACEOF
32036cat confdefs.h >>conftest.$ac_ext
32037cat >>conftest.$ac_ext <<_ACEOF
32038/* end confdefs.h.  */
32039/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
32040   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32041#define daemon innocuous_daemon
32042
32043/* System header to define __stub macros and hopefully few prototypes,
32044    which can conflict with char daemon (); below.
32045    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32046    <limits.h> exists even on freestanding compilers.  */
32047
32048#ifdef __STDC__
32049# include <limits.h>
32050#else
32051# include <assert.h>
32052#endif
32053
32054#undef daemon
32055
32056/* Override any gcc2 internal prototype to avoid an error.  */
32057#ifdef __cplusplus
32058extern "C"
32059{
32060#endif
32061/* We use char because int might match the return type of a gcc2
32062   builtin and then its argument prototype would still apply.  */
32063char daemon ();
32064/* The GNU C library defines this for functions which it implements
32065    to always fail with ENOSYS.  Some functions are actually named
32066    something starting with __ and the normal name is an alias.  */
32067#if defined (__stub_daemon) || defined (__stub___daemon)
32068choke me
32069#else
32070char (*f) () = daemon;
32071#endif
32072#ifdef __cplusplus
32073}
32074#endif
32075
32076int
32077main ()
32078{
32079return f != daemon;
32080  ;
32081  return 0;
32082}
32083_ACEOF
32084rm -f conftest.$ac_objext conftest$ac_exeext
32085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32086  (eval $ac_link) 2>conftest.er1
32087  ac_status=$?
32088  grep -v '^ *+' conftest.er1 >conftest.err
32089  rm -f conftest.er1
32090  cat conftest.err >&5
32091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092  (exit $ac_status); } &&
32093	 { ac_try='test -z "$ac_c_werror_flag"
32094			 || test ! -s conftest.err'
32095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32096  (eval $ac_try) 2>&5
32097  ac_status=$?
32098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099  (exit $ac_status); }; } &&
32100	 { ac_try='test -s conftest$ac_exeext'
32101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32102  (eval $ac_try) 2>&5
32103  ac_status=$?
32104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105  (exit $ac_status); }; }; then
32106  ac_cv_func_daemon=yes
32107else
32108  echo "$as_me: failed program was:" >&5
32109sed 's/^/| /' conftest.$ac_ext >&5
32110
32111ac_cv_func_daemon=no
32112fi
32113rm -f conftest.err conftest.$ac_objext \
32114      conftest$ac_exeext conftest.$ac_ext
32115fi
32116echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
32117echo "${ECHO_T}$ac_cv_func_daemon" >&6
32118if test $ac_cv_func_daemon = yes; then
32119
32120cat >>confdefs.h <<_ACEOF
32121#define HAVE_DAEMON 1
32122_ACEOF
32123
32124else
32125  case $LIBOBJS in
32126    "daemon.$ac_objext"   | \
32127  *" daemon.$ac_objext"   | \
32128    "daemon.$ac_objext "* | \
32129  *" daemon.$ac_objext "* ) ;;
32130  *) LIBOBJS="$LIBOBJS daemon.$ac_objext" ;;
32131esac
32132
32133fi
32134echo "$as_me:$LINENO: checking for ecalloc" >&5
32135echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
32136if test "${ac_cv_func_ecalloc+set}" = set; then
32137  echo $ECHO_N "(cached) $ECHO_C" >&6
32138else
32139  cat >conftest.$ac_ext <<_ACEOF
32140/* confdefs.h.  */
32141_ACEOF
32142cat confdefs.h >>conftest.$ac_ext
32143cat >>conftest.$ac_ext <<_ACEOF
32144/* end confdefs.h.  */
32145/* Define ecalloc to an innocuous variant, in case <limits.h> declares ecalloc.
32146   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32147#define ecalloc innocuous_ecalloc
32148
32149/* System header to define __stub macros and hopefully few prototypes,
32150    which can conflict with char ecalloc (); below.
32151    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32152    <limits.h> exists even on freestanding compilers.  */
32153
32154#ifdef __STDC__
32155# include <limits.h>
32156#else
32157# include <assert.h>
32158#endif
32159
32160#undef ecalloc
32161
32162/* Override any gcc2 internal prototype to avoid an error.  */
32163#ifdef __cplusplus
32164extern "C"
32165{
32166#endif
32167/* We use char because int might match the return type of a gcc2
32168   builtin and then its argument prototype would still apply.  */
32169char ecalloc ();
32170/* The GNU C library defines this for functions which it implements
32171    to always fail with ENOSYS.  Some functions are actually named
32172    something starting with __ and the normal name is an alias.  */
32173#if defined (__stub_ecalloc) || defined (__stub___ecalloc)
32174choke me
32175#else
32176char (*f) () = ecalloc;
32177#endif
32178#ifdef __cplusplus
32179}
32180#endif
32181
32182int
32183main ()
32184{
32185return f != ecalloc;
32186  ;
32187  return 0;
32188}
32189_ACEOF
32190rm -f conftest.$ac_objext conftest$ac_exeext
32191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32192  (eval $ac_link) 2>conftest.er1
32193  ac_status=$?
32194  grep -v '^ *+' conftest.er1 >conftest.err
32195  rm -f conftest.er1
32196  cat conftest.err >&5
32197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32198  (exit $ac_status); } &&
32199	 { ac_try='test -z "$ac_c_werror_flag"
32200			 || test ! -s conftest.err'
32201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32202  (eval $ac_try) 2>&5
32203  ac_status=$?
32204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205  (exit $ac_status); }; } &&
32206	 { ac_try='test -s conftest$ac_exeext'
32207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208  (eval $ac_try) 2>&5
32209  ac_status=$?
32210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211  (exit $ac_status); }; }; then
32212  ac_cv_func_ecalloc=yes
32213else
32214  echo "$as_me: failed program was:" >&5
32215sed 's/^/| /' conftest.$ac_ext >&5
32216
32217ac_cv_func_ecalloc=no
32218fi
32219rm -f conftest.err conftest.$ac_objext \
32220      conftest$ac_exeext conftest.$ac_ext
32221fi
32222echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
32223echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
32224if test $ac_cv_func_ecalloc = yes; then
32225
32226cat >>confdefs.h <<_ACEOF
32227#define HAVE_ECALLOC 1
32228_ACEOF
32229
32230else
32231  case $LIBOBJS in
32232    "ecalloc.$ac_objext"   | \
32233  *" ecalloc.$ac_objext"   | \
32234    "ecalloc.$ac_objext "* | \
32235  *" ecalloc.$ac_objext "* ) ;;
32236  *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext" ;;
32237esac
32238
32239fi
32240echo "$as_me:$LINENO: checking for emalloc" >&5
32241echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
32242if test "${ac_cv_func_emalloc+set}" = set; then
32243  echo $ECHO_N "(cached) $ECHO_C" >&6
32244else
32245  cat >conftest.$ac_ext <<_ACEOF
32246/* confdefs.h.  */
32247_ACEOF
32248cat confdefs.h >>conftest.$ac_ext
32249cat >>conftest.$ac_ext <<_ACEOF
32250/* end confdefs.h.  */
32251/* Define emalloc to an innocuous variant, in case <limits.h> declares emalloc.
32252   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32253#define emalloc innocuous_emalloc
32254
32255/* System header to define __stub macros and hopefully few prototypes,
32256    which can conflict with char emalloc (); below.
32257    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32258    <limits.h> exists even on freestanding compilers.  */
32259
32260#ifdef __STDC__
32261# include <limits.h>
32262#else
32263# include <assert.h>
32264#endif
32265
32266#undef emalloc
32267
32268/* Override any gcc2 internal prototype to avoid an error.  */
32269#ifdef __cplusplus
32270extern "C"
32271{
32272#endif
32273/* We use char because int might match the return type of a gcc2
32274   builtin and then its argument prototype would still apply.  */
32275char emalloc ();
32276/* The GNU C library defines this for functions which it implements
32277    to always fail with ENOSYS.  Some functions are actually named
32278    something starting with __ and the normal name is an alias.  */
32279#if defined (__stub_emalloc) || defined (__stub___emalloc)
32280choke me
32281#else
32282char (*f) () = emalloc;
32283#endif
32284#ifdef __cplusplus
32285}
32286#endif
32287
32288int
32289main ()
32290{
32291return f != emalloc;
32292  ;
32293  return 0;
32294}
32295_ACEOF
32296rm -f conftest.$ac_objext conftest$ac_exeext
32297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32298  (eval $ac_link) 2>conftest.er1
32299  ac_status=$?
32300  grep -v '^ *+' conftest.er1 >conftest.err
32301  rm -f conftest.er1
32302  cat conftest.err >&5
32303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304  (exit $ac_status); } &&
32305	 { ac_try='test -z "$ac_c_werror_flag"
32306			 || test ! -s conftest.err'
32307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32308  (eval $ac_try) 2>&5
32309  ac_status=$?
32310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32311  (exit $ac_status); }; } &&
32312	 { ac_try='test -s conftest$ac_exeext'
32313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32314  (eval $ac_try) 2>&5
32315  ac_status=$?
32316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317  (exit $ac_status); }; }; then
32318  ac_cv_func_emalloc=yes
32319else
32320  echo "$as_me: failed program was:" >&5
32321sed 's/^/| /' conftest.$ac_ext >&5
32322
32323ac_cv_func_emalloc=no
32324fi
32325rm -f conftest.err conftest.$ac_objext \
32326      conftest$ac_exeext conftest.$ac_ext
32327fi
32328echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
32329echo "${ECHO_T}$ac_cv_func_emalloc" >&6
32330if test $ac_cv_func_emalloc = yes; then
32331
32332cat >>confdefs.h <<_ACEOF
32333#define HAVE_EMALLOC 1
32334_ACEOF
32335
32336else
32337  case $LIBOBJS in
32338    "emalloc.$ac_objext"   | \
32339  *" emalloc.$ac_objext"   | \
32340    "emalloc.$ac_objext "* | \
32341  *" emalloc.$ac_objext "* ) ;;
32342  *) LIBOBJS="$LIBOBJS emalloc.$ac_objext" ;;
32343esac
32344
32345fi
32346echo "$as_me:$LINENO: checking for erealloc" >&5
32347echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
32348if test "${ac_cv_func_erealloc+set}" = set; then
32349  echo $ECHO_N "(cached) $ECHO_C" >&6
32350else
32351  cat >conftest.$ac_ext <<_ACEOF
32352/* confdefs.h.  */
32353_ACEOF
32354cat confdefs.h >>conftest.$ac_ext
32355cat >>conftest.$ac_ext <<_ACEOF
32356/* end confdefs.h.  */
32357/* Define erealloc to an innocuous variant, in case <limits.h> declares erealloc.
32358   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32359#define erealloc innocuous_erealloc
32360
32361/* System header to define __stub macros and hopefully few prototypes,
32362    which can conflict with char erealloc (); below.
32363    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32364    <limits.h> exists even on freestanding compilers.  */
32365
32366#ifdef __STDC__
32367# include <limits.h>
32368#else
32369# include <assert.h>
32370#endif
32371
32372#undef erealloc
32373
32374/* Override any gcc2 internal prototype to avoid an error.  */
32375#ifdef __cplusplus
32376extern "C"
32377{
32378#endif
32379/* We use char because int might match the return type of a gcc2
32380   builtin and then its argument prototype would still apply.  */
32381char erealloc ();
32382/* The GNU C library defines this for functions which it implements
32383    to always fail with ENOSYS.  Some functions are actually named
32384    something starting with __ and the normal name is an alias.  */
32385#if defined (__stub_erealloc) || defined (__stub___erealloc)
32386choke me
32387#else
32388char (*f) () = erealloc;
32389#endif
32390#ifdef __cplusplus
32391}
32392#endif
32393
32394int
32395main ()
32396{
32397return f != erealloc;
32398  ;
32399  return 0;
32400}
32401_ACEOF
32402rm -f conftest.$ac_objext conftest$ac_exeext
32403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32404  (eval $ac_link) 2>conftest.er1
32405  ac_status=$?
32406  grep -v '^ *+' conftest.er1 >conftest.err
32407  rm -f conftest.er1
32408  cat conftest.err >&5
32409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410  (exit $ac_status); } &&
32411	 { ac_try='test -z "$ac_c_werror_flag"
32412			 || test ! -s conftest.err'
32413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32414  (eval $ac_try) 2>&5
32415  ac_status=$?
32416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417  (exit $ac_status); }; } &&
32418	 { ac_try='test -s conftest$ac_exeext'
32419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32420  (eval $ac_try) 2>&5
32421  ac_status=$?
32422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423  (exit $ac_status); }; }; then
32424  ac_cv_func_erealloc=yes
32425else
32426  echo "$as_me: failed program was:" >&5
32427sed 's/^/| /' conftest.$ac_ext >&5
32428
32429ac_cv_func_erealloc=no
32430fi
32431rm -f conftest.err conftest.$ac_objext \
32432      conftest$ac_exeext conftest.$ac_ext
32433fi
32434echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
32435echo "${ECHO_T}$ac_cv_func_erealloc" >&6
32436if test $ac_cv_func_erealloc = yes; then
32437
32438cat >>confdefs.h <<_ACEOF
32439#define HAVE_EREALLOC 1
32440_ACEOF
32441
32442else
32443  case $LIBOBJS in
32444    "erealloc.$ac_objext"   | \
32445  *" erealloc.$ac_objext"   | \
32446    "erealloc.$ac_objext "* | \
32447  *" erealloc.$ac_objext "* ) ;;
32448  *) LIBOBJS="$LIBOBJS erealloc.$ac_objext" ;;
32449esac
32450
32451fi
32452echo "$as_me:$LINENO: checking for estrdup" >&5
32453echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
32454if test "${ac_cv_func_estrdup+set}" = set; then
32455  echo $ECHO_N "(cached) $ECHO_C" >&6
32456else
32457  cat >conftest.$ac_ext <<_ACEOF
32458/* confdefs.h.  */
32459_ACEOF
32460cat confdefs.h >>conftest.$ac_ext
32461cat >>conftest.$ac_ext <<_ACEOF
32462/* end confdefs.h.  */
32463/* Define estrdup to an innocuous variant, in case <limits.h> declares estrdup.
32464   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32465#define estrdup innocuous_estrdup
32466
32467/* System header to define __stub macros and hopefully few prototypes,
32468    which can conflict with char estrdup (); below.
32469    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32470    <limits.h> exists even on freestanding compilers.  */
32471
32472#ifdef __STDC__
32473# include <limits.h>
32474#else
32475# include <assert.h>
32476#endif
32477
32478#undef estrdup
32479
32480/* Override any gcc2 internal prototype to avoid an error.  */
32481#ifdef __cplusplus
32482extern "C"
32483{
32484#endif
32485/* We use char because int might match the return type of a gcc2
32486   builtin and then its argument prototype would still apply.  */
32487char estrdup ();
32488/* The GNU C library defines this for functions which it implements
32489    to always fail with ENOSYS.  Some functions are actually named
32490    something starting with __ and the normal name is an alias.  */
32491#if defined (__stub_estrdup) || defined (__stub___estrdup)
32492choke me
32493#else
32494char (*f) () = estrdup;
32495#endif
32496#ifdef __cplusplus
32497}
32498#endif
32499
32500int
32501main ()
32502{
32503return f != estrdup;
32504  ;
32505  return 0;
32506}
32507_ACEOF
32508rm -f conftest.$ac_objext conftest$ac_exeext
32509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32510  (eval $ac_link) 2>conftest.er1
32511  ac_status=$?
32512  grep -v '^ *+' conftest.er1 >conftest.err
32513  rm -f conftest.er1
32514  cat conftest.err >&5
32515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516  (exit $ac_status); } &&
32517	 { ac_try='test -z "$ac_c_werror_flag"
32518			 || test ! -s conftest.err'
32519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32520  (eval $ac_try) 2>&5
32521  ac_status=$?
32522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523  (exit $ac_status); }; } &&
32524	 { ac_try='test -s conftest$ac_exeext'
32525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32526  (eval $ac_try) 2>&5
32527  ac_status=$?
32528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529  (exit $ac_status); }; }; then
32530  ac_cv_func_estrdup=yes
32531else
32532  echo "$as_me: failed program was:" >&5
32533sed 's/^/| /' conftest.$ac_ext >&5
32534
32535ac_cv_func_estrdup=no
32536fi
32537rm -f conftest.err conftest.$ac_objext \
32538      conftest$ac_exeext conftest.$ac_ext
32539fi
32540echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
32541echo "${ECHO_T}$ac_cv_func_estrdup" >&6
32542if test $ac_cv_func_estrdup = yes; then
32543
32544cat >>confdefs.h <<_ACEOF
32545#define HAVE_ESTRDUP 1
32546_ACEOF
32547
32548else
32549  case $LIBOBJS in
32550    "estrdup.$ac_objext"   | \
32551  *" estrdup.$ac_objext"   | \
32552    "estrdup.$ac_objext "* | \
32553  *" estrdup.$ac_objext "* ) ;;
32554  *) LIBOBJS="$LIBOBJS estrdup.$ac_objext" ;;
32555esac
32556
32557fi
32558echo "$as_me:$LINENO: checking for err" >&5
32559echo $ECHO_N "checking for err... $ECHO_C" >&6
32560if test "${ac_cv_func_err+set}" = set; then
32561  echo $ECHO_N "(cached) $ECHO_C" >&6
32562else
32563  cat >conftest.$ac_ext <<_ACEOF
32564/* confdefs.h.  */
32565_ACEOF
32566cat confdefs.h >>conftest.$ac_ext
32567cat >>conftest.$ac_ext <<_ACEOF
32568/* end confdefs.h.  */
32569/* Define err to an innocuous variant, in case <limits.h> declares err.
32570   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32571#define err innocuous_err
32572
32573/* System header to define __stub macros and hopefully few prototypes,
32574    which can conflict with char err (); below.
32575    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32576    <limits.h> exists even on freestanding compilers.  */
32577
32578#ifdef __STDC__
32579# include <limits.h>
32580#else
32581# include <assert.h>
32582#endif
32583
32584#undef err
32585
32586/* Override any gcc2 internal prototype to avoid an error.  */
32587#ifdef __cplusplus
32588extern "C"
32589{
32590#endif
32591/* We use char because int might match the return type of a gcc2
32592   builtin and then its argument prototype would still apply.  */
32593char err ();
32594/* The GNU C library defines this for functions which it implements
32595    to always fail with ENOSYS.  Some functions are actually named
32596    something starting with __ and the normal name is an alias.  */
32597#if defined (__stub_err) || defined (__stub___err)
32598choke me
32599#else
32600char (*f) () = err;
32601#endif
32602#ifdef __cplusplus
32603}
32604#endif
32605
32606int
32607main ()
32608{
32609return f != err;
32610  ;
32611  return 0;
32612}
32613_ACEOF
32614rm -f conftest.$ac_objext conftest$ac_exeext
32615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32616  (eval $ac_link) 2>conftest.er1
32617  ac_status=$?
32618  grep -v '^ *+' conftest.er1 >conftest.err
32619  rm -f conftest.er1
32620  cat conftest.err >&5
32621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622  (exit $ac_status); } &&
32623	 { ac_try='test -z "$ac_c_werror_flag"
32624			 || test ! -s conftest.err'
32625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32626  (eval $ac_try) 2>&5
32627  ac_status=$?
32628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629  (exit $ac_status); }; } &&
32630	 { ac_try='test -s conftest$ac_exeext'
32631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32632  (eval $ac_try) 2>&5
32633  ac_status=$?
32634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635  (exit $ac_status); }; }; then
32636  ac_cv_func_err=yes
32637else
32638  echo "$as_me: failed program was:" >&5
32639sed 's/^/| /' conftest.$ac_ext >&5
32640
32641ac_cv_func_err=no
32642fi
32643rm -f conftest.err conftest.$ac_objext \
32644      conftest$ac_exeext conftest.$ac_ext
32645fi
32646echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
32647echo "${ECHO_T}$ac_cv_func_err" >&6
32648if test $ac_cv_func_err = yes; then
32649
32650cat >>confdefs.h <<_ACEOF
32651#define HAVE_ERR 1
32652_ACEOF
32653
32654else
32655  case $LIBOBJS in
32656    "err.$ac_objext"   | \
32657  *" err.$ac_objext"   | \
32658    "err.$ac_objext "* | \
32659  *" err.$ac_objext "* ) ;;
32660  *) LIBOBJS="$LIBOBJS err.$ac_objext" ;;
32661esac
32662
32663fi
32664echo "$as_me:$LINENO: checking for errx" >&5
32665echo $ECHO_N "checking for errx... $ECHO_C" >&6
32666if test "${ac_cv_func_errx+set}" = set; then
32667  echo $ECHO_N "(cached) $ECHO_C" >&6
32668else
32669  cat >conftest.$ac_ext <<_ACEOF
32670/* confdefs.h.  */
32671_ACEOF
32672cat confdefs.h >>conftest.$ac_ext
32673cat >>conftest.$ac_ext <<_ACEOF
32674/* end confdefs.h.  */
32675/* Define errx to an innocuous variant, in case <limits.h> declares errx.
32676   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32677#define errx innocuous_errx
32678
32679/* System header to define __stub macros and hopefully few prototypes,
32680    which can conflict with char errx (); below.
32681    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32682    <limits.h> exists even on freestanding compilers.  */
32683
32684#ifdef __STDC__
32685# include <limits.h>
32686#else
32687# include <assert.h>
32688#endif
32689
32690#undef errx
32691
32692/* Override any gcc2 internal prototype to avoid an error.  */
32693#ifdef __cplusplus
32694extern "C"
32695{
32696#endif
32697/* We use char because int might match the return type of a gcc2
32698   builtin and then its argument prototype would still apply.  */
32699char errx ();
32700/* The GNU C library defines this for functions which it implements
32701    to always fail with ENOSYS.  Some functions are actually named
32702    something starting with __ and the normal name is an alias.  */
32703#if defined (__stub_errx) || defined (__stub___errx)
32704choke me
32705#else
32706char (*f) () = errx;
32707#endif
32708#ifdef __cplusplus
32709}
32710#endif
32711
32712int
32713main ()
32714{
32715return f != errx;
32716  ;
32717  return 0;
32718}
32719_ACEOF
32720rm -f conftest.$ac_objext conftest$ac_exeext
32721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32722  (eval $ac_link) 2>conftest.er1
32723  ac_status=$?
32724  grep -v '^ *+' conftest.er1 >conftest.err
32725  rm -f conftest.er1
32726  cat conftest.err >&5
32727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728  (exit $ac_status); } &&
32729	 { ac_try='test -z "$ac_c_werror_flag"
32730			 || test ! -s conftest.err'
32731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32732  (eval $ac_try) 2>&5
32733  ac_status=$?
32734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32735  (exit $ac_status); }; } &&
32736	 { ac_try='test -s conftest$ac_exeext'
32737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32738  (eval $ac_try) 2>&5
32739  ac_status=$?
32740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741  (exit $ac_status); }; }; then
32742  ac_cv_func_errx=yes
32743else
32744  echo "$as_me: failed program was:" >&5
32745sed 's/^/| /' conftest.$ac_ext >&5
32746
32747ac_cv_func_errx=no
32748fi
32749rm -f conftest.err conftest.$ac_objext \
32750      conftest$ac_exeext conftest.$ac_ext
32751fi
32752echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
32753echo "${ECHO_T}$ac_cv_func_errx" >&6
32754if test $ac_cv_func_errx = yes; then
32755
32756cat >>confdefs.h <<_ACEOF
32757#define HAVE_ERRX 1
32758_ACEOF
32759
32760else
32761  case $LIBOBJS in
32762    "errx.$ac_objext"   | \
32763  *" errx.$ac_objext"   | \
32764    "errx.$ac_objext "* | \
32765  *" errx.$ac_objext "* ) ;;
32766  *) LIBOBJS="$LIBOBJS errx.$ac_objext" ;;
32767esac
32768
32769fi
32770echo "$as_me:$LINENO: checking for fchown" >&5
32771echo $ECHO_N "checking for fchown... $ECHO_C" >&6
32772if test "${ac_cv_func_fchown+set}" = set; then
32773  echo $ECHO_N "(cached) $ECHO_C" >&6
32774else
32775  cat >conftest.$ac_ext <<_ACEOF
32776/* confdefs.h.  */
32777_ACEOF
32778cat confdefs.h >>conftest.$ac_ext
32779cat >>conftest.$ac_ext <<_ACEOF
32780/* end confdefs.h.  */
32781/* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
32782   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32783#define fchown innocuous_fchown
32784
32785/* System header to define __stub macros and hopefully few prototypes,
32786    which can conflict with char fchown (); below.
32787    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32788    <limits.h> exists even on freestanding compilers.  */
32789
32790#ifdef __STDC__
32791# include <limits.h>
32792#else
32793# include <assert.h>
32794#endif
32795
32796#undef fchown
32797
32798/* Override any gcc2 internal prototype to avoid an error.  */
32799#ifdef __cplusplus
32800extern "C"
32801{
32802#endif
32803/* We use char because int might match the return type of a gcc2
32804   builtin and then its argument prototype would still apply.  */
32805char fchown ();
32806/* The GNU C library defines this for functions which it implements
32807    to always fail with ENOSYS.  Some functions are actually named
32808    something starting with __ and the normal name is an alias.  */
32809#if defined (__stub_fchown) || defined (__stub___fchown)
32810choke me
32811#else
32812char (*f) () = fchown;
32813#endif
32814#ifdef __cplusplus
32815}
32816#endif
32817
32818int
32819main ()
32820{
32821return f != fchown;
32822  ;
32823  return 0;
32824}
32825_ACEOF
32826rm -f conftest.$ac_objext conftest$ac_exeext
32827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32828  (eval $ac_link) 2>conftest.er1
32829  ac_status=$?
32830  grep -v '^ *+' conftest.er1 >conftest.err
32831  rm -f conftest.er1
32832  cat conftest.err >&5
32833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834  (exit $ac_status); } &&
32835	 { ac_try='test -z "$ac_c_werror_flag"
32836			 || test ! -s conftest.err'
32837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32838  (eval $ac_try) 2>&5
32839  ac_status=$?
32840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841  (exit $ac_status); }; } &&
32842	 { ac_try='test -s conftest$ac_exeext'
32843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32844  (eval $ac_try) 2>&5
32845  ac_status=$?
32846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847  (exit $ac_status); }; }; then
32848  ac_cv_func_fchown=yes
32849else
32850  echo "$as_me: failed program was:" >&5
32851sed 's/^/| /' conftest.$ac_ext >&5
32852
32853ac_cv_func_fchown=no
32854fi
32855rm -f conftest.err conftest.$ac_objext \
32856      conftest$ac_exeext conftest.$ac_ext
32857fi
32858echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
32859echo "${ECHO_T}$ac_cv_func_fchown" >&6
32860if test $ac_cv_func_fchown = yes; then
32861
32862cat >>confdefs.h <<_ACEOF
32863#define HAVE_FCHOWN 1
32864_ACEOF
32865
32866else
32867  case $LIBOBJS in
32868    "fchown.$ac_objext"   | \
32869  *" fchown.$ac_objext"   | \
32870    "fchown.$ac_objext "* | \
32871  *" fchown.$ac_objext "* ) ;;
32872  *) LIBOBJS="$LIBOBJS fchown.$ac_objext" ;;
32873esac
32874
32875fi
32876echo "$as_me:$LINENO: checking for flock" >&5
32877echo $ECHO_N "checking for flock... $ECHO_C" >&6
32878if test "${ac_cv_func_flock+set}" = set; then
32879  echo $ECHO_N "(cached) $ECHO_C" >&6
32880else
32881  cat >conftest.$ac_ext <<_ACEOF
32882/* confdefs.h.  */
32883_ACEOF
32884cat confdefs.h >>conftest.$ac_ext
32885cat >>conftest.$ac_ext <<_ACEOF
32886/* end confdefs.h.  */
32887/* Define flock to an innocuous variant, in case <limits.h> declares flock.
32888   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32889#define flock innocuous_flock
32890
32891/* System header to define __stub macros and hopefully few prototypes,
32892    which can conflict with char flock (); below.
32893    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32894    <limits.h> exists even on freestanding compilers.  */
32895
32896#ifdef __STDC__
32897# include <limits.h>
32898#else
32899# include <assert.h>
32900#endif
32901
32902#undef flock
32903
32904/* Override any gcc2 internal prototype to avoid an error.  */
32905#ifdef __cplusplus
32906extern "C"
32907{
32908#endif
32909/* We use char because int might match the return type of a gcc2
32910   builtin and then its argument prototype would still apply.  */
32911char flock ();
32912/* The GNU C library defines this for functions which it implements
32913    to always fail with ENOSYS.  Some functions are actually named
32914    something starting with __ and the normal name is an alias.  */
32915#if defined (__stub_flock) || defined (__stub___flock)
32916choke me
32917#else
32918char (*f) () = flock;
32919#endif
32920#ifdef __cplusplus
32921}
32922#endif
32923
32924int
32925main ()
32926{
32927return f != flock;
32928  ;
32929  return 0;
32930}
32931_ACEOF
32932rm -f conftest.$ac_objext conftest$ac_exeext
32933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32934  (eval $ac_link) 2>conftest.er1
32935  ac_status=$?
32936  grep -v '^ *+' conftest.er1 >conftest.err
32937  rm -f conftest.er1
32938  cat conftest.err >&5
32939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940  (exit $ac_status); } &&
32941	 { ac_try='test -z "$ac_c_werror_flag"
32942			 || test ! -s conftest.err'
32943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32944  (eval $ac_try) 2>&5
32945  ac_status=$?
32946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947  (exit $ac_status); }; } &&
32948	 { ac_try='test -s conftest$ac_exeext'
32949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32950  (eval $ac_try) 2>&5
32951  ac_status=$?
32952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953  (exit $ac_status); }; }; then
32954  ac_cv_func_flock=yes
32955else
32956  echo "$as_me: failed program was:" >&5
32957sed 's/^/| /' conftest.$ac_ext >&5
32958
32959ac_cv_func_flock=no
32960fi
32961rm -f conftest.err conftest.$ac_objext \
32962      conftest$ac_exeext conftest.$ac_ext
32963fi
32964echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
32965echo "${ECHO_T}$ac_cv_func_flock" >&6
32966if test $ac_cv_func_flock = yes; then
32967
32968cat >>confdefs.h <<_ACEOF
32969#define HAVE_FLOCK 1
32970_ACEOF
32971
32972else
32973  case $LIBOBJS in
32974    "flock.$ac_objext"   | \
32975  *" flock.$ac_objext"   | \
32976    "flock.$ac_objext "* | \
32977  *" flock.$ac_objext "* ) ;;
32978  *) LIBOBJS="$LIBOBJS flock.$ac_objext" ;;
32979esac
32980
32981fi
32982echo "$as_me:$LINENO: checking for fnmatch" >&5
32983echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
32984if test "${ac_cv_func_fnmatch+set}" = set; then
32985  echo $ECHO_N "(cached) $ECHO_C" >&6
32986else
32987  cat >conftest.$ac_ext <<_ACEOF
32988/* confdefs.h.  */
32989_ACEOF
32990cat confdefs.h >>conftest.$ac_ext
32991cat >>conftest.$ac_ext <<_ACEOF
32992/* end confdefs.h.  */
32993/* Define fnmatch to an innocuous variant, in case <limits.h> declares fnmatch.
32994   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32995#define fnmatch innocuous_fnmatch
32996
32997/* System header to define __stub macros and hopefully few prototypes,
32998    which can conflict with char fnmatch (); below.
32999    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33000    <limits.h> exists even on freestanding compilers.  */
33001
33002#ifdef __STDC__
33003# include <limits.h>
33004#else
33005# include <assert.h>
33006#endif
33007
33008#undef fnmatch
33009
33010/* Override any gcc2 internal prototype to avoid an error.  */
33011#ifdef __cplusplus
33012extern "C"
33013{
33014#endif
33015/* We use char because int might match the return type of a gcc2
33016   builtin and then its argument prototype would still apply.  */
33017char fnmatch ();
33018/* The GNU C library defines this for functions which it implements
33019    to always fail with ENOSYS.  Some functions are actually named
33020    something starting with __ and the normal name is an alias.  */
33021#if defined (__stub_fnmatch) || defined (__stub___fnmatch)
33022choke me
33023#else
33024char (*f) () = fnmatch;
33025#endif
33026#ifdef __cplusplus
33027}
33028#endif
33029
33030int
33031main ()
33032{
33033return f != fnmatch;
33034  ;
33035  return 0;
33036}
33037_ACEOF
33038rm -f conftest.$ac_objext conftest$ac_exeext
33039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33040  (eval $ac_link) 2>conftest.er1
33041  ac_status=$?
33042  grep -v '^ *+' conftest.er1 >conftest.err
33043  rm -f conftest.er1
33044  cat conftest.err >&5
33045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046  (exit $ac_status); } &&
33047	 { ac_try='test -z "$ac_c_werror_flag"
33048			 || test ! -s conftest.err'
33049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33050  (eval $ac_try) 2>&5
33051  ac_status=$?
33052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053  (exit $ac_status); }; } &&
33054	 { ac_try='test -s conftest$ac_exeext'
33055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33056  (eval $ac_try) 2>&5
33057  ac_status=$?
33058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059  (exit $ac_status); }; }; then
33060  ac_cv_func_fnmatch=yes
33061else
33062  echo "$as_me: failed program was:" >&5
33063sed 's/^/| /' conftest.$ac_ext >&5
33064
33065ac_cv_func_fnmatch=no
33066fi
33067rm -f conftest.err conftest.$ac_objext \
33068      conftest$ac_exeext conftest.$ac_ext
33069fi
33070echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
33071echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
33072if test $ac_cv_func_fnmatch = yes; then
33073
33074cat >>confdefs.h <<_ACEOF
33075#define HAVE_FNMATCH 1
33076_ACEOF
33077
33078else
33079  case $LIBOBJS in
33080    "fnmatch.$ac_objext"   | \
33081  *" fnmatch.$ac_objext"   | \
33082    "fnmatch.$ac_objext "* | \
33083  *" fnmatch.$ac_objext "* ) ;;
33084  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
33085esac
33086
33087fi
33088echo "$as_me:$LINENO: checking for freehostent" >&5
33089echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
33090if test "${ac_cv_func_freehostent+set}" = set; then
33091  echo $ECHO_N "(cached) $ECHO_C" >&6
33092else
33093  cat >conftest.$ac_ext <<_ACEOF
33094/* confdefs.h.  */
33095_ACEOF
33096cat confdefs.h >>conftest.$ac_ext
33097cat >>conftest.$ac_ext <<_ACEOF
33098/* end confdefs.h.  */
33099/* Define freehostent to an innocuous variant, in case <limits.h> declares freehostent.
33100   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33101#define freehostent innocuous_freehostent
33102
33103/* System header to define __stub macros and hopefully few prototypes,
33104    which can conflict with char freehostent (); below.
33105    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33106    <limits.h> exists even on freestanding compilers.  */
33107
33108#ifdef __STDC__
33109# include <limits.h>
33110#else
33111# include <assert.h>
33112#endif
33113
33114#undef freehostent
33115
33116/* Override any gcc2 internal prototype to avoid an error.  */
33117#ifdef __cplusplus
33118extern "C"
33119{
33120#endif
33121/* We use char because int might match the return type of a gcc2
33122   builtin and then its argument prototype would still apply.  */
33123char freehostent ();
33124/* The GNU C library defines this for functions which it implements
33125    to always fail with ENOSYS.  Some functions are actually named
33126    something starting with __ and the normal name is an alias.  */
33127#if defined (__stub_freehostent) || defined (__stub___freehostent)
33128choke me
33129#else
33130char (*f) () = freehostent;
33131#endif
33132#ifdef __cplusplus
33133}
33134#endif
33135
33136int
33137main ()
33138{
33139return f != freehostent;
33140  ;
33141  return 0;
33142}
33143_ACEOF
33144rm -f conftest.$ac_objext conftest$ac_exeext
33145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33146  (eval $ac_link) 2>conftest.er1
33147  ac_status=$?
33148  grep -v '^ *+' conftest.er1 >conftest.err
33149  rm -f conftest.er1
33150  cat conftest.err >&5
33151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152  (exit $ac_status); } &&
33153	 { ac_try='test -z "$ac_c_werror_flag"
33154			 || test ! -s conftest.err'
33155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33156  (eval $ac_try) 2>&5
33157  ac_status=$?
33158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159  (exit $ac_status); }; } &&
33160	 { ac_try='test -s conftest$ac_exeext'
33161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33162  (eval $ac_try) 2>&5
33163  ac_status=$?
33164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165  (exit $ac_status); }; }; then
33166  ac_cv_func_freehostent=yes
33167else
33168  echo "$as_me: failed program was:" >&5
33169sed 's/^/| /' conftest.$ac_ext >&5
33170
33171ac_cv_func_freehostent=no
33172fi
33173rm -f conftest.err conftest.$ac_objext \
33174      conftest$ac_exeext conftest.$ac_ext
33175fi
33176echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
33177echo "${ECHO_T}$ac_cv_func_freehostent" >&6
33178if test $ac_cv_func_freehostent = yes; then
33179
33180cat >>confdefs.h <<_ACEOF
33181#define HAVE_FREEHOSTENT 1
33182_ACEOF
33183
33184else
33185  case $LIBOBJS in
33186    "freehostent.$ac_objext"   | \
33187  *" freehostent.$ac_objext"   | \
33188    "freehostent.$ac_objext "* | \
33189  *" freehostent.$ac_objext "* ) ;;
33190  *) LIBOBJS="$LIBOBJS freehostent.$ac_objext" ;;
33191esac
33192
33193fi
33194echo "$as_me:$LINENO: checking for getcwd" >&5
33195echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
33196if test "${ac_cv_func_getcwd+set}" = set; then
33197  echo $ECHO_N "(cached) $ECHO_C" >&6
33198else
33199  cat >conftest.$ac_ext <<_ACEOF
33200/* confdefs.h.  */
33201_ACEOF
33202cat confdefs.h >>conftest.$ac_ext
33203cat >>conftest.$ac_ext <<_ACEOF
33204/* end confdefs.h.  */
33205/* Define getcwd to an innocuous variant, in case <limits.h> declares getcwd.
33206   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33207#define getcwd innocuous_getcwd
33208
33209/* System header to define __stub macros and hopefully few prototypes,
33210    which can conflict with char getcwd (); below.
33211    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33212    <limits.h> exists even on freestanding compilers.  */
33213
33214#ifdef __STDC__
33215# include <limits.h>
33216#else
33217# include <assert.h>
33218#endif
33219
33220#undef getcwd
33221
33222/* Override any gcc2 internal prototype to avoid an error.  */
33223#ifdef __cplusplus
33224extern "C"
33225{
33226#endif
33227/* We use char because int might match the return type of a gcc2
33228   builtin and then its argument prototype would still apply.  */
33229char getcwd ();
33230/* The GNU C library defines this for functions which it implements
33231    to always fail with ENOSYS.  Some functions are actually named
33232    something starting with __ and the normal name is an alias.  */
33233#if defined (__stub_getcwd) || defined (__stub___getcwd)
33234choke me
33235#else
33236char (*f) () = getcwd;
33237#endif
33238#ifdef __cplusplus
33239}
33240#endif
33241
33242int
33243main ()
33244{
33245return f != getcwd;
33246  ;
33247  return 0;
33248}
33249_ACEOF
33250rm -f conftest.$ac_objext conftest$ac_exeext
33251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33252  (eval $ac_link) 2>conftest.er1
33253  ac_status=$?
33254  grep -v '^ *+' conftest.er1 >conftest.err
33255  rm -f conftest.er1
33256  cat conftest.err >&5
33257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258  (exit $ac_status); } &&
33259	 { ac_try='test -z "$ac_c_werror_flag"
33260			 || test ! -s conftest.err'
33261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33262  (eval $ac_try) 2>&5
33263  ac_status=$?
33264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265  (exit $ac_status); }; } &&
33266	 { ac_try='test -s conftest$ac_exeext'
33267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33268  (eval $ac_try) 2>&5
33269  ac_status=$?
33270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33271  (exit $ac_status); }; }; then
33272  ac_cv_func_getcwd=yes
33273else
33274  echo "$as_me: failed program was:" >&5
33275sed 's/^/| /' conftest.$ac_ext >&5
33276
33277ac_cv_func_getcwd=no
33278fi
33279rm -f conftest.err conftest.$ac_objext \
33280      conftest$ac_exeext conftest.$ac_ext
33281fi
33282echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
33283echo "${ECHO_T}$ac_cv_func_getcwd" >&6
33284if test $ac_cv_func_getcwd = yes; then
33285
33286cat >>confdefs.h <<_ACEOF
33287#define HAVE_GETCWD 1
33288_ACEOF
33289
33290else
33291  case $LIBOBJS in
33292    "getcwd.$ac_objext"   | \
33293  *" getcwd.$ac_objext"   | \
33294    "getcwd.$ac_objext "* | \
33295  *" getcwd.$ac_objext "* ) ;;
33296  *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
33297esac
33298
33299fi
33300echo "$as_me:$LINENO: checking for getdtablesize" >&5
33301echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
33302if test "${ac_cv_func_getdtablesize+set}" = set; then
33303  echo $ECHO_N "(cached) $ECHO_C" >&6
33304else
33305  cat >conftest.$ac_ext <<_ACEOF
33306/* confdefs.h.  */
33307_ACEOF
33308cat confdefs.h >>conftest.$ac_ext
33309cat >>conftest.$ac_ext <<_ACEOF
33310/* end confdefs.h.  */
33311/* Define getdtablesize to an innocuous variant, in case <limits.h> declares getdtablesize.
33312   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33313#define getdtablesize innocuous_getdtablesize
33314
33315/* System header to define __stub macros and hopefully few prototypes,
33316    which can conflict with char getdtablesize (); below.
33317    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33318    <limits.h> exists even on freestanding compilers.  */
33319
33320#ifdef __STDC__
33321# include <limits.h>
33322#else
33323# include <assert.h>
33324#endif
33325
33326#undef getdtablesize
33327
33328/* Override any gcc2 internal prototype to avoid an error.  */
33329#ifdef __cplusplus
33330extern "C"
33331{
33332#endif
33333/* We use char because int might match the return type of a gcc2
33334   builtin and then its argument prototype would still apply.  */
33335char getdtablesize ();
33336/* The GNU C library defines this for functions which it implements
33337    to always fail with ENOSYS.  Some functions are actually named
33338    something starting with __ and the normal name is an alias.  */
33339#if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
33340choke me
33341#else
33342char (*f) () = getdtablesize;
33343#endif
33344#ifdef __cplusplus
33345}
33346#endif
33347
33348int
33349main ()
33350{
33351return f != getdtablesize;
33352  ;
33353  return 0;
33354}
33355_ACEOF
33356rm -f conftest.$ac_objext conftest$ac_exeext
33357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33358  (eval $ac_link) 2>conftest.er1
33359  ac_status=$?
33360  grep -v '^ *+' conftest.er1 >conftest.err
33361  rm -f conftest.er1
33362  cat conftest.err >&5
33363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364  (exit $ac_status); } &&
33365	 { ac_try='test -z "$ac_c_werror_flag"
33366			 || test ! -s conftest.err'
33367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33368  (eval $ac_try) 2>&5
33369  ac_status=$?
33370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371  (exit $ac_status); }; } &&
33372	 { ac_try='test -s conftest$ac_exeext'
33373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374  (eval $ac_try) 2>&5
33375  ac_status=$?
33376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377  (exit $ac_status); }; }; then
33378  ac_cv_func_getdtablesize=yes
33379else
33380  echo "$as_me: failed program was:" >&5
33381sed 's/^/| /' conftest.$ac_ext >&5
33382
33383ac_cv_func_getdtablesize=no
33384fi
33385rm -f conftest.err conftest.$ac_objext \
33386      conftest$ac_exeext conftest.$ac_ext
33387fi
33388echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
33389echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
33390if test $ac_cv_func_getdtablesize = yes; then
33391
33392cat >>confdefs.h <<_ACEOF
33393#define HAVE_GETDTABLESIZE 1
33394_ACEOF
33395
33396else
33397  case $LIBOBJS in
33398    "getdtablesize.$ac_objext"   | \
33399  *" getdtablesize.$ac_objext"   | \
33400    "getdtablesize.$ac_objext "* | \
33401  *" getdtablesize.$ac_objext "* ) ;;
33402  *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext" ;;
33403esac
33404
33405fi
33406echo "$as_me:$LINENO: checking for getegid" >&5
33407echo $ECHO_N "checking for getegid... $ECHO_C" >&6
33408if test "${ac_cv_func_getegid+set}" = set; then
33409  echo $ECHO_N "(cached) $ECHO_C" >&6
33410else
33411  cat >conftest.$ac_ext <<_ACEOF
33412/* confdefs.h.  */
33413_ACEOF
33414cat confdefs.h >>conftest.$ac_ext
33415cat >>conftest.$ac_ext <<_ACEOF
33416/* end confdefs.h.  */
33417/* Define getegid to an innocuous variant, in case <limits.h> declares getegid.
33418   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33419#define getegid innocuous_getegid
33420
33421/* System header to define __stub macros and hopefully few prototypes,
33422    which can conflict with char getegid (); below.
33423    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33424    <limits.h> exists even on freestanding compilers.  */
33425
33426#ifdef __STDC__
33427# include <limits.h>
33428#else
33429# include <assert.h>
33430#endif
33431
33432#undef getegid
33433
33434/* Override any gcc2 internal prototype to avoid an error.  */
33435#ifdef __cplusplus
33436extern "C"
33437{
33438#endif
33439/* We use char because int might match the return type of a gcc2
33440   builtin and then its argument prototype would still apply.  */
33441char getegid ();
33442/* The GNU C library defines this for functions which it implements
33443    to always fail with ENOSYS.  Some functions are actually named
33444    something starting with __ and the normal name is an alias.  */
33445#if defined (__stub_getegid) || defined (__stub___getegid)
33446choke me
33447#else
33448char (*f) () = getegid;
33449#endif
33450#ifdef __cplusplus
33451}
33452#endif
33453
33454int
33455main ()
33456{
33457return f != getegid;
33458  ;
33459  return 0;
33460}
33461_ACEOF
33462rm -f conftest.$ac_objext conftest$ac_exeext
33463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33464  (eval $ac_link) 2>conftest.er1
33465  ac_status=$?
33466  grep -v '^ *+' conftest.er1 >conftest.err
33467  rm -f conftest.er1
33468  cat conftest.err >&5
33469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470  (exit $ac_status); } &&
33471	 { ac_try='test -z "$ac_c_werror_flag"
33472			 || test ! -s conftest.err'
33473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33474  (eval $ac_try) 2>&5
33475  ac_status=$?
33476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477  (exit $ac_status); }; } &&
33478	 { ac_try='test -s conftest$ac_exeext'
33479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33480  (eval $ac_try) 2>&5
33481  ac_status=$?
33482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483  (exit $ac_status); }; }; then
33484  ac_cv_func_getegid=yes
33485else
33486  echo "$as_me: failed program was:" >&5
33487sed 's/^/| /' conftest.$ac_ext >&5
33488
33489ac_cv_func_getegid=no
33490fi
33491rm -f conftest.err conftest.$ac_objext \
33492      conftest$ac_exeext conftest.$ac_ext
33493fi
33494echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
33495echo "${ECHO_T}$ac_cv_func_getegid" >&6
33496if test $ac_cv_func_getegid = yes; then
33497
33498cat >>confdefs.h <<_ACEOF
33499#define HAVE_GETEGID 1
33500_ACEOF
33501
33502else
33503  case $LIBOBJS in
33504    "getegid.$ac_objext"   | \
33505  *" getegid.$ac_objext"   | \
33506    "getegid.$ac_objext "* | \
33507  *" getegid.$ac_objext "* ) ;;
33508  *) LIBOBJS="$LIBOBJS getegid.$ac_objext" ;;
33509esac
33510
33511fi
33512echo "$as_me:$LINENO: checking for geteuid" >&5
33513echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
33514if test "${ac_cv_func_geteuid+set}" = set; then
33515  echo $ECHO_N "(cached) $ECHO_C" >&6
33516else
33517  cat >conftest.$ac_ext <<_ACEOF
33518/* confdefs.h.  */
33519_ACEOF
33520cat confdefs.h >>conftest.$ac_ext
33521cat >>conftest.$ac_ext <<_ACEOF
33522/* end confdefs.h.  */
33523/* Define geteuid to an innocuous variant, in case <limits.h> declares geteuid.
33524   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33525#define geteuid innocuous_geteuid
33526
33527/* System header to define __stub macros and hopefully few prototypes,
33528    which can conflict with char geteuid (); below.
33529    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33530    <limits.h> exists even on freestanding compilers.  */
33531
33532#ifdef __STDC__
33533# include <limits.h>
33534#else
33535# include <assert.h>
33536#endif
33537
33538#undef geteuid
33539
33540/* Override any gcc2 internal prototype to avoid an error.  */
33541#ifdef __cplusplus
33542extern "C"
33543{
33544#endif
33545/* We use char because int might match the return type of a gcc2
33546   builtin and then its argument prototype would still apply.  */
33547char geteuid ();
33548/* The GNU C library defines this for functions which it implements
33549    to always fail with ENOSYS.  Some functions are actually named
33550    something starting with __ and the normal name is an alias.  */
33551#if defined (__stub_geteuid) || defined (__stub___geteuid)
33552choke me
33553#else
33554char (*f) () = geteuid;
33555#endif
33556#ifdef __cplusplus
33557}
33558#endif
33559
33560int
33561main ()
33562{
33563return f != geteuid;
33564  ;
33565  return 0;
33566}
33567_ACEOF
33568rm -f conftest.$ac_objext conftest$ac_exeext
33569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33570  (eval $ac_link) 2>conftest.er1
33571  ac_status=$?
33572  grep -v '^ *+' conftest.er1 >conftest.err
33573  rm -f conftest.er1
33574  cat conftest.err >&5
33575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576  (exit $ac_status); } &&
33577	 { ac_try='test -z "$ac_c_werror_flag"
33578			 || test ! -s conftest.err'
33579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33580  (eval $ac_try) 2>&5
33581  ac_status=$?
33582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583  (exit $ac_status); }; } &&
33584	 { ac_try='test -s conftest$ac_exeext'
33585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33586  (eval $ac_try) 2>&5
33587  ac_status=$?
33588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589  (exit $ac_status); }; }; then
33590  ac_cv_func_geteuid=yes
33591else
33592  echo "$as_me: failed program was:" >&5
33593sed 's/^/| /' conftest.$ac_ext >&5
33594
33595ac_cv_func_geteuid=no
33596fi
33597rm -f conftest.err conftest.$ac_objext \
33598      conftest$ac_exeext conftest.$ac_ext
33599fi
33600echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
33601echo "${ECHO_T}$ac_cv_func_geteuid" >&6
33602if test $ac_cv_func_geteuid = yes; then
33603
33604cat >>confdefs.h <<_ACEOF
33605#define HAVE_GETEUID 1
33606_ACEOF
33607
33608else
33609  case $LIBOBJS in
33610    "geteuid.$ac_objext"   | \
33611  *" geteuid.$ac_objext"   | \
33612    "geteuid.$ac_objext "* | \
33613  *" geteuid.$ac_objext "* ) ;;
33614  *) LIBOBJS="$LIBOBJS geteuid.$ac_objext" ;;
33615esac
33616
33617fi
33618echo "$as_me:$LINENO: checking for getgid" >&5
33619echo $ECHO_N "checking for getgid... $ECHO_C" >&6
33620if test "${ac_cv_func_getgid+set}" = set; then
33621  echo $ECHO_N "(cached) $ECHO_C" >&6
33622else
33623  cat >conftest.$ac_ext <<_ACEOF
33624/* confdefs.h.  */
33625_ACEOF
33626cat confdefs.h >>conftest.$ac_ext
33627cat >>conftest.$ac_ext <<_ACEOF
33628/* end confdefs.h.  */
33629/* Define getgid to an innocuous variant, in case <limits.h> declares getgid.
33630   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33631#define getgid innocuous_getgid
33632
33633/* System header to define __stub macros and hopefully few prototypes,
33634    which can conflict with char getgid (); below.
33635    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33636    <limits.h> exists even on freestanding compilers.  */
33637
33638#ifdef __STDC__
33639# include <limits.h>
33640#else
33641# include <assert.h>
33642#endif
33643
33644#undef getgid
33645
33646/* Override any gcc2 internal prototype to avoid an error.  */
33647#ifdef __cplusplus
33648extern "C"
33649{
33650#endif
33651/* We use char because int might match the return type of a gcc2
33652   builtin and then its argument prototype would still apply.  */
33653char getgid ();
33654/* The GNU C library defines this for functions which it implements
33655    to always fail with ENOSYS.  Some functions are actually named
33656    something starting with __ and the normal name is an alias.  */
33657#if defined (__stub_getgid) || defined (__stub___getgid)
33658choke me
33659#else
33660char (*f) () = getgid;
33661#endif
33662#ifdef __cplusplus
33663}
33664#endif
33665
33666int
33667main ()
33668{
33669return f != getgid;
33670  ;
33671  return 0;
33672}
33673_ACEOF
33674rm -f conftest.$ac_objext conftest$ac_exeext
33675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33676  (eval $ac_link) 2>conftest.er1
33677  ac_status=$?
33678  grep -v '^ *+' conftest.er1 >conftest.err
33679  rm -f conftest.er1
33680  cat conftest.err >&5
33681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682  (exit $ac_status); } &&
33683	 { ac_try='test -z "$ac_c_werror_flag"
33684			 || test ! -s conftest.err'
33685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33686  (eval $ac_try) 2>&5
33687  ac_status=$?
33688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689  (exit $ac_status); }; } &&
33690	 { ac_try='test -s conftest$ac_exeext'
33691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33692  (eval $ac_try) 2>&5
33693  ac_status=$?
33694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695  (exit $ac_status); }; }; then
33696  ac_cv_func_getgid=yes
33697else
33698  echo "$as_me: failed program was:" >&5
33699sed 's/^/| /' conftest.$ac_ext >&5
33700
33701ac_cv_func_getgid=no
33702fi
33703rm -f conftest.err conftest.$ac_objext \
33704      conftest$ac_exeext conftest.$ac_ext
33705fi
33706echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
33707echo "${ECHO_T}$ac_cv_func_getgid" >&6
33708if test $ac_cv_func_getgid = yes; then
33709
33710cat >>confdefs.h <<_ACEOF
33711#define HAVE_GETGID 1
33712_ACEOF
33713
33714else
33715  case $LIBOBJS in
33716    "getgid.$ac_objext"   | \
33717  *" getgid.$ac_objext"   | \
33718    "getgid.$ac_objext "* | \
33719  *" getgid.$ac_objext "* ) ;;
33720  *) LIBOBJS="$LIBOBJS getgid.$ac_objext" ;;
33721esac
33722
33723fi
33724echo "$as_me:$LINENO: checking for gethostname" >&5
33725echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
33726if test "${ac_cv_func_gethostname+set}" = set; then
33727  echo $ECHO_N "(cached) $ECHO_C" >&6
33728else
33729  cat >conftest.$ac_ext <<_ACEOF
33730/* confdefs.h.  */
33731_ACEOF
33732cat confdefs.h >>conftest.$ac_ext
33733cat >>conftest.$ac_ext <<_ACEOF
33734/* end confdefs.h.  */
33735/* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
33736   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33737#define gethostname innocuous_gethostname
33738
33739/* System header to define __stub macros and hopefully few prototypes,
33740    which can conflict with char gethostname (); below.
33741    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33742    <limits.h> exists even on freestanding compilers.  */
33743
33744#ifdef __STDC__
33745# include <limits.h>
33746#else
33747# include <assert.h>
33748#endif
33749
33750#undef gethostname
33751
33752/* Override any gcc2 internal prototype to avoid an error.  */
33753#ifdef __cplusplus
33754extern "C"
33755{
33756#endif
33757/* We use char because int might match the return type of a gcc2
33758   builtin and then its argument prototype would still apply.  */
33759char gethostname ();
33760/* The GNU C library defines this for functions which it implements
33761    to always fail with ENOSYS.  Some functions are actually named
33762    something starting with __ and the normal name is an alias.  */
33763#if defined (__stub_gethostname) || defined (__stub___gethostname)
33764choke me
33765#else
33766char (*f) () = gethostname;
33767#endif
33768#ifdef __cplusplus
33769}
33770#endif
33771
33772int
33773main ()
33774{
33775return f != gethostname;
33776  ;
33777  return 0;
33778}
33779_ACEOF
33780rm -f conftest.$ac_objext conftest$ac_exeext
33781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33782  (eval $ac_link) 2>conftest.er1
33783  ac_status=$?
33784  grep -v '^ *+' conftest.er1 >conftest.err
33785  rm -f conftest.er1
33786  cat conftest.err >&5
33787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788  (exit $ac_status); } &&
33789	 { ac_try='test -z "$ac_c_werror_flag"
33790			 || test ! -s conftest.err'
33791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33792  (eval $ac_try) 2>&5
33793  ac_status=$?
33794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795  (exit $ac_status); }; } &&
33796	 { ac_try='test -s conftest$ac_exeext'
33797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798  (eval $ac_try) 2>&5
33799  ac_status=$?
33800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801  (exit $ac_status); }; }; then
33802  ac_cv_func_gethostname=yes
33803else
33804  echo "$as_me: failed program was:" >&5
33805sed 's/^/| /' conftest.$ac_ext >&5
33806
33807ac_cv_func_gethostname=no
33808fi
33809rm -f conftest.err conftest.$ac_objext \
33810      conftest$ac_exeext conftest.$ac_ext
33811fi
33812echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
33813echo "${ECHO_T}$ac_cv_func_gethostname" >&6
33814if test $ac_cv_func_gethostname = yes; then
33815
33816cat >>confdefs.h <<_ACEOF
33817#define HAVE_GETHOSTNAME 1
33818_ACEOF
33819
33820else
33821  case $LIBOBJS in
33822    "gethostname.$ac_objext"   | \
33823  *" gethostname.$ac_objext"   | \
33824    "gethostname.$ac_objext "* | \
33825  *" gethostname.$ac_objext "* ) ;;
33826  *) LIBOBJS="$LIBOBJS gethostname.$ac_objext" ;;
33827esac
33828
33829fi
33830echo "$as_me:$LINENO: checking for getifaddrs" >&5
33831echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
33832if test "${ac_cv_func_getifaddrs+set}" = set; then
33833  echo $ECHO_N "(cached) $ECHO_C" >&6
33834else
33835  cat >conftest.$ac_ext <<_ACEOF
33836/* confdefs.h.  */
33837_ACEOF
33838cat confdefs.h >>conftest.$ac_ext
33839cat >>conftest.$ac_ext <<_ACEOF
33840/* end confdefs.h.  */
33841/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
33842   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33843#define getifaddrs innocuous_getifaddrs
33844
33845/* System header to define __stub macros and hopefully few prototypes,
33846    which can conflict with char getifaddrs (); below.
33847    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33848    <limits.h> exists even on freestanding compilers.  */
33849
33850#ifdef __STDC__
33851# include <limits.h>
33852#else
33853# include <assert.h>
33854#endif
33855
33856#undef getifaddrs
33857
33858/* Override any gcc2 internal prototype to avoid an error.  */
33859#ifdef __cplusplus
33860extern "C"
33861{
33862#endif
33863/* We use char because int might match the return type of a gcc2
33864   builtin and then its argument prototype would still apply.  */
33865char getifaddrs ();
33866/* The GNU C library defines this for functions which it implements
33867    to always fail with ENOSYS.  Some functions are actually named
33868    something starting with __ and the normal name is an alias.  */
33869#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
33870choke me
33871#else
33872char (*f) () = getifaddrs;
33873#endif
33874#ifdef __cplusplus
33875}
33876#endif
33877
33878int
33879main ()
33880{
33881return f != getifaddrs;
33882  ;
33883  return 0;
33884}
33885_ACEOF
33886rm -f conftest.$ac_objext conftest$ac_exeext
33887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33888  (eval $ac_link) 2>conftest.er1
33889  ac_status=$?
33890  grep -v '^ *+' conftest.er1 >conftest.err
33891  rm -f conftest.er1
33892  cat conftest.err >&5
33893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894  (exit $ac_status); } &&
33895	 { ac_try='test -z "$ac_c_werror_flag"
33896			 || test ! -s conftest.err'
33897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33898  (eval $ac_try) 2>&5
33899  ac_status=$?
33900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33901  (exit $ac_status); }; } &&
33902	 { ac_try='test -s conftest$ac_exeext'
33903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33904  (eval $ac_try) 2>&5
33905  ac_status=$?
33906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907  (exit $ac_status); }; }; then
33908  ac_cv_func_getifaddrs=yes
33909else
33910  echo "$as_me: failed program was:" >&5
33911sed 's/^/| /' conftest.$ac_ext >&5
33912
33913ac_cv_func_getifaddrs=no
33914fi
33915rm -f conftest.err conftest.$ac_objext \
33916      conftest$ac_exeext conftest.$ac_ext
33917fi
33918echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
33919echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
33920if test $ac_cv_func_getifaddrs = yes; then
33921
33922cat >>confdefs.h <<_ACEOF
33923#define HAVE_GETIFADDRS 1
33924_ACEOF
33925
33926else
33927  case $LIBOBJS in
33928    "getifaddrs.$ac_objext"   | \
33929  *" getifaddrs.$ac_objext"   | \
33930    "getifaddrs.$ac_objext "* | \
33931  *" getifaddrs.$ac_objext "* ) ;;
33932  *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext" ;;
33933esac
33934
33935fi
33936echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
33937echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
33938if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
33939  echo $ECHO_N "(cached) $ECHO_C" >&6
33940else
33941  cat >conftest.$ac_ext <<_ACEOF
33942/* confdefs.h.  */
33943_ACEOF
33944cat confdefs.h >>conftest.$ac_ext
33945cat >>conftest.$ac_ext <<_ACEOF
33946/* end confdefs.h.  */
33947/* Define getipnodebyaddr to an innocuous variant, in case <limits.h> declares getipnodebyaddr.
33948   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33949#define getipnodebyaddr innocuous_getipnodebyaddr
33950
33951/* System header to define __stub macros and hopefully few prototypes,
33952    which can conflict with char getipnodebyaddr (); below.
33953    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33954    <limits.h> exists even on freestanding compilers.  */
33955
33956#ifdef __STDC__
33957# include <limits.h>
33958#else
33959# include <assert.h>
33960#endif
33961
33962#undef getipnodebyaddr
33963
33964/* Override any gcc2 internal prototype to avoid an error.  */
33965#ifdef __cplusplus
33966extern "C"
33967{
33968#endif
33969/* We use char because int might match the return type of a gcc2
33970   builtin and then its argument prototype would still apply.  */
33971char getipnodebyaddr ();
33972/* The GNU C library defines this for functions which it implements
33973    to always fail with ENOSYS.  Some functions are actually named
33974    something starting with __ and the normal name is an alias.  */
33975#if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
33976choke me
33977#else
33978char (*f) () = getipnodebyaddr;
33979#endif
33980#ifdef __cplusplus
33981}
33982#endif
33983
33984int
33985main ()
33986{
33987return f != getipnodebyaddr;
33988  ;
33989  return 0;
33990}
33991_ACEOF
33992rm -f conftest.$ac_objext conftest$ac_exeext
33993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33994  (eval $ac_link) 2>conftest.er1
33995  ac_status=$?
33996  grep -v '^ *+' conftest.er1 >conftest.err
33997  rm -f conftest.er1
33998  cat conftest.err >&5
33999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000  (exit $ac_status); } &&
34001	 { ac_try='test -z "$ac_c_werror_flag"
34002			 || test ! -s conftest.err'
34003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34004  (eval $ac_try) 2>&5
34005  ac_status=$?
34006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007  (exit $ac_status); }; } &&
34008	 { ac_try='test -s conftest$ac_exeext'
34009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34010  (eval $ac_try) 2>&5
34011  ac_status=$?
34012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34013  (exit $ac_status); }; }; then
34014  ac_cv_func_getipnodebyaddr=yes
34015else
34016  echo "$as_me: failed program was:" >&5
34017sed 's/^/| /' conftest.$ac_ext >&5
34018
34019ac_cv_func_getipnodebyaddr=no
34020fi
34021rm -f conftest.err conftest.$ac_objext \
34022      conftest$ac_exeext conftest.$ac_ext
34023fi
34024echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
34025echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
34026if test $ac_cv_func_getipnodebyaddr = yes; then
34027
34028cat >>confdefs.h <<_ACEOF
34029#define HAVE_GETIPNODEBYADDR 1
34030_ACEOF
34031
34032else
34033  case $LIBOBJS in
34034    "getipnodebyaddr.$ac_objext"   | \
34035  *" getipnodebyaddr.$ac_objext"   | \
34036    "getipnodebyaddr.$ac_objext "* | \
34037  *" getipnodebyaddr.$ac_objext "* ) ;;
34038  *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext" ;;
34039esac
34040
34041fi
34042echo "$as_me:$LINENO: checking for getipnodebyname" >&5
34043echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
34044if test "${ac_cv_func_getipnodebyname+set}" = set; then
34045  echo $ECHO_N "(cached) $ECHO_C" >&6
34046else
34047  cat >conftest.$ac_ext <<_ACEOF
34048/* confdefs.h.  */
34049_ACEOF
34050cat confdefs.h >>conftest.$ac_ext
34051cat >>conftest.$ac_ext <<_ACEOF
34052/* end confdefs.h.  */
34053/* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
34054   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34055#define getipnodebyname innocuous_getipnodebyname
34056
34057/* System header to define __stub macros and hopefully few prototypes,
34058    which can conflict with char getipnodebyname (); below.
34059    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34060    <limits.h> exists even on freestanding compilers.  */
34061
34062#ifdef __STDC__
34063# include <limits.h>
34064#else
34065# include <assert.h>
34066#endif
34067
34068#undef getipnodebyname
34069
34070/* Override any gcc2 internal prototype to avoid an error.  */
34071#ifdef __cplusplus
34072extern "C"
34073{
34074#endif
34075/* We use char because int might match the return type of a gcc2
34076   builtin and then its argument prototype would still apply.  */
34077char getipnodebyname ();
34078/* The GNU C library defines this for functions which it implements
34079    to always fail with ENOSYS.  Some functions are actually named
34080    something starting with __ and the normal name is an alias.  */
34081#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
34082choke me
34083#else
34084char (*f) () = getipnodebyname;
34085#endif
34086#ifdef __cplusplus
34087}
34088#endif
34089
34090int
34091main ()
34092{
34093return f != getipnodebyname;
34094  ;
34095  return 0;
34096}
34097_ACEOF
34098rm -f conftest.$ac_objext conftest$ac_exeext
34099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34100  (eval $ac_link) 2>conftest.er1
34101  ac_status=$?
34102  grep -v '^ *+' conftest.er1 >conftest.err
34103  rm -f conftest.er1
34104  cat conftest.err >&5
34105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106  (exit $ac_status); } &&
34107	 { ac_try='test -z "$ac_c_werror_flag"
34108			 || test ! -s conftest.err'
34109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110  (eval $ac_try) 2>&5
34111  ac_status=$?
34112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113  (exit $ac_status); }; } &&
34114	 { ac_try='test -s conftest$ac_exeext'
34115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34116  (eval $ac_try) 2>&5
34117  ac_status=$?
34118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119  (exit $ac_status); }; }; then
34120  ac_cv_func_getipnodebyname=yes
34121else
34122  echo "$as_me: failed program was:" >&5
34123sed 's/^/| /' conftest.$ac_ext >&5
34124
34125ac_cv_func_getipnodebyname=no
34126fi
34127rm -f conftest.err conftest.$ac_objext \
34128      conftest$ac_exeext conftest.$ac_ext
34129fi
34130echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
34131echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
34132if test $ac_cv_func_getipnodebyname = yes; then
34133
34134cat >>confdefs.h <<_ACEOF
34135#define HAVE_GETIPNODEBYNAME 1
34136_ACEOF
34137
34138else
34139  case $LIBOBJS in
34140    "getipnodebyname.$ac_objext"   | \
34141  *" getipnodebyname.$ac_objext"   | \
34142    "getipnodebyname.$ac_objext "* | \
34143  *" getipnodebyname.$ac_objext "* ) ;;
34144  *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext" ;;
34145esac
34146
34147fi
34148echo "$as_me:$LINENO: checking for getopt" >&5
34149echo $ECHO_N "checking for getopt... $ECHO_C" >&6
34150if test "${ac_cv_func_getopt+set}" = set; then
34151  echo $ECHO_N "(cached) $ECHO_C" >&6
34152else
34153  cat >conftest.$ac_ext <<_ACEOF
34154/* confdefs.h.  */
34155_ACEOF
34156cat confdefs.h >>conftest.$ac_ext
34157cat >>conftest.$ac_ext <<_ACEOF
34158/* end confdefs.h.  */
34159/* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
34160   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34161#define getopt innocuous_getopt
34162
34163/* System header to define __stub macros and hopefully few prototypes,
34164    which can conflict with char getopt (); below.
34165    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34166    <limits.h> exists even on freestanding compilers.  */
34167
34168#ifdef __STDC__
34169# include <limits.h>
34170#else
34171# include <assert.h>
34172#endif
34173
34174#undef getopt
34175
34176/* Override any gcc2 internal prototype to avoid an error.  */
34177#ifdef __cplusplus
34178extern "C"
34179{
34180#endif
34181/* We use char because int might match the return type of a gcc2
34182   builtin and then its argument prototype would still apply.  */
34183char getopt ();
34184/* The GNU C library defines this for functions which it implements
34185    to always fail with ENOSYS.  Some functions are actually named
34186    something starting with __ and the normal name is an alias.  */
34187#if defined (__stub_getopt) || defined (__stub___getopt)
34188choke me
34189#else
34190char (*f) () = getopt;
34191#endif
34192#ifdef __cplusplus
34193}
34194#endif
34195
34196int
34197main ()
34198{
34199return f != getopt;
34200  ;
34201  return 0;
34202}
34203_ACEOF
34204rm -f conftest.$ac_objext conftest$ac_exeext
34205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34206  (eval $ac_link) 2>conftest.er1
34207  ac_status=$?
34208  grep -v '^ *+' conftest.er1 >conftest.err
34209  rm -f conftest.er1
34210  cat conftest.err >&5
34211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212  (exit $ac_status); } &&
34213	 { ac_try='test -z "$ac_c_werror_flag"
34214			 || test ! -s conftest.err'
34215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34216  (eval $ac_try) 2>&5
34217  ac_status=$?
34218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219  (exit $ac_status); }; } &&
34220	 { ac_try='test -s conftest$ac_exeext'
34221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34222  (eval $ac_try) 2>&5
34223  ac_status=$?
34224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225  (exit $ac_status); }; }; then
34226  ac_cv_func_getopt=yes
34227else
34228  echo "$as_me: failed program was:" >&5
34229sed 's/^/| /' conftest.$ac_ext >&5
34230
34231ac_cv_func_getopt=no
34232fi
34233rm -f conftest.err conftest.$ac_objext \
34234      conftest$ac_exeext conftest.$ac_ext
34235fi
34236echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
34237echo "${ECHO_T}$ac_cv_func_getopt" >&6
34238if test $ac_cv_func_getopt = yes; then
34239
34240cat >>confdefs.h <<_ACEOF
34241#define HAVE_GETOPT 1
34242_ACEOF
34243
34244else
34245  case $LIBOBJS in
34246    "getopt.$ac_objext"   | \
34247  *" getopt.$ac_objext"   | \
34248    "getopt.$ac_objext "* | \
34249  *" getopt.$ac_objext "* ) ;;
34250  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
34251esac
34252
34253fi
34254echo "$as_me:$LINENO: checking for gettimeofday" >&5
34255echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
34256if test "${ac_cv_func_gettimeofday+set}" = set; then
34257  echo $ECHO_N "(cached) $ECHO_C" >&6
34258else
34259  cat >conftest.$ac_ext <<_ACEOF
34260/* confdefs.h.  */
34261_ACEOF
34262cat confdefs.h >>conftest.$ac_ext
34263cat >>conftest.$ac_ext <<_ACEOF
34264/* end confdefs.h.  */
34265/* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
34266   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34267#define gettimeofday innocuous_gettimeofday
34268
34269/* System header to define __stub macros and hopefully few prototypes,
34270    which can conflict with char gettimeofday (); below.
34271    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34272    <limits.h> exists even on freestanding compilers.  */
34273
34274#ifdef __STDC__
34275# include <limits.h>
34276#else
34277# include <assert.h>
34278#endif
34279
34280#undef gettimeofday
34281
34282/* Override any gcc2 internal prototype to avoid an error.  */
34283#ifdef __cplusplus
34284extern "C"
34285{
34286#endif
34287/* We use char because int might match the return type of a gcc2
34288   builtin and then its argument prototype would still apply.  */
34289char gettimeofday ();
34290/* The GNU C library defines this for functions which it implements
34291    to always fail with ENOSYS.  Some functions are actually named
34292    something starting with __ and the normal name is an alias.  */
34293#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
34294choke me
34295#else
34296char (*f) () = gettimeofday;
34297#endif
34298#ifdef __cplusplus
34299}
34300#endif
34301
34302int
34303main ()
34304{
34305return f != gettimeofday;
34306  ;
34307  return 0;
34308}
34309_ACEOF
34310rm -f conftest.$ac_objext conftest$ac_exeext
34311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34312  (eval $ac_link) 2>conftest.er1
34313  ac_status=$?
34314  grep -v '^ *+' conftest.er1 >conftest.err
34315  rm -f conftest.er1
34316  cat conftest.err >&5
34317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318  (exit $ac_status); } &&
34319	 { ac_try='test -z "$ac_c_werror_flag"
34320			 || test ! -s conftest.err'
34321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34322  (eval $ac_try) 2>&5
34323  ac_status=$?
34324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325  (exit $ac_status); }; } &&
34326	 { ac_try='test -s conftest$ac_exeext'
34327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328  (eval $ac_try) 2>&5
34329  ac_status=$?
34330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331  (exit $ac_status); }; }; then
34332  ac_cv_func_gettimeofday=yes
34333else
34334  echo "$as_me: failed program was:" >&5
34335sed 's/^/| /' conftest.$ac_ext >&5
34336
34337ac_cv_func_gettimeofday=no
34338fi
34339rm -f conftest.err conftest.$ac_objext \
34340      conftest$ac_exeext conftest.$ac_ext
34341fi
34342echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
34343echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
34344if test $ac_cv_func_gettimeofday = yes; then
34345
34346cat >>confdefs.h <<_ACEOF
34347#define HAVE_GETTIMEOFDAY 1
34348_ACEOF
34349
34350else
34351  case $LIBOBJS in
34352    "gettimeofday.$ac_objext"   | \
34353  *" gettimeofday.$ac_objext"   | \
34354    "gettimeofday.$ac_objext "* | \
34355  *" gettimeofday.$ac_objext "* ) ;;
34356  *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
34357esac
34358
34359fi
34360echo "$as_me:$LINENO: checking for getuid" >&5
34361echo $ECHO_N "checking for getuid... $ECHO_C" >&6
34362if test "${ac_cv_func_getuid+set}" = set; then
34363  echo $ECHO_N "(cached) $ECHO_C" >&6
34364else
34365  cat >conftest.$ac_ext <<_ACEOF
34366/* confdefs.h.  */
34367_ACEOF
34368cat confdefs.h >>conftest.$ac_ext
34369cat >>conftest.$ac_ext <<_ACEOF
34370/* end confdefs.h.  */
34371/* Define getuid to an innocuous variant, in case <limits.h> declares getuid.
34372   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34373#define getuid innocuous_getuid
34374
34375/* System header to define __stub macros and hopefully few prototypes,
34376    which can conflict with char getuid (); below.
34377    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34378    <limits.h> exists even on freestanding compilers.  */
34379
34380#ifdef __STDC__
34381# include <limits.h>
34382#else
34383# include <assert.h>
34384#endif
34385
34386#undef getuid
34387
34388/* Override any gcc2 internal prototype to avoid an error.  */
34389#ifdef __cplusplus
34390extern "C"
34391{
34392#endif
34393/* We use char because int might match the return type of a gcc2
34394   builtin and then its argument prototype would still apply.  */
34395char getuid ();
34396/* The GNU C library defines this for functions which it implements
34397    to always fail with ENOSYS.  Some functions are actually named
34398    something starting with __ and the normal name is an alias.  */
34399#if defined (__stub_getuid) || defined (__stub___getuid)
34400choke me
34401#else
34402char (*f) () = getuid;
34403#endif
34404#ifdef __cplusplus
34405}
34406#endif
34407
34408int
34409main ()
34410{
34411return f != getuid;
34412  ;
34413  return 0;
34414}
34415_ACEOF
34416rm -f conftest.$ac_objext conftest$ac_exeext
34417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34418  (eval $ac_link) 2>conftest.er1
34419  ac_status=$?
34420  grep -v '^ *+' conftest.er1 >conftest.err
34421  rm -f conftest.er1
34422  cat conftest.err >&5
34423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34424  (exit $ac_status); } &&
34425	 { ac_try='test -z "$ac_c_werror_flag"
34426			 || test ! -s conftest.err'
34427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34428  (eval $ac_try) 2>&5
34429  ac_status=$?
34430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431  (exit $ac_status); }; } &&
34432	 { ac_try='test -s conftest$ac_exeext'
34433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34434  (eval $ac_try) 2>&5
34435  ac_status=$?
34436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437  (exit $ac_status); }; }; then
34438  ac_cv_func_getuid=yes
34439else
34440  echo "$as_me: failed program was:" >&5
34441sed 's/^/| /' conftest.$ac_ext >&5
34442
34443ac_cv_func_getuid=no
34444fi
34445rm -f conftest.err conftest.$ac_objext \
34446      conftest$ac_exeext conftest.$ac_ext
34447fi
34448echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
34449echo "${ECHO_T}$ac_cv_func_getuid" >&6
34450if test $ac_cv_func_getuid = yes; then
34451
34452cat >>confdefs.h <<_ACEOF
34453#define HAVE_GETUID 1
34454_ACEOF
34455
34456else
34457  case $LIBOBJS in
34458    "getuid.$ac_objext"   | \
34459  *" getuid.$ac_objext"   | \
34460    "getuid.$ac_objext "* | \
34461  *" getuid.$ac_objext "* ) ;;
34462  *) LIBOBJS="$LIBOBJS getuid.$ac_objext" ;;
34463esac
34464
34465fi
34466echo "$as_me:$LINENO: checking for getusershell" >&5
34467echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
34468if test "${ac_cv_func_getusershell+set}" = set; then
34469  echo $ECHO_N "(cached) $ECHO_C" >&6
34470else
34471  cat >conftest.$ac_ext <<_ACEOF
34472/* confdefs.h.  */
34473_ACEOF
34474cat confdefs.h >>conftest.$ac_ext
34475cat >>conftest.$ac_ext <<_ACEOF
34476/* end confdefs.h.  */
34477/* Define getusershell to an innocuous variant, in case <limits.h> declares getusershell.
34478   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34479#define getusershell innocuous_getusershell
34480
34481/* System header to define __stub macros and hopefully few prototypes,
34482    which can conflict with char getusershell (); below.
34483    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34484    <limits.h> exists even on freestanding compilers.  */
34485
34486#ifdef __STDC__
34487# include <limits.h>
34488#else
34489# include <assert.h>
34490#endif
34491
34492#undef getusershell
34493
34494/* Override any gcc2 internal prototype to avoid an error.  */
34495#ifdef __cplusplus
34496extern "C"
34497{
34498#endif
34499/* We use char because int might match the return type of a gcc2
34500   builtin and then its argument prototype would still apply.  */
34501char getusershell ();
34502/* The GNU C library defines this for functions which it implements
34503    to always fail with ENOSYS.  Some functions are actually named
34504    something starting with __ and the normal name is an alias.  */
34505#if defined (__stub_getusershell) || defined (__stub___getusershell)
34506choke me
34507#else
34508char (*f) () = getusershell;
34509#endif
34510#ifdef __cplusplus
34511}
34512#endif
34513
34514int
34515main ()
34516{
34517return f != getusershell;
34518  ;
34519  return 0;
34520}
34521_ACEOF
34522rm -f conftest.$ac_objext conftest$ac_exeext
34523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34524  (eval $ac_link) 2>conftest.er1
34525  ac_status=$?
34526  grep -v '^ *+' conftest.er1 >conftest.err
34527  rm -f conftest.er1
34528  cat conftest.err >&5
34529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530  (exit $ac_status); } &&
34531	 { ac_try='test -z "$ac_c_werror_flag"
34532			 || test ! -s conftest.err'
34533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34534  (eval $ac_try) 2>&5
34535  ac_status=$?
34536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537  (exit $ac_status); }; } &&
34538	 { ac_try='test -s conftest$ac_exeext'
34539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34540  (eval $ac_try) 2>&5
34541  ac_status=$?
34542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543  (exit $ac_status); }; }; then
34544  ac_cv_func_getusershell=yes
34545else
34546  echo "$as_me: failed program was:" >&5
34547sed 's/^/| /' conftest.$ac_ext >&5
34548
34549ac_cv_func_getusershell=no
34550fi
34551rm -f conftest.err conftest.$ac_objext \
34552      conftest$ac_exeext conftest.$ac_ext
34553fi
34554echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
34555echo "${ECHO_T}$ac_cv_func_getusershell" >&6
34556if test $ac_cv_func_getusershell = yes; then
34557
34558cat >>confdefs.h <<_ACEOF
34559#define HAVE_GETUSERSHELL 1
34560_ACEOF
34561
34562else
34563  case $LIBOBJS in
34564    "getusershell.$ac_objext"   | \
34565  *" getusershell.$ac_objext"   | \
34566    "getusershell.$ac_objext "* | \
34567  *" getusershell.$ac_objext "* ) ;;
34568  *) LIBOBJS="$LIBOBJS getusershell.$ac_objext" ;;
34569esac
34570
34571fi
34572echo "$as_me:$LINENO: checking for initgroups" >&5
34573echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
34574if test "${ac_cv_func_initgroups+set}" = set; then
34575  echo $ECHO_N "(cached) $ECHO_C" >&6
34576else
34577  cat >conftest.$ac_ext <<_ACEOF
34578/* confdefs.h.  */
34579_ACEOF
34580cat confdefs.h >>conftest.$ac_ext
34581cat >>conftest.$ac_ext <<_ACEOF
34582/* end confdefs.h.  */
34583/* Define initgroups to an innocuous variant, in case <limits.h> declares initgroups.
34584   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34585#define initgroups innocuous_initgroups
34586
34587/* System header to define __stub macros and hopefully few prototypes,
34588    which can conflict with char initgroups (); below.
34589    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34590    <limits.h> exists even on freestanding compilers.  */
34591
34592#ifdef __STDC__
34593# include <limits.h>
34594#else
34595# include <assert.h>
34596#endif
34597
34598#undef initgroups
34599
34600/* Override any gcc2 internal prototype to avoid an error.  */
34601#ifdef __cplusplus
34602extern "C"
34603{
34604#endif
34605/* We use char because int might match the return type of a gcc2
34606   builtin and then its argument prototype would still apply.  */
34607char initgroups ();
34608/* The GNU C library defines this for functions which it implements
34609    to always fail with ENOSYS.  Some functions are actually named
34610    something starting with __ and the normal name is an alias.  */
34611#if defined (__stub_initgroups) || defined (__stub___initgroups)
34612choke me
34613#else
34614char (*f) () = initgroups;
34615#endif
34616#ifdef __cplusplus
34617}
34618#endif
34619
34620int
34621main ()
34622{
34623return f != initgroups;
34624  ;
34625  return 0;
34626}
34627_ACEOF
34628rm -f conftest.$ac_objext conftest$ac_exeext
34629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34630  (eval $ac_link) 2>conftest.er1
34631  ac_status=$?
34632  grep -v '^ *+' conftest.er1 >conftest.err
34633  rm -f conftest.er1
34634  cat conftest.err >&5
34635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636  (exit $ac_status); } &&
34637	 { ac_try='test -z "$ac_c_werror_flag"
34638			 || test ! -s conftest.err'
34639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34640  (eval $ac_try) 2>&5
34641  ac_status=$?
34642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643  (exit $ac_status); }; } &&
34644	 { ac_try='test -s conftest$ac_exeext'
34645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34646  (eval $ac_try) 2>&5
34647  ac_status=$?
34648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649  (exit $ac_status); }; }; then
34650  ac_cv_func_initgroups=yes
34651else
34652  echo "$as_me: failed program was:" >&5
34653sed 's/^/| /' conftest.$ac_ext >&5
34654
34655ac_cv_func_initgroups=no
34656fi
34657rm -f conftest.err conftest.$ac_objext \
34658      conftest$ac_exeext conftest.$ac_ext
34659fi
34660echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
34661echo "${ECHO_T}$ac_cv_func_initgroups" >&6
34662if test $ac_cv_func_initgroups = yes; then
34663
34664cat >>confdefs.h <<_ACEOF
34665#define HAVE_INITGROUPS 1
34666_ACEOF
34667
34668else
34669  case $LIBOBJS in
34670    "initgroups.$ac_objext"   | \
34671  *" initgroups.$ac_objext"   | \
34672    "initgroups.$ac_objext "* | \
34673  *" initgroups.$ac_objext "* ) ;;
34674  *) LIBOBJS="$LIBOBJS initgroups.$ac_objext" ;;
34675esac
34676
34677fi
34678echo "$as_me:$LINENO: checking for innetgr" >&5
34679echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
34680if test "${ac_cv_func_innetgr+set}" = set; then
34681  echo $ECHO_N "(cached) $ECHO_C" >&6
34682else
34683  cat >conftest.$ac_ext <<_ACEOF
34684/* confdefs.h.  */
34685_ACEOF
34686cat confdefs.h >>conftest.$ac_ext
34687cat >>conftest.$ac_ext <<_ACEOF
34688/* end confdefs.h.  */
34689/* Define innetgr to an innocuous variant, in case <limits.h> declares innetgr.
34690   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34691#define innetgr innocuous_innetgr
34692
34693/* System header to define __stub macros and hopefully few prototypes,
34694    which can conflict with char innetgr (); below.
34695    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34696    <limits.h> exists even on freestanding compilers.  */
34697
34698#ifdef __STDC__
34699# include <limits.h>
34700#else
34701# include <assert.h>
34702#endif
34703
34704#undef innetgr
34705
34706/* Override any gcc2 internal prototype to avoid an error.  */
34707#ifdef __cplusplus
34708extern "C"
34709{
34710#endif
34711/* We use char because int might match the return type of a gcc2
34712   builtin and then its argument prototype would still apply.  */
34713char innetgr ();
34714/* The GNU C library defines this for functions which it implements
34715    to always fail with ENOSYS.  Some functions are actually named
34716    something starting with __ and the normal name is an alias.  */
34717#if defined (__stub_innetgr) || defined (__stub___innetgr)
34718choke me
34719#else
34720char (*f) () = innetgr;
34721#endif
34722#ifdef __cplusplus
34723}
34724#endif
34725
34726int
34727main ()
34728{
34729return f != innetgr;
34730  ;
34731  return 0;
34732}
34733_ACEOF
34734rm -f conftest.$ac_objext conftest$ac_exeext
34735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34736  (eval $ac_link) 2>conftest.er1
34737  ac_status=$?
34738  grep -v '^ *+' conftest.er1 >conftest.err
34739  rm -f conftest.er1
34740  cat conftest.err >&5
34741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742  (exit $ac_status); } &&
34743	 { ac_try='test -z "$ac_c_werror_flag"
34744			 || test ! -s conftest.err'
34745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34746  (eval $ac_try) 2>&5
34747  ac_status=$?
34748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34749  (exit $ac_status); }; } &&
34750	 { ac_try='test -s conftest$ac_exeext'
34751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34752  (eval $ac_try) 2>&5
34753  ac_status=$?
34754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34755  (exit $ac_status); }; }; then
34756  ac_cv_func_innetgr=yes
34757else
34758  echo "$as_me: failed program was:" >&5
34759sed 's/^/| /' conftest.$ac_ext >&5
34760
34761ac_cv_func_innetgr=no
34762fi
34763rm -f conftest.err conftest.$ac_objext \
34764      conftest$ac_exeext conftest.$ac_ext
34765fi
34766echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
34767echo "${ECHO_T}$ac_cv_func_innetgr" >&6
34768if test $ac_cv_func_innetgr = yes; then
34769
34770cat >>confdefs.h <<_ACEOF
34771#define HAVE_INNETGR 1
34772_ACEOF
34773
34774else
34775  case $LIBOBJS in
34776    "innetgr.$ac_objext"   | \
34777  *" innetgr.$ac_objext"   | \
34778    "innetgr.$ac_objext "* | \
34779  *" innetgr.$ac_objext "* ) ;;
34780  *) LIBOBJS="$LIBOBJS innetgr.$ac_objext" ;;
34781esac
34782
34783fi
34784echo "$as_me:$LINENO: checking for iruserok" >&5
34785echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
34786if test "${ac_cv_func_iruserok+set}" = set; then
34787  echo $ECHO_N "(cached) $ECHO_C" >&6
34788else
34789  cat >conftest.$ac_ext <<_ACEOF
34790/* confdefs.h.  */
34791_ACEOF
34792cat confdefs.h >>conftest.$ac_ext
34793cat >>conftest.$ac_ext <<_ACEOF
34794/* end confdefs.h.  */
34795/* Define iruserok to an innocuous variant, in case <limits.h> declares iruserok.
34796   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34797#define iruserok innocuous_iruserok
34798
34799/* System header to define __stub macros and hopefully few prototypes,
34800    which can conflict with char iruserok (); below.
34801    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34802    <limits.h> exists even on freestanding compilers.  */
34803
34804#ifdef __STDC__
34805# include <limits.h>
34806#else
34807# include <assert.h>
34808#endif
34809
34810#undef iruserok
34811
34812/* Override any gcc2 internal prototype to avoid an error.  */
34813#ifdef __cplusplus
34814extern "C"
34815{
34816#endif
34817/* We use char because int might match the return type of a gcc2
34818   builtin and then its argument prototype would still apply.  */
34819char iruserok ();
34820/* The GNU C library defines this for functions which it implements
34821    to always fail with ENOSYS.  Some functions are actually named
34822    something starting with __ and the normal name is an alias.  */
34823#if defined (__stub_iruserok) || defined (__stub___iruserok)
34824choke me
34825#else
34826char (*f) () = iruserok;
34827#endif
34828#ifdef __cplusplus
34829}
34830#endif
34831
34832int
34833main ()
34834{
34835return f != iruserok;
34836  ;
34837  return 0;
34838}
34839_ACEOF
34840rm -f conftest.$ac_objext conftest$ac_exeext
34841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34842  (eval $ac_link) 2>conftest.er1
34843  ac_status=$?
34844  grep -v '^ *+' conftest.er1 >conftest.err
34845  rm -f conftest.er1
34846  cat conftest.err >&5
34847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848  (exit $ac_status); } &&
34849	 { ac_try='test -z "$ac_c_werror_flag"
34850			 || test ! -s conftest.err'
34851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34852  (eval $ac_try) 2>&5
34853  ac_status=$?
34854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34855  (exit $ac_status); }; } &&
34856	 { ac_try='test -s conftest$ac_exeext'
34857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34858  (eval $ac_try) 2>&5
34859  ac_status=$?
34860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861  (exit $ac_status); }; }; then
34862  ac_cv_func_iruserok=yes
34863else
34864  echo "$as_me: failed program was:" >&5
34865sed 's/^/| /' conftest.$ac_ext >&5
34866
34867ac_cv_func_iruserok=no
34868fi
34869rm -f conftest.err conftest.$ac_objext \
34870      conftest$ac_exeext conftest.$ac_ext
34871fi
34872echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
34873echo "${ECHO_T}$ac_cv_func_iruserok" >&6
34874if test $ac_cv_func_iruserok = yes; then
34875
34876cat >>confdefs.h <<_ACEOF
34877#define HAVE_IRUSEROK 1
34878_ACEOF
34879
34880else
34881  case $LIBOBJS in
34882    "iruserok.$ac_objext"   | \
34883  *" iruserok.$ac_objext"   | \
34884    "iruserok.$ac_objext "* | \
34885  *" iruserok.$ac_objext "* ) ;;
34886  *) LIBOBJS="$LIBOBJS iruserok.$ac_objext" ;;
34887esac
34888
34889fi
34890echo "$as_me:$LINENO: checking for localtime_r" >&5
34891echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
34892if test "${ac_cv_func_localtime_r+set}" = set; then
34893  echo $ECHO_N "(cached) $ECHO_C" >&6
34894else
34895  cat >conftest.$ac_ext <<_ACEOF
34896/* confdefs.h.  */
34897_ACEOF
34898cat confdefs.h >>conftest.$ac_ext
34899cat >>conftest.$ac_ext <<_ACEOF
34900/* end confdefs.h.  */
34901/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
34902   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34903#define localtime_r innocuous_localtime_r
34904
34905/* System header to define __stub macros and hopefully few prototypes,
34906    which can conflict with char localtime_r (); below.
34907    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34908    <limits.h> exists even on freestanding compilers.  */
34909
34910#ifdef __STDC__
34911# include <limits.h>
34912#else
34913# include <assert.h>
34914#endif
34915
34916#undef localtime_r
34917
34918/* Override any gcc2 internal prototype to avoid an error.  */
34919#ifdef __cplusplus
34920extern "C"
34921{
34922#endif
34923/* We use char because int might match the return type of a gcc2
34924   builtin and then its argument prototype would still apply.  */
34925char localtime_r ();
34926/* The GNU C library defines this for functions which it implements
34927    to always fail with ENOSYS.  Some functions are actually named
34928    something starting with __ and the normal name is an alias.  */
34929#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
34930choke me
34931#else
34932char (*f) () = localtime_r;
34933#endif
34934#ifdef __cplusplus
34935}
34936#endif
34937
34938int
34939main ()
34940{
34941return f != localtime_r;
34942  ;
34943  return 0;
34944}
34945_ACEOF
34946rm -f conftest.$ac_objext conftest$ac_exeext
34947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34948  (eval $ac_link) 2>conftest.er1
34949  ac_status=$?
34950  grep -v '^ *+' conftest.er1 >conftest.err
34951  rm -f conftest.er1
34952  cat conftest.err >&5
34953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954  (exit $ac_status); } &&
34955	 { ac_try='test -z "$ac_c_werror_flag"
34956			 || test ! -s conftest.err'
34957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34958  (eval $ac_try) 2>&5
34959  ac_status=$?
34960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34961  (exit $ac_status); }; } &&
34962	 { ac_try='test -s conftest$ac_exeext'
34963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34964  (eval $ac_try) 2>&5
34965  ac_status=$?
34966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967  (exit $ac_status); }; }; then
34968  ac_cv_func_localtime_r=yes
34969else
34970  echo "$as_me: failed program was:" >&5
34971sed 's/^/| /' conftest.$ac_ext >&5
34972
34973ac_cv_func_localtime_r=no
34974fi
34975rm -f conftest.err conftest.$ac_objext \
34976      conftest$ac_exeext conftest.$ac_ext
34977fi
34978echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
34979echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
34980if test $ac_cv_func_localtime_r = yes; then
34981
34982cat >>confdefs.h <<_ACEOF
34983#define HAVE_LOCALTIME_R 1
34984_ACEOF
34985
34986else
34987  case $LIBOBJS in
34988    "localtime_r.$ac_objext"   | \
34989  *" localtime_r.$ac_objext"   | \
34990    "localtime_r.$ac_objext "* | \
34991  *" localtime_r.$ac_objext "* ) ;;
34992  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" ;;
34993esac
34994
34995fi
34996echo "$as_me:$LINENO: checking for lstat" >&5
34997echo $ECHO_N "checking for lstat... $ECHO_C" >&6
34998if test "${ac_cv_func_lstat+set}" = set; then
34999  echo $ECHO_N "(cached) $ECHO_C" >&6
35000else
35001  cat >conftest.$ac_ext <<_ACEOF
35002/* confdefs.h.  */
35003_ACEOF
35004cat confdefs.h >>conftest.$ac_ext
35005cat >>conftest.$ac_ext <<_ACEOF
35006/* end confdefs.h.  */
35007/* Define lstat to an innocuous variant, in case <limits.h> declares lstat.
35008   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35009#define lstat innocuous_lstat
35010
35011/* System header to define __stub macros and hopefully few prototypes,
35012    which can conflict with char lstat (); below.
35013    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35014    <limits.h> exists even on freestanding compilers.  */
35015
35016#ifdef __STDC__
35017# include <limits.h>
35018#else
35019# include <assert.h>
35020#endif
35021
35022#undef lstat
35023
35024/* Override any gcc2 internal prototype to avoid an error.  */
35025#ifdef __cplusplus
35026extern "C"
35027{
35028#endif
35029/* We use char because int might match the return type of a gcc2
35030   builtin and then its argument prototype would still apply.  */
35031char lstat ();
35032/* The GNU C library defines this for functions which it implements
35033    to always fail with ENOSYS.  Some functions are actually named
35034    something starting with __ and the normal name is an alias.  */
35035#if defined (__stub_lstat) || defined (__stub___lstat)
35036choke me
35037#else
35038char (*f) () = lstat;
35039#endif
35040#ifdef __cplusplus
35041}
35042#endif
35043
35044int
35045main ()
35046{
35047return f != lstat;
35048  ;
35049  return 0;
35050}
35051_ACEOF
35052rm -f conftest.$ac_objext conftest$ac_exeext
35053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35054  (eval $ac_link) 2>conftest.er1
35055  ac_status=$?
35056  grep -v '^ *+' conftest.er1 >conftest.err
35057  rm -f conftest.er1
35058  cat conftest.err >&5
35059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060  (exit $ac_status); } &&
35061	 { ac_try='test -z "$ac_c_werror_flag"
35062			 || test ! -s conftest.err'
35063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35064  (eval $ac_try) 2>&5
35065  ac_status=$?
35066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35067  (exit $ac_status); }; } &&
35068	 { ac_try='test -s conftest$ac_exeext'
35069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35070  (eval $ac_try) 2>&5
35071  ac_status=$?
35072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073  (exit $ac_status); }; }; then
35074  ac_cv_func_lstat=yes
35075else
35076  echo "$as_me: failed program was:" >&5
35077sed 's/^/| /' conftest.$ac_ext >&5
35078
35079ac_cv_func_lstat=no
35080fi
35081rm -f conftest.err conftest.$ac_objext \
35082      conftest$ac_exeext conftest.$ac_ext
35083fi
35084echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
35085echo "${ECHO_T}$ac_cv_func_lstat" >&6
35086if test $ac_cv_func_lstat = yes; then
35087
35088cat >>confdefs.h <<_ACEOF
35089#define HAVE_LSTAT 1
35090_ACEOF
35091
35092else
35093  case $LIBOBJS in
35094    "lstat.$ac_objext"   | \
35095  *" lstat.$ac_objext"   | \
35096    "lstat.$ac_objext "* | \
35097  *" lstat.$ac_objext "* ) ;;
35098  *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
35099esac
35100
35101fi
35102echo "$as_me:$LINENO: checking for memmove" >&5
35103echo $ECHO_N "checking for memmove... $ECHO_C" >&6
35104if test "${ac_cv_func_memmove+set}" = set; then
35105  echo $ECHO_N "(cached) $ECHO_C" >&6
35106else
35107  cat >conftest.$ac_ext <<_ACEOF
35108/* confdefs.h.  */
35109_ACEOF
35110cat confdefs.h >>conftest.$ac_ext
35111cat >>conftest.$ac_ext <<_ACEOF
35112/* end confdefs.h.  */
35113/* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
35114   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35115#define memmove innocuous_memmove
35116
35117/* System header to define __stub macros and hopefully few prototypes,
35118    which can conflict with char memmove (); below.
35119    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35120    <limits.h> exists even on freestanding compilers.  */
35121
35122#ifdef __STDC__
35123# include <limits.h>
35124#else
35125# include <assert.h>
35126#endif
35127
35128#undef memmove
35129
35130/* Override any gcc2 internal prototype to avoid an error.  */
35131#ifdef __cplusplus
35132extern "C"
35133{
35134#endif
35135/* We use char because int might match the return type of a gcc2
35136   builtin and then its argument prototype would still apply.  */
35137char memmove ();
35138/* The GNU C library defines this for functions which it implements
35139    to always fail with ENOSYS.  Some functions are actually named
35140    something starting with __ and the normal name is an alias.  */
35141#if defined (__stub_memmove) || defined (__stub___memmove)
35142choke me
35143#else
35144char (*f) () = memmove;
35145#endif
35146#ifdef __cplusplus
35147}
35148#endif
35149
35150int
35151main ()
35152{
35153return f != memmove;
35154  ;
35155  return 0;
35156}
35157_ACEOF
35158rm -f conftest.$ac_objext conftest$ac_exeext
35159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35160  (eval $ac_link) 2>conftest.er1
35161  ac_status=$?
35162  grep -v '^ *+' conftest.er1 >conftest.err
35163  rm -f conftest.er1
35164  cat conftest.err >&5
35165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166  (exit $ac_status); } &&
35167	 { ac_try='test -z "$ac_c_werror_flag"
35168			 || test ! -s conftest.err'
35169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170  (eval $ac_try) 2>&5
35171  ac_status=$?
35172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173  (exit $ac_status); }; } &&
35174	 { ac_try='test -s conftest$ac_exeext'
35175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176  (eval $ac_try) 2>&5
35177  ac_status=$?
35178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179  (exit $ac_status); }; }; then
35180  ac_cv_func_memmove=yes
35181else
35182  echo "$as_me: failed program was:" >&5
35183sed 's/^/| /' conftest.$ac_ext >&5
35184
35185ac_cv_func_memmove=no
35186fi
35187rm -f conftest.err conftest.$ac_objext \
35188      conftest$ac_exeext conftest.$ac_ext
35189fi
35190echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
35191echo "${ECHO_T}$ac_cv_func_memmove" >&6
35192if test $ac_cv_func_memmove = yes; then
35193
35194cat >>confdefs.h <<_ACEOF
35195#define HAVE_MEMMOVE 1
35196_ACEOF
35197
35198else
35199  case $LIBOBJS in
35200    "memmove.$ac_objext"   | \
35201  *" memmove.$ac_objext"   | \
35202    "memmove.$ac_objext "* | \
35203  *" memmove.$ac_objext "* ) ;;
35204  *) LIBOBJS="$LIBOBJS memmove.$ac_objext" ;;
35205esac
35206
35207fi
35208echo "$as_me:$LINENO: checking for mkstemp" >&5
35209echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
35210if test "${ac_cv_func_mkstemp+set}" = set; then
35211  echo $ECHO_N "(cached) $ECHO_C" >&6
35212else
35213  cat >conftest.$ac_ext <<_ACEOF
35214/* confdefs.h.  */
35215_ACEOF
35216cat confdefs.h >>conftest.$ac_ext
35217cat >>conftest.$ac_ext <<_ACEOF
35218/* end confdefs.h.  */
35219/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
35220   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35221#define mkstemp innocuous_mkstemp
35222
35223/* System header to define __stub macros and hopefully few prototypes,
35224    which can conflict with char mkstemp (); below.
35225    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35226    <limits.h> exists even on freestanding compilers.  */
35227
35228#ifdef __STDC__
35229# include <limits.h>
35230#else
35231# include <assert.h>
35232#endif
35233
35234#undef mkstemp
35235
35236/* Override any gcc2 internal prototype to avoid an error.  */
35237#ifdef __cplusplus
35238extern "C"
35239{
35240#endif
35241/* We use char because int might match the return type of a gcc2
35242   builtin and then its argument prototype would still apply.  */
35243char mkstemp ();
35244/* The GNU C library defines this for functions which it implements
35245    to always fail with ENOSYS.  Some functions are actually named
35246    something starting with __ and the normal name is an alias.  */
35247#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
35248choke me
35249#else
35250char (*f) () = mkstemp;
35251#endif
35252#ifdef __cplusplus
35253}
35254#endif
35255
35256int
35257main ()
35258{
35259return f != mkstemp;
35260  ;
35261  return 0;
35262}
35263_ACEOF
35264rm -f conftest.$ac_objext conftest$ac_exeext
35265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35266  (eval $ac_link) 2>conftest.er1
35267  ac_status=$?
35268  grep -v '^ *+' conftest.er1 >conftest.err
35269  rm -f conftest.er1
35270  cat conftest.err >&5
35271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272  (exit $ac_status); } &&
35273	 { ac_try='test -z "$ac_c_werror_flag"
35274			 || test ! -s conftest.err'
35275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35276  (eval $ac_try) 2>&5
35277  ac_status=$?
35278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279  (exit $ac_status); }; } &&
35280	 { ac_try='test -s conftest$ac_exeext'
35281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35282  (eval $ac_try) 2>&5
35283  ac_status=$?
35284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285  (exit $ac_status); }; }; then
35286  ac_cv_func_mkstemp=yes
35287else
35288  echo "$as_me: failed program was:" >&5
35289sed 's/^/| /' conftest.$ac_ext >&5
35290
35291ac_cv_func_mkstemp=no
35292fi
35293rm -f conftest.err conftest.$ac_objext \
35294      conftest$ac_exeext conftest.$ac_ext
35295fi
35296echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
35297echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
35298if test $ac_cv_func_mkstemp = yes; then
35299
35300cat >>confdefs.h <<_ACEOF
35301#define HAVE_MKSTEMP 1
35302_ACEOF
35303
35304else
35305  case $LIBOBJS in
35306    "mkstemp.$ac_objext"   | \
35307  *" mkstemp.$ac_objext"   | \
35308    "mkstemp.$ac_objext "* | \
35309  *" mkstemp.$ac_objext "* ) ;;
35310  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
35311esac
35312
35313fi
35314echo "$as_me:$LINENO: checking for putenv" >&5
35315echo $ECHO_N "checking for putenv... $ECHO_C" >&6
35316if test "${ac_cv_func_putenv+set}" = set; then
35317  echo $ECHO_N "(cached) $ECHO_C" >&6
35318else
35319  cat >conftest.$ac_ext <<_ACEOF
35320/* confdefs.h.  */
35321_ACEOF
35322cat confdefs.h >>conftest.$ac_ext
35323cat >>conftest.$ac_ext <<_ACEOF
35324/* end confdefs.h.  */
35325/* Define putenv to an innocuous variant, in case <limits.h> declares putenv.
35326   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35327#define putenv innocuous_putenv
35328
35329/* System header to define __stub macros and hopefully few prototypes,
35330    which can conflict with char putenv (); below.
35331    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35332    <limits.h> exists even on freestanding compilers.  */
35333
35334#ifdef __STDC__
35335# include <limits.h>
35336#else
35337# include <assert.h>
35338#endif
35339
35340#undef putenv
35341
35342/* Override any gcc2 internal prototype to avoid an error.  */
35343#ifdef __cplusplus
35344extern "C"
35345{
35346#endif
35347/* We use char because int might match the return type of a gcc2
35348   builtin and then its argument prototype would still apply.  */
35349char putenv ();
35350/* The GNU C library defines this for functions which it implements
35351    to always fail with ENOSYS.  Some functions are actually named
35352    something starting with __ and the normal name is an alias.  */
35353#if defined (__stub_putenv) || defined (__stub___putenv)
35354choke me
35355#else
35356char (*f) () = putenv;
35357#endif
35358#ifdef __cplusplus
35359}
35360#endif
35361
35362int
35363main ()
35364{
35365return f != putenv;
35366  ;
35367  return 0;
35368}
35369_ACEOF
35370rm -f conftest.$ac_objext conftest$ac_exeext
35371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35372  (eval $ac_link) 2>conftest.er1
35373  ac_status=$?
35374  grep -v '^ *+' conftest.er1 >conftest.err
35375  rm -f conftest.er1
35376  cat conftest.err >&5
35377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378  (exit $ac_status); } &&
35379	 { ac_try='test -z "$ac_c_werror_flag"
35380			 || test ! -s conftest.err'
35381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35382  (eval $ac_try) 2>&5
35383  ac_status=$?
35384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35385  (exit $ac_status); }; } &&
35386	 { ac_try='test -s conftest$ac_exeext'
35387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35388  (eval $ac_try) 2>&5
35389  ac_status=$?
35390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391  (exit $ac_status); }; }; then
35392  ac_cv_func_putenv=yes
35393else
35394  echo "$as_me: failed program was:" >&5
35395sed 's/^/| /' conftest.$ac_ext >&5
35396
35397ac_cv_func_putenv=no
35398fi
35399rm -f conftest.err conftest.$ac_objext \
35400      conftest$ac_exeext conftest.$ac_ext
35401fi
35402echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
35403echo "${ECHO_T}$ac_cv_func_putenv" >&6
35404if test $ac_cv_func_putenv = yes; then
35405
35406cat >>confdefs.h <<_ACEOF
35407#define HAVE_PUTENV 1
35408_ACEOF
35409
35410else
35411  case $LIBOBJS in
35412    "putenv.$ac_objext"   | \
35413  *" putenv.$ac_objext"   | \
35414    "putenv.$ac_objext "* | \
35415  *" putenv.$ac_objext "* ) ;;
35416  *) LIBOBJS="$LIBOBJS putenv.$ac_objext" ;;
35417esac
35418
35419fi
35420echo "$as_me:$LINENO: checking for rcmd" >&5
35421echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
35422if test "${ac_cv_func_rcmd+set}" = set; then
35423  echo $ECHO_N "(cached) $ECHO_C" >&6
35424else
35425  cat >conftest.$ac_ext <<_ACEOF
35426/* confdefs.h.  */
35427_ACEOF
35428cat confdefs.h >>conftest.$ac_ext
35429cat >>conftest.$ac_ext <<_ACEOF
35430/* end confdefs.h.  */
35431/* Define rcmd to an innocuous variant, in case <limits.h> declares rcmd.
35432   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35433#define rcmd innocuous_rcmd
35434
35435/* System header to define __stub macros and hopefully few prototypes,
35436    which can conflict with char rcmd (); below.
35437    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35438    <limits.h> exists even on freestanding compilers.  */
35439
35440#ifdef __STDC__
35441# include <limits.h>
35442#else
35443# include <assert.h>
35444#endif
35445
35446#undef rcmd
35447
35448/* Override any gcc2 internal prototype to avoid an error.  */
35449#ifdef __cplusplus
35450extern "C"
35451{
35452#endif
35453/* We use char because int might match the return type of a gcc2
35454   builtin and then its argument prototype would still apply.  */
35455char rcmd ();
35456/* The GNU C library defines this for functions which it implements
35457    to always fail with ENOSYS.  Some functions are actually named
35458    something starting with __ and the normal name is an alias.  */
35459#if defined (__stub_rcmd) || defined (__stub___rcmd)
35460choke me
35461#else
35462char (*f) () = rcmd;
35463#endif
35464#ifdef __cplusplus
35465}
35466#endif
35467
35468int
35469main ()
35470{
35471return f != rcmd;
35472  ;
35473  return 0;
35474}
35475_ACEOF
35476rm -f conftest.$ac_objext conftest$ac_exeext
35477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35478  (eval $ac_link) 2>conftest.er1
35479  ac_status=$?
35480  grep -v '^ *+' conftest.er1 >conftest.err
35481  rm -f conftest.er1
35482  cat conftest.err >&5
35483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484  (exit $ac_status); } &&
35485	 { ac_try='test -z "$ac_c_werror_flag"
35486			 || test ! -s conftest.err'
35487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35488  (eval $ac_try) 2>&5
35489  ac_status=$?
35490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491  (exit $ac_status); }; } &&
35492	 { ac_try='test -s conftest$ac_exeext'
35493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35494  (eval $ac_try) 2>&5
35495  ac_status=$?
35496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497  (exit $ac_status); }; }; then
35498  ac_cv_func_rcmd=yes
35499else
35500  echo "$as_me: failed program was:" >&5
35501sed 's/^/| /' conftest.$ac_ext >&5
35502
35503ac_cv_func_rcmd=no
35504fi
35505rm -f conftest.err conftest.$ac_objext \
35506      conftest$ac_exeext conftest.$ac_ext
35507fi
35508echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
35509echo "${ECHO_T}$ac_cv_func_rcmd" >&6
35510if test $ac_cv_func_rcmd = yes; then
35511
35512cat >>confdefs.h <<_ACEOF
35513#define HAVE_RCMD 1
35514_ACEOF
35515
35516else
35517  case $LIBOBJS in
35518    "rcmd.$ac_objext"   | \
35519  *" rcmd.$ac_objext"   | \
35520    "rcmd.$ac_objext "* | \
35521  *" rcmd.$ac_objext "* ) ;;
35522  *) LIBOBJS="$LIBOBJS rcmd.$ac_objext" ;;
35523esac
35524
35525fi
35526echo "$as_me:$LINENO: checking for readv" >&5
35527echo $ECHO_N "checking for readv... $ECHO_C" >&6
35528if test "${ac_cv_func_readv+set}" = set; then
35529  echo $ECHO_N "(cached) $ECHO_C" >&6
35530else
35531  cat >conftest.$ac_ext <<_ACEOF
35532/* confdefs.h.  */
35533_ACEOF
35534cat confdefs.h >>conftest.$ac_ext
35535cat >>conftest.$ac_ext <<_ACEOF
35536/* end confdefs.h.  */
35537/* Define readv to an innocuous variant, in case <limits.h> declares readv.
35538   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35539#define readv innocuous_readv
35540
35541/* System header to define __stub macros and hopefully few prototypes,
35542    which can conflict with char readv (); below.
35543    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35544    <limits.h> exists even on freestanding compilers.  */
35545
35546#ifdef __STDC__
35547# include <limits.h>
35548#else
35549# include <assert.h>
35550#endif
35551
35552#undef readv
35553
35554/* Override any gcc2 internal prototype to avoid an error.  */
35555#ifdef __cplusplus
35556extern "C"
35557{
35558#endif
35559/* We use char because int might match the return type of a gcc2
35560   builtin and then its argument prototype would still apply.  */
35561char readv ();
35562/* The GNU C library defines this for functions which it implements
35563    to always fail with ENOSYS.  Some functions are actually named
35564    something starting with __ and the normal name is an alias.  */
35565#if defined (__stub_readv) || defined (__stub___readv)
35566choke me
35567#else
35568char (*f) () = readv;
35569#endif
35570#ifdef __cplusplus
35571}
35572#endif
35573
35574int
35575main ()
35576{
35577return f != readv;
35578  ;
35579  return 0;
35580}
35581_ACEOF
35582rm -f conftest.$ac_objext conftest$ac_exeext
35583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35584  (eval $ac_link) 2>conftest.er1
35585  ac_status=$?
35586  grep -v '^ *+' conftest.er1 >conftest.err
35587  rm -f conftest.er1
35588  cat conftest.err >&5
35589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590  (exit $ac_status); } &&
35591	 { ac_try='test -z "$ac_c_werror_flag"
35592			 || test ! -s conftest.err'
35593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35594  (eval $ac_try) 2>&5
35595  ac_status=$?
35596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35597  (exit $ac_status); }; } &&
35598	 { ac_try='test -s conftest$ac_exeext'
35599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35600  (eval $ac_try) 2>&5
35601  ac_status=$?
35602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603  (exit $ac_status); }; }; then
35604  ac_cv_func_readv=yes
35605else
35606  echo "$as_me: failed program was:" >&5
35607sed 's/^/| /' conftest.$ac_ext >&5
35608
35609ac_cv_func_readv=no
35610fi
35611rm -f conftest.err conftest.$ac_objext \
35612      conftest$ac_exeext conftest.$ac_ext
35613fi
35614echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
35615echo "${ECHO_T}$ac_cv_func_readv" >&6
35616if test $ac_cv_func_readv = yes; then
35617
35618cat >>confdefs.h <<_ACEOF
35619#define HAVE_READV 1
35620_ACEOF
35621
35622else
35623  case $LIBOBJS in
35624    "readv.$ac_objext"   | \
35625  *" readv.$ac_objext"   | \
35626    "readv.$ac_objext "* | \
35627  *" readv.$ac_objext "* ) ;;
35628  *) LIBOBJS="$LIBOBJS readv.$ac_objext" ;;
35629esac
35630
35631fi
35632echo "$as_me:$LINENO: checking for recvmsg" >&5
35633echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
35634if test "${ac_cv_func_recvmsg+set}" = set; then
35635  echo $ECHO_N "(cached) $ECHO_C" >&6
35636else
35637  cat >conftest.$ac_ext <<_ACEOF
35638/* confdefs.h.  */
35639_ACEOF
35640cat confdefs.h >>conftest.$ac_ext
35641cat >>conftest.$ac_ext <<_ACEOF
35642/* end confdefs.h.  */
35643/* Define recvmsg to an innocuous variant, in case <limits.h> declares recvmsg.
35644   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35645#define recvmsg innocuous_recvmsg
35646
35647/* System header to define __stub macros and hopefully few prototypes,
35648    which can conflict with char recvmsg (); below.
35649    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35650    <limits.h> exists even on freestanding compilers.  */
35651
35652#ifdef __STDC__
35653# include <limits.h>
35654#else
35655# include <assert.h>
35656#endif
35657
35658#undef recvmsg
35659
35660/* Override any gcc2 internal prototype to avoid an error.  */
35661#ifdef __cplusplus
35662extern "C"
35663{
35664#endif
35665/* We use char because int might match the return type of a gcc2
35666   builtin and then its argument prototype would still apply.  */
35667char recvmsg ();
35668/* The GNU C library defines this for functions which it implements
35669    to always fail with ENOSYS.  Some functions are actually named
35670    something starting with __ and the normal name is an alias.  */
35671#if defined (__stub_recvmsg) || defined (__stub___recvmsg)
35672choke me
35673#else
35674char (*f) () = recvmsg;
35675#endif
35676#ifdef __cplusplus
35677}
35678#endif
35679
35680int
35681main ()
35682{
35683return f != recvmsg;
35684  ;
35685  return 0;
35686}
35687_ACEOF
35688rm -f conftest.$ac_objext conftest$ac_exeext
35689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35690  (eval $ac_link) 2>conftest.er1
35691  ac_status=$?
35692  grep -v '^ *+' conftest.er1 >conftest.err
35693  rm -f conftest.er1
35694  cat conftest.err >&5
35695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696  (exit $ac_status); } &&
35697	 { ac_try='test -z "$ac_c_werror_flag"
35698			 || test ! -s conftest.err'
35699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700  (eval $ac_try) 2>&5
35701  ac_status=$?
35702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703  (exit $ac_status); }; } &&
35704	 { ac_try='test -s conftest$ac_exeext'
35705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35706  (eval $ac_try) 2>&5
35707  ac_status=$?
35708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709  (exit $ac_status); }; }; then
35710  ac_cv_func_recvmsg=yes
35711else
35712  echo "$as_me: failed program was:" >&5
35713sed 's/^/| /' conftest.$ac_ext >&5
35714
35715ac_cv_func_recvmsg=no
35716fi
35717rm -f conftest.err conftest.$ac_objext \
35718      conftest$ac_exeext conftest.$ac_ext
35719fi
35720echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
35721echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
35722if test $ac_cv_func_recvmsg = yes; then
35723
35724cat >>confdefs.h <<_ACEOF
35725#define HAVE_RECVMSG 1
35726_ACEOF
35727
35728else
35729  case $LIBOBJS in
35730    "recvmsg.$ac_objext"   | \
35731  *" recvmsg.$ac_objext"   | \
35732    "recvmsg.$ac_objext "* | \
35733  *" recvmsg.$ac_objext "* ) ;;
35734  *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext" ;;
35735esac
35736
35737fi
35738echo "$as_me:$LINENO: checking for sendmsg" >&5
35739echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
35740if test "${ac_cv_func_sendmsg+set}" = set; then
35741  echo $ECHO_N "(cached) $ECHO_C" >&6
35742else
35743  cat >conftest.$ac_ext <<_ACEOF
35744/* confdefs.h.  */
35745_ACEOF
35746cat confdefs.h >>conftest.$ac_ext
35747cat >>conftest.$ac_ext <<_ACEOF
35748/* end confdefs.h.  */
35749/* Define sendmsg to an innocuous variant, in case <limits.h> declares sendmsg.
35750   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35751#define sendmsg innocuous_sendmsg
35752
35753/* System header to define __stub macros and hopefully few prototypes,
35754    which can conflict with char sendmsg (); below.
35755    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35756    <limits.h> exists even on freestanding compilers.  */
35757
35758#ifdef __STDC__
35759# include <limits.h>
35760#else
35761# include <assert.h>
35762#endif
35763
35764#undef sendmsg
35765
35766/* Override any gcc2 internal prototype to avoid an error.  */
35767#ifdef __cplusplus
35768extern "C"
35769{
35770#endif
35771/* We use char because int might match the return type of a gcc2
35772   builtin and then its argument prototype would still apply.  */
35773char sendmsg ();
35774/* The GNU C library defines this for functions which it implements
35775    to always fail with ENOSYS.  Some functions are actually named
35776    something starting with __ and the normal name is an alias.  */
35777#if defined (__stub_sendmsg) || defined (__stub___sendmsg)
35778choke me
35779#else
35780char (*f) () = sendmsg;
35781#endif
35782#ifdef __cplusplus
35783}
35784#endif
35785
35786int
35787main ()
35788{
35789return f != sendmsg;
35790  ;
35791  return 0;
35792}
35793_ACEOF
35794rm -f conftest.$ac_objext conftest$ac_exeext
35795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35796  (eval $ac_link) 2>conftest.er1
35797  ac_status=$?
35798  grep -v '^ *+' conftest.er1 >conftest.err
35799  rm -f conftest.er1
35800  cat conftest.err >&5
35801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802  (exit $ac_status); } &&
35803	 { ac_try='test -z "$ac_c_werror_flag"
35804			 || test ! -s conftest.err'
35805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35806  (eval $ac_try) 2>&5
35807  ac_status=$?
35808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809  (exit $ac_status); }; } &&
35810	 { ac_try='test -s conftest$ac_exeext'
35811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35812  (eval $ac_try) 2>&5
35813  ac_status=$?
35814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35815  (exit $ac_status); }; }; then
35816  ac_cv_func_sendmsg=yes
35817else
35818  echo "$as_me: failed program was:" >&5
35819sed 's/^/| /' conftest.$ac_ext >&5
35820
35821ac_cv_func_sendmsg=no
35822fi
35823rm -f conftest.err conftest.$ac_objext \
35824      conftest$ac_exeext conftest.$ac_ext
35825fi
35826echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
35827echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
35828if test $ac_cv_func_sendmsg = yes; then
35829
35830cat >>confdefs.h <<_ACEOF
35831#define HAVE_SENDMSG 1
35832_ACEOF
35833
35834else
35835  case $LIBOBJS in
35836    "sendmsg.$ac_objext"   | \
35837  *" sendmsg.$ac_objext"   | \
35838    "sendmsg.$ac_objext "* | \
35839  *" sendmsg.$ac_objext "* ) ;;
35840  *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext" ;;
35841esac
35842
35843fi
35844echo "$as_me:$LINENO: checking for setegid" >&5
35845echo $ECHO_N "checking for setegid... $ECHO_C" >&6
35846if test "${ac_cv_func_setegid+set}" = set; then
35847  echo $ECHO_N "(cached) $ECHO_C" >&6
35848else
35849  cat >conftest.$ac_ext <<_ACEOF
35850/* confdefs.h.  */
35851_ACEOF
35852cat confdefs.h >>conftest.$ac_ext
35853cat >>conftest.$ac_ext <<_ACEOF
35854/* end confdefs.h.  */
35855/* Define setegid to an innocuous variant, in case <limits.h> declares setegid.
35856   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35857#define setegid innocuous_setegid
35858
35859/* System header to define __stub macros and hopefully few prototypes,
35860    which can conflict with char setegid (); below.
35861    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35862    <limits.h> exists even on freestanding compilers.  */
35863
35864#ifdef __STDC__
35865# include <limits.h>
35866#else
35867# include <assert.h>
35868#endif
35869
35870#undef setegid
35871
35872/* Override any gcc2 internal prototype to avoid an error.  */
35873#ifdef __cplusplus
35874extern "C"
35875{
35876#endif
35877/* We use char because int might match the return type of a gcc2
35878   builtin and then its argument prototype would still apply.  */
35879char setegid ();
35880/* The GNU C library defines this for functions which it implements
35881    to always fail with ENOSYS.  Some functions are actually named
35882    something starting with __ and the normal name is an alias.  */
35883#if defined (__stub_setegid) || defined (__stub___setegid)
35884choke me
35885#else
35886char (*f) () = setegid;
35887#endif
35888#ifdef __cplusplus
35889}
35890#endif
35891
35892int
35893main ()
35894{
35895return f != setegid;
35896  ;
35897  return 0;
35898}
35899_ACEOF
35900rm -f conftest.$ac_objext conftest$ac_exeext
35901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35902  (eval $ac_link) 2>conftest.er1
35903  ac_status=$?
35904  grep -v '^ *+' conftest.er1 >conftest.err
35905  rm -f conftest.er1
35906  cat conftest.err >&5
35907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908  (exit $ac_status); } &&
35909	 { ac_try='test -z "$ac_c_werror_flag"
35910			 || test ! -s conftest.err'
35911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35912  (eval $ac_try) 2>&5
35913  ac_status=$?
35914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915  (exit $ac_status); }; } &&
35916	 { ac_try='test -s conftest$ac_exeext'
35917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35918  (eval $ac_try) 2>&5
35919  ac_status=$?
35920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35921  (exit $ac_status); }; }; then
35922  ac_cv_func_setegid=yes
35923else
35924  echo "$as_me: failed program was:" >&5
35925sed 's/^/| /' conftest.$ac_ext >&5
35926
35927ac_cv_func_setegid=no
35928fi
35929rm -f conftest.err conftest.$ac_objext \
35930      conftest$ac_exeext conftest.$ac_ext
35931fi
35932echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
35933echo "${ECHO_T}$ac_cv_func_setegid" >&6
35934if test $ac_cv_func_setegid = yes; then
35935
35936cat >>confdefs.h <<_ACEOF
35937#define HAVE_SETEGID 1
35938_ACEOF
35939
35940else
35941  case $LIBOBJS in
35942    "setegid.$ac_objext"   | \
35943  *" setegid.$ac_objext"   | \
35944    "setegid.$ac_objext "* | \
35945  *" setegid.$ac_objext "* ) ;;
35946  *) LIBOBJS="$LIBOBJS setegid.$ac_objext" ;;
35947esac
35948
35949fi
35950echo "$as_me:$LINENO: checking for setenv" >&5
35951echo $ECHO_N "checking for setenv... $ECHO_C" >&6
35952if test "${ac_cv_func_setenv+set}" = set; then
35953  echo $ECHO_N "(cached) $ECHO_C" >&6
35954else
35955  cat >conftest.$ac_ext <<_ACEOF
35956/* confdefs.h.  */
35957_ACEOF
35958cat confdefs.h >>conftest.$ac_ext
35959cat >>conftest.$ac_ext <<_ACEOF
35960/* end confdefs.h.  */
35961/* Define setenv to an innocuous variant, in case <limits.h> declares setenv.
35962   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35963#define setenv innocuous_setenv
35964
35965/* System header to define __stub macros and hopefully few prototypes,
35966    which can conflict with char setenv (); below.
35967    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35968    <limits.h> exists even on freestanding compilers.  */
35969
35970#ifdef __STDC__
35971# include <limits.h>
35972#else
35973# include <assert.h>
35974#endif
35975
35976#undef setenv
35977
35978/* Override any gcc2 internal prototype to avoid an error.  */
35979#ifdef __cplusplus
35980extern "C"
35981{
35982#endif
35983/* We use char because int might match the return type of a gcc2
35984   builtin and then its argument prototype would still apply.  */
35985char setenv ();
35986/* The GNU C library defines this for functions which it implements
35987    to always fail with ENOSYS.  Some functions are actually named
35988    something starting with __ and the normal name is an alias.  */
35989#if defined (__stub_setenv) || defined (__stub___setenv)
35990choke me
35991#else
35992char (*f) () = setenv;
35993#endif
35994#ifdef __cplusplus
35995}
35996#endif
35997
35998int
35999main ()
36000{
36001return f != setenv;
36002  ;
36003  return 0;
36004}
36005_ACEOF
36006rm -f conftest.$ac_objext conftest$ac_exeext
36007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36008  (eval $ac_link) 2>conftest.er1
36009  ac_status=$?
36010  grep -v '^ *+' conftest.er1 >conftest.err
36011  rm -f conftest.er1
36012  cat conftest.err >&5
36013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014  (exit $ac_status); } &&
36015	 { ac_try='test -z "$ac_c_werror_flag"
36016			 || test ! -s conftest.err'
36017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36018  (eval $ac_try) 2>&5
36019  ac_status=$?
36020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021  (exit $ac_status); }; } &&
36022	 { ac_try='test -s conftest$ac_exeext'
36023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36024  (eval $ac_try) 2>&5
36025  ac_status=$?
36026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027  (exit $ac_status); }; }; then
36028  ac_cv_func_setenv=yes
36029else
36030  echo "$as_me: failed program was:" >&5
36031sed 's/^/| /' conftest.$ac_ext >&5
36032
36033ac_cv_func_setenv=no
36034fi
36035rm -f conftest.err conftest.$ac_objext \
36036      conftest$ac_exeext conftest.$ac_ext
36037fi
36038echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
36039echo "${ECHO_T}$ac_cv_func_setenv" >&6
36040if test $ac_cv_func_setenv = yes; then
36041
36042cat >>confdefs.h <<_ACEOF
36043#define HAVE_SETENV 1
36044_ACEOF
36045
36046else
36047  case $LIBOBJS in
36048    "setenv.$ac_objext"   | \
36049  *" setenv.$ac_objext"   | \
36050    "setenv.$ac_objext "* | \
36051  *" setenv.$ac_objext "* ) ;;
36052  *) LIBOBJS="$LIBOBJS setenv.$ac_objext" ;;
36053esac
36054
36055fi
36056echo "$as_me:$LINENO: checking for seteuid" >&5
36057echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
36058if test "${ac_cv_func_seteuid+set}" = set; then
36059  echo $ECHO_N "(cached) $ECHO_C" >&6
36060else
36061  cat >conftest.$ac_ext <<_ACEOF
36062/* confdefs.h.  */
36063_ACEOF
36064cat confdefs.h >>conftest.$ac_ext
36065cat >>conftest.$ac_ext <<_ACEOF
36066/* end confdefs.h.  */
36067/* Define seteuid to an innocuous variant, in case <limits.h> declares seteuid.
36068   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36069#define seteuid innocuous_seteuid
36070
36071/* System header to define __stub macros and hopefully few prototypes,
36072    which can conflict with char seteuid (); below.
36073    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36074    <limits.h> exists even on freestanding compilers.  */
36075
36076#ifdef __STDC__
36077# include <limits.h>
36078#else
36079# include <assert.h>
36080#endif
36081
36082#undef seteuid
36083
36084/* Override any gcc2 internal prototype to avoid an error.  */
36085#ifdef __cplusplus
36086extern "C"
36087{
36088#endif
36089/* We use char because int might match the return type of a gcc2
36090   builtin and then its argument prototype would still apply.  */
36091char seteuid ();
36092/* The GNU C library defines this for functions which it implements
36093    to always fail with ENOSYS.  Some functions are actually named
36094    something starting with __ and the normal name is an alias.  */
36095#if defined (__stub_seteuid) || defined (__stub___seteuid)
36096choke me
36097#else
36098char (*f) () = seteuid;
36099#endif
36100#ifdef __cplusplus
36101}
36102#endif
36103
36104int
36105main ()
36106{
36107return f != seteuid;
36108  ;
36109  return 0;
36110}
36111_ACEOF
36112rm -f conftest.$ac_objext conftest$ac_exeext
36113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36114  (eval $ac_link) 2>conftest.er1
36115  ac_status=$?
36116  grep -v '^ *+' conftest.er1 >conftest.err
36117  rm -f conftest.er1
36118  cat conftest.err >&5
36119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36120  (exit $ac_status); } &&
36121	 { ac_try='test -z "$ac_c_werror_flag"
36122			 || test ! -s conftest.err'
36123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36124  (eval $ac_try) 2>&5
36125  ac_status=$?
36126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127  (exit $ac_status); }; } &&
36128	 { ac_try='test -s conftest$ac_exeext'
36129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130  (eval $ac_try) 2>&5
36131  ac_status=$?
36132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133  (exit $ac_status); }; }; then
36134  ac_cv_func_seteuid=yes
36135else
36136  echo "$as_me: failed program was:" >&5
36137sed 's/^/| /' conftest.$ac_ext >&5
36138
36139ac_cv_func_seteuid=no
36140fi
36141rm -f conftest.err conftest.$ac_objext \
36142      conftest$ac_exeext conftest.$ac_ext
36143fi
36144echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
36145echo "${ECHO_T}$ac_cv_func_seteuid" >&6
36146if test $ac_cv_func_seteuid = yes; then
36147
36148cat >>confdefs.h <<_ACEOF
36149#define HAVE_SETEUID 1
36150_ACEOF
36151
36152else
36153  case $LIBOBJS in
36154    "seteuid.$ac_objext"   | \
36155  *" seteuid.$ac_objext"   | \
36156    "seteuid.$ac_objext "* | \
36157  *" seteuid.$ac_objext "* ) ;;
36158  *) LIBOBJS="$LIBOBJS seteuid.$ac_objext" ;;
36159esac
36160
36161fi
36162echo "$as_me:$LINENO: checking for strcasecmp" >&5
36163echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
36164if test "${ac_cv_func_strcasecmp+set}" = set; then
36165  echo $ECHO_N "(cached) $ECHO_C" >&6
36166else
36167  cat >conftest.$ac_ext <<_ACEOF
36168/* confdefs.h.  */
36169_ACEOF
36170cat confdefs.h >>conftest.$ac_ext
36171cat >>conftest.$ac_ext <<_ACEOF
36172/* end confdefs.h.  */
36173/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
36174   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36175#define strcasecmp innocuous_strcasecmp
36176
36177/* System header to define __stub macros and hopefully few prototypes,
36178    which can conflict with char strcasecmp (); below.
36179    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36180    <limits.h> exists even on freestanding compilers.  */
36181
36182#ifdef __STDC__
36183# include <limits.h>
36184#else
36185# include <assert.h>
36186#endif
36187
36188#undef strcasecmp
36189
36190/* Override any gcc2 internal prototype to avoid an error.  */
36191#ifdef __cplusplus
36192extern "C"
36193{
36194#endif
36195/* We use char because int might match the return type of a gcc2
36196   builtin and then its argument prototype would still apply.  */
36197char strcasecmp ();
36198/* The GNU C library defines this for functions which it implements
36199    to always fail with ENOSYS.  Some functions are actually named
36200    something starting with __ and the normal name is an alias.  */
36201#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
36202choke me
36203#else
36204char (*f) () = strcasecmp;
36205#endif
36206#ifdef __cplusplus
36207}
36208#endif
36209
36210int
36211main ()
36212{
36213return f != strcasecmp;
36214  ;
36215  return 0;
36216}
36217_ACEOF
36218rm -f conftest.$ac_objext conftest$ac_exeext
36219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36220  (eval $ac_link) 2>conftest.er1
36221  ac_status=$?
36222  grep -v '^ *+' conftest.er1 >conftest.err
36223  rm -f conftest.er1
36224  cat conftest.err >&5
36225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226  (exit $ac_status); } &&
36227	 { ac_try='test -z "$ac_c_werror_flag"
36228			 || test ! -s conftest.err'
36229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36230  (eval $ac_try) 2>&5
36231  ac_status=$?
36232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233  (exit $ac_status); }; } &&
36234	 { ac_try='test -s conftest$ac_exeext'
36235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36236  (eval $ac_try) 2>&5
36237  ac_status=$?
36238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239  (exit $ac_status); }; }; then
36240  ac_cv_func_strcasecmp=yes
36241else
36242  echo "$as_me: failed program was:" >&5
36243sed 's/^/| /' conftest.$ac_ext >&5
36244
36245ac_cv_func_strcasecmp=no
36246fi
36247rm -f conftest.err conftest.$ac_objext \
36248      conftest$ac_exeext conftest.$ac_ext
36249fi
36250echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
36251echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
36252if test $ac_cv_func_strcasecmp = yes; then
36253
36254cat >>confdefs.h <<_ACEOF
36255#define HAVE_STRCASECMP 1
36256_ACEOF
36257
36258else
36259  case $LIBOBJS in
36260    "strcasecmp.$ac_objext"   | \
36261  *" strcasecmp.$ac_objext"   | \
36262    "strcasecmp.$ac_objext "* | \
36263  *" strcasecmp.$ac_objext "* ) ;;
36264  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
36265esac
36266
36267fi
36268echo "$as_me:$LINENO: checking for strdup" >&5
36269echo $ECHO_N "checking for strdup... $ECHO_C" >&6
36270if test "${ac_cv_func_strdup+set}" = set; then
36271  echo $ECHO_N "(cached) $ECHO_C" >&6
36272else
36273  cat >conftest.$ac_ext <<_ACEOF
36274/* confdefs.h.  */
36275_ACEOF
36276cat confdefs.h >>conftest.$ac_ext
36277cat >>conftest.$ac_ext <<_ACEOF
36278/* end confdefs.h.  */
36279/* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
36280   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36281#define strdup innocuous_strdup
36282
36283/* System header to define __stub macros and hopefully few prototypes,
36284    which can conflict with char strdup (); below.
36285    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36286    <limits.h> exists even on freestanding compilers.  */
36287
36288#ifdef __STDC__
36289# include <limits.h>
36290#else
36291# include <assert.h>
36292#endif
36293
36294#undef strdup
36295
36296/* Override any gcc2 internal prototype to avoid an error.  */
36297#ifdef __cplusplus
36298extern "C"
36299{
36300#endif
36301/* We use char because int might match the return type of a gcc2
36302   builtin and then its argument prototype would still apply.  */
36303char strdup ();
36304/* The GNU C library defines this for functions which it implements
36305    to always fail with ENOSYS.  Some functions are actually named
36306    something starting with __ and the normal name is an alias.  */
36307#if defined (__stub_strdup) || defined (__stub___strdup)
36308choke me
36309#else
36310char (*f) () = strdup;
36311#endif
36312#ifdef __cplusplus
36313}
36314#endif
36315
36316int
36317main ()
36318{
36319return f != strdup;
36320  ;
36321  return 0;
36322}
36323_ACEOF
36324rm -f conftest.$ac_objext conftest$ac_exeext
36325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36326  (eval $ac_link) 2>conftest.er1
36327  ac_status=$?
36328  grep -v '^ *+' conftest.er1 >conftest.err
36329  rm -f conftest.er1
36330  cat conftest.err >&5
36331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332  (exit $ac_status); } &&
36333	 { ac_try='test -z "$ac_c_werror_flag"
36334			 || test ! -s conftest.err'
36335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36336  (eval $ac_try) 2>&5
36337  ac_status=$?
36338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36339  (exit $ac_status); }; } &&
36340	 { ac_try='test -s conftest$ac_exeext'
36341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36342  (eval $ac_try) 2>&5
36343  ac_status=$?
36344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36345  (exit $ac_status); }; }; then
36346  ac_cv_func_strdup=yes
36347else
36348  echo "$as_me: failed program was:" >&5
36349sed 's/^/| /' conftest.$ac_ext >&5
36350
36351ac_cv_func_strdup=no
36352fi
36353rm -f conftest.err conftest.$ac_objext \
36354      conftest$ac_exeext conftest.$ac_ext
36355fi
36356echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
36357echo "${ECHO_T}$ac_cv_func_strdup" >&6
36358if test $ac_cv_func_strdup = yes; then
36359
36360cat >>confdefs.h <<_ACEOF
36361#define HAVE_STRDUP 1
36362_ACEOF
36363
36364else
36365  case $LIBOBJS in
36366    "strdup.$ac_objext"   | \
36367  *" strdup.$ac_objext"   | \
36368    "strdup.$ac_objext "* | \
36369  *" strdup.$ac_objext "* ) ;;
36370  *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
36371esac
36372
36373fi
36374echo "$as_me:$LINENO: checking for strerror" >&5
36375echo $ECHO_N "checking for strerror... $ECHO_C" >&6
36376if test "${ac_cv_func_strerror+set}" = set; then
36377  echo $ECHO_N "(cached) $ECHO_C" >&6
36378else
36379  cat >conftest.$ac_ext <<_ACEOF
36380/* confdefs.h.  */
36381_ACEOF
36382cat confdefs.h >>conftest.$ac_ext
36383cat >>conftest.$ac_ext <<_ACEOF
36384/* end confdefs.h.  */
36385/* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
36386   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36387#define strerror innocuous_strerror
36388
36389/* System header to define __stub macros and hopefully few prototypes,
36390    which can conflict with char strerror (); below.
36391    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36392    <limits.h> exists even on freestanding compilers.  */
36393
36394#ifdef __STDC__
36395# include <limits.h>
36396#else
36397# include <assert.h>
36398#endif
36399
36400#undef strerror
36401
36402/* Override any gcc2 internal prototype to avoid an error.  */
36403#ifdef __cplusplus
36404extern "C"
36405{
36406#endif
36407/* We use char because int might match the return type of a gcc2
36408   builtin and then its argument prototype would still apply.  */
36409char strerror ();
36410/* The GNU C library defines this for functions which it implements
36411    to always fail with ENOSYS.  Some functions are actually named
36412    something starting with __ and the normal name is an alias.  */
36413#if defined (__stub_strerror) || defined (__stub___strerror)
36414choke me
36415#else
36416char (*f) () = strerror;
36417#endif
36418#ifdef __cplusplus
36419}
36420#endif
36421
36422int
36423main ()
36424{
36425return f != strerror;
36426  ;
36427  return 0;
36428}
36429_ACEOF
36430rm -f conftest.$ac_objext conftest$ac_exeext
36431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36432  (eval $ac_link) 2>conftest.er1
36433  ac_status=$?
36434  grep -v '^ *+' conftest.er1 >conftest.err
36435  rm -f conftest.er1
36436  cat conftest.err >&5
36437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438  (exit $ac_status); } &&
36439	 { ac_try='test -z "$ac_c_werror_flag"
36440			 || test ! -s conftest.err'
36441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36442  (eval $ac_try) 2>&5
36443  ac_status=$?
36444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445  (exit $ac_status); }; } &&
36446	 { ac_try='test -s conftest$ac_exeext'
36447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448  (eval $ac_try) 2>&5
36449  ac_status=$?
36450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451  (exit $ac_status); }; }; then
36452  ac_cv_func_strerror=yes
36453else
36454  echo "$as_me: failed program was:" >&5
36455sed 's/^/| /' conftest.$ac_ext >&5
36456
36457ac_cv_func_strerror=no
36458fi
36459rm -f conftest.err conftest.$ac_objext \
36460      conftest$ac_exeext conftest.$ac_ext
36461fi
36462echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
36463echo "${ECHO_T}$ac_cv_func_strerror" >&6
36464if test $ac_cv_func_strerror = yes; then
36465
36466cat >>confdefs.h <<_ACEOF
36467#define HAVE_STRERROR 1
36468_ACEOF
36469
36470else
36471  case $LIBOBJS in
36472    "strerror.$ac_objext"   | \
36473  *" strerror.$ac_objext"   | \
36474    "strerror.$ac_objext "* | \
36475  *" strerror.$ac_objext "* ) ;;
36476  *) LIBOBJS="$LIBOBJS strerror.$ac_objext" ;;
36477esac
36478
36479fi
36480echo "$as_me:$LINENO: checking for strftime" >&5
36481echo $ECHO_N "checking for strftime... $ECHO_C" >&6
36482if test "${ac_cv_func_strftime+set}" = set; then
36483  echo $ECHO_N "(cached) $ECHO_C" >&6
36484else
36485  cat >conftest.$ac_ext <<_ACEOF
36486/* confdefs.h.  */
36487_ACEOF
36488cat confdefs.h >>conftest.$ac_ext
36489cat >>conftest.$ac_ext <<_ACEOF
36490/* end confdefs.h.  */
36491/* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
36492   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36493#define strftime innocuous_strftime
36494
36495/* System header to define __stub macros and hopefully few prototypes,
36496    which can conflict with char strftime (); below.
36497    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36498    <limits.h> exists even on freestanding compilers.  */
36499
36500#ifdef __STDC__
36501# include <limits.h>
36502#else
36503# include <assert.h>
36504#endif
36505
36506#undef strftime
36507
36508/* Override any gcc2 internal prototype to avoid an error.  */
36509#ifdef __cplusplus
36510extern "C"
36511{
36512#endif
36513/* We use char because int might match the return type of a gcc2
36514   builtin and then its argument prototype would still apply.  */
36515char strftime ();
36516/* The GNU C library defines this for functions which it implements
36517    to always fail with ENOSYS.  Some functions are actually named
36518    something starting with __ and the normal name is an alias.  */
36519#if defined (__stub_strftime) || defined (__stub___strftime)
36520choke me
36521#else
36522char (*f) () = strftime;
36523#endif
36524#ifdef __cplusplus
36525}
36526#endif
36527
36528int
36529main ()
36530{
36531return f != strftime;
36532  ;
36533  return 0;
36534}
36535_ACEOF
36536rm -f conftest.$ac_objext conftest$ac_exeext
36537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36538  (eval $ac_link) 2>conftest.er1
36539  ac_status=$?
36540  grep -v '^ *+' conftest.er1 >conftest.err
36541  rm -f conftest.er1
36542  cat conftest.err >&5
36543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544  (exit $ac_status); } &&
36545	 { ac_try='test -z "$ac_c_werror_flag"
36546			 || test ! -s conftest.err'
36547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36548  (eval $ac_try) 2>&5
36549  ac_status=$?
36550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551  (exit $ac_status); }; } &&
36552	 { ac_try='test -s conftest$ac_exeext'
36553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36554  (eval $ac_try) 2>&5
36555  ac_status=$?
36556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557  (exit $ac_status); }; }; then
36558  ac_cv_func_strftime=yes
36559else
36560  echo "$as_me: failed program was:" >&5
36561sed 's/^/| /' conftest.$ac_ext >&5
36562
36563ac_cv_func_strftime=no
36564fi
36565rm -f conftest.err conftest.$ac_objext \
36566      conftest$ac_exeext conftest.$ac_ext
36567fi
36568echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
36569echo "${ECHO_T}$ac_cv_func_strftime" >&6
36570if test $ac_cv_func_strftime = yes; then
36571
36572cat >>confdefs.h <<_ACEOF
36573#define HAVE_STRFTIME 1
36574_ACEOF
36575
36576else
36577  case $LIBOBJS in
36578    "strftime.$ac_objext"   | \
36579  *" strftime.$ac_objext"   | \
36580    "strftime.$ac_objext "* | \
36581  *" strftime.$ac_objext "* ) ;;
36582  *) LIBOBJS="$LIBOBJS strftime.$ac_objext" ;;
36583esac
36584
36585fi
36586echo "$as_me:$LINENO: checking for strlcat" >&5
36587echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
36588if test "${ac_cv_func_strlcat+set}" = set; then
36589  echo $ECHO_N "(cached) $ECHO_C" >&6
36590else
36591  cat >conftest.$ac_ext <<_ACEOF
36592/* confdefs.h.  */
36593_ACEOF
36594cat confdefs.h >>conftest.$ac_ext
36595cat >>conftest.$ac_ext <<_ACEOF
36596/* end confdefs.h.  */
36597/* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
36598   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36599#define strlcat innocuous_strlcat
36600
36601/* System header to define __stub macros and hopefully few prototypes,
36602    which can conflict with char strlcat (); below.
36603    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36604    <limits.h> exists even on freestanding compilers.  */
36605
36606#ifdef __STDC__
36607# include <limits.h>
36608#else
36609# include <assert.h>
36610#endif
36611
36612#undef strlcat
36613
36614/* Override any gcc2 internal prototype to avoid an error.  */
36615#ifdef __cplusplus
36616extern "C"
36617{
36618#endif
36619/* We use char because int might match the return type of a gcc2
36620   builtin and then its argument prototype would still apply.  */
36621char strlcat ();
36622/* The GNU C library defines this for functions which it implements
36623    to always fail with ENOSYS.  Some functions are actually named
36624    something starting with __ and the normal name is an alias.  */
36625#if defined (__stub_strlcat) || defined (__stub___strlcat)
36626choke me
36627#else
36628char (*f) () = strlcat;
36629#endif
36630#ifdef __cplusplus
36631}
36632#endif
36633
36634int
36635main ()
36636{
36637return f != strlcat;
36638  ;
36639  return 0;
36640}
36641_ACEOF
36642rm -f conftest.$ac_objext conftest$ac_exeext
36643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36644  (eval $ac_link) 2>conftest.er1
36645  ac_status=$?
36646  grep -v '^ *+' conftest.er1 >conftest.err
36647  rm -f conftest.er1
36648  cat conftest.err >&5
36649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36650  (exit $ac_status); } &&
36651	 { ac_try='test -z "$ac_c_werror_flag"
36652			 || test ! -s conftest.err'
36653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36654  (eval $ac_try) 2>&5
36655  ac_status=$?
36656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657  (exit $ac_status); }; } &&
36658	 { ac_try='test -s conftest$ac_exeext'
36659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36660  (eval $ac_try) 2>&5
36661  ac_status=$?
36662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663  (exit $ac_status); }; }; then
36664  ac_cv_func_strlcat=yes
36665else
36666  echo "$as_me: failed program was:" >&5
36667sed 's/^/| /' conftest.$ac_ext >&5
36668
36669ac_cv_func_strlcat=no
36670fi
36671rm -f conftest.err conftest.$ac_objext \
36672      conftest$ac_exeext conftest.$ac_ext
36673fi
36674echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
36675echo "${ECHO_T}$ac_cv_func_strlcat" >&6
36676if test $ac_cv_func_strlcat = yes; then
36677
36678cat >>confdefs.h <<_ACEOF
36679#define HAVE_STRLCAT 1
36680_ACEOF
36681
36682else
36683  case $LIBOBJS in
36684    "strlcat.$ac_objext"   | \
36685  *" strlcat.$ac_objext"   | \
36686    "strlcat.$ac_objext "* | \
36687  *" strlcat.$ac_objext "* ) ;;
36688  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" ;;
36689esac
36690
36691fi
36692echo "$as_me:$LINENO: checking for strlcpy" >&5
36693echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
36694if test "${ac_cv_func_strlcpy+set}" = set; then
36695  echo $ECHO_N "(cached) $ECHO_C" >&6
36696else
36697  cat >conftest.$ac_ext <<_ACEOF
36698/* confdefs.h.  */
36699_ACEOF
36700cat confdefs.h >>conftest.$ac_ext
36701cat >>conftest.$ac_ext <<_ACEOF
36702/* end confdefs.h.  */
36703/* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
36704   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36705#define strlcpy innocuous_strlcpy
36706
36707/* System header to define __stub macros and hopefully few prototypes,
36708    which can conflict with char strlcpy (); below.
36709    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36710    <limits.h> exists even on freestanding compilers.  */
36711
36712#ifdef __STDC__
36713# include <limits.h>
36714#else
36715# include <assert.h>
36716#endif
36717
36718#undef strlcpy
36719
36720/* Override any gcc2 internal prototype to avoid an error.  */
36721#ifdef __cplusplus
36722extern "C"
36723{
36724#endif
36725/* We use char because int might match the return type of a gcc2
36726   builtin and then its argument prototype would still apply.  */
36727char strlcpy ();
36728/* The GNU C library defines this for functions which it implements
36729    to always fail with ENOSYS.  Some functions are actually named
36730    something starting with __ and the normal name is an alias.  */
36731#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
36732choke me
36733#else
36734char (*f) () = strlcpy;
36735#endif
36736#ifdef __cplusplus
36737}
36738#endif
36739
36740int
36741main ()
36742{
36743return f != strlcpy;
36744  ;
36745  return 0;
36746}
36747_ACEOF
36748rm -f conftest.$ac_objext conftest$ac_exeext
36749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36750  (eval $ac_link) 2>conftest.er1
36751  ac_status=$?
36752  grep -v '^ *+' conftest.er1 >conftest.err
36753  rm -f conftest.er1
36754  cat conftest.err >&5
36755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756  (exit $ac_status); } &&
36757	 { ac_try='test -z "$ac_c_werror_flag"
36758			 || test ! -s conftest.err'
36759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36760  (eval $ac_try) 2>&5
36761  ac_status=$?
36762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36763  (exit $ac_status); }; } &&
36764	 { ac_try='test -s conftest$ac_exeext'
36765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36766  (eval $ac_try) 2>&5
36767  ac_status=$?
36768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769  (exit $ac_status); }; }; then
36770  ac_cv_func_strlcpy=yes
36771else
36772  echo "$as_me: failed program was:" >&5
36773sed 's/^/| /' conftest.$ac_ext >&5
36774
36775ac_cv_func_strlcpy=no
36776fi
36777rm -f conftest.err conftest.$ac_objext \
36778      conftest$ac_exeext conftest.$ac_ext
36779fi
36780echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
36781echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
36782if test $ac_cv_func_strlcpy = yes; then
36783
36784cat >>confdefs.h <<_ACEOF
36785#define HAVE_STRLCPY 1
36786_ACEOF
36787
36788else
36789  case $LIBOBJS in
36790    "strlcpy.$ac_objext"   | \
36791  *" strlcpy.$ac_objext"   | \
36792    "strlcpy.$ac_objext "* | \
36793  *" strlcpy.$ac_objext "* ) ;;
36794  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" ;;
36795esac
36796
36797fi
36798echo "$as_me:$LINENO: checking for strlwr" >&5
36799echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
36800if test "${ac_cv_func_strlwr+set}" = set; then
36801  echo $ECHO_N "(cached) $ECHO_C" >&6
36802else
36803  cat >conftest.$ac_ext <<_ACEOF
36804/* confdefs.h.  */
36805_ACEOF
36806cat confdefs.h >>conftest.$ac_ext
36807cat >>conftest.$ac_ext <<_ACEOF
36808/* end confdefs.h.  */
36809/* Define strlwr to an innocuous variant, in case <limits.h> declares strlwr.
36810   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36811#define strlwr innocuous_strlwr
36812
36813/* System header to define __stub macros and hopefully few prototypes,
36814    which can conflict with char strlwr (); below.
36815    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36816    <limits.h> exists even on freestanding compilers.  */
36817
36818#ifdef __STDC__
36819# include <limits.h>
36820#else
36821# include <assert.h>
36822#endif
36823
36824#undef strlwr
36825
36826/* Override any gcc2 internal prototype to avoid an error.  */
36827#ifdef __cplusplus
36828extern "C"
36829{
36830#endif
36831/* We use char because int might match the return type of a gcc2
36832   builtin and then its argument prototype would still apply.  */
36833char strlwr ();
36834/* The GNU C library defines this for functions which it implements
36835    to always fail with ENOSYS.  Some functions are actually named
36836    something starting with __ and the normal name is an alias.  */
36837#if defined (__stub_strlwr) || defined (__stub___strlwr)
36838choke me
36839#else
36840char (*f) () = strlwr;
36841#endif
36842#ifdef __cplusplus
36843}
36844#endif
36845
36846int
36847main ()
36848{
36849return f != strlwr;
36850  ;
36851  return 0;
36852}
36853_ACEOF
36854rm -f conftest.$ac_objext conftest$ac_exeext
36855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36856  (eval $ac_link) 2>conftest.er1
36857  ac_status=$?
36858  grep -v '^ *+' conftest.er1 >conftest.err
36859  rm -f conftest.er1
36860  cat conftest.err >&5
36861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862  (exit $ac_status); } &&
36863	 { ac_try='test -z "$ac_c_werror_flag"
36864			 || test ! -s conftest.err'
36865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36866  (eval $ac_try) 2>&5
36867  ac_status=$?
36868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869  (exit $ac_status); }; } &&
36870	 { ac_try='test -s conftest$ac_exeext'
36871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36872  (eval $ac_try) 2>&5
36873  ac_status=$?
36874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875  (exit $ac_status); }; }; then
36876  ac_cv_func_strlwr=yes
36877else
36878  echo "$as_me: failed program was:" >&5
36879sed 's/^/| /' conftest.$ac_ext >&5
36880
36881ac_cv_func_strlwr=no
36882fi
36883rm -f conftest.err conftest.$ac_objext \
36884      conftest$ac_exeext conftest.$ac_ext
36885fi
36886echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
36887echo "${ECHO_T}$ac_cv_func_strlwr" >&6
36888if test $ac_cv_func_strlwr = yes; then
36889
36890cat >>confdefs.h <<_ACEOF
36891#define HAVE_STRLWR 1
36892_ACEOF
36893
36894else
36895  case $LIBOBJS in
36896    "strlwr.$ac_objext"   | \
36897  *" strlwr.$ac_objext"   | \
36898    "strlwr.$ac_objext "* | \
36899  *" strlwr.$ac_objext "* ) ;;
36900  *) LIBOBJS="$LIBOBJS strlwr.$ac_objext" ;;
36901esac
36902
36903fi
36904echo "$as_me:$LINENO: checking for strncasecmp" >&5
36905echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
36906if test "${ac_cv_func_strncasecmp+set}" = set; then
36907  echo $ECHO_N "(cached) $ECHO_C" >&6
36908else
36909  cat >conftest.$ac_ext <<_ACEOF
36910/* confdefs.h.  */
36911_ACEOF
36912cat confdefs.h >>conftest.$ac_ext
36913cat >>conftest.$ac_ext <<_ACEOF
36914/* end confdefs.h.  */
36915/* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
36916   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36917#define strncasecmp innocuous_strncasecmp
36918
36919/* System header to define __stub macros and hopefully few prototypes,
36920    which can conflict with char strncasecmp (); below.
36921    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36922    <limits.h> exists even on freestanding compilers.  */
36923
36924#ifdef __STDC__
36925# include <limits.h>
36926#else
36927# include <assert.h>
36928#endif
36929
36930#undef strncasecmp
36931
36932/* Override any gcc2 internal prototype to avoid an error.  */
36933#ifdef __cplusplus
36934extern "C"
36935{
36936#endif
36937/* We use char because int might match the return type of a gcc2
36938   builtin and then its argument prototype would still apply.  */
36939char strncasecmp ();
36940/* The GNU C library defines this for functions which it implements
36941    to always fail with ENOSYS.  Some functions are actually named
36942    something starting with __ and the normal name is an alias.  */
36943#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
36944choke me
36945#else
36946char (*f) () = strncasecmp;
36947#endif
36948#ifdef __cplusplus
36949}
36950#endif
36951
36952int
36953main ()
36954{
36955return f != strncasecmp;
36956  ;
36957  return 0;
36958}
36959_ACEOF
36960rm -f conftest.$ac_objext conftest$ac_exeext
36961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36962  (eval $ac_link) 2>conftest.er1
36963  ac_status=$?
36964  grep -v '^ *+' conftest.er1 >conftest.err
36965  rm -f conftest.er1
36966  cat conftest.err >&5
36967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968  (exit $ac_status); } &&
36969	 { ac_try='test -z "$ac_c_werror_flag"
36970			 || test ! -s conftest.err'
36971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36972  (eval $ac_try) 2>&5
36973  ac_status=$?
36974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975  (exit $ac_status); }; } &&
36976	 { ac_try='test -s conftest$ac_exeext'
36977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36978  (eval $ac_try) 2>&5
36979  ac_status=$?
36980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981  (exit $ac_status); }; }; then
36982  ac_cv_func_strncasecmp=yes
36983else
36984  echo "$as_me: failed program was:" >&5
36985sed 's/^/| /' conftest.$ac_ext >&5
36986
36987ac_cv_func_strncasecmp=no
36988fi
36989rm -f conftest.err conftest.$ac_objext \
36990      conftest$ac_exeext conftest.$ac_ext
36991fi
36992echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
36993echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
36994if test $ac_cv_func_strncasecmp = yes; then
36995
36996cat >>confdefs.h <<_ACEOF
36997#define HAVE_STRNCASECMP 1
36998_ACEOF
36999
37000else
37001  case $LIBOBJS in
37002    "strncasecmp.$ac_objext"   | \
37003  *" strncasecmp.$ac_objext"   | \
37004    "strncasecmp.$ac_objext "* | \
37005  *" strncasecmp.$ac_objext "* ) ;;
37006  *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
37007esac
37008
37009fi
37010echo "$as_me:$LINENO: checking for strndup" >&5
37011echo $ECHO_N "checking for strndup... $ECHO_C" >&6
37012if test "${ac_cv_func_strndup+set}" = set; then
37013  echo $ECHO_N "(cached) $ECHO_C" >&6
37014else
37015  cat >conftest.$ac_ext <<_ACEOF
37016/* confdefs.h.  */
37017_ACEOF
37018cat confdefs.h >>conftest.$ac_ext
37019cat >>conftest.$ac_ext <<_ACEOF
37020/* end confdefs.h.  */
37021/* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
37022   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37023#define strndup innocuous_strndup
37024
37025/* System header to define __stub macros and hopefully few prototypes,
37026    which can conflict with char strndup (); below.
37027    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37028    <limits.h> exists even on freestanding compilers.  */
37029
37030#ifdef __STDC__
37031# include <limits.h>
37032#else
37033# include <assert.h>
37034#endif
37035
37036#undef strndup
37037
37038/* Override any gcc2 internal prototype to avoid an error.  */
37039#ifdef __cplusplus
37040extern "C"
37041{
37042#endif
37043/* We use char because int might match the return type of a gcc2
37044   builtin and then its argument prototype would still apply.  */
37045char strndup ();
37046/* The GNU C library defines this for functions which it implements
37047    to always fail with ENOSYS.  Some functions are actually named
37048    something starting with __ and the normal name is an alias.  */
37049#if defined (__stub_strndup) || defined (__stub___strndup)
37050choke me
37051#else
37052char (*f) () = strndup;
37053#endif
37054#ifdef __cplusplus
37055}
37056#endif
37057
37058int
37059main ()
37060{
37061return f != strndup;
37062  ;
37063  return 0;
37064}
37065_ACEOF
37066rm -f conftest.$ac_objext conftest$ac_exeext
37067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37068  (eval $ac_link) 2>conftest.er1
37069  ac_status=$?
37070  grep -v '^ *+' conftest.er1 >conftest.err
37071  rm -f conftest.er1
37072  cat conftest.err >&5
37073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074  (exit $ac_status); } &&
37075	 { ac_try='test -z "$ac_c_werror_flag"
37076			 || test ! -s conftest.err'
37077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37078  (eval $ac_try) 2>&5
37079  ac_status=$?
37080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081  (exit $ac_status); }; } &&
37082	 { ac_try='test -s conftest$ac_exeext'
37083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37084  (eval $ac_try) 2>&5
37085  ac_status=$?
37086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37087  (exit $ac_status); }; }; then
37088  ac_cv_func_strndup=yes
37089else
37090  echo "$as_me: failed program was:" >&5
37091sed 's/^/| /' conftest.$ac_ext >&5
37092
37093ac_cv_func_strndup=no
37094fi
37095rm -f conftest.err conftest.$ac_objext \
37096      conftest$ac_exeext conftest.$ac_ext
37097fi
37098echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
37099echo "${ECHO_T}$ac_cv_func_strndup" >&6
37100if test $ac_cv_func_strndup = yes; then
37101
37102cat >>confdefs.h <<_ACEOF
37103#define HAVE_STRNDUP 1
37104_ACEOF
37105
37106else
37107  case $LIBOBJS in
37108    "strndup.$ac_objext"   | \
37109  *" strndup.$ac_objext"   | \
37110    "strndup.$ac_objext "* | \
37111  *" strndup.$ac_objext "* ) ;;
37112  *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
37113esac
37114
37115fi
37116echo "$as_me:$LINENO: checking for strnlen" >&5
37117echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
37118if test "${ac_cv_func_strnlen+set}" = set; then
37119  echo $ECHO_N "(cached) $ECHO_C" >&6
37120else
37121  cat >conftest.$ac_ext <<_ACEOF
37122/* confdefs.h.  */
37123_ACEOF
37124cat confdefs.h >>conftest.$ac_ext
37125cat >>conftest.$ac_ext <<_ACEOF
37126/* end confdefs.h.  */
37127/* Define strnlen to an innocuous variant, in case <limits.h> declares strnlen.
37128   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37129#define strnlen innocuous_strnlen
37130
37131/* System header to define __stub macros and hopefully few prototypes,
37132    which can conflict with char strnlen (); below.
37133    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37134    <limits.h> exists even on freestanding compilers.  */
37135
37136#ifdef __STDC__
37137# include <limits.h>
37138#else
37139# include <assert.h>
37140#endif
37141
37142#undef strnlen
37143
37144/* Override any gcc2 internal prototype to avoid an error.  */
37145#ifdef __cplusplus
37146extern "C"
37147{
37148#endif
37149/* We use char because int might match the return type of a gcc2
37150   builtin and then its argument prototype would still apply.  */
37151char strnlen ();
37152/* The GNU C library defines this for functions which it implements
37153    to always fail with ENOSYS.  Some functions are actually named
37154    something starting with __ and the normal name is an alias.  */
37155#if defined (__stub_strnlen) || defined (__stub___strnlen)
37156choke me
37157#else
37158char (*f) () = strnlen;
37159#endif
37160#ifdef __cplusplus
37161}
37162#endif
37163
37164int
37165main ()
37166{
37167return f != strnlen;
37168  ;
37169  return 0;
37170}
37171_ACEOF
37172rm -f conftest.$ac_objext conftest$ac_exeext
37173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37174  (eval $ac_link) 2>conftest.er1
37175  ac_status=$?
37176  grep -v '^ *+' conftest.er1 >conftest.err
37177  rm -f conftest.er1
37178  cat conftest.err >&5
37179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180  (exit $ac_status); } &&
37181	 { ac_try='test -z "$ac_c_werror_flag"
37182			 || test ! -s conftest.err'
37183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37184  (eval $ac_try) 2>&5
37185  ac_status=$?
37186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187  (exit $ac_status); }; } &&
37188	 { ac_try='test -s conftest$ac_exeext'
37189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37190  (eval $ac_try) 2>&5
37191  ac_status=$?
37192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193  (exit $ac_status); }; }; then
37194  ac_cv_func_strnlen=yes
37195else
37196  echo "$as_me: failed program was:" >&5
37197sed 's/^/| /' conftest.$ac_ext >&5
37198
37199ac_cv_func_strnlen=no
37200fi
37201rm -f conftest.err conftest.$ac_objext \
37202      conftest$ac_exeext conftest.$ac_ext
37203fi
37204echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
37205echo "${ECHO_T}$ac_cv_func_strnlen" >&6
37206if test $ac_cv_func_strnlen = yes; then
37207
37208cat >>confdefs.h <<_ACEOF
37209#define HAVE_STRNLEN 1
37210_ACEOF
37211
37212else
37213  case $LIBOBJS in
37214    "strnlen.$ac_objext"   | \
37215  *" strnlen.$ac_objext"   | \
37216    "strnlen.$ac_objext "* | \
37217  *" strnlen.$ac_objext "* ) ;;
37218  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
37219esac
37220
37221fi
37222echo "$as_me:$LINENO: checking for strptime" >&5
37223echo $ECHO_N "checking for strptime... $ECHO_C" >&6
37224if test "${ac_cv_func_strptime+set}" = set; then
37225  echo $ECHO_N "(cached) $ECHO_C" >&6
37226else
37227  cat >conftest.$ac_ext <<_ACEOF
37228/* confdefs.h.  */
37229_ACEOF
37230cat confdefs.h >>conftest.$ac_ext
37231cat >>conftest.$ac_ext <<_ACEOF
37232/* end confdefs.h.  */
37233/* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
37234   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37235#define strptime innocuous_strptime
37236
37237/* System header to define __stub macros and hopefully few prototypes,
37238    which can conflict with char strptime (); below.
37239    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37240    <limits.h> exists even on freestanding compilers.  */
37241
37242#ifdef __STDC__
37243# include <limits.h>
37244#else
37245# include <assert.h>
37246#endif
37247
37248#undef strptime
37249
37250/* Override any gcc2 internal prototype to avoid an error.  */
37251#ifdef __cplusplus
37252extern "C"
37253{
37254#endif
37255/* We use char because int might match the return type of a gcc2
37256   builtin and then its argument prototype would still apply.  */
37257char strptime ();
37258/* The GNU C library defines this for functions which it implements
37259    to always fail with ENOSYS.  Some functions are actually named
37260    something starting with __ and the normal name is an alias.  */
37261#if defined (__stub_strptime) || defined (__stub___strptime)
37262choke me
37263#else
37264char (*f) () = strptime;
37265#endif
37266#ifdef __cplusplus
37267}
37268#endif
37269
37270int
37271main ()
37272{
37273return f != strptime;
37274  ;
37275  return 0;
37276}
37277_ACEOF
37278rm -f conftest.$ac_objext conftest$ac_exeext
37279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37280  (eval $ac_link) 2>conftest.er1
37281  ac_status=$?
37282  grep -v '^ *+' conftest.er1 >conftest.err
37283  rm -f conftest.er1
37284  cat conftest.err >&5
37285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286  (exit $ac_status); } &&
37287	 { ac_try='test -z "$ac_c_werror_flag"
37288			 || test ! -s conftest.err'
37289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37290  (eval $ac_try) 2>&5
37291  ac_status=$?
37292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293  (exit $ac_status); }; } &&
37294	 { ac_try='test -s conftest$ac_exeext'
37295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37296  (eval $ac_try) 2>&5
37297  ac_status=$?
37298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37299  (exit $ac_status); }; }; then
37300  ac_cv_func_strptime=yes
37301else
37302  echo "$as_me: failed program was:" >&5
37303sed 's/^/| /' conftest.$ac_ext >&5
37304
37305ac_cv_func_strptime=no
37306fi
37307rm -f conftest.err conftest.$ac_objext \
37308      conftest$ac_exeext conftest.$ac_ext
37309fi
37310echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
37311echo "${ECHO_T}$ac_cv_func_strptime" >&6
37312if test $ac_cv_func_strptime = yes; then
37313
37314cat >>confdefs.h <<_ACEOF
37315#define HAVE_STRPTIME 1
37316_ACEOF
37317
37318else
37319  case $LIBOBJS in
37320    "strptime.$ac_objext"   | \
37321  *" strptime.$ac_objext"   | \
37322    "strptime.$ac_objext "* | \
37323  *" strptime.$ac_objext "* ) ;;
37324  *) LIBOBJS="$LIBOBJS strptime.$ac_objext" ;;
37325esac
37326
37327fi
37328echo "$as_me:$LINENO: checking for strsep" >&5
37329echo $ECHO_N "checking for strsep... $ECHO_C" >&6
37330if test "${ac_cv_func_strsep+set}" = set; then
37331  echo $ECHO_N "(cached) $ECHO_C" >&6
37332else
37333  cat >conftest.$ac_ext <<_ACEOF
37334/* confdefs.h.  */
37335_ACEOF
37336cat confdefs.h >>conftest.$ac_ext
37337cat >>conftest.$ac_ext <<_ACEOF
37338/* end confdefs.h.  */
37339/* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
37340   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37341#define strsep innocuous_strsep
37342
37343/* System header to define __stub macros and hopefully few prototypes,
37344    which can conflict with char strsep (); below.
37345    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37346    <limits.h> exists even on freestanding compilers.  */
37347
37348#ifdef __STDC__
37349# include <limits.h>
37350#else
37351# include <assert.h>
37352#endif
37353
37354#undef strsep
37355
37356/* Override any gcc2 internal prototype to avoid an error.  */
37357#ifdef __cplusplus
37358extern "C"
37359{
37360#endif
37361/* We use char because int might match the return type of a gcc2
37362   builtin and then its argument prototype would still apply.  */
37363char strsep ();
37364/* The GNU C library defines this for functions which it implements
37365    to always fail with ENOSYS.  Some functions are actually named
37366    something starting with __ and the normal name is an alias.  */
37367#if defined (__stub_strsep) || defined (__stub___strsep)
37368choke me
37369#else
37370char (*f) () = strsep;
37371#endif
37372#ifdef __cplusplus
37373}
37374#endif
37375
37376int
37377main ()
37378{
37379return f != strsep;
37380  ;
37381  return 0;
37382}
37383_ACEOF
37384rm -f conftest.$ac_objext conftest$ac_exeext
37385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37386  (eval $ac_link) 2>conftest.er1
37387  ac_status=$?
37388  grep -v '^ *+' conftest.er1 >conftest.err
37389  rm -f conftest.er1
37390  cat conftest.err >&5
37391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392  (exit $ac_status); } &&
37393	 { ac_try='test -z "$ac_c_werror_flag"
37394			 || test ! -s conftest.err'
37395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37396  (eval $ac_try) 2>&5
37397  ac_status=$?
37398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399  (exit $ac_status); }; } &&
37400	 { ac_try='test -s conftest$ac_exeext'
37401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37402  (eval $ac_try) 2>&5
37403  ac_status=$?
37404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405  (exit $ac_status); }; }; then
37406  ac_cv_func_strsep=yes
37407else
37408  echo "$as_me: failed program was:" >&5
37409sed 's/^/| /' conftest.$ac_ext >&5
37410
37411ac_cv_func_strsep=no
37412fi
37413rm -f conftest.err conftest.$ac_objext \
37414      conftest$ac_exeext conftest.$ac_ext
37415fi
37416echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
37417echo "${ECHO_T}$ac_cv_func_strsep" >&6
37418if test $ac_cv_func_strsep = yes; then
37419
37420cat >>confdefs.h <<_ACEOF
37421#define HAVE_STRSEP 1
37422_ACEOF
37423
37424else
37425  case $LIBOBJS in
37426    "strsep.$ac_objext"   | \
37427  *" strsep.$ac_objext"   | \
37428    "strsep.$ac_objext "* | \
37429  *" strsep.$ac_objext "* ) ;;
37430  *) LIBOBJS="$LIBOBJS strsep.$ac_objext" ;;
37431esac
37432
37433fi
37434echo "$as_me:$LINENO: checking for strsep_copy" >&5
37435echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
37436if test "${ac_cv_func_strsep_copy+set}" = set; then
37437  echo $ECHO_N "(cached) $ECHO_C" >&6
37438else
37439  cat >conftest.$ac_ext <<_ACEOF
37440/* confdefs.h.  */
37441_ACEOF
37442cat confdefs.h >>conftest.$ac_ext
37443cat >>conftest.$ac_ext <<_ACEOF
37444/* end confdefs.h.  */
37445/* Define strsep_copy to an innocuous variant, in case <limits.h> declares strsep_copy.
37446   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37447#define strsep_copy innocuous_strsep_copy
37448
37449/* System header to define __stub macros and hopefully few prototypes,
37450    which can conflict with char strsep_copy (); below.
37451    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37452    <limits.h> exists even on freestanding compilers.  */
37453
37454#ifdef __STDC__
37455# include <limits.h>
37456#else
37457# include <assert.h>
37458#endif
37459
37460#undef strsep_copy
37461
37462/* Override any gcc2 internal prototype to avoid an error.  */
37463#ifdef __cplusplus
37464extern "C"
37465{
37466#endif
37467/* We use char because int might match the return type of a gcc2
37468   builtin and then its argument prototype would still apply.  */
37469char strsep_copy ();
37470/* The GNU C library defines this for functions which it implements
37471    to always fail with ENOSYS.  Some functions are actually named
37472    something starting with __ and the normal name is an alias.  */
37473#if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
37474choke me
37475#else
37476char (*f) () = strsep_copy;
37477#endif
37478#ifdef __cplusplus
37479}
37480#endif
37481
37482int
37483main ()
37484{
37485return f != strsep_copy;
37486  ;
37487  return 0;
37488}
37489_ACEOF
37490rm -f conftest.$ac_objext conftest$ac_exeext
37491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37492  (eval $ac_link) 2>conftest.er1
37493  ac_status=$?
37494  grep -v '^ *+' conftest.er1 >conftest.err
37495  rm -f conftest.er1
37496  cat conftest.err >&5
37497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498  (exit $ac_status); } &&
37499	 { ac_try='test -z "$ac_c_werror_flag"
37500			 || test ! -s conftest.err'
37501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37502  (eval $ac_try) 2>&5
37503  ac_status=$?
37504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505  (exit $ac_status); }; } &&
37506	 { ac_try='test -s conftest$ac_exeext'
37507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37508  (eval $ac_try) 2>&5
37509  ac_status=$?
37510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511  (exit $ac_status); }; }; then
37512  ac_cv_func_strsep_copy=yes
37513else
37514  echo "$as_me: failed program was:" >&5
37515sed 's/^/| /' conftest.$ac_ext >&5
37516
37517ac_cv_func_strsep_copy=no
37518fi
37519rm -f conftest.err conftest.$ac_objext \
37520      conftest$ac_exeext conftest.$ac_ext
37521fi
37522echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
37523echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
37524if test $ac_cv_func_strsep_copy = yes; then
37525
37526cat >>confdefs.h <<_ACEOF
37527#define HAVE_STRSEP_COPY 1
37528_ACEOF
37529
37530else
37531  case $LIBOBJS in
37532    "strsep_copy.$ac_objext"   | \
37533  *" strsep_copy.$ac_objext"   | \
37534    "strsep_copy.$ac_objext "* | \
37535  *" strsep_copy.$ac_objext "* ) ;;
37536  *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext" ;;
37537esac
37538
37539fi
37540echo "$as_me:$LINENO: checking for strtok_r" >&5
37541echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
37542if test "${ac_cv_func_strtok_r+set}" = set; then
37543  echo $ECHO_N "(cached) $ECHO_C" >&6
37544else
37545  cat >conftest.$ac_ext <<_ACEOF
37546/* confdefs.h.  */
37547_ACEOF
37548cat confdefs.h >>conftest.$ac_ext
37549cat >>conftest.$ac_ext <<_ACEOF
37550/* end confdefs.h.  */
37551/* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
37552   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37553#define strtok_r innocuous_strtok_r
37554
37555/* System header to define __stub macros and hopefully few prototypes,
37556    which can conflict with char strtok_r (); below.
37557    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37558    <limits.h> exists even on freestanding compilers.  */
37559
37560#ifdef __STDC__
37561# include <limits.h>
37562#else
37563# include <assert.h>
37564#endif
37565
37566#undef strtok_r
37567
37568/* Override any gcc2 internal prototype to avoid an error.  */
37569#ifdef __cplusplus
37570extern "C"
37571{
37572#endif
37573/* We use char because int might match the return type of a gcc2
37574   builtin and then its argument prototype would still apply.  */
37575char strtok_r ();
37576/* The GNU C library defines this for functions which it implements
37577    to always fail with ENOSYS.  Some functions are actually named
37578    something starting with __ and the normal name is an alias.  */
37579#if defined (__stub_strtok_r) || defined (__stub___strtok_r)
37580choke me
37581#else
37582char (*f) () = strtok_r;
37583#endif
37584#ifdef __cplusplus
37585}
37586#endif
37587
37588int
37589main ()
37590{
37591return f != strtok_r;
37592  ;
37593  return 0;
37594}
37595_ACEOF
37596rm -f conftest.$ac_objext conftest$ac_exeext
37597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37598  (eval $ac_link) 2>conftest.er1
37599  ac_status=$?
37600  grep -v '^ *+' conftest.er1 >conftest.err
37601  rm -f conftest.er1
37602  cat conftest.err >&5
37603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604  (exit $ac_status); } &&
37605	 { ac_try='test -z "$ac_c_werror_flag"
37606			 || test ! -s conftest.err'
37607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37608  (eval $ac_try) 2>&5
37609  ac_status=$?
37610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611  (exit $ac_status); }; } &&
37612	 { ac_try='test -s conftest$ac_exeext'
37613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37614  (eval $ac_try) 2>&5
37615  ac_status=$?
37616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37617  (exit $ac_status); }; }; then
37618  ac_cv_func_strtok_r=yes
37619else
37620  echo "$as_me: failed program was:" >&5
37621sed 's/^/| /' conftest.$ac_ext >&5
37622
37623ac_cv_func_strtok_r=no
37624fi
37625rm -f conftest.err conftest.$ac_objext \
37626      conftest$ac_exeext conftest.$ac_ext
37627fi
37628echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
37629echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
37630if test $ac_cv_func_strtok_r = yes; then
37631
37632cat >>confdefs.h <<_ACEOF
37633#define HAVE_STRTOK_R 1
37634_ACEOF
37635
37636else
37637  case $LIBOBJS in
37638    "strtok_r.$ac_objext"   | \
37639  *" strtok_r.$ac_objext"   | \
37640    "strtok_r.$ac_objext "* | \
37641  *" strtok_r.$ac_objext "* ) ;;
37642  *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext" ;;
37643esac
37644
37645fi
37646echo "$as_me:$LINENO: checking for strupr" >&5
37647echo $ECHO_N "checking for strupr... $ECHO_C" >&6
37648if test "${ac_cv_func_strupr+set}" = set; then
37649  echo $ECHO_N "(cached) $ECHO_C" >&6
37650else
37651  cat >conftest.$ac_ext <<_ACEOF
37652/* confdefs.h.  */
37653_ACEOF
37654cat confdefs.h >>conftest.$ac_ext
37655cat >>conftest.$ac_ext <<_ACEOF
37656/* end confdefs.h.  */
37657/* Define strupr to an innocuous variant, in case <limits.h> declares strupr.
37658   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37659#define strupr innocuous_strupr
37660
37661/* System header to define __stub macros and hopefully few prototypes,
37662    which can conflict with char strupr (); below.
37663    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37664    <limits.h> exists even on freestanding compilers.  */
37665
37666#ifdef __STDC__
37667# include <limits.h>
37668#else
37669# include <assert.h>
37670#endif
37671
37672#undef strupr
37673
37674/* Override any gcc2 internal prototype to avoid an error.  */
37675#ifdef __cplusplus
37676extern "C"
37677{
37678#endif
37679/* We use char because int might match the return type of a gcc2
37680   builtin and then its argument prototype would still apply.  */
37681char strupr ();
37682/* The GNU C library defines this for functions which it implements
37683    to always fail with ENOSYS.  Some functions are actually named
37684    something starting with __ and the normal name is an alias.  */
37685#if defined (__stub_strupr) || defined (__stub___strupr)
37686choke me
37687#else
37688char (*f) () = strupr;
37689#endif
37690#ifdef __cplusplus
37691}
37692#endif
37693
37694int
37695main ()
37696{
37697return f != strupr;
37698  ;
37699  return 0;
37700}
37701_ACEOF
37702rm -f conftest.$ac_objext conftest$ac_exeext
37703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37704  (eval $ac_link) 2>conftest.er1
37705  ac_status=$?
37706  grep -v '^ *+' conftest.er1 >conftest.err
37707  rm -f conftest.er1
37708  cat conftest.err >&5
37709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710  (exit $ac_status); } &&
37711	 { ac_try='test -z "$ac_c_werror_flag"
37712			 || test ! -s conftest.err'
37713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37714  (eval $ac_try) 2>&5
37715  ac_status=$?
37716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37717  (exit $ac_status); }; } &&
37718	 { ac_try='test -s conftest$ac_exeext'
37719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37720  (eval $ac_try) 2>&5
37721  ac_status=$?
37722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723  (exit $ac_status); }; }; then
37724  ac_cv_func_strupr=yes
37725else
37726  echo "$as_me: failed program was:" >&5
37727sed 's/^/| /' conftest.$ac_ext >&5
37728
37729ac_cv_func_strupr=no
37730fi
37731rm -f conftest.err conftest.$ac_objext \
37732      conftest$ac_exeext conftest.$ac_ext
37733fi
37734echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
37735echo "${ECHO_T}$ac_cv_func_strupr" >&6
37736if test $ac_cv_func_strupr = yes; then
37737
37738cat >>confdefs.h <<_ACEOF
37739#define HAVE_STRUPR 1
37740_ACEOF
37741
37742else
37743  case $LIBOBJS in
37744    "strupr.$ac_objext"   | \
37745  *" strupr.$ac_objext"   | \
37746    "strupr.$ac_objext "* | \
37747  *" strupr.$ac_objext "* ) ;;
37748  *) LIBOBJS="$LIBOBJS strupr.$ac_objext" ;;
37749esac
37750
37751fi
37752echo "$as_me:$LINENO: checking for swab" >&5
37753echo $ECHO_N "checking for swab... $ECHO_C" >&6
37754if test "${ac_cv_func_swab+set}" = set; then
37755  echo $ECHO_N "(cached) $ECHO_C" >&6
37756else
37757  cat >conftest.$ac_ext <<_ACEOF
37758/* confdefs.h.  */
37759_ACEOF
37760cat confdefs.h >>conftest.$ac_ext
37761cat >>conftest.$ac_ext <<_ACEOF
37762/* end confdefs.h.  */
37763/* Define swab to an innocuous variant, in case <limits.h> declares swab.
37764   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37765#define swab innocuous_swab
37766
37767/* System header to define __stub macros and hopefully few prototypes,
37768    which can conflict with char swab (); below.
37769    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37770    <limits.h> exists even on freestanding compilers.  */
37771
37772#ifdef __STDC__
37773# include <limits.h>
37774#else
37775# include <assert.h>
37776#endif
37777
37778#undef swab
37779
37780/* Override any gcc2 internal prototype to avoid an error.  */
37781#ifdef __cplusplus
37782extern "C"
37783{
37784#endif
37785/* We use char because int might match the return type of a gcc2
37786   builtin and then its argument prototype would still apply.  */
37787char swab ();
37788/* The GNU C library defines this for functions which it implements
37789    to always fail with ENOSYS.  Some functions are actually named
37790    something starting with __ and the normal name is an alias.  */
37791#if defined (__stub_swab) || defined (__stub___swab)
37792choke me
37793#else
37794char (*f) () = swab;
37795#endif
37796#ifdef __cplusplus
37797}
37798#endif
37799
37800int
37801main ()
37802{
37803return f != swab;
37804  ;
37805  return 0;
37806}
37807_ACEOF
37808rm -f conftest.$ac_objext conftest$ac_exeext
37809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37810  (eval $ac_link) 2>conftest.er1
37811  ac_status=$?
37812  grep -v '^ *+' conftest.er1 >conftest.err
37813  rm -f conftest.er1
37814  cat conftest.err >&5
37815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37816  (exit $ac_status); } &&
37817	 { ac_try='test -z "$ac_c_werror_flag"
37818			 || test ! -s conftest.err'
37819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37820  (eval $ac_try) 2>&5
37821  ac_status=$?
37822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823  (exit $ac_status); }; } &&
37824	 { ac_try='test -s conftest$ac_exeext'
37825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37826  (eval $ac_try) 2>&5
37827  ac_status=$?
37828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829  (exit $ac_status); }; }; then
37830  ac_cv_func_swab=yes
37831else
37832  echo "$as_me: failed program was:" >&5
37833sed 's/^/| /' conftest.$ac_ext >&5
37834
37835ac_cv_func_swab=no
37836fi
37837rm -f conftest.err conftest.$ac_objext \
37838      conftest$ac_exeext conftest.$ac_ext
37839fi
37840echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
37841echo "${ECHO_T}$ac_cv_func_swab" >&6
37842if test $ac_cv_func_swab = yes; then
37843
37844cat >>confdefs.h <<_ACEOF
37845#define HAVE_SWAB 1
37846_ACEOF
37847
37848else
37849  case $LIBOBJS in
37850    "swab.$ac_objext"   | \
37851  *" swab.$ac_objext"   | \
37852    "swab.$ac_objext "* | \
37853  *" swab.$ac_objext "* ) ;;
37854  *) LIBOBJS="$LIBOBJS swab.$ac_objext" ;;
37855esac
37856
37857fi
37858echo "$as_me:$LINENO: checking for unsetenv" >&5
37859echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
37860if test "${ac_cv_func_unsetenv+set}" = set; then
37861  echo $ECHO_N "(cached) $ECHO_C" >&6
37862else
37863  cat >conftest.$ac_ext <<_ACEOF
37864/* confdefs.h.  */
37865_ACEOF
37866cat confdefs.h >>conftest.$ac_ext
37867cat >>conftest.$ac_ext <<_ACEOF
37868/* end confdefs.h.  */
37869/* Define unsetenv to an innocuous variant, in case <limits.h> declares unsetenv.
37870   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37871#define unsetenv innocuous_unsetenv
37872
37873/* System header to define __stub macros and hopefully few prototypes,
37874    which can conflict with char unsetenv (); below.
37875    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37876    <limits.h> exists even on freestanding compilers.  */
37877
37878#ifdef __STDC__
37879# include <limits.h>
37880#else
37881# include <assert.h>
37882#endif
37883
37884#undef unsetenv
37885
37886/* Override any gcc2 internal prototype to avoid an error.  */
37887#ifdef __cplusplus
37888extern "C"
37889{
37890#endif
37891/* We use char because int might match the return type of a gcc2
37892   builtin and then its argument prototype would still apply.  */
37893char unsetenv ();
37894/* The GNU C library defines this for functions which it implements
37895    to always fail with ENOSYS.  Some functions are actually named
37896    something starting with __ and the normal name is an alias.  */
37897#if defined (__stub_unsetenv) || defined (__stub___unsetenv)
37898choke me
37899#else
37900char (*f) () = unsetenv;
37901#endif
37902#ifdef __cplusplus
37903}
37904#endif
37905
37906int
37907main ()
37908{
37909return f != unsetenv;
37910  ;
37911  return 0;
37912}
37913_ACEOF
37914rm -f conftest.$ac_objext conftest$ac_exeext
37915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37916  (eval $ac_link) 2>conftest.er1
37917  ac_status=$?
37918  grep -v '^ *+' conftest.er1 >conftest.err
37919  rm -f conftest.er1
37920  cat conftest.err >&5
37921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922  (exit $ac_status); } &&
37923	 { ac_try='test -z "$ac_c_werror_flag"
37924			 || test ! -s conftest.err'
37925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37926  (eval $ac_try) 2>&5
37927  ac_status=$?
37928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37929  (exit $ac_status); }; } &&
37930	 { ac_try='test -s conftest$ac_exeext'
37931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37932  (eval $ac_try) 2>&5
37933  ac_status=$?
37934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37935  (exit $ac_status); }; }; then
37936  ac_cv_func_unsetenv=yes
37937else
37938  echo "$as_me: failed program was:" >&5
37939sed 's/^/| /' conftest.$ac_ext >&5
37940
37941ac_cv_func_unsetenv=no
37942fi
37943rm -f conftest.err conftest.$ac_objext \
37944      conftest$ac_exeext conftest.$ac_ext
37945fi
37946echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
37947echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
37948if test $ac_cv_func_unsetenv = yes; then
37949
37950cat >>confdefs.h <<_ACEOF
37951#define HAVE_UNSETENV 1
37952_ACEOF
37953
37954else
37955  case $LIBOBJS in
37956    "unsetenv.$ac_objext"   | \
37957  *" unsetenv.$ac_objext"   | \
37958    "unsetenv.$ac_objext "* | \
37959  *" unsetenv.$ac_objext "* ) ;;
37960  *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" ;;
37961esac
37962
37963fi
37964echo "$as_me:$LINENO: checking for verr" >&5
37965echo $ECHO_N "checking for verr... $ECHO_C" >&6
37966if test "${ac_cv_func_verr+set}" = set; then
37967  echo $ECHO_N "(cached) $ECHO_C" >&6
37968else
37969  cat >conftest.$ac_ext <<_ACEOF
37970/* confdefs.h.  */
37971_ACEOF
37972cat confdefs.h >>conftest.$ac_ext
37973cat >>conftest.$ac_ext <<_ACEOF
37974/* end confdefs.h.  */
37975/* Define verr to an innocuous variant, in case <limits.h> declares verr.
37976   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37977#define verr innocuous_verr
37978
37979/* System header to define __stub macros and hopefully few prototypes,
37980    which can conflict with char verr (); below.
37981    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37982    <limits.h> exists even on freestanding compilers.  */
37983
37984#ifdef __STDC__
37985# include <limits.h>
37986#else
37987# include <assert.h>
37988#endif
37989
37990#undef verr
37991
37992/* Override any gcc2 internal prototype to avoid an error.  */
37993#ifdef __cplusplus
37994extern "C"
37995{
37996#endif
37997/* We use char because int might match the return type of a gcc2
37998   builtin and then its argument prototype would still apply.  */
37999char verr ();
38000/* The GNU C library defines this for functions which it implements
38001    to always fail with ENOSYS.  Some functions are actually named
38002    something starting with __ and the normal name is an alias.  */
38003#if defined (__stub_verr) || defined (__stub___verr)
38004choke me
38005#else
38006char (*f) () = verr;
38007#endif
38008#ifdef __cplusplus
38009}
38010#endif
38011
38012int
38013main ()
38014{
38015return f != verr;
38016  ;
38017  return 0;
38018}
38019_ACEOF
38020rm -f conftest.$ac_objext conftest$ac_exeext
38021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38022  (eval $ac_link) 2>conftest.er1
38023  ac_status=$?
38024  grep -v '^ *+' conftest.er1 >conftest.err
38025  rm -f conftest.er1
38026  cat conftest.err >&5
38027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028  (exit $ac_status); } &&
38029	 { ac_try='test -z "$ac_c_werror_flag"
38030			 || test ! -s conftest.err'
38031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38032  (eval $ac_try) 2>&5
38033  ac_status=$?
38034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035  (exit $ac_status); }; } &&
38036	 { ac_try='test -s conftest$ac_exeext'
38037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38038  (eval $ac_try) 2>&5
38039  ac_status=$?
38040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041  (exit $ac_status); }; }; then
38042  ac_cv_func_verr=yes
38043else
38044  echo "$as_me: failed program was:" >&5
38045sed 's/^/| /' conftest.$ac_ext >&5
38046
38047ac_cv_func_verr=no
38048fi
38049rm -f conftest.err conftest.$ac_objext \
38050      conftest$ac_exeext conftest.$ac_ext
38051fi
38052echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
38053echo "${ECHO_T}$ac_cv_func_verr" >&6
38054if test $ac_cv_func_verr = yes; then
38055
38056cat >>confdefs.h <<_ACEOF
38057#define HAVE_VERR 1
38058_ACEOF
38059
38060else
38061  case $LIBOBJS in
38062    "verr.$ac_objext"   | \
38063  *" verr.$ac_objext"   | \
38064    "verr.$ac_objext "* | \
38065  *" verr.$ac_objext "* ) ;;
38066  *) LIBOBJS="$LIBOBJS verr.$ac_objext" ;;
38067esac
38068
38069fi
38070echo "$as_me:$LINENO: checking for verrx" >&5
38071echo $ECHO_N "checking for verrx... $ECHO_C" >&6
38072if test "${ac_cv_func_verrx+set}" = set; then
38073  echo $ECHO_N "(cached) $ECHO_C" >&6
38074else
38075  cat >conftest.$ac_ext <<_ACEOF
38076/* confdefs.h.  */
38077_ACEOF
38078cat confdefs.h >>conftest.$ac_ext
38079cat >>conftest.$ac_ext <<_ACEOF
38080/* end confdefs.h.  */
38081/* Define verrx to an innocuous variant, in case <limits.h> declares verrx.
38082   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38083#define verrx innocuous_verrx
38084
38085/* System header to define __stub macros and hopefully few prototypes,
38086    which can conflict with char verrx (); below.
38087    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38088    <limits.h> exists even on freestanding compilers.  */
38089
38090#ifdef __STDC__
38091# include <limits.h>
38092#else
38093# include <assert.h>
38094#endif
38095
38096#undef verrx
38097
38098/* Override any gcc2 internal prototype to avoid an error.  */
38099#ifdef __cplusplus
38100extern "C"
38101{
38102#endif
38103/* We use char because int might match the return type of a gcc2
38104   builtin and then its argument prototype would still apply.  */
38105char verrx ();
38106/* The GNU C library defines this for functions which it implements
38107    to always fail with ENOSYS.  Some functions are actually named
38108    something starting with __ and the normal name is an alias.  */
38109#if defined (__stub_verrx) || defined (__stub___verrx)
38110choke me
38111#else
38112char (*f) () = verrx;
38113#endif
38114#ifdef __cplusplus
38115}
38116#endif
38117
38118int
38119main ()
38120{
38121return f != verrx;
38122  ;
38123  return 0;
38124}
38125_ACEOF
38126rm -f conftest.$ac_objext conftest$ac_exeext
38127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38128  (eval $ac_link) 2>conftest.er1
38129  ac_status=$?
38130  grep -v '^ *+' conftest.er1 >conftest.err
38131  rm -f conftest.er1
38132  cat conftest.err >&5
38133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38134  (exit $ac_status); } &&
38135	 { ac_try='test -z "$ac_c_werror_flag"
38136			 || test ! -s conftest.err'
38137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38138  (eval $ac_try) 2>&5
38139  ac_status=$?
38140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141  (exit $ac_status); }; } &&
38142	 { ac_try='test -s conftest$ac_exeext'
38143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38144  (eval $ac_try) 2>&5
38145  ac_status=$?
38146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147  (exit $ac_status); }; }; then
38148  ac_cv_func_verrx=yes
38149else
38150  echo "$as_me: failed program was:" >&5
38151sed 's/^/| /' conftest.$ac_ext >&5
38152
38153ac_cv_func_verrx=no
38154fi
38155rm -f conftest.err conftest.$ac_objext \
38156      conftest$ac_exeext conftest.$ac_ext
38157fi
38158echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
38159echo "${ECHO_T}$ac_cv_func_verrx" >&6
38160if test $ac_cv_func_verrx = yes; then
38161
38162cat >>confdefs.h <<_ACEOF
38163#define HAVE_VERRX 1
38164_ACEOF
38165
38166else
38167  case $LIBOBJS in
38168    "verrx.$ac_objext"   | \
38169  *" verrx.$ac_objext"   | \
38170    "verrx.$ac_objext "* | \
38171  *" verrx.$ac_objext "* ) ;;
38172  *) LIBOBJS="$LIBOBJS verrx.$ac_objext" ;;
38173esac
38174
38175fi
38176echo "$as_me:$LINENO: checking for vsyslog" >&5
38177echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
38178if test "${ac_cv_func_vsyslog+set}" = set; then
38179  echo $ECHO_N "(cached) $ECHO_C" >&6
38180else
38181  cat >conftest.$ac_ext <<_ACEOF
38182/* confdefs.h.  */
38183_ACEOF
38184cat confdefs.h >>conftest.$ac_ext
38185cat >>conftest.$ac_ext <<_ACEOF
38186/* end confdefs.h.  */
38187/* Define vsyslog to an innocuous variant, in case <limits.h> declares vsyslog.
38188   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38189#define vsyslog innocuous_vsyslog
38190
38191/* System header to define __stub macros and hopefully few prototypes,
38192    which can conflict with char vsyslog (); below.
38193    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38194    <limits.h> exists even on freestanding compilers.  */
38195
38196#ifdef __STDC__
38197# include <limits.h>
38198#else
38199# include <assert.h>
38200#endif
38201
38202#undef vsyslog
38203
38204/* Override any gcc2 internal prototype to avoid an error.  */
38205#ifdef __cplusplus
38206extern "C"
38207{
38208#endif
38209/* We use char because int might match the return type of a gcc2
38210   builtin and then its argument prototype would still apply.  */
38211char vsyslog ();
38212/* The GNU C library defines this for functions which it implements
38213    to always fail with ENOSYS.  Some functions are actually named
38214    something starting with __ and the normal name is an alias.  */
38215#if defined (__stub_vsyslog) || defined (__stub___vsyslog)
38216choke me
38217#else
38218char (*f) () = vsyslog;
38219#endif
38220#ifdef __cplusplus
38221}
38222#endif
38223
38224int
38225main ()
38226{
38227return f != vsyslog;
38228  ;
38229  return 0;
38230}
38231_ACEOF
38232rm -f conftest.$ac_objext conftest$ac_exeext
38233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38234  (eval $ac_link) 2>conftest.er1
38235  ac_status=$?
38236  grep -v '^ *+' conftest.er1 >conftest.err
38237  rm -f conftest.er1
38238  cat conftest.err >&5
38239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240  (exit $ac_status); } &&
38241	 { ac_try='test -z "$ac_c_werror_flag"
38242			 || test ! -s conftest.err'
38243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38244  (eval $ac_try) 2>&5
38245  ac_status=$?
38246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247  (exit $ac_status); }; } &&
38248	 { ac_try='test -s conftest$ac_exeext'
38249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38250  (eval $ac_try) 2>&5
38251  ac_status=$?
38252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253  (exit $ac_status); }; }; then
38254  ac_cv_func_vsyslog=yes
38255else
38256  echo "$as_me: failed program was:" >&5
38257sed 's/^/| /' conftest.$ac_ext >&5
38258
38259ac_cv_func_vsyslog=no
38260fi
38261rm -f conftest.err conftest.$ac_objext \
38262      conftest$ac_exeext conftest.$ac_ext
38263fi
38264echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
38265echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
38266if test $ac_cv_func_vsyslog = yes; then
38267
38268cat >>confdefs.h <<_ACEOF
38269#define HAVE_VSYSLOG 1
38270_ACEOF
38271
38272else
38273  case $LIBOBJS in
38274    "vsyslog.$ac_objext"   | \
38275  *" vsyslog.$ac_objext"   | \
38276    "vsyslog.$ac_objext "* | \
38277  *" vsyslog.$ac_objext "* ) ;;
38278  *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext" ;;
38279esac
38280
38281fi
38282echo "$as_me:$LINENO: checking for vwarn" >&5
38283echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
38284if test "${ac_cv_func_vwarn+set}" = set; then
38285  echo $ECHO_N "(cached) $ECHO_C" >&6
38286else
38287  cat >conftest.$ac_ext <<_ACEOF
38288/* confdefs.h.  */
38289_ACEOF
38290cat confdefs.h >>conftest.$ac_ext
38291cat >>conftest.$ac_ext <<_ACEOF
38292/* end confdefs.h.  */
38293/* Define vwarn to an innocuous variant, in case <limits.h> declares vwarn.
38294   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38295#define vwarn innocuous_vwarn
38296
38297/* System header to define __stub macros and hopefully few prototypes,
38298    which can conflict with char vwarn (); below.
38299    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38300    <limits.h> exists even on freestanding compilers.  */
38301
38302#ifdef __STDC__
38303# include <limits.h>
38304#else
38305# include <assert.h>
38306#endif
38307
38308#undef vwarn
38309
38310/* Override any gcc2 internal prototype to avoid an error.  */
38311#ifdef __cplusplus
38312extern "C"
38313{
38314#endif
38315/* We use char because int might match the return type of a gcc2
38316   builtin and then its argument prototype would still apply.  */
38317char vwarn ();
38318/* The GNU C library defines this for functions which it implements
38319    to always fail with ENOSYS.  Some functions are actually named
38320    something starting with __ and the normal name is an alias.  */
38321#if defined (__stub_vwarn) || defined (__stub___vwarn)
38322choke me
38323#else
38324char (*f) () = vwarn;
38325#endif
38326#ifdef __cplusplus
38327}
38328#endif
38329
38330int
38331main ()
38332{
38333return f != vwarn;
38334  ;
38335  return 0;
38336}
38337_ACEOF
38338rm -f conftest.$ac_objext conftest$ac_exeext
38339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38340  (eval $ac_link) 2>conftest.er1
38341  ac_status=$?
38342  grep -v '^ *+' conftest.er1 >conftest.err
38343  rm -f conftest.er1
38344  cat conftest.err >&5
38345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38346  (exit $ac_status); } &&
38347	 { ac_try='test -z "$ac_c_werror_flag"
38348			 || test ! -s conftest.err'
38349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38350  (eval $ac_try) 2>&5
38351  ac_status=$?
38352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38353  (exit $ac_status); }; } &&
38354	 { ac_try='test -s conftest$ac_exeext'
38355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38356  (eval $ac_try) 2>&5
38357  ac_status=$?
38358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359  (exit $ac_status); }; }; then
38360  ac_cv_func_vwarn=yes
38361else
38362  echo "$as_me: failed program was:" >&5
38363sed 's/^/| /' conftest.$ac_ext >&5
38364
38365ac_cv_func_vwarn=no
38366fi
38367rm -f conftest.err conftest.$ac_objext \
38368      conftest$ac_exeext conftest.$ac_ext
38369fi
38370echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
38371echo "${ECHO_T}$ac_cv_func_vwarn" >&6
38372if test $ac_cv_func_vwarn = yes; then
38373
38374cat >>confdefs.h <<_ACEOF
38375#define HAVE_VWARN 1
38376_ACEOF
38377
38378else
38379  case $LIBOBJS in
38380    "vwarn.$ac_objext"   | \
38381  *" vwarn.$ac_objext"   | \
38382    "vwarn.$ac_objext "* | \
38383  *" vwarn.$ac_objext "* ) ;;
38384  *) LIBOBJS="$LIBOBJS vwarn.$ac_objext" ;;
38385esac
38386
38387fi
38388echo "$as_me:$LINENO: checking for vwarnx" >&5
38389echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
38390if test "${ac_cv_func_vwarnx+set}" = set; then
38391  echo $ECHO_N "(cached) $ECHO_C" >&6
38392else
38393  cat >conftest.$ac_ext <<_ACEOF
38394/* confdefs.h.  */
38395_ACEOF
38396cat confdefs.h >>conftest.$ac_ext
38397cat >>conftest.$ac_ext <<_ACEOF
38398/* end confdefs.h.  */
38399/* Define vwarnx to an innocuous variant, in case <limits.h> declares vwarnx.
38400   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38401#define vwarnx innocuous_vwarnx
38402
38403/* System header to define __stub macros and hopefully few prototypes,
38404    which can conflict with char vwarnx (); below.
38405    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38406    <limits.h> exists even on freestanding compilers.  */
38407
38408#ifdef __STDC__
38409# include <limits.h>
38410#else
38411# include <assert.h>
38412#endif
38413
38414#undef vwarnx
38415
38416/* Override any gcc2 internal prototype to avoid an error.  */
38417#ifdef __cplusplus
38418extern "C"
38419{
38420#endif
38421/* We use char because int might match the return type of a gcc2
38422   builtin and then its argument prototype would still apply.  */
38423char vwarnx ();
38424/* The GNU C library defines this for functions which it implements
38425    to always fail with ENOSYS.  Some functions are actually named
38426    something starting with __ and the normal name is an alias.  */
38427#if defined (__stub_vwarnx) || defined (__stub___vwarnx)
38428choke me
38429#else
38430char (*f) () = vwarnx;
38431#endif
38432#ifdef __cplusplus
38433}
38434#endif
38435
38436int
38437main ()
38438{
38439return f != vwarnx;
38440  ;
38441  return 0;
38442}
38443_ACEOF
38444rm -f conftest.$ac_objext conftest$ac_exeext
38445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38446  (eval $ac_link) 2>conftest.er1
38447  ac_status=$?
38448  grep -v '^ *+' conftest.er1 >conftest.err
38449  rm -f conftest.er1
38450  cat conftest.err >&5
38451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38452  (exit $ac_status); } &&
38453	 { ac_try='test -z "$ac_c_werror_flag"
38454			 || test ! -s conftest.err'
38455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38456  (eval $ac_try) 2>&5
38457  ac_status=$?
38458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459  (exit $ac_status); }; } &&
38460	 { ac_try='test -s conftest$ac_exeext'
38461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38462  (eval $ac_try) 2>&5
38463  ac_status=$?
38464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465  (exit $ac_status); }; }; then
38466  ac_cv_func_vwarnx=yes
38467else
38468  echo "$as_me: failed program was:" >&5
38469sed 's/^/| /' conftest.$ac_ext >&5
38470
38471ac_cv_func_vwarnx=no
38472fi
38473rm -f conftest.err conftest.$ac_objext \
38474      conftest$ac_exeext conftest.$ac_ext
38475fi
38476echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
38477echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
38478if test $ac_cv_func_vwarnx = yes; then
38479
38480cat >>confdefs.h <<_ACEOF
38481#define HAVE_VWARNX 1
38482_ACEOF
38483
38484else
38485  case $LIBOBJS in
38486    "vwarnx.$ac_objext"   | \
38487  *" vwarnx.$ac_objext"   | \
38488    "vwarnx.$ac_objext "* | \
38489  *" vwarnx.$ac_objext "* ) ;;
38490  *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext" ;;
38491esac
38492
38493fi
38494echo "$as_me:$LINENO: checking for warn" >&5
38495echo $ECHO_N "checking for warn... $ECHO_C" >&6
38496if test "${ac_cv_func_warn+set}" = set; then
38497  echo $ECHO_N "(cached) $ECHO_C" >&6
38498else
38499  cat >conftest.$ac_ext <<_ACEOF
38500/* confdefs.h.  */
38501_ACEOF
38502cat confdefs.h >>conftest.$ac_ext
38503cat >>conftest.$ac_ext <<_ACEOF
38504/* end confdefs.h.  */
38505/* Define warn to an innocuous variant, in case <limits.h> declares warn.
38506   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38507#define warn innocuous_warn
38508
38509/* System header to define __stub macros and hopefully few prototypes,
38510    which can conflict with char warn (); below.
38511    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38512    <limits.h> exists even on freestanding compilers.  */
38513
38514#ifdef __STDC__
38515# include <limits.h>
38516#else
38517# include <assert.h>
38518#endif
38519
38520#undef warn
38521
38522/* Override any gcc2 internal prototype to avoid an error.  */
38523#ifdef __cplusplus
38524extern "C"
38525{
38526#endif
38527/* We use char because int might match the return type of a gcc2
38528   builtin and then its argument prototype would still apply.  */
38529char warn ();
38530/* The GNU C library defines this for functions which it implements
38531    to always fail with ENOSYS.  Some functions are actually named
38532    something starting with __ and the normal name is an alias.  */
38533#if defined (__stub_warn) || defined (__stub___warn)
38534choke me
38535#else
38536char (*f) () = warn;
38537#endif
38538#ifdef __cplusplus
38539}
38540#endif
38541
38542int
38543main ()
38544{
38545return f != warn;
38546  ;
38547  return 0;
38548}
38549_ACEOF
38550rm -f conftest.$ac_objext conftest$ac_exeext
38551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38552  (eval $ac_link) 2>conftest.er1
38553  ac_status=$?
38554  grep -v '^ *+' conftest.er1 >conftest.err
38555  rm -f conftest.er1
38556  cat conftest.err >&5
38557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558  (exit $ac_status); } &&
38559	 { ac_try='test -z "$ac_c_werror_flag"
38560			 || test ! -s conftest.err'
38561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38562  (eval $ac_try) 2>&5
38563  ac_status=$?
38564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38565  (exit $ac_status); }; } &&
38566	 { ac_try='test -s conftest$ac_exeext'
38567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38568  (eval $ac_try) 2>&5
38569  ac_status=$?
38570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571  (exit $ac_status); }; }; then
38572  ac_cv_func_warn=yes
38573else
38574  echo "$as_me: failed program was:" >&5
38575sed 's/^/| /' conftest.$ac_ext >&5
38576
38577ac_cv_func_warn=no
38578fi
38579rm -f conftest.err conftest.$ac_objext \
38580      conftest$ac_exeext conftest.$ac_ext
38581fi
38582echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
38583echo "${ECHO_T}$ac_cv_func_warn" >&6
38584if test $ac_cv_func_warn = yes; then
38585
38586cat >>confdefs.h <<_ACEOF
38587#define HAVE_WARN 1
38588_ACEOF
38589
38590else
38591  case $LIBOBJS in
38592    "warn.$ac_objext"   | \
38593  *" warn.$ac_objext"   | \
38594    "warn.$ac_objext "* | \
38595  *" warn.$ac_objext "* ) ;;
38596  *) LIBOBJS="$LIBOBJS warn.$ac_objext" ;;
38597esac
38598
38599fi
38600echo "$as_me:$LINENO: checking for warnx" >&5
38601echo $ECHO_N "checking for warnx... $ECHO_C" >&6
38602if test "${ac_cv_func_warnx+set}" = set; then
38603  echo $ECHO_N "(cached) $ECHO_C" >&6
38604else
38605  cat >conftest.$ac_ext <<_ACEOF
38606/* confdefs.h.  */
38607_ACEOF
38608cat confdefs.h >>conftest.$ac_ext
38609cat >>conftest.$ac_ext <<_ACEOF
38610/* end confdefs.h.  */
38611/* Define warnx to an innocuous variant, in case <limits.h> declares warnx.
38612   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38613#define warnx innocuous_warnx
38614
38615/* System header to define __stub macros and hopefully few prototypes,
38616    which can conflict with char warnx (); below.
38617    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38618    <limits.h> exists even on freestanding compilers.  */
38619
38620#ifdef __STDC__
38621# include <limits.h>
38622#else
38623# include <assert.h>
38624#endif
38625
38626#undef warnx
38627
38628/* Override any gcc2 internal prototype to avoid an error.  */
38629#ifdef __cplusplus
38630extern "C"
38631{
38632#endif
38633/* We use char because int might match the return type of a gcc2
38634   builtin and then its argument prototype would still apply.  */
38635char warnx ();
38636/* The GNU C library defines this for functions which it implements
38637    to always fail with ENOSYS.  Some functions are actually named
38638    something starting with __ and the normal name is an alias.  */
38639#if defined (__stub_warnx) || defined (__stub___warnx)
38640choke me
38641#else
38642char (*f) () = warnx;
38643#endif
38644#ifdef __cplusplus
38645}
38646#endif
38647
38648int
38649main ()
38650{
38651return f != warnx;
38652  ;
38653  return 0;
38654}
38655_ACEOF
38656rm -f conftest.$ac_objext conftest$ac_exeext
38657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38658  (eval $ac_link) 2>conftest.er1
38659  ac_status=$?
38660  grep -v '^ *+' conftest.er1 >conftest.err
38661  rm -f conftest.er1
38662  cat conftest.err >&5
38663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664  (exit $ac_status); } &&
38665	 { ac_try='test -z "$ac_c_werror_flag"
38666			 || test ! -s conftest.err'
38667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38668  (eval $ac_try) 2>&5
38669  ac_status=$?
38670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671  (exit $ac_status); }; } &&
38672	 { ac_try='test -s conftest$ac_exeext'
38673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38674  (eval $ac_try) 2>&5
38675  ac_status=$?
38676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677  (exit $ac_status); }; }; then
38678  ac_cv_func_warnx=yes
38679else
38680  echo "$as_me: failed program was:" >&5
38681sed 's/^/| /' conftest.$ac_ext >&5
38682
38683ac_cv_func_warnx=no
38684fi
38685rm -f conftest.err conftest.$ac_objext \
38686      conftest$ac_exeext conftest.$ac_ext
38687fi
38688echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
38689echo "${ECHO_T}$ac_cv_func_warnx" >&6
38690if test $ac_cv_func_warnx = yes; then
38691
38692cat >>confdefs.h <<_ACEOF
38693#define HAVE_WARNX 1
38694_ACEOF
38695
38696else
38697  case $LIBOBJS in
38698    "warnx.$ac_objext"   | \
38699  *" warnx.$ac_objext"   | \
38700    "warnx.$ac_objext "* | \
38701  *" warnx.$ac_objext "* ) ;;
38702  *) LIBOBJS="$LIBOBJS warnx.$ac_objext" ;;
38703esac
38704
38705fi
38706echo "$as_me:$LINENO: checking for writev" >&5
38707echo $ECHO_N "checking for writev... $ECHO_C" >&6
38708if test "${ac_cv_func_writev+set}" = set; then
38709  echo $ECHO_N "(cached) $ECHO_C" >&6
38710else
38711  cat >conftest.$ac_ext <<_ACEOF
38712/* confdefs.h.  */
38713_ACEOF
38714cat confdefs.h >>conftest.$ac_ext
38715cat >>conftest.$ac_ext <<_ACEOF
38716/* end confdefs.h.  */
38717/* Define writev to an innocuous variant, in case <limits.h> declares writev.
38718   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38719#define writev innocuous_writev
38720
38721/* System header to define __stub macros and hopefully few prototypes,
38722    which can conflict with char writev (); below.
38723    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38724    <limits.h> exists even on freestanding compilers.  */
38725
38726#ifdef __STDC__
38727# include <limits.h>
38728#else
38729# include <assert.h>
38730#endif
38731
38732#undef writev
38733
38734/* Override any gcc2 internal prototype to avoid an error.  */
38735#ifdef __cplusplus
38736extern "C"
38737{
38738#endif
38739/* We use char because int might match the return type of a gcc2
38740   builtin and then its argument prototype would still apply.  */
38741char writev ();
38742/* The GNU C library defines this for functions which it implements
38743    to always fail with ENOSYS.  Some functions are actually named
38744    something starting with __ and the normal name is an alias.  */
38745#if defined (__stub_writev) || defined (__stub___writev)
38746choke me
38747#else
38748char (*f) () = writev;
38749#endif
38750#ifdef __cplusplus
38751}
38752#endif
38753
38754int
38755main ()
38756{
38757return f != writev;
38758  ;
38759  return 0;
38760}
38761_ACEOF
38762rm -f conftest.$ac_objext conftest$ac_exeext
38763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38764  (eval $ac_link) 2>conftest.er1
38765  ac_status=$?
38766  grep -v '^ *+' conftest.er1 >conftest.err
38767  rm -f conftest.er1
38768  cat conftest.err >&5
38769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38770  (exit $ac_status); } &&
38771	 { ac_try='test -z "$ac_c_werror_flag"
38772			 || test ! -s conftest.err'
38773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38774  (eval $ac_try) 2>&5
38775  ac_status=$?
38776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38777  (exit $ac_status); }; } &&
38778	 { ac_try='test -s conftest$ac_exeext'
38779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38780  (eval $ac_try) 2>&5
38781  ac_status=$?
38782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38783  (exit $ac_status); }; }; then
38784  ac_cv_func_writev=yes
38785else
38786  echo "$as_me: failed program was:" >&5
38787sed 's/^/| /' conftest.$ac_ext >&5
38788
38789ac_cv_func_writev=no
38790fi
38791rm -f conftest.err conftest.$ac_objext \
38792      conftest$ac_exeext conftest.$ac_ext
38793fi
38794echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
38795echo "${ECHO_T}$ac_cv_func_writev" >&6
38796if test $ac_cv_func_writev = yes; then
38797
38798cat >>confdefs.h <<_ACEOF
38799#define HAVE_WRITEV 1
38800_ACEOF
38801
38802else
38803  case $LIBOBJS in
38804    "writev.$ac_objext"   | \
38805  *" writev.$ac_objext"   | \
38806    "writev.$ac_objext "* | \
38807  *" writev.$ac_objext "* ) ;;
38808  *) LIBOBJS="$LIBOBJS writev.$ac_objext" ;;
38809esac
38810
38811fi
38812
38813
38814
38815if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
38816echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
38817echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
38818if test "${ac_cv_func_strndup_noproto+set}" = set; then
38819  echo $ECHO_N "(cached) $ECHO_C" >&6
38820else
38821  cat >conftest.$ac_ext <<_ACEOF
38822/* confdefs.h.  */
38823_ACEOF
38824cat confdefs.h >>conftest.$ac_ext
38825cat >>conftest.$ac_ext <<_ACEOF
38826/* end confdefs.h.  */
38827#include <string.h>
38828int
38829main ()
38830{
38831struct foo { int foo; } xx;
38832extern int strndup (struct foo*);
38833strndup(&xx);
38834
38835  ;
38836  return 0;
38837}
38838_ACEOF
38839rm -f conftest.$ac_objext
38840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38841  (eval $ac_compile) 2>conftest.er1
38842  ac_status=$?
38843  grep -v '^ *+' conftest.er1 >conftest.err
38844  rm -f conftest.er1
38845  cat conftest.err >&5
38846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847  (exit $ac_status); } &&
38848	 { ac_try='test -z "$ac_c_werror_flag"
38849			 || test ! -s conftest.err'
38850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38851  (eval $ac_try) 2>&5
38852  ac_status=$?
38853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38854  (exit $ac_status); }; } &&
38855	 { ac_try='test -s conftest.$ac_objext'
38856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38857  (eval $ac_try) 2>&5
38858  ac_status=$?
38859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38860  (exit $ac_status); }; }; then
38861  eval "ac_cv_func_strndup_noproto=yes"
38862else
38863  echo "$as_me: failed program was:" >&5
38864sed 's/^/| /' conftest.$ac_ext >&5
38865
38866eval "ac_cv_func_strndup_noproto=no"
38867fi
38868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38869fi
38870echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
38871echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
38872if test "$ac_cv_func_strndup_noproto" = yes; then
38873
38874cat >>confdefs.h <<\_ACEOF
38875#define NEED_STRNDUP_PROTO 1
38876_ACEOF
38877
38878fi
38879fi
38880
38881if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
38882echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
38883echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
38884if test "${ac_cv_func_strsep_noproto+set}" = set; then
38885  echo $ECHO_N "(cached) $ECHO_C" >&6
38886else
38887  cat >conftest.$ac_ext <<_ACEOF
38888/* confdefs.h.  */
38889_ACEOF
38890cat confdefs.h >>conftest.$ac_ext
38891cat >>conftest.$ac_ext <<_ACEOF
38892/* end confdefs.h.  */
38893#include <string.h>
38894int
38895main ()
38896{
38897struct foo { int foo; } xx;
38898extern int strsep (struct foo*);
38899strsep(&xx);
38900
38901  ;
38902  return 0;
38903}
38904_ACEOF
38905rm -f conftest.$ac_objext
38906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38907  (eval $ac_compile) 2>conftest.er1
38908  ac_status=$?
38909  grep -v '^ *+' conftest.er1 >conftest.err
38910  rm -f conftest.er1
38911  cat conftest.err >&5
38912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38913  (exit $ac_status); } &&
38914	 { ac_try='test -z "$ac_c_werror_flag"
38915			 || test ! -s conftest.err'
38916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38917  (eval $ac_try) 2>&5
38918  ac_status=$?
38919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38920  (exit $ac_status); }; } &&
38921	 { ac_try='test -s conftest.$ac_objext'
38922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38923  (eval $ac_try) 2>&5
38924  ac_status=$?
38925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926  (exit $ac_status); }; }; then
38927  eval "ac_cv_func_strsep_noproto=yes"
38928else
38929  echo "$as_me: failed program was:" >&5
38930sed 's/^/| /' conftest.$ac_ext >&5
38931
38932eval "ac_cv_func_strsep_noproto=no"
38933fi
38934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38935fi
38936echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
38937echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
38938if test "$ac_cv_func_strsep_noproto" = yes; then
38939
38940cat >>confdefs.h <<\_ACEOF
38941#define NEED_STRSEP_PROTO 1
38942_ACEOF
38943
38944fi
38945fi
38946
38947if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
38948echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
38949echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
38950if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
38951  echo $ECHO_N "(cached) $ECHO_C" >&6
38952else
38953  cat >conftest.$ac_ext <<_ACEOF
38954/* confdefs.h.  */
38955_ACEOF
38956cat confdefs.h >>conftest.$ac_ext
38957cat >>conftest.$ac_ext <<_ACEOF
38958/* end confdefs.h.  */
38959#include <string.h>
38960int
38961main ()
38962{
38963struct foo { int foo; } xx;
38964extern int strtok_r (struct foo*);
38965strtok_r(&xx);
38966
38967  ;
38968  return 0;
38969}
38970_ACEOF
38971rm -f conftest.$ac_objext
38972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38973  (eval $ac_compile) 2>conftest.er1
38974  ac_status=$?
38975  grep -v '^ *+' conftest.er1 >conftest.err
38976  rm -f conftest.er1
38977  cat conftest.err >&5
38978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38979  (exit $ac_status); } &&
38980	 { ac_try='test -z "$ac_c_werror_flag"
38981			 || test ! -s conftest.err'
38982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38983  (eval $ac_try) 2>&5
38984  ac_status=$?
38985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38986  (exit $ac_status); }; } &&
38987	 { ac_try='test -s conftest.$ac_objext'
38988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38989  (eval $ac_try) 2>&5
38990  ac_status=$?
38991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38992  (exit $ac_status); }; }; then
38993  eval "ac_cv_func_strtok_r_noproto=yes"
38994else
38995  echo "$as_me: failed program was:" >&5
38996sed 's/^/| /' conftest.$ac_ext >&5
38997
38998eval "ac_cv_func_strtok_r_noproto=no"
38999fi
39000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39001fi
39002echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
39003echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
39004if test "$ac_cv_func_strtok_r_noproto" = yes; then
39005
39006cat >>confdefs.h <<\_ACEOF
39007#define NEED_STRTOK_R_PROTO 1
39008_ACEOF
39009
39010fi
39011fi
39012
39013
39014
39015if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
39016echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
39017echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
39018if test "${ac_cv_func_strsvis_noproto+set}" = set; then
39019  echo $ECHO_N "(cached) $ECHO_C" >&6
39020else
39021  cat >conftest.$ac_ext <<_ACEOF
39022/* confdefs.h.  */
39023_ACEOF
39024cat confdefs.h >>conftest.$ac_ext
39025cat >>conftest.$ac_ext <<_ACEOF
39026/* end confdefs.h.  */
39027#ifdef HAVE_VIS_H
39028#include <vis.h>
39029#endif
39030int
39031main ()
39032{
39033struct foo { int foo; } xx;
39034extern int strsvis (struct foo*);
39035strsvis(&xx);
39036
39037  ;
39038  return 0;
39039}
39040_ACEOF
39041rm -f conftest.$ac_objext
39042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39043  (eval $ac_compile) 2>conftest.er1
39044  ac_status=$?
39045  grep -v '^ *+' conftest.er1 >conftest.err
39046  rm -f conftest.er1
39047  cat conftest.err >&5
39048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39049  (exit $ac_status); } &&
39050	 { ac_try='test -z "$ac_c_werror_flag"
39051			 || test ! -s conftest.err'
39052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39053  (eval $ac_try) 2>&5
39054  ac_status=$?
39055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056  (exit $ac_status); }; } &&
39057	 { ac_try='test -s conftest.$ac_objext'
39058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39059  (eval $ac_try) 2>&5
39060  ac_status=$?
39061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062  (exit $ac_status); }; }; then
39063  eval "ac_cv_func_strsvis_noproto=yes"
39064else
39065  echo "$as_me: failed program was:" >&5
39066sed 's/^/| /' conftest.$ac_ext >&5
39067
39068eval "ac_cv_func_strsvis_noproto=no"
39069fi
39070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39071fi
39072echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
39073echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
39074if test "$ac_cv_func_strsvis_noproto" = yes; then
39075
39076cat >>confdefs.h <<\_ACEOF
39077#define NEED_STRSVIS_PROTO 1
39078_ACEOF
39079
39080fi
39081fi
39082
39083if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
39084echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
39085echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
39086if test "${ac_cv_func_strunvis_noproto+set}" = set; then
39087  echo $ECHO_N "(cached) $ECHO_C" >&6
39088else
39089  cat >conftest.$ac_ext <<_ACEOF
39090/* confdefs.h.  */
39091_ACEOF
39092cat confdefs.h >>conftest.$ac_ext
39093cat >>conftest.$ac_ext <<_ACEOF
39094/* end confdefs.h.  */
39095#ifdef HAVE_VIS_H
39096#include <vis.h>
39097#endif
39098int
39099main ()
39100{
39101struct foo { int foo; } xx;
39102extern int strunvis (struct foo*);
39103strunvis(&xx);
39104
39105  ;
39106  return 0;
39107}
39108_ACEOF
39109rm -f conftest.$ac_objext
39110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39111  (eval $ac_compile) 2>conftest.er1
39112  ac_status=$?
39113  grep -v '^ *+' conftest.er1 >conftest.err
39114  rm -f conftest.er1
39115  cat conftest.err >&5
39116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117  (exit $ac_status); } &&
39118	 { ac_try='test -z "$ac_c_werror_flag"
39119			 || test ! -s conftest.err'
39120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39121  (eval $ac_try) 2>&5
39122  ac_status=$?
39123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39124  (exit $ac_status); }; } &&
39125	 { ac_try='test -s conftest.$ac_objext'
39126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39127  (eval $ac_try) 2>&5
39128  ac_status=$?
39129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130  (exit $ac_status); }; }; then
39131  eval "ac_cv_func_strunvis_noproto=yes"
39132else
39133  echo "$as_me: failed program was:" >&5
39134sed 's/^/| /' conftest.$ac_ext >&5
39135
39136eval "ac_cv_func_strunvis_noproto=no"
39137fi
39138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39139fi
39140echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
39141echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
39142if test "$ac_cv_func_strunvis_noproto" = yes; then
39143
39144cat >>confdefs.h <<\_ACEOF
39145#define NEED_STRUNVIS_PROTO 1
39146_ACEOF
39147
39148fi
39149fi
39150
39151if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
39152echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
39153echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
39154if test "${ac_cv_func_strvis_noproto+set}" = set; then
39155  echo $ECHO_N "(cached) $ECHO_C" >&6
39156else
39157  cat >conftest.$ac_ext <<_ACEOF
39158/* confdefs.h.  */
39159_ACEOF
39160cat confdefs.h >>conftest.$ac_ext
39161cat >>conftest.$ac_ext <<_ACEOF
39162/* end confdefs.h.  */
39163#ifdef HAVE_VIS_H
39164#include <vis.h>
39165#endif
39166int
39167main ()
39168{
39169struct foo { int foo; } xx;
39170extern int strvis (struct foo*);
39171strvis(&xx);
39172
39173  ;
39174  return 0;
39175}
39176_ACEOF
39177rm -f conftest.$ac_objext
39178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39179  (eval $ac_compile) 2>conftest.er1
39180  ac_status=$?
39181  grep -v '^ *+' conftest.er1 >conftest.err
39182  rm -f conftest.er1
39183  cat conftest.err >&5
39184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185  (exit $ac_status); } &&
39186	 { ac_try='test -z "$ac_c_werror_flag"
39187			 || test ! -s conftest.err'
39188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39189  (eval $ac_try) 2>&5
39190  ac_status=$?
39191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192  (exit $ac_status); }; } &&
39193	 { ac_try='test -s conftest.$ac_objext'
39194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39195  (eval $ac_try) 2>&5
39196  ac_status=$?
39197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39198  (exit $ac_status); }; }; then
39199  eval "ac_cv_func_strvis_noproto=yes"
39200else
39201  echo "$as_me: failed program was:" >&5
39202sed 's/^/| /' conftest.$ac_ext >&5
39203
39204eval "ac_cv_func_strvis_noproto=no"
39205fi
39206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39207fi
39208echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
39209echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
39210if test "$ac_cv_func_strvis_noproto" = yes; then
39211
39212cat >>confdefs.h <<\_ACEOF
39213#define NEED_STRVIS_PROTO 1
39214_ACEOF
39215
39216fi
39217fi
39218
39219if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
39220echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
39221echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
39222if test "${ac_cv_func_strvisx_noproto+set}" = set; then
39223  echo $ECHO_N "(cached) $ECHO_C" >&6
39224else
39225  cat >conftest.$ac_ext <<_ACEOF
39226/* confdefs.h.  */
39227_ACEOF
39228cat confdefs.h >>conftest.$ac_ext
39229cat >>conftest.$ac_ext <<_ACEOF
39230/* end confdefs.h.  */
39231#ifdef HAVE_VIS_H
39232#include <vis.h>
39233#endif
39234int
39235main ()
39236{
39237struct foo { int foo; } xx;
39238extern int strvisx (struct foo*);
39239strvisx(&xx);
39240
39241  ;
39242  return 0;
39243}
39244_ACEOF
39245rm -f conftest.$ac_objext
39246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39247  (eval $ac_compile) 2>conftest.er1
39248  ac_status=$?
39249  grep -v '^ *+' conftest.er1 >conftest.err
39250  rm -f conftest.er1
39251  cat conftest.err >&5
39252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39253  (exit $ac_status); } &&
39254	 { ac_try='test -z "$ac_c_werror_flag"
39255			 || test ! -s conftest.err'
39256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39257  (eval $ac_try) 2>&5
39258  ac_status=$?
39259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39260  (exit $ac_status); }; } &&
39261	 { ac_try='test -s conftest.$ac_objext'
39262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39263  (eval $ac_try) 2>&5
39264  ac_status=$?
39265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39266  (exit $ac_status); }; }; then
39267  eval "ac_cv_func_strvisx_noproto=yes"
39268else
39269  echo "$as_me: failed program was:" >&5
39270sed 's/^/| /' conftest.$ac_ext >&5
39271
39272eval "ac_cv_func_strvisx_noproto=no"
39273fi
39274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39275fi
39276echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
39277echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
39278if test "$ac_cv_func_strvisx_noproto" = yes; then
39279
39280cat >>confdefs.h <<\_ACEOF
39281#define NEED_STRVISX_PROTO 1
39282_ACEOF
39283
39284fi
39285fi
39286
39287if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
39288echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
39289echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
39290if test "${ac_cv_func_svis_noproto+set}" = set; then
39291  echo $ECHO_N "(cached) $ECHO_C" >&6
39292else
39293  cat >conftest.$ac_ext <<_ACEOF
39294/* confdefs.h.  */
39295_ACEOF
39296cat confdefs.h >>conftest.$ac_ext
39297cat >>conftest.$ac_ext <<_ACEOF
39298/* end confdefs.h.  */
39299#ifdef HAVE_VIS_H
39300#include <vis.h>
39301#endif
39302int
39303main ()
39304{
39305struct foo { int foo; } xx;
39306extern int svis (struct foo*);
39307svis(&xx);
39308
39309  ;
39310  return 0;
39311}
39312_ACEOF
39313rm -f conftest.$ac_objext
39314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39315  (eval $ac_compile) 2>conftest.er1
39316  ac_status=$?
39317  grep -v '^ *+' conftest.er1 >conftest.err
39318  rm -f conftest.er1
39319  cat conftest.err >&5
39320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39321  (exit $ac_status); } &&
39322	 { ac_try='test -z "$ac_c_werror_flag"
39323			 || test ! -s conftest.err'
39324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39325  (eval $ac_try) 2>&5
39326  ac_status=$?
39327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328  (exit $ac_status); }; } &&
39329	 { ac_try='test -s conftest.$ac_objext'
39330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39331  (eval $ac_try) 2>&5
39332  ac_status=$?
39333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39334  (exit $ac_status); }; }; then
39335  eval "ac_cv_func_svis_noproto=yes"
39336else
39337  echo "$as_me: failed program was:" >&5
39338sed 's/^/| /' conftest.$ac_ext >&5
39339
39340eval "ac_cv_func_svis_noproto=no"
39341fi
39342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39343fi
39344echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
39345echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
39346if test "$ac_cv_func_svis_noproto" = yes; then
39347
39348cat >>confdefs.h <<\_ACEOF
39349#define NEED_SVIS_PROTO 1
39350_ACEOF
39351
39352fi
39353fi
39354
39355if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
39356echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
39357echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
39358if test "${ac_cv_func_unvis_noproto+set}" = set; then
39359  echo $ECHO_N "(cached) $ECHO_C" >&6
39360else
39361  cat >conftest.$ac_ext <<_ACEOF
39362/* confdefs.h.  */
39363_ACEOF
39364cat confdefs.h >>conftest.$ac_ext
39365cat >>conftest.$ac_ext <<_ACEOF
39366/* end confdefs.h.  */
39367#ifdef HAVE_VIS_H
39368#include <vis.h>
39369#endif
39370int
39371main ()
39372{
39373struct foo { int foo; } xx;
39374extern int unvis (struct foo*);
39375unvis(&xx);
39376
39377  ;
39378  return 0;
39379}
39380_ACEOF
39381rm -f conftest.$ac_objext
39382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39383  (eval $ac_compile) 2>conftest.er1
39384  ac_status=$?
39385  grep -v '^ *+' conftest.er1 >conftest.err
39386  rm -f conftest.er1
39387  cat conftest.err >&5
39388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389  (exit $ac_status); } &&
39390	 { ac_try='test -z "$ac_c_werror_flag"
39391			 || test ! -s conftest.err'
39392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39393  (eval $ac_try) 2>&5
39394  ac_status=$?
39395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39396  (exit $ac_status); }; } &&
39397	 { ac_try='test -s conftest.$ac_objext'
39398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39399  (eval $ac_try) 2>&5
39400  ac_status=$?
39401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39402  (exit $ac_status); }; }; then
39403  eval "ac_cv_func_unvis_noproto=yes"
39404else
39405  echo "$as_me: failed program was:" >&5
39406sed 's/^/| /' conftest.$ac_ext >&5
39407
39408eval "ac_cv_func_unvis_noproto=no"
39409fi
39410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39411fi
39412echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
39413echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
39414if test "$ac_cv_func_unvis_noproto" = yes; then
39415
39416cat >>confdefs.h <<\_ACEOF
39417#define NEED_UNVIS_PROTO 1
39418_ACEOF
39419
39420fi
39421fi
39422
39423if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
39424echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
39425echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
39426if test "${ac_cv_func_vis_noproto+set}" = set; then
39427  echo $ECHO_N "(cached) $ECHO_C" >&6
39428else
39429  cat >conftest.$ac_ext <<_ACEOF
39430/* confdefs.h.  */
39431_ACEOF
39432cat confdefs.h >>conftest.$ac_ext
39433cat >>conftest.$ac_ext <<_ACEOF
39434/* end confdefs.h.  */
39435#ifdef HAVE_VIS_H
39436#include <vis.h>
39437#endif
39438int
39439main ()
39440{
39441struct foo { int foo; } xx;
39442extern int vis (struct foo*);
39443vis(&xx);
39444
39445  ;
39446  return 0;
39447}
39448_ACEOF
39449rm -f conftest.$ac_objext
39450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39451  (eval $ac_compile) 2>conftest.er1
39452  ac_status=$?
39453  grep -v '^ *+' conftest.er1 >conftest.err
39454  rm -f conftest.er1
39455  cat conftest.err >&5
39456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39457  (exit $ac_status); } &&
39458	 { ac_try='test -z "$ac_c_werror_flag"
39459			 || test ! -s conftest.err'
39460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39461  (eval $ac_try) 2>&5
39462  ac_status=$?
39463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39464  (exit $ac_status); }; } &&
39465	 { ac_try='test -s conftest.$ac_objext'
39466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39467  (eval $ac_try) 2>&5
39468  ac_status=$?
39469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470  (exit $ac_status); }; }; then
39471  eval "ac_cv_func_vis_noproto=yes"
39472else
39473  echo "$as_me: failed program was:" >&5
39474sed 's/^/| /' conftest.$ac_ext >&5
39475
39476eval "ac_cv_func_vis_noproto=no"
39477fi
39478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39479fi
39480echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
39481echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
39482if test "$ac_cv_func_vis_noproto" = yes; then
39483
39484cat >>confdefs.h <<\_ACEOF
39485#define NEED_VIS_PROTO 1
39486_ACEOF
39487
39488fi
39489fi
39490
39491
39492echo "$as_me:$LINENO: checking for inet_aton" >&5
39493echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
39494if test "${ac_cv_func_inet_aton+set}" = set; then
39495  echo $ECHO_N "(cached) $ECHO_C" >&6
39496else
39497  cat >conftest.$ac_ext <<_ACEOF
39498/* confdefs.h.  */
39499_ACEOF
39500cat confdefs.h >>conftest.$ac_ext
39501cat >>conftest.$ac_ext <<_ACEOF
39502/* end confdefs.h.  */
39503#ifdef HAVE_SYS_TYPES_H
39504#include <sys/types.h>
39505#endif
39506#ifdef HAVE_SYS_SOCKET_H
39507#include <sys/socket.h>
39508#endif
39509#ifdef HAVE_NETINET_IN_H
39510#include <netinet/in.h>
39511#endif
39512#ifdef HAVE_ARPA_INET_H
39513#include <arpa/inet.h>
39514#endif
39515int
39516main ()
39517{
39518
39519/* The GNU C library defines this for functions which it implements
39520    to always fail with ENOSYS.  Some functions are actually named
39521    something starting with __ and the normal name is an alias.  */
39522#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
39523choke me
39524#else
39525inet_aton(0,0)
39526#endif
39527
39528  ;
39529  return 0;
39530}
39531_ACEOF
39532rm -f conftest.$ac_objext conftest$ac_exeext
39533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39534  (eval $ac_link) 2>conftest.er1
39535  ac_status=$?
39536  grep -v '^ *+' conftest.er1 >conftest.err
39537  rm -f conftest.er1
39538  cat conftest.err >&5
39539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540  (exit $ac_status); } &&
39541	 { ac_try='test -z "$ac_c_werror_flag"
39542			 || test ! -s conftest.err'
39543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39544  (eval $ac_try) 2>&5
39545  ac_status=$?
39546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547  (exit $ac_status); }; } &&
39548	 { ac_try='test -s conftest$ac_exeext'
39549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39550  (eval $ac_try) 2>&5
39551  ac_status=$?
39552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39553  (exit $ac_status); }; }; then
39554  eval "ac_cv_func_inet_aton=yes"
39555else
39556  echo "$as_me: failed program was:" >&5
39557sed 's/^/| /' conftest.$ac_ext >&5
39558
39559eval "ac_cv_func_inet_aton=no"
39560fi
39561rm -f conftest.err conftest.$ac_objext \
39562      conftest$ac_exeext conftest.$ac_ext
39563fi
39564
39565if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
39566
39567cat >>confdefs.h <<_ACEOF
39568#define HAVE_INET_ATON 1
39569_ACEOF
39570
39571  echo "$as_me:$LINENO: result: yes" >&5
39572echo "${ECHO_T}yes" >&6
39573else
39574  echo "$as_me:$LINENO: result: no" >&5
39575echo "${ECHO_T}no" >&6
39576  case $LIBOBJS in
39577    "inet_aton.$ac_objext"   | \
39578  *" inet_aton.$ac_objext"   | \
39579    "inet_aton.$ac_objext "* | \
39580  *" inet_aton.$ac_objext "* ) ;;
39581  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
39582esac
39583
39584fi
39585
39586echo "$as_me:$LINENO: checking for inet_ntop" >&5
39587echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
39588if test "${ac_cv_func_inet_ntop+set}" = set; then
39589  echo $ECHO_N "(cached) $ECHO_C" >&6
39590else
39591  cat >conftest.$ac_ext <<_ACEOF
39592/* confdefs.h.  */
39593_ACEOF
39594cat confdefs.h >>conftest.$ac_ext
39595cat >>conftest.$ac_ext <<_ACEOF
39596/* end confdefs.h.  */
39597#ifdef HAVE_SYS_TYPES_H
39598#include <sys/types.h>
39599#endif
39600#ifdef HAVE_SYS_SOCKET_H
39601#include <sys/socket.h>
39602#endif
39603#ifdef HAVE_NETINET_IN_H
39604#include <netinet/in.h>
39605#endif
39606#ifdef HAVE_ARPA_INET_H
39607#include <arpa/inet.h>
39608#endif
39609int
39610main ()
39611{
39612
39613/* The GNU C library defines this for functions which it implements
39614    to always fail with ENOSYS.  Some functions are actually named
39615    something starting with __ and the normal name is an alias.  */
39616#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
39617choke me
39618#else
39619inet_ntop(0, 0, 0, 0)
39620#endif
39621
39622  ;
39623  return 0;
39624}
39625_ACEOF
39626rm -f conftest.$ac_objext conftest$ac_exeext
39627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39628  (eval $ac_link) 2>conftest.er1
39629  ac_status=$?
39630  grep -v '^ *+' conftest.er1 >conftest.err
39631  rm -f conftest.er1
39632  cat conftest.err >&5
39633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634  (exit $ac_status); } &&
39635	 { ac_try='test -z "$ac_c_werror_flag"
39636			 || test ! -s conftest.err'
39637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39638  (eval $ac_try) 2>&5
39639  ac_status=$?
39640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641  (exit $ac_status); }; } &&
39642	 { ac_try='test -s conftest$ac_exeext'
39643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39644  (eval $ac_try) 2>&5
39645  ac_status=$?
39646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39647  (exit $ac_status); }; }; then
39648  eval "ac_cv_func_inet_ntop=yes"
39649else
39650  echo "$as_me: failed program was:" >&5
39651sed 's/^/| /' conftest.$ac_ext >&5
39652
39653eval "ac_cv_func_inet_ntop=no"
39654fi
39655rm -f conftest.err conftest.$ac_objext \
39656      conftest$ac_exeext conftest.$ac_ext
39657fi
39658
39659if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
39660
39661cat >>confdefs.h <<_ACEOF
39662#define HAVE_INET_NTOP 1
39663_ACEOF
39664
39665  echo "$as_me:$LINENO: result: yes" >&5
39666echo "${ECHO_T}yes" >&6
39667else
39668  echo "$as_me:$LINENO: result: no" >&5
39669echo "${ECHO_T}no" >&6
39670  case $LIBOBJS in
39671    "inet_ntop.$ac_objext"   | \
39672  *" inet_ntop.$ac_objext"   | \
39673    "inet_ntop.$ac_objext "* | \
39674  *" inet_ntop.$ac_objext "* ) ;;
39675  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" ;;
39676esac
39677
39678fi
39679
39680echo "$as_me:$LINENO: checking for inet_pton" >&5
39681echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
39682if test "${ac_cv_func_inet_pton+set}" = set; then
39683  echo $ECHO_N "(cached) $ECHO_C" >&6
39684else
39685  cat >conftest.$ac_ext <<_ACEOF
39686/* confdefs.h.  */
39687_ACEOF
39688cat confdefs.h >>conftest.$ac_ext
39689cat >>conftest.$ac_ext <<_ACEOF
39690/* end confdefs.h.  */
39691#ifdef HAVE_SYS_TYPES_H
39692#include <sys/types.h>
39693#endif
39694#ifdef HAVE_SYS_SOCKET_H
39695#include <sys/socket.h>
39696#endif
39697#ifdef HAVE_NETINET_IN_H
39698#include <netinet/in.h>
39699#endif
39700#ifdef HAVE_ARPA_INET_H
39701#include <arpa/inet.h>
39702#endif
39703int
39704main ()
39705{
39706
39707/* The GNU C library defines this for functions which it implements
39708    to always fail with ENOSYS.  Some functions are actually named
39709    something starting with __ and the normal name is an alias.  */
39710#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
39711choke me
39712#else
39713inet_pton(0,0,0)
39714#endif
39715
39716  ;
39717  return 0;
39718}
39719_ACEOF
39720rm -f conftest.$ac_objext conftest$ac_exeext
39721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39722  (eval $ac_link) 2>conftest.er1
39723  ac_status=$?
39724  grep -v '^ *+' conftest.er1 >conftest.err
39725  rm -f conftest.er1
39726  cat conftest.err >&5
39727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39728  (exit $ac_status); } &&
39729	 { ac_try='test -z "$ac_c_werror_flag"
39730			 || test ! -s conftest.err'
39731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39732  (eval $ac_try) 2>&5
39733  ac_status=$?
39734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39735  (exit $ac_status); }; } &&
39736	 { ac_try='test -s conftest$ac_exeext'
39737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39738  (eval $ac_try) 2>&5
39739  ac_status=$?
39740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39741  (exit $ac_status); }; }; then
39742  eval "ac_cv_func_inet_pton=yes"
39743else
39744  echo "$as_me: failed program was:" >&5
39745sed 's/^/| /' conftest.$ac_ext >&5
39746
39747eval "ac_cv_func_inet_pton=no"
39748fi
39749rm -f conftest.err conftest.$ac_objext \
39750      conftest$ac_exeext conftest.$ac_ext
39751fi
39752
39753if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
39754
39755cat >>confdefs.h <<_ACEOF
39756#define HAVE_INET_PTON 1
39757_ACEOF
39758
39759  echo "$as_me:$LINENO: result: yes" >&5
39760echo "${ECHO_T}yes" >&6
39761else
39762  echo "$as_me:$LINENO: result: no" >&5
39763echo "${ECHO_T}no" >&6
39764  case $LIBOBJS in
39765    "inet_pton.$ac_objext"   | \
39766  *" inet_pton.$ac_objext"   | \
39767    "inet_pton.$ac_objext "* | \
39768  *" inet_pton.$ac_objext "* ) ;;
39769  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" ;;
39770esac
39771
39772fi
39773
39774
39775
39776echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
39777echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
39778if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
39779  echo $ECHO_N "(cached) $ECHO_C" >&6
39780else
39781
39782cat >conftest.$ac_ext <<_ACEOF
39783/* confdefs.h.  */
39784_ACEOF
39785cat confdefs.h >>conftest.$ac_ext
39786cat >>conftest.$ac_ext <<_ACEOF
39787/* end confdefs.h.  */
39788#include <sys/types.h>
39789#include <sys/socket.h>
39790int
39791main ()
39792{
39793struct sockaddr x; x.sa_len;
39794  ;
39795  return 0;
39796}
39797_ACEOF
39798rm -f conftest.$ac_objext
39799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39800  (eval $ac_compile) 2>conftest.er1
39801  ac_status=$?
39802  grep -v '^ *+' conftest.er1 >conftest.err
39803  rm -f conftest.er1
39804  cat conftest.err >&5
39805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39806  (exit $ac_status); } &&
39807	 { ac_try='test -z "$ac_c_werror_flag"
39808			 || test ! -s conftest.err'
39809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39810  (eval $ac_try) 2>&5
39811  ac_status=$?
39812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813  (exit $ac_status); }; } &&
39814	 { ac_try='test -s conftest.$ac_objext'
39815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39816  (eval $ac_try) 2>&5
39817  ac_status=$?
39818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39819  (exit $ac_status); }; }; then
39820  ac_cv_type_struct_sockaddr_sa_len=yes
39821else
39822  echo "$as_me: failed program was:" >&5
39823sed 's/^/| /' conftest.$ac_ext >&5
39824
39825ac_cv_type_struct_sockaddr_sa_len=no
39826fi
39827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39828fi
39829echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
39830echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
39831if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
39832
39833
39834cat >>confdefs.h <<\_ACEOF
39835#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
39836_ACEOF
39837
39838
39839fi
39840
39841
39842
39843if test "$ac_cv_func_getnameinfo" = "yes"; then
39844
39845echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
39846echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
39847if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
39848  echo $ECHO_N "(cached) $ECHO_C" >&6
39849else
39850  if test "$cross_compiling" = yes; then
39851  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39852See \`config.log' for more details." >&5
39853echo "$as_me: error: cannot run test program while cross compiling
39854See \`config.log' for more details." >&2;}
39855   { (exit 1); exit 1; }; }
39856else
39857  cat >conftest.$ac_ext <<_ACEOF
39858/* confdefs.h.  */
39859_ACEOF
39860cat confdefs.h >>conftest.$ac_ext
39861cat >>conftest.$ac_ext <<_ACEOF
39862/* end confdefs.h.  */
39863#include <stdio.h>
39864#include <sys/types.h>
39865#include <sys/socket.h>
39866#include <netinet/in.h>
39867#include <netdb.h>
39868
39869int
39870main(int argc, char **argv)
39871{
39872  struct sockaddr_in sin;
39873  char host[256];
39874  memset(&sin, 0, sizeof(sin));
39875#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
39876  sin.sin_len = sizeof(sin);
39877#endif
39878  sin.sin_family = AF_INET;
39879  sin.sin_addr.s_addr = 0xffffffff;
39880  sin.sin_port = 0;
39881  return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
39882	      NULL, 0, 0);
39883}
39884
39885_ACEOF
39886rm -f conftest$ac_exeext
39887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39888  (eval $ac_link) 2>&5
39889  ac_status=$?
39890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39893  (eval $ac_try) 2>&5
39894  ac_status=$?
39895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39896  (exit $ac_status); }; }; then
39897  ac_cv_func_getnameinfo_broken=no
39898else
39899  echo "$as_me: program exited with status $ac_status" >&5
39900echo "$as_me: failed program was:" >&5
39901sed 's/^/| /' conftest.$ac_ext >&5
39902
39903( exit $ac_status )
39904ac_cv_func_getnameinfo_broken=yes
39905fi
39906rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39907fi
39908fi
39909echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
39910echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
39911  if test "$ac_cv_func_getnameinfo_broken" = yes; then
39912	case $LIBOBJS in
39913    "getnameinfo.$ac_objext"   | \
39914  *" getnameinfo.$ac_objext"   | \
39915    "getnameinfo.$ac_objext "* | \
39916  *" getnameinfo.$ac_objext "* ) ;;
39917  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" ;;
39918esac
39919
39920  fi
39921fi
39922
39923if test "$ac_cv_func_getaddrinfo" = "yes"; then
39924
39925echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
39926echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
39927if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
39928  echo $ECHO_N "(cached) $ECHO_C" >&6
39929else
39930  if test "$cross_compiling" = yes; then
39931  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39932See \`config.log' for more details." >&5
39933echo "$as_me: error: cannot run test program while cross compiling
39934See \`config.log' for more details." >&2;}
39935   { (exit 1); exit 1; }; }
39936else
39937  cat >conftest.$ac_ext <<_ACEOF
39938/* confdefs.h.  */
39939_ACEOF
39940cat confdefs.h >>conftest.$ac_ext
39941cat >>conftest.$ac_ext <<_ACEOF
39942/* end confdefs.h.  */
39943#include <stdio.h>
39944#include <sys/types.h>
39945#include <sys/socket.h>
39946#include <netdb.h>
39947
39948int
39949main(int argc, char **argv)
39950{
39951	struct addrinfo hints, *ai;
39952	memset(&hints, 0, sizeof(hints));
39953	hints.ai_flags = AI_PASSIVE;
39954	hints.ai_socktype = SOCK_STREAM;
39955	hints.ai_family = PF_UNSPEC;
39956	if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
39957		return 1;
39958	return 0;
39959}
39960
39961_ACEOF
39962rm -f conftest$ac_exeext
39963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39964  (eval $ac_link) 2>&5
39965  ac_status=$?
39966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39969  (eval $ac_try) 2>&5
39970  ac_status=$?
39971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972  (exit $ac_status); }; }; then
39973  ac_cv_func_getaddrinfo_numserv=yes
39974else
39975  echo "$as_me: program exited with status $ac_status" >&5
39976echo "$as_me: failed program was:" >&5
39977sed 's/^/| /' conftest.$ac_ext >&5
39978
39979( exit $ac_status )
39980ac_cv_func_getaddrinfo_numserv=no
39981fi
39982rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39983fi
39984fi
39985echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
39986echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
39987  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
39988	case $LIBOBJS in
39989    "getaddrinfo.$ac_objext"   | \
39990  *" getaddrinfo.$ac_objext"   | \
39991    "getaddrinfo.$ac_objext "* | \
39992  *" getaddrinfo.$ac_objext "* ) ;;
39993  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
39994esac
39995
39996	case $LIBOBJS in
39997    "freeaddrinfo.$ac_objext"   | \
39998  *" freeaddrinfo.$ac_objext"   | \
39999    "freeaddrinfo.$ac_objext "* | \
40000  *" freeaddrinfo.$ac_objext "* ) ;;
40001  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" ;;
40002esac
40003
40004  fi
40005fi
40006
40007
40008if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
40009echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
40010echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
40011if test "${ac_cv_func_setenv_noproto+set}" = set; then
40012  echo $ECHO_N "(cached) $ECHO_C" >&6
40013else
40014  cat >conftest.$ac_ext <<_ACEOF
40015/* confdefs.h.  */
40016_ACEOF
40017cat confdefs.h >>conftest.$ac_ext
40018cat >>conftest.$ac_ext <<_ACEOF
40019/* end confdefs.h.  */
40020#include <stdlib.h>
40021int
40022main ()
40023{
40024struct foo { int foo; } xx;
40025extern int setenv (struct foo*);
40026setenv(&xx);
40027
40028  ;
40029  return 0;
40030}
40031_ACEOF
40032rm -f conftest.$ac_objext
40033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40034  (eval $ac_compile) 2>conftest.er1
40035  ac_status=$?
40036  grep -v '^ *+' conftest.er1 >conftest.err
40037  rm -f conftest.er1
40038  cat conftest.err >&5
40039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040  (exit $ac_status); } &&
40041	 { ac_try='test -z "$ac_c_werror_flag"
40042			 || test ! -s conftest.err'
40043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40044  (eval $ac_try) 2>&5
40045  ac_status=$?
40046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047  (exit $ac_status); }; } &&
40048	 { ac_try='test -s conftest.$ac_objext'
40049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40050  (eval $ac_try) 2>&5
40051  ac_status=$?
40052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053  (exit $ac_status); }; }; then
40054  eval "ac_cv_func_setenv_noproto=yes"
40055else
40056  echo "$as_me: failed program was:" >&5
40057sed 's/^/| /' conftest.$ac_ext >&5
40058
40059eval "ac_cv_func_setenv_noproto=no"
40060fi
40061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40062fi
40063echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
40064echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
40065if test "$ac_cv_func_setenv_noproto" = yes; then
40066
40067cat >>confdefs.h <<\_ACEOF
40068#define NEED_SETENV_PROTO 1
40069_ACEOF
40070
40071fi
40072fi
40073
40074
40075if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
40076echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
40077echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
40078if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
40079  echo $ECHO_N "(cached) $ECHO_C" >&6
40080else
40081  cat >conftest.$ac_ext <<_ACEOF
40082/* confdefs.h.  */
40083_ACEOF
40084cat confdefs.h >>conftest.$ac_ext
40085cat >>conftest.$ac_ext <<_ACEOF
40086/* end confdefs.h.  */
40087#include <stdlib.h>
40088int
40089main ()
40090{
40091struct foo { int foo; } xx;
40092extern int unsetenv (struct foo*);
40093unsetenv(&xx);
40094
40095  ;
40096  return 0;
40097}
40098_ACEOF
40099rm -f conftest.$ac_objext
40100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40101  (eval $ac_compile) 2>conftest.er1
40102  ac_status=$?
40103  grep -v '^ *+' conftest.er1 >conftest.err
40104  rm -f conftest.er1
40105  cat conftest.err >&5
40106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40107  (exit $ac_status); } &&
40108	 { ac_try='test -z "$ac_c_werror_flag"
40109			 || test ! -s conftest.err'
40110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40111  (eval $ac_try) 2>&5
40112  ac_status=$?
40113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40114  (exit $ac_status); }; } &&
40115	 { ac_try='test -s conftest.$ac_objext'
40116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40117  (eval $ac_try) 2>&5
40118  ac_status=$?
40119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40120  (exit $ac_status); }; }; then
40121  eval "ac_cv_func_unsetenv_noproto=yes"
40122else
40123  echo "$as_me: failed program was:" >&5
40124sed 's/^/| /' conftest.$ac_ext >&5
40125
40126eval "ac_cv_func_unsetenv_noproto=no"
40127fi
40128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40129fi
40130echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
40131echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
40132if test "$ac_cv_func_unsetenv_noproto" = yes; then
40133
40134cat >>confdefs.h <<\_ACEOF
40135#define NEED_UNSETENV_PROTO 1
40136_ACEOF
40137
40138fi
40139fi
40140
40141
40142if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
40143echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
40144echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
40145if test "${ac_cv_func_gethostname_noproto+set}" = set; then
40146  echo $ECHO_N "(cached) $ECHO_C" >&6
40147else
40148  cat >conftest.$ac_ext <<_ACEOF
40149/* confdefs.h.  */
40150_ACEOF
40151cat confdefs.h >>conftest.$ac_ext
40152cat >>conftest.$ac_ext <<_ACEOF
40153/* end confdefs.h.  */
40154#include <unistd.h>
40155int
40156main ()
40157{
40158struct foo { int foo; } xx;
40159extern int gethostname (struct foo*);
40160gethostname(&xx);
40161
40162  ;
40163  return 0;
40164}
40165_ACEOF
40166rm -f conftest.$ac_objext
40167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40168  (eval $ac_compile) 2>conftest.er1
40169  ac_status=$?
40170  grep -v '^ *+' conftest.er1 >conftest.err
40171  rm -f conftest.er1
40172  cat conftest.err >&5
40173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174  (exit $ac_status); } &&
40175	 { ac_try='test -z "$ac_c_werror_flag"
40176			 || test ! -s conftest.err'
40177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40178  (eval $ac_try) 2>&5
40179  ac_status=$?
40180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181  (exit $ac_status); }; } &&
40182	 { ac_try='test -s conftest.$ac_objext'
40183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40184  (eval $ac_try) 2>&5
40185  ac_status=$?
40186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40187  (exit $ac_status); }; }; then
40188  eval "ac_cv_func_gethostname_noproto=yes"
40189else
40190  echo "$as_me: failed program was:" >&5
40191sed 's/^/| /' conftest.$ac_ext >&5
40192
40193eval "ac_cv_func_gethostname_noproto=no"
40194fi
40195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40196fi
40197echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
40198echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
40199if test "$ac_cv_func_gethostname_noproto" = yes; then
40200
40201cat >>confdefs.h <<\_ACEOF
40202#define NEED_GETHOSTNAME_PROTO 1
40203_ACEOF
40204
40205fi
40206fi
40207
40208
40209if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
40210echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
40211echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
40212if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
40213  echo $ECHO_N "(cached) $ECHO_C" >&6
40214else
40215  cat >conftest.$ac_ext <<_ACEOF
40216/* confdefs.h.  */
40217_ACEOF
40218cat confdefs.h >>conftest.$ac_ext
40219cat >>conftest.$ac_ext <<_ACEOF
40220/* end confdefs.h.  */
40221#include <unistd.h>
40222int
40223main ()
40224{
40225struct foo { int foo; } xx;
40226extern int mkstemp (struct foo*);
40227mkstemp(&xx);
40228
40229  ;
40230  return 0;
40231}
40232_ACEOF
40233rm -f conftest.$ac_objext
40234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40235  (eval $ac_compile) 2>conftest.er1
40236  ac_status=$?
40237  grep -v '^ *+' conftest.er1 >conftest.err
40238  rm -f conftest.er1
40239  cat conftest.err >&5
40240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40241  (exit $ac_status); } &&
40242	 { ac_try='test -z "$ac_c_werror_flag"
40243			 || test ! -s conftest.err'
40244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40245  (eval $ac_try) 2>&5
40246  ac_status=$?
40247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248  (exit $ac_status); }; } &&
40249	 { ac_try='test -s conftest.$ac_objext'
40250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40251  (eval $ac_try) 2>&5
40252  ac_status=$?
40253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254  (exit $ac_status); }; }; then
40255  eval "ac_cv_func_mkstemp_noproto=yes"
40256else
40257  echo "$as_me: failed program was:" >&5
40258sed 's/^/| /' conftest.$ac_ext >&5
40259
40260eval "ac_cv_func_mkstemp_noproto=no"
40261fi
40262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40263fi
40264echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
40265echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
40266if test "$ac_cv_func_mkstemp_noproto" = yes; then
40267
40268cat >>confdefs.h <<\_ACEOF
40269#define NEED_MKSTEMP_PROTO 1
40270_ACEOF
40271
40272fi
40273fi
40274
40275
40276if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
40277echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
40278echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
40279if test "${ac_cv_func_getusershell_noproto+set}" = set; then
40280  echo $ECHO_N "(cached) $ECHO_C" >&6
40281else
40282  cat >conftest.$ac_ext <<_ACEOF
40283/* confdefs.h.  */
40284_ACEOF
40285cat confdefs.h >>conftest.$ac_ext
40286cat >>conftest.$ac_ext <<_ACEOF
40287/* end confdefs.h.  */
40288#include <unistd.h>
40289int
40290main ()
40291{
40292struct foo { int foo; } xx;
40293extern int getusershell (struct foo*);
40294getusershell(&xx);
40295
40296  ;
40297  return 0;
40298}
40299_ACEOF
40300rm -f conftest.$ac_objext
40301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40302  (eval $ac_compile) 2>conftest.er1
40303  ac_status=$?
40304  grep -v '^ *+' conftest.er1 >conftest.err
40305  rm -f conftest.er1
40306  cat conftest.err >&5
40307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40308  (exit $ac_status); } &&
40309	 { ac_try='test -z "$ac_c_werror_flag"
40310			 || test ! -s conftest.err'
40311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40312  (eval $ac_try) 2>&5
40313  ac_status=$?
40314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40315  (exit $ac_status); }; } &&
40316	 { ac_try='test -s conftest.$ac_objext'
40317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40318  (eval $ac_try) 2>&5
40319  ac_status=$?
40320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40321  (exit $ac_status); }; }; then
40322  eval "ac_cv_func_getusershell_noproto=yes"
40323else
40324  echo "$as_me: failed program was:" >&5
40325sed 's/^/| /' conftest.$ac_ext >&5
40326
40327eval "ac_cv_func_getusershell_noproto=no"
40328fi
40329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40330fi
40331echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
40332echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
40333if test "$ac_cv_func_getusershell_noproto" = yes; then
40334
40335cat >>confdefs.h <<\_ACEOF
40336#define NEED_GETUSERSHELL_PROTO 1
40337_ACEOF
40338
40339fi
40340fi
40341
40342
40343
40344if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
40345echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
40346echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
40347if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
40348  echo $ECHO_N "(cached) $ECHO_C" >&6
40349else
40350  cat >conftest.$ac_ext <<_ACEOF
40351/* confdefs.h.  */
40352_ACEOF
40353cat confdefs.h >>conftest.$ac_ext
40354cat >>conftest.$ac_ext <<_ACEOF
40355/* end confdefs.h.  */
40356
40357#ifdef HAVE_SYS_TYPES_H
40358#include <sys/types.h>
40359#endif
40360#ifdef HAVE_SYS_SOCKET_H
40361#include <sys/socket.h>
40362#endif
40363#ifdef HAVE_NETINET_IN_H
40364#include <netinet/in.h>
40365#endif
40366#ifdef HAVE_ARPA_INET_H
40367#include <arpa/inet.h>
40368#endif
40369int
40370main ()
40371{
40372struct foo { int foo; } xx;
40373extern int inet_aton (struct foo*);
40374inet_aton(&xx);
40375
40376  ;
40377  return 0;
40378}
40379_ACEOF
40380rm -f conftest.$ac_objext
40381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40382  (eval $ac_compile) 2>conftest.er1
40383  ac_status=$?
40384  grep -v '^ *+' conftest.er1 >conftest.err
40385  rm -f conftest.er1
40386  cat conftest.err >&5
40387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40388  (exit $ac_status); } &&
40389	 { ac_try='test -z "$ac_c_werror_flag"
40390			 || test ! -s conftest.err'
40391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40392  (eval $ac_try) 2>&5
40393  ac_status=$?
40394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40395  (exit $ac_status); }; } &&
40396	 { ac_try='test -s conftest.$ac_objext'
40397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40398  (eval $ac_try) 2>&5
40399  ac_status=$?
40400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40401  (exit $ac_status); }; }; then
40402  eval "ac_cv_func_inet_aton_noproto=yes"
40403else
40404  echo "$as_me: failed program was:" >&5
40405sed 's/^/| /' conftest.$ac_ext >&5
40406
40407eval "ac_cv_func_inet_aton_noproto=no"
40408fi
40409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40410fi
40411echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
40412echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
40413if test "$ac_cv_func_inet_aton_noproto" = yes; then
40414
40415cat >>confdefs.h <<\_ACEOF
40416#define NEED_INET_ATON_PROTO 1
40417_ACEOF
40418
40419fi
40420fi
40421
40422
40423
40424
40425
40426echo "$as_me:$LINENO: checking for crypt" >&5
40427echo $ECHO_N "checking for crypt... $ECHO_C" >&6
40428if test "${ac_cv_funclib_crypt+set}" = set; then
40429  echo $ECHO_N "(cached) $ECHO_C" >&6
40430else
40431
40432if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
40433	ac_save_LIBS="$LIBS"
40434	for ac_lib in "" crypt; do
40435		case "$ac_lib" in
40436		"") ;;
40437		yes) ac_lib="" ;;
40438		no) continue ;;
40439		-l*) ;;
40440		*) ac_lib="-l$ac_lib" ;;
40441		esac
40442		LIBS=" $ac_lib  $ac_save_LIBS"
40443		cat >conftest.$ac_ext <<_ACEOF
40444/* confdefs.h.  */
40445_ACEOF
40446cat confdefs.h >>conftest.$ac_ext
40447cat >>conftest.$ac_ext <<_ACEOF
40448/* end confdefs.h.  */
40449
40450int
40451main ()
40452{
40453crypt()
40454  ;
40455  return 0;
40456}
40457_ACEOF
40458rm -f conftest.$ac_objext conftest$ac_exeext
40459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40460  (eval $ac_link) 2>conftest.er1
40461  ac_status=$?
40462  grep -v '^ *+' conftest.er1 >conftest.err
40463  rm -f conftest.er1
40464  cat conftest.err >&5
40465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466  (exit $ac_status); } &&
40467	 { ac_try='test -z "$ac_c_werror_flag"
40468			 || test ! -s conftest.err'
40469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40470  (eval $ac_try) 2>&5
40471  ac_status=$?
40472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473  (exit $ac_status); }; } &&
40474	 { ac_try='test -s conftest$ac_exeext'
40475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476  (eval $ac_try) 2>&5
40477  ac_status=$?
40478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479  (exit $ac_status); }; }; then
40480  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
40481else
40482  echo "$as_me: failed program was:" >&5
40483sed 's/^/| /' conftest.$ac_ext >&5
40484
40485fi
40486rm -f conftest.err conftest.$ac_objext \
40487      conftest$ac_exeext conftest.$ac_ext
40488	done
40489	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
40490	LIBS="$ac_save_LIBS"
40491fi
40492
40493fi
40494
40495
40496eval "ac_res=\$ac_cv_funclib_crypt"
40497
40498if false; then
40499
40500for ac_func in crypt
40501do
40502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40503echo "$as_me:$LINENO: checking for $ac_func" >&5
40504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40505if eval "test \"\${$as_ac_var+set}\" = set"; then
40506  echo $ECHO_N "(cached) $ECHO_C" >&6
40507else
40508  cat >conftest.$ac_ext <<_ACEOF
40509/* confdefs.h.  */
40510_ACEOF
40511cat confdefs.h >>conftest.$ac_ext
40512cat >>conftest.$ac_ext <<_ACEOF
40513/* end confdefs.h.  */
40514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40515   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40516#define $ac_func innocuous_$ac_func
40517
40518/* System header to define __stub macros and hopefully few prototypes,
40519    which can conflict with char $ac_func (); below.
40520    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40521    <limits.h> exists even on freestanding compilers.  */
40522
40523#ifdef __STDC__
40524# include <limits.h>
40525#else
40526# include <assert.h>
40527#endif
40528
40529#undef $ac_func
40530
40531/* Override any gcc2 internal prototype to avoid an error.  */
40532#ifdef __cplusplus
40533extern "C"
40534{
40535#endif
40536/* We use char because int might match the return type of a gcc2
40537   builtin and then its argument prototype would still apply.  */
40538char $ac_func ();
40539/* The GNU C library defines this for functions which it implements
40540    to always fail with ENOSYS.  Some functions are actually named
40541    something starting with __ and the normal name is an alias.  */
40542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40543choke me
40544#else
40545char (*f) () = $ac_func;
40546#endif
40547#ifdef __cplusplus
40548}
40549#endif
40550
40551int
40552main ()
40553{
40554return f != $ac_func;
40555  ;
40556  return 0;
40557}
40558_ACEOF
40559rm -f conftest.$ac_objext conftest$ac_exeext
40560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40561  (eval $ac_link) 2>conftest.er1
40562  ac_status=$?
40563  grep -v '^ *+' conftest.er1 >conftest.err
40564  rm -f conftest.er1
40565  cat conftest.err >&5
40566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40567  (exit $ac_status); } &&
40568	 { ac_try='test -z "$ac_c_werror_flag"
40569			 || test ! -s conftest.err'
40570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40571  (eval $ac_try) 2>&5
40572  ac_status=$?
40573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574  (exit $ac_status); }; } &&
40575	 { ac_try='test -s conftest$ac_exeext'
40576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40577  (eval $ac_try) 2>&5
40578  ac_status=$?
40579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40580  (exit $ac_status); }; }; then
40581  eval "$as_ac_var=yes"
40582else
40583  echo "$as_me: failed program was:" >&5
40584sed 's/^/| /' conftest.$ac_ext >&5
40585
40586eval "$as_ac_var=no"
40587fi
40588rm -f conftest.err conftest.$ac_objext \
40589      conftest$ac_exeext conftest.$ac_ext
40590fi
40591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40592echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40593if test `eval echo '${'$as_ac_var'}'` = yes; then
40594  cat >>confdefs.h <<_ACEOF
40595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40596_ACEOF
40597
40598fi
40599done
40600
40601fi
40602# crypt
40603eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
40604eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
40605eval "LIB_crypt=$ac_res"
40606
40607case "$ac_res" in
40608	yes)
40609	eval "ac_cv_func_crypt=yes"
40610	eval "LIB_crypt="
40611	cat >>confdefs.h <<_ACEOF
40612#define $ac_tr_func 1
40613_ACEOF
40614
40615	echo "$as_me:$LINENO: result: yes" >&5
40616echo "${ECHO_T}yes" >&6
40617	;;
40618	no)
40619	eval "ac_cv_func_crypt=no"
40620	eval "LIB_crypt="
40621	echo "$as_me:$LINENO: result: no" >&5
40622echo "${ECHO_T}no" >&6
40623	;;
40624	*)
40625	eval "ac_cv_func_crypt=yes"
40626	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
40627	cat >>confdefs.h <<_ACEOF
40628#define $ac_tr_func 1
40629_ACEOF
40630
40631	cat >>confdefs.h <<_ACEOF
40632#define $ac_tr_lib 1
40633_ACEOF
40634
40635	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
40636echo "${ECHO_T}yes, in $ac_res" >&6
40637	;;
40638esac
40639
40640
40641
40642
40643
40644
40645echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
40646echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
40647if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
40648  echo $ECHO_N "(cached) $ECHO_C" >&6
40649else
40650  cat >conftest.$ac_ext <<_ACEOF
40651/* confdefs.h.  */
40652_ACEOF
40653cat confdefs.h >>conftest.$ac_ext
40654cat >>conftest.$ac_ext <<_ACEOF
40655/* end confdefs.h.  */
40656
40657#ifdef HAVE_SYS_TYPES_H
40658#include <sys/types.h>
40659#endif
40660#ifdef HAVE_SYS_SOCKET_H
40661#include <sys/socket.h>
40662#endif
40663#ifdef HAVE_NETINET_IN_H
40664#include <netinet/in.h>
40665#endif
40666#ifdef HAVE_ARPA_INET_H
40667#include <arpa/inet.h>
40668#endif
40669#ifdef HAVE_NETDB_H
40670#include <netdb.h>
40671#endif
40672
40673int
40674main ()
40675{
40676struct hostent *gethostbyname(const char *);
40677  ;
40678  return 0;
40679}
40680_ACEOF
40681rm -f conftest.$ac_objext
40682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40683  (eval $ac_compile) 2>conftest.er1
40684  ac_status=$?
40685  grep -v '^ *+' conftest.er1 >conftest.err
40686  rm -f conftest.er1
40687  cat conftest.err >&5
40688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689  (exit $ac_status); } &&
40690	 { ac_try='test -z "$ac_c_werror_flag"
40691			 || test ! -s conftest.err'
40692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40693  (eval $ac_try) 2>&5
40694  ac_status=$?
40695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696  (exit $ac_status); }; } &&
40697	 { ac_try='test -s conftest.$ac_objext'
40698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40699  (eval $ac_try) 2>&5
40700  ac_status=$?
40701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40702  (exit $ac_status); }; }; then
40703  eval "ac_cv_func_gethostbyname_proto_compat=yes"
40704else
40705  echo "$as_me: failed program was:" >&5
40706sed 's/^/| /' conftest.$ac_ext >&5
40707
40708eval "ac_cv_func_gethostbyname_proto_compat=no"
40709fi
40710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40711fi
40712echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
40713echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
40714
40715if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
40716
40717cat >>confdefs.h <<\_ACEOF
40718#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
40719_ACEOF
40720
40721fi
40722
40723
40724
40725
40726echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
40727echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
40728if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
40729  echo $ECHO_N "(cached) $ECHO_C" >&6
40730else
40731  cat >conftest.$ac_ext <<_ACEOF
40732/* confdefs.h.  */
40733_ACEOF
40734cat confdefs.h >>conftest.$ac_ext
40735cat >>conftest.$ac_ext <<_ACEOF
40736/* end confdefs.h.  */
40737
40738#ifdef HAVE_SYS_TYPES_H
40739#include <sys/types.h>
40740#endif
40741#ifdef HAVE_SYS_SOCKET_H
40742#include <sys/socket.h>
40743#endif
40744#ifdef HAVE_NETINET_IN_H
40745#include <netinet/in.h>
40746#endif
40747#ifdef HAVE_ARPA_INET_H
40748#include <arpa/inet.h>
40749#endif
40750#ifdef HAVE_NETDB_H
40751#include <netdb.h>
40752#endif
40753
40754int
40755main ()
40756{
40757struct hostent *gethostbyaddr(const void *, size_t, int);
40758  ;
40759  return 0;
40760}
40761_ACEOF
40762rm -f conftest.$ac_objext
40763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40764  (eval $ac_compile) 2>conftest.er1
40765  ac_status=$?
40766  grep -v '^ *+' conftest.er1 >conftest.err
40767  rm -f conftest.er1
40768  cat conftest.err >&5
40769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40770  (exit $ac_status); } &&
40771	 { ac_try='test -z "$ac_c_werror_flag"
40772			 || test ! -s conftest.err'
40773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40774  (eval $ac_try) 2>&5
40775  ac_status=$?
40776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40777  (exit $ac_status); }; } &&
40778	 { ac_try='test -s conftest.$ac_objext'
40779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40780  (eval $ac_try) 2>&5
40781  ac_status=$?
40782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40783  (exit $ac_status); }; }; then
40784  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
40785else
40786  echo "$as_me: failed program was:" >&5
40787sed 's/^/| /' conftest.$ac_ext >&5
40788
40789eval "ac_cv_func_gethostbyaddr_proto_compat=no"
40790fi
40791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40792fi
40793echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
40794echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
40795
40796if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
40797
40798cat >>confdefs.h <<\_ACEOF
40799#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
40800_ACEOF
40801
40802fi
40803
40804
40805
40806
40807echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
40808echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
40809if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
40810  echo $ECHO_N "(cached) $ECHO_C" >&6
40811else
40812  cat >conftest.$ac_ext <<_ACEOF
40813/* confdefs.h.  */
40814_ACEOF
40815cat confdefs.h >>conftest.$ac_ext
40816cat >>conftest.$ac_ext <<_ACEOF
40817/* end confdefs.h.  */
40818
40819#ifdef HAVE_SYS_TYPES_H
40820#include <sys/types.h>
40821#endif
40822#ifdef HAVE_SYS_SOCKET_H
40823#include <sys/socket.h>
40824#endif
40825#ifdef HAVE_NETINET_IN_H
40826#include <netinet/in.h>
40827#endif
40828#ifdef HAVE_ARPA_INET_H
40829#include <arpa/inet.h>
40830#endif
40831#ifdef HAVE_NETDB_H
40832#include <netdb.h>
40833#endif
40834
40835int
40836main ()
40837{
40838struct servent *getservbyname(const char *, const char *);
40839  ;
40840  return 0;
40841}
40842_ACEOF
40843rm -f conftest.$ac_objext
40844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40845  (eval $ac_compile) 2>conftest.er1
40846  ac_status=$?
40847  grep -v '^ *+' conftest.er1 >conftest.err
40848  rm -f conftest.er1
40849  cat conftest.err >&5
40850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40851  (exit $ac_status); } &&
40852	 { ac_try='test -z "$ac_c_werror_flag"
40853			 || test ! -s conftest.err'
40854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40855  (eval $ac_try) 2>&5
40856  ac_status=$?
40857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40858  (exit $ac_status); }; } &&
40859	 { ac_try='test -s conftest.$ac_objext'
40860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40861  (eval $ac_try) 2>&5
40862  ac_status=$?
40863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40864  (exit $ac_status); }; }; then
40865  eval "ac_cv_func_getservbyname_proto_compat=yes"
40866else
40867  echo "$as_me: failed program was:" >&5
40868sed 's/^/| /' conftest.$ac_ext >&5
40869
40870eval "ac_cv_func_getservbyname_proto_compat=no"
40871fi
40872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40873fi
40874echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
40875echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
40876
40877if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
40878
40879cat >>confdefs.h <<\_ACEOF
40880#define GETSERVBYNAME_PROTO_COMPATIBLE 1
40881_ACEOF
40882
40883fi
40884
40885
40886
40887
40888echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
40889echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
40890if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
40891  echo $ECHO_N "(cached) $ECHO_C" >&6
40892else
40893  cat >conftest.$ac_ext <<_ACEOF
40894/* confdefs.h.  */
40895_ACEOF
40896cat confdefs.h >>conftest.$ac_ext
40897cat >>conftest.$ac_ext <<_ACEOF
40898/* end confdefs.h.  */
40899
40900#ifdef HAVE_SYS_TYPES_H
40901#include <sys/types.h>
40902#endif
40903#ifdef HAVE_SYS_SOCKET_H
40904#include <sys/socket.h>
40905#endif
40906
40907int
40908main ()
40909{
40910int getsockname(int, struct sockaddr*, socklen_t*);
40911  ;
40912  return 0;
40913}
40914_ACEOF
40915rm -f conftest.$ac_objext
40916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40917  (eval $ac_compile) 2>conftest.er1
40918  ac_status=$?
40919  grep -v '^ *+' conftest.er1 >conftest.err
40920  rm -f conftest.er1
40921  cat conftest.err >&5
40922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40923  (exit $ac_status); } &&
40924	 { ac_try='test -z "$ac_c_werror_flag"
40925			 || test ! -s conftest.err'
40926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40927  (eval $ac_try) 2>&5
40928  ac_status=$?
40929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930  (exit $ac_status); }; } &&
40931	 { ac_try='test -s conftest.$ac_objext'
40932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40933  (eval $ac_try) 2>&5
40934  ac_status=$?
40935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40936  (exit $ac_status); }; }; then
40937  eval "ac_cv_func_getsockname_proto_compat=yes"
40938else
40939  echo "$as_me: failed program was:" >&5
40940sed 's/^/| /' conftest.$ac_ext >&5
40941
40942eval "ac_cv_func_getsockname_proto_compat=no"
40943fi
40944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40945fi
40946echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
40947echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
40948
40949if test "$ac_cv_func_getsockname_proto_compat" = yes; then
40950
40951cat >>confdefs.h <<\_ACEOF
40952#define GETSOCKNAME_PROTO_COMPATIBLE 1
40953_ACEOF
40954
40955fi
40956
40957
40958
40959
40960echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
40961echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
40962if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
40963  echo $ECHO_N "(cached) $ECHO_C" >&6
40964else
40965  cat >conftest.$ac_ext <<_ACEOF
40966/* confdefs.h.  */
40967_ACEOF
40968cat confdefs.h >>conftest.$ac_ext
40969cat >>conftest.$ac_ext <<_ACEOF
40970/* end confdefs.h.  */
40971
40972#ifdef HAVE_SYSLOG_H
40973#include <syslog.h>
40974#endif
40975
40976int
40977main ()
40978{
40979void openlog(const char *, int, int);
40980  ;
40981  return 0;
40982}
40983_ACEOF
40984rm -f conftest.$ac_objext
40985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40986  (eval $ac_compile) 2>conftest.er1
40987  ac_status=$?
40988  grep -v '^ *+' conftest.er1 >conftest.err
40989  rm -f conftest.er1
40990  cat conftest.err >&5
40991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40992  (exit $ac_status); } &&
40993	 { ac_try='test -z "$ac_c_werror_flag"
40994			 || test ! -s conftest.err'
40995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40996  (eval $ac_try) 2>&5
40997  ac_status=$?
40998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40999  (exit $ac_status); }; } &&
41000	 { ac_try='test -s conftest.$ac_objext'
41001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41002  (eval $ac_try) 2>&5
41003  ac_status=$?
41004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41005  (exit $ac_status); }; }; then
41006  eval "ac_cv_func_openlog_proto_compat=yes"
41007else
41008  echo "$as_me: failed program was:" >&5
41009sed 's/^/| /' conftest.$ac_ext >&5
41010
41011eval "ac_cv_func_openlog_proto_compat=no"
41012fi
41013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41014fi
41015echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
41016echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
41017
41018if test "$ac_cv_func_openlog_proto_compat" = yes; then
41019
41020cat >>confdefs.h <<\_ACEOF
41021#define OPENLOG_PROTO_COMPATIBLE 1
41022_ACEOF
41023
41024fi
41025
41026
41027
41028
41029if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
41030echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
41031echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
41032if test "${ac_cv_func_crypt_noproto+set}" = set; then
41033  echo $ECHO_N "(cached) $ECHO_C" >&6
41034else
41035  cat >conftest.$ac_ext <<_ACEOF
41036/* confdefs.h.  */
41037_ACEOF
41038cat confdefs.h >>conftest.$ac_ext
41039cat >>conftest.$ac_ext <<_ACEOF
41040/* end confdefs.h.  */
41041
41042#ifdef HAVE_CRYPT_H
41043#include <crypt.h>
41044#endif
41045#ifdef HAVE_UNISTD_H
41046#include <unistd.h>
41047#endif
41048
41049int
41050main ()
41051{
41052struct foo { int foo; } xx;
41053extern int crypt (struct foo*);
41054crypt(&xx);
41055
41056  ;
41057  return 0;
41058}
41059_ACEOF
41060rm -f conftest.$ac_objext
41061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41062  (eval $ac_compile) 2>conftest.er1
41063  ac_status=$?
41064  grep -v '^ *+' conftest.er1 >conftest.err
41065  rm -f conftest.er1
41066  cat conftest.err >&5
41067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068  (exit $ac_status); } &&
41069	 { ac_try='test -z "$ac_c_werror_flag"
41070			 || test ! -s conftest.err'
41071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41072  (eval $ac_try) 2>&5
41073  ac_status=$?
41074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41075  (exit $ac_status); }; } &&
41076	 { ac_try='test -s conftest.$ac_objext'
41077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41078  (eval $ac_try) 2>&5
41079  ac_status=$?
41080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41081  (exit $ac_status); }; }; then
41082  eval "ac_cv_func_crypt_noproto=yes"
41083else
41084  echo "$as_me: failed program was:" >&5
41085sed 's/^/| /' conftest.$ac_ext >&5
41086
41087eval "ac_cv_func_crypt_noproto=no"
41088fi
41089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41090fi
41091echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
41092echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
41093if test "$ac_cv_func_crypt_noproto" = yes; then
41094
41095cat >>confdefs.h <<\_ACEOF
41096#define NEED_CRYPT_PROTO 1
41097_ACEOF
41098
41099fi
41100fi
41101
41102
41103
41104
41105echo "$as_me:$LINENO: checking for h_errno" >&5
41106echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
41107if test "${ac_cv_var_h_errno+set}" = set; then
41108  echo $ECHO_N "(cached) $ECHO_C" >&6
41109else
41110
41111
41112	cat >conftest.$ac_ext <<_ACEOF
41113/* confdefs.h.  */
41114_ACEOF
41115cat confdefs.h >>conftest.$ac_ext
41116cat >>conftest.$ac_ext <<_ACEOF
41117/* end confdefs.h.  */
41118#ifdef HAVE_SYS_TYPES_H
41119#include <sys/types.h>
41120#endif
41121#ifdef HAVE_NETDB_H
41122#include <netdb.h>
41123#endif
41124	void * foo() { return &h_errno; }
41125int
41126main ()
41127{
41128foo()
41129  ;
41130  return 0;
41131}
41132_ACEOF
41133rm -f conftest.$ac_objext conftest$ac_exeext
41134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41135  (eval $ac_link) 2>conftest.er1
41136  ac_status=$?
41137  grep -v '^ *+' conftest.er1 >conftest.err
41138  rm -f conftest.er1
41139  cat conftest.err >&5
41140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41141  (exit $ac_status); } &&
41142	 { ac_try='test -z "$ac_c_werror_flag"
41143			 || test ! -s conftest.err'
41144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41145  (eval $ac_try) 2>&5
41146  ac_status=$?
41147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41148  (exit $ac_status); }; } &&
41149	 { ac_try='test -s conftest$ac_exeext'
41150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41151  (eval $ac_try) 2>&5
41152  ac_status=$?
41153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41154  (exit $ac_status); }; }; then
41155  ac_cv_var_h_errno=yes
41156else
41157  echo "$as_me: failed program was:" >&5
41158sed 's/^/| /' conftest.$ac_ext >&5
41159
41160ac_cv_var_h_errno=no
41161fi
41162rm -f conftest.err conftest.$ac_objext \
41163      conftest$ac_exeext conftest.$ac_ext
41164if test "$ac_cv_var_h_errno" != yes ; then
41165cat >conftest.$ac_ext <<_ACEOF
41166/* confdefs.h.  */
41167_ACEOF
41168cat confdefs.h >>conftest.$ac_ext
41169cat >>conftest.$ac_ext <<_ACEOF
41170/* end confdefs.h.  */
41171extern int h_errno;
41172int foo() { return h_errno; }
41173int
41174main ()
41175{
41176foo()
41177  ;
41178  return 0;
41179}
41180_ACEOF
41181rm -f conftest.$ac_objext conftest$ac_exeext
41182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41183  (eval $ac_link) 2>conftest.er1
41184  ac_status=$?
41185  grep -v '^ *+' conftest.er1 >conftest.err
41186  rm -f conftest.er1
41187  cat conftest.err >&5
41188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41189  (exit $ac_status); } &&
41190	 { ac_try='test -z "$ac_c_werror_flag"
41191			 || test ! -s conftest.err'
41192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41193  (eval $ac_try) 2>&5
41194  ac_status=$?
41195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41196  (exit $ac_status); }; } &&
41197	 { ac_try='test -s conftest$ac_exeext'
41198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41199  (eval $ac_try) 2>&5
41200  ac_status=$?
41201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41202  (exit $ac_status); }; }; then
41203  ac_cv_var_h_errno=yes
41204else
41205  echo "$as_me: failed program was:" >&5
41206sed 's/^/| /' conftest.$ac_ext >&5
41207
41208ac_cv_var_h_errno=no
41209fi
41210rm -f conftest.err conftest.$ac_objext \
41211      conftest$ac_exeext conftest.$ac_ext
41212fi
41213
41214fi
41215
41216ac_foo=`eval echo \\$ac_cv_var_h_errno`
41217echo "$as_me:$LINENO: result: $ac_foo" >&5
41218echo "${ECHO_T}$ac_foo" >&6
41219if test "$ac_foo" = yes; then
41220
41221cat >>confdefs.h <<_ACEOF
41222#define HAVE_H_ERRNO 1
41223_ACEOF
41224
41225
41226echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
41227echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
41228if test "${ac_cv_var_h_errno_declaration+set}" = set; then
41229  echo $ECHO_N "(cached) $ECHO_C" >&6
41230else
41231
41232cat >conftest.$ac_ext <<_ACEOF
41233/* confdefs.h.  */
41234_ACEOF
41235cat confdefs.h >>conftest.$ac_ext
41236cat >>conftest.$ac_ext <<_ACEOF
41237/* end confdefs.h.  */
41238#ifdef HAVE_SYS_TYPES_H
41239#include <sys/types.h>
41240#endif
41241#ifdef HAVE_NETDB_H
41242#include <netdb.h>
41243#endif
41244extern struct { int foo; } h_errno;
41245int
41246main ()
41247{
41248h_errno.foo = 1;
41249  ;
41250  return 0;
41251}
41252_ACEOF
41253rm -f conftest.$ac_objext
41254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41255  (eval $ac_compile) 2>conftest.er1
41256  ac_status=$?
41257  grep -v '^ *+' conftest.er1 >conftest.err
41258  rm -f conftest.er1
41259  cat conftest.err >&5
41260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261  (exit $ac_status); } &&
41262	 { ac_try='test -z "$ac_c_werror_flag"
41263			 || test ! -s conftest.err'
41264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41265  (eval $ac_try) 2>&5
41266  ac_status=$?
41267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268  (exit $ac_status); }; } &&
41269	 { ac_try='test -s conftest.$ac_objext'
41270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41271  (eval $ac_try) 2>&5
41272  ac_status=$?
41273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274  (exit $ac_status); }; }; then
41275  eval "ac_cv_var_h_errno_declaration=no"
41276else
41277  echo "$as_me: failed program was:" >&5
41278sed 's/^/| /' conftest.$ac_ext >&5
41279
41280eval "ac_cv_var_h_errno_declaration=yes"
41281fi
41282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41283
41284fi
41285
41286
41287
41288
41289echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
41290echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
41291if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
41292
41293cat >>confdefs.h <<\_ACEOF
41294#define HAVE_H_ERRNO_DECLARATION 1
41295_ACEOF
41296
41297fi
41298
41299
41300fi
41301
41302
41303
41304echo "$as_me:$LINENO: checking for h_errlist" >&5
41305echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
41306if test "${ac_cv_var_h_errlist+set}" = set; then
41307  echo $ECHO_N "(cached) $ECHO_C" >&6
41308else
41309
41310
41311	cat >conftest.$ac_ext <<_ACEOF
41312/* confdefs.h.  */
41313_ACEOF
41314cat confdefs.h >>conftest.$ac_ext
41315cat >>conftest.$ac_ext <<_ACEOF
41316/* end confdefs.h.  */
41317#ifdef HAVE_NETDB_H
41318#include <netdb.h>
41319#endif
41320	void * foo() { return &h_errlist; }
41321int
41322main ()
41323{
41324foo()
41325  ;
41326  return 0;
41327}
41328_ACEOF
41329rm -f conftest.$ac_objext conftest$ac_exeext
41330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41331  (eval $ac_link) 2>conftest.er1
41332  ac_status=$?
41333  grep -v '^ *+' conftest.er1 >conftest.err
41334  rm -f conftest.er1
41335  cat conftest.err >&5
41336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41337  (exit $ac_status); } &&
41338	 { ac_try='test -z "$ac_c_werror_flag"
41339			 || test ! -s conftest.err'
41340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41341  (eval $ac_try) 2>&5
41342  ac_status=$?
41343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41344  (exit $ac_status); }; } &&
41345	 { ac_try='test -s conftest$ac_exeext'
41346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41347  (eval $ac_try) 2>&5
41348  ac_status=$?
41349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41350  (exit $ac_status); }; }; then
41351  ac_cv_var_h_errlist=yes
41352else
41353  echo "$as_me: failed program was:" >&5
41354sed 's/^/| /' conftest.$ac_ext >&5
41355
41356ac_cv_var_h_errlist=no
41357fi
41358rm -f conftest.err conftest.$ac_objext \
41359      conftest$ac_exeext conftest.$ac_ext
41360if test "$ac_cv_var_h_errlist" != yes ; then
41361cat >conftest.$ac_ext <<_ACEOF
41362/* confdefs.h.  */
41363_ACEOF
41364cat confdefs.h >>conftest.$ac_ext
41365cat >>conftest.$ac_ext <<_ACEOF
41366/* end confdefs.h.  */
41367extern int h_errlist;
41368int foo() { return h_errlist; }
41369int
41370main ()
41371{
41372foo()
41373  ;
41374  return 0;
41375}
41376_ACEOF
41377rm -f conftest.$ac_objext conftest$ac_exeext
41378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41379  (eval $ac_link) 2>conftest.er1
41380  ac_status=$?
41381  grep -v '^ *+' conftest.er1 >conftest.err
41382  rm -f conftest.er1
41383  cat conftest.err >&5
41384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41385  (exit $ac_status); } &&
41386	 { ac_try='test -z "$ac_c_werror_flag"
41387			 || test ! -s conftest.err'
41388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41389  (eval $ac_try) 2>&5
41390  ac_status=$?
41391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41392  (exit $ac_status); }; } &&
41393	 { ac_try='test -s conftest$ac_exeext'
41394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41395  (eval $ac_try) 2>&5
41396  ac_status=$?
41397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41398  (exit $ac_status); }; }; then
41399  ac_cv_var_h_errlist=yes
41400else
41401  echo "$as_me: failed program was:" >&5
41402sed 's/^/| /' conftest.$ac_ext >&5
41403
41404ac_cv_var_h_errlist=no
41405fi
41406rm -f conftest.err conftest.$ac_objext \
41407      conftest$ac_exeext conftest.$ac_ext
41408fi
41409
41410fi
41411
41412ac_foo=`eval echo \\$ac_cv_var_h_errlist`
41413echo "$as_me:$LINENO: result: $ac_foo" >&5
41414echo "${ECHO_T}$ac_foo" >&6
41415if test "$ac_foo" = yes; then
41416
41417cat >>confdefs.h <<_ACEOF
41418#define HAVE_H_ERRLIST 1
41419_ACEOF
41420
41421
41422echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
41423echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
41424if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
41425  echo $ECHO_N "(cached) $ECHO_C" >&6
41426else
41427
41428cat >conftest.$ac_ext <<_ACEOF
41429/* confdefs.h.  */
41430_ACEOF
41431cat confdefs.h >>conftest.$ac_ext
41432cat >>conftest.$ac_ext <<_ACEOF
41433/* end confdefs.h.  */
41434#ifdef HAVE_NETDB_H
41435#include <netdb.h>
41436#endif
41437extern struct { int foo; } h_errlist;
41438int
41439main ()
41440{
41441h_errlist.foo = 1;
41442  ;
41443  return 0;
41444}
41445_ACEOF
41446rm -f conftest.$ac_objext
41447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41448  (eval $ac_compile) 2>conftest.er1
41449  ac_status=$?
41450  grep -v '^ *+' conftest.er1 >conftest.err
41451  rm -f conftest.er1
41452  cat conftest.err >&5
41453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41454  (exit $ac_status); } &&
41455	 { ac_try='test -z "$ac_c_werror_flag"
41456			 || test ! -s conftest.err'
41457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41458  (eval $ac_try) 2>&5
41459  ac_status=$?
41460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41461  (exit $ac_status); }; } &&
41462	 { ac_try='test -s conftest.$ac_objext'
41463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41464  (eval $ac_try) 2>&5
41465  ac_status=$?
41466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41467  (exit $ac_status); }; }; then
41468  eval "ac_cv_var_h_errlist_declaration=no"
41469else
41470  echo "$as_me: failed program was:" >&5
41471sed 's/^/| /' conftest.$ac_ext >&5
41472
41473eval "ac_cv_var_h_errlist_declaration=yes"
41474fi
41475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41476
41477fi
41478
41479
41480
41481
41482echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
41483echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
41484if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
41485
41486cat >>confdefs.h <<\_ACEOF
41487#define HAVE_H_ERRLIST_DECLARATION 1
41488_ACEOF
41489
41490fi
41491
41492
41493fi
41494
41495
41496
41497echo "$as_me:$LINENO: checking for h_nerr" >&5
41498echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
41499if test "${ac_cv_var_h_nerr+set}" = set; then
41500  echo $ECHO_N "(cached) $ECHO_C" >&6
41501else
41502
41503
41504	cat >conftest.$ac_ext <<_ACEOF
41505/* confdefs.h.  */
41506_ACEOF
41507cat confdefs.h >>conftest.$ac_ext
41508cat >>conftest.$ac_ext <<_ACEOF
41509/* end confdefs.h.  */
41510#ifdef HAVE_NETDB_H
41511#include <netdb.h>
41512#endif
41513	void * foo() { return &h_nerr; }
41514int
41515main ()
41516{
41517foo()
41518  ;
41519  return 0;
41520}
41521_ACEOF
41522rm -f conftest.$ac_objext conftest$ac_exeext
41523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41524  (eval $ac_link) 2>conftest.er1
41525  ac_status=$?
41526  grep -v '^ *+' conftest.er1 >conftest.err
41527  rm -f conftest.er1
41528  cat conftest.err >&5
41529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41530  (exit $ac_status); } &&
41531	 { ac_try='test -z "$ac_c_werror_flag"
41532			 || test ! -s conftest.err'
41533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41534  (eval $ac_try) 2>&5
41535  ac_status=$?
41536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41537  (exit $ac_status); }; } &&
41538	 { ac_try='test -s conftest$ac_exeext'
41539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41540  (eval $ac_try) 2>&5
41541  ac_status=$?
41542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41543  (exit $ac_status); }; }; then
41544  ac_cv_var_h_nerr=yes
41545else
41546  echo "$as_me: failed program was:" >&5
41547sed 's/^/| /' conftest.$ac_ext >&5
41548
41549ac_cv_var_h_nerr=no
41550fi
41551rm -f conftest.err conftest.$ac_objext \
41552      conftest$ac_exeext conftest.$ac_ext
41553if test "$ac_cv_var_h_nerr" != yes ; then
41554cat >conftest.$ac_ext <<_ACEOF
41555/* confdefs.h.  */
41556_ACEOF
41557cat confdefs.h >>conftest.$ac_ext
41558cat >>conftest.$ac_ext <<_ACEOF
41559/* end confdefs.h.  */
41560extern int h_nerr;
41561int foo() { return h_nerr; }
41562int
41563main ()
41564{
41565foo()
41566  ;
41567  return 0;
41568}
41569_ACEOF
41570rm -f conftest.$ac_objext conftest$ac_exeext
41571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41572  (eval $ac_link) 2>conftest.er1
41573  ac_status=$?
41574  grep -v '^ *+' conftest.er1 >conftest.err
41575  rm -f conftest.er1
41576  cat conftest.err >&5
41577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41578  (exit $ac_status); } &&
41579	 { ac_try='test -z "$ac_c_werror_flag"
41580			 || test ! -s conftest.err'
41581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41582  (eval $ac_try) 2>&5
41583  ac_status=$?
41584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585  (exit $ac_status); }; } &&
41586	 { ac_try='test -s conftest$ac_exeext'
41587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41588  (eval $ac_try) 2>&5
41589  ac_status=$?
41590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41591  (exit $ac_status); }; }; then
41592  ac_cv_var_h_nerr=yes
41593else
41594  echo "$as_me: failed program was:" >&5
41595sed 's/^/| /' conftest.$ac_ext >&5
41596
41597ac_cv_var_h_nerr=no
41598fi
41599rm -f conftest.err conftest.$ac_objext \
41600      conftest$ac_exeext conftest.$ac_ext
41601fi
41602
41603fi
41604
41605ac_foo=`eval echo \\$ac_cv_var_h_nerr`
41606echo "$as_me:$LINENO: result: $ac_foo" >&5
41607echo "${ECHO_T}$ac_foo" >&6
41608if test "$ac_foo" = yes; then
41609
41610cat >>confdefs.h <<_ACEOF
41611#define HAVE_H_NERR 1
41612_ACEOF
41613
41614
41615echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
41616echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
41617if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
41618  echo $ECHO_N "(cached) $ECHO_C" >&6
41619else
41620
41621cat >conftest.$ac_ext <<_ACEOF
41622/* confdefs.h.  */
41623_ACEOF
41624cat confdefs.h >>conftest.$ac_ext
41625cat >>conftest.$ac_ext <<_ACEOF
41626/* end confdefs.h.  */
41627#ifdef HAVE_NETDB_H
41628#include <netdb.h>
41629#endif
41630extern struct { int foo; } h_nerr;
41631int
41632main ()
41633{
41634h_nerr.foo = 1;
41635  ;
41636  return 0;
41637}
41638_ACEOF
41639rm -f conftest.$ac_objext
41640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41641  (eval $ac_compile) 2>conftest.er1
41642  ac_status=$?
41643  grep -v '^ *+' conftest.er1 >conftest.err
41644  rm -f conftest.er1
41645  cat conftest.err >&5
41646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41647  (exit $ac_status); } &&
41648	 { ac_try='test -z "$ac_c_werror_flag"
41649			 || test ! -s conftest.err'
41650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41651  (eval $ac_try) 2>&5
41652  ac_status=$?
41653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41654  (exit $ac_status); }; } &&
41655	 { ac_try='test -s conftest.$ac_objext'
41656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41657  (eval $ac_try) 2>&5
41658  ac_status=$?
41659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41660  (exit $ac_status); }; }; then
41661  eval "ac_cv_var_h_nerr_declaration=no"
41662else
41663  echo "$as_me: failed program was:" >&5
41664sed 's/^/| /' conftest.$ac_ext >&5
41665
41666eval "ac_cv_var_h_nerr_declaration=yes"
41667fi
41668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41669
41670fi
41671
41672
41673
41674
41675echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
41676echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
41677if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
41678
41679cat >>confdefs.h <<\_ACEOF
41680#define HAVE_H_NERR_DECLARATION 1
41681_ACEOF
41682
41683fi
41684
41685
41686fi
41687
41688
41689
41690echo "$as_me:$LINENO: checking for __progname" >&5
41691echo $ECHO_N "checking for __progname... $ECHO_C" >&6
41692if test "${ac_cv_var___progname+set}" = set; then
41693  echo $ECHO_N "(cached) $ECHO_C" >&6
41694else
41695
41696
41697	cat >conftest.$ac_ext <<_ACEOF
41698/* confdefs.h.  */
41699_ACEOF
41700cat confdefs.h >>conftest.$ac_ext
41701cat >>conftest.$ac_ext <<_ACEOF
41702/* end confdefs.h.  */
41703#ifdef HAVE_ERR_H
41704#include <err.h>
41705#endif
41706	void * foo() { return &__progname; }
41707int
41708main ()
41709{
41710foo()
41711  ;
41712  return 0;
41713}
41714_ACEOF
41715rm -f conftest.$ac_objext conftest$ac_exeext
41716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41717  (eval $ac_link) 2>conftest.er1
41718  ac_status=$?
41719  grep -v '^ *+' conftest.er1 >conftest.err
41720  rm -f conftest.er1
41721  cat conftest.err >&5
41722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41723  (exit $ac_status); } &&
41724	 { ac_try='test -z "$ac_c_werror_flag"
41725			 || test ! -s conftest.err'
41726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41727  (eval $ac_try) 2>&5
41728  ac_status=$?
41729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41730  (exit $ac_status); }; } &&
41731	 { ac_try='test -s conftest$ac_exeext'
41732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41733  (eval $ac_try) 2>&5
41734  ac_status=$?
41735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41736  (exit $ac_status); }; }; then
41737  ac_cv_var___progname=yes
41738else
41739  echo "$as_me: failed program was:" >&5
41740sed 's/^/| /' conftest.$ac_ext >&5
41741
41742ac_cv_var___progname=no
41743fi
41744rm -f conftest.err conftest.$ac_objext \
41745      conftest$ac_exeext conftest.$ac_ext
41746if test "$ac_cv_var___progname" != yes ; then
41747cat >conftest.$ac_ext <<_ACEOF
41748/* confdefs.h.  */
41749_ACEOF
41750cat confdefs.h >>conftest.$ac_ext
41751cat >>conftest.$ac_ext <<_ACEOF
41752/* end confdefs.h.  */
41753extern int __progname;
41754int foo() { return __progname; }
41755int
41756main ()
41757{
41758foo()
41759  ;
41760  return 0;
41761}
41762_ACEOF
41763rm -f conftest.$ac_objext conftest$ac_exeext
41764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41765  (eval $ac_link) 2>conftest.er1
41766  ac_status=$?
41767  grep -v '^ *+' conftest.er1 >conftest.err
41768  rm -f conftest.er1
41769  cat conftest.err >&5
41770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41771  (exit $ac_status); } &&
41772	 { ac_try='test -z "$ac_c_werror_flag"
41773			 || test ! -s conftest.err'
41774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41775  (eval $ac_try) 2>&5
41776  ac_status=$?
41777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41778  (exit $ac_status); }; } &&
41779	 { ac_try='test -s conftest$ac_exeext'
41780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41781  (eval $ac_try) 2>&5
41782  ac_status=$?
41783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784  (exit $ac_status); }; }; then
41785  ac_cv_var___progname=yes
41786else
41787  echo "$as_me: failed program was:" >&5
41788sed 's/^/| /' conftest.$ac_ext >&5
41789
41790ac_cv_var___progname=no
41791fi
41792rm -f conftest.err conftest.$ac_objext \
41793      conftest$ac_exeext conftest.$ac_ext
41794fi
41795
41796fi
41797
41798ac_foo=`eval echo \\$ac_cv_var___progname`
41799echo "$as_me:$LINENO: result: $ac_foo" >&5
41800echo "${ECHO_T}$ac_foo" >&6
41801if test "$ac_foo" = yes; then
41802
41803cat >>confdefs.h <<_ACEOF
41804#define HAVE___PROGNAME 1
41805_ACEOF
41806
41807
41808echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
41809echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
41810if test "${ac_cv_var___progname_declaration+set}" = set; then
41811  echo $ECHO_N "(cached) $ECHO_C" >&6
41812else
41813
41814cat >conftest.$ac_ext <<_ACEOF
41815/* confdefs.h.  */
41816_ACEOF
41817cat confdefs.h >>conftest.$ac_ext
41818cat >>conftest.$ac_ext <<_ACEOF
41819/* end confdefs.h.  */
41820#ifdef HAVE_ERR_H
41821#include <err.h>
41822#endif
41823extern struct { int foo; } __progname;
41824int
41825main ()
41826{
41827__progname.foo = 1;
41828  ;
41829  return 0;
41830}
41831_ACEOF
41832rm -f conftest.$ac_objext
41833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41834  (eval $ac_compile) 2>conftest.er1
41835  ac_status=$?
41836  grep -v '^ *+' conftest.er1 >conftest.err
41837  rm -f conftest.er1
41838  cat conftest.err >&5
41839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840  (exit $ac_status); } &&
41841	 { ac_try='test -z "$ac_c_werror_flag"
41842			 || test ! -s conftest.err'
41843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41844  (eval $ac_try) 2>&5
41845  ac_status=$?
41846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847  (exit $ac_status); }; } &&
41848	 { ac_try='test -s conftest.$ac_objext'
41849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41850  (eval $ac_try) 2>&5
41851  ac_status=$?
41852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41853  (exit $ac_status); }; }; then
41854  eval "ac_cv_var___progname_declaration=no"
41855else
41856  echo "$as_me: failed program was:" >&5
41857sed 's/^/| /' conftest.$ac_ext >&5
41858
41859eval "ac_cv_var___progname_declaration=yes"
41860fi
41861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41862
41863fi
41864
41865
41866
41867
41868echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
41869echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
41870if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
41871
41872cat >>confdefs.h <<\_ACEOF
41873#define HAVE___PROGNAME_DECLARATION 1
41874_ACEOF
41875
41876fi
41877
41878
41879fi
41880
41881
41882
41883echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
41884echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
41885if test "${ac_cv_var_optarg_declaration+set}" = set; then
41886  echo $ECHO_N "(cached) $ECHO_C" >&6
41887else
41888
41889cat >conftest.$ac_ext <<_ACEOF
41890/* confdefs.h.  */
41891_ACEOF
41892cat confdefs.h >>conftest.$ac_ext
41893cat >>conftest.$ac_ext <<_ACEOF
41894/* end confdefs.h.  */
41895#include <stdlib.h>
41896#ifdef HAVE_UNISTD_H
41897#include <unistd.h>
41898#endif
41899extern struct { int foo; } optarg;
41900int
41901main ()
41902{
41903optarg.foo = 1;
41904  ;
41905  return 0;
41906}
41907_ACEOF
41908rm -f conftest.$ac_objext
41909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41910  (eval $ac_compile) 2>conftest.er1
41911  ac_status=$?
41912  grep -v '^ *+' conftest.er1 >conftest.err
41913  rm -f conftest.er1
41914  cat conftest.err >&5
41915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41916  (exit $ac_status); } &&
41917	 { ac_try='test -z "$ac_c_werror_flag"
41918			 || test ! -s conftest.err'
41919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41920  (eval $ac_try) 2>&5
41921  ac_status=$?
41922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41923  (exit $ac_status); }; } &&
41924	 { ac_try='test -s conftest.$ac_objext'
41925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41926  (eval $ac_try) 2>&5
41927  ac_status=$?
41928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41929  (exit $ac_status); }; }; then
41930  eval "ac_cv_var_optarg_declaration=no"
41931else
41932  echo "$as_me: failed program was:" >&5
41933sed 's/^/| /' conftest.$ac_ext >&5
41934
41935eval "ac_cv_var_optarg_declaration=yes"
41936fi
41937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41938
41939fi
41940
41941
41942
41943
41944echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
41945echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
41946if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
41947
41948cat >>confdefs.h <<\_ACEOF
41949#define HAVE_OPTARG_DECLARATION 1
41950_ACEOF
41951
41952fi
41953
41954
41955
41956echo "$as_me:$LINENO: checking if optind is properly declared" >&5
41957echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
41958if test "${ac_cv_var_optind_declaration+set}" = set; then
41959  echo $ECHO_N "(cached) $ECHO_C" >&6
41960else
41961
41962cat >conftest.$ac_ext <<_ACEOF
41963/* confdefs.h.  */
41964_ACEOF
41965cat confdefs.h >>conftest.$ac_ext
41966cat >>conftest.$ac_ext <<_ACEOF
41967/* end confdefs.h.  */
41968#include <stdlib.h>
41969#ifdef HAVE_UNISTD_H
41970#include <unistd.h>
41971#endif
41972extern struct { int foo; } optind;
41973int
41974main ()
41975{
41976optind.foo = 1;
41977  ;
41978  return 0;
41979}
41980_ACEOF
41981rm -f conftest.$ac_objext
41982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41983  (eval $ac_compile) 2>conftest.er1
41984  ac_status=$?
41985  grep -v '^ *+' conftest.er1 >conftest.err
41986  rm -f conftest.er1
41987  cat conftest.err >&5
41988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41989  (exit $ac_status); } &&
41990	 { ac_try='test -z "$ac_c_werror_flag"
41991			 || test ! -s conftest.err'
41992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41993  (eval $ac_try) 2>&5
41994  ac_status=$?
41995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41996  (exit $ac_status); }; } &&
41997	 { ac_try='test -s conftest.$ac_objext'
41998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41999  (eval $ac_try) 2>&5
42000  ac_status=$?
42001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42002  (exit $ac_status); }; }; then
42003  eval "ac_cv_var_optind_declaration=no"
42004else
42005  echo "$as_me: failed program was:" >&5
42006sed 's/^/| /' conftest.$ac_ext >&5
42007
42008eval "ac_cv_var_optind_declaration=yes"
42009fi
42010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42011
42012fi
42013
42014
42015
42016
42017echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
42018echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
42019if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
42020
42021cat >>confdefs.h <<\_ACEOF
42022#define HAVE_OPTIND_DECLARATION 1
42023_ACEOF
42024
42025fi
42026
42027
42028
42029echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
42030echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
42031if test "${ac_cv_var_opterr_declaration+set}" = set; then
42032  echo $ECHO_N "(cached) $ECHO_C" >&6
42033else
42034
42035cat >conftest.$ac_ext <<_ACEOF
42036/* confdefs.h.  */
42037_ACEOF
42038cat confdefs.h >>conftest.$ac_ext
42039cat >>conftest.$ac_ext <<_ACEOF
42040/* end confdefs.h.  */
42041#include <stdlib.h>
42042#ifdef HAVE_UNISTD_H
42043#include <unistd.h>
42044#endif
42045extern struct { int foo; } opterr;
42046int
42047main ()
42048{
42049opterr.foo = 1;
42050  ;
42051  return 0;
42052}
42053_ACEOF
42054rm -f conftest.$ac_objext
42055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42056  (eval $ac_compile) 2>conftest.er1
42057  ac_status=$?
42058  grep -v '^ *+' conftest.er1 >conftest.err
42059  rm -f conftest.er1
42060  cat conftest.err >&5
42061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42062  (exit $ac_status); } &&
42063	 { ac_try='test -z "$ac_c_werror_flag"
42064			 || test ! -s conftest.err'
42065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42066  (eval $ac_try) 2>&5
42067  ac_status=$?
42068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42069  (exit $ac_status); }; } &&
42070	 { ac_try='test -s conftest.$ac_objext'
42071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42072  (eval $ac_try) 2>&5
42073  ac_status=$?
42074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42075  (exit $ac_status); }; }; then
42076  eval "ac_cv_var_opterr_declaration=no"
42077else
42078  echo "$as_me: failed program was:" >&5
42079sed 's/^/| /' conftest.$ac_ext >&5
42080
42081eval "ac_cv_var_opterr_declaration=yes"
42082fi
42083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42084
42085fi
42086
42087
42088
42089
42090echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
42091echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
42092if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
42093
42094cat >>confdefs.h <<\_ACEOF
42095#define HAVE_OPTERR_DECLARATION 1
42096_ACEOF
42097
42098fi
42099
42100
42101
42102echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
42103echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
42104if test "${ac_cv_var_optopt_declaration+set}" = set; then
42105  echo $ECHO_N "(cached) $ECHO_C" >&6
42106else
42107
42108cat >conftest.$ac_ext <<_ACEOF
42109/* confdefs.h.  */
42110_ACEOF
42111cat confdefs.h >>conftest.$ac_ext
42112cat >>conftest.$ac_ext <<_ACEOF
42113/* end confdefs.h.  */
42114#include <stdlib.h>
42115#ifdef HAVE_UNISTD_H
42116#include <unistd.h>
42117#endif
42118extern struct { int foo; } optopt;
42119int
42120main ()
42121{
42122optopt.foo = 1;
42123  ;
42124  return 0;
42125}
42126_ACEOF
42127rm -f conftest.$ac_objext
42128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42129  (eval $ac_compile) 2>conftest.er1
42130  ac_status=$?
42131  grep -v '^ *+' conftest.er1 >conftest.err
42132  rm -f conftest.er1
42133  cat conftest.err >&5
42134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42135  (exit $ac_status); } &&
42136	 { ac_try='test -z "$ac_c_werror_flag"
42137			 || test ! -s conftest.err'
42138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42139  (eval $ac_try) 2>&5
42140  ac_status=$?
42141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42142  (exit $ac_status); }; } &&
42143	 { ac_try='test -s conftest.$ac_objext'
42144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42145  (eval $ac_try) 2>&5
42146  ac_status=$?
42147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42148  (exit $ac_status); }; }; then
42149  eval "ac_cv_var_optopt_declaration=no"
42150else
42151  echo "$as_me: failed program was:" >&5
42152sed 's/^/| /' conftest.$ac_ext >&5
42153
42154eval "ac_cv_var_optopt_declaration=yes"
42155fi
42156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42157
42158fi
42159
42160
42161
42162
42163echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
42164echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
42165if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
42166
42167cat >>confdefs.h <<\_ACEOF
42168#define HAVE_OPTOPT_DECLARATION 1
42169_ACEOF
42170
42171fi
42172
42173
42174
42175
42176echo "$as_me:$LINENO: checking if environ is properly declared" >&5
42177echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
42178if test "${ac_cv_var_environ_declaration+set}" = set; then
42179  echo $ECHO_N "(cached) $ECHO_C" >&6
42180else
42181
42182cat >conftest.$ac_ext <<_ACEOF
42183/* confdefs.h.  */
42184_ACEOF
42185cat confdefs.h >>conftest.$ac_ext
42186cat >>conftest.$ac_ext <<_ACEOF
42187/* end confdefs.h.  */
42188#include <stdlib.h>
42189extern struct { int foo; } environ;
42190int
42191main ()
42192{
42193environ.foo = 1;
42194  ;
42195  return 0;
42196}
42197_ACEOF
42198rm -f conftest.$ac_objext
42199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42200  (eval $ac_compile) 2>conftest.er1
42201  ac_status=$?
42202  grep -v '^ *+' conftest.er1 >conftest.err
42203  rm -f conftest.er1
42204  cat conftest.err >&5
42205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42206  (exit $ac_status); } &&
42207	 { ac_try='test -z "$ac_c_werror_flag"
42208			 || test ! -s conftest.err'
42209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42210  (eval $ac_try) 2>&5
42211  ac_status=$?
42212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42213  (exit $ac_status); }; } &&
42214	 { ac_try='test -s conftest.$ac_objext'
42215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42216  (eval $ac_try) 2>&5
42217  ac_status=$?
42218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42219  (exit $ac_status); }; }; then
42220  eval "ac_cv_var_environ_declaration=no"
42221else
42222  echo "$as_me: failed program was:" >&5
42223sed 's/^/| /' conftest.$ac_ext >&5
42224
42225eval "ac_cv_var_environ_declaration=yes"
42226fi
42227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42228
42229fi
42230
42231
42232
42233
42234echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
42235echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
42236if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
42237
42238cat >>confdefs.h <<\_ACEOF
42239#define HAVE_ENVIRON_DECLARATION 1
42240_ACEOF
42241
42242fi
42243
42244
42245
42246
42247
42248
42249echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42250echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42251if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
42252  echo $ECHO_N "(cached) $ECHO_C" >&6
42253else
42254
42255cat >conftest.$ac_ext <<_ACEOF
42256/* confdefs.h.  */
42257_ACEOF
42258cat confdefs.h >>conftest.$ac_ext
42259cat >>conftest.$ac_ext <<_ACEOF
42260/* end confdefs.h.  */
42261#include <time.h>
42262int
42263main ()
42264{
42265struct tm x; x.tm_gmtoff;
42266  ;
42267  return 0;
42268}
42269_ACEOF
42270rm -f conftest.$ac_objext
42271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42272  (eval $ac_compile) 2>conftest.er1
42273  ac_status=$?
42274  grep -v '^ *+' conftest.er1 >conftest.err
42275  rm -f conftest.er1
42276  cat conftest.err >&5
42277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42278  (exit $ac_status); } &&
42279	 { ac_try='test -z "$ac_c_werror_flag"
42280			 || test ! -s conftest.err'
42281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42282  (eval $ac_try) 2>&5
42283  ac_status=$?
42284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285  (exit $ac_status); }; } &&
42286	 { ac_try='test -s conftest.$ac_objext'
42287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42288  (eval $ac_try) 2>&5
42289  ac_status=$?
42290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42291  (exit $ac_status); }; }; then
42292  ac_cv_type_struct_tm_tm_gmtoff=yes
42293else
42294  echo "$as_me: failed program was:" >&5
42295sed 's/^/| /' conftest.$ac_ext >&5
42296
42297ac_cv_type_struct_tm_tm_gmtoff=no
42298fi
42299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42300fi
42301echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
42302echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
42303if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
42304
42305
42306cat >>confdefs.h <<\_ACEOF
42307#define HAVE_STRUCT_TM_TM_GMTOFF 1
42308_ACEOF
42309
42310
42311fi
42312
42313
42314
42315
42316echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
42317echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
42318if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
42319  echo $ECHO_N "(cached) $ECHO_C" >&6
42320else
42321
42322cat >conftest.$ac_ext <<_ACEOF
42323/* confdefs.h.  */
42324_ACEOF
42325cat confdefs.h >>conftest.$ac_ext
42326cat >>conftest.$ac_ext <<_ACEOF
42327/* end confdefs.h.  */
42328#include <time.h>
42329int
42330main ()
42331{
42332struct tm x; x.tm_zone;
42333  ;
42334  return 0;
42335}
42336_ACEOF
42337rm -f conftest.$ac_objext
42338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42339  (eval $ac_compile) 2>conftest.er1
42340  ac_status=$?
42341  grep -v '^ *+' conftest.er1 >conftest.err
42342  rm -f conftest.er1
42343  cat conftest.err >&5
42344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42345  (exit $ac_status); } &&
42346	 { ac_try='test -z "$ac_c_werror_flag"
42347			 || test ! -s conftest.err'
42348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42349  (eval $ac_try) 2>&5
42350  ac_status=$?
42351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42352  (exit $ac_status); }; } &&
42353	 { ac_try='test -s conftest.$ac_objext'
42354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42355  (eval $ac_try) 2>&5
42356  ac_status=$?
42357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42358  (exit $ac_status); }; }; then
42359  ac_cv_type_struct_tm_tm_zone=yes
42360else
42361  echo "$as_me: failed program was:" >&5
42362sed 's/^/| /' conftest.$ac_ext >&5
42363
42364ac_cv_type_struct_tm_tm_zone=no
42365fi
42366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42367fi
42368echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
42369echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
42370if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
42371
42372
42373cat >>confdefs.h <<\_ACEOF
42374#define HAVE_STRUCT_TM_TM_ZONE 1
42375_ACEOF
42376
42377
42378fi
42379
42380
42381
42382
42383
42384echo "$as_me:$LINENO: checking for timezone" >&5
42385echo $ECHO_N "checking for timezone... $ECHO_C" >&6
42386if test "${ac_cv_var_timezone+set}" = set; then
42387  echo $ECHO_N "(cached) $ECHO_C" >&6
42388else
42389
42390
42391	cat >conftest.$ac_ext <<_ACEOF
42392/* confdefs.h.  */
42393_ACEOF
42394cat confdefs.h >>conftest.$ac_ext
42395cat >>conftest.$ac_ext <<_ACEOF
42396/* end confdefs.h.  */
42397#include <time.h>
42398	void * foo() { return &timezone; }
42399int
42400main ()
42401{
42402foo()
42403  ;
42404  return 0;
42405}
42406_ACEOF
42407rm -f conftest.$ac_objext conftest$ac_exeext
42408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42409  (eval $ac_link) 2>conftest.er1
42410  ac_status=$?
42411  grep -v '^ *+' conftest.er1 >conftest.err
42412  rm -f conftest.er1
42413  cat conftest.err >&5
42414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42415  (exit $ac_status); } &&
42416	 { ac_try='test -z "$ac_c_werror_flag"
42417			 || test ! -s conftest.err'
42418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42419  (eval $ac_try) 2>&5
42420  ac_status=$?
42421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42422  (exit $ac_status); }; } &&
42423	 { ac_try='test -s conftest$ac_exeext'
42424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42425  (eval $ac_try) 2>&5
42426  ac_status=$?
42427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42428  (exit $ac_status); }; }; then
42429  ac_cv_var_timezone=yes
42430else
42431  echo "$as_me: failed program was:" >&5
42432sed 's/^/| /' conftest.$ac_ext >&5
42433
42434ac_cv_var_timezone=no
42435fi
42436rm -f conftest.err conftest.$ac_objext \
42437      conftest$ac_exeext conftest.$ac_ext
42438if test "$ac_cv_var_timezone" != yes ; then
42439cat >conftest.$ac_ext <<_ACEOF
42440/* confdefs.h.  */
42441_ACEOF
42442cat confdefs.h >>conftest.$ac_ext
42443cat >>conftest.$ac_ext <<_ACEOF
42444/* end confdefs.h.  */
42445extern int timezone;
42446int foo() { return timezone; }
42447int
42448main ()
42449{
42450foo()
42451  ;
42452  return 0;
42453}
42454_ACEOF
42455rm -f conftest.$ac_objext conftest$ac_exeext
42456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42457  (eval $ac_link) 2>conftest.er1
42458  ac_status=$?
42459  grep -v '^ *+' conftest.er1 >conftest.err
42460  rm -f conftest.er1
42461  cat conftest.err >&5
42462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42463  (exit $ac_status); } &&
42464	 { ac_try='test -z "$ac_c_werror_flag"
42465			 || test ! -s conftest.err'
42466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42467  (eval $ac_try) 2>&5
42468  ac_status=$?
42469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42470  (exit $ac_status); }; } &&
42471	 { ac_try='test -s conftest$ac_exeext'
42472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42473  (eval $ac_try) 2>&5
42474  ac_status=$?
42475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42476  (exit $ac_status); }; }; then
42477  ac_cv_var_timezone=yes
42478else
42479  echo "$as_me: failed program was:" >&5
42480sed 's/^/| /' conftest.$ac_ext >&5
42481
42482ac_cv_var_timezone=no
42483fi
42484rm -f conftest.err conftest.$ac_objext \
42485      conftest$ac_exeext conftest.$ac_ext
42486fi
42487
42488fi
42489
42490ac_foo=`eval echo \\$ac_cv_var_timezone`
42491echo "$as_me:$LINENO: result: $ac_foo" >&5
42492echo "${ECHO_T}$ac_foo" >&6
42493if test "$ac_foo" = yes; then
42494
42495cat >>confdefs.h <<_ACEOF
42496#define HAVE_TIMEZONE 1
42497_ACEOF
42498
42499
42500echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
42501echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
42502if test "${ac_cv_var_timezone_declaration+set}" = set; then
42503  echo $ECHO_N "(cached) $ECHO_C" >&6
42504else
42505
42506cat >conftest.$ac_ext <<_ACEOF
42507/* confdefs.h.  */
42508_ACEOF
42509cat confdefs.h >>conftest.$ac_ext
42510cat >>conftest.$ac_ext <<_ACEOF
42511/* end confdefs.h.  */
42512#include <time.h>
42513extern struct { int foo; } timezone;
42514int
42515main ()
42516{
42517timezone.foo = 1;
42518  ;
42519  return 0;
42520}
42521_ACEOF
42522rm -f conftest.$ac_objext
42523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42524  (eval $ac_compile) 2>conftest.er1
42525  ac_status=$?
42526  grep -v '^ *+' conftest.er1 >conftest.err
42527  rm -f conftest.er1
42528  cat conftest.err >&5
42529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42530  (exit $ac_status); } &&
42531	 { ac_try='test -z "$ac_c_werror_flag"
42532			 || test ! -s conftest.err'
42533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42534  (eval $ac_try) 2>&5
42535  ac_status=$?
42536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42537  (exit $ac_status); }; } &&
42538	 { ac_try='test -s conftest.$ac_objext'
42539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42540  (eval $ac_try) 2>&5
42541  ac_status=$?
42542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42543  (exit $ac_status); }; }; then
42544  eval "ac_cv_var_timezone_declaration=no"
42545else
42546  echo "$as_me: failed program was:" >&5
42547sed 's/^/| /' conftest.$ac_ext >&5
42548
42549eval "ac_cv_var_timezone_declaration=yes"
42550fi
42551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42552
42553fi
42554
42555
42556
42557
42558echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
42559echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
42560if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
42561
42562cat >>confdefs.h <<\_ACEOF
42563#define HAVE_TIMEZONE_DECLARATION 1
42564_ACEOF
42565
42566fi
42567
42568
42569fi
42570
42571
42572echo "$as_me:$LINENO: checking for altzone" >&5
42573echo $ECHO_N "checking for altzone... $ECHO_C" >&6
42574if test "${ac_cv_var_altzone+set}" = set; then
42575  echo $ECHO_N "(cached) $ECHO_C" >&6
42576else
42577
42578
42579	cat >conftest.$ac_ext <<_ACEOF
42580/* confdefs.h.  */
42581_ACEOF
42582cat confdefs.h >>conftest.$ac_ext
42583cat >>conftest.$ac_ext <<_ACEOF
42584/* end confdefs.h.  */
42585#include <time.h>
42586	void * foo() { return &altzone; }
42587int
42588main ()
42589{
42590foo()
42591  ;
42592  return 0;
42593}
42594_ACEOF
42595rm -f conftest.$ac_objext conftest$ac_exeext
42596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42597  (eval $ac_link) 2>conftest.er1
42598  ac_status=$?
42599  grep -v '^ *+' conftest.er1 >conftest.err
42600  rm -f conftest.er1
42601  cat conftest.err >&5
42602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42603  (exit $ac_status); } &&
42604	 { ac_try='test -z "$ac_c_werror_flag"
42605			 || test ! -s conftest.err'
42606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42607  (eval $ac_try) 2>&5
42608  ac_status=$?
42609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42610  (exit $ac_status); }; } &&
42611	 { ac_try='test -s conftest$ac_exeext'
42612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42613  (eval $ac_try) 2>&5
42614  ac_status=$?
42615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42616  (exit $ac_status); }; }; then
42617  ac_cv_var_altzone=yes
42618else
42619  echo "$as_me: failed program was:" >&5
42620sed 's/^/| /' conftest.$ac_ext >&5
42621
42622ac_cv_var_altzone=no
42623fi
42624rm -f conftest.err conftest.$ac_objext \
42625      conftest$ac_exeext conftest.$ac_ext
42626if test "$ac_cv_var_altzone" != yes ; then
42627cat >conftest.$ac_ext <<_ACEOF
42628/* confdefs.h.  */
42629_ACEOF
42630cat confdefs.h >>conftest.$ac_ext
42631cat >>conftest.$ac_ext <<_ACEOF
42632/* end confdefs.h.  */
42633extern int altzone;
42634int foo() { return altzone; }
42635int
42636main ()
42637{
42638foo()
42639  ;
42640  return 0;
42641}
42642_ACEOF
42643rm -f conftest.$ac_objext conftest$ac_exeext
42644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42645  (eval $ac_link) 2>conftest.er1
42646  ac_status=$?
42647  grep -v '^ *+' conftest.er1 >conftest.err
42648  rm -f conftest.er1
42649  cat conftest.err >&5
42650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42651  (exit $ac_status); } &&
42652	 { ac_try='test -z "$ac_c_werror_flag"
42653			 || test ! -s conftest.err'
42654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42655  (eval $ac_try) 2>&5
42656  ac_status=$?
42657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42658  (exit $ac_status); }; } &&
42659	 { ac_try='test -s conftest$ac_exeext'
42660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42661  (eval $ac_try) 2>&5
42662  ac_status=$?
42663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42664  (exit $ac_status); }; }; then
42665  ac_cv_var_altzone=yes
42666else
42667  echo "$as_me: failed program was:" >&5
42668sed 's/^/| /' conftest.$ac_ext >&5
42669
42670ac_cv_var_altzone=no
42671fi
42672rm -f conftest.err conftest.$ac_objext \
42673      conftest$ac_exeext conftest.$ac_ext
42674fi
42675
42676fi
42677
42678ac_foo=`eval echo \\$ac_cv_var_altzone`
42679echo "$as_me:$LINENO: result: $ac_foo" >&5
42680echo "${ECHO_T}$ac_foo" >&6
42681if test "$ac_foo" = yes; then
42682
42683cat >>confdefs.h <<_ACEOF
42684#define HAVE_ALTZONE 1
42685_ACEOF
42686
42687
42688echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
42689echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
42690if test "${ac_cv_var_altzone_declaration+set}" = set; then
42691  echo $ECHO_N "(cached) $ECHO_C" >&6
42692else
42693
42694cat >conftest.$ac_ext <<_ACEOF
42695/* confdefs.h.  */
42696_ACEOF
42697cat confdefs.h >>conftest.$ac_ext
42698cat >>conftest.$ac_ext <<_ACEOF
42699/* end confdefs.h.  */
42700#include <time.h>
42701extern struct { int foo; } altzone;
42702int
42703main ()
42704{
42705altzone.foo = 1;
42706  ;
42707  return 0;
42708}
42709_ACEOF
42710rm -f conftest.$ac_objext
42711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42712  (eval $ac_compile) 2>conftest.er1
42713  ac_status=$?
42714  grep -v '^ *+' conftest.er1 >conftest.err
42715  rm -f conftest.er1
42716  cat conftest.err >&5
42717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718  (exit $ac_status); } &&
42719	 { ac_try='test -z "$ac_c_werror_flag"
42720			 || test ! -s conftest.err'
42721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42722  (eval $ac_try) 2>&5
42723  ac_status=$?
42724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42725  (exit $ac_status); }; } &&
42726	 { ac_try='test -s conftest.$ac_objext'
42727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42728  (eval $ac_try) 2>&5
42729  ac_status=$?
42730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42731  (exit $ac_status); }; }; then
42732  eval "ac_cv_var_altzone_declaration=no"
42733else
42734  echo "$as_me: failed program was:" >&5
42735sed 's/^/| /' conftest.$ac_ext >&5
42736
42737eval "ac_cv_var_altzone_declaration=yes"
42738fi
42739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42740
42741fi
42742
42743
42744
42745
42746echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
42747echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
42748if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then
42749
42750cat >>confdefs.h <<\_ACEOF
42751#define HAVE_ALTZONE_DECLARATION 1
42752_ACEOF
42753
42754fi
42755
42756
42757fi
42758
42759
42760
42761
42762cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
42763echo "$as_me:$LINENO: checking for sa_family_t" >&5
42764echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
42765if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
42766  echo $ECHO_N "(cached) $ECHO_C" >&6
42767else
42768  cat >conftest.$ac_ext <<_ACEOF
42769/* confdefs.h.  */
42770_ACEOF
42771cat confdefs.h >>conftest.$ac_ext
42772cat >>conftest.$ac_ext <<_ACEOF
42773/* end confdefs.h.  */
42774#include <sys/types.h>
42775#if STDC_HEADERS
42776#include <stdlib.h>
42777#include <stddef.h>
42778#endif
42779#include <sys/socket.h>
42780int
42781main ()
42782{
42783sa_family_t foo;
42784  ;
42785  return 0;
42786}
42787_ACEOF
42788rm -f conftest.$ac_objext
42789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42790  (eval $ac_compile) 2>conftest.er1
42791  ac_status=$?
42792  grep -v '^ *+' conftest.er1 >conftest.err
42793  rm -f conftest.er1
42794  cat conftest.err >&5
42795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42796  (exit $ac_status); } &&
42797	 { ac_try='test -z "$ac_c_werror_flag"
42798			 || test ! -s conftest.err'
42799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42800  (eval $ac_try) 2>&5
42801  ac_status=$?
42802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803  (exit $ac_status); }; } &&
42804	 { ac_try='test -s conftest.$ac_objext'
42805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42806  (eval $ac_try) 2>&5
42807  ac_status=$?
42808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42809  (exit $ac_status); }; }; then
42810  eval "ac_cv_type_$cv=yes"
42811else
42812  echo "$as_me: failed program was:" >&5
42813sed 's/^/| /' conftest.$ac_ext >&5
42814
42815eval "ac_cv_type_$cv=no"
42816fi
42817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42818fi
42819ac_foo=`eval echo \\$ac_cv_type_$cv`
42820echo "$as_me:$LINENO: result: $ac_foo" >&5
42821echo "${ECHO_T}$ac_foo" >&6
42822if test "$ac_foo" = yes; then
42823  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42824if false; then
42825	echo "$as_me:$LINENO: checking for sa_family_t" >&5
42826echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
42827if test "${ac_cv_type_sa_family_t+set}" = set; then
42828  echo $ECHO_N "(cached) $ECHO_C" >&6
42829else
42830  cat >conftest.$ac_ext <<_ACEOF
42831/* confdefs.h.  */
42832_ACEOF
42833cat confdefs.h >>conftest.$ac_ext
42834cat >>conftest.$ac_ext <<_ACEOF
42835/* end confdefs.h.  */
42836$ac_includes_default
42837int
42838main ()
42839{
42840if ((sa_family_t *) 0)
42841  return 0;
42842if (sizeof (sa_family_t))
42843  return 0;
42844  ;
42845  return 0;
42846}
42847_ACEOF
42848rm -f conftest.$ac_objext
42849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42850  (eval $ac_compile) 2>conftest.er1
42851  ac_status=$?
42852  grep -v '^ *+' conftest.er1 >conftest.err
42853  rm -f conftest.er1
42854  cat conftest.err >&5
42855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42856  (exit $ac_status); } &&
42857	 { ac_try='test -z "$ac_c_werror_flag"
42858			 || test ! -s conftest.err'
42859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42860  (eval $ac_try) 2>&5
42861  ac_status=$?
42862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42863  (exit $ac_status); }; } &&
42864	 { ac_try='test -s conftest.$ac_objext'
42865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42866  (eval $ac_try) 2>&5
42867  ac_status=$?
42868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869  (exit $ac_status); }; }; then
42870  ac_cv_type_sa_family_t=yes
42871else
42872  echo "$as_me: failed program was:" >&5
42873sed 's/^/| /' conftest.$ac_ext >&5
42874
42875ac_cv_type_sa_family_t=no
42876fi
42877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42878fi
42879echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
42880echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
42881if test $ac_cv_type_sa_family_t = yes; then
42882
42883cat >>confdefs.h <<_ACEOF
42884#define HAVE_SA_FAMILY_T 1
42885_ACEOF
42886
42887
42888fi
42889
42890fi
42891
42892cat >>confdefs.h <<_ACEOF
42893#define $ac_tr_hdr 1
42894_ACEOF
42895
42896fi
42897
42898
42899
42900cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
42901echo "$as_me:$LINENO: checking for socklen_t" >&5
42902echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
42903if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
42904  echo $ECHO_N "(cached) $ECHO_C" >&6
42905else
42906  cat >conftest.$ac_ext <<_ACEOF
42907/* confdefs.h.  */
42908_ACEOF
42909cat confdefs.h >>conftest.$ac_ext
42910cat >>conftest.$ac_ext <<_ACEOF
42911/* end confdefs.h.  */
42912#include <sys/types.h>
42913#if STDC_HEADERS
42914#include <stdlib.h>
42915#include <stddef.h>
42916#endif
42917#include <sys/socket.h>
42918int
42919main ()
42920{
42921socklen_t foo;
42922  ;
42923  return 0;
42924}
42925_ACEOF
42926rm -f conftest.$ac_objext
42927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42928  (eval $ac_compile) 2>conftest.er1
42929  ac_status=$?
42930  grep -v '^ *+' conftest.er1 >conftest.err
42931  rm -f conftest.er1
42932  cat conftest.err >&5
42933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42934  (exit $ac_status); } &&
42935	 { ac_try='test -z "$ac_c_werror_flag"
42936			 || test ! -s conftest.err'
42937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42938  (eval $ac_try) 2>&5
42939  ac_status=$?
42940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941  (exit $ac_status); }; } &&
42942	 { ac_try='test -s conftest.$ac_objext'
42943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42944  (eval $ac_try) 2>&5
42945  ac_status=$?
42946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42947  (exit $ac_status); }; }; then
42948  eval "ac_cv_type_$cv=yes"
42949else
42950  echo "$as_me: failed program was:" >&5
42951sed 's/^/| /' conftest.$ac_ext >&5
42952
42953eval "ac_cv_type_$cv=no"
42954fi
42955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42956fi
42957ac_foo=`eval echo \\$ac_cv_type_$cv`
42958echo "$as_me:$LINENO: result: $ac_foo" >&5
42959echo "${ECHO_T}$ac_foo" >&6
42960if test "$ac_foo" = yes; then
42961  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42962if false; then
42963	echo "$as_me:$LINENO: checking for socklen_t" >&5
42964echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
42965if test "${ac_cv_type_socklen_t+set}" = set; then
42966  echo $ECHO_N "(cached) $ECHO_C" >&6
42967else
42968  cat >conftest.$ac_ext <<_ACEOF
42969/* confdefs.h.  */
42970_ACEOF
42971cat confdefs.h >>conftest.$ac_ext
42972cat >>conftest.$ac_ext <<_ACEOF
42973/* end confdefs.h.  */
42974$ac_includes_default
42975int
42976main ()
42977{
42978if ((socklen_t *) 0)
42979  return 0;
42980if (sizeof (socklen_t))
42981  return 0;
42982  ;
42983  return 0;
42984}
42985_ACEOF
42986rm -f conftest.$ac_objext
42987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42988  (eval $ac_compile) 2>conftest.er1
42989  ac_status=$?
42990  grep -v '^ *+' conftest.er1 >conftest.err
42991  rm -f conftest.er1
42992  cat conftest.err >&5
42993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42994  (exit $ac_status); } &&
42995	 { ac_try='test -z "$ac_c_werror_flag"
42996			 || test ! -s conftest.err'
42997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42998  (eval $ac_try) 2>&5
42999  ac_status=$?
43000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43001  (exit $ac_status); }; } &&
43002	 { ac_try='test -s conftest.$ac_objext'
43003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43004  (eval $ac_try) 2>&5
43005  ac_status=$?
43006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007  (exit $ac_status); }; }; then
43008  ac_cv_type_socklen_t=yes
43009else
43010  echo "$as_me: failed program was:" >&5
43011sed 's/^/| /' conftest.$ac_ext >&5
43012
43013ac_cv_type_socklen_t=no
43014fi
43015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43016fi
43017echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
43018echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
43019if test $ac_cv_type_socklen_t = yes; then
43020
43021cat >>confdefs.h <<_ACEOF
43022#define HAVE_SOCKLEN_T 1
43023_ACEOF
43024
43025
43026fi
43027
43028fi
43029
43030cat >>confdefs.h <<_ACEOF
43031#define $ac_tr_hdr 1
43032_ACEOF
43033
43034fi
43035
43036
43037
43038cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
43039echo "$as_me:$LINENO: checking for struct sockaddr" >&5
43040echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
43041if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43042  echo $ECHO_N "(cached) $ECHO_C" >&6
43043else
43044  cat >conftest.$ac_ext <<_ACEOF
43045/* confdefs.h.  */
43046_ACEOF
43047cat confdefs.h >>conftest.$ac_ext
43048cat >>conftest.$ac_ext <<_ACEOF
43049/* end confdefs.h.  */
43050#include <sys/types.h>
43051#if STDC_HEADERS
43052#include <stdlib.h>
43053#include <stddef.h>
43054#endif
43055#include <sys/socket.h>
43056int
43057main ()
43058{
43059struct sockaddr foo;
43060  ;
43061  return 0;
43062}
43063_ACEOF
43064rm -f conftest.$ac_objext
43065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43066  (eval $ac_compile) 2>conftest.er1
43067  ac_status=$?
43068  grep -v '^ *+' conftest.er1 >conftest.err
43069  rm -f conftest.er1
43070  cat conftest.err >&5
43071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43072  (exit $ac_status); } &&
43073	 { ac_try='test -z "$ac_c_werror_flag"
43074			 || test ! -s conftest.err'
43075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43076  (eval $ac_try) 2>&5
43077  ac_status=$?
43078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43079  (exit $ac_status); }; } &&
43080	 { ac_try='test -s conftest.$ac_objext'
43081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43082  (eval $ac_try) 2>&5
43083  ac_status=$?
43084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43085  (exit $ac_status); }; }; then
43086  eval "ac_cv_type_$cv=yes"
43087else
43088  echo "$as_me: failed program was:" >&5
43089sed 's/^/| /' conftest.$ac_ext >&5
43090
43091eval "ac_cv_type_$cv=no"
43092fi
43093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43094fi
43095ac_foo=`eval echo \\$ac_cv_type_$cv`
43096echo "$as_me:$LINENO: result: $ac_foo" >&5
43097echo "${ECHO_T}$ac_foo" >&6
43098if test "$ac_foo" = yes; then
43099  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43100if false; then
43101	echo "$as_me:$LINENO: checking for struct sockaddr" >&5
43102echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
43103if test "${ac_cv_type_struct_sockaddr+set}" = set; then
43104  echo $ECHO_N "(cached) $ECHO_C" >&6
43105else
43106  cat >conftest.$ac_ext <<_ACEOF
43107/* confdefs.h.  */
43108_ACEOF
43109cat confdefs.h >>conftest.$ac_ext
43110cat >>conftest.$ac_ext <<_ACEOF
43111/* end confdefs.h.  */
43112$ac_includes_default
43113int
43114main ()
43115{
43116if ((struct sockaddr *) 0)
43117  return 0;
43118if (sizeof (struct sockaddr))
43119  return 0;
43120  ;
43121  return 0;
43122}
43123_ACEOF
43124rm -f conftest.$ac_objext
43125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43126  (eval $ac_compile) 2>conftest.er1
43127  ac_status=$?
43128  grep -v '^ *+' conftest.er1 >conftest.err
43129  rm -f conftest.er1
43130  cat conftest.err >&5
43131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43132  (exit $ac_status); } &&
43133	 { ac_try='test -z "$ac_c_werror_flag"
43134			 || test ! -s conftest.err'
43135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43136  (eval $ac_try) 2>&5
43137  ac_status=$?
43138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43139  (exit $ac_status); }; } &&
43140	 { ac_try='test -s conftest.$ac_objext'
43141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43142  (eval $ac_try) 2>&5
43143  ac_status=$?
43144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43145  (exit $ac_status); }; }; then
43146  ac_cv_type_struct_sockaddr=yes
43147else
43148  echo "$as_me: failed program was:" >&5
43149sed 's/^/| /' conftest.$ac_ext >&5
43150
43151ac_cv_type_struct_sockaddr=no
43152fi
43153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43154fi
43155echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
43156echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
43157if test $ac_cv_type_struct_sockaddr = yes; then
43158
43159cat >>confdefs.h <<_ACEOF
43160#define HAVE_STRUCT_SOCKADDR 1
43161_ACEOF
43162
43163
43164fi
43165
43166fi
43167
43168cat >>confdefs.h <<_ACEOF
43169#define $ac_tr_hdr 1
43170_ACEOF
43171
43172fi
43173
43174
43175
43176cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
43177echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
43178echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
43179if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43180  echo $ECHO_N "(cached) $ECHO_C" >&6
43181else
43182  cat >conftest.$ac_ext <<_ACEOF
43183/* confdefs.h.  */
43184_ACEOF
43185cat confdefs.h >>conftest.$ac_ext
43186cat >>conftest.$ac_ext <<_ACEOF
43187/* end confdefs.h.  */
43188#include <sys/types.h>
43189#if STDC_HEADERS
43190#include <stdlib.h>
43191#include <stddef.h>
43192#endif
43193#include <sys/socket.h>
43194int
43195main ()
43196{
43197struct sockaddr_storage foo;
43198  ;
43199  return 0;
43200}
43201_ACEOF
43202rm -f conftest.$ac_objext
43203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43204  (eval $ac_compile) 2>conftest.er1
43205  ac_status=$?
43206  grep -v '^ *+' conftest.er1 >conftest.err
43207  rm -f conftest.er1
43208  cat conftest.err >&5
43209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43210  (exit $ac_status); } &&
43211	 { ac_try='test -z "$ac_c_werror_flag"
43212			 || test ! -s conftest.err'
43213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43214  (eval $ac_try) 2>&5
43215  ac_status=$?
43216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43217  (exit $ac_status); }; } &&
43218	 { ac_try='test -s conftest.$ac_objext'
43219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43220  (eval $ac_try) 2>&5
43221  ac_status=$?
43222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43223  (exit $ac_status); }; }; then
43224  eval "ac_cv_type_$cv=yes"
43225else
43226  echo "$as_me: failed program was:" >&5
43227sed 's/^/| /' conftest.$ac_ext >&5
43228
43229eval "ac_cv_type_$cv=no"
43230fi
43231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43232fi
43233ac_foo=`eval echo \\$ac_cv_type_$cv`
43234echo "$as_me:$LINENO: result: $ac_foo" >&5
43235echo "${ECHO_T}$ac_foo" >&6
43236if test "$ac_foo" = yes; then
43237  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43238if false; then
43239	echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
43240echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
43241if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
43242  echo $ECHO_N "(cached) $ECHO_C" >&6
43243else
43244  cat >conftest.$ac_ext <<_ACEOF
43245/* confdefs.h.  */
43246_ACEOF
43247cat confdefs.h >>conftest.$ac_ext
43248cat >>conftest.$ac_ext <<_ACEOF
43249/* end confdefs.h.  */
43250$ac_includes_default
43251int
43252main ()
43253{
43254if ((struct sockaddr_storage *) 0)
43255  return 0;
43256if (sizeof (struct sockaddr_storage))
43257  return 0;
43258  ;
43259  return 0;
43260}
43261_ACEOF
43262rm -f conftest.$ac_objext
43263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43264  (eval $ac_compile) 2>conftest.er1
43265  ac_status=$?
43266  grep -v '^ *+' conftest.er1 >conftest.err
43267  rm -f conftest.er1
43268  cat conftest.err >&5
43269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43270  (exit $ac_status); } &&
43271	 { ac_try='test -z "$ac_c_werror_flag"
43272			 || test ! -s conftest.err'
43273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43274  (eval $ac_try) 2>&5
43275  ac_status=$?
43276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43277  (exit $ac_status); }; } &&
43278	 { ac_try='test -s conftest.$ac_objext'
43279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43280  (eval $ac_try) 2>&5
43281  ac_status=$?
43282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43283  (exit $ac_status); }; }; then
43284  ac_cv_type_struct_sockaddr_storage=yes
43285else
43286  echo "$as_me: failed program was:" >&5
43287sed 's/^/| /' conftest.$ac_ext >&5
43288
43289ac_cv_type_struct_sockaddr_storage=no
43290fi
43291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43292fi
43293echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
43294echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
43295if test $ac_cv_type_struct_sockaddr_storage = yes; then
43296
43297cat >>confdefs.h <<_ACEOF
43298#define HAVE_STRUCT_SOCKADDR_STORAGE 1
43299_ACEOF
43300
43301
43302fi
43303
43304fi
43305
43306cat >>confdefs.h <<_ACEOF
43307#define $ac_tr_hdr 1
43308_ACEOF
43309
43310fi
43311
43312
43313
43314cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
43315echo "$as_me:$LINENO: checking for struct addrinfo" >&5
43316echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
43317if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43318  echo $ECHO_N "(cached) $ECHO_C" >&6
43319else
43320  cat >conftest.$ac_ext <<_ACEOF
43321/* confdefs.h.  */
43322_ACEOF
43323cat confdefs.h >>conftest.$ac_ext
43324cat >>conftest.$ac_ext <<_ACEOF
43325/* end confdefs.h.  */
43326#include <sys/types.h>
43327#if STDC_HEADERS
43328#include <stdlib.h>
43329#include <stddef.h>
43330#endif
43331#include <netdb.h>
43332int
43333main ()
43334{
43335struct addrinfo foo;
43336  ;
43337  return 0;
43338}
43339_ACEOF
43340rm -f conftest.$ac_objext
43341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43342  (eval $ac_compile) 2>conftest.er1
43343  ac_status=$?
43344  grep -v '^ *+' conftest.er1 >conftest.err
43345  rm -f conftest.er1
43346  cat conftest.err >&5
43347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43348  (exit $ac_status); } &&
43349	 { ac_try='test -z "$ac_c_werror_flag"
43350			 || test ! -s conftest.err'
43351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43352  (eval $ac_try) 2>&5
43353  ac_status=$?
43354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43355  (exit $ac_status); }; } &&
43356	 { ac_try='test -s conftest.$ac_objext'
43357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43358  (eval $ac_try) 2>&5
43359  ac_status=$?
43360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43361  (exit $ac_status); }; }; then
43362  eval "ac_cv_type_$cv=yes"
43363else
43364  echo "$as_me: failed program was:" >&5
43365sed 's/^/| /' conftest.$ac_ext >&5
43366
43367eval "ac_cv_type_$cv=no"
43368fi
43369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43370fi
43371ac_foo=`eval echo \\$ac_cv_type_$cv`
43372echo "$as_me:$LINENO: result: $ac_foo" >&5
43373echo "${ECHO_T}$ac_foo" >&6
43374if test "$ac_foo" = yes; then
43375  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43376if false; then
43377	echo "$as_me:$LINENO: checking for struct addrinfo" >&5
43378echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
43379if test "${ac_cv_type_struct_addrinfo+set}" = set; then
43380  echo $ECHO_N "(cached) $ECHO_C" >&6
43381else
43382  cat >conftest.$ac_ext <<_ACEOF
43383/* confdefs.h.  */
43384_ACEOF
43385cat confdefs.h >>conftest.$ac_ext
43386cat >>conftest.$ac_ext <<_ACEOF
43387/* end confdefs.h.  */
43388$ac_includes_default
43389int
43390main ()
43391{
43392if ((struct addrinfo *) 0)
43393  return 0;
43394if (sizeof (struct addrinfo))
43395  return 0;
43396  ;
43397  return 0;
43398}
43399_ACEOF
43400rm -f conftest.$ac_objext
43401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43402  (eval $ac_compile) 2>conftest.er1
43403  ac_status=$?
43404  grep -v '^ *+' conftest.er1 >conftest.err
43405  rm -f conftest.er1
43406  cat conftest.err >&5
43407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43408  (exit $ac_status); } &&
43409	 { ac_try='test -z "$ac_c_werror_flag"
43410			 || test ! -s conftest.err'
43411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43412  (eval $ac_try) 2>&5
43413  ac_status=$?
43414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43415  (exit $ac_status); }; } &&
43416	 { ac_try='test -s conftest.$ac_objext'
43417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43418  (eval $ac_try) 2>&5
43419  ac_status=$?
43420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43421  (exit $ac_status); }; }; then
43422  ac_cv_type_struct_addrinfo=yes
43423else
43424  echo "$as_me: failed program was:" >&5
43425sed 's/^/| /' conftest.$ac_ext >&5
43426
43427ac_cv_type_struct_addrinfo=no
43428fi
43429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43430fi
43431echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
43432echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
43433if test $ac_cv_type_struct_addrinfo = yes; then
43434
43435cat >>confdefs.h <<_ACEOF
43436#define HAVE_STRUCT_ADDRINFO 1
43437_ACEOF
43438
43439
43440fi
43441
43442fi
43443
43444cat >>confdefs.h <<_ACEOF
43445#define $ac_tr_hdr 1
43446_ACEOF
43447
43448fi
43449
43450
43451
43452cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
43453echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
43454echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
43455if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43456  echo $ECHO_N "(cached) $ECHO_C" >&6
43457else
43458  cat >conftest.$ac_ext <<_ACEOF
43459/* confdefs.h.  */
43460_ACEOF
43461cat confdefs.h >>conftest.$ac_ext
43462cat >>conftest.$ac_ext <<_ACEOF
43463/* end confdefs.h.  */
43464#include <sys/types.h>
43465#if STDC_HEADERS
43466#include <stdlib.h>
43467#include <stddef.h>
43468#endif
43469#include <ifaddrs.h>
43470int
43471main ()
43472{
43473struct ifaddrs foo;
43474  ;
43475  return 0;
43476}
43477_ACEOF
43478rm -f conftest.$ac_objext
43479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43480  (eval $ac_compile) 2>conftest.er1
43481  ac_status=$?
43482  grep -v '^ *+' conftest.er1 >conftest.err
43483  rm -f conftest.er1
43484  cat conftest.err >&5
43485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43486  (exit $ac_status); } &&
43487	 { ac_try='test -z "$ac_c_werror_flag"
43488			 || test ! -s conftest.err'
43489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43490  (eval $ac_try) 2>&5
43491  ac_status=$?
43492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493  (exit $ac_status); }; } &&
43494	 { ac_try='test -s conftest.$ac_objext'
43495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43496  (eval $ac_try) 2>&5
43497  ac_status=$?
43498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43499  (exit $ac_status); }; }; then
43500  eval "ac_cv_type_$cv=yes"
43501else
43502  echo "$as_me: failed program was:" >&5
43503sed 's/^/| /' conftest.$ac_ext >&5
43504
43505eval "ac_cv_type_$cv=no"
43506fi
43507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43508fi
43509ac_foo=`eval echo \\$ac_cv_type_$cv`
43510echo "$as_me:$LINENO: result: $ac_foo" >&5
43511echo "${ECHO_T}$ac_foo" >&6
43512if test "$ac_foo" = yes; then
43513  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43514if false; then
43515	echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
43516echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
43517if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
43518  echo $ECHO_N "(cached) $ECHO_C" >&6
43519else
43520  cat >conftest.$ac_ext <<_ACEOF
43521/* confdefs.h.  */
43522_ACEOF
43523cat confdefs.h >>conftest.$ac_ext
43524cat >>conftest.$ac_ext <<_ACEOF
43525/* end confdefs.h.  */
43526$ac_includes_default
43527int
43528main ()
43529{
43530if ((struct ifaddrs *) 0)
43531  return 0;
43532if (sizeof (struct ifaddrs))
43533  return 0;
43534  ;
43535  return 0;
43536}
43537_ACEOF
43538rm -f conftest.$ac_objext
43539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43540  (eval $ac_compile) 2>conftest.er1
43541  ac_status=$?
43542  grep -v '^ *+' conftest.er1 >conftest.err
43543  rm -f conftest.er1
43544  cat conftest.err >&5
43545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43546  (exit $ac_status); } &&
43547	 { ac_try='test -z "$ac_c_werror_flag"
43548			 || test ! -s conftest.err'
43549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43550  (eval $ac_try) 2>&5
43551  ac_status=$?
43552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553  (exit $ac_status); }; } &&
43554	 { ac_try='test -s conftest.$ac_objext'
43555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43556  (eval $ac_try) 2>&5
43557  ac_status=$?
43558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43559  (exit $ac_status); }; }; then
43560  ac_cv_type_struct_ifaddrs=yes
43561else
43562  echo "$as_me: failed program was:" >&5
43563sed 's/^/| /' conftest.$ac_ext >&5
43564
43565ac_cv_type_struct_ifaddrs=no
43566fi
43567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43568fi
43569echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
43570echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
43571if test $ac_cv_type_struct_ifaddrs = yes; then
43572
43573cat >>confdefs.h <<_ACEOF
43574#define HAVE_STRUCT_IFADDRS 1
43575_ACEOF
43576
43577
43578fi
43579
43580fi
43581
43582cat >>confdefs.h <<_ACEOF
43583#define $ac_tr_hdr 1
43584_ACEOF
43585
43586fi
43587
43588
43589
43590cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
43591echo "$as_me:$LINENO: checking for struct iovec" >&5
43592echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
43593if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43594  echo $ECHO_N "(cached) $ECHO_C" >&6
43595else
43596  cat >conftest.$ac_ext <<_ACEOF
43597/* confdefs.h.  */
43598_ACEOF
43599cat confdefs.h >>conftest.$ac_ext
43600cat >>conftest.$ac_ext <<_ACEOF
43601/* end confdefs.h.  */
43602#include <sys/types.h>
43603#if STDC_HEADERS
43604#include <stdlib.h>
43605#include <stddef.h>
43606#endif
43607
43608#include <sys/types.h>
43609#include <sys/uio.h>
43610
43611int
43612main ()
43613{
43614struct iovec foo;
43615  ;
43616  return 0;
43617}
43618_ACEOF
43619rm -f conftest.$ac_objext
43620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43621  (eval $ac_compile) 2>conftest.er1
43622  ac_status=$?
43623  grep -v '^ *+' conftest.er1 >conftest.err
43624  rm -f conftest.er1
43625  cat conftest.err >&5
43626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43627  (exit $ac_status); } &&
43628	 { ac_try='test -z "$ac_c_werror_flag"
43629			 || test ! -s conftest.err'
43630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43631  (eval $ac_try) 2>&5
43632  ac_status=$?
43633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43634  (exit $ac_status); }; } &&
43635	 { ac_try='test -s conftest.$ac_objext'
43636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43637  (eval $ac_try) 2>&5
43638  ac_status=$?
43639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43640  (exit $ac_status); }; }; then
43641  eval "ac_cv_type_$cv=yes"
43642else
43643  echo "$as_me: failed program was:" >&5
43644sed 's/^/| /' conftest.$ac_ext >&5
43645
43646eval "ac_cv_type_$cv=no"
43647fi
43648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43649fi
43650ac_foo=`eval echo \\$ac_cv_type_$cv`
43651echo "$as_me:$LINENO: result: $ac_foo" >&5
43652echo "${ECHO_T}$ac_foo" >&6
43653if test "$ac_foo" = yes; then
43654  ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43655if false; then
43656	echo "$as_me:$LINENO: checking for struct iovec" >&5
43657echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
43658if test "${ac_cv_type_struct_iovec+set}" = set; then
43659  echo $ECHO_N "(cached) $ECHO_C" >&6
43660else
43661  cat >conftest.$ac_ext <<_ACEOF
43662/* confdefs.h.  */
43663_ACEOF
43664cat confdefs.h >>conftest.$ac_ext
43665cat >>conftest.$ac_ext <<_ACEOF
43666/* end confdefs.h.  */
43667$ac_includes_default
43668int
43669main ()
43670{
43671if ((struct iovec *) 0)
43672  return 0;
43673if (sizeof (struct iovec))
43674  return 0;
43675  ;
43676  return 0;
43677}
43678_ACEOF
43679rm -f conftest.$ac_objext
43680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43681  (eval $ac_compile) 2>conftest.er1
43682  ac_status=$?
43683  grep -v '^ *+' conftest.er1 >conftest.err
43684  rm -f conftest.er1
43685  cat conftest.err >&5
43686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687  (exit $ac_status); } &&
43688	 { ac_try='test -z "$ac_c_werror_flag"
43689			 || test ! -s conftest.err'
43690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43691  (eval $ac_try) 2>&5
43692  ac_status=$?
43693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43694  (exit $ac_status); }; } &&
43695	 { ac_try='test -s conftest.$ac_objext'
43696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43697  (eval $ac_try) 2>&5
43698  ac_status=$?
43699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43700  (exit $ac_status); }; }; then
43701  ac_cv_type_struct_iovec=yes
43702else
43703  echo "$as_me: failed program was:" >&5
43704sed 's/^/| /' conftest.$ac_ext >&5
43705
43706ac_cv_type_struct_iovec=no
43707fi
43708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43709fi
43710echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
43711echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
43712if test $ac_cv_type_struct_iovec = yes; then
43713
43714cat >>confdefs.h <<_ACEOF
43715#define HAVE_STRUCT_IOVEC 1
43716_ACEOF
43717
43718
43719fi
43720
43721fi
43722
43723cat >>confdefs.h <<_ACEOF
43724#define $ac_tr_hdr 1
43725_ACEOF
43726
43727fi
43728
43729
43730
43731cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
43732echo "$as_me:$LINENO: checking for struct msghdr" >&5
43733echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
43734if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43735  echo $ECHO_N "(cached) $ECHO_C" >&6
43736else
43737  cat >conftest.$ac_ext <<_ACEOF
43738/* confdefs.h.  */
43739_ACEOF
43740cat confdefs.h >>conftest.$ac_ext
43741cat >>conftest.$ac_ext <<_ACEOF
43742/* end confdefs.h.  */
43743#include <sys/types.h>
43744#if STDC_HEADERS
43745#include <stdlib.h>
43746#include <stddef.h>
43747#endif
43748
43749#include <sys/types.h>
43750#include <sys/socket.h>
43751
43752int
43753main ()
43754{
43755struct msghdr foo;
43756  ;
43757  return 0;
43758}
43759_ACEOF
43760rm -f conftest.$ac_objext
43761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43762  (eval $ac_compile) 2>conftest.er1
43763  ac_status=$?
43764  grep -v '^ *+' conftest.er1 >conftest.err
43765  rm -f conftest.er1
43766  cat conftest.err >&5
43767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43768  (exit $ac_status); } &&
43769	 { ac_try='test -z "$ac_c_werror_flag"
43770			 || test ! -s conftest.err'
43771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43772  (eval $ac_try) 2>&5
43773  ac_status=$?
43774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43775  (exit $ac_status); }; } &&
43776	 { ac_try='test -s conftest.$ac_objext'
43777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43778  (eval $ac_try) 2>&5
43779  ac_status=$?
43780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43781  (exit $ac_status); }; }; then
43782  eval "ac_cv_type_$cv=yes"
43783else
43784  echo "$as_me: failed program was:" >&5
43785sed 's/^/| /' conftest.$ac_ext >&5
43786
43787eval "ac_cv_type_$cv=no"
43788fi
43789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43790fi
43791ac_foo=`eval echo \\$ac_cv_type_$cv`
43792echo "$as_me:$LINENO: result: $ac_foo" >&5
43793echo "${ECHO_T}$ac_foo" >&6
43794if test "$ac_foo" = yes; then
43795  ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43796if false; then
43797	echo "$as_me:$LINENO: checking for struct msghdr" >&5
43798echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
43799if test "${ac_cv_type_struct_msghdr+set}" = set; then
43800  echo $ECHO_N "(cached) $ECHO_C" >&6
43801else
43802  cat >conftest.$ac_ext <<_ACEOF
43803/* confdefs.h.  */
43804_ACEOF
43805cat confdefs.h >>conftest.$ac_ext
43806cat >>conftest.$ac_ext <<_ACEOF
43807/* end confdefs.h.  */
43808$ac_includes_default
43809int
43810main ()
43811{
43812if ((struct msghdr *) 0)
43813  return 0;
43814if (sizeof (struct msghdr))
43815  return 0;
43816  ;
43817  return 0;
43818}
43819_ACEOF
43820rm -f conftest.$ac_objext
43821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43822  (eval $ac_compile) 2>conftest.er1
43823  ac_status=$?
43824  grep -v '^ *+' conftest.er1 >conftest.err
43825  rm -f conftest.er1
43826  cat conftest.err >&5
43827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828  (exit $ac_status); } &&
43829	 { ac_try='test -z "$ac_c_werror_flag"
43830			 || test ! -s conftest.err'
43831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43832  (eval $ac_try) 2>&5
43833  ac_status=$?
43834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43835  (exit $ac_status); }; } &&
43836	 { ac_try='test -s conftest.$ac_objext'
43837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43838  (eval $ac_try) 2>&5
43839  ac_status=$?
43840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43841  (exit $ac_status); }; }; then
43842  ac_cv_type_struct_msghdr=yes
43843else
43844  echo "$as_me: failed program was:" >&5
43845sed 's/^/| /' conftest.$ac_ext >&5
43846
43847ac_cv_type_struct_msghdr=no
43848fi
43849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43850fi
43851echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
43852echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
43853if test $ac_cv_type_struct_msghdr = yes; then
43854
43855cat >>confdefs.h <<_ACEOF
43856#define HAVE_STRUCT_MSGHDR 1
43857_ACEOF
43858
43859
43860fi
43861
43862fi
43863
43864cat >>confdefs.h <<_ACEOF
43865#define $ac_tr_hdr 1
43866_ACEOF
43867
43868fi
43869
43870
43871
43872
43873echo "$as_me:$LINENO: checking for struct winsize" >&5
43874echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
43875if test "${ac_cv_struct_winsize+set}" = set; then
43876  echo $ECHO_N "(cached) $ECHO_C" >&6
43877else
43878
43879ac_cv_struct_winsize=no
43880for i in sys/termios.h sys/ioctl.h; do
43881cat >conftest.$ac_ext <<_ACEOF
43882/* confdefs.h.  */
43883_ACEOF
43884cat confdefs.h >>conftest.$ac_ext
43885cat >>conftest.$ac_ext <<_ACEOF
43886/* end confdefs.h.  */
43887#include <$i>
43888
43889_ACEOF
43890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43891  $EGREP "struct[ 	]*winsize" >/dev/null 2>&1; then
43892  ac_cv_struct_winsize=yes; break
43893fi
43894rm -f conftest*
43895done
43896
43897fi
43898
43899if test "$ac_cv_struct_winsize" = "yes"; then
43900
43901cat >>confdefs.h <<\_ACEOF
43902#define HAVE_STRUCT_WINSIZE 1
43903_ACEOF
43904
43905fi
43906echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
43907echo "${ECHO_T}$ac_cv_struct_winsize" >&6
43908cat >conftest.$ac_ext <<_ACEOF
43909/* confdefs.h.  */
43910_ACEOF
43911cat confdefs.h >>conftest.$ac_ext
43912cat >>conftest.$ac_ext <<_ACEOF
43913/* end confdefs.h.  */
43914#include <termios.h>
43915
43916_ACEOF
43917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43918  $EGREP "ws_xpixel" >/dev/null 2>&1; then
43919
43920cat >>confdefs.h <<\_ACEOF
43921#define HAVE_WS_XPIXEL 1
43922_ACEOF
43923
43924fi
43925rm -f conftest*
43926
43927cat >conftest.$ac_ext <<_ACEOF
43928/* confdefs.h.  */
43929_ACEOF
43930cat confdefs.h >>conftest.$ac_ext
43931cat >>conftest.$ac_ext <<_ACEOF
43932/* end confdefs.h.  */
43933#include <termios.h>
43934
43935_ACEOF
43936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43937  $EGREP "ws_ypixel" >/dev/null 2>&1; then
43938
43939cat >>confdefs.h <<\_ACEOF
43940#define HAVE_WS_YPIXEL 1
43941_ACEOF
43942
43943fi
43944rm -f conftest*
43945
43946
43947
43948
43949
43950echo "$as_me:$LINENO: checking for struct spwd" >&5
43951echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
43952if test "${ac_cv_struct_spwd+set}" = set; then
43953  echo $ECHO_N "(cached) $ECHO_C" >&6
43954else
43955
43956cat >conftest.$ac_ext <<_ACEOF
43957/* confdefs.h.  */
43958_ACEOF
43959cat confdefs.h >>conftest.$ac_ext
43960cat >>conftest.$ac_ext <<_ACEOF
43961/* end confdefs.h.  */
43962#include <pwd.h>
43963#ifdef HAVE_SHADOW_H
43964#include <shadow.h>
43965#endif
43966int
43967main ()
43968{
43969struct spwd foo;
43970  ;
43971  return 0;
43972}
43973_ACEOF
43974rm -f conftest.$ac_objext
43975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43976  (eval $ac_compile) 2>conftest.er1
43977  ac_status=$?
43978  grep -v '^ *+' conftest.er1 >conftest.err
43979  rm -f conftest.er1
43980  cat conftest.err >&5
43981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43982  (exit $ac_status); } &&
43983	 { ac_try='test -z "$ac_c_werror_flag"
43984			 || test ! -s conftest.err'
43985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43986  (eval $ac_try) 2>&5
43987  ac_status=$?
43988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43989  (exit $ac_status); }; } &&
43990	 { ac_try='test -s conftest.$ac_objext'
43991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43992  (eval $ac_try) 2>&5
43993  ac_status=$?
43994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995  (exit $ac_status); }; }; then
43996  ac_cv_struct_spwd=yes
43997else
43998  echo "$as_me: failed program was:" >&5
43999sed 's/^/| /' conftest.$ac_ext >&5
44000
44001ac_cv_struct_spwd=no
44002fi
44003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44004
44005fi
44006
44007echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
44008echo "${ECHO_T}$ac_cv_struct_spwd" >&6
44009
44010if test "$ac_cv_struct_spwd" = "yes"; then
44011
44012cat >>confdefs.h <<\_ACEOF
44013#define HAVE_STRUCT_SPWD 1
44014_ACEOF
44015
44016fi
44017
44018
44019
44020LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
44021
44022
44023LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
44024
44025
44026# Check whether --enable-otp or --disable-otp was given.
44027if test "${enable_otp+set}" = set; then
44028  enableval="$enable_otp"
44029
44030fi;
44031if test "$enable_otp" = yes -a "$db_type" = unknown; then
44032	{ { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
44033echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
44034   { (exit 1); exit 1; }; }
44035fi
44036if test "$enable_otp" != no; then
44037	if test "$db_type" != unknown; then
44038		enable_otp=yes
44039	else
44040		enable_otp=no
44041	fi
44042fi
44043if test "$enable_otp" = yes; then
44044
44045cat >>confdefs.h <<\_ACEOF
44046#define OTP 1
44047_ACEOF
44048
44049	LIB_otp='$(top_builddir)/lib/otp/libotp.la'
44050
44051fi
44052echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
44053echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6
44054echo "$as_me:$LINENO: result: $enable_otp" >&5
44055echo "${ECHO_T}$enable_otp" >&6
44056
44057
44058if test "$enable_otp" = yes; then
44059  OTP_TRUE=
44060  OTP_FALSE='#'
44061else
44062  OTP_TRUE='#'
44063  OTP_FALSE=
44064fi
44065
44066
44067
44068# Check whether --enable-osfc2 or --disable-osfc2 was given.
44069if test "${enable_osfc2+set}" = set; then
44070  enableval="$enable_osfc2"
44071
44072fi;
44073LIB_security=
44074if test "$enable_osfc2" = yes; then
44075
44076cat >>confdefs.h <<\_ACEOF
44077#define HAVE_OSFC2 1
44078_ACEOF
44079
44080	LIB_security=-lsecurity
44081fi
44082
44083
44084
44085# Check whether --enable-mmap or --disable-mmap was given.
44086if test "${enable_mmap+set}" = set; then
44087  enableval="$enable_mmap"
44088
44089fi;
44090if test "$enable_mmap" = "no"; then
44091
44092cat >>confdefs.h <<\_ACEOF
44093#define NO_MMAP 1
44094_ACEOF
44095
44096fi
44097
44098# Extract the first word of "nroff", so it can be a program name with args.
44099set dummy nroff; ac_word=$2
44100echo "$as_me:$LINENO: checking for $ac_word" >&5
44101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44102if test "${ac_cv_path_NROFF+set}" = set; then
44103  echo $ECHO_N "(cached) $ECHO_C" >&6
44104else
44105  case $NROFF in
44106  [\\/]* | ?:[\\/]*)
44107  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
44108  ;;
44109  *)
44110  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44111for as_dir in $PATH
44112do
44113  IFS=$as_save_IFS
44114  test -z "$as_dir" && as_dir=.
44115  for ac_exec_ext in '' $ac_executable_extensions; do
44116  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44117    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
44118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44119    break 2
44120  fi
44121done
44122done
44123
44124  ;;
44125esac
44126fi
44127NROFF=$ac_cv_path_NROFF
44128
44129if test -n "$NROFF"; then
44130  echo "$as_me:$LINENO: result: $NROFF" >&5
44131echo "${ECHO_T}$NROFF" >&6
44132else
44133  echo "$as_me:$LINENO: result: no" >&5
44134echo "${ECHO_T}no" >&6
44135fi
44136
44137# Extract the first word of "groff", so it can be a program name with args.
44138set dummy groff; ac_word=$2
44139echo "$as_me:$LINENO: checking for $ac_word" >&5
44140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44141if test "${ac_cv_path_GROFF+set}" = set; then
44142  echo $ECHO_N "(cached) $ECHO_C" >&6
44143else
44144  case $GROFF in
44145  [\\/]* | ?:[\\/]*)
44146  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
44147  ;;
44148  *)
44149  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44150for as_dir in $PATH
44151do
44152  IFS=$as_save_IFS
44153  test -z "$as_dir" && as_dir=.
44154  for ac_exec_ext in '' $ac_executable_extensions; do
44155  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44156    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
44157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44158    break 2
44159  fi
44160done
44161done
44162
44163  ;;
44164esac
44165fi
44166GROFF=$ac_cv_path_GROFF
44167
44168if test -n "$GROFF"; then
44169  echo "$as_me:$LINENO: result: $GROFF" >&5
44170echo "${ECHO_T}$GROFF" >&6
44171else
44172  echo "$as_me:$LINENO: result: no" >&5
44173echo "${ECHO_T}no" >&6
44174fi
44175
44176echo "$as_me:$LINENO: checking how to format man pages" >&5
44177echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
44178if test "${ac_cv_sys_man_format+set}" = set; then
44179  echo $ECHO_N "(cached) $ECHO_C" >&6
44180else
44181  cat > conftest.1 << END
44182.Dd January 1, 1970
44183.Dt CONFTEST 1
44184.Sh NAME
44185.Nm conftest
44186.Nd
44187foobar
44188END
44189
44190if test "$NROFF" ; then
44191	for i in "-mdoc" "-mandoc"; do
44192		if "$NROFF" $i conftest.1 2> /dev/null | \
44193			grep Jan > /dev/null 2>&1 ; then
44194			ac_cv_sys_man_format="$NROFF $i"
44195			break
44196		fi
44197	done
44198fi
44199if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
44200	for i in "-mdoc" "-mandoc"; do
44201		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
44202			grep Jan > /dev/null 2>&1 ; then
44203			ac_cv_sys_man_format="$GROFF -Tascii $i"
44204			break
44205		fi
44206	done
44207fi
44208if test "$ac_cv_sys_man_format"; then
44209	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
44210fi
44211
44212fi
44213echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
44214echo "${ECHO_T}$ac_cv_sys_man_format" >&6
44215if test "$ac_cv_sys_man_format"; then
44216	CATMAN="$ac_cv_sys_man_format"
44217
44218fi
44219
44220
44221if test "$CATMAN"; then
44222  CATMAN_TRUE=
44223  CATMAN_FALSE='#'
44224else
44225  CATMAN_TRUE='#'
44226  CATMAN_FALSE=
44227fi
44228
44229echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
44230echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
44231if test "${ac_cv_sys_catman_ext+set}" = set; then
44232  echo $ECHO_N "(cached) $ECHO_C" >&6
44233else
44234  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
44235	ac_cv_sys_catman_ext=0
44236else
44237	ac_cv_sys_catman_ext=number
44238fi
44239
44240fi
44241echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
44242echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
44243if test "$ac_cv_sys_catman_ext" = number; then
44244	CATMANEXT='$$section'
44245else
44246	CATMANEXT=0
44247fi
44248
44249
44250
44251
44252
44253# Check whether --with-readline or --without-readline was given.
44254if test "${with_readline+set}" = set; then
44255  withval="$with_readline"
44256
44257fi;
44258
44259# Check whether --with-readline-lib or --without-readline-lib was given.
44260if test "${with_readline_lib+set}" = set; then
44261  withval="$with_readline_lib"
44262  if test "$withval" = "yes" -o "$withval" = "no"; then
44263  { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
44264echo "$as_me: error: No argument for --with-readline-lib" >&2;}
44265   { (exit 1); exit 1; }; }
44266elif test "X$with_readline" = "X"; then
44267  with_readline=yes
44268fi
44269fi;
44270
44271# Check whether --with-readline-include or --without-readline-include was given.
44272if test "${with_readline_include+set}" = set; then
44273  withval="$with_readline_include"
44274  if test "$withval" = "yes" -o "$withval" = "no"; then
44275  { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
44276echo "$as_me: error: No argument for --with-readline-include" >&2;}
44277   { (exit 1); exit 1; }; }
44278elif test "X$with_readline" = "X"; then
44279  with_readline=yes
44280fi
44281fi;
44282
44283# Check whether --with-readline-config or --without-readline-config was given.
44284if test "${with_readline_config+set}" = set; then
44285  withval="$with_readline_config"
44286
44287fi;
44288
44289
44290
44291echo "$as_me:$LINENO: checking for readline" >&5
44292echo $ECHO_N "checking for readline... $ECHO_C" >&6
44293
44294case "$with_readline" in
44295yes|"") d='' ;;
44296no)	d= ;;
44297*)	d="$with_readline" ;;
44298esac
44299
44300header_dirs=
44301lib_dirs=
44302for i in $d; do
44303	if test "$with_readline_include" = ""; then
44304		if test -d "$i/include/readline"; then
44305			header_dirs="$header_dirs $i/include/readline"
44306		fi
44307		if test -d "$i/include"; then
44308			header_dirs="$header_dirs $i/include"
44309		fi
44310	fi
44311	if test "$with_readline_lib" = ""; then
44312		if test -d "$i/lib$abilibdirext"; then
44313			lib_dirs="$lib_dirs $i/lib$abilibdirext"
44314		fi
44315	fi
44316done
44317
44318if test "$with_readline_include"; then
44319	header_dirs="$with_readline_include $header_dirs"
44320fi
44321if test "$with_readline_lib"; then
44322	lib_dirs="$with_readline_lib $lib_dirs"
44323fi
44324
44325if test "$with_readline_config" = ""; then
44326	with_readline_config=''
44327fi
44328
44329readline_cflags=
44330readline_libs=
44331
44332case "$with_readline_config" in
44333yes|no|"")
44334	;;
44335*)
44336	readline_cflags="`$with_readline_config --cflags 2>&1`"
44337	readline_libs="`$with_readline_config --libs 2>&1`"
44338	;;
44339esac
44340
44341found=no
44342if test "$with_readline" != no; then
44343	save_CFLAGS="$CFLAGS"
44344	save_LIBS="$LIBS"
44345	if test "$readline_cflags" -a "$readline_libs"; then
44346		CFLAGS="$readline_cflags $save_CFLAGS"
44347		LIBS="$readline_libs $save_LIBS"
44348		cat >conftest.$ac_ext <<_ACEOF
44349/* confdefs.h.  */
44350_ACEOF
44351cat confdefs.h >>conftest.$ac_ext
44352cat >>conftest.$ac_ext <<_ACEOF
44353/* end confdefs.h.  */
44354#include <stdio.h>
44355 #include <readline.h>
44356int
44357main ()
44358{
44359
44360  ;
44361  return 0;
44362}
44363_ACEOF
44364rm -f conftest.$ac_objext conftest$ac_exeext
44365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44366  (eval $ac_link) 2>conftest.er1
44367  ac_status=$?
44368  grep -v '^ *+' conftest.er1 >conftest.err
44369  rm -f conftest.er1
44370  cat conftest.err >&5
44371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44372  (exit $ac_status); } &&
44373	 { ac_try='test -z "$ac_c_werror_flag"
44374			 || test ! -s conftest.err'
44375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44376  (eval $ac_try) 2>&5
44377  ac_status=$?
44378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44379  (exit $ac_status); }; } &&
44380	 { ac_try='test -s conftest$ac_exeext'
44381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44382  (eval $ac_try) 2>&5
44383  ac_status=$?
44384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44385  (exit $ac_status); }; }; then
44386
44387			INCLUDE_readline="$readline_cflags"
44388			LIB_readline="$readline_libs"
44389			echo "$as_me:$LINENO: result: from $with_readline_config" >&5
44390echo "${ECHO_T}from $with_readline_config" >&6
44391			found=yes
44392else
44393  echo "$as_me: failed program was:" >&5
44394sed 's/^/| /' conftest.$ac_ext >&5
44395
44396fi
44397rm -f conftest.err conftest.$ac_objext \
44398      conftest$ac_exeext conftest.$ac_ext
44399	fi
44400	if test "$found" = no; then
44401		ires= lres=
44402		for i in $header_dirs; do
44403			CFLAGS="-I$i $save_CFLAGS"
44404			cat >conftest.$ac_ext <<_ACEOF
44405/* confdefs.h.  */
44406_ACEOF
44407cat confdefs.h >>conftest.$ac_ext
44408cat >>conftest.$ac_ext <<_ACEOF
44409/* end confdefs.h.  */
44410#include <stdio.h>
44411 #include <readline.h>
44412int
44413main ()
44414{
44415
44416  ;
44417  return 0;
44418}
44419_ACEOF
44420rm -f conftest.$ac_objext
44421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44422  (eval $ac_compile) 2>conftest.er1
44423  ac_status=$?
44424  grep -v '^ *+' conftest.er1 >conftest.err
44425  rm -f conftest.er1
44426  cat conftest.err >&5
44427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44428  (exit $ac_status); } &&
44429	 { ac_try='test -z "$ac_c_werror_flag"
44430			 || test ! -s conftest.err'
44431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44432  (eval $ac_try) 2>&5
44433  ac_status=$?
44434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44435  (exit $ac_status); }; } &&
44436	 { ac_try='test -s conftest.$ac_objext'
44437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44438  (eval $ac_try) 2>&5
44439  ac_status=$?
44440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44441  (exit $ac_status); }; }; then
44442  ires=$i;break
44443else
44444  echo "$as_me: failed program was:" >&5
44445sed 's/^/| /' conftest.$ac_ext >&5
44446
44447fi
44448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44449		done
44450		for i in $lib_dirs; do
44451			LIBS="-L$i -lreadline  $save_LIBS"
44452			cat >conftest.$ac_ext <<_ACEOF
44453/* confdefs.h.  */
44454_ACEOF
44455cat confdefs.h >>conftest.$ac_ext
44456cat >>conftest.$ac_ext <<_ACEOF
44457/* end confdefs.h.  */
44458#include <stdio.h>
44459 #include <readline.h>
44460int
44461main ()
44462{
44463
44464  ;
44465  return 0;
44466}
44467_ACEOF
44468rm -f conftest.$ac_objext conftest$ac_exeext
44469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44470  (eval $ac_link) 2>conftest.er1
44471  ac_status=$?
44472  grep -v '^ *+' conftest.er1 >conftest.err
44473  rm -f conftest.er1
44474  cat conftest.err >&5
44475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44476  (exit $ac_status); } &&
44477	 { ac_try='test -z "$ac_c_werror_flag"
44478			 || test ! -s conftest.err'
44479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44480  (eval $ac_try) 2>&5
44481  ac_status=$?
44482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44483  (exit $ac_status); }; } &&
44484	 { ac_try='test -s conftest$ac_exeext'
44485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44486  (eval $ac_try) 2>&5
44487  ac_status=$?
44488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44489  (exit $ac_status); }; }; then
44490  lres=$i;break
44491else
44492  echo "$as_me: failed program was:" >&5
44493sed 's/^/| /' conftest.$ac_ext >&5
44494
44495fi
44496rm -f conftest.err conftest.$ac_objext \
44497      conftest$ac_exeext conftest.$ac_ext
44498		done
44499		if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
44500			INCLUDE_readline="-I$ires"
44501			LIB_readline="-L$lres -lreadline "
44502			found=yes
44503			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
44504echo "${ECHO_T}headers $ires, libraries $lres" >&6
44505		fi
44506	fi
44507	CFLAGS="$save_CFLAGS"
44508	LIBS="$save_LIBS"
44509fi
44510
44511if test "$found" = yes; then
44512
44513cat >>confdefs.h <<_ACEOF
44514#define READLINE 1
44515_ACEOF
44516
44517	with_readline=yes
44518else
44519	with_readline=no
44520	INCLUDE_readline=
44521	LIB_readline=
44522	echo "$as_me:$LINENO: result: no" >&5
44523echo "${ECHO_T}no" >&6
44524fi
44525
44526
44527
44528
44529
44530
44531
44532# Check whether --with-hesiod or --without-hesiod was given.
44533if test "${with_hesiod+set}" = set; then
44534  withval="$with_hesiod"
44535
44536fi;
44537
44538# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
44539if test "${with_hesiod_lib+set}" = set; then
44540  withval="$with_hesiod_lib"
44541  if test "$withval" = "yes" -o "$withval" = "no"; then
44542  { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
44543echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
44544   { (exit 1); exit 1; }; }
44545elif test "X$with_hesiod" = "X"; then
44546  with_hesiod=yes
44547fi
44548fi;
44549
44550# Check whether --with-hesiod-include or --without-hesiod-include was given.
44551if test "${with_hesiod_include+set}" = set; then
44552  withval="$with_hesiod_include"
44553  if test "$withval" = "yes" -o "$withval" = "no"; then
44554  { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
44555echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
44556   { (exit 1); exit 1; }; }
44557elif test "X$with_hesiod" = "X"; then
44558  with_hesiod=yes
44559fi
44560fi;
44561
44562# Check whether --with-hesiod-config or --without-hesiod-config was given.
44563if test "${with_hesiod_config+set}" = set; then
44564  withval="$with_hesiod_config"
44565
44566fi;
44567
44568
44569
44570echo "$as_me:$LINENO: checking for hesiod" >&5
44571echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
44572
44573case "$with_hesiod" in
44574yes|"") d='' ;;
44575no)	d= ;;
44576*)	d="$with_hesiod" ;;
44577esac
44578
44579header_dirs=
44580lib_dirs=
44581for i in $d; do
44582	if test "$with_hesiod_include" = ""; then
44583		if test -d "$i/include/hesiod"; then
44584			header_dirs="$header_dirs $i/include/hesiod"
44585		fi
44586		if test -d "$i/include"; then
44587			header_dirs="$header_dirs $i/include"
44588		fi
44589	fi
44590	if test "$with_hesiod_lib" = ""; then
44591		if test -d "$i/lib$abilibdirext"; then
44592			lib_dirs="$lib_dirs $i/lib$abilibdirext"
44593		fi
44594	fi
44595done
44596
44597if test "$with_hesiod_include"; then
44598	header_dirs="$with_hesiod_include $header_dirs"
44599fi
44600if test "$with_hesiod_lib"; then
44601	lib_dirs="$with_hesiod_lib $lib_dirs"
44602fi
44603
44604if test "$with_hesiod_config" = ""; then
44605	with_hesiod_config=''
44606fi
44607
44608hesiod_cflags=
44609hesiod_libs=
44610
44611case "$with_hesiod_config" in
44612yes|no|"")
44613	;;
44614*)
44615	hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
44616	hesiod_libs="`$with_hesiod_config --libs 2>&1`"
44617	;;
44618esac
44619
44620found=no
44621if test "$with_hesiod" != no; then
44622	save_CFLAGS="$CFLAGS"
44623	save_LIBS="$LIBS"
44624	if test "$hesiod_cflags" -a "$hesiod_libs"; then
44625		CFLAGS="$hesiod_cflags $save_CFLAGS"
44626		LIBS="$hesiod_libs $save_LIBS"
44627		cat >conftest.$ac_ext <<_ACEOF
44628/* confdefs.h.  */
44629_ACEOF
44630cat confdefs.h >>conftest.$ac_ext
44631cat >>conftest.$ac_ext <<_ACEOF
44632/* end confdefs.h.  */
44633#include <hesiod.h>
44634int
44635main ()
44636{
44637
44638  ;
44639  return 0;
44640}
44641_ACEOF
44642rm -f conftest.$ac_objext conftest$ac_exeext
44643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44644  (eval $ac_link) 2>conftest.er1
44645  ac_status=$?
44646  grep -v '^ *+' conftest.er1 >conftest.err
44647  rm -f conftest.er1
44648  cat conftest.err >&5
44649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44650  (exit $ac_status); } &&
44651	 { ac_try='test -z "$ac_c_werror_flag"
44652			 || test ! -s conftest.err'
44653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44654  (eval $ac_try) 2>&5
44655  ac_status=$?
44656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44657  (exit $ac_status); }; } &&
44658	 { ac_try='test -s conftest$ac_exeext'
44659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44660  (eval $ac_try) 2>&5
44661  ac_status=$?
44662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44663  (exit $ac_status); }; }; then
44664
44665			INCLUDE_hesiod="$hesiod_cflags"
44666			LIB_hesiod="$hesiod_libs"
44667			echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
44668echo "${ECHO_T}from $with_hesiod_config" >&6
44669			found=yes
44670else
44671  echo "$as_me: failed program was:" >&5
44672sed 's/^/| /' conftest.$ac_ext >&5
44673
44674fi
44675rm -f conftest.err conftest.$ac_objext \
44676      conftest$ac_exeext conftest.$ac_ext
44677	fi
44678	if test "$found" = no; then
44679		ires= lres=
44680		for i in $header_dirs; do
44681			CFLAGS="-I$i $save_CFLAGS"
44682			cat >conftest.$ac_ext <<_ACEOF
44683/* confdefs.h.  */
44684_ACEOF
44685cat confdefs.h >>conftest.$ac_ext
44686cat >>conftest.$ac_ext <<_ACEOF
44687/* end confdefs.h.  */
44688#include <hesiod.h>
44689int
44690main ()
44691{
44692
44693  ;
44694  return 0;
44695}
44696_ACEOF
44697rm -f conftest.$ac_objext
44698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44699  (eval $ac_compile) 2>conftest.er1
44700  ac_status=$?
44701  grep -v '^ *+' conftest.er1 >conftest.err
44702  rm -f conftest.er1
44703  cat conftest.err >&5
44704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44705  (exit $ac_status); } &&
44706	 { ac_try='test -z "$ac_c_werror_flag"
44707			 || test ! -s conftest.err'
44708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44709  (eval $ac_try) 2>&5
44710  ac_status=$?
44711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44712  (exit $ac_status); }; } &&
44713	 { ac_try='test -s conftest.$ac_objext'
44714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44715  (eval $ac_try) 2>&5
44716  ac_status=$?
44717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44718  (exit $ac_status); }; }; then
44719  ires=$i;break
44720else
44721  echo "$as_me: failed program was:" >&5
44722sed 's/^/| /' conftest.$ac_ext >&5
44723
44724fi
44725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44726		done
44727		for i in $lib_dirs; do
44728			LIBS="-L$i -lhesiod  $save_LIBS"
44729			cat >conftest.$ac_ext <<_ACEOF
44730/* confdefs.h.  */
44731_ACEOF
44732cat confdefs.h >>conftest.$ac_ext
44733cat >>conftest.$ac_ext <<_ACEOF
44734/* end confdefs.h.  */
44735#include <hesiod.h>
44736int
44737main ()
44738{
44739
44740  ;
44741  return 0;
44742}
44743_ACEOF
44744rm -f conftest.$ac_objext conftest$ac_exeext
44745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44746  (eval $ac_link) 2>conftest.er1
44747  ac_status=$?
44748  grep -v '^ *+' conftest.er1 >conftest.err
44749  rm -f conftest.er1
44750  cat conftest.err >&5
44751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44752  (exit $ac_status); } &&
44753	 { ac_try='test -z "$ac_c_werror_flag"
44754			 || test ! -s conftest.err'
44755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44756  (eval $ac_try) 2>&5
44757  ac_status=$?
44758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44759  (exit $ac_status); }; } &&
44760	 { ac_try='test -s conftest$ac_exeext'
44761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44762  (eval $ac_try) 2>&5
44763  ac_status=$?
44764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44765  (exit $ac_status); }; }; then
44766  lres=$i;break
44767else
44768  echo "$as_me: failed program was:" >&5
44769sed 's/^/| /' conftest.$ac_ext >&5
44770
44771fi
44772rm -f conftest.err conftest.$ac_objext \
44773      conftest$ac_exeext conftest.$ac_ext
44774		done
44775		if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
44776			INCLUDE_hesiod="-I$ires"
44777			LIB_hesiod="-L$lres -lhesiod "
44778			found=yes
44779			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
44780echo "${ECHO_T}headers $ires, libraries $lres" >&6
44781		fi
44782	fi
44783	CFLAGS="$save_CFLAGS"
44784	LIBS="$save_LIBS"
44785fi
44786
44787if test "$found" = yes; then
44788
44789cat >>confdefs.h <<_ACEOF
44790#define HESIOD 1
44791_ACEOF
44792
44793	with_hesiod=yes
44794else
44795	with_hesiod=no
44796	INCLUDE_hesiod=
44797	LIB_hesiod=
44798	echo "$as_me:$LINENO: result: no" >&5
44799echo "${ECHO_T}no" >&6
44800fi
44801
44802
44803
44804
44805
44806
44807# Check whether --enable-bigendian or --disable-bigendian was given.
44808if test "${enable_bigendian+set}" = set; then
44809  enableval="$enable_bigendian"
44810  krb_cv_c_bigendian=yes
44811fi;
44812# Check whether --enable-littleendian or --disable-littleendian was given.
44813if test "${enable_littleendian+set}" = set; then
44814  enableval="$enable_littleendian"
44815  krb_cv_c_bigendian=no
44816fi;
44817echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
44818echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
44819if test "${krb_cv_c_bigendian_compile+set}" = set; then
44820  echo $ECHO_N "(cached) $ECHO_C" >&6
44821else
44822  cat >conftest.$ac_ext <<_ACEOF
44823/* confdefs.h.  */
44824_ACEOF
44825cat confdefs.h >>conftest.$ac_ext
44826cat >>conftest.$ac_ext <<_ACEOF
44827/* end confdefs.h.  */
44828
44829#include <sys/types.h>
44830#include <sys/param.h>
44831int
44832main ()
44833{
44834
44835#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
44836 bogus endian macros
44837#endif
44838  ;
44839  return 0;
44840}
44841_ACEOF
44842rm -f conftest.$ac_objext
44843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44844  (eval $ac_compile) 2>conftest.er1
44845  ac_status=$?
44846  grep -v '^ *+' conftest.er1 >conftest.err
44847  rm -f conftest.er1
44848  cat conftest.err >&5
44849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44850  (exit $ac_status); } &&
44851	 { ac_try='test -z "$ac_c_werror_flag"
44852			 || test ! -s conftest.err'
44853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44854  (eval $ac_try) 2>&5
44855  ac_status=$?
44856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44857  (exit $ac_status); }; } &&
44858	 { ac_try='test -s conftest.$ac_objext'
44859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44860  (eval $ac_try) 2>&5
44861  ac_status=$?
44862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44863  (exit $ac_status); }; }; then
44864  krb_cv_c_bigendian_compile=yes
44865else
44866  echo "$as_me: failed program was:" >&5
44867sed 's/^/| /' conftest.$ac_ext >&5
44868
44869krb_cv_c_bigendian_compile=no
44870fi
44871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44872fi
44873echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
44874echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
44875echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
44876echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
44877if test "${krb_cv_c_bigendian+set}" = set; then
44878  echo $ECHO_N "(cached) $ECHO_C" >&6
44879else
44880
44881  if test "$krb_cv_c_bigendian_compile" = "yes"; then
44882    cat >conftest.$ac_ext <<_ACEOF
44883/* confdefs.h.  */
44884_ACEOF
44885cat confdefs.h >>conftest.$ac_ext
44886cat >>conftest.$ac_ext <<_ACEOF
44887/* end confdefs.h.  */
44888
44889#include <sys/types.h>
44890#include <sys/param.h>
44891int
44892main ()
44893{
44894
44895#if BYTE_ORDER != BIG_ENDIAN
44896  not big endian
44897#endif
44898  ;
44899  return 0;
44900}
44901_ACEOF
44902rm -f conftest.$ac_objext
44903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44904  (eval $ac_compile) 2>conftest.er1
44905  ac_status=$?
44906  grep -v '^ *+' conftest.er1 >conftest.err
44907  rm -f conftest.er1
44908  cat conftest.err >&5
44909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44910  (exit $ac_status); } &&
44911	 { ac_try='test -z "$ac_c_werror_flag"
44912			 || test ! -s conftest.err'
44913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44914  (eval $ac_try) 2>&5
44915  ac_status=$?
44916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44917  (exit $ac_status); }; } &&
44918	 { ac_try='test -s conftest.$ac_objext'
44919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44920  (eval $ac_try) 2>&5
44921  ac_status=$?
44922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44923  (exit $ac_status); }; }; then
44924  krb_cv_c_bigendian=yes
44925else
44926  echo "$as_me: failed program was:" >&5
44927sed 's/^/| /' conftest.$ac_ext >&5
44928
44929krb_cv_c_bigendian=no
44930fi
44931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44932  else
44933    if test "$cross_compiling" = yes; then
44934  { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
44935echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
44936   { (exit 1); exit 1; }; }
44937else
44938  cat >conftest.$ac_ext <<_ACEOF
44939/* confdefs.h.  */
44940_ACEOF
44941cat confdefs.h >>conftest.$ac_ext
44942cat >>conftest.$ac_ext <<_ACEOF
44943/* end confdefs.h.  */
44944main () {
44945      /* Are we little or big endian?  From Harbison&Steele.  */
44946      union
44947      {
44948	long l;
44949	char c[sizeof (long)];
44950    } u;
44951    u.l = 1;
44952    exit (u.c[sizeof (long) - 1] == 1);
44953  }
44954_ACEOF
44955rm -f conftest$ac_exeext
44956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44957  (eval $ac_link) 2>&5
44958  ac_status=$?
44959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44960  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44962  (eval $ac_try) 2>&5
44963  ac_status=$?
44964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44965  (exit $ac_status); }; }; then
44966  krb_cv_c_bigendian=no
44967else
44968  echo "$as_me: program exited with status $ac_status" >&5
44969echo "$as_me: failed program was:" >&5
44970sed 's/^/| /' conftest.$ac_ext >&5
44971
44972( exit $ac_status )
44973krb_cv_c_bigendian=yes
44974fi
44975rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44976fi
44977  fi
44978
44979fi
44980echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
44981echo "${ECHO_T}$krb_cv_c_bigendian" >&6
44982if test "$krb_cv_c_bigendian" = "yes"; then
44983
44984cat >>confdefs.h <<\_ACEOF
44985#define WORDS_BIGENDIAN 1
44986_ACEOF
44987fi
44988if test "$krb_cv_c_bigendian_compile" = "yes"; then
44989
44990cat >>confdefs.h <<\_ACEOF
44991#define ENDIANESS_IN_SYS_PARAM_H 1
44992_ACEOF
44993fi
44994
44995
44996
44997echo "$as_me:$LINENO: checking for inline" >&5
44998echo $ECHO_N "checking for inline... $ECHO_C" >&6
44999if test "${ac_cv_c_inline+set}" = set; then
45000  echo $ECHO_N "(cached) $ECHO_C" >&6
45001else
45002  ac_cv_c_inline=no
45003for ac_kw in inline __inline__ __inline; do
45004  cat >conftest.$ac_ext <<_ACEOF
45005/* confdefs.h.  */
45006_ACEOF
45007cat confdefs.h >>conftest.$ac_ext
45008cat >>conftest.$ac_ext <<_ACEOF
45009/* end confdefs.h.  */
45010#ifndef __cplusplus
45011typedef int foo_t;
45012static $ac_kw foo_t static_foo () {return 0; }
45013$ac_kw foo_t foo () {return 0; }
45014#endif
45015
45016_ACEOF
45017rm -f conftest.$ac_objext
45018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45019  (eval $ac_compile) 2>conftest.er1
45020  ac_status=$?
45021  grep -v '^ *+' conftest.er1 >conftest.err
45022  rm -f conftest.er1
45023  cat conftest.err >&5
45024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45025  (exit $ac_status); } &&
45026	 { ac_try='test -z "$ac_c_werror_flag"
45027			 || test ! -s conftest.err'
45028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45029  (eval $ac_try) 2>&5
45030  ac_status=$?
45031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45032  (exit $ac_status); }; } &&
45033	 { ac_try='test -s conftest.$ac_objext'
45034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45035  (eval $ac_try) 2>&5
45036  ac_status=$?
45037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45038  (exit $ac_status); }; }; then
45039  ac_cv_c_inline=$ac_kw; break
45040else
45041  echo "$as_me: failed program was:" >&5
45042sed 's/^/| /' conftest.$ac_ext >&5
45043
45044fi
45045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45046done
45047
45048fi
45049echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
45050echo "${ECHO_T}$ac_cv_c_inline" >&6
45051
45052
45053case $ac_cv_c_inline in
45054  inline | yes) ;;
45055  *)
45056    case $ac_cv_c_inline in
45057      no) ac_val=;;
45058      *) ac_val=$ac_cv_c_inline;;
45059    esac
45060    cat >>confdefs.h <<_ACEOF
45061#ifndef __cplusplus
45062#define inline $ac_val
45063#endif
45064_ACEOF
45065    ;;
45066esac
45067
45068
45069
45070
45071
45072
45073echo "$as_me:$LINENO: checking for dlopen" >&5
45074echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
45075if test "${ac_cv_funclib_dlopen+set}" = set; then
45076  echo $ECHO_N "(cached) $ECHO_C" >&6
45077else
45078
45079if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
45080	ac_save_LIBS="$LIBS"
45081	for ac_lib in "" dl; do
45082		case "$ac_lib" in
45083		"") ;;
45084		yes) ac_lib="" ;;
45085		no) continue ;;
45086		-l*) ;;
45087		*) ac_lib="-l$ac_lib" ;;
45088		esac
45089		LIBS=" $ac_lib  $ac_save_LIBS"
45090		cat >conftest.$ac_ext <<_ACEOF
45091/* confdefs.h.  */
45092_ACEOF
45093cat confdefs.h >>conftest.$ac_ext
45094cat >>conftest.$ac_ext <<_ACEOF
45095/* end confdefs.h.  */
45096
45097int
45098main ()
45099{
45100dlopen()
45101  ;
45102  return 0;
45103}
45104_ACEOF
45105rm -f conftest.$ac_objext conftest$ac_exeext
45106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45107  (eval $ac_link) 2>conftest.er1
45108  ac_status=$?
45109  grep -v '^ *+' conftest.er1 >conftest.err
45110  rm -f conftest.er1
45111  cat conftest.err >&5
45112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45113  (exit $ac_status); } &&
45114	 { ac_try='test -z "$ac_c_werror_flag"
45115			 || test ! -s conftest.err'
45116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45117  (eval $ac_try) 2>&5
45118  ac_status=$?
45119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45120  (exit $ac_status); }; } &&
45121	 { ac_try='test -s conftest$ac_exeext'
45122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45123  (eval $ac_try) 2>&5
45124  ac_status=$?
45125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45126  (exit $ac_status); }; }; then
45127  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
45128else
45129  echo "$as_me: failed program was:" >&5
45130sed 's/^/| /' conftest.$ac_ext >&5
45131
45132fi
45133rm -f conftest.err conftest.$ac_objext \
45134      conftest$ac_exeext conftest.$ac_ext
45135	done
45136	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
45137	LIBS="$ac_save_LIBS"
45138fi
45139
45140fi
45141
45142
45143eval "ac_res=\$ac_cv_funclib_dlopen"
45144
45145if false; then
45146
45147for ac_func in dlopen
45148do
45149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45150echo "$as_me:$LINENO: checking for $ac_func" >&5
45151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45152if eval "test \"\${$as_ac_var+set}\" = set"; then
45153  echo $ECHO_N "(cached) $ECHO_C" >&6
45154else
45155  cat >conftest.$ac_ext <<_ACEOF
45156/* confdefs.h.  */
45157_ACEOF
45158cat confdefs.h >>conftest.$ac_ext
45159cat >>conftest.$ac_ext <<_ACEOF
45160/* end confdefs.h.  */
45161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45162   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45163#define $ac_func innocuous_$ac_func
45164
45165/* System header to define __stub macros and hopefully few prototypes,
45166    which can conflict with char $ac_func (); below.
45167    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45168    <limits.h> exists even on freestanding compilers.  */
45169
45170#ifdef __STDC__
45171# include <limits.h>
45172#else
45173# include <assert.h>
45174#endif
45175
45176#undef $ac_func
45177
45178/* Override any gcc2 internal prototype to avoid an error.  */
45179#ifdef __cplusplus
45180extern "C"
45181{
45182#endif
45183/* We use char because int might match the return type of a gcc2
45184   builtin and then its argument prototype would still apply.  */
45185char $ac_func ();
45186/* The GNU C library defines this for functions which it implements
45187    to always fail with ENOSYS.  Some functions are actually named
45188    something starting with __ and the normal name is an alias.  */
45189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45190choke me
45191#else
45192char (*f) () = $ac_func;
45193#endif
45194#ifdef __cplusplus
45195}
45196#endif
45197
45198int
45199main ()
45200{
45201return f != $ac_func;
45202  ;
45203  return 0;
45204}
45205_ACEOF
45206rm -f conftest.$ac_objext conftest$ac_exeext
45207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45208  (eval $ac_link) 2>conftest.er1
45209  ac_status=$?
45210  grep -v '^ *+' conftest.er1 >conftest.err
45211  rm -f conftest.er1
45212  cat conftest.err >&5
45213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45214  (exit $ac_status); } &&
45215	 { ac_try='test -z "$ac_c_werror_flag"
45216			 || test ! -s conftest.err'
45217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45218  (eval $ac_try) 2>&5
45219  ac_status=$?
45220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45221  (exit $ac_status); }; } &&
45222	 { ac_try='test -s conftest$ac_exeext'
45223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45224  (eval $ac_try) 2>&5
45225  ac_status=$?
45226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45227  (exit $ac_status); }; }; then
45228  eval "$as_ac_var=yes"
45229else
45230  echo "$as_me: failed program was:" >&5
45231sed 's/^/| /' conftest.$ac_ext >&5
45232
45233eval "$as_ac_var=no"
45234fi
45235rm -f conftest.err conftest.$ac_objext \
45236      conftest$ac_exeext conftest.$ac_ext
45237fi
45238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45239echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45240if test `eval echo '${'$as_ac_var'}'` = yes; then
45241  cat >>confdefs.h <<_ACEOF
45242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45243_ACEOF
45244
45245fi
45246done
45247
45248fi
45249# dlopen
45250eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45251eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45252eval "LIB_dlopen=$ac_res"
45253
45254case "$ac_res" in
45255	yes)
45256	eval "ac_cv_func_dlopen=yes"
45257	eval "LIB_dlopen="
45258	cat >>confdefs.h <<_ACEOF
45259#define $ac_tr_func 1
45260_ACEOF
45261
45262	echo "$as_me:$LINENO: result: yes" >&5
45263echo "${ECHO_T}yes" >&6
45264	;;
45265	no)
45266	eval "ac_cv_func_dlopen=no"
45267	eval "LIB_dlopen="
45268	echo "$as_me:$LINENO: result: no" >&5
45269echo "${ECHO_T}no" >&6
45270	;;
45271	*)
45272	eval "ac_cv_func_dlopen=yes"
45273	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
45274	cat >>confdefs.h <<_ACEOF
45275#define $ac_tr_func 1
45276_ACEOF
45277
45278	cat >>confdefs.h <<_ACEOF
45279#define $ac_tr_lib 1
45280_ACEOF
45281
45282	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
45283echo "${ECHO_T}yes, in $ac_res" >&6
45284	;;
45285esac
45286
45287
45288
45289
45290if test "$ac_cv_funclib_dlopen" != no; then
45291  HAVE_DLOPEN_TRUE=
45292  HAVE_DLOPEN_FALSE='#'
45293else
45294  HAVE_DLOPEN_TRUE='#'
45295  HAVE_DLOPEN_FALSE=
45296fi
45297
45298
45299
45300
45301aix=no
45302case "$host" in
45303*-*-aix3*)
45304	aix=3
45305	;;
45306*-*-aix4*|*-*-aix5*)
45307	aix=4
45308	;;
45309esac
45310
45311
45312
45313if test "$aix" != no; then
45314  AIX_TRUE=
45315  AIX_FALSE='#'
45316else
45317  AIX_TRUE='#'
45318  AIX_FALSE=
45319fi
45320
45321
45322if test "$aix" = 4; then
45323  AIX4_TRUE=
45324  AIX4_FALSE='#'
45325else
45326  AIX4_TRUE='#'
45327  AIX4_FALSE=
45328fi
45329
45330
45331
45332# Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
45333if test "${enable_dynamic_afs+set}" = set; then
45334  enableval="$enable_dynamic_afs"
45335
45336fi;
45337
45338if test "$aix" != no; then
45339	if test "$enable_dynamic_afs" != no; then
45340
45341		if test "$ac_cv_func_dlopen" = no; then
45342
45343
45344
45345echo "$as_me:$LINENO: checking for loadquery" >&5
45346echo $ECHO_N "checking for loadquery... $ECHO_C" >&6
45347if test "${ac_cv_funclib_loadquery+set}" = set; then
45348  echo $ECHO_N "(cached) $ECHO_C" >&6
45349else
45350
45351if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
45352	ac_save_LIBS="$LIBS"
45353	for ac_lib in "" ld; do
45354		case "$ac_lib" in
45355		"") ;;
45356		yes) ac_lib="" ;;
45357		no) continue ;;
45358		-l*) ;;
45359		*) ac_lib="-l$ac_lib" ;;
45360		esac
45361		LIBS=" $ac_lib  $ac_save_LIBS"
45362		cat >conftest.$ac_ext <<_ACEOF
45363/* confdefs.h.  */
45364_ACEOF
45365cat confdefs.h >>conftest.$ac_ext
45366cat >>conftest.$ac_ext <<_ACEOF
45367/* end confdefs.h.  */
45368
45369int
45370main ()
45371{
45372loadquery()
45373  ;
45374  return 0;
45375}
45376_ACEOF
45377rm -f conftest.$ac_objext conftest$ac_exeext
45378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45379  (eval $ac_link) 2>conftest.er1
45380  ac_status=$?
45381  grep -v '^ *+' conftest.er1 >conftest.err
45382  rm -f conftest.er1
45383  cat conftest.err >&5
45384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45385  (exit $ac_status); } &&
45386	 { ac_try='test -z "$ac_c_werror_flag"
45387			 || test ! -s conftest.err'
45388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45389  (eval $ac_try) 2>&5
45390  ac_status=$?
45391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45392  (exit $ac_status); }; } &&
45393	 { ac_try='test -s conftest$ac_exeext'
45394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45395  (eval $ac_try) 2>&5
45396  ac_status=$?
45397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45398  (exit $ac_status); }; }; then
45399  eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
45400else
45401  echo "$as_me: failed program was:" >&5
45402sed 's/^/| /' conftest.$ac_ext >&5
45403
45404fi
45405rm -f conftest.err conftest.$ac_objext \
45406      conftest$ac_exeext conftest.$ac_ext
45407	done
45408	eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
45409	LIBS="$ac_save_LIBS"
45410fi
45411
45412fi
45413
45414
45415eval "ac_res=\$ac_cv_funclib_loadquery"
45416
45417if false; then
45418
45419for ac_func in loadquery
45420do
45421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45422echo "$as_me:$LINENO: checking for $ac_func" >&5
45423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45424if eval "test \"\${$as_ac_var+set}\" = set"; then
45425  echo $ECHO_N "(cached) $ECHO_C" >&6
45426else
45427  cat >conftest.$ac_ext <<_ACEOF
45428/* confdefs.h.  */
45429_ACEOF
45430cat confdefs.h >>conftest.$ac_ext
45431cat >>conftest.$ac_ext <<_ACEOF
45432/* end confdefs.h.  */
45433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45434   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45435#define $ac_func innocuous_$ac_func
45436
45437/* System header to define __stub macros and hopefully few prototypes,
45438    which can conflict with char $ac_func (); below.
45439    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45440    <limits.h> exists even on freestanding compilers.  */
45441
45442#ifdef __STDC__
45443# include <limits.h>
45444#else
45445# include <assert.h>
45446#endif
45447
45448#undef $ac_func
45449
45450/* Override any gcc2 internal prototype to avoid an error.  */
45451#ifdef __cplusplus
45452extern "C"
45453{
45454#endif
45455/* We use char because int might match the return type of a gcc2
45456   builtin and then its argument prototype would still apply.  */
45457char $ac_func ();
45458/* The GNU C library defines this for functions which it implements
45459    to always fail with ENOSYS.  Some functions are actually named
45460    something starting with __ and the normal name is an alias.  */
45461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45462choke me
45463#else
45464char (*f) () = $ac_func;
45465#endif
45466#ifdef __cplusplus
45467}
45468#endif
45469
45470int
45471main ()
45472{
45473return f != $ac_func;
45474  ;
45475  return 0;
45476}
45477_ACEOF
45478rm -f conftest.$ac_objext conftest$ac_exeext
45479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45480  (eval $ac_link) 2>conftest.er1
45481  ac_status=$?
45482  grep -v '^ *+' conftest.er1 >conftest.err
45483  rm -f conftest.er1
45484  cat conftest.err >&5
45485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45486  (exit $ac_status); } &&
45487	 { ac_try='test -z "$ac_c_werror_flag"
45488			 || test ! -s conftest.err'
45489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45490  (eval $ac_try) 2>&5
45491  ac_status=$?
45492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45493  (exit $ac_status); }; } &&
45494	 { ac_try='test -s conftest$ac_exeext'
45495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45496  (eval $ac_try) 2>&5
45497  ac_status=$?
45498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45499  (exit $ac_status); }; }; then
45500  eval "$as_ac_var=yes"
45501else
45502  echo "$as_me: failed program was:" >&5
45503sed 's/^/| /' conftest.$ac_ext >&5
45504
45505eval "$as_ac_var=no"
45506fi
45507rm -f conftest.err conftest.$ac_objext \
45508      conftest$ac_exeext conftest.$ac_ext
45509fi
45510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45511echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45512if test `eval echo '${'$as_ac_var'}'` = yes; then
45513  cat >>confdefs.h <<_ACEOF
45514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45515_ACEOF
45516
45517fi
45518done
45519
45520fi
45521# loadquery
45522eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45523eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45524eval "LIB_loadquery=$ac_res"
45525
45526case "$ac_res" in
45527	yes)
45528	eval "ac_cv_func_loadquery=yes"
45529	eval "LIB_loadquery="
45530	cat >>confdefs.h <<_ACEOF
45531#define $ac_tr_func 1
45532_ACEOF
45533
45534	echo "$as_me:$LINENO: result: yes" >&5
45535echo "${ECHO_T}yes" >&6
45536	;;
45537	no)
45538	eval "ac_cv_func_loadquery=no"
45539	eval "LIB_loadquery="
45540	echo "$as_me:$LINENO: result: no" >&5
45541echo "${ECHO_T}no" >&6
45542	;;
45543	*)
45544	eval "ac_cv_func_loadquery=yes"
45545	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
45546	cat >>confdefs.h <<_ACEOF
45547#define $ac_tr_func 1
45548_ACEOF
45549
45550	cat >>confdefs.h <<_ACEOF
45551#define $ac_tr_lib 1
45552_ACEOF
45553
45554	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
45555echo "${ECHO_T}yes, in $ac_res" >&6
45556	;;
45557esac
45558
45559
45560		fi
45561		if test "$ac_cv_func_dlopen" != no; then
45562			AIX_EXTRA_KAFS='$(LIB_dlopen)'
45563		elif test "$ac_cv_func_loadquery" != no; then
45564			AIX_EXTRA_KAFS='$(LIB_loadquery)'
45565		else
45566			{ echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
45567echo "$as_me: not using dynloaded AFS library" >&6;}
45568			AIX_EXTRA_KAFS=
45569			enable_dynamic_afs=no
45570		fi
45571	else
45572		AIX_EXTRA_KAFS=
45573	fi
45574fi
45575
45576
45577
45578if test "$enable_dynamic_afs" != no; then
45579  AIX_DYNAMIC_AFS_TRUE=
45580  AIX_DYNAMIC_AFS_FALSE='#'
45581else
45582  AIX_DYNAMIC_AFS_TRUE='#'
45583  AIX_DYNAMIC_AFS_FALSE=
45584fi
45585
45586
45587
45588
45589
45590
45591irix=no
45592case "$host" in
45593*-*-irix4*)
45594
45595cat >>confdefs.h <<\_ACEOF
45596#define IRIX4 1
45597_ACEOF
45598
45599	irix=yes
45600	;;
45601*-*-irix*)
45602	irix=yes
45603	;;
45604esac
45605
45606
45607if test "$irix" != no; then
45608  IRIX_TRUE=
45609  IRIX_FALSE='#'
45610else
45611  IRIX_TRUE='#'
45612  IRIX_FALSE=
45613fi
45614
45615
45616
45617
45618
45619sunos=no
45620case "$host" in
45621*-*-sunos4*)
45622	sunos=40
45623	;;
45624*-*-solaris2.7)
45625	sunos=57
45626	;;
45627*-*-solaris2.[89])
45628	sunos=58
45629	;;
45630*-*-solaris2*)
45631	sunos=50
45632	;;
45633esac
45634if test "$sunos" != no; then
45635
45636cat >>confdefs.h <<_ACEOF
45637#define SunOS $sunos
45638_ACEOF
45639
45640fi
45641
45642
45643echo "$as_me:$LINENO: checking for X" >&5
45644echo $ECHO_N "checking for X... $ECHO_C" >&6
45645
45646
45647# Check whether --with-x or --without-x was given.
45648if test "${with_x+set}" = set; then
45649  withval="$with_x"
45650
45651fi;
45652# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
45653if test "x$with_x" = xno; then
45654  # The user explicitly disabled X.
45655  have_x=disabled
45656else
45657  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
45658    # Both variables are already set.
45659    have_x=yes
45660  else
45661    if test "${ac_cv_have_x+set}" = set; then
45662  echo $ECHO_N "(cached) $ECHO_C" >&6
45663else
45664  # One or both of the vars are not set, and there is no cached value.
45665ac_x_includes=no ac_x_libraries=no
45666rm -fr conftest.dir
45667if mkdir conftest.dir; then
45668  cd conftest.dir
45669  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
45670  cat >Imakefile <<'_ACEOF'
45671acfindx:
45672	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
45673_ACEOF
45674  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
45675    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45676    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
45677    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
45678    for ac_extension in a so sl; do
45679      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
45680	 test -f $ac_im_libdir/libX11.$ac_extension; then
45681	ac_im_usrlibdir=$ac_im_libdir; break
45682      fi
45683    done
45684    # Screen out bogus values from the imake configuration.  They are
45685    # bogus both because they are the default anyway, and because
45686    # using them would break gcc on systems where it needs fixed includes.
45687    case $ac_im_incroot in
45688	/usr/include) ;;
45689	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
45690    esac
45691    case $ac_im_usrlibdir in
45692	/usr/lib | /lib) ;;
45693	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
45694    esac
45695  fi
45696  cd ..
45697  rm -fr conftest.dir
45698fi
45699
45700# Standard set of common directories for X headers.
45701# Check X11 before X11Rn because it is often a symlink to the current release.
45702ac_x_header_dirs='
45703/usr/X11/include
45704/usr/X11R6/include
45705/usr/X11R5/include
45706/usr/X11R4/include
45707
45708/usr/include/X11
45709/usr/include/X11R6
45710/usr/include/X11R5
45711/usr/include/X11R4
45712
45713/usr/local/X11/include
45714/usr/local/X11R6/include
45715/usr/local/X11R5/include
45716/usr/local/X11R4/include
45717
45718/usr/local/include/X11
45719/usr/local/include/X11R6
45720/usr/local/include/X11R5
45721/usr/local/include/X11R4
45722
45723/usr/X386/include
45724/usr/x386/include
45725/usr/XFree86/include/X11
45726
45727/usr/include
45728/usr/local/include
45729/usr/unsupported/include
45730/usr/athena/include
45731/usr/local/x11r5/include
45732/usr/lpp/Xamples/include
45733
45734/usr/openwin/include
45735/usr/openwin/share/include'
45736
45737if test "$ac_x_includes" = no; then
45738  # Guess where to find include files, by looking for Intrinsic.h.
45739  # First, try using that file with no special directory specified.
45740  cat >conftest.$ac_ext <<_ACEOF
45741/* confdefs.h.  */
45742_ACEOF
45743cat confdefs.h >>conftest.$ac_ext
45744cat >>conftest.$ac_ext <<_ACEOF
45745/* end confdefs.h.  */
45746#include <X11/Intrinsic.h>
45747_ACEOF
45748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45749  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45750  ac_status=$?
45751  grep -v '^ *+' conftest.er1 >conftest.err
45752  rm -f conftest.er1
45753  cat conftest.err >&5
45754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45755  (exit $ac_status); } >/dev/null; then
45756  if test -s conftest.err; then
45757    ac_cpp_err=$ac_c_preproc_warn_flag
45758    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45759  else
45760    ac_cpp_err=
45761  fi
45762else
45763  ac_cpp_err=yes
45764fi
45765if test -z "$ac_cpp_err"; then
45766  # We can compile using X headers with no special include directory.
45767ac_x_includes=
45768else
45769  echo "$as_me: failed program was:" >&5
45770sed 's/^/| /' conftest.$ac_ext >&5
45771
45772  for ac_dir in $ac_x_header_dirs; do
45773  if test -r "$ac_dir/X11/Intrinsic.h"; then
45774    ac_x_includes=$ac_dir
45775    break
45776  fi
45777done
45778fi
45779rm -f conftest.err conftest.$ac_ext
45780fi # $ac_x_includes = no
45781
45782if test "$ac_x_libraries" = no; then
45783  # Check for the libraries.
45784  # See if we find them without any special options.
45785  # Don't add to $LIBS permanently.
45786  ac_save_LIBS=$LIBS
45787  LIBS="-lXt $LIBS"
45788  cat >conftest.$ac_ext <<_ACEOF
45789/* confdefs.h.  */
45790_ACEOF
45791cat confdefs.h >>conftest.$ac_ext
45792cat >>conftest.$ac_ext <<_ACEOF
45793/* end confdefs.h.  */
45794#include <X11/Intrinsic.h>
45795int
45796main ()
45797{
45798XtMalloc (0)
45799  ;
45800  return 0;
45801}
45802_ACEOF
45803rm -f conftest.$ac_objext conftest$ac_exeext
45804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45805  (eval $ac_link) 2>conftest.er1
45806  ac_status=$?
45807  grep -v '^ *+' conftest.er1 >conftest.err
45808  rm -f conftest.er1
45809  cat conftest.err >&5
45810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45811  (exit $ac_status); } &&
45812	 { ac_try='test -z "$ac_c_werror_flag"
45813			 || test ! -s conftest.err'
45814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45815  (eval $ac_try) 2>&5
45816  ac_status=$?
45817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45818  (exit $ac_status); }; } &&
45819	 { ac_try='test -s conftest$ac_exeext'
45820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45821  (eval $ac_try) 2>&5
45822  ac_status=$?
45823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45824  (exit $ac_status); }; }; then
45825  LIBS=$ac_save_LIBS
45826# We can link X programs with no special library path.
45827ac_x_libraries=
45828else
45829  echo "$as_me: failed program was:" >&5
45830sed 's/^/| /' conftest.$ac_ext >&5
45831
45832LIBS=$ac_save_LIBS
45833for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
45834do
45835  # Don't even attempt the hair of trying to link an X program!
45836  for ac_extension in a so sl; do
45837    if test -r $ac_dir/libXt.$ac_extension; then
45838      ac_x_libraries=$ac_dir
45839      break 2
45840    fi
45841  done
45842done
45843fi
45844rm -f conftest.err conftest.$ac_objext \
45845      conftest$ac_exeext conftest.$ac_ext
45846fi # $ac_x_libraries = no
45847
45848if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
45849  # Didn't find X anywhere.  Cache the known absence of X.
45850  ac_cv_have_x="have_x=no"
45851else
45852  # Record where we found X for the cache.
45853  ac_cv_have_x="have_x=yes \
45854		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
45855fi
45856fi
45857
45858  fi
45859  eval "$ac_cv_have_x"
45860fi # $with_x != no
45861
45862if test "$have_x" != yes; then
45863  echo "$as_me:$LINENO: result: $have_x" >&5
45864echo "${ECHO_T}$have_x" >&6
45865  no_x=yes
45866else
45867  # If each of the values was on the command line, it overrides each guess.
45868  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
45869  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
45870  # Update the cache value to reflect the command line values.
45871  ac_cv_have_x="have_x=yes \
45872		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
45873  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
45874echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
45875fi
45876
45877
45878if test "$no_x" = yes; then
45879  # Not all programs may use this symbol, but it does not hurt to define it.
45880
45881cat >>confdefs.h <<\_ACEOF
45882#define X_DISPLAY_MISSING 1
45883_ACEOF
45884
45885  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
45886else
45887  if test -n "$x_includes"; then
45888    X_CFLAGS="$X_CFLAGS -I$x_includes"
45889  fi
45890
45891  # It would also be nice to do this for all -L options, not just this one.
45892  if test -n "$x_libraries"; then
45893    X_LIBS="$X_LIBS -L$x_libraries"
45894    # For Solaris; some versions of Sun CC require a space after -R and
45895    # others require no space.  Words are not sufficient . . . .
45896    case `(uname -sr) 2>/dev/null` in
45897    "SunOS 5"*)
45898      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
45899echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
45900      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
45901      cat >conftest.$ac_ext <<_ACEOF
45902/* confdefs.h.  */
45903_ACEOF
45904cat confdefs.h >>conftest.$ac_ext
45905cat >>conftest.$ac_ext <<_ACEOF
45906/* end confdefs.h.  */
45907
45908int
45909main ()
45910{
45911
45912  ;
45913  return 0;
45914}
45915_ACEOF
45916rm -f conftest.$ac_objext conftest$ac_exeext
45917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45918  (eval $ac_link) 2>conftest.er1
45919  ac_status=$?
45920  grep -v '^ *+' conftest.er1 >conftest.err
45921  rm -f conftest.er1
45922  cat conftest.err >&5
45923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45924  (exit $ac_status); } &&
45925	 { ac_try='test -z "$ac_c_werror_flag"
45926			 || test ! -s conftest.err'
45927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45928  (eval $ac_try) 2>&5
45929  ac_status=$?
45930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45931  (exit $ac_status); }; } &&
45932	 { ac_try='test -s conftest$ac_exeext'
45933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45934  (eval $ac_try) 2>&5
45935  ac_status=$?
45936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45937  (exit $ac_status); }; }; then
45938  ac_R_nospace=yes
45939else
45940  echo "$as_me: failed program was:" >&5
45941sed 's/^/| /' conftest.$ac_ext >&5
45942
45943ac_R_nospace=no
45944fi
45945rm -f conftest.err conftest.$ac_objext \
45946      conftest$ac_exeext conftest.$ac_ext
45947      if test $ac_R_nospace = yes; then
45948	echo "$as_me:$LINENO: result: no" >&5
45949echo "${ECHO_T}no" >&6
45950	X_LIBS="$X_LIBS -R$x_libraries"
45951      else
45952	LIBS="$ac_xsave_LIBS -R $x_libraries"
45953	cat >conftest.$ac_ext <<_ACEOF
45954/* confdefs.h.  */
45955_ACEOF
45956cat confdefs.h >>conftest.$ac_ext
45957cat >>conftest.$ac_ext <<_ACEOF
45958/* end confdefs.h.  */
45959
45960int
45961main ()
45962{
45963
45964  ;
45965  return 0;
45966}
45967_ACEOF
45968rm -f conftest.$ac_objext conftest$ac_exeext
45969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45970  (eval $ac_link) 2>conftest.er1
45971  ac_status=$?
45972  grep -v '^ *+' conftest.er1 >conftest.err
45973  rm -f conftest.er1
45974  cat conftest.err >&5
45975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45976  (exit $ac_status); } &&
45977	 { ac_try='test -z "$ac_c_werror_flag"
45978			 || test ! -s conftest.err'
45979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45980  (eval $ac_try) 2>&5
45981  ac_status=$?
45982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45983  (exit $ac_status); }; } &&
45984	 { ac_try='test -s conftest$ac_exeext'
45985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45986  (eval $ac_try) 2>&5
45987  ac_status=$?
45988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45989  (exit $ac_status); }; }; then
45990  ac_R_space=yes
45991else
45992  echo "$as_me: failed program was:" >&5
45993sed 's/^/| /' conftest.$ac_ext >&5
45994
45995ac_R_space=no
45996fi
45997rm -f conftest.err conftest.$ac_objext \
45998      conftest$ac_exeext conftest.$ac_ext
45999	if test $ac_R_space = yes; then
46000	  echo "$as_me:$LINENO: result: yes" >&5
46001echo "${ECHO_T}yes" >&6
46002	  X_LIBS="$X_LIBS -R $x_libraries"
46003	else
46004	  echo "$as_me:$LINENO: result: neither works" >&5
46005echo "${ECHO_T}neither works" >&6
46006	fi
46007      fi
46008      LIBS=$ac_xsave_LIBS
46009    esac
46010  fi
46011
46012  # Check for system-dependent libraries X programs must link with.
46013  # Do this before checking for the system-independent R6 libraries
46014  # (-lICE), since we may need -lsocket or whatever for X linking.
46015
46016  if test "$ISC" = yes; then
46017    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
46018  else
46019    # Martyn Johnson says this is needed for Ultrix, if the X
46020    # libraries were built with DECnet support.  And Karl Berry says
46021    # the Alpha needs dnet_stub (dnet does not exist).
46022    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
46023    cat >conftest.$ac_ext <<_ACEOF
46024/* confdefs.h.  */
46025_ACEOF
46026cat confdefs.h >>conftest.$ac_ext
46027cat >>conftest.$ac_ext <<_ACEOF
46028/* end confdefs.h.  */
46029
46030/* Override any gcc2 internal prototype to avoid an error.  */
46031#ifdef __cplusplus
46032extern "C"
46033#endif
46034/* We use char because int might match the return type of a gcc2
46035   builtin and then its argument prototype would still apply.  */
46036char XOpenDisplay ();
46037int
46038main ()
46039{
46040XOpenDisplay ();
46041  ;
46042  return 0;
46043}
46044_ACEOF
46045rm -f conftest.$ac_objext conftest$ac_exeext
46046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46047  (eval $ac_link) 2>conftest.er1
46048  ac_status=$?
46049  grep -v '^ *+' conftest.er1 >conftest.err
46050  rm -f conftest.er1
46051  cat conftest.err >&5
46052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46053  (exit $ac_status); } &&
46054	 { ac_try='test -z "$ac_c_werror_flag"
46055			 || test ! -s conftest.err'
46056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46057  (eval $ac_try) 2>&5
46058  ac_status=$?
46059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46060  (exit $ac_status); }; } &&
46061	 { ac_try='test -s conftest$ac_exeext'
46062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46063  (eval $ac_try) 2>&5
46064  ac_status=$?
46065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46066  (exit $ac_status); }; }; then
46067  :
46068else
46069  echo "$as_me: failed program was:" >&5
46070sed 's/^/| /' conftest.$ac_ext >&5
46071
46072echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
46073echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
46074if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
46075  echo $ECHO_N "(cached) $ECHO_C" >&6
46076else
46077  ac_check_lib_save_LIBS=$LIBS
46078LIBS="-ldnet  $LIBS"
46079cat >conftest.$ac_ext <<_ACEOF
46080/* confdefs.h.  */
46081_ACEOF
46082cat confdefs.h >>conftest.$ac_ext
46083cat >>conftest.$ac_ext <<_ACEOF
46084/* end confdefs.h.  */
46085
46086/* Override any gcc2 internal prototype to avoid an error.  */
46087#ifdef __cplusplus
46088extern "C"
46089#endif
46090/* We use char because int might match the return type of a gcc2
46091   builtin and then its argument prototype would still apply.  */
46092char dnet_ntoa ();
46093int
46094main ()
46095{
46096dnet_ntoa ();
46097  ;
46098  return 0;
46099}
46100_ACEOF
46101rm -f conftest.$ac_objext conftest$ac_exeext
46102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46103  (eval $ac_link) 2>conftest.er1
46104  ac_status=$?
46105  grep -v '^ *+' conftest.er1 >conftest.err
46106  rm -f conftest.er1
46107  cat conftest.err >&5
46108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46109  (exit $ac_status); } &&
46110	 { ac_try='test -z "$ac_c_werror_flag"
46111			 || test ! -s conftest.err'
46112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46113  (eval $ac_try) 2>&5
46114  ac_status=$?
46115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46116  (exit $ac_status); }; } &&
46117	 { ac_try='test -s conftest$ac_exeext'
46118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46119  (eval $ac_try) 2>&5
46120  ac_status=$?
46121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46122  (exit $ac_status); }; }; then
46123  ac_cv_lib_dnet_dnet_ntoa=yes
46124else
46125  echo "$as_me: failed program was:" >&5
46126sed 's/^/| /' conftest.$ac_ext >&5
46127
46128ac_cv_lib_dnet_dnet_ntoa=no
46129fi
46130rm -f conftest.err conftest.$ac_objext \
46131      conftest$ac_exeext conftest.$ac_ext
46132LIBS=$ac_check_lib_save_LIBS
46133fi
46134echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
46135echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
46136if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
46137  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
46138fi
46139
46140    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
46141      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
46142echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
46143if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
46144  echo $ECHO_N "(cached) $ECHO_C" >&6
46145else
46146  ac_check_lib_save_LIBS=$LIBS
46147LIBS="-ldnet_stub  $LIBS"
46148cat >conftest.$ac_ext <<_ACEOF
46149/* confdefs.h.  */
46150_ACEOF
46151cat confdefs.h >>conftest.$ac_ext
46152cat >>conftest.$ac_ext <<_ACEOF
46153/* end confdefs.h.  */
46154
46155/* Override any gcc2 internal prototype to avoid an error.  */
46156#ifdef __cplusplus
46157extern "C"
46158#endif
46159/* We use char because int might match the return type of a gcc2
46160   builtin and then its argument prototype would still apply.  */
46161char dnet_ntoa ();
46162int
46163main ()
46164{
46165dnet_ntoa ();
46166  ;
46167  return 0;
46168}
46169_ACEOF
46170rm -f conftest.$ac_objext conftest$ac_exeext
46171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46172  (eval $ac_link) 2>conftest.er1
46173  ac_status=$?
46174  grep -v '^ *+' conftest.er1 >conftest.err
46175  rm -f conftest.er1
46176  cat conftest.err >&5
46177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46178  (exit $ac_status); } &&
46179	 { ac_try='test -z "$ac_c_werror_flag"
46180			 || test ! -s conftest.err'
46181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46182  (eval $ac_try) 2>&5
46183  ac_status=$?
46184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46185  (exit $ac_status); }; } &&
46186	 { ac_try='test -s conftest$ac_exeext'
46187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46188  (eval $ac_try) 2>&5
46189  ac_status=$?
46190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46191  (exit $ac_status); }; }; then
46192  ac_cv_lib_dnet_stub_dnet_ntoa=yes
46193else
46194  echo "$as_me: failed program was:" >&5
46195sed 's/^/| /' conftest.$ac_ext >&5
46196
46197ac_cv_lib_dnet_stub_dnet_ntoa=no
46198fi
46199rm -f conftest.err conftest.$ac_objext \
46200      conftest$ac_exeext conftest.$ac_ext
46201LIBS=$ac_check_lib_save_LIBS
46202fi
46203echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
46204echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
46205if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
46206  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
46207fi
46208
46209    fi
46210fi
46211rm -f conftest.err conftest.$ac_objext \
46212      conftest$ac_exeext conftest.$ac_ext
46213    LIBS="$ac_xsave_LIBS"
46214
46215    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
46216    # to get the SysV transport functions.
46217    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
46218    # needs -lnsl.
46219    # The nsl library prevents programs from opening the X display
46220    # on Irix 5.2, according to T.E. Dickey.
46221    # The functions gethostbyname, getservbyname, and inet_addr are
46222    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
46223    echo "$as_me:$LINENO: checking for gethostbyname" >&5
46224echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
46225if test "${ac_cv_func_gethostbyname+set}" = set; then
46226  echo $ECHO_N "(cached) $ECHO_C" >&6
46227else
46228  cat >conftest.$ac_ext <<_ACEOF
46229/* confdefs.h.  */
46230_ACEOF
46231cat confdefs.h >>conftest.$ac_ext
46232cat >>conftest.$ac_ext <<_ACEOF
46233/* end confdefs.h.  */
46234/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
46235   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46236#define gethostbyname innocuous_gethostbyname
46237
46238/* System header to define __stub macros and hopefully few prototypes,
46239    which can conflict with char gethostbyname (); below.
46240    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46241    <limits.h> exists even on freestanding compilers.  */
46242
46243#ifdef __STDC__
46244# include <limits.h>
46245#else
46246# include <assert.h>
46247#endif
46248
46249#undef gethostbyname
46250
46251/* Override any gcc2 internal prototype to avoid an error.  */
46252#ifdef __cplusplus
46253extern "C"
46254{
46255#endif
46256/* We use char because int might match the return type of a gcc2
46257   builtin and then its argument prototype would still apply.  */
46258char gethostbyname ();
46259/* The GNU C library defines this for functions which it implements
46260    to always fail with ENOSYS.  Some functions are actually named
46261    something starting with __ and the normal name is an alias.  */
46262#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
46263choke me
46264#else
46265char (*f) () = gethostbyname;
46266#endif
46267#ifdef __cplusplus
46268}
46269#endif
46270
46271int
46272main ()
46273{
46274return f != gethostbyname;
46275  ;
46276  return 0;
46277}
46278_ACEOF
46279rm -f conftest.$ac_objext conftest$ac_exeext
46280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46281  (eval $ac_link) 2>conftest.er1
46282  ac_status=$?
46283  grep -v '^ *+' conftest.er1 >conftest.err
46284  rm -f conftest.er1
46285  cat conftest.err >&5
46286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46287  (exit $ac_status); } &&
46288	 { ac_try='test -z "$ac_c_werror_flag"
46289			 || test ! -s conftest.err'
46290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46291  (eval $ac_try) 2>&5
46292  ac_status=$?
46293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46294  (exit $ac_status); }; } &&
46295	 { ac_try='test -s conftest$ac_exeext'
46296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46297  (eval $ac_try) 2>&5
46298  ac_status=$?
46299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46300  (exit $ac_status); }; }; then
46301  ac_cv_func_gethostbyname=yes
46302else
46303  echo "$as_me: failed program was:" >&5
46304sed 's/^/| /' conftest.$ac_ext >&5
46305
46306ac_cv_func_gethostbyname=no
46307fi
46308rm -f conftest.err conftest.$ac_objext \
46309      conftest$ac_exeext conftest.$ac_ext
46310fi
46311echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
46312echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
46313
46314    if test $ac_cv_func_gethostbyname = no; then
46315      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
46316echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
46317if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
46318  echo $ECHO_N "(cached) $ECHO_C" >&6
46319else
46320  ac_check_lib_save_LIBS=$LIBS
46321LIBS="-lnsl  $LIBS"
46322cat >conftest.$ac_ext <<_ACEOF
46323/* confdefs.h.  */
46324_ACEOF
46325cat confdefs.h >>conftest.$ac_ext
46326cat >>conftest.$ac_ext <<_ACEOF
46327/* end confdefs.h.  */
46328
46329/* Override any gcc2 internal prototype to avoid an error.  */
46330#ifdef __cplusplus
46331extern "C"
46332#endif
46333/* We use char because int might match the return type of a gcc2
46334   builtin and then its argument prototype would still apply.  */
46335char gethostbyname ();
46336int
46337main ()
46338{
46339gethostbyname ();
46340  ;
46341  return 0;
46342}
46343_ACEOF
46344rm -f conftest.$ac_objext conftest$ac_exeext
46345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46346  (eval $ac_link) 2>conftest.er1
46347  ac_status=$?
46348  grep -v '^ *+' conftest.er1 >conftest.err
46349  rm -f conftest.er1
46350  cat conftest.err >&5
46351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46352  (exit $ac_status); } &&
46353	 { ac_try='test -z "$ac_c_werror_flag"
46354			 || test ! -s conftest.err'
46355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46356  (eval $ac_try) 2>&5
46357  ac_status=$?
46358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46359  (exit $ac_status); }; } &&
46360	 { ac_try='test -s conftest$ac_exeext'
46361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46362  (eval $ac_try) 2>&5
46363  ac_status=$?
46364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46365  (exit $ac_status); }; }; then
46366  ac_cv_lib_nsl_gethostbyname=yes
46367else
46368  echo "$as_me: failed program was:" >&5
46369sed 's/^/| /' conftest.$ac_ext >&5
46370
46371ac_cv_lib_nsl_gethostbyname=no
46372fi
46373rm -f conftest.err conftest.$ac_objext \
46374      conftest$ac_exeext conftest.$ac_ext
46375LIBS=$ac_check_lib_save_LIBS
46376fi
46377echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
46378echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
46379if test $ac_cv_lib_nsl_gethostbyname = yes; then
46380  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
46381fi
46382
46383      if test $ac_cv_lib_nsl_gethostbyname = no; then
46384	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
46385echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
46386if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
46387  echo $ECHO_N "(cached) $ECHO_C" >&6
46388else
46389  ac_check_lib_save_LIBS=$LIBS
46390LIBS="-lbsd  $LIBS"
46391cat >conftest.$ac_ext <<_ACEOF
46392/* confdefs.h.  */
46393_ACEOF
46394cat confdefs.h >>conftest.$ac_ext
46395cat >>conftest.$ac_ext <<_ACEOF
46396/* end confdefs.h.  */
46397
46398/* Override any gcc2 internal prototype to avoid an error.  */
46399#ifdef __cplusplus
46400extern "C"
46401#endif
46402/* We use char because int might match the return type of a gcc2
46403   builtin and then its argument prototype would still apply.  */
46404char gethostbyname ();
46405int
46406main ()
46407{
46408gethostbyname ();
46409  ;
46410  return 0;
46411}
46412_ACEOF
46413rm -f conftest.$ac_objext conftest$ac_exeext
46414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46415  (eval $ac_link) 2>conftest.er1
46416  ac_status=$?
46417  grep -v '^ *+' conftest.er1 >conftest.err
46418  rm -f conftest.er1
46419  cat conftest.err >&5
46420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46421  (exit $ac_status); } &&
46422	 { ac_try='test -z "$ac_c_werror_flag"
46423			 || test ! -s conftest.err'
46424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46425  (eval $ac_try) 2>&5
46426  ac_status=$?
46427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46428  (exit $ac_status); }; } &&
46429	 { ac_try='test -s conftest$ac_exeext'
46430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46431  (eval $ac_try) 2>&5
46432  ac_status=$?
46433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46434  (exit $ac_status); }; }; then
46435  ac_cv_lib_bsd_gethostbyname=yes
46436else
46437  echo "$as_me: failed program was:" >&5
46438sed 's/^/| /' conftest.$ac_ext >&5
46439
46440ac_cv_lib_bsd_gethostbyname=no
46441fi
46442rm -f conftest.err conftest.$ac_objext \
46443      conftest$ac_exeext conftest.$ac_ext
46444LIBS=$ac_check_lib_save_LIBS
46445fi
46446echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
46447echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
46448if test $ac_cv_lib_bsd_gethostbyname = yes; then
46449  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
46450fi
46451
46452      fi
46453    fi
46454
46455    # lieder@skyler.mavd.honeywell.com says without -lsocket,
46456    # socket/setsockopt and other routines are undefined under SCO ODT
46457    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
46458    # on later versions), says Simon Leinen: it contains gethostby*
46459    # variants that don't use the name server (or something).  -lsocket
46460    # must be given before -lnsl if both are needed.  We assume that
46461    # if connect needs -lnsl, so does gethostbyname.
46462    echo "$as_me:$LINENO: checking for connect" >&5
46463echo $ECHO_N "checking for connect... $ECHO_C" >&6
46464if test "${ac_cv_func_connect+set}" = set; then
46465  echo $ECHO_N "(cached) $ECHO_C" >&6
46466else
46467  cat >conftest.$ac_ext <<_ACEOF
46468/* confdefs.h.  */
46469_ACEOF
46470cat confdefs.h >>conftest.$ac_ext
46471cat >>conftest.$ac_ext <<_ACEOF
46472/* end confdefs.h.  */
46473/* Define connect to an innocuous variant, in case <limits.h> declares connect.
46474   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46475#define connect innocuous_connect
46476
46477/* System header to define __stub macros and hopefully few prototypes,
46478    which can conflict with char connect (); below.
46479    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46480    <limits.h> exists even on freestanding compilers.  */
46481
46482#ifdef __STDC__
46483# include <limits.h>
46484#else
46485# include <assert.h>
46486#endif
46487
46488#undef connect
46489
46490/* Override any gcc2 internal prototype to avoid an error.  */
46491#ifdef __cplusplus
46492extern "C"
46493{
46494#endif
46495/* We use char because int might match the return type of a gcc2
46496   builtin and then its argument prototype would still apply.  */
46497char connect ();
46498/* The GNU C library defines this for functions which it implements
46499    to always fail with ENOSYS.  Some functions are actually named
46500    something starting with __ and the normal name is an alias.  */
46501#if defined (__stub_connect) || defined (__stub___connect)
46502choke me
46503#else
46504char (*f) () = connect;
46505#endif
46506#ifdef __cplusplus
46507}
46508#endif
46509
46510int
46511main ()
46512{
46513return f != connect;
46514  ;
46515  return 0;
46516}
46517_ACEOF
46518rm -f conftest.$ac_objext conftest$ac_exeext
46519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46520  (eval $ac_link) 2>conftest.er1
46521  ac_status=$?
46522  grep -v '^ *+' conftest.er1 >conftest.err
46523  rm -f conftest.er1
46524  cat conftest.err >&5
46525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46526  (exit $ac_status); } &&
46527	 { ac_try='test -z "$ac_c_werror_flag"
46528			 || test ! -s conftest.err'
46529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46530  (eval $ac_try) 2>&5
46531  ac_status=$?
46532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46533  (exit $ac_status); }; } &&
46534	 { ac_try='test -s conftest$ac_exeext'
46535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46536  (eval $ac_try) 2>&5
46537  ac_status=$?
46538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46539  (exit $ac_status); }; }; then
46540  ac_cv_func_connect=yes
46541else
46542  echo "$as_me: failed program was:" >&5
46543sed 's/^/| /' conftest.$ac_ext >&5
46544
46545ac_cv_func_connect=no
46546fi
46547rm -f conftest.err conftest.$ac_objext \
46548      conftest$ac_exeext conftest.$ac_ext
46549fi
46550echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
46551echo "${ECHO_T}$ac_cv_func_connect" >&6
46552
46553    if test $ac_cv_func_connect = no; then
46554      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
46555echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
46556if test "${ac_cv_lib_socket_connect+set}" = set; then
46557  echo $ECHO_N "(cached) $ECHO_C" >&6
46558else
46559  ac_check_lib_save_LIBS=$LIBS
46560LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
46561cat >conftest.$ac_ext <<_ACEOF
46562/* confdefs.h.  */
46563_ACEOF
46564cat confdefs.h >>conftest.$ac_ext
46565cat >>conftest.$ac_ext <<_ACEOF
46566/* end confdefs.h.  */
46567
46568/* Override any gcc2 internal prototype to avoid an error.  */
46569#ifdef __cplusplus
46570extern "C"
46571#endif
46572/* We use char because int might match the return type of a gcc2
46573   builtin and then its argument prototype would still apply.  */
46574char connect ();
46575int
46576main ()
46577{
46578connect ();
46579  ;
46580  return 0;
46581}
46582_ACEOF
46583rm -f conftest.$ac_objext conftest$ac_exeext
46584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46585  (eval $ac_link) 2>conftest.er1
46586  ac_status=$?
46587  grep -v '^ *+' conftest.er1 >conftest.err
46588  rm -f conftest.er1
46589  cat conftest.err >&5
46590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46591  (exit $ac_status); } &&
46592	 { ac_try='test -z "$ac_c_werror_flag"
46593			 || test ! -s conftest.err'
46594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46595  (eval $ac_try) 2>&5
46596  ac_status=$?
46597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46598  (exit $ac_status); }; } &&
46599	 { ac_try='test -s conftest$ac_exeext'
46600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46601  (eval $ac_try) 2>&5
46602  ac_status=$?
46603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46604  (exit $ac_status); }; }; then
46605  ac_cv_lib_socket_connect=yes
46606else
46607  echo "$as_me: failed program was:" >&5
46608sed 's/^/| /' conftest.$ac_ext >&5
46609
46610ac_cv_lib_socket_connect=no
46611fi
46612rm -f conftest.err conftest.$ac_objext \
46613      conftest$ac_exeext conftest.$ac_ext
46614LIBS=$ac_check_lib_save_LIBS
46615fi
46616echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
46617echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
46618if test $ac_cv_lib_socket_connect = yes; then
46619  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
46620fi
46621
46622    fi
46623
46624    # Guillermo Gomez says -lposix is necessary on A/UX.
46625    echo "$as_me:$LINENO: checking for remove" >&5
46626echo $ECHO_N "checking for remove... $ECHO_C" >&6
46627if test "${ac_cv_func_remove+set}" = set; then
46628  echo $ECHO_N "(cached) $ECHO_C" >&6
46629else
46630  cat >conftest.$ac_ext <<_ACEOF
46631/* confdefs.h.  */
46632_ACEOF
46633cat confdefs.h >>conftest.$ac_ext
46634cat >>conftest.$ac_ext <<_ACEOF
46635/* end confdefs.h.  */
46636/* Define remove to an innocuous variant, in case <limits.h> declares remove.
46637   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46638#define remove innocuous_remove
46639
46640/* System header to define __stub macros and hopefully few prototypes,
46641    which can conflict with char remove (); below.
46642    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46643    <limits.h> exists even on freestanding compilers.  */
46644
46645#ifdef __STDC__
46646# include <limits.h>
46647#else
46648# include <assert.h>
46649#endif
46650
46651#undef remove
46652
46653/* Override any gcc2 internal prototype to avoid an error.  */
46654#ifdef __cplusplus
46655extern "C"
46656{
46657#endif
46658/* We use char because int might match the return type of a gcc2
46659   builtin and then its argument prototype would still apply.  */
46660char remove ();
46661/* The GNU C library defines this for functions which it implements
46662    to always fail with ENOSYS.  Some functions are actually named
46663    something starting with __ and the normal name is an alias.  */
46664#if defined (__stub_remove) || defined (__stub___remove)
46665choke me
46666#else
46667char (*f) () = remove;
46668#endif
46669#ifdef __cplusplus
46670}
46671#endif
46672
46673int
46674main ()
46675{
46676return f != remove;
46677  ;
46678  return 0;
46679}
46680_ACEOF
46681rm -f conftest.$ac_objext conftest$ac_exeext
46682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46683  (eval $ac_link) 2>conftest.er1
46684  ac_status=$?
46685  grep -v '^ *+' conftest.er1 >conftest.err
46686  rm -f conftest.er1
46687  cat conftest.err >&5
46688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46689  (exit $ac_status); } &&
46690	 { ac_try='test -z "$ac_c_werror_flag"
46691			 || test ! -s conftest.err'
46692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46693  (eval $ac_try) 2>&5
46694  ac_status=$?
46695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46696  (exit $ac_status); }; } &&
46697	 { ac_try='test -s conftest$ac_exeext'
46698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46699  (eval $ac_try) 2>&5
46700  ac_status=$?
46701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46702  (exit $ac_status); }; }; then
46703  ac_cv_func_remove=yes
46704else
46705  echo "$as_me: failed program was:" >&5
46706sed 's/^/| /' conftest.$ac_ext >&5
46707
46708ac_cv_func_remove=no
46709fi
46710rm -f conftest.err conftest.$ac_objext \
46711      conftest$ac_exeext conftest.$ac_ext
46712fi
46713echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
46714echo "${ECHO_T}$ac_cv_func_remove" >&6
46715
46716    if test $ac_cv_func_remove = no; then
46717      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
46718echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
46719if test "${ac_cv_lib_posix_remove+set}" = set; then
46720  echo $ECHO_N "(cached) $ECHO_C" >&6
46721else
46722  ac_check_lib_save_LIBS=$LIBS
46723LIBS="-lposix  $LIBS"
46724cat >conftest.$ac_ext <<_ACEOF
46725/* confdefs.h.  */
46726_ACEOF
46727cat confdefs.h >>conftest.$ac_ext
46728cat >>conftest.$ac_ext <<_ACEOF
46729/* end confdefs.h.  */
46730
46731/* Override any gcc2 internal prototype to avoid an error.  */
46732#ifdef __cplusplus
46733extern "C"
46734#endif
46735/* We use char because int might match the return type of a gcc2
46736   builtin and then its argument prototype would still apply.  */
46737char remove ();
46738int
46739main ()
46740{
46741remove ();
46742  ;
46743  return 0;
46744}
46745_ACEOF
46746rm -f conftest.$ac_objext conftest$ac_exeext
46747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46748  (eval $ac_link) 2>conftest.er1
46749  ac_status=$?
46750  grep -v '^ *+' conftest.er1 >conftest.err
46751  rm -f conftest.er1
46752  cat conftest.err >&5
46753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46754  (exit $ac_status); } &&
46755	 { ac_try='test -z "$ac_c_werror_flag"
46756			 || test ! -s conftest.err'
46757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46758  (eval $ac_try) 2>&5
46759  ac_status=$?
46760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46761  (exit $ac_status); }; } &&
46762	 { ac_try='test -s conftest$ac_exeext'
46763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46764  (eval $ac_try) 2>&5
46765  ac_status=$?
46766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46767  (exit $ac_status); }; }; then
46768  ac_cv_lib_posix_remove=yes
46769else
46770  echo "$as_me: failed program was:" >&5
46771sed 's/^/| /' conftest.$ac_ext >&5
46772
46773ac_cv_lib_posix_remove=no
46774fi
46775rm -f conftest.err conftest.$ac_objext \
46776      conftest$ac_exeext conftest.$ac_ext
46777LIBS=$ac_check_lib_save_LIBS
46778fi
46779echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
46780echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
46781if test $ac_cv_lib_posix_remove = yes; then
46782  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
46783fi
46784
46785    fi
46786
46787    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
46788    echo "$as_me:$LINENO: checking for shmat" >&5
46789echo $ECHO_N "checking for shmat... $ECHO_C" >&6
46790if test "${ac_cv_func_shmat+set}" = set; then
46791  echo $ECHO_N "(cached) $ECHO_C" >&6
46792else
46793  cat >conftest.$ac_ext <<_ACEOF
46794/* confdefs.h.  */
46795_ACEOF
46796cat confdefs.h >>conftest.$ac_ext
46797cat >>conftest.$ac_ext <<_ACEOF
46798/* end confdefs.h.  */
46799/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
46800   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46801#define shmat innocuous_shmat
46802
46803/* System header to define __stub macros and hopefully few prototypes,
46804    which can conflict with char shmat (); below.
46805    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46806    <limits.h> exists even on freestanding compilers.  */
46807
46808#ifdef __STDC__
46809# include <limits.h>
46810#else
46811# include <assert.h>
46812#endif
46813
46814#undef shmat
46815
46816/* Override any gcc2 internal prototype to avoid an error.  */
46817#ifdef __cplusplus
46818extern "C"
46819{
46820#endif
46821/* We use char because int might match the return type of a gcc2
46822   builtin and then its argument prototype would still apply.  */
46823char shmat ();
46824/* The GNU C library defines this for functions which it implements
46825    to always fail with ENOSYS.  Some functions are actually named
46826    something starting with __ and the normal name is an alias.  */
46827#if defined (__stub_shmat) || defined (__stub___shmat)
46828choke me
46829#else
46830char (*f) () = shmat;
46831#endif
46832#ifdef __cplusplus
46833}
46834#endif
46835
46836int
46837main ()
46838{
46839return f != shmat;
46840  ;
46841  return 0;
46842}
46843_ACEOF
46844rm -f conftest.$ac_objext conftest$ac_exeext
46845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46846  (eval $ac_link) 2>conftest.er1
46847  ac_status=$?
46848  grep -v '^ *+' conftest.er1 >conftest.err
46849  rm -f conftest.er1
46850  cat conftest.err >&5
46851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46852  (exit $ac_status); } &&
46853	 { ac_try='test -z "$ac_c_werror_flag"
46854			 || test ! -s conftest.err'
46855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46856  (eval $ac_try) 2>&5
46857  ac_status=$?
46858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46859  (exit $ac_status); }; } &&
46860	 { ac_try='test -s conftest$ac_exeext'
46861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46862  (eval $ac_try) 2>&5
46863  ac_status=$?
46864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46865  (exit $ac_status); }; }; then
46866  ac_cv_func_shmat=yes
46867else
46868  echo "$as_me: failed program was:" >&5
46869sed 's/^/| /' conftest.$ac_ext >&5
46870
46871ac_cv_func_shmat=no
46872fi
46873rm -f conftest.err conftest.$ac_objext \
46874      conftest$ac_exeext conftest.$ac_ext
46875fi
46876echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
46877echo "${ECHO_T}$ac_cv_func_shmat" >&6
46878
46879    if test $ac_cv_func_shmat = no; then
46880      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
46881echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
46882if test "${ac_cv_lib_ipc_shmat+set}" = set; then
46883  echo $ECHO_N "(cached) $ECHO_C" >&6
46884else
46885  ac_check_lib_save_LIBS=$LIBS
46886LIBS="-lipc  $LIBS"
46887cat >conftest.$ac_ext <<_ACEOF
46888/* confdefs.h.  */
46889_ACEOF
46890cat confdefs.h >>conftest.$ac_ext
46891cat >>conftest.$ac_ext <<_ACEOF
46892/* end confdefs.h.  */
46893
46894/* Override any gcc2 internal prototype to avoid an error.  */
46895#ifdef __cplusplus
46896extern "C"
46897#endif
46898/* We use char because int might match the return type of a gcc2
46899   builtin and then its argument prototype would still apply.  */
46900char shmat ();
46901int
46902main ()
46903{
46904shmat ();
46905  ;
46906  return 0;
46907}
46908_ACEOF
46909rm -f conftest.$ac_objext conftest$ac_exeext
46910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46911  (eval $ac_link) 2>conftest.er1
46912  ac_status=$?
46913  grep -v '^ *+' conftest.er1 >conftest.err
46914  rm -f conftest.er1
46915  cat conftest.err >&5
46916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46917  (exit $ac_status); } &&
46918	 { ac_try='test -z "$ac_c_werror_flag"
46919			 || test ! -s conftest.err'
46920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46921  (eval $ac_try) 2>&5
46922  ac_status=$?
46923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46924  (exit $ac_status); }; } &&
46925	 { ac_try='test -s conftest$ac_exeext'
46926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46927  (eval $ac_try) 2>&5
46928  ac_status=$?
46929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46930  (exit $ac_status); }; }; then
46931  ac_cv_lib_ipc_shmat=yes
46932else
46933  echo "$as_me: failed program was:" >&5
46934sed 's/^/| /' conftest.$ac_ext >&5
46935
46936ac_cv_lib_ipc_shmat=no
46937fi
46938rm -f conftest.err conftest.$ac_objext \
46939      conftest$ac_exeext conftest.$ac_ext
46940LIBS=$ac_check_lib_save_LIBS
46941fi
46942echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
46943echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
46944if test $ac_cv_lib_ipc_shmat = yes; then
46945  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
46946fi
46947
46948    fi
46949  fi
46950
46951  # Check for libraries that X11R6 Xt/Xaw programs need.
46952  ac_save_LDFLAGS=$LDFLAGS
46953  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
46954  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
46955  # check for ICE first), but we must link in the order -lSM -lICE or
46956  # we get undefined symbols.  So assume we have SM if we have ICE.
46957  # These have to be linked with before -lX11, unlike the other
46958  # libraries we check for below, so use a different variable.
46959  # John Interrante, Karl Berry
46960  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
46961echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
46962if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
46963  echo $ECHO_N "(cached) $ECHO_C" >&6
46964else
46965  ac_check_lib_save_LIBS=$LIBS
46966LIBS="-lICE $X_EXTRA_LIBS $LIBS"
46967cat >conftest.$ac_ext <<_ACEOF
46968/* confdefs.h.  */
46969_ACEOF
46970cat confdefs.h >>conftest.$ac_ext
46971cat >>conftest.$ac_ext <<_ACEOF
46972/* end confdefs.h.  */
46973
46974/* Override any gcc2 internal prototype to avoid an error.  */
46975#ifdef __cplusplus
46976extern "C"
46977#endif
46978/* We use char because int might match the return type of a gcc2
46979   builtin and then its argument prototype would still apply.  */
46980char IceConnectionNumber ();
46981int
46982main ()
46983{
46984IceConnectionNumber ();
46985  ;
46986  return 0;
46987}
46988_ACEOF
46989rm -f conftest.$ac_objext conftest$ac_exeext
46990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46991  (eval $ac_link) 2>conftest.er1
46992  ac_status=$?
46993  grep -v '^ *+' conftest.er1 >conftest.err
46994  rm -f conftest.er1
46995  cat conftest.err >&5
46996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46997  (exit $ac_status); } &&
46998	 { ac_try='test -z "$ac_c_werror_flag"
46999			 || test ! -s conftest.err'
47000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47001  (eval $ac_try) 2>&5
47002  ac_status=$?
47003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47004  (exit $ac_status); }; } &&
47005	 { ac_try='test -s conftest$ac_exeext'
47006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47007  (eval $ac_try) 2>&5
47008  ac_status=$?
47009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47010  (exit $ac_status); }; }; then
47011  ac_cv_lib_ICE_IceConnectionNumber=yes
47012else
47013  echo "$as_me: failed program was:" >&5
47014sed 's/^/| /' conftest.$ac_ext >&5
47015
47016ac_cv_lib_ICE_IceConnectionNumber=no
47017fi
47018rm -f conftest.err conftest.$ac_objext \
47019      conftest$ac_exeext conftest.$ac_ext
47020LIBS=$ac_check_lib_save_LIBS
47021fi
47022echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
47023echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
47024if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
47025  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
47026fi
47027
47028  LDFLAGS=$ac_save_LDFLAGS
47029
47030fi
47031
47032
47033# try to figure out if we need any additional ld flags, like -R
47034# and yes, the autoconf X test is utterly broken
47035if test "$no_x" != yes; then
47036	echo "$as_me:$LINENO: checking for special X linker flags" >&5
47037echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
47038if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
47039  echo $ECHO_N "(cached) $ECHO_C" >&6
47040else
47041
47042	ac_save_libs="$LIBS"
47043	ac_save_cflags="$CFLAGS"
47044	CFLAGS="$CFLAGS $X_CFLAGS"
47045	krb_cv_sys_x_libs_rpath=""
47046	krb_cv_sys_x_libs=""
47047	for rflag in "" "-R" "-R " "-rpath "; do
47048		if test "$rflag" = ""; then
47049			foo="$X_LIBS"
47050		else
47051			foo=""
47052			for flag in $X_LIBS; do
47053			case $flag in
47054			-L*)
47055				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
47056				;;
47057			*)
47058				foo="$foo $flag"
47059				;;
47060			esac
47061			done
47062		fi
47063		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
47064		if test "$cross_compiling" = yes; then
47065  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
47066See \`config.log' for more details." >&5
47067echo "$as_me: error: cannot run test program while cross compiling
47068See \`config.log' for more details." >&2;}
47069   { (exit 1); exit 1; }; }
47070else
47071  cat >conftest.$ac_ext <<_ACEOF
47072/* confdefs.h.  */
47073_ACEOF
47074cat confdefs.h >>conftest.$ac_ext
47075cat >>conftest.$ac_ext <<_ACEOF
47076/* end confdefs.h.  */
47077
47078		#include <X11/Xlib.h>
47079		foo()
47080		{
47081		XOpenDisplay(NULL);
47082		}
47083		main()
47084		{
47085		return 0;
47086		}
47087
47088_ACEOF
47089rm -f conftest$ac_exeext
47090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47091  (eval $ac_link) 2>&5
47092  ac_status=$?
47093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47094  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47096  (eval $ac_try) 2>&5
47097  ac_status=$?
47098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47099  (exit $ac_status); }; }; then
47100  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
47101else
47102  echo "$as_me: program exited with status $ac_status" >&5
47103echo "$as_me: failed program was:" >&5
47104sed 's/^/| /' conftest.$ac_ext >&5
47105
47106( exit $ac_status )
47107:
47108fi
47109rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47110fi
47111	done
47112	LIBS="$ac_save_libs"
47113	CFLAGS="$ac_save_cflags"
47114
47115fi
47116echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
47117echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
47118	X_LIBS="$krb_cv_sys_x_libs"
47119fi
47120
47121
47122
47123
47124if test "$no_x" != yes; then
47125  HAVE_X_TRUE=
47126  HAVE_X_FALSE='#'
47127else
47128  HAVE_X_TRUE='#'
47129  HAVE_X_FALSE=
47130fi
47131
47132
47133
47134save_CFLAGS="$CFLAGS"
47135CFLAGS="$X_CFLAGS $CFLAGS"
47136save_LIBS="$LIBS"
47137LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
47138save_LDFLAGS="$LDFLAGS"
47139LDFLAGS="$LDFLAGS $X_LIBS"
47140
47141## check for XauWriteAuth first, so we detect the case where
47142## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this
47143## could be done by checking for XauReadAuth in -lXau first, but this
47144## breaks in IRIX 6.5
47145
47146
47147
47148
47149echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
47150echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
47151if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
47152  echo $ECHO_N "(cached) $ECHO_C" >&6
47153else
47154
47155if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
47156	ac_save_LIBS="$LIBS"
47157	for ac_lib in "" X11 Xau; do
47158		case "$ac_lib" in
47159		"") ;;
47160		yes) ac_lib="" ;;
47161		no) continue ;;
47162		-l*) ;;
47163		*) ac_lib="-l$ac_lib" ;;
47164		esac
47165		LIBS=" $ac_lib  $ac_save_LIBS"
47166		cat >conftest.$ac_ext <<_ACEOF
47167/* confdefs.h.  */
47168_ACEOF
47169cat confdefs.h >>conftest.$ac_ext
47170cat >>conftest.$ac_ext <<_ACEOF
47171/* end confdefs.h.  */
47172
47173int
47174main ()
47175{
47176XauWriteAuth()
47177  ;
47178  return 0;
47179}
47180_ACEOF
47181rm -f conftest.$ac_objext conftest$ac_exeext
47182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47183  (eval $ac_link) 2>conftest.er1
47184  ac_status=$?
47185  grep -v '^ *+' conftest.er1 >conftest.err
47186  rm -f conftest.er1
47187  cat conftest.err >&5
47188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47189  (exit $ac_status); } &&
47190	 { ac_try='test -z "$ac_c_werror_flag"
47191			 || test ! -s conftest.err'
47192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47193  (eval $ac_try) 2>&5
47194  ac_status=$?
47195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47196  (exit $ac_status); }; } &&
47197	 { ac_try='test -s conftest$ac_exeext'
47198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47199  (eval $ac_try) 2>&5
47200  ac_status=$?
47201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47202  (exit $ac_status); }; }; then
47203  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
47204else
47205  echo "$as_me: failed program was:" >&5
47206sed 's/^/| /' conftest.$ac_ext >&5
47207
47208fi
47209rm -f conftest.err conftest.$ac_objext \
47210      conftest$ac_exeext conftest.$ac_ext
47211	done
47212	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
47213	LIBS="$ac_save_LIBS"
47214fi
47215
47216fi
47217
47218
47219eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
47220
47221if false; then
47222
47223for ac_func in XauWriteAuth
47224do
47225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47226echo "$as_me:$LINENO: checking for $ac_func" >&5
47227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47228if eval "test \"\${$as_ac_var+set}\" = set"; then
47229  echo $ECHO_N "(cached) $ECHO_C" >&6
47230else
47231  cat >conftest.$ac_ext <<_ACEOF
47232/* confdefs.h.  */
47233_ACEOF
47234cat confdefs.h >>conftest.$ac_ext
47235cat >>conftest.$ac_ext <<_ACEOF
47236/* end confdefs.h.  */
47237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47238   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47239#define $ac_func innocuous_$ac_func
47240
47241/* System header to define __stub macros and hopefully few prototypes,
47242    which can conflict with char $ac_func (); below.
47243    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47244    <limits.h> exists even on freestanding compilers.  */
47245
47246#ifdef __STDC__
47247# include <limits.h>
47248#else
47249# include <assert.h>
47250#endif
47251
47252#undef $ac_func
47253
47254/* Override any gcc2 internal prototype to avoid an error.  */
47255#ifdef __cplusplus
47256extern "C"
47257{
47258#endif
47259/* We use char because int might match the return type of a gcc2
47260   builtin and then its argument prototype would still apply.  */
47261char $ac_func ();
47262/* The GNU C library defines this for functions which it implements
47263    to always fail with ENOSYS.  Some functions are actually named
47264    something starting with __ and the normal name is an alias.  */
47265#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47266choke me
47267#else
47268char (*f) () = $ac_func;
47269#endif
47270#ifdef __cplusplus
47271}
47272#endif
47273
47274int
47275main ()
47276{
47277return f != $ac_func;
47278  ;
47279  return 0;
47280}
47281_ACEOF
47282rm -f conftest.$ac_objext conftest$ac_exeext
47283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47284  (eval $ac_link) 2>conftest.er1
47285  ac_status=$?
47286  grep -v '^ *+' conftest.er1 >conftest.err
47287  rm -f conftest.er1
47288  cat conftest.err >&5
47289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47290  (exit $ac_status); } &&
47291	 { ac_try='test -z "$ac_c_werror_flag"
47292			 || test ! -s conftest.err'
47293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47294  (eval $ac_try) 2>&5
47295  ac_status=$?
47296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47297  (exit $ac_status); }; } &&
47298	 { ac_try='test -s conftest$ac_exeext'
47299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47300  (eval $ac_try) 2>&5
47301  ac_status=$?
47302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47303  (exit $ac_status); }; }; then
47304  eval "$as_ac_var=yes"
47305else
47306  echo "$as_me: failed program was:" >&5
47307sed 's/^/| /' conftest.$ac_ext >&5
47308
47309eval "$as_ac_var=no"
47310fi
47311rm -f conftest.err conftest.$ac_objext \
47312      conftest$ac_exeext conftest.$ac_ext
47313fi
47314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47315echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47316if test `eval echo '${'$as_ac_var'}'` = yes; then
47317  cat >>confdefs.h <<_ACEOF
47318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47319_ACEOF
47320
47321fi
47322done
47323
47324fi
47325# XauWriteAuth
47326eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47327eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47328eval "LIB_XauWriteAuth=$ac_res"
47329
47330case "$ac_res" in
47331	yes)
47332	eval "ac_cv_func_XauWriteAuth=yes"
47333	eval "LIB_XauWriteAuth="
47334	cat >>confdefs.h <<_ACEOF
47335#define $ac_tr_func 1
47336_ACEOF
47337
47338	echo "$as_me:$LINENO: result: yes" >&5
47339echo "${ECHO_T}yes" >&6
47340	;;
47341	no)
47342	eval "ac_cv_func_XauWriteAuth=no"
47343	eval "LIB_XauWriteAuth="
47344	echo "$as_me:$LINENO: result: no" >&5
47345echo "${ECHO_T}no" >&6
47346	;;
47347	*)
47348	eval "ac_cv_func_XauWriteAuth=yes"
47349	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47350	cat >>confdefs.h <<_ACEOF
47351#define $ac_tr_func 1
47352_ACEOF
47353
47354	cat >>confdefs.h <<_ACEOF
47355#define $ac_tr_lib 1
47356_ACEOF
47357
47358	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47359echo "${ECHO_T}yes, in $ac_res" >&6
47360	;;
47361esac
47362
47363
47364ac_xxx="$LIBS"
47365LIBS="$LIB_XauWriteAuth $LIBS"
47366
47367
47368
47369echo "$as_me:$LINENO: checking for XauReadAuth" >&5
47370echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
47371if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
47372  echo $ECHO_N "(cached) $ECHO_C" >&6
47373else
47374
47375if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
47376	ac_save_LIBS="$LIBS"
47377	for ac_lib in "" X11 Xau; do
47378		case "$ac_lib" in
47379		"") ;;
47380		yes) ac_lib="" ;;
47381		no) continue ;;
47382		-l*) ;;
47383		*) ac_lib="-l$ac_lib" ;;
47384		esac
47385		LIBS=" $ac_lib  $ac_save_LIBS"
47386		cat >conftest.$ac_ext <<_ACEOF
47387/* confdefs.h.  */
47388_ACEOF
47389cat confdefs.h >>conftest.$ac_ext
47390cat >>conftest.$ac_ext <<_ACEOF
47391/* end confdefs.h.  */
47392
47393int
47394main ()
47395{
47396XauReadAuth()
47397  ;
47398  return 0;
47399}
47400_ACEOF
47401rm -f conftest.$ac_objext conftest$ac_exeext
47402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47403  (eval $ac_link) 2>conftest.er1
47404  ac_status=$?
47405  grep -v '^ *+' conftest.er1 >conftest.err
47406  rm -f conftest.er1
47407  cat conftest.err >&5
47408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47409  (exit $ac_status); } &&
47410	 { ac_try='test -z "$ac_c_werror_flag"
47411			 || test ! -s conftest.err'
47412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47413  (eval $ac_try) 2>&5
47414  ac_status=$?
47415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47416  (exit $ac_status); }; } &&
47417	 { ac_try='test -s conftest$ac_exeext'
47418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47419  (eval $ac_try) 2>&5
47420  ac_status=$?
47421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47422  (exit $ac_status); }; }; then
47423  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
47424else
47425  echo "$as_me: failed program was:" >&5
47426sed 's/^/| /' conftest.$ac_ext >&5
47427
47428fi
47429rm -f conftest.err conftest.$ac_objext \
47430      conftest$ac_exeext conftest.$ac_ext
47431	done
47432	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
47433	LIBS="$ac_save_LIBS"
47434fi
47435
47436fi
47437
47438
47439eval "ac_res=\$ac_cv_funclib_XauReadAuth"
47440
47441if false; then
47442
47443for ac_func in XauReadAuth
47444do
47445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47446echo "$as_me:$LINENO: checking for $ac_func" >&5
47447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47448if eval "test \"\${$as_ac_var+set}\" = set"; then
47449  echo $ECHO_N "(cached) $ECHO_C" >&6
47450else
47451  cat >conftest.$ac_ext <<_ACEOF
47452/* confdefs.h.  */
47453_ACEOF
47454cat confdefs.h >>conftest.$ac_ext
47455cat >>conftest.$ac_ext <<_ACEOF
47456/* end confdefs.h.  */
47457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47458   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47459#define $ac_func innocuous_$ac_func
47460
47461/* System header to define __stub macros and hopefully few prototypes,
47462    which can conflict with char $ac_func (); below.
47463    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47464    <limits.h> exists even on freestanding compilers.  */
47465
47466#ifdef __STDC__
47467# include <limits.h>
47468#else
47469# include <assert.h>
47470#endif
47471
47472#undef $ac_func
47473
47474/* Override any gcc2 internal prototype to avoid an error.  */
47475#ifdef __cplusplus
47476extern "C"
47477{
47478#endif
47479/* We use char because int might match the return type of a gcc2
47480   builtin and then its argument prototype would still apply.  */
47481char $ac_func ();
47482/* The GNU C library defines this for functions which it implements
47483    to always fail with ENOSYS.  Some functions are actually named
47484    something starting with __ and the normal name is an alias.  */
47485#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47486choke me
47487#else
47488char (*f) () = $ac_func;
47489#endif
47490#ifdef __cplusplus
47491}
47492#endif
47493
47494int
47495main ()
47496{
47497return f != $ac_func;
47498  ;
47499  return 0;
47500}
47501_ACEOF
47502rm -f conftest.$ac_objext conftest$ac_exeext
47503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47504  (eval $ac_link) 2>conftest.er1
47505  ac_status=$?
47506  grep -v '^ *+' conftest.er1 >conftest.err
47507  rm -f conftest.er1
47508  cat conftest.err >&5
47509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47510  (exit $ac_status); } &&
47511	 { ac_try='test -z "$ac_c_werror_flag"
47512			 || test ! -s conftest.err'
47513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47514  (eval $ac_try) 2>&5
47515  ac_status=$?
47516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47517  (exit $ac_status); }; } &&
47518	 { ac_try='test -s conftest$ac_exeext'
47519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47520  (eval $ac_try) 2>&5
47521  ac_status=$?
47522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47523  (exit $ac_status); }; }; then
47524  eval "$as_ac_var=yes"
47525else
47526  echo "$as_me: failed program was:" >&5
47527sed 's/^/| /' conftest.$ac_ext >&5
47528
47529eval "$as_ac_var=no"
47530fi
47531rm -f conftest.err conftest.$ac_objext \
47532      conftest$ac_exeext conftest.$ac_ext
47533fi
47534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47535echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47536if test `eval echo '${'$as_ac_var'}'` = yes; then
47537  cat >>confdefs.h <<_ACEOF
47538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47539_ACEOF
47540
47541fi
47542done
47543
47544fi
47545# XauReadAuth
47546eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47547eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47548eval "LIB_XauReadAuth=$ac_res"
47549
47550case "$ac_res" in
47551	yes)
47552	eval "ac_cv_func_XauReadAuth=yes"
47553	eval "LIB_XauReadAuth="
47554	cat >>confdefs.h <<_ACEOF
47555#define $ac_tr_func 1
47556_ACEOF
47557
47558	echo "$as_me:$LINENO: result: yes" >&5
47559echo "${ECHO_T}yes" >&6
47560	;;
47561	no)
47562	eval "ac_cv_func_XauReadAuth=no"
47563	eval "LIB_XauReadAuth="
47564	echo "$as_me:$LINENO: result: no" >&5
47565echo "${ECHO_T}no" >&6
47566	;;
47567	*)
47568	eval "ac_cv_func_XauReadAuth=yes"
47569	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47570	cat >>confdefs.h <<_ACEOF
47571#define $ac_tr_func 1
47572_ACEOF
47573
47574	cat >>confdefs.h <<_ACEOF
47575#define $ac_tr_lib 1
47576_ACEOF
47577
47578	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47579echo "${ECHO_T}yes, in $ac_res" >&6
47580	;;
47581esac
47582
47583
47584LIBS="$LIB_XauReadAauth $LIBS"
47585
47586
47587
47588echo "$as_me:$LINENO: checking for XauFileName" >&5
47589echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
47590if test "${ac_cv_funclib_XauFileName+set}" = set; then
47591  echo $ECHO_N "(cached) $ECHO_C" >&6
47592else
47593
47594if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
47595	ac_save_LIBS="$LIBS"
47596	for ac_lib in "" X11 Xau; do
47597		case "$ac_lib" in
47598		"") ;;
47599		yes) ac_lib="" ;;
47600		no) continue ;;
47601		-l*) ;;
47602		*) ac_lib="-l$ac_lib" ;;
47603		esac
47604		LIBS=" $ac_lib  $ac_save_LIBS"
47605		cat >conftest.$ac_ext <<_ACEOF
47606/* confdefs.h.  */
47607_ACEOF
47608cat confdefs.h >>conftest.$ac_ext
47609cat >>conftest.$ac_ext <<_ACEOF
47610/* end confdefs.h.  */
47611
47612int
47613main ()
47614{
47615XauFileName()
47616  ;
47617  return 0;
47618}
47619_ACEOF
47620rm -f conftest.$ac_objext conftest$ac_exeext
47621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47622  (eval $ac_link) 2>conftest.er1
47623  ac_status=$?
47624  grep -v '^ *+' conftest.er1 >conftest.err
47625  rm -f conftest.er1
47626  cat conftest.err >&5
47627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47628  (exit $ac_status); } &&
47629	 { ac_try='test -z "$ac_c_werror_flag"
47630			 || test ! -s conftest.err'
47631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47632  (eval $ac_try) 2>&5
47633  ac_status=$?
47634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47635  (exit $ac_status); }; } &&
47636	 { ac_try='test -s conftest$ac_exeext'
47637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47638  (eval $ac_try) 2>&5
47639  ac_status=$?
47640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47641  (exit $ac_status); }; }; then
47642  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
47643else
47644  echo "$as_me: failed program was:" >&5
47645sed 's/^/| /' conftest.$ac_ext >&5
47646
47647fi
47648rm -f conftest.err conftest.$ac_objext \
47649      conftest$ac_exeext conftest.$ac_ext
47650	done
47651	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
47652	LIBS="$ac_save_LIBS"
47653fi
47654
47655fi
47656
47657
47658eval "ac_res=\$ac_cv_funclib_XauFileName"
47659
47660if false; then
47661
47662for ac_func in XauFileName
47663do
47664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47665echo "$as_me:$LINENO: checking for $ac_func" >&5
47666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47667if eval "test \"\${$as_ac_var+set}\" = set"; then
47668  echo $ECHO_N "(cached) $ECHO_C" >&6
47669else
47670  cat >conftest.$ac_ext <<_ACEOF
47671/* confdefs.h.  */
47672_ACEOF
47673cat confdefs.h >>conftest.$ac_ext
47674cat >>conftest.$ac_ext <<_ACEOF
47675/* end confdefs.h.  */
47676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47677   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47678#define $ac_func innocuous_$ac_func
47679
47680/* System header to define __stub macros and hopefully few prototypes,
47681    which can conflict with char $ac_func (); below.
47682    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47683    <limits.h> exists even on freestanding compilers.  */
47684
47685#ifdef __STDC__
47686# include <limits.h>
47687#else
47688# include <assert.h>
47689#endif
47690
47691#undef $ac_func
47692
47693/* Override any gcc2 internal prototype to avoid an error.  */
47694#ifdef __cplusplus
47695extern "C"
47696{
47697#endif
47698/* We use char because int might match the return type of a gcc2
47699   builtin and then its argument prototype would still apply.  */
47700char $ac_func ();
47701/* The GNU C library defines this for functions which it implements
47702    to always fail with ENOSYS.  Some functions are actually named
47703    something starting with __ and the normal name is an alias.  */
47704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47705choke me
47706#else
47707char (*f) () = $ac_func;
47708#endif
47709#ifdef __cplusplus
47710}
47711#endif
47712
47713int
47714main ()
47715{
47716return f != $ac_func;
47717  ;
47718  return 0;
47719}
47720_ACEOF
47721rm -f conftest.$ac_objext conftest$ac_exeext
47722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47723  (eval $ac_link) 2>conftest.er1
47724  ac_status=$?
47725  grep -v '^ *+' conftest.er1 >conftest.err
47726  rm -f conftest.er1
47727  cat conftest.err >&5
47728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47729  (exit $ac_status); } &&
47730	 { ac_try='test -z "$ac_c_werror_flag"
47731			 || test ! -s conftest.err'
47732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47733  (eval $ac_try) 2>&5
47734  ac_status=$?
47735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47736  (exit $ac_status); }; } &&
47737	 { ac_try='test -s conftest$ac_exeext'
47738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47739  (eval $ac_try) 2>&5
47740  ac_status=$?
47741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47742  (exit $ac_status); }; }; then
47743  eval "$as_ac_var=yes"
47744else
47745  echo "$as_me: failed program was:" >&5
47746sed 's/^/| /' conftest.$ac_ext >&5
47747
47748eval "$as_ac_var=no"
47749fi
47750rm -f conftest.err conftest.$ac_objext \
47751      conftest$ac_exeext conftest.$ac_ext
47752fi
47753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47755if test `eval echo '${'$as_ac_var'}'` = yes; then
47756  cat >>confdefs.h <<_ACEOF
47757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47758_ACEOF
47759
47760fi
47761done
47762
47763fi
47764# XauFileName
47765eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47766eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47767eval "LIB_XauFileName=$ac_res"
47768
47769case "$ac_res" in
47770	yes)
47771	eval "ac_cv_func_XauFileName=yes"
47772	eval "LIB_XauFileName="
47773	cat >>confdefs.h <<_ACEOF
47774#define $ac_tr_func 1
47775_ACEOF
47776
47777	echo "$as_me:$LINENO: result: yes" >&5
47778echo "${ECHO_T}yes" >&6
47779	;;
47780	no)
47781	eval "ac_cv_func_XauFileName=no"
47782	eval "LIB_XauFileName="
47783	echo "$as_me:$LINENO: result: no" >&5
47784echo "${ECHO_T}no" >&6
47785	;;
47786	*)
47787	eval "ac_cv_func_XauFileName=yes"
47788	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47789	cat >>confdefs.h <<_ACEOF
47790#define $ac_tr_func 1
47791_ACEOF
47792
47793	cat >>confdefs.h <<_ACEOF
47794#define $ac_tr_lib 1
47795_ACEOF
47796
47797	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47798echo "${ECHO_T}yes, in $ac_res" >&6
47799	;;
47800esac
47801
47802
47803LIBS="$ac_xxx"
47804
47805## set LIB_XauReadAuth to union of these tests, since this is what the
47806## Makefiles are using
47807case "$ac_cv_funclib_XauWriteAuth" in
47808yes)	;;
47809no)	;;
47810*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
47811		if test "$ac_cv_funclib_XauFileName" = yes; then
47812			LIB_XauReadAuth="$LIB_XauWriteAuth"
47813		else
47814			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
47815		fi
47816	else
47817		if test "$ac_cv_funclib_XauFileName" = yes; then
47818			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
47819		else
47820			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
47821		fi
47822	fi
47823	;;
47824esac
47825
47826if test "$AUTOMAKE" != ""; then
47827
47828
47829if test "$ac_cv_func_XauWriteAuth" != "yes"; then
47830  NEED_WRITEAUTH_TRUE=
47831  NEED_WRITEAUTH_FALSE='#'
47832else
47833  NEED_WRITEAUTH_TRUE='#'
47834  NEED_WRITEAUTH_FALSE=
47835fi
47836
47837else
47838
47839
47840	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
47841		NEED_WRITEAUTH_TRUE=
47842		NEED_WRITEAUTH_FALSE='#'
47843	else
47844		NEED_WRITEAUTH_TRUE='#'
47845		NEED_WRITEAUTH_FALSE=
47846	fi
47847fi
47848CFLAGS=$save_CFLAGS
47849LIBS=$save_LIBS
47850LDFLAGS=$save_LDFLAGS
47851
47852
47853
47854echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
47855echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
47856if test "${ac_cv_c_const+set}" = set; then
47857  echo $ECHO_N "(cached) $ECHO_C" >&6
47858else
47859  cat >conftest.$ac_ext <<_ACEOF
47860/* confdefs.h.  */
47861_ACEOF
47862cat confdefs.h >>conftest.$ac_ext
47863cat >>conftest.$ac_ext <<_ACEOF
47864/* end confdefs.h.  */
47865
47866int
47867main ()
47868{
47869/* FIXME: Include the comments suggested by Paul. */
47870#ifndef __cplusplus
47871  /* Ultrix mips cc rejects this.  */
47872  typedef int charset[2];
47873  const charset x;
47874  /* SunOS 4.1.1 cc rejects this.  */
47875  char const *const *ccp;
47876  char **p;
47877  /* NEC SVR4.0.2 mips cc rejects this.  */
47878  struct point {int x, y;};
47879  static struct point const zero = {0,0};
47880  /* AIX XL C 1.02.0.0 rejects this.
47881     It does not let you subtract one const X* pointer from another in
47882     an arm of an if-expression whose if-part is not a constant
47883     expression */
47884  const char *g = "string";
47885  ccp = &g + (g ? g-g : 0);
47886  /* HPUX 7.0 cc rejects these. */
47887  ++ccp;
47888  p = (char**) ccp;
47889  ccp = (char const *const *) p;
47890  { /* SCO 3.2v4 cc rejects this.  */
47891    char *t;
47892    char const *s = 0 ? (char *) 0 : (char const *) 0;
47893
47894    *t++ = 0;
47895  }
47896  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
47897    int x[] = {25, 17};
47898    const int *foo = &x[0];
47899    ++foo;
47900  }
47901  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
47902    typedef const int *iptr;
47903    iptr p = 0;
47904    ++p;
47905  }
47906  { /* AIX XL C 1.02.0.0 rejects this saying
47907       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
47908    struct s { int j; const int *ap[3]; };
47909    struct s *b; b->j = 5;
47910  }
47911  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
47912    const int foo = 10;
47913  }
47914#endif
47915
47916  ;
47917  return 0;
47918}
47919_ACEOF
47920rm -f conftest.$ac_objext
47921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47922  (eval $ac_compile) 2>conftest.er1
47923  ac_status=$?
47924  grep -v '^ *+' conftest.er1 >conftest.err
47925  rm -f conftest.er1
47926  cat conftest.err >&5
47927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47928  (exit $ac_status); } &&
47929	 { ac_try='test -z "$ac_c_werror_flag"
47930			 || test ! -s conftest.err'
47931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47932  (eval $ac_try) 2>&5
47933  ac_status=$?
47934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47935  (exit $ac_status); }; } &&
47936	 { ac_try='test -s conftest.$ac_objext'
47937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47938  (eval $ac_try) 2>&5
47939  ac_status=$?
47940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47941  (exit $ac_status); }; }; then
47942  ac_cv_c_const=yes
47943else
47944  echo "$as_me: failed program was:" >&5
47945sed 's/^/| /' conftest.$ac_ext >&5
47946
47947ac_cv_c_const=no
47948fi
47949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47950fi
47951echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
47952echo "${ECHO_T}$ac_cv_c_const" >&6
47953if test $ac_cv_c_const = no; then
47954
47955cat >>confdefs.h <<\_ACEOF
47956#define const
47957_ACEOF
47958
47959fi
47960
47961echo "$as_me:$LINENO: checking for off_t" >&5
47962echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47963if test "${ac_cv_type_off_t+set}" = set; then
47964  echo $ECHO_N "(cached) $ECHO_C" >&6
47965else
47966  cat >conftest.$ac_ext <<_ACEOF
47967/* confdefs.h.  */
47968_ACEOF
47969cat confdefs.h >>conftest.$ac_ext
47970cat >>conftest.$ac_ext <<_ACEOF
47971/* end confdefs.h.  */
47972$ac_includes_default
47973int
47974main ()
47975{
47976if ((off_t *) 0)
47977  return 0;
47978if (sizeof (off_t))
47979  return 0;
47980  ;
47981  return 0;
47982}
47983_ACEOF
47984rm -f conftest.$ac_objext
47985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47986  (eval $ac_compile) 2>conftest.er1
47987  ac_status=$?
47988  grep -v '^ *+' conftest.er1 >conftest.err
47989  rm -f conftest.er1
47990  cat conftest.err >&5
47991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47992  (exit $ac_status); } &&
47993	 { ac_try='test -z "$ac_c_werror_flag"
47994			 || test ! -s conftest.err'
47995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47996  (eval $ac_try) 2>&5
47997  ac_status=$?
47998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47999  (exit $ac_status); }; } &&
48000	 { ac_try='test -s conftest.$ac_objext'
48001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48002  (eval $ac_try) 2>&5
48003  ac_status=$?
48004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48005  (exit $ac_status); }; }; then
48006  ac_cv_type_off_t=yes
48007else
48008  echo "$as_me: failed program was:" >&5
48009sed 's/^/| /' conftest.$ac_ext >&5
48010
48011ac_cv_type_off_t=no
48012fi
48013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48014fi
48015echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
48016echo "${ECHO_T}$ac_cv_type_off_t" >&6
48017if test $ac_cv_type_off_t = yes; then
48018  :
48019else
48020
48021cat >>confdefs.h <<_ACEOF
48022#define off_t long
48023_ACEOF
48024
48025fi
48026
48027echo "$as_me:$LINENO: checking for mode_t" >&5
48028echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
48029if test "${ac_cv_type_mode_t+set}" = set; then
48030  echo $ECHO_N "(cached) $ECHO_C" >&6
48031else
48032  cat >conftest.$ac_ext <<_ACEOF
48033/* confdefs.h.  */
48034_ACEOF
48035cat confdefs.h >>conftest.$ac_ext
48036cat >>conftest.$ac_ext <<_ACEOF
48037/* end confdefs.h.  */
48038#include <sys/types.h>
48039#if STDC_HEADERS
48040#include <stdlib.h>
48041#include <stddef.h>
48042#endif
48043
48044_ACEOF
48045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48046  $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
48047  ac_cv_type_mode_t=yes
48048else
48049  ac_cv_type_mode_t=no
48050fi
48051rm -f conftest*
48052
48053fi
48054echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
48055echo "${ECHO_T}$ac_cv_type_mode_t" >&6
48056if test $ac_cv_type_mode_t = no; then
48057
48058cat >>confdefs.h <<\_ACEOF
48059#define mode_t unsigned short
48060_ACEOF
48061
48062fi
48063
48064echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
48065echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
48066if test "${ac_cv_type_sig_atomic_t+set}" = set; then
48067  echo $ECHO_N "(cached) $ECHO_C" >&6
48068else
48069  cat >conftest.$ac_ext <<_ACEOF
48070/* confdefs.h.  */
48071_ACEOF
48072cat confdefs.h >>conftest.$ac_ext
48073cat >>conftest.$ac_ext <<_ACEOF
48074/* end confdefs.h.  */
48075#include <sys/types.h>
48076#if STDC_HEADERS
48077#include <stdlib.h>
48078#include <stddef.h>
48079#endif
48080#include <signal.h>
48081_ACEOF
48082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48083  $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
48084  ac_cv_type_sig_atomic_t=yes
48085else
48086  ac_cv_type_sig_atomic_t=no
48087fi
48088rm -f conftest*
48089
48090fi
48091echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
48092echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
48093if test $ac_cv_type_sig_atomic_t = no; then
48094
48095cat >>confdefs.h <<\_ACEOF
48096#define sig_atomic_t int
48097_ACEOF
48098
48099fi
48100
48101
48102
48103cv=`echo "long long" | sed 'y%./+- %__p__%'`
48104echo "$as_me:$LINENO: checking for long long" >&5
48105echo $ECHO_N "checking for long long... $ECHO_C" >&6
48106if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
48107  echo $ECHO_N "(cached) $ECHO_C" >&6
48108else
48109  cat >conftest.$ac_ext <<_ACEOF
48110/* confdefs.h.  */
48111_ACEOF
48112cat confdefs.h >>conftest.$ac_ext
48113cat >>conftest.$ac_ext <<_ACEOF
48114/* end confdefs.h.  */
48115#include <sys/types.h>
48116#if STDC_HEADERS
48117#include <stdlib.h>
48118#include <stddef.h>
48119#endif
48120
48121int
48122main ()
48123{
48124long long foo;
48125  ;
48126  return 0;
48127}
48128_ACEOF
48129rm -f conftest.$ac_objext
48130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48131  (eval $ac_compile) 2>conftest.er1
48132  ac_status=$?
48133  grep -v '^ *+' conftest.er1 >conftest.err
48134  rm -f conftest.er1
48135  cat conftest.err >&5
48136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48137  (exit $ac_status); } &&
48138	 { ac_try='test -z "$ac_c_werror_flag"
48139			 || test ! -s conftest.err'
48140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48141  (eval $ac_try) 2>&5
48142  ac_status=$?
48143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48144  (exit $ac_status); }; } &&
48145	 { ac_try='test -s conftest.$ac_objext'
48146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48147  (eval $ac_try) 2>&5
48148  ac_status=$?
48149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48150  (exit $ac_status); }; }; then
48151  eval "ac_cv_type_$cv=yes"
48152else
48153  echo "$as_me: failed program was:" >&5
48154sed 's/^/| /' conftest.$ac_ext >&5
48155
48156eval "ac_cv_type_$cv=no"
48157fi
48158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48159fi
48160ac_foo=`eval echo \\$ac_cv_type_$cv`
48161echo "$as_me:$LINENO: result: $ac_foo" >&5
48162echo "${ECHO_T}$ac_foo" >&6
48163if test "$ac_foo" = yes; then
48164  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
48165if false; then
48166	echo "$as_me:$LINENO: checking for long long" >&5
48167echo $ECHO_N "checking for long long... $ECHO_C" >&6
48168if test "${ac_cv_type_long_long+set}" = set; then
48169  echo $ECHO_N "(cached) $ECHO_C" >&6
48170else
48171  cat >conftest.$ac_ext <<_ACEOF
48172/* confdefs.h.  */
48173_ACEOF
48174cat confdefs.h >>conftest.$ac_ext
48175cat >>conftest.$ac_ext <<_ACEOF
48176/* end confdefs.h.  */
48177$ac_includes_default
48178int
48179main ()
48180{
48181if ((long long *) 0)
48182  return 0;
48183if (sizeof (long long))
48184  return 0;
48185  ;
48186  return 0;
48187}
48188_ACEOF
48189rm -f conftest.$ac_objext
48190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48191  (eval $ac_compile) 2>conftest.er1
48192  ac_status=$?
48193  grep -v '^ *+' conftest.er1 >conftest.err
48194  rm -f conftest.er1
48195  cat conftest.err >&5
48196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48197  (exit $ac_status); } &&
48198	 { ac_try='test -z "$ac_c_werror_flag"
48199			 || test ! -s conftest.err'
48200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48201  (eval $ac_try) 2>&5
48202  ac_status=$?
48203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48204  (exit $ac_status); }; } &&
48205	 { ac_try='test -s conftest.$ac_objext'
48206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48207  (eval $ac_try) 2>&5
48208  ac_status=$?
48209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48210  (exit $ac_status); }; }; then
48211  ac_cv_type_long_long=yes
48212else
48213  echo "$as_me: failed program was:" >&5
48214sed 's/^/| /' conftest.$ac_ext >&5
48215
48216ac_cv_type_long_long=no
48217fi
48218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48219fi
48220echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
48221echo "${ECHO_T}$ac_cv_type_long_long" >&6
48222if test $ac_cv_type_long_long = yes; then
48223
48224cat >>confdefs.h <<_ACEOF
48225#define HAVE_LONG_LONG 1
48226_ACEOF
48227
48228
48229fi
48230
48231fi
48232
48233cat >>confdefs.h <<_ACEOF
48234#define $ac_tr_hdr 1
48235_ACEOF
48236
48237fi
48238
48239echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
48240echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
48241if test "${ac_cv_header_time+set}" = set; then
48242  echo $ECHO_N "(cached) $ECHO_C" >&6
48243else
48244  cat >conftest.$ac_ext <<_ACEOF
48245/* confdefs.h.  */
48246_ACEOF
48247cat confdefs.h >>conftest.$ac_ext
48248cat >>conftest.$ac_ext <<_ACEOF
48249/* end confdefs.h.  */
48250#include <sys/types.h>
48251#include <sys/time.h>
48252#include <time.h>
48253
48254int
48255main ()
48256{
48257if ((struct tm *) 0)
48258return 0;
48259  ;
48260  return 0;
48261}
48262_ACEOF
48263rm -f conftest.$ac_objext
48264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48265  (eval $ac_compile) 2>conftest.er1
48266  ac_status=$?
48267  grep -v '^ *+' conftest.er1 >conftest.err
48268  rm -f conftest.er1
48269  cat conftest.err >&5
48270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48271  (exit $ac_status); } &&
48272	 { ac_try='test -z "$ac_c_werror_flag"
48273			 || test ! -s conftest.err'
48274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48275  (eval $ac_try) 2>&5
48276  ac_status=$?
48277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48278  (exit $ac_status); }; } &&
48279	 { ac_try='test -s conftest.$ac_objext'
48280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48281  (eval $ac_try) 2>&5
48282  ac_status=$?
48283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48284  (exit $ac_status); }; }; then
48285  ac_cv_header_time=yes
48286else
48287  echo "$as_me: failed program was:" >&5
48288sed 's/^/| /' conftest.$ac_ext >&5
48289
48290ac_cv_header_time=no
48291fi
48292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48293fi
48294echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48295echo "${ECHO_T}$ac_cv_header_time" >&6
48296if test $ac_cv_header_time = yes; then
48297
48298cat >>confdefs.h <<\_ACEOF
48299#define TIME_WITH_SYS_TIME 1
48300_ACEOF
48301
48302fi
48303
48304echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
48305echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
48306if test "${ac_cv_struct_tm+set}" = set; then
48307  echo $ECHO_N "(cached) $ECHO_C" >&6
48308else
48309  cat >conftest.$ac_ext <<_ACEOF
48310/* confdefs.h.  */
48311_ACEOF
48312cat confdefs.h >>conftest.$ac_ext
48313cat >>conftest.$ac_ext <<_ACEOF
48314/* end confdefs.h.  */
48315#include <sys/types.h>
48316#include <time.h>
48317
48318int
48319main ()
48320{
48321struct tm *tp; tp->tm_sec;
48322  ;
48323  return 0;
48324}
48325_ACEOF
48326rm -f conftest.$ac_objext
48327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48328  (eval $ac_compile) 2>conftest.er1
48329  ac_status=$?
48330  grep -v '^ *+' conftest.er1 >conftest.err
48331  rm -f conftest.er1
48332  cat conftest.err >&5
48333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48334  (exit $ac_status); } &&
48335	 { ac_try='test -z "$ac_c_werror_flag"
48336			 || test ! -s conftest.err'
48337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48338  (eval $ac_try) 2>&5
48339  ac_status=$?
48340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48341  (exit $ac_status); }; } &&
48342	 { ac_try='test -s conftest.$ac_objext'
48343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48344  (eval $ac_try) 2>&5
48345  ac_status=$?
48346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48347  (exit $ac_status); }; }; then
48348  ac_cv_struct_tm=time.h
48349else
48350  echo "$as_me: failed program was:" >&5
48351sed 's/^/| /' conftest.$ac_ext >&5
48352
48353ac_cv_struct_tm=sys/time.h
48354fi
48355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48356fi
48357echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
48358echo "${ECHO_T}$ac_cv_struct_tm" >&6
48359if test $ac_cv_struct_tm = sys/time.h; then
48360
48361cat >>confdefs.h <<\_ACEOF
48362#define TM_IN_SYS_TIME 1
48363_ACEOF
48364
48365fi
48366
48367
48368echo "$as_me:$LINENO: checking for ANSI C header files" >&5
48369echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
48370if test "${ac_cv_header_stdc+set}" = set; then
48371  echo $ECHO_N "(cached) $ECHO_C" >&6
48372else
48373  cat >conftest.$ac_ext <<_ACEOF
48374/* confdefs.h.  */
48375_ACEOF
48376cat confdefs.h >>conftest.$ac_ext
48377cat >>conftest.$ac_ext <<_ACEOF
48378/* end confdefs.h.  */
48379#include <stdlib.h>
48380#include <stdarg.h>
48381#include <string.h>
48382#include <float.h>
48383
48384int
48385main ()
48386{
48387
48388  ;
48389  return 0;
48390}
48391_ACEOF
48392rm -f conftest.$ac_objext
48393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48394  (eval $ac_compile) 2>conftest.er1
48395  ac_status=$?
48396  grep -v '^ *+' conftest.er1 >conftest.err
48397  rm -f conftest.er1
48398  cat conftest.err >&5
48399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48400  (exit $ac_status); } &&
48401	 { ac_try='test -z "$ac_c_werror_flag"
48402			 || test ! -s conftest.err'
48403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48404  (eval $ac_try) 2>&5
48405  ac_status=$?
48406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48407  (exit $ac_status); }; } &&
48408	 { ac_try='test -s conftest.$ac_objext'
48409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48410  (eval $ac_try) 2>&5
48411  ac_status=$?
48412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48413  (exit $ac_status); }; }; then
48414  ac_cv_header_stdc=yes
48415else
48416  echo "$as_me: failed program was:" >&5
48417sed 's/^/| /' conftest.$ac_ext >&5
48418
48419ac_cv_header_stdc=no
48420fi
48421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48422
48423if test $ac_cv_header_stdc = yes; then
48424  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
48425  cat >conftest.$ac_ext <<_ACEOF
48426/* confdefs.h.  */
48427_ACEOF
48428cat confdefs.h >>conftest.$ac_ext
48429cat >>conftest.$ac_ext <<_ACEOF
48430/* end confdefs.h.  */
48431#include <string.h>
48432
48433_ACEOF
48434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48435  $EGREP "memchr" >/dev/null 2>&1; then
48436  :
48437else
48438  ac_cv_header_stdc=no
48439fi
48440rm -f conftest*
48441
48442fi
48443
48444if test $ac_cv_header_stdc = yes; then
48445  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
48446  cat >conftest.$ac_ext <<_ACEOF
48447/* confdefs.h.  */
48448_ACEOF
48449cat confdefs.h >>conftest.$ac_ext
48450cat >>conftest.$ac_ext <<_ACEOF
48451/* end confdefs.h.  */
48452#include <stdlib.h>
48453
48454_ACEOF
48455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48456  $EGREP "free" >/dev/null 2>&1; then
48457  :
48458else
48459  ac_cv_header_stdc=no
48460fi
48461rm -f conftest*
48462
48463fi
48464
48465if test $ac_cv_header_stdc = yes; then
48466  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
48467  if test "$cross_compiling" = yes; then
48468  :
48469else
48470  cat >conftest.$ac_ext <<_ACEOF
48471/* confdefs.h.  */
48472_ACEOF
48473cat confdefs.h >>conftest.$ac_ext
48474cat >>conftest.$ac_ext <<_ACEOF
48475/* end confdefs.h.  */
48476#include <ctype.h>
48477#if ((' ' & 0x0FF) == 0x020)
48478# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
48479# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
48480#else
48481# define ISLOWER(c) \
48482		   (('a' <= (c) && (c) <= 'i') \
48483		     || ('j' <= (c) && (c) <= 'r') \
48484		     || ('s' <= (c) && (c) <= 'z'))
48485# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
48486#endif
48487
48488#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
48489int
48490main ()
48491{
48492  int i;
48493  for (i = 0; i < 256; i++)
48494    if (XOR (islower (i), ISLOWER (i))
48495	|| toupper (i) != TOUPPER (i))
48496      exit(2);
48497  exit (0);
48498}
48499_ACEOF
48500rm -f conftest$ac_exeext
48501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48502  (eval $ac_link) 2>&5
48503  ac_status=$?
48504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48505  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48507  (eval $ac_try) 2>&5
48508  ac_status=$?
48509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48510  (exit $ac_status); }; }; then
48511  :
48512else
48513  echo "$as_me: program exited with status $ac_status" >&5
48514echo "$as_me: failed program was:" >&5
48515sed 's/^/| /' conftest.$ac_ext >&5
48516
48517( exit $ac_status )
48518ac_cv_header_stdc=no
48519fi
48520rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48521fi
48522fi
48523fi
48524echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
48525echo "${ECHO_T}$ac_cv_header_stdc" >&6
48526if test $ac_cv_header_stdc = yes; then
48527
48528cat >>confdefs.h <<\_ACEOF
48529#define STDC_HEADERS 1
48530_ACEOF
48531
48532fi
48533
48534
48535
48536
48537
48538
48539
48540
48541
48542
48543
48544
48545
48546
48547
48548
48549
48550
48551
48552
48553
48554
48555
48556
48557
48558
48559
48560
48561
48562
48563
48564
48565
48566
48567
48568
48569
48570
48571
48572
48573
48574
48575
48576
48577
48578
48579
48580
48581
48582
48583
48584
48585for ac_header in \
48586	arpa/ftp.h				\
48587	arpa/telnet.h				\
48588	bind/bitypes.h				\
48589	bsdsetjmp.h				\
48590	curses.h				\
48591	dlfcn.h					\
48592	fnmatch.h				\
48593	inttypes.h				\
48594	io.h					\
48595	libutil.h				\
48596	limits.h				\
48597	maillock.h				\
48598	netgroup.h				\
48599	netinet/in6_machtypes.h			\
48600	netinfo/ni.h				\
48601	pthread.h				\
48602	pty.h					\
48603	sac.h					\
48604	security/pam_modules.h			\
48605	sgtty.h					\
48606	siad.h					\
48607	signal.h				\
48608	stropts.h				\
48609	sys/bitypes.h				\
48610	sys/category.h				\
48611	sys/file.h				\
48612	sys/filio.h				\
48613	sys/ioccom.h				\
48614	sys/mman.h				\
48615	sys/pty.h				\
48616	sys/ptyio.h				\
48617	sys/ptyvar.h				\
48618	sys/select.h				\
48619	sys/str_tty.h				\
48620	sys/stream.h				\
48621	sys/stropts.h				\
48622	sys/strtty.h				\
48623	sys/syscall.h				\
48624	sys/termio.h				\
48625	sys/timeb.h				\
48626	sys/times.h				\
48627	sys/un.h				\
48628	term.h					\
48629	termcap.h				\
48630	termio.h				\
48631	time.h					\
48632	tmpdir.h				\
48633	udb.h					\
48634	utmp.h					\
48635	utmpx.h					\
48636
48637do
48638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48639if eval "test \"\${$as_ac_Header+set}\" = set"; then
48640  echo "$as_me:$LINENO: checking for $ac_header" >&5
48641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48642if eval "test \"\${$as_ac_Header+set}\" = set"; then
48643  echo $ECHO_N "(cached) $ECHO_C" >&6
48644fi
48645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48647else
48648  # Is the header compilable?
48649echo "$as_me:$LINENO: checking $ac_header usability" >&5
48650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
48651cat >conftest.$ac_ext <<_ACEOF
48652/* confdefs.h.  */
48653_ACEOF
48654cat confdefs.h >>conftest.$ac_ext
48655cat >>conftest.$ac_ext <<_ACEOF
48656/* end confdefs.h.  */
48657$ac_includes_default
48658#include <$ac_header>
48659_ACEOF
48660rm -f conftest.$ac_objext
48661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48662  (eval $ac_compile) 2>conftest.er1
48663  ac_status=$?
48664  grep -v '^ *+' conftest.er1 >conftest.err
48665  rm -f conftest.er1
48666  cat conftest.err >&5
48667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48668  (exit $ac_status); } &&
48669	 { ac_try='test -z "$ac_c_werror_flag"
48670			 || test ! -s conftest.err'
48671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48672  (eval $ac_try) 2>&5
48673  ac_status=$?
48674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48675  (exit $ac_status); }; } &&
48676	 { ac_try='test -s conftest.$ac_objext'
48677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48678  (eval $ac_try) 2>&5
48679  ac_status=$?
48680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48681  (exit $ac_status); }; }; then
48682  ac_header_compiler=yes
48683else
48684  echo "$as_me: failed program was:" >&5
48685sed 's/^/| /' conftest.$ac_ext >&5
48686
48687ac_header_compiler=no
48688fi
48689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48690echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48691echo "${ECHO_T}$ac_header_compiler" >&6
48692
48693# Is the header present?
48694echo "$as_me:$LINENO: checking $ac_header presence" >&5
48695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
48696cat >conftest.$ac_ext <<_ACEOF
48697/* confdefs.h.  */
48698_ACEOF
48699cat confdefs.h >>conftest.$ac_ext
48700cat >>conftest.$ac_ext <<_ACEOF
48701/* end confdefs.h.  */
48702#include <$ac_header>
48703_ACEOF
48704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48705  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48706  ac_status=$?
48707  grep -v '^ *+' conftest.er1 >conftest.err
48708  rm -f conftest.er1
48709  cat conftest.err >&5
48710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48711  (exit $ac_status); } >/dev/null; then
48712  if test -s conftest.err; then
48713    ac_cpp_err=$ac_c_preproc_warn_flag
48714    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48715  else
48716    ac_cpp_err=
48717  fi
48718else
48719  ac_cpp_err=yes
48720fi
48721if test -z "$ac_cpp_err"; then
48722  ac_header_preproc=yes
48723else
48724  echo "$as_me: failed program was:" >&5
48725sed 's/^/| /' conftest.$ac_ext >&5
48726
48727  ac_header_preproc=no
48728fi
48729rm -f conftest.err conftest.$ac_ext
48730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48731echo "${ECHO_T}$ac_header_preproc" >&6
48732
48733# So?  What about this header?
48734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48735  yes:no: )
48736    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48738    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48740    ac_header_preproc=yes
48741    ;;
48742  no:yes:* )
48743    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48745    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48746echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48747    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48749    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48750echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48751    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48753    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48755    (
48756      cat <<\_ASBOX
48757## -------------------------------------- ##
48758## Report this to heimdal-bugs@pdc.kth.se ##
48759## -------------------------------------- ##
48760_ASBOX
48761    ) |
48762      sed "s/^/$as_me: WARNING:     /" >&2
48763    ;;
48764esac
48765echo "$as_me:$LINENO: checking for $ac_header" >&5
48766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48767if eval "test \"\${$as_ac_Header+set}\" = set"; then
48768  echo $ECHO_N "(cached) $ECHO_C" >&6
48769else
48770  eval "$as_ac_Header=\$ac_header_preproc"
48771fi
48772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48774
48775fi
48776if test `eval echo '${'$as_ac_Header'}'` = yes; then
48777  cat >>confdefs.h <<_ACEOF
48778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48779_ACEOF
48780
48781fi
48782
48783done
48784
48785
48786# Check whether --enable-netinfo or --disable-netinfo was given.
48787if test "${enable_netinfo+set}" = set; then
48788  enableval="$enable_netinfo"
48789
48790fi;
48791
48792if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
48793
48794cat >>confdefs.h <<\_ACEOF
48795#define HAVE_NETINFO 1
48796_ACEOF
48797
48798fi
48799
48800
48801
48802
48803
48804echo "$as_me:$LINENO: checking for logwtmp" >&5
48805echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
48806if test "${ac_cv_funclib_logwtmp+set}" = set; then
48807  echo $ECHO_N "(cached) $ECHO_C" >&6
48808else
48809
48810if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
48811	ac_save_LIBS="$LIBS"
48812	for ac_lib in "" util; do
48813		case "$ac_lib" in
48814		"") ;;
48815		yes) ac_lib="" ;;
48816		no) continue ;;
48817		-l*) ;;
48818		*) ac_lib="-l$ac_lib" ;;
48819		esac
48820		LIBS=" $ac_lib  $ac_save_LIBS"
48821		cat >conftest.$ac_ext <<_ACEOF
48822/* confdefs.h.  */
48823_ACEOF
48824cat confdefs.h >>conftest.$ac_ext
48825cat >>conftest.$ac_ext <<_ACEOF
48826/* end confdefs.h.  */
48827
48828int
48829main ()
48830{
48831logwtmp()
48832  ;
48833  return 0;
48834}
48835_ACEOF
48836rm -f conftest.$ac_objext conftest$ac_exeext
48837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48838  (eval $ac_link) 2>conftest.er1
48839  ac_status=$?
48840  grep -v '^ *+' conftest.er1 >conftest.err
48841  rm -f conftest.er1
48842  cat conftest.err >&5
48843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48844  (exit $ac_status); } &&
48845	 { ac_try='test -z "$ac_c_werror_flag"
48846			 || test ! -s conftest.err'
48847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48848  (eval $ac_try) 2>&5
48849  ac_status=$?
48850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48851  (exit $ac_status); }; } &&
48852	 { ac_try='test -s conftest$ac_exeext'
48853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48854  (eval $ac_try) 2>&5
48855  ac_status=$?
48856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48857  (exit $ac_status); }; }; then
48858  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
48859else
48860  echo "$as_me: failed program was:" >&5
48861sed 's/^/| /' conftest.$ac_ext >&5
48862
48863fi
48864rm -f conftest.err conftest.$ac_objext \
48865      conftest$ac_exeext conftest.$ac_ext
48866	done
48867	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
48868	LIBS="$ac_save_LIBS"
48869fi
48870
48871fi
48872
48873
48874eval "ac_res=\$ac_cv_funclib_logwtmp"
48875
48876if false; then
48877
48878for ac_func in logwtmp
48879do
48880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48881echo "$as_me:$LINENO: checking for $ac_func" >&5
48882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48883if eval "test \"\${$as_ac_var+set}\" = set"; then
48884  echo $ECHO_N "(cached) $ECHO_C" >&6
48885else
48886  cat >conftest.$ac_ext <<_ACEOF
48887/* confdefs.h.  */
48888_ACEOF
48889cat confdefs.h >>conftest.$ac_ext
48890cat >>conftest.$ac_ext <<_ACEOF
48891/* end confdefs.h.  */
48892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48893   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48894#define $ac_func innocuous_$ac_func
48895
48896/* System header to define __stub macros and hopefully few prototypes,
48897    which can conflict with char $ac_func (); below.
48898    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48899    <limits.h> exists even on freestanding compilers.  */
48900
48901#ifdef __STDC__
48902# include <limits.h>
48903#else
48904# include <assert.h>
48905#endif
48906
48907#undef $ac_func
48908
48909/* Override any gcc2 internal prototype to avoid an error.  */
48910#ifdef __cplusplus
48911extern "C"
48912{
48913#endif
48914/* We use char because int might match the return type of a gcc2
48915   builtin and then its argument prototype would still apply.  */
48916char $ac_func ();
48917/* The GNU C library defines this for functions which it implements
48918    to always fail with ENOSYS.  Some functions are actually named
48919    something starting with __ and the normal name is an alias.  */
48920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48921choke me
48922#else
48923char (*f) () = $ac_func;
48924#endif
48925#ifdef __cplusplus
48926}
48927#endif
48928
48929int
48930main ()
48931{
48932return f != $ac_func;
48933  ;
48934  return 0;
48935}
48936_ACEOF
48937rm -f conftest.$ac_objext conftest$ac_exeext
48938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48939  (eval $ac_link) 2>conftest.er1
48940  ac_status=$?
48941  grep -v '^ *+' conftest.er1 >conftest.err
48942  rm -f conftest.er1
48943  cat conftest.err >&5
48944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48945  (exit $ac_status); } &&
48946	 { ac_try='test -z "$ac_c_werror_flag"
48947			 || test ! -s conftest.err'
48948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48949  (eval $ac_try) 2>&5
48950  ac_status=$?
48951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48952  (exit $ac_status); }; } &&
48953	 { ac_try='test -s conftest$ac_exeext'
48954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48955  (eval $ac_try) 2>&5
48956  ac_status=$?
48957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48958  (exit $ac_status); }; }; then
48959  eval "$as_ac_var=yes"
48960else
48961  echo "$as_me: failed program was:" >&5
48962sed 's/^/| /' conftest.$ac_ext >&5
48963
48964eval "$as_ac_var=no"
48965fi
48966rm -f conftest.err conftest.$ac_objext \
48967      conftest$ac_exeext conftest.$ac_ext
48968fi
48969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48970echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48971if test `eval echo '${'$as_ac_var'}'` = yes; then
48972  cat >>confdefs.h <<_ACEOF
48973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48974_ACEOF
48975
48976fi
48977done
48978
48979fi
48980# logwtmp
48981eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48982eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48983eval "LIB_logwtmp=$ac_res"
48984
48985case "$ac_res" in
48986	yes)
48987	eval "ac_cv_func_logwtmp=yes"
48988	eval "LIB_logwtmp="
48989	cat >>confdefs.h <<_ACEOF
48990#define $ac_tr_func 1
48991_ACEOF
48992
48993	echo "$as_me:$LINENO: result: yes" >&5
48994echo "${ECHO_T}yes" >&6
48995	;;
48996	no)
48997	eval "ac_cv_func_logwtmp=no"
48998	eval "LIB_logwtmp="
48999	echo "$as_me:$LINENO: result: no" >&5
49000echo "${ECHO_T}no" >&6
49001	;;
49002	*)
49003	eval "ac_cv_func_logwtmp=yes"
49004	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49005	cat >>confdefs.h <<_ACEOF
49006#define $ac_tr_func 1
49007_ACEOF
49008
49009	cat >>confdefs.h <<_ACEOF
49010#define $ac_tr_lib 1
49011_ACEOF
49012
49013	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49014echo "${ECHO_T}yes, in $ac_res" >&6
49015	;;
49016esac
49017
49018
49019
49020
49021
49022echo "$as_me:$LINENO: checking for logout" >&5
49023echo $ECHO_N "checking for logout... $ECHO_C" >&6
49024if test "${ac_cv_funclib_logout+set}" = set; then
49025  echo $ECHO_N "(cached) $ECHO_C" >&6
49026else
49027
49028if eval "test \"\$ac_cv_func_logout\" != yes" ; then
49029	ac_save_LIBS="$LIBS"
49030	for ac_lib in "" util; do
49031		case "$ac_lib" in
49032		"") ;;
49033		yes) ac_lib="" ;;
49034		no) continue ;;
49035		-l*) ;;
49036		*) ac_lib="-l$ac_lib" ;;
49037		esac
49038		LIBS=" $ac_lib  $ac_save_LIBS"
49039		cat >conftest.$ac_ext <<_ACEOF
49040/* confdefs.h.  */
49041_ACEOF
49042cat confdefs.h >>conftest.$ac_ext
49043cat >>conftest.$ac_ext <<_ACEOF
49044/* end confdefs.h.  */
49045
49046int
49047main ()
49048{
49049logout()
49050  ;
49051  return 0;
49052}
49053_ACEOF
49054rm -f conftest.$ac_objext conftest$ac_exeext
49055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49056  (eval $ac_link) 2>conftest.er1
49057  ac_status=$?
49058  grep -v '^ *+' conftest.er1 >conftest.err
49059  rm -f conftest.er1
49060  cat conftest.err >&5
49061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49062  (exit $ac_status); } &&
49063	 { ac_try='test -z "$ac_c_werror_flag"
49064			 || test ! -s conftest.err'
49065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49066  (eval $ac_try) 2>&5
49067  ac_status=$?
49068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49069  (exit $ac_status); }; } &&
49070	 { ac_try='test -s conftest$ac_exeext'
49071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49072  (eval $ac_try) 2>&5
49073  ac_status=$?
49074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49075  (exit $ac_status); }; }; then
49076  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
49077else
49078  echo "$as_me: failed program was:" >&5
49079sed 's/^/| /' conftest.$ac_ext >&5
49080
49081fi
49082rm -f conftest.err conftest.$ac_objext \
49083      conftest$ac_exeext conftest.$ac_ext
49084	done
49085	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
49086	LIBS="$ac_save_LIBS"
49087fi
49088
49089fi
49090
49091
49092eval "ac_res=\$ac_cv_funclib_logout"
49093
49094if false; then
49095
49096for ac_func in logout
49097do
49098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49099echo "$as_me:$LINENO: checking for $ac_func" >&5
49100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49101if eval "test \"\${$as_ac_var+set}\" = set"; then
49102  echo $ECHO_N "(cached) $ECHO_C" >&6
49103else
49104  cat >conftest.$ac_ext <<_ACEOF
49105/* confdefs.h.  */
49106_ACEOF
49107cat confdefs.h >>conftest.$ac_ext
49108cat >>conftest.$ac_ext <<_ACEOF
49109/* end confdefs.h.  */
49110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49111   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49112#define $ac_func innocuous_$ac_func
49113
49114/* System header to define __stub macros and hopefully few prototypes,
49115    which can conflict with char $ac_func (); below.
49116    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49117    <limits.h> exists even on freestanding compilers.  */
49118
49119#ifdef __STDC__
49120# include <limits.h>
49121#else
49122# include <assert.h>
49123#endif
49124
49125#undef $ac_func
49126
49127/* Override any gcc2 internal prototype to avoid an error.  */
49128#ifdef __cplusplus
49129extern "C"
49130{
49131#endif
49132/* We use char because int might match the return type of a gcc2
49133   builtin and then its argument prototype would still apply.  */
49134char $ac_func ();
49135/* The GNU C library defines this for functions which it implements
49136    to always fail with ENOSYS.  Some functions are actually named
49137    something starting with __ and the normal name is an alias.  */
49138#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49139choke me
49140#else
49141char (*f) () = $ac_func;
49142#endif
49143#ifdef __cplusplus
49144}
49145#endif
49146
49147int
49148main ()
49149{
49150return f != $ac_func;
49151  ;
49152  return 0;
49153}
49154_ACEOF
49155rm -f conftest.$ac_objext conftest$ac_exeext
49156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49157  (eval $ac_link) 2>conftest.er1
49158  ac_status=$?
49159  grep -v '^ *+' conftest.er1 >conftest.err
49160  rm -f conftest.er1
49161  cat conftest.err >&5
49162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49163  (exit $ac_status); } &&
49164	 { ac_try='test -z "$ac_c_werror_flag"
49165			 || test ! -s conftest.err'
49166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49167  (eval $ac_try) 2>&5
49168  ac_status=$?
49169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49170  (exit $ac_status); }; } &&
49171	 { ac_try='test -s conftest$ac_exeext'
49172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49173  (eval $ac_try) 2>&5
49174  ac_status=$?
49175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49176  (exit $ac_status); }; }; then
49177  eval "$as_ac_var=yes"
49178else
49179  echo "$as_me: failed program was:" >&5
49180sed 's/^/| /' conftest.$ac_ext >&5
49181
49182eval "$as_ac_var=no"
49183fi
49184rm -f conftest.err conftest.$ac_objext \
49185      conftest$ac_exeext conftest.$ac_ext
49186fi
49187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49188echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49189if test `eval echo '${'$as_ac_var'}'` = yes; then
49190  cat >>confdefs.h <<_ACEOF
49191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49192_ACEOF
49193
49194fi
49195done
49196
49197fi
49198# logout
49199eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49200eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49201eval "LIB_logout=$ac_res"
49202
49203case "$ac_res" in
49204	yes)
49205	eval "ac_cv_func_logout=yes"
49206	eval "LIB_logout="
49207	cat >>confdefs.h <<_ACEOF
49208#define $ac_tr_func 1
49209_ACEOF
49210
49211	echo "$as_me:$LINENO: result: yes" >&5
49212echo "${ECHO_T}yes" >&6
49213	;;
49214	no)
49215	eval "ac_cv_func_logout=no"
49216	eval "LIB_logout="
49217	echo "$as_me:$LINENO: result: no" >&5
49218echo "${ECHO_T}no" >&6
49219	;;
49220	*)
49221	eval "ac_cv_func_logout=yes"
49222	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49223	cat >>confdefs.h <<_ACEOF
49224#define $ac_tr_func 1
49225_ACEOF
49226
49227	cat >>confdefs.h <<_ACEOF
49228#define $ac_tr_lib 1
49229_ACEOF
49230
49231	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49232echo "${ECHO_T}yes, in $ac_res" >&6
49233	;;
49234esac
49235
49236
49237
49238
49239
49240echo "$as_me:$LINENO: checking for openpty" >&5
49241echo $ECHO_N "checking for openpty... $ECHO_C" >&6
49242if test "${ac_cv_funclib_openpty+set}" = set; then
49243  echo $ECHO_N "(cached) $ECHO_C" >&6
49244else
49245
49246if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
49247	ac_save_LIBS="$LIBS"
49248	for ac_lib in "" util; do
49249		case "$ac_lib" in
49250		"") ;;
49251		yes) ac_lib="" ;;
49252		no) continue ;;
49253		-l*) ;;
49254		*) ac_lib="-l$ac_lib" ;;
49255		esac
49256		LIBS=" $ac_lib  $ac_save_LIBS"
49257		cat >conftest.$ac_ext <<_ACEOF
49258/* confdefs.h.  */
49259_ACEOF
49260cat confdefs.h >>conftest.$ac_ext
49261cat >>conftest.$ac_ext <<_ACEOF
49262/* end confdefs.h.  */
49263
49264int
49265main ()
49266{
49267openpty()
49268  ;
49269  return 0;
49270}
49271_ACEOF
49272rm -f conftest.$ac_objext conftest$ac_exeext
49273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49274  (eval $ac_link) 2>conftest.er1
49275  ac_status=$?
49276  grep -v '^ *+' conftest.er1 >conftest.err
49277  rm -f conftest.er1
49278  cat conftest.err >&5
49279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49280  (exit $ac_status); } &&
49281	 { ac_try='test -z "$ac_c_werror_flag"
49282			 || test ! -s conftest.err'
49283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49284  (eval $ac_try) 2>&5
49285  ac_status=$?
49286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49287  (exit $ac_status); }; } &&
49288	 { ac_try='test -s conftest$ac_exeext'
49289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49290  (eval $ac_try) 2>&5
49291  ac_status=$?
49292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49293  (exit $ac_status); }; }; then
49294  eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
49295else
49296  echo "$as_me: failed program was:" >&5
49297sed 's/^/| /' conftest.$ac_ext >&5
49298
49299fi
49300rm -f conftest.err conftest.$ac_objext \
49301      conftest$ac_exeext conftest.$ac_ext
49302	done
49303	eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
49304	LIBS="$ac_save_LIBS"
49305fi
49306
49307fi
49308
49309
49310eval "ac_res=\$ac_cv_funclib_openpty"
49311
49312if false; then
49313
49314for ac_func in openpty
49315do
49316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49317echo "$as_me:$LINENO: checking for $ac_func" >&5
49318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49319if eval "test \"\${$as_ac_var+set}\" = set"; then
49320  echo $ECHO_N "(cached) $ECHO_C" >&6
49321else
49322  cat >conftest.$ac_ext <<_ACEOF
49323/* confdefs.h.  */
49324_ACEOF
49325cat confdefs.h >>conftest.$ac_ext
49326cat >>conftest.$ac_ext <<_ACEOF
49327/* end confdefs.h.  */
49328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49329   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49330#define $ac_func innocuous_$ac_func
49331
49332/* System header to define __stub macros and hopefully few prototypes,
49333    which can conflict with char $ac_func (); below.
49334    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49335    <limits.h> exists even on freestanding compilers.  */
49336
49337#ifdef __STDC__
49338# include <limits.h>
49339#else
49340# include <assert.h>
49341#endif
49342
49343#undef $ac_func
49344
49345/* Override any gcc2 internal prototype to avoid an error.  */
49346#ifdef __cplusplus
49347extern "C"
49348{
49349#endif
49350/* We use char because int might match the return type of a gcc2
49351   builtin and then its argument prototype would still apply.  */
49352char $ac_func ();
49353/* The GNU C library defines this for functions which it implements
49354    to always fail with ENOSYS.  Some functions are actually named
49355    something starting with __ and the normal name is an alias.  */
49356#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49357choke me
49358#else
49359char (*f) () = $ac_func;
49360#endif
49361#ifdef __cplusplus
49362}
49363#endif
49364
49365int
49366main ()
49367{
49368return f != $ac_func;
49369  ;
49370  return 0;
49371}
49372_ACEOF
49373rm -f conftest.$ac_objext conftest$ac_exeext
49374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49375  (eval $ac_link) 2>conftest.er1
49376  ac_status=$?
49377  grep -v '^ *+' conftest.er1 >conftest.err
49378  rm -f conftest.er1
49379  cat conftest.err >&5
49380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49381  (exit $ac_status); } &&
49382	 { ac_try='test -z "$ac_c_werror_flag"
49383			 || test ! -s conftest.err'
49384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49385  (eval $ac_try) 2>&5
49386  ac_status=$?
49387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49388  (exit $ac_status); }; } &&
49389	 { ac_try='test -s conftest$ac_exeext'
49390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49391  (eval $ac_try) 2>&5
49392  ac_status=$?
49393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49394  (exit $ac_status); }; }; then
49395  eval "$as_ac_var=yes"
49396else
49397  echo "$as_me: failed program was:" >&5
49398sed 's/^/| /' conftest.$ac_ext >&5
49399
49400eval "$as_ac_var=no"
49401fi
49402rm -f conftest.err conftest.$ac_objext \
49403      conftest$ac_exeext conftest.$ac_ext
49404fi
49405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49406echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49407if test `eval echo '${'$as_ac_var'}'` = yes; then
49408  cat >>confdefs.h <<_ACEOF
49409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49410_ACEOF
49411
49412fi
49413done
49414
49415fi
49416# openpty
49417eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49418eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49419eval "LIB_openpty=$ac_res"
49420
49421case "$ac_res" in
49422	yes)
49423	eval "ac_cv_func_openpty=yes"
49424	eval "LIB_openpty="
49425	cat >>confdefs.h <<_ACEOF
49426#define $ac_tr_func 1
49427_ACEOF
49428
49429	echo "$as_me:$LINENO: result: yes" >&5
49430echo "${ECHO_T}yes" >&6
49431	;;
49432	no)
49433	eval "ac_cv_func_openpty=no"
49434	eval "LIB_openpty="
49435	echo "$as_me:$LINENO: result: no" >&5
49436echo "${ECHO_T}no" >&6
49437	;;
49438	*)
49439	eval "ac_cv_func_openpty=yes"
49440	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49441	cat >>confdefs.h <<_ACEOF
49442#define $ac_tr_func 1
49443_ACEOF
49444
49445	cat >>confdefs.h <<_ACEOF
49446#define $ac_tr_lib 1
49447_ACEOF
49448
49449	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49450echo "${ECHO_T}yes, in $ac_res" >&6
49451	;;
49452esac
49453
49454
49455
49456
49457
49458echo "$as_me:$LINENO: checking for tgetent" >&5
49459echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
49460if test "${ac_cv_funclib_tgetent+set}" = set; then
49461  echo $ECHO_N "(cached) $ECHO_C" >&6
49462else
49463
49464if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
49465	ac_save_LIBS="$LIBS"
49466	for ac_lib in "" termcap ncurses curses; do
49467		case "$ac_lib" in
49468		"") ;;
49469		yes) ac_lib="" ;;
49470		no) continue ;;
49471		-l*) ;;
49472		*) ac_lib="-l$ac_lib" ;;
49473		esac
49474		LIBS=" $ac_lib  $ac_save_LIBS"
49475		cat >conftest.$ac_ext <<_ACEOF
49476/* confdefs.h.  */
49477_ACEOF
49478cat confdefs.h >>conftest.$ac_ext
49479cat >>conftest.$ac_ext <<_ACEOF
49480/* end confdefs.h.  */
49481
49482int
49483main ()
49484{
49485tgetent()
49486  ;
49487  return 0;
49488}
49489_ACEOF
49490rm -f conftest.$ac_objext conftest$ac_exeext
49491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49492  (eval $ac_link) 2>conftest.er1
49493  ac_status=$?
49494  grep -v '^ *+' conftest.er1 >conftest.err
49495  rm -f conftest.er1
49496  cat conftest.err >&5
49497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49498  (exit $ac_status); } &&
49499	 { ac_try='test -z "$ac_c_werror_flag"
49500			 || test ! -s conftest.err'
49501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49502  (eval $ac_try) 2>&5
49503  ac_status=$?
49504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49505  (exit $ac_status); }; } &&
49506	 { ac_try='test -s conftest$ac_exeext'
49507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49508  (eval $ac_try) 2>&5
49509  ac_status=$?
49510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49511  (exit $ac_status); }; }; then
49512  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
49513else
49514  echo "$as_me: failed program was:" >&5
49515sed 's/^/| /' conftest.$ac_ext >&5
49516
49517fi
49518rm -f conftest.err conftest.$ac_objext \
49519      conftest$ac_exeext conftest.$ac_ext
49520	done
49521	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
49522	LIBS="$ac_save_LIBS"
49523fi
49524
49525fi
49526
49527
49528eval "ac_res=\$ac_cv_funclib_tgetent"
49529
49530if false; then
49531
49532for ac_func in tgetent
49533do
49534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49535echo "$as_me:$LINENO: checking for $ac_func" >&5
49536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49537if eval "test \"\${$as_ac_var+set}\" = set"; then
49538  echo $ECHO_N "(cached) $ECHO_C" >&6
49539else
49540  cat >conftest.$ac_ext <<_ACEOF
49541/* confdefs.h.  */
49542_ACEOF
49543cat confdefs.h >>conftest.$ac_ext
49544cat >>conftest.$ac_ext <<_ACEOF
49545/* end confdefs.h.  */
49546/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49547   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49548#define $ac_func innocuous_$ac_func
49549
49550/* System header to define __stub macros and hopefully few prototypes,
49551    which can conflict with char $ac_func (); below.
49552    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49553    <limits.h> exists even on freestanding compilers.  */
49554
49555#ifdef __STDC__
49556# include <limits.h>
49557#else
49558# include <assert.h>
49559#endif
49560
49561#undef $ac_func
49562
49563/* Override any gcc2 internal prototype to avoid an error.  */
49564#ifdef __cplusplus
49565extern "C"
49566{
49567#endif
49568/* We use char because int might match the return type of a gcc2
49569   builtin and then its argument prototype would still apply.  */
49570char $ac_func ();
49571/* The GNU C library defines this for functions which it implements
49572    to always fail with ENOSYS.  Some functions are actually named
49573    something starting with __ and the normal name is an alias.  */
49574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49575choke me
49576#else
49577char (*f) () = $ac_func;
49578#endif
49579#ifdef __cplusplus
49580}
49581#endif
49582
49583int
49584main ()
49585{
49586return f != $ac_func;
49587  ;
49588  return 0;
49589}
49590_ACEOF
49591rm -f conftest.$ac_objext conftest$ac_exeext
49592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49593  (eval $ac_link) 2>conftest.er1
49594  ac_status=$?
49595  grep -v '^ *+' conftest.er1 >conftest.err
49596  rm -f conftest.er1
49597  cat conftest.err >&5
49598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49599  (exit $ac_status); } &&
49600	 { ac_try='test -z "$ac_c_werror_flag"
49601			 || test ! -s conftest.err'
49602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49603  (eval $ac_try) 2>&5
49604  ac_status=$?
49605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49606  (exit $ac_status); }; } &&
49607	 { ac_try='test -s conftest$ac_exeext'
49608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49609  (eval $ac_try) 2>&5
49610  ac_status=$?
49611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49612  (exit $ac_status); }; }; then
49613  eval "$as_ac_var=yes"
49614else
49615  echo "$as_me: failed program was:" >&5
49616sed 's/^/| /' conftest.$ac_ext >&5
49617
49618eval "$as_ac_var=no"
49619fi
49620rm -f conftest.err conftest.$ac_objext \
49621      conftest$ac_exeext conftest.$ac_ext
49622fi
49623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49624echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49625if test `eval echo '${'$as_ac_var'}'` = yes; then
49626  cat >>confdefs.h <<_ACEOF
49627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49628_ACEOF
49629
49630fi
49631done
49632
49633fi
49634# tgetent
49635eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49636eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49637eval "LIB_tgetent=$ac_res"
49638
49639case "$ac_res" in
49640	yes)
49641	eval "ac_cv_func_tgetent=yes"
49642	eval "LIB_tgetent="
49643	cat >>confdefs.h <<_ACEOF
49644#define $ac_tr_func 1
49645_ACEOF
49646
49647	echo "$as_me:$LINENO: result: yes" >&5
49648echo "${ECHO_T}yes" >&6
49649	;;
49650	no)
49651	eval "ac_cv_func_tgetent=no"
49652	eval "LIB_tgetent="
49653	echo "$as_me:$LINENO: result: no" >&5
49654echo "${ECHO_T}no" >&6
49655	;;
49656	*)
49657	eval "ac_cv_func_tgetent=yes"
49658	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49659	cat >>confdefs.h <<_ACEOF
49660#define $ac_tr_func 1
49661_ACEOF
49662
49663	cat >>confdefs.h <<_ACEOF
49664#define $ac_tr_lib 1
49665_ACEOF
49666
49667	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49668echo "${ECHO_T}yes, in $ac_res" >&6
49669	;;
49670esac
49671
49672
49673
49674
49675
49676
49677
49678
49679
49680
49681
49682
49683
49684
49685
49686
49687
49688
49689
49690
49691
49692
49693
49694
49695
49696
49697
49698
49699
49700
49701
49702
49703for ac_func in 				\
49704	_getpty					\
49705	_scrsize				\
49706	fcntl					\
49707	grantpt					\
49708	mktime					\
49709	ptsname					\
49710	rand					\
49711	revoke					\
49712	select					\
49713	setitimer				\
49714	setpcred				\
49715	setpgid					\
49716	setproctitle				\
49717	setregid				\
49718	setresgid				\
49719	setresuid				\
49720	setreuid				\
49721	setsid					\
49722	setutent				\
49723	sigaction				\
49724	strstr					\
49725	timegm					\
49726	ttyname					\
49727	ttyslot					\
49728	umask					\
49729	unlockpt				\
49730	vhangup					\
49731	yp_get_default_domain			\
49732
49733do
49734as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49735echo "$as_me:$LINENO: checking for $ac_func" >&5
49736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49737if eval "test \"\${$as_ac_var+set}\" = set"; then
49738  echo $ECHO_N "(cached) $ECHO_C" >&6
49739else
49740  cat >conftest.$ac_ext <<_ACEOF
49741/* confdefs.h.  */
49742_ACEOF
49743cat confdefs.h >>conftest.$ac_ext
49744cat >>conftest.$ac_ext <<_ACEOF
49745/* end confdefs.h.  */
49746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49747   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49748#define $ac_func innocuous_$ac_func
49749
49750/* System header to define __stub macros and hopefully few prototypes,
49751    which can conflict with char $ac_func (); below.
49752    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49753    <limits.h> exists even on freestanding compilers.  */
49754
49755#ifdef __STDC__
49756# include <limits.h>
49757#else
49758# include <assert.h>
49759#endif
49760
49761#undef $ac_func
49762
49763/* Override any gcc2 internal prototype to avoid an error.  */
49764#ifdef __cplusplus
49765extern "C"
49766{
49767#endif
49768/* We use char because int might match the return type of a gcc2
49769   builtin and then its argument prototype would still apply.  */
49770char $ac_func ();
49771/* The GNU C library defines this for functions which it implements
49772    to always fail with ENOSYS.  Some functions are actually named
49773    something starting with __ and the normal name is an alias.  */
49774#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49775choke me
49776#else
49777char (*f) () = $ac_func;
49778#endif
49779#ifdef __cplusplus
49780}
49781#endif
49782
49783int
49784main ()
49785{
49786return f != $ac_func;
49787  ;
49788  return 0;
49789}
49790_ACEOF
49791rm -f conftest.$ac_objext conftest$ac_exeext
49792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49793  (eval $ac_link) 2>conftest.er1
49794  ac_status=$?
49795  grep -v '^ *+' conftest.er1 >conftest.err
49796  rm -f conftest.er1
49797  cat conftest.err >&5
49798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49799  (exit $ac_status); } &&
49800	 { ac_try='test -z "$ac_c_werror_flag"
49801			 || test ! -s conftest.err'
49802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49803  (eval $ac_try) 2>&5
49804  ac_status=$?
49805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49806  (exit $ac_status); }; } &&
49807	 { ac_try='test -s conftest$ac_exeext'
49808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49809  (eval $ac_try) 2>&5
49810  ac_status=$?
49811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49812  (exit $ac_status); }; }; then
49813  eval "$as_ac_var=yes"
49814else
49815  echo "$as_me: failed program was:" >&5
49816sed 's/^/| /' conftest.$ac_ext >&5
49817
49818eval "$as_ac_var=no"
49819fi
49820rm -f conftest.err conftest.$ac_objext \
49821      conftest$ac_exeext conftest.$ac_ext
49822fi
49823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49824echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49825if test `eval echo '${'$as_ac_var'}'` = yes; then
49826  cat >>confdefs.h <<_ACEOF
49827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49828_ACEOF
49829
49830fi
49831done
49832
49833
49834
49835
49836for ac_header in stdlib.h unistd.h
49837do
49838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49839if eval "test \"\${$as_ac_Header+set}\" = set"; then
49840  echo "$as_me:$LINENO: checking for $ac_header" >&5
49841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49842if eval "test \"\${$as_ac_Header+set}\" = set"; then
49843  echo $ECHO_N "(cached) $ECHO_C" >&6
49844fi
49845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49847else
49848  # Is the header compilable?
49849echo "$as_me:$LINENO: checking $ac_header usability" >&5
49850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49851cat >conftest.$ac_ext <<_ACEOF
49852/* confdefs.h.  */
49853_ACEOF
49854cat confdefs.h >>conftest.$ac_ext
49855cat >>conftest.$ac_ext <<_ACEOF
49856/* end confdefs.h.  */
49857$ac_includes_default
49858#include <$ac_header>
49859_ACEOF
49860rm -f conftest.$ac_objext
49861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49862  (eval $ac_compile) 2>conftest.er1
49863  ac_status=$?
49864  grep -v '^ *+' conftest.er1 >conftest.err
49865  rm -f conftest.er1
49866  cat conftest.err >&5
49867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49868  (exit $ac_status); } &&
49869	 { ac_try='test -z "$ac_c_werror_flag"
49870			 || test ! -s conftest.err'
49871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49872  (eval $ac_try) 2>&5
49873  ac_status=$?
49874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49875  (exit $ac_status); }; } &&
49876	 { ac_try='test -s conftest.$ac_objext'
49877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49878  (eval $ac_try) 2>&5
49879  ac_status=$?
49880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49881  (exit $ac_status); }; }; then
49882  ac_header_compiler=yes
49883else
49884  echo "$as_me: failed program was:" >&5
49885sed 's/^/| /' conftest.$ac_ext >&5
49886
49887ac_header_compiler=no
49888fi
49889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49891echo "${ECHO_T}$ac_header_compiler" >&6
49892
49893# Is the header present?
49894echo "$as_me:$LINENO: checking $ac_header presence" >&5
49895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49896cat >conftest.$ac_ext <<_ACEOF
49897/* confdefs.h.  */
49898_ACEOF
49899cat confdefs.h >>conftest.$ac_ext
49900cat >>conftest.$ac_ext <<_ACEOF
49901/* end confdefs.h.  */
49902#include <$ac_header>
49903_ACEOF
49904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49905  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49906  ac_status=$?
49907  grep -v '^ *+' conftest.er1 >conftest.err
49908  rm -f conftest.er1
49909  cat conftest.err >&5
49910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49911  (exit $ac_status); } >/dev/null; then
49912  if test -s conftest.err; then
49913    ac_cpp_err=$ac_c_preproc_warn_flag
49914    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
49915  else
49916    ac_cpp_err=
49917  fi
49918else
49919  ac_cpp_err=yes
49920fi
49921if test -z "$ac_cpp_err"; then
49922  ac_header_preproc=yes
49923else
49924  echo "$as_me: failed program was:" >&5
49925sed 's/^/| /' conftest.$ac_ext >&5
49926
49927  ac_header_preproc=no
49928fi
49929rm -f conftest.err conftest.$ac_ext
49930echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49931echo "${ECHO_T}$ac_header_preproc" >&6
49932
49933# So?  What about this header?
49934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49935  yes:no: )
49936    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49938    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49939echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49940    ac_header_preproc=yes
49941    ;;
49942  no:yes:* )
49943    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49945    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49946echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49947    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49948echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49949    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49950echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49951    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49953    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49954echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49955    (
49956      cat <<\_ASBOX
49957## -------------------------------------- ##
49958## Report this to heimdal-bugs@pdc.kth.se ##
49959## -------------------------------------- ##
49960_ASBOX
49961    ) |
49962      sed "s/^/$as_me: WARNING:     /" >&2
49963    ;;
49964esac
49965echo "$as_me:$LINENO: checking for $ac_header" >&5
49966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49967if eval "test \"\${$as_ac_Header+set}\" = set"; then
49968  echo $ECHO_N "(cached) $ECHO_C" >&6
49969else
49970  eval "$as_ac_Header=\$ac_header_preproc"
49971fi
49972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49974
49975fi
49976if test `eval echo '${'$as_ac_Header'}'` = yes; then
49977  cat >>confdefs.h <<_ACEOF
49978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49979_ACEOF
49980
49981fi
49982
49983done
49984
49985
49986for ac_func in getpagesize
49987do
49988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49989echo "$as_me:$LINENO: checking for $ac_func" >&5
49990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49991if eval "test \"\${$as_ac_var+set}\" = set"; then
49992  echo $ECHO_N "(cached) $ECHO_C" >&6
49993else
49994  cat >conftest.$ac_ext <<_ACEOF
49995/* confdefs.h.  */
49996_ACEOF
49997cat confdefs.h >>conftest.$ac_ext
49998cat >>conftest.$ac_ext <<_ACEOF
49999/* end confdefs.h.  */
50000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50001   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50002#define $ac_func innocuous_$ac_func
50003
50004/* System header to define __stub macros and hopefully few prototypes,
50005    which can conflict with char $ac_func (); below.
50006    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50007    <limits.h> exists even on freestanding compilers.  */
50008
50009#ifdef __STDC__
50010# include <limits.h>
50011#else
50012# include <assert.h>
50013#endif
50014
50015#undef $ac_func
50016
50017/* Override any gcc2 internal prototype to avoid an error.  */
50018#ifdef __cplusplus
50019extern "C"
50020{
50021#endif
50022/* We use char because int might match the return type of a gcc2
50023   builtin and then its argument prototype would still apply.  */
50024char $ac_func ();
50025/* The GNU C library defines this for functions which it implements
50026    to always fail with ENOSYS.  Some functions are actually named
50027    something starting with __ and the normal name is an alias.  */
50028#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50029choke me
50030#else
50031char (*f) () = $ac_func;
50032#endif
50033#ifdef __cplusplus
50034}
50035#endif
50036
50037int
50038main ()
50039{
50040return f != $ac_func;
50041  ;
50042  return 0;
50043}
50044_ACEOF
50045rm -f conftest.$ac_objext conftest$ac_exeext
50046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50047  (eval $ac_link) 2>conftest.er1
50048  ac_status=$?
50049  grep -v '^ *+' conftest.er1 >conftest.err
50050  rm -f conftest.er1
50051  cat conftest.err >&5
50052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50053  (exit $ac_status); } &&
50054	 { ac_try='test -z "$ac_c_werror_flag"
50055			 || test ! -s conftest.err'
50056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50057  (eval $ac_try) 2>&5
50058  ac_status=$?
50059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50060  (exit $ac_status); }; } &&
50061	 { ac_try='test -s conftest$ac_exeext'
50062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50063  (eval $ac_try) 2>&5
50064  ac_status=$?
50065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50066  (exit $ac_status); }; }; then
50067  eval "$as_ac_var=yes"
50068else
50069  echo "$as_me: failed program was:" >&5
50070sed 's/^/| /' conftest.$ac_ext >&5
50071
50072eval "$as_ac_var=no"
50073fi
50074rm -f conftest.err conftest.$ac_objext \
50075      conftest$ac_exeext conftest.$ac_ext
50076fi
50077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50078echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50079if test `eval echo '${'$as_ac_var'}'` = yes; then
50080  cat >>confdefs.h <<_ACEOF
50081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50082_ACEOF
50083
50084fi
50085done
50086
50087echo "$as_me:$LINENO: checking for working mmap" >&5
50088echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
50089if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
50090  echo $ECHO_N "(cached) $ECHO_C" >&6
50091else
50092  if test "$cross_compiling" = yes; then
50093  ac_cv_func_mmap_fixed_mapped=no
50094else
50095  cat >conftest.$ac_ext <<_ACEOF
50096/* confdefs.h.  */
50097_ACEOF
50098cat confdefs.h >>conftest.$ac_ext
50099cat >>conftest.$ac_ext <<_ACEOF
50100/* end confdefs.h.  */
50101$ac_includes_default
50102/* malloc might have been renamed as rpl_malloc. */
50103#undef malloc
50104
50105/* Thanks to Mike Haertel and Jim Avera for this test.
50106   Here is a matrix of mmap possibilities:
50107	mmap private not fixed
50108	mmap private fixed at somewhere currently unmapped
50109	mmap private fixed at somewhere already mapped
50110	mmap shared not fixed
50111	mmap shared fixed at somewhere currently unmapped
50112	mmap shared fixed at somewhere already mapped
50113   For private mappings, we should verify that changes cannot be read()
50114   back from the file, nor mmap's back from the file at a different
50115   address.  (There have been systems where private was not correctly
50116   implemented like the infamous i386 svr4.0, and systems where the
50117   VM page cache was not coherent with the file system buffer cache
50118   like early versions of FreeBSD and possibly contemporary NetBSD.)
50119   For shared mappings, we should conversely verify that changes get
50120   propagated back to all the places they're supposed to be.
50121
50122   Grep wants private fixed already mapped.
50123   The main things grep needs to know about mmap are:
50124   * does it exist and is it safe to write into the mmap'd area
50125   * how to use it (BSD variants)  */
50126
50127#include <fcntl.h>
50128#include <sys/mman.h>
50129
50130#if !STDC_HEADERS && !HAVE_STDLIB_H
50131char *malloc ();
50132#endif
50133
50134/* This mess was copied from the GNU getpagesize.h.  */
50135#if !HAVE_GETPAGESIZE
50136/* Assume that all systems that can run configure have sys/param.h.  */
50137# if !HAVE_SYS_PARAM_H
50138#  define HAVE_SYS_PARAM_H 1
50139# endif
50140
50141# ifdef _SC_PAGESIZE
50142#  define getpagesize() sysconf(_SC_PAGESIZE)
50143# else /* no _SC_PAGESIZE */
50144#  if HAVE_SYS_PARAM_H
50145#   include <sys/param.h>
50146#   ifdef EXEC_PAGESIZE
50147#    define getpagesize() EXEC_PAGESIZE
50148#   else /* no EXEC_PAGESIZE */
50149#    ifdef NBPG
50150#     define getpagesize() NBPG * CLSIZE
50151#     ifndef CLSIZE
50152#      define CLSIZE 1
50153#     endif /* no CLSIZE */
50154#    else /* no NBPG */
50155#     ifdef NBPC
50156#      define getpagesize() NBPC
50157#     else /* no NBPC */
50158#      ifdef PAGESIZE
50159#       define getpagesize() PAGESIZE
50160#      endif /* PAGESIZE */
50161#     endif /* no NBPC */
50162#    endif /* no NBPG */
50163#   endif /* no EXEC_PAGESIZE */
50164#  else /* no HAVE_SYS_PARAM_H */
50165#   define getpagesize() 8192	/* punt totally */
50166#  endif /* no HAVE_SYS_PARAM_H */
50167# endif /* no _SC_PAGESIZE */
50168
50169#endif /* no HAVE_GETPAGESIZE */
50170
50171int
50172main ()
50173{
50174  char *data, *data2, *data3;
50175  int i, pagesize;
50176  int fd;
50177
50178  pagesize = getpagesize ();
50179
50180  /* First, make a file with some known garbage in it. */
50181  data = (char *) malloc (pagesize);
50182  if (!data)
50183    exit (1);
50184  for (i = 0; i < pagesize; ++i)
50185    *(data + i) = rand ();
50186  umask (0);
50187  fd = creat ("conftest.mmap", 0600);
50188  if (fd < 0)
50189    exit (1);
50190  if (write (fd, data, pagesize) != pagesize)
50191    exit (1);
50192  close (fd);
50193
50194  /* Next, try to mmap the file at a fixed address which already has
50195     something else allocated at it.  If we can, also make sure that
50196     we see the same garbage.  */
50197  fd = open ("conftest.mmap", O_RDWR);
50198  if (fd < 0)
50199    exit (1);
50200  data2 = (char *) malloc (2 * pagesize);
50201  if (!data2)
50202    exit (1);
50203  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
50204  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
50205		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
50206    exit (1);
50207  for (i = 0; i < pagesize; ++i)
50208    if (*(data + i) != *(data2 + i))
50209      exit (1);
50210
50211  /* Finally, make sure that changes to the mapped area do not
50212     percolate back to the file as seen by read().  (This is a bug on
50213     some variants of i386 svr4.0.)  */
50214  for (i = 0; i < pagesize; ++i)
50215    *(data2 + i) = *(data2 + i) + 1;
50216  data3 = (char *) malloc (pagesize);
50217  if (!data3)
50218    exit (1);
50219  if (read (fd, data3, pagesize) != pagesize)
50220    exit (1);
50221  for (i = 0; i < pagesize; ++i)
50222    if (*(data + i) != *(data3 + i))
50223      exit (1);
50224  close (fd);
50225  exit (0);
50226}
50227_ACEOF
50228rm -f conftest$ac_exeext
50229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50230  (eval $ac_link) 2>&5
50231  ac_status=$?
50232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50233  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50235  (eval $ac_try) 2>&5
50236  ac_status=$?
50237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50238  (exit $ac_status); }; }; then
50239  ac_cv_func_mmap_fixed_mapped=yes
50240else
50241  echo "$as_me: program exited with status $ac_status" >&5
50242echo "$as_me: failed program was:" >&5
50243sed 's/^/| /' conftest.$ac_ext >&5
50244
50245( exit $ac_status )
50246ac_cv_func_mmap_fixed_mapped=no
50247fi
50248rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50249fi
50250fi
50251echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
50252echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
50253if test $ac_cv_func_mmap_fixed_mapped = yes; then
50254
50255cat >>confdefs.h <<\_ACEOF
50256#define HAVE_MMAP 1
50257_ACEOF
50258
50259fi
50260rm -f conftest.mmap
50261
50262
50263
50264
50265
50266
50267for ac_header in capability.h sys/capability.h
50268do
50269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50270if eval "test \"\${$as_ac_Header+set}\" = set"; then
50271  echo "$as_me:$LINENO: checking for $ac_header" >&5
50272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50273if eval "test \"\${$as_ac_Header+set}\" = set"; then
50274  echo $ECHO_N "(cached) $ECHO_C" >&6
50275fi
50276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50278else
50279  # Is the header compilable?
50280echo "$as_me:$LINENO: checking $ac_header usability" >&5
50281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50282cat >conftest.$ac_ext <<_ACEOF
50283/* confdefs.h.  */
50284_ACEOF
50285cat confdefs.h >>conftest.$ac_ext
50286cat >>conftest.$ac_ext <<_ACEOF
50287/* end confdefs.h.  */
50288$ac_includes_default
50289#include <$ac_header>
50290_ACEOF
50291rm -f conftest.$ac_objext
50292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50293  (eval $ac_compile) 2>conftest.er1
50294  ac_status=$?
50295  grep -v '^ *+' conftest.er1 >conftest.err
50296  rm -f conftest.er1
50297  cat conftest.err >&5
50298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50299  (exit $ac_status); } &&
50300	 { ac_try='test -z "$ac_c_werror_flag"
50301			 || test ! -s conftest.err'
50302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50303  (eval $ac_try) 2>&5
50304  ac_status=$?
50305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50306  (exit $ac_status); }; } &&
50307	 { ac_try='test -s conftest.$ac_objext'
50308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50309  (eval $ac_try) 2>&5
50310  ac_status=$?
50311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50312  (exit $ac_status); }; }; then
50313  ac_header_compiler=yes
50314else
50315  echo "$as_me: failed program was:" >&5
50316sed 's/^/| /' conftest.$ac_ext >&5
50317
50318ac_header_compiler=no
50319fi
50320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50321echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50322echo "${ECHO_T}$ac_header_compiler" >&6
50323
50324# Is the header present?
50325echo "$as_me:$LINENO: checking $ac_header presence" >&5
50326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50327cat >conftest.$ac_ext <<_ACEOF
50328/* confdefs.h.  */
50329_ACEOF
50330cat confdefs.h >>conftest.$ac_ext
50331cat >>conftest.$ac_ext <<_ACEOF
50332/* end confdefs.h.  */
50333#include <$ac_header>
50334_ACEOF
50335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50336  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50337  ac_status=$?
50338  grep -v '^ *+' conftest.er1 >conftest.err
50339  rm -f conftest.er1
50340  cat conftest.err >&5
50341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50342  (exit $ac_status); } >/dev/null; then
50343  if test -s conftest.err; then
50344    ac_cpp_err=$ac_c_preproc_warn_flag
50345    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50346  else
50347    ac_cpp_err=
50348  fi
50349else
50350  ac_cpp_err=yes
50351fi
50352if test -z "$ac_cpp_err"; then
50353  ac_header_preproc=yes
50354else
50355  echo "$as_me: failed program was:" >&5
50356sed 's/^/| /' conftest.$ac_ext >&5
50357
50358  ac_header_preproc=no
50359fi
50360rm -f conftest.err conftest.$ac_ext
50361echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50362echo "${ECHO_T}$ac_header_preproc" >&6
50363
50364# So?  What about this header?
50365case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50366  yes:no: )
50367    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50368echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50369    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50370echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50371    ac_header_preproc=yes
50372    ;;
50373  no:yes:* )
50374    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50375echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50376    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
50377echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
50378    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50379echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50380    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
50381echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
50382    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50383echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50384    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50385echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50386    (
50387      cat <<\_ASBOX
50388## -------------------------------------- ##
50389## Report this to heimdal-bugs@pdc.kth.se ##
50390## -------------------------------------- ##
50391_ASBOX
50392    ) |
50393      sed "s/^/$as_me: WARNING:     /" >&2
50394    ;;
50395esac
50396echo "$as_me:$LINENO: checking for $ac_header" >&5
50397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50398if eval "test \"\${$as_ac_Header+set}\" = set"; then
50399  echo $ECHO_N "(cached) $ECHO_C" >&6
50400else
50401  eval "$as_ac_Header=\$ac_header_preproc"
50402fi
50403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50405
50406fi
50407if test `eval echo '${'$as_ac_Header'}'` = yes; then
50408  cat >>confdefs.h <<_ACEOF
50409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50410_ACEOF
50411
50412fi
50413
50414done
50415
50416
50417
50418
50419for ac_func in sgi_getcapabilitybyname cap_set_proc
50420do
50421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50422echo "$as_me:$LINENO: checking for $ac_func" >&5
50423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50424if eval "test \"\${$as_ac_var+set}\" = set"; then
50425  echo $ECHO_N "(cached) $ECHO_C" >&6
50426else
50427  cat >conftest.$ac_ext <<_ACEOF
50428/* confdefs.h.  */
50429_ACEOF
50430cat confdefs.h >>conftest.$ac_ext
50431cat >>conftest.$ac_ext <<_ACEOF
50432/* end confdefs.h.  */
50433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50434   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50435#define $ac_func innocuous_$ac_func
50436
50437/* System header to define __stub macros and hopefully few prototypes,
50438    which can conflict with char $ac_func (); below.
50439    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50440    <limits.h> exists even on freestanding compilers.  */
50441
50442#ifdef __STDC__
50443# include <limits.h>
50444#else
50445# include <assert.h>
50446#endif
50447
50448#undef $ac_func
50449
50450/* Override any gcc2 internal prototype to avoid an error.  */
50451#ifdef __cplusplus
50452extern "C"
50453{
50454#endif
50455/* We use char because int might match the return type of a gcc2
50456   builtin and then its argument prototype would still apply.  */
50457char $ac_func ();
50458/* The GNU C library defines this for functions which it implements
50459    to always fail with ENOSYS.  Some functions are actually named
50460    something starting with __ and the normal name is an alias.  */
50461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50462choke me
50463#else
50464char (*f) () = $ac_func;
50465#endif
50466#ifdef __cplusplus
50467}
50468#endif
50469
50470int
50471main ()
50472{
50473return f != $ac_func;
50474  ;
50475  return 0;
50476}
50477_ACEOF
50478rm -f conftest.$ac_objext conftest$ac_exeext
50479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50480  (eval $ac_link) 2>conftest.er1
50481  ac_status=$?
50482  grep -v '^ *+' conftest.er1 >conftest.err
50483  rm -f conftest.er1
50484  cat conftest.err >&5
50485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50486  (exit $ac_status); } &&
50487	 { ac_try='test -z "$ac_c_werror_flag"
50488			 || test ! -s conftest.err'
50489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50490  (eval $ac_try) 2>&5
50491  ac_status=$?
50492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50493  (exit $ac_status); }; } &&
50494	 { ac_try='test -s conftest$ac_exeext'
50495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50496  (eval $ac_try) 2>&5
50497  ac_status=$?
50498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50499  (exit $ac_status); }; }; then
50500  eval "$as_ac_var=yes"
50501else
50502  echo "$as_me: failed program was:" >&5
50503sed 's/^/| /' conftest.$ac_ext >&5
50504
50505eval "$as_ac_var=no"
50506fi
50507rm -f conftest.err conftest.$ac_objext \
50508      conftest$ac_exeext conftest.$ac_ext
50509fi
50510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50511echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50512if test `eval echo '${'$as_ac_var'}'` = yes; then
50513  cat >>confdefs.h <<_ACEOF
50514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50515_ACEOF
50516
50517fi
50518done
50519
50520
50521
50522
50523
50524
50525
50526echo "$as_me:$LINENO: checking for getpwnam_r" >&5
50527echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
50528if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
50529  echo $ECHO_N "(cached) $ECHO_C" >&6
50530else
50531
50532if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
50533	ac_save_LIBS="$LIBS"
50534	for ac_lib in "" c_r; do
50535		case "$ac_lib" in
50536		"") ;;
50537		yes) ac_lib="" ;;
50538		no) continue ;;
50539		-l*) ;;
50540		*) ac_lib="-l$ac_lib" ;;
50541		esac
50542		LIBS=" $ac_lib  $ac_save_LIBS"
50543		cat >conftest.$ac_ext <<_ACEOF
50544/* confdefs.h.  */
50545_ACEOF
50546cat confdefs.h >>conftest.$ac_ext
50547cat >>conftest.$ac_ext <<_ACEOF
50548/* end confdefs.h.  */
50549
50550int
50551main ()
50552{
50553getpwnam_r()
50554  ;
50555  return 0;
50556}
50557_ACEOF
50558rm -f conftest.$ac_objext conftest$ac_exeext
50559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50560  (eval $ac_link) 2>conftest.er1
50561  ac_status=$?
50562  grep -v '^ *+' conftest.er1 >conftest.err
50563  rm -f conftest.er1
50564  cat conftest.err >&5
50565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50566  (exit $ac_status); } &&
50567	 { ac_try='test -z "$ac_c_werror_flag"
50568			 || test ! -s conftest.err'
50569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50570  (eval $ac_try) 2>&5
50571  ac_status=$?
50572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50573  (exit $ac_status); }; } &&
50574	 { ac_try='test -s conftest$ac_exeext'
50575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50576  (eval $ac_try) 2>&5
50577  ac_status=$?
50578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50579  (exit $ac_status); }; }; then
50580  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
50581else
50582  echo "$as_me: failed program was:" >&5
50583sed 's/^/| /' conftest.$ac_ext >&5
50584
50585fi
50586rm -f conftest.err conftest.$ac_objext \
50587      conftest$ac_exeext conftest.$ac_ext
50588	done
50589	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
50590	LIBS="$ac_save_LIBS"
50591fi
50592
50593fi
50594
50595
50596eval "ac_res=\$ac_cv_funclib_getpwnam_r"
50597
50598if false; then
50599
50600for ac_func in getpwnam_r
50601do
50602as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50603echo "$as_me:$LINENO: checking for $ac_func" >&5
50604echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50605if eval "test \"\${$as_ac_var+set}\" = set"; then
50606  echo $ECHO_N "(cached) $ECHO_C" >&6
50607else
50608  cat >conftest.$ac_ext <<_ACEOF
50609/* confdefs.h.  */
50610_ACEOF
50611cat confdefs.h >>conftest.$ac_ext
50612cat >>conftest.$ac_ext <<_ACEOF
50613/* end confdefs.h.  */
50614/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50615   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50616#define $ac_func innocuous_$ac_func
50617
50618/* System header to define __stub macros and hopefully few prototypes,
50619    which can conflict with char $ac_func (); below.
50620    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50621    <limits.h> exists even on freestanding compilers.  */
50622
50623#ifdef __STDC__
50624# include <limits.h>
50625#else
50626# include <assert.h>
50627#endif
50628
50629#undef $ac_func
50630
50631/* Override any gcc2 internal prototype to avoid an error.  */
50632#ifdef __cplusplus
50633extern "C"
50634{
50635#endif
50636/* We use char because int might match the return type of a gcc2
50637   builtin and then its argument prototype would still apply.  */
50638char $ac_func ();
50639/* The GNU C library defines this for functions which it implements
50640    to always fail with ENOSYS.  Some functions are actually named
50641    something starting with __ and the normal name is an alias.  */
50642#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50643choke me
50644#else
50645char (*f) () = $ac_func;
50646#endif
50647#ifdef __cplusplus
50648}
50649#endif
50650
50651int
50652main ()
50653{
50654return f != $ac_func;
50655  ;
50656  return 0;
50657}
50658_ACEOF
50659rm -f conftest.$ac_objext conftest$ac_exeext
50660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50661  (eval $ac_link) 2>conftest.er1
50662  ac_status=$?
50663  grep -v '^ *+' conftest.er1 >conftest.err
50664  rm -f conftest.er1
50665  cat conftest.err >&5
50666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50667  (exit $ac_status); } &&
50668	 { ac_try='test -z "$ac_c_werror_flag"
50669			 || test ! -s conftest.err'
50670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50671  (eval $ac_try) 2>&5
50672  ac_status=$?
50673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50674  (exit $ac_status); }; } &&
50675	 { ac_try='test -s conftest$ac_exeext'
50676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50677  (eval $ac_try) 2>&5
50678  ac_status=$?
50679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50680  (exit $ac_status); }; }; then
50681  eval "$as_ac_var=yes"
50682else
50683  echo "$as_me: failed program was:" >&5
50684sed 's/^/| /' conftest.$ac_ext >&5
50685
50686eval "$as_ac_var=no"
50687fi
50688rm -f conftest.err conftest.$ac_objext \
50689      conftest$ac_exeext conftest.$ac_ext
50690fi
50691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50692echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50693if test `eval echo '${'$as_ac_var'}'` = yes; then
50694  cat >>confdefs.h <<_ACEOF
50695#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50696_ACEOF
50697
50698fi
50699done
50700
50701fi
50702# getpwnam_r
50703eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
50704eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
50705eval "LIB_getpwnam_r=$ac_res"
50706
50707case "$ac_res" in
50708	yes)
50709	eval "ac_cv_func_getpwnam_r=yes"
50710	eval "LIB_getpwnam_r="
50711	cat >>confdefs.h <<_ACEOF
50712#define $ac_tr_func 1
50713_ACEOF
50714
50715	echo "$as_me:$LINENO: result: yes" >&5
50716echo "${ECHO_T}yes" >&6
50717	;;
50718	no)
50719	eval "ac_cv_func_getpwnam_r=no"
50720	eval "LIB_getpwnam_r="
50721	echo "$as_me:$LINENO: result: no" >&5
50722echo "${ECHO_T}no" >&6
50723	;;
50724	*)
50725	eval "ac_cv_func_getpwnam_r=yes"
50726	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
50727	cat >>confdefs.h <<_ACEOF
50728#define $ac_tr_func 1
50729_ACEOF
50730
50731	cat >>confdefs.h <<_ACEOF
50732#define $ac_tr_lib 1
50733_ACEOF
50734
50735	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
50736echo "${ECHO_T}yes, in $ac_res" >&6
50737	;;
50738esac
50739
50740
50741if test "$ac_cv_func_getpwnam_r" = yes; then
50742	echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
50743echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
50744if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
50745  echo $ECHO_N "(cached) $ECHO_C" >&6
50746else
50747  ac_libs="$LIBS"
50748	LIBS="$LIBS $LIB_getpwnam_r"
50749	if test "$cross_compiling" = yes; then
50750  :
50751else
50752  cat >conftest.$ac_ext <<_ACEOF
50753/* confdefs.h.  */
50754_ACEOF
50755cat confdefs.h >>conftest.$ac_ext
50756cat >>conftest.$ac_ext <<_ACEOF
50757/* end confdefs.h.  */
50758
50759#include <pwd.h>
50760int main()
50761{
50762	struct passwd pw, *pwd;
50763	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
50764}
50765
50766_ACEOF
50767rm -f conftest$ac_exeext
50768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50769  (eval $ac_link) 2>&5
50770  ac_status=$?
50771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50772  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50774  (eval $ac_try) 2>&5
50775  ac_status=$?
50776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50777  (exit $ac_status); }; }; then
50778  ac_cv_func_getpwnam_r_posix=yes
50779else
50780  echo "$as_me: program exited with status $ac_status" >&5
50781echo "$as_me: failed program was:" >&5
50782sed 's/^/| /' conftest.$ac_ext >&5
50783
50784( exit $ac_status )
50785ac_cv_func_getpwnam_r_posix=no
50786fi
50787rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50788fi
50789LIBS="$ac_libs"
50790fi
50791echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
50792echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
50793if test "$ac_cv_func_getpwnam_r_posix" = yes; then
50794
50795cat >>confdefs.h <<\_ACEOF
50796#define POSIX_GETPWNAM_R 1
50797_ACEOF
50798
50799fi
50800fi
50801
50802
50803
50804
50805for ac_func in getudbnam setlim
50806do
50807as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50808echo "$as_me:$LINENO: checking for $ac_func" >&5
50809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50810if eval "test \"\${$as_ac_var+set}\" = set"; then
50811  echo $ECHO_N "(cached) $ECHO_C" >&6
50812else
50813  cat >conftest.$ac_ext <<_ACEOF
50814/* confdefs.h.  */
50815_ACEOF
50816cat confdefs.h >>conftest.$ac_ext
50817cat >>conftest.$ac_ext <<_ACEOF
50818/* end confdefs.h.  */
50819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50820   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50821#define $ac_func innocuous_$ac_func
50822
50823/* System header to define __stub macros and hopefully few prototypes,
50824    which can conflict with char $ac_func (); below.
50825    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50826    <limits.h> exists even on freestanding compilers.  */
50827
50828#ifdef __STDC__
50829# include <limits.h>
50830#else
50831# include <assert.h>
50832#endif
50833
50834#undef $ac_func
50835
50836/* Override any gcc2 internal prototype to avoid an error.  */
50837#ifdef __cplusplus
50838extern "C"
50839{
50840#endif
50841/* We use char because int might match the return type of a gcc2
50842   builtin and then its argument prototype would still apply.  */
50843char $ac_func ();
50844/* The GNU C library defines this for functions which it implements
50845    to always fail with ENOSYS.  Some functions are actually named
50846    something starting with __ and the normal name is an alias.  */
50847#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50848choke me
50849#else
50850char (*f) () = $ac_func;
50851#endif
50852#ifdef __cplusplus
50853}
50854#endif
50855
50856int
50857main ()
50858{
50859return f != $ac_func;
50860  ;
50861  return 0;
50862}
50863_ACEOF
50864rm -f conftest.$ac_objext conftest$ac_exeext
50865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50866  (eval $ac_link) 2>conftest.er1
50867  ac_status=$?
50868  grep -v '^ *+' conftest.er1 >conftest.err
50869  rm -f conftest.er1
50870  cat conftest.err >&5
50871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50872  (exit $ac_status); } &&
50873	 { ac_try='test -z "$ac_c_werror_flag"
50874			 || test ! -s conftest.err'
50875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50876  (eval $ac_try) 2>&5
50877  ac_status=$?
50878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50879  (exit $ac_status); }; } &&
50880	 { ac_try='test -s conftest$ac_exeext'
50881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50882  (eval $ac_try) 2>&5
50883  ac_status=$?
50884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50885  (exit $ac_status); }; }; then
50886  eval "$as_ac_var=yes"
50887else
50888  echo "$as_me: failed program was:" >&5
50889sed 's/^/| /' conftest.$ac_ext >&5
50890
50891eval "$as_ac_var=no"
50892fi
50893rm -f conftest.err conftest.$ac_objext \
50894      conftest$ac_exeext conftest.$ac_ext
50895fi
50896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50897echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50898if test `eval echo '${'$as_ac_var'}'` = yes; then
50899  cat >>confdefs.h <<_ACEOF
50900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50901_ACEOF
50902
50903fi
50904done
50905
50906
50907
50908
50909
50910
50911echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
50912echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
50913if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
50914  echo $ECHO_N "(cached) $ECHO_C" >&6
50915else
50916
50917cat >conftest.$ac_ext <<_ACEOF
50918/* confdefs.h.  */
50919_ACEOF
50920cat confdefs.h >>conftest.$ac_ext
50921cat >>conftest.$ac_ext <<_ACEOF
50922/* end confdefs.h.  */
50923#include <utmp.h>
50924int
50925main ()
50926{
50927struct utmp x; x.ut_addr;
50928  ;
50929  return 0;
50930}
50931_ACEOF
50932rm -f conftest.$ac_objext
50933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50934  (eval $ac_compile) 2>conftest.er1
50935  ac_status=$?
50936  grep -v '^ *+' conftest.er1 >conftest.err
50937  rm -f conftest.er1
50938  cat conftest.err >&5
50939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50940  (exit $ac_status); } &&
50941	 { ac_try='test -z "$ac_c_werror_flag"
50942			 || test ! -s conftest.err'
50943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50944  (eval $ac_try) 2>&5
50945  ac_status=$?
50946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50947  (exit $ac_status); }; } &&
50948	 { ac_try='test -s conftest.$ac_objext'
50949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50950  (eval $ac_try) 2>&5
50951  ac_status=$?
50952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50953  (exit $ac_status); }; }; then
50954  ac_cv_type_struct_utmp_ut_addr=yes
50955else
50956  echo "$as_me: failed program was:" >&5
50957sed 's/^/| /' conftest.$ac_ext >&5
50958
50959ac_cv_type_struct_utmp_ut_addr=no
50960fi
50961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50962fi
50963echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
50964echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
50965if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
50966
50967
50968cat >>confdefs.h <<\_ACEOF
50969#define HAVE_STRUCT_UTMP_UT_ADDR 1
50970_ACEOF
50971
50972
50973fi
50974
50975
50976
50977
50978echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
50979echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
50980if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
50981  echo $ECHO_N "(cached) $ECHO_C" >&6
50982else
50983
50984cat >conftest.$ac_ext <<_ACEOF
50985/* confdefs.h.  */
50986_ACEOF
50987cat confdefs.h >>conftest.$ac_ext
50988cat >>conftest.$ac_ext <<_ACEOF
50989/* end confdefs.h.  */
50990#include <utmp.h>
50991int
50992main ()
50993{
50994struct utmp x; x.ut_host;
50995  ;
50996  return 0;
50997}
50998_ACEOF
50999rm -f conftest.$ac_objext
51000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51001  (eval $ac_compile) 2>conftest.er1
51002  ac_status=$?
51003  grep -v '^ *+' conftest.er1 >conftest.err
51004  rm -f conftest.er1
51005  cat conftest.err >&5
51006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51007  (exit $ac_status); } &&
51008	 { ac_try='test -z "$ac_c_werror_flag"
51009			 || test ! -s conftest.err'
51010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51011  (eval $ac_try) 2>&5
51012  ac_status=$?
51013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51014  (exit $ac_status); }; } &&
51015	 { ac_try='test -s conftest.$ac_objext'
51016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51017  (eval $ac_try) 2>&5
51018  ac_status=$?
51019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51020  (exit $ac_status); }; }; then
51021  ac_cv_type_struct_utmp_ut_host=yes
51022else
51023  echo "$as_me: failed program was:" >&5
51024sed 's/^/| /' conftest.$ac_ext >&5
51025
51026ac_cv_type_struct_utmp_ut_host=no
51027fi
51028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51029fi
51030echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
51031echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
51032if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
51033
51034
51035cat >>confdefs.h <<\_ACEOF
51036#define HAVE_STRUCT_UTMP_UT_HOST 1
51037_ACEOF
51038
51039
51040fi
51041
51042
51043
51044
51045echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
51046echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
51047if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
51048  echo $ECHO_N "(cached) $ECHO_C" >&6
51049else
51050
51051cat >conftest.$ac_ext <<_ACEOF
51052/* confdefs.h.  */
51053_ACEOF
51054cat confdefs.h >>conftest.$ac_ext
51055cat >>conftest.$ac_ext <<_ACEOF
51056/* end confdefs.h.  */
51057#include <utmp.h>
51058int
51059main ()
51060{
51061struct utmp x; x.ut_id;
51062  ;
51063  return 0;
51064}
51065_ACEOF
51066rm -f conftest.$ac_objext
51067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51068  (eval $ac_compile) 2>conftest.er1
51069  ac_status=$?
51070  grep -v '^ *+' conftest.er1 >conftest.err
51071  rm -f conftest.er1
51072  cat conftest.err >&5
51073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51074  (exit $ac_status); } &&
51075	 { ac_try='test -z "$ac_c_werror_flag"
51076			 || test ! -s conftest.err'
51077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51078  (eval $ac_try) 2>&5
51079  ac_status=$?
51080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51081  (exit $ac_status); }; } &&
51082	 { ac_try='test -s conftest.$ac_objext'
51083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51084  (eval $ac_try) 2>&5
51085  ac_status=$?
51086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51087  (exit $ac_status); }; }; then
51088  ac_cv_type_struct_utmp_ut_id=yes
51089else
51090  echo "$as_me: failed program was:" >&5
51091sed 's/^/| /' conftest.$ac_ext >&5
51092
51093ac_cv_type_struct_utmp_ut_id=no
51094fi
51095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51096fi
51097echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
51098echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
51099if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
51100
51101
51102cat >>confdefs.h <<\_ACEOF
51103#define HAVE_STRUCT_UTMP_UT_ID 1
51104_ACEOF
51105
51106
51107fi
51108
51109
51110
51111
51112echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
51113echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
51114if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
51115  echo $ECHO_N "(cached) $ECHO_C" >&6
51116else
51117
51118cat >conftest.$ac_ext <<_ACEOF
51119/* confdefs.h.  */
51120_ACEOF
51121cat confdefs.h >>conftest.$ac_ext
51122cat >>conftest.$ac_ext <<_ACEOF
51123/* end confdefs.h.  */
51124#include <utmp.h>
51125int
51126main ()
51127{
51128struct utmp x; x.ut_pid;
51129  ;
51130  return 0;
51131}
51132_ACEOF
51133rm -f conftest.$ac_objext
51134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51135  (eval $ac_compile) 2>conftest.er1
51136  ac_status=$?
51137  grep -v '^ *+' conftest.er1 >conftest.err
51138  rm -f conftest.er1
51139  cat conftest.err >&5
51140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51141  (exit $ac_status); } &&
51142	 { ac_try='test -z "$ac_c_werror_flag"
51143			 || test ! -s conftest.err'
51144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51145  (eval $ac_try) 2>&5
51146  ac_status=$?
51147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51148  (exit $ac_status); }; } &&
51149	 { ac_try='test -s conftest.$ac_objext'
51150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51151  (eval $ac_try) 2>&5
51152  ac_status=$?
51153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51154  (exit $ac_status); }; }; then
51155  ac_cv_type_struct_utmp_ut_pid=yes
51156else
51157  echo "$as_me: failed program was:" >&5
51158sed 's/^/| /' conftest.$ac_ext >&5
51159
51160ac_cv_type_struct_utmp_ut_pid=no
51161fi
51162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51163fi
51164echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
51165echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
51166if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
51167
51168
51169cat >>confdefs.h <<\_ACEOF
51170#define HAVE_STRUCT_UTMP_UT_PID 1
51171_ACEOF
51172
51173
51174fi
51175
51176
51177
51178
51179echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
51180echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
51181if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
51182  echo $ECHO_N "(cached) $ECHO_C" >&6
51183else
51184
51185cat >conftest.$ac_ext <<_ACEOF
51186/* confdefs.h.  */
51187_ACEOF
51188cat confdefs.h >>conftest.$ac_ext
51189cat >>conftest.$ac_ext <<_ACEOF
51190/* end confdefs.h.  */
51191#include <utmp.h>
51192int
51193main ()
51194{
51195struct utmp x; x.ut_type;
51196  ;
51197  return 0;
51198}
51199_ACEOF
51200rm -f conftest.$ac_objext
51201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51202  (eval $ac_compile) 2>conftest.er1
51203  ac_status=$?
51204  grep -v '^ *+' conftest.er1 >conftest.err
51205  rm -f conftest.er1
51206  cat conftest.err >&5
51207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51208  (exit $ac_status); } &&
51209	 { ac_try='test -z "$ac_c_werror_flag"
51210			 || test ! -s conftest.err'
51211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51212  (eval $ac_try) 2>&5
51213  ac_status=$?
51214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51215  (exit $ac_status); }; } &&
51216	 { ac_try='test -s conftest.$ac_objext'
51217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51218  (eval $ac_try) 2>&5
51219  ac_status=$?
51220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51221  (exit $ac_status); }; }; then
51222  ac_cv_type_struct_utmp_ut_type=yes
51223else
51224  echo "$as_me: failed program was:" >&5
51225sed 's/^/| /' conftest.$ac_ext >&5
51226
51227ac_cv_type_struct_utmp_ut_type=no
51228fi
51229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51230fi
51231echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
51232echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
51233if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
51234
51235
51236cat >>confdefs.h <<\_ACEOF
51237#define HAVE_STRUCT_UTMP_UT_TYPE 1
51238_ACEOF
51239
51240
51241fi
51242
51243
51244
51245
51246echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
51247echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
51248if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
51249  echo $ECHO_N "(cached) $ECHO_C" >&6
51250else
51251
51252cat >conftest.$ac_ext <<_ACEOF
51253/* confdefs.h.  */
51254_ACEOF
51255cat confdefs.h >>conftest.$ac_ext
51256cat >>conftest.$ac_ext <<_ACEOF
51257/* end confdefs.h.  */
51258#include <utmp.h>
51259int
51260main ()
51261{
51262struct utmp x; x.ut_user;
51263  ;
51264  return 0;
51265}
51266_ACEOF
51267rm -f conftest.$ac_objext
51268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51269  (eval $ac_compile) 2>conftest.er1
51270  ac_status=$?
51271  grep -v '^ *+' conftest.er1 >conftest.err
51272  rm -f conftest.er1
51273  cat conftest.err >&5
51274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51275  (exit $ac_status); } &&
51276	 { ac_try='test -z "$ac_c_werror_flag"
51277			 || test ! -s conftest.err'
51278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51279  (eval $ac_try) 2>&5
51280  ac_status=$?
51281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51282  (exit $ac_status); }; } &&
51283	 { ac_try='test -s conftest.$ac_objext'
51284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51285  (eval $ac_try) 2>&5
51286  ac_status=$?
51287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51288  (exit $ac_status); }; }; then
51289  ac_cv_type_struct_utmp_ut_user=yes
51290else
51291  echo "$as_me: failed program was:" >&5
51292sed 's/^/| /' conftest.$ac_ext >&5
51293
51294ac_cv_type_struct_utmp_ut_user=no
51295fi
51296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51297fi
51298echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
51299echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
51300if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
51301
51302
51303cat >>confdefs.h <<\_ACEOF
51304#define HAVE_STRUCT_UTMP_UT_USER 1
51305_ACEOF
51306
51307
51308fi
51309
51310
51311
51312
51313echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
51314echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
51315if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
51316  echo $ECHO_N "(cached) $ECHO_C" >&6
51317else
51318
51319cat >conftest.$ac_ext <<_ACEOF
51320/* confdefs.h.  */
51321_ACEOF
51322cat confdefs.h >>conftest.$ac_ext
51323cat >>conftest.$ac_ext <<_ACEOF
51324/* end confdefs.h.  */
51325#include <utmpx.h>
51326int
51327main ()
51328{
51329struct utmpx x; x.ut_exit;
51330  ;
51331  return 0;
51332}
51333_ACEOF
51334rm -f conftest.$ac_objext
51335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51336  (eval $ac_compile) 2>conftest.er1
51337  ac_status=$?
51338  grep -v '^ *+' conftest.er1 >conftest.err
51339  rm -f conftest.er1
51340  cat conftest.err >&5
51341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51342  (exit $ac_status); } &&
51343	 { ac_try='test -z "$ac_c_werror_flag"
51344			 || test ! -s conftest.err'
51345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51346  (eval $ac_try) 2>&5
51347  ac_status=$?
51348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51349  (exit $ac_status); }; } &&
51350	 { ac_try='test -s conftest.$ac_objext'
51351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51352  (eval $ac_try) 2>&5
51353  ac_status=$?
51354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51355  (exit $ac_status); }; }; then
51356  ac_cv_type_struct_utmpx_ut_exit=yes
51357else
51358  echo "$as_me: failed program was:" >&5
51359sed 's/^/| /' conftest.$ac_ext >&5
51360
51361ac_cv_type_struct_utmpx_ut_exit=no
51362fi
51363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51364fi
51365echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
51366echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
51367if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
51368
51369
51370cat >>confdefs.h <<\_ACEOF
51371#define HAVE_STRUCT_UTMPX_UT_EXIT 1
51372_ACEOF
51373
51374
51375fi
51376
51377
51378
51379
51380echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
51381echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
51382if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
51383  echo $ECHO_N "(cached) $ECHO_C" >&6
51384else
51385
51386cat >conftest.$ac_ext <<_ACEOF
51387/* confdefs.h.  */
51388_ACEOF
51389cat confdefs.h >>conftest.$ac_ext
51390cat >>conftest.$ac_ext <<_ACEOF
51391/* end confdefs.h.  */
51392#include <utmpx.h>
51393int
51394main ()
51395{
51396struct utmpx x; x.ut_syslen;
51397  ;
51398  return 0;
51399}
51400_ACEOF
51401rm -f conftest.$ac_objext
51402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51403  (eval $ac_compile) 2>conftest.er1
51404  ac_status=$?
51405  grep -v '^ *+' conftest.er1 >conftest.err
51406  rm -f conftest.er1
51407  cat conftest.err >&5
51408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51409  (exit $ac_status); } &&
51410	 { ac_try='test -z "$ac_c_werror_flag"
51411			 || test ! -s conftest.err'
51412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51413  (eval $ac_try) 2>&5
51414  ac_status=$?
51415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51416  (exit $ac_status); }; } &&
51417	 { ac_try='test -s conftest.$ac_objext'
51418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51419  (eval $ac_try) 2>&5
51420  ac_status=$?
51421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51422  (exit $ac_status); }; }; then
51423  ac_cv_type_struct_utmpx_ut_syslen=yes
51424else
51425  echo "$as_me: failed program was:" >&5
51426sed 's/^/| /' conftest.$ac_ext >&5
51427
51428ac_cv_type_struct_utmpx_ut_syslen=no
51429fi
51430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51431fi
51432echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
51433echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
51434if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
51435
51436
51437cat >>confdefs.h <<\_ACEOF
51438#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
51439_ACEOF
51440
51441
51442fi
51443
51444
51445
51446echo "$as_me:$LINENO: checking for int8_t" >&5
51447echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
51448if test "${ac_cv_type_int8_t+set}" = set; then
51449  echo $ECHO_N "(cached) $ECHO_C" >&6
51450else
51451  cat >conftest.$ac_ext <<_ACEOF
51452/* confdefs.h.  */
51453_ACEOF
51454cat confdefs.h >>conftest.$ac_ext
51455cat >>conftest.$ac_ext <<_ACEOF
51456/* end confdefs.h.  */
51457
51458#ifdef HAVE_INTTYPES_H
51459#include <inttypes.h>
51460#endif
51461#ifdef HAVE_SYS_TYPES_H
51462#include <sys/types.h>
51463#endif
51464#ifdef HAVE_SYS_BITYPES_H
51465#include <sys/bitypes.h>
51466#endif
51467#ifdef HAVE_BIND_BITYPES_H
51468#include <bind/bitypes.h>
51469#endif
51470#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51471#include <netinet/in6_machtypes.h>
51472#endif
51473
51474
51475int
51476main ()
51477{
51478if ((int8_t *) 0)
51479  return 0;
51480if (sizeof (int8_t))
51481  return 0;
51482  ;
51483  return 0;
51484}
51485_ACEOF
51486rm -f conftest.$ac_objext
51487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51488  (eval $ac_compile) 2>conftest.er1
51489  ac_status=$?
51490  grep -v '^ *+' conftest.er1 >conftest.err
51491  rm -f conftest.er1
51492  cat conftest.err >&5
51493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51494  (exit $ac_status); } &&
51495	 { ac_try='test -z "$ac_c_werror_flag"
51496			 || test ! -s conftest.err'
51497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51498  (eval $ac_try) 2>&5
51499  ac_status=$?
51500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51501  (exit $ac_status); }; } &&
51502	 { ac_try='test -s conftest.$ac_objext'
51503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51504  (eval $ac_try) 2>&5
51505  ac_status=$?
51506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51507  (exit $ac_status); }; }; then
51508  ac_cv_type_int8_t=yes
51509else
51510  echo "$as_me: failed program was:" >&5
51511sed 's/^/| /' conftest.$ac_ext >&5
51512
51513ac_cv_type_int8_t=no
51514fi
51515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51516fi
51517echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
51518echo "${ECHO_T}$ac_cv_type_int8_t" >&6
51519if test $ac_cv_type_int8_t = yes; then
51520
51521cat >>confdefs.h <<_ACEOF
51522#define HAVE_INT8_T 1
51523_ACEOF
51524
51525
51526fi
51527echo "$as_me:$LINENO: checking for int16_t" >&5
51528echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
51529if test "${ac_cv_type_int16_t+set}" = set; then
51530  echo $ECHO_N "(cached) $ECHO_C" >&6
51531else
51532  cat >conftest.$ac_ext <<_ACEOF
51533/* confdefs.h.  */
51534_ACEOF
51535cat confdefs.h >>conftest.$ac_ext
51536cat >>conftest.$ac_ext <<_ACEOF
51537/* end confdefs.h.  */
51538
51539#ifdef HAVE_INTTYPES_H
51540#include <inttypes.h>
51541#endif
51542#ifdef HAVE_SYS_TYPES_H
51543#include <sys/types.h>
51544#endif
51545#ifdef HAVE_SYS_BITYPES_H
51546#include <sys/bitypes.h>
51547#endif
51548#ifdef HAVE_BIND_BITYPES_H
51549#include <bind/bitypes.h>
51550#endif
51551#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51552#include <netinet/in6_machtypes.h>
51553#endif
51554
51555
51556int
51557main ()
51558{
51559if ((int16_t *) 0)
51560  return 0;
51561if (sizeof (int16_t))
51562  return 0;
51563  ;
51564  return 0;
51565}
51566_ACEOF
51567rm -f conftest.$ac_objext
51568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51569  (eval $ac_compile) 2>conftest.er1
51570  ac_status=$?
51571  grep -v '^ *+' conftest.er1 >conftest.err
51572  rm -f conftest.er1
51573  cat conftest.err >&5
51574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51575  (exit $ac_status); } &&
51576	 { ac_try='test -z "$ac_c_werror_flag"
51577			 || test ! -s conftest.err'
51578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51579  (eval $ac_try) 2>&5
51580  ac_status=$?
51581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51582  (exit $ac_status); }; } &&
51583	 { ac_try='test -s conftest.$ac_objext'
51584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51585  (eval $ac_try) 2>&5
51586  ac_status=$?
51587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51588  (exit $ac_status); }; }; then
51589  ac_cv_type_int16_t=yes
51590else
51591  echo "$as_me: failed program was:" >&5
51592sed 's/^/| /' conftest.$ac_ext >&5
51593
51594ac_cv_type_int16_t=no
51595fi
51596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51597fi
51598echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
51599echo "${ECHO_T}$ac_cv_type_int16_t" >&6
51600if test $ac_cv_type_int16_t = yes; then
51601
51602cat >>confdefs.h <<_ACEOF
51603#define HAVE_INT16_T 1
51604_ACEOF
51605
51606
51607fi
51608echo "$as_me:$LINENO: checking for int32_t" >&5
51609echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
51610if test "${ac_cv_type_int32_t+set}" = set; then
51611  echo $ECHO_N "(cached) $ECHO_C" >&6
51612else
51613  cat >conftest.$ac_ext <<_ACEOF
51614/* confdefs.h.  */
51615_ACEOF
51616cat confdefs.h >>conftest.$ac_ext
51617cat >>conftest.$ac_ext <<_ACEOF
51618/* end confdefs.h.  */
51619
51620#ifdef HAVE_INTTYPES_H
51621#include <inttypes.h>
51622#endif
51623#ifdef HAVE_SYS_TYPES_H
51624#include <sys/types.h>
51625#endif
51626#ifdef HAVE_SYS_BITYPES_H
51627#include <sys/bitypes.h>
51628#endif
51629#ifdef HAVE_BIND_BITYPES_H
51630#include <bind/bitypes.h>
51631#endif
51632#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51633#include <netinet/in6_machtypes.h>
51634#endif
51635
51636
51637int
51638main ()
51639{
51640if ((int32_t *) 0)
51641  return 0;
51642if (sizeof (int32_t))
51643  return 0;
51644  ;
51645  return 0;
51646}
51647_ACEOF
51648rm -f conftest.$ac_objext
51649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51650  (eval $ac_compile) 2>conftest.er1
51651  ac_status=$?
51652  grep -v '^ *+' conftest.er1 >conftest.err
51653  rm -f conftest.er1
51654  cat conftest.err >&5
51655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51656  (exit $ac_status); } &&
51657	 { ac_try='test -z "$ac_c_werror_flag"
51658			 || test ! -s conftest.err'
51659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51660  (eval $ac_try) 2>&5
51661  ac_status=$?
51662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51663  (exit $ac_status); }; } &&
51664	 { ac_try='test -s conftest.$ac_objext'
51665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51666  (eval $ac_try) 2>&5
51667  ac_status=$?
51668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51669  (exit $ac_status); }; }; then
51670  ac_cv_type_int32_t=yes
51671else
51672  echo "$as_me: failed program was:" >&5
51673sed 's/^/| /' conftest.$ac_ext >&5
51674
51675ac_cv_type_int32_t=no
51676fi
51677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51678fi
51679echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
51680echo "${ECHO_T}$ac_cv_type_int32_t" >&6
51681if test $ac_cv_type_int32_t = yes; then
51682
51683cat >>confdefs.h <<_ACEOF
51684#define HAVE_INT32_T 1
51685_ACEOF
51686
51687
51688fi
51689echo "$as_me:$LINENO: checking for int64_t" >&5
51690echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
51691if test "${ac_cv_type_int64_t+set}" = set; then
51692  echo $ECHO_N "(cached) $ECHO_C" >&6
51693else
51694  cat >conftest.$ac_ext <<_ACEOF
51695/* confdefs.h.  */
51696_ACEOF
51697cat confdefs.h >>conftest.$ac_ext
51698cat >>conftest.$ac_ext <<_ACEOF
51699/* end confdefs.h.  */
51700
51701#ifdef HAVE_INTTYPES_H
51702#include <inttypes.h>
51703#endif
51704#ifdef HAVE_SYS_TYPES_H
51705#include <sys/types.h>
51706#endif
51707#ifdef HAVE_SYS_BITYPES_H
51708#include <sys/bitypes.h>
51709#endif
51710#ifdef HAVE_BIND_BITYPES_H
51711#include <bind/bitypes.h>
51712#endif
51713#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51714#include <netinet/in6_machtypes.h>
51715#endif
51716
51717
51718int
51719main ()
51720{
51721if ((int64_t *) 0)
51722  return 0;
51723if (sizeof (int64_t))
51724  return 0;
51725  ;
51726  return 0;
51727}
51728_ACEOF
51729rm -f conftest.$ac_objext
51730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51731  (eval $ac_compile) 2>conftest.er1
51732  ac_status=$?
51733  grep -v '^ *+' conftest.er1 >conftest.err
51734  rm -f conftest.er1
51735  cat conftest.err >&5
51736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51737  (exit $ac_status); } &&
51738	 { ac_try='test -z "$ac_c_werror_flag"
51739			 || test ! -s conftest.err'
51740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51741  (eval $ac_try) 2>&5
51742  ac_status=$?
51743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51744  (exit $ac_status); }; } &&
51745	 { ac_try='test -s conftest.$ac_objext'
51746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51747  (eval $ac_try) 2>&5
51748  ac_status=$?
51749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51750  (exit $ac_status); }; }; then
51751  ac_cv_type_int64_t=yes
51752else
51753  echo "$as_me: failed program was:" >&5
51754sed 's/^/| /' conftest.$ac_ext >&5
51755
51756ac_cv_type_int64_t=no
51757fi
51758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51759fi
51760echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
51761echo "${ECHO_T}$ac_cv_type_int64_t" >&6
51762if test $ac_cv_type_int64_t = yes; then
51763
51764cat >>confdefs.h <<_ACEOF
51765#define HAVE_INT64_T 1
51766_ACEOF
51767
51768
51769fi
51770echo "$as_me:$LINENO: checking for u_int8_t" >&5
51771echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
51772if test "${ac_cv_type_u_int8_t+set}" = set; then
51773  echo $ECHO_N "(cached) $ECHO_C" >&6
51774else
51775  cat >conftest.$ac_ext <<_ACEOF
51776/* confdefs.h.  */
51777_ACEOF
51778cat confdefs.h >>conftest.$ac_ext
51779cat >>conftest.$ac_ext <<_ACEOF
51780/* end confdefs.h.  */
51781
51782#ifdef HAVE_INTTYPES_H
51783#include <inttypes.h>
51784#endif
51785#ifdef HAVE_SYS_TYPES_H
51786#include <sys/types.h>
51787#endif
51788#ifdef HAVE_SYS_BITYPES_H
51789#include <sys/bitypes.h>
51790#endif
51791#ifdef HAVE_BIND_BITYPES_H
51792#include <bind/bitypes.h>
51793#endif
51794#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51795#include <netinet/in6_machtypes.h>
51796#endif
51797
51798
51799int
51800main ()
51801{
51802if ((u_int8_t *) 0)
51803  return 0;
51804if (sizeof (u_int8_t))
51805  return 0;
51806  ;
51807  return 0;
51808}
51809_ACEOF
51810rm -f conftest.$ac_objext
51811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51812  (eval $ac_compile) 2>conftest.er1
51813  ac_status=$?
51814  grep -v '^ *+' conftest.er1 >conftest.err
51815  rm -f conftest.er1
51816  cat conftest.err >&5
51817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51818  (exit $ac_status); } &&
51819	 { ac_try='test -z "$ac_c_werror_flag"
51820			 || test ! -s conftest.err'
51821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51822  (eval $ac_try) 2>&5
51823  ac_status=$?
51824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51825  (exit $ac_status); }; } &&
51826	 { ac_try='test -s conftest.$ac_objext'
51827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51828  (eval $ac_try) 2>&5
51829  ac_status=$?
51830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51831  (exit $ac_status); }; }; then
51832  ac_cv_type_u_int8_t=yes
51833else
51834  echo "$as_me: failed program was:" >&5
51835sed 's/^/| /' conftest.$ac_ext >&5
51836
51837ac_cv_type_u_int8_t=no
51838fi
51839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51840fi
51841echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
51842echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
51843if test $ac_cv_type_u_int8_t = yes; then
51844
51845cat >>confdefs.h <<_ACEOF
51846#define HAVE_U_INT8_T 1
51847_ACEOF
51848
51849
51850fi
51851echo "$as_me:$LINENO: checking for u_int16_t" >&5
51852echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
51853if test "${ac_cv_type_u_int16_t+set}" = set; then
51854  echo $ECHO_N "(cached) $ECHO_C" >&6
51855else
51856  cat >conftest.$ac_ext <<_ACEOF
51857/* confdefs.h.  */
51858_ACEOF
51859cat confdefs.h >>conftest.$ac_ext
51860cat >>conftest.$ac_ext <<_ACEOF
51861/* end confdefs.h.  */
51862
51863#ifdef HAVE_INTTYPES_H
51864#include <inttypes.h>
51865#endif
51866#ifdef HAVE_SYS_TYPES_H
51867#include <sys/types.h>
51868#endif
51869#ifdef HAVE_SYS_BITYPES_H
51870#include <sys/bitypes.h>
51871#endif
51872#ifdef HAVE_BIND_BITYPES_H
51873#include <bind/bitypes.h>
51874#endif
51875#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51876#include <netinet/in6_machtypes.h>
51877#endif
51878
51879
51880int
51881main ()
51882{
51883if ((u_int16_t *) 0)
51884  return 0;
51885if (sizeof (u_int16_t))
51886  return 0;
51887  ;
51888  return 0;
51889}
51890_ACEOF
51891rm -f conftest.$ac_objext
51892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51893  (eval $ac_compile) 2>conftest.er1
51894  ac_status=$?
51895  grep -v '^ *+' conftest.er1 >conftest.err
51896  rm -f conftest.er1
51897  cat conftest.err >&5
51898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51899  (exit $ac_status); } &&
51900	 { ac_try='test -z "$ac_c_werror_flag"
51901			 || test ! -s conftest.err'
51902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51903  (eval $ac_try) 2>&5
51904  ac_status=$?
51905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51906  (exit $ac_status); }; } &&
51907	 { ac_try='test -s conftest.$ac_objext'
51908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51909  (eval $ac_try) 2>&5
51910  ac_status=$?
51911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51912  (exit $ac_status); }; }; then
51913  ac_cv_type_u_int16_t=yes
51914else
51915  echo "$as_me: failed program was:" >&5
51916sed 's/^/| /' conftest.$ac_ext >&5
51917
51918ac_cv_type_u_int16_t=no
51919fi
51920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51921fi
51922echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
51923echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
51924if test $ac_cv_type_u_int16_t = yes; then
51925
51926cat >>confdefs.h <<_ACEOF
51927#define HAVE_U_INT16_T 1
51928_ACEOF
51929
51930
51931fi
51932echo "$as_me:$LINENO: checking for u_int32_t" >&5
51933echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
51934if test "${ac_cv_type_u_int32_t+set}" = set; then
51935  echo $ECHO_N "(cached) $ECHO_C" >&6
51936else
51937  cat >conftest.$ac_ext <<_ACEOF
51938/* confdefs.h.  */
51939_ACEOF
51940cat confdefs.h >>conftest.$ac_ext
51941cat >>conftest.$ac_ext <<_ACEOF
51942/* end confdefs.h.  */
51943
51944#ifdef HAVE_INTTYPES_H
51945#include <inttypes.h>
51946#endif
51947#ifdef HAVE_SYS_TYPES_H
51948#include <sys/types.h>
51949#endif
51950#ifdef HAVE_SYS_BITYPES_H
51951#include <sys/bitypes.h>
51952#endif
51953#ifdef HAVE_BIND_BITYPES_H
51954#include <bind/bitypes.h>
51955#endif
51956#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51957#include <netinet/in6_machtypes.h>
51958#endif
51959
51960
51961int
51962main ()
51963{
51964if ((u_int32_t *) 0)
51965  return 0;
51966if (sizeof (u_int32_t))
51967  return 0;
51968  ;
51969  return 0;
51970}
51971_ACEOF
51972rm -f conftest.$ac_objext
51973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51974  (eval $ac_compile) 2>conftest.er1
51975  ac_status=$?
51976  grep -v '^ *+' conftest.er1 >conftest.err
51977  rm -f conftest.er1
51978  cat conftest.err >&5
51979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51980  (exit $ac_status); } &&
51981	 { ac_try='test -z "$ac_c_werror_flag"
51982			 || test ! -s conftest.err'
51983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51984  (eval $ac_try) 2>&5
51985  ac_status=$?
51986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51987  (exit $ac_status); }; } &&
51988	 { ac_try='test -s conftest.$ac_objext'
51989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51990  (eval $ac_try) 2>&5
51991  ac_status=$?
51992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51993  (exit $ac_status); }; }; then
51994  ac_cv_type_u_int32_t=yes
51995else
51996  echo "$as_me: failed program was:" >&5
51997sed 's/^/| /' conftest.$ac_ext >&5
51998
51999ac_cv_type_u_int32_t=no
52000fi
52001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52002fi
52003echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
52004echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
52005if test $ac_cv_type_u_int32_t = yes; then
52006
52007cat >>confdefs.h <<_ACEOF
52008#define HAVE_U_INT32_T 1
52009_ACEOF
52010
52011
52012fi
52013echo "$as_me:$LINENO: checking for u_int64_t" >&5
52014echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
52015if test "${ac_cv_type_u_int64_t+set}" = set; then
52016  echo $ECHO_N "(cached) $ECHO_C" >&6
52017else
52018  cat >conftest.$ac_ext <<_ACEOF
52019/* confdefs.h.  */
52020_ACEOF
52021cat confdefs.h >>conftest.$ac_ext
52022cat >>conftest.$ac_ext <<_ACEOF
52023/* end confdefs.h.  */
52024
52025#ifdef HAVE_INTTYPES_H
52026#include <inttypes.h>
52027#endif
52028#ifdef HAVE_SYS_TYPES_H
52029#include <sys/types.h>
52030#endif
52031#ifdef HAVE_SYS_BITYPES_H
52032#include <sys/bitypes.h>
52033#endif
52034#ifdef HAVE_BIND_BITYPES_H
52035#include <bind/bitypes.h>
52036#endif
52037#ifdef HAVE_NETINET_IN6_MACHTYPES_H
52038#include <netinet/in6_machtypes.h>
52039#endif
52040
52041
52042int
52043main ()
52044{
52045if ((u_int64_t *) 0)
52046  return 0;
52047if (sizeof (u_int64_t))
52048  return 0;
52049  ;
52050  return 0;
52051}
52052_ACEOF
52053rm -f conftest.$ac_objext
52054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52055  (eval $ac_compile) 2>conftest.er1
52056  ac_status=$?
52057  grep -v '^ *+' conftest.er1 >conftest.err
52058  rm -f conftest.er1
52059  cat conftest.err >&5
52060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52061  (exit $ac_status); } &&
52062	 { ac_try='test -z "$ac_c_werror_flag"
52063			 || test ! -s conftest.err'
52064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52065  (eval $ac_try) 2>&5
52066  ac_status=$?
52067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52068  (exit $ac_status); }; } &&
52069	 { ac_try='test -s conftest.$ac_objext'
52070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52071  (eval $ac_try) 2>&5
52072  ac_status=$?
52073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52074  (exit $ac_status); }; }; then
52075  ac_cv_type_u_int64_t=yes
52076else
52077  echo "$as_me: failed program was:" >&5
52078sed 's/^/| /' conftest.$ac_ext >&5
52079
52080ac_cv_type_u_int64_t=no
52081fi
52082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52083fi
52084echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
52085echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
52086if test $ac_cv_type_u_int64_t = yes; then
52087
52088cat >>confdefs.h <<_ACEOF
52089#define HAVE_U_INT64_T 1
52090_ACEOF
52091
52092
52093fi
52094echo "$as_me:$LINENO: checking for uint8_t" >&5
52095echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
52096if test "${ac_cv_type_uint8_t+set}" = set; then
52097  echo $ECHO_N "(cached) $ECHO_C" >&6
52098else
52099  cat >conftest.$ac_ext <<_ACEOF
52100/* confdefs.h.  */
52101_ACEOF
52102cat confdefs.h >>conftest.$ac_ext
52103cat >>conftest.$ac_ext <<_ACEOF
52104/* end confdefs.h.  */
52105
52106#ifdef HAVE_INTTYPES_H
52107#include <inttypes.h>
52108#endif
52109#ifdef HAVE_SYS_TYPES_H
52110#include <sys/types.h>
52111#endif
52112#ifdef HAVE_SYS_BITYPES_H
52113#include <sys/bitypes.h>
52114#endif
52115#ifdef HAVE_BIND_BITYPES_H
52116#include <bind/bitypes.h>
52117#endif
52118#ifdef HAVE_NETINET_IN6_MACHTYPES_H
52119#include <netinet/in6_machtypes.h>
52120#endif
52121
52122
52123int
52124main ()
52125{
52126if ((uint8_t *) 0)
52127  return 0;
52128if (sizeof (uint8_t))
52129  return 0;
52130  ;
52131  return 0;
52132}
52133_ACEOF
52134rm -f conftest.$ac_objext
52135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52136  (eval $ac_compile) 2>conftest.er1
52137  ac_status=$?
52138  grep -v '^ *+' conftest.er1 >conftest.err
52139  rm -f conftest.er1
52140  cat conftest.err >&5
52141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52142  (exit $ac_status); } &&
52143	 { ac_try='test -z "$ac_c_werror_flag"
52144			 || test ! -s conftest.err'
52145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52146  (eval $ac_try) 2>&5
52147  ac_status=$?
52148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52149  (exit $ac_status); }; } &&
52150	 { ac_try='test -s conftest.$ac_objext'
52151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52152  (eval $ac_try) 2>&5
52153  ac_status=$?
52154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52155  (exit $ac_status); }; }; then
52156  ac_cv_type_uint8_t=yes
52157else
52158  echo "$as_me: failed program was:" >&5
52159sed 's/^/| /' conftest.$ac_ext >&5
52160
52161ac_cv_type_uint8_t=no
52162fi
52163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52164fi
52165echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
52166echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
52167if test $ac_cv_type_uint8_t = yes; then
52168
52169cat >>confdefs.h <<_ACEOF
52170#define HAVE_UINT8_T 1
52171_ACEOF
52172
52173
52174fi
52175echo "$as_me:$LINENO: checking for uint16_t" >&5
52176echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
52177if test "${ac_cv_type_uint16_t+set}" = set; then
52178  echo $ECHO_N "(cached) $ECHO_C" >&6
52179else
52180  cat >conftest.$ac_ext <<_ACEOF
52181/* confdefs.h.  */
52182_ACEOF
52183cat confdefs.h >>conftest.$ac_ext
52184cat >>conftest.$ac_ext <<_ACEOF
52185/* end confdefs.h.  */
52186
52187#ifdef HAVE_INTTYPES_H
52188#include <inttypes.h>
52189#endif
52190#ifdef HAVE_SYS_TYPES_H
52191#include <sys/types.h>
52192#endif
52193#ifdef HAVE_SYS_BITYPES_H
52194#include <sys/bitypes.h>
52195#endif
52196#ifdef HAVE_BIND_BITYPES_H
52197#include <bind/bitypes.h>
52198#endif
52199#ifdef HAVE_NETINET_IN6_MACHTYPES_H
52200#include <netinet/in6_machtypes.h>
52201#endif
52202
52203
52204int
52205main ()
52206{
52207if ((uint16_t *) 0)
52208  return 0;
52209if (sizeof (uint16_t))
52210  return 0;
52211  ;
52212  return 0;
52213}
52214_ACEOF
52215rm -f conftest.$ac_objext
52216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52217  (eval $ac_compile) 2>conftest.er1
52218  ac_status=$?
52219  grep -v '^ *+' conftest.er1 >conftest.err
52220  rm -f conftest.er1
52221  cat conftest.err >&5
52222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52223  (exit $ac_status); } &&
52224	 { ac_try='test -z "$ac_c_werror_flag"
52225			 || test ! -s conftest.err'
52226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52227  (eval $ac_try) 2>&5
52228  ac_status=$?
52229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52230  (exit $ac_status); }; } &&
52231	 { ac_try='test -s conftest.$ac_objext'
52232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52233  (eval $ac_try) 2>&5
52234  ac_status=$?
52235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52236  (exit $ac_status); }; }; then
52237  ac_cv_type_uint16_t=yes
52238else
52239  echo "$as_me: failed program was:" >&5
52240sed 's/^/| /' conftest.$ac_ext >&5
52241
52242ac_cv_type_uint16_t=no
52243fi
52244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52245fi
52246echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
52247echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
52248if test $ac_cv_type_uint16_t = yes; then
52249
52250cat >>confdefs.h <<_ACEOF
52251#define HAVE_UINT16_T 1
52252_ACEOF
52253
52254
52255fi
52256echo "$as_me:$LINENO: checking for uint32_t" >&5
52257echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
52258if test "${ac_cv_type_uint32_t+set}" = set; then
52259  echo $ECHO_N "(cached) $ECHO_C" >&6
52260else
52261  cat >conftest.$ac_ext <<_ACEOF
52262/* confdefs.h.  */
52263_ACEOF
52264cat confdefs.h >>conftest.$ac_ext
52265cat >>conftest.$ac_ext <<_ACEOF
52266/* end confdefs.h.  */
52267
52268#ifdef HAVE_INTTYPES_H
52269#include <inttypes.h>
52270#endif
52271#ifdef HAVE_SYS_TYPES_H
52272#include <sys/types.h>
52273#endif
52274#ifdef HAVE_SYS_BITYPES_H
52275#include <sys/bitypes.h>
52276#endif
52277#ifdef HAVE_BIND_BITYPES_H
52278#include <bind/bitypes.h>
52279#endif
52280#ifdef HAVE_NETINET_IN6_MACHTYPES_H
52281#include <netinet/in6_machtypes.h>
52282#endif
52283
52284
52285int
52286main ()
52287{
52288if ((uint32_t *) 0)
52289  return 0;
52290if (sizeof (uint32_t))
52291  return 0;
52292  ;
52293  return 0;
52294}
52295_ACEOF
52296rm -f conftest.$ac_objext
52297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52298  (eval $ac_compile) 2>conftest.er1
52299  ac_status=$?
52300  grep -v '^ *+' conftest.er1 >conftest.err
52301  rm -f conftest.er1
52302  cat conftest.err >&5
52303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52304  (exit $ac_status); } &&
52305	 { ac_try='test -z "$ac_c_werror_flag"
52306			 || test ! -s conftest.err'
52307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52308  (eval $ac_try) 2>&5
52309  ac_status=$?
52310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52311  (exit $ac_status); }; } &&
52312	 { ac_try='test -s conftest.$ac_objext'
52313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52314  (eval $ac_try) 2>&5
52315  ac_status=$?
52316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52317  (exit $ac_status); }; }; then
52318  ac_cv_type_uint32_t=yes
52319else
52320  echo "$as_me: failed program was:" >&5
52321sed 's/^/| /' conftest.$ac_ext >&5
52322
52323ac_cv_type_uint32_t=no
52324fi
52325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52326fi
52327echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
52328echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
52329if test $ac_cv_type_uint32_t = yes; then
52330
52331cat >>confdefs.h <<_ACEOF
52332#define HAVE_UINT32_T 1
52333_ACEOF
52334
52335
52336fi
52337echo "$as_me:$LINENO: checking for uint64_t" >&5
52338echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
52339if test "${ac_cv_type_uint64_t+set}" = set; then
52340  echo $ECHO_N "(cached) $ECHO_C" >&6
52341else
52342  cat >conftest.$ac_ext <<_ACEOF
52343/* confdefs.h.  */
52344_ACEOF
52345cat confdefs.h >>conftest.$ac_ext
52346cat >>conftest.$ac_ext <<_ACEOF
52347/* end confdefs.h.  */
52348
52349#ifdef HAVE_INTTYPES_H
52350#include <inttypes.h>
52351#endif
52352#ifdef HAVE_SYS_TYPES_H
52353#include <sys/types.h>
52354#endif
52355#ifdef HAVE_SYS_BITYPES_H
52356#include <sys/bitypes.h>
52357#endif
52358#ifdef HAVE_BIND_BITYPES_H
52359#include <bind/bitypes.h>
52360#endif
52361#ifdef HAVE_NETINET_IN6_MACHTYPES_H
52362#include <netinet/in6_machtypes.h>
52363#endif
52364
52365
52366int
52367main ()
52368{
52369if ((uint64_t *) 0)
52370  return 0;
52371if (sizeof (uint64_t))
52372  return 0;
52373  ;
52374  return 0;
52375}
52376_ACEOF
52377rm -f conftest.$ac_objext
52378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52379  (eval $ac_compile) 2>conftest.er1
52380  ac_status=$?
52381  grep -v '^ *+' conftest.er1 >conftest.err
52382  rm -f conftest.er1
52383  cat conftest.err >&5
52384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52385  (exit $ac_status); } &&
52386	 { ac_try='test -z "$ac_c_werror_flag"
52387			 || test ! -s conftest.err'
52388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52389  (eval $ac_try) 2>&5
52390  ac_status=$?
52391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52392  (exit $ac_status); }; } &&
52393	 { ac_try='test -s conftest.$ac_objext'
52394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52395  (eval $ac_try) 2>&5
52396  ac_status=$?
52397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52398  (exit $ac_status); }; }; then
52399  ac_cv_type_uint64_t=yes
52400else
52401  echo "$as_me: failed program was:" >&5
52402sed 's/^/| /' conftest.$ac_ext >&5
52403
52404ac_cv_type_uint64_t=no
52405fi
52406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52407fi
52408echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
52409echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
52410if test $ac_cv_type_uint64_t = yes; then
52411
52412cat >>confdefs.h <<_ACEOF
52413#define HAVE_UINT64_T 1
52414_ACEOF
52415
52416
52417fi
52418
52419
52420
52421
52422
52423
52424echo "$as_me:$LINENO: checking for el_init" >&5
52425echo $ECHO_N "checking for el_init... $ECHO_C" >&6
52426if test "${ac_cv_funclib_el_init+set}" = set; then
52427  echo $ECHO_N "(cached) $ECHO_C" >&6
52428else
52429
52430if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
52431	ac_save_LIBS="$LIBS"
52432	for ac_lib in "" edit; do
52433		case "$ac_lib" in
52434		"") ;;
52435		yes) ac_lib="" ;;
52436		no) continue ;;
52437		-l*) ;;
52438		*) ac_lib="-l$ac_lib" ;;
52439		esac
52440		LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
52441		cat >conftest.$ac_ext <<_ACEOF
52442/* confdefs.h.  */
52443_ACEOF
52444cat confdefs.h >>conftest.$ac_ext
52445cat >>conftest.$ac_ext <<_ACEOF
52446/* end confdefs.h.  */
52447
52448int
52449main ()
52450{
52451el_init()
52452  ;
52453  return 0;
52454}
52455_ACEOF
52456rm -f conftest.$ac_objext conftest$ac_exeext
52457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52458  (eval $ac_link) 2>conftest.er1
52459  ac_status=$?
52460  grep -v '^ *+' conftest.er1 >conftest.err
52461  rm -f conftest.er1
52462  cat conftest.err >&5
52463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52464  (exit $ac_status); } &&
52465	 { ac_try='test -z "$ac_c_werror_flag"
52466			 || test ! -s conftest.err'
52467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52468  (eval $ac_try) 2>&5
52469  ac_status=$?
52470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52471  (exit $ac_status); }; } &&
52472	 { ac_try='test -s conftest$ac_exeext'
52473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52474  (eval $ac_try) 2>&5
52475  ac_status=$?
52476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52477  (exit $ac_status); }; }; then
52478  eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
52479else
52480  echo "$as_me: failed program was:" >&5
52481sed 's/^/| /' conftest.$ac_ext >&5
52482
52483fi
52484rm -f conftest.err conftest.$ac_objext \
52485      conftest$ac_exeext conftest.$ac_ext
52486	done
52487	eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
52488	LIBS="$ac_save_LIBS"
52489fi
52490
52491fi
52492
52493
52494eval "ac_res=\$ac_cv_funclib_el_init"
52495
52496if false; then
52497
52498for ac_func in el_init
52499do
52500as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52501echo "$as_me:$LINENO: checking for $ac_func" >&5
52502echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52503if eval "test \"\${$as_ac_var+set}\" = set"; then
52504  echo $ECHO_N "(cached) $ECHO_C" >&6
52505else
52506  cat >conftest.$ac_ext <<_ACEOF
52507/* confdefs.h.  */
52508_ACEOF
52509cat confdefs.h >>conftest.$ac_ext
52510cat >>conftest.$ac_ext <<_ACEOF
52511/* end confdefs.h.  */
52512/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52513   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52514#define $ac_func innocuous_$ac_func
52515
52516/* System header to define __stub macros and hopefully few prototypes,
52517    which can conflict with char $ac_func (); below.
52518    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52519    <limits.h> exists even on freestanding compilers.  */
52520
52521#ifdef __STDC__
52522# include <limits.h>
52523#else
52524# include <assert.h>
52525#endif
52526
52527#undef $ac_func
52528
52529/* Override any gcc2 internal prototype to avoid an error.  */
52530#ifdef __cplusplus
52531extern "C"
52532{
52533#endif
52534/* We use char because int might match the return type of a gcc2
52535   builtin and then its argument prototype would still apply.  */
52536char $ac_func ();
52537/* The GNU C library defines this for functions which it implements
52538    to always fail with ENOSYS.  Some functions are actually named
52539    something starting with __ and the normal name is an alias.  */
52540#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52541choke me
52542#else
52543char (*f) () = $ac_func;
52544#endif
52545#ifdef __cplusplus
52546}
52547#endif
52548
52549int
52550main ()
52551{
52552return f != $ac_func;
52553  ;
52554  return 0;
52555}
52556_ACEOF
52557rm -f conftest.$ac_objext conftest$ac_exeext
52558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52559  (eval $ac_link) 2>conftest.er1
52560  ac_status=$?
52561  grep -v '^ *+' conftest.er1 >conftest.err
52562  rm -f conftest.er1
52563  cat conftest.err >&5
52564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52565  (exit $ac_status); } &&
52566	 { ac_try='test -z "$ac_c_werror_flag"
52567			 || test ! -s conftest.err'
52568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52569  (eval $ac_try) 2>&5
52570  ac_status=$?
52571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52572  (exit $ac_status); }; } &&
52573	 { ac_try='test -s conftest$ac_exeext'
52574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52575  (eval $ac_try) 2>&5
52576  ac_status=$?
52577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52578  (exit $ac_status); }; }; then
52579  eval "$as_ac_var=yes"
52580else
52581  echo "$as_me: failed program was:" >&5
52582sed 's/^/| /' conftest.$ac_ext >&5
52583
52584eval "$as_ac_var=no"
52585fi
52586rm -f conftest.err conftest.$ac_objext \
52587      conftest$ac_exeext conftest.$ac_ext
52588fi
52589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52590echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52591if test `eval echo '${'$as_ac_var'}'` = yes; then
52592  cat >>confdefs.h <<_ACEOF
52593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52594_ACEOF
52595
52596fi
52597done
52598
52599fi
52600# el_init
52601eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
52602eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
52603eval "LIB_el_init=$ac_res"
52604
52605case "$ac_res" in
52606	yes)
52607	eval "ac_cv_func_el_init=yes"
52608	eval "LIB_el_init="
52609	cat >>confdefs.h <<_ACEOF
52610#define $ac_tr_func 1
52611_ACEOF
52612
52613	echo "$as_me:$LINENO: result: yes" >&5
52614echo "${ECHO_T}yes" >&6
52615	;;
52616	no)
52617	eval "ac_cv_func_el_init=no"
52618	eval "LIB_el_init="
52619	echo "$as_me:$LINENO: result: no" >&5
52620echo "${ECHO_T}no" >&6
52621	;;
52622	*)
52623	eval "ac_cv_func_el_init=yes"
52624	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
52625	cat >>confdefs.h <<_ACEOF
52626#define $ac_tr_func 1
52627_ACEOF
52628
52629	cat >>confdefs.h <<_ACEOF
52630#define $ac_tr_lib 1
52631_ACEOF
52632
52633	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
52634echo "${ECHO_T}yes, in $ac_res" >&6
52635	;;
52636esac
52637
52638
52639if test "$ac_cv_func_el_init" = yes ; then
52640	echo "$as_me:$LINENO: checking for four argument el_init" >&5
52641echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
52642if test "${ac_cv_func_el_init_four+set}" = set; then
52643  echo $ECHO_N "(cached) $ECHO_C" >&6
52644else
52645
52646		cat >conftest.$ac_ext <<_ACEOF
52647/* confdefs.h.  */
52648_ACEOF
52649cat confdefs.h >>conftest.$ac_ext
52650cat >>conftest.$ac_ext <<_ACEOF
52651/* end confdefs.h.  */
52652#include <stdio.h>
52653			#include <histedit.h>
52654int
52655main ()
52656{
52657el_init("", NULL, NULL, NULL);
52658  ;
52659  return 0;
52660}
52661_ACEOF
52662rm -f conftest.$ac_objext
52663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52664  (eval $ac_compile) 2>conftest.er1
52665  ac_status=$?
52666  grep -v '^ *+' conftest.er1 >conftest.err
52667  rm -f conftest.er1
52668  cat conftest.err >&5
52669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52670  (exit $ac_status); } &&
52671	 { ac_try='test -z "$ac_c_werror_flag"
52672			 || test ! -s conftest.err'
52673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52674  (eval $ac_try) 2>&5
52675  ac_status=$?
52676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52677  (exit $ac_status); }; } &&
52678	 { ac_try='test -s conftest.$ac_objext'
52679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52680  (eval $ac_try) 2>&5
52681  ac_status=$?
52682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52683  (exit $ac_status); }; }; then
52684  ac_cv_func_el_init_four=yes
52685else
52686  echo "$as_me: failed program was:" >&5
52687sed 's/^/| /' conftest.$ac_ext >&5
52688
52689ac_cv_func_el_init_four=no
52690fi
52691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52692fi
52693echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
52694echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
52695	if test "$ac_cv_func_el_init_four" = yes; then
52696
52697cat >>confdefs.h <<\_ACEOF
52698#define HAVE_FOUR_VALUED_EL_INIT 1
52699_ACEOF
52700
52701	fi
52702fi
52703
52704
52705ac_foo=no
52706if test "$with_readline" = yes; then
52707	:
52708elif test "$ac_cv_func_readline" = yes; then
52709	:
52710elif test "$ac_cv_func_el_init" = yes; then
52711	ac_foo=yes
52712	LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
52713else
52714	LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
52715fi
52716
52717
52718if test "$ac_foo" = yes; then
52719  el_compat_TRUE=
52720  el_compat_FALSE='#'
52721else
52722  el_compat_TRUE='#'
52723  el_compat_FALSE=
52724fi
52725
52726
52727cat >>confdefs.h <<\_ACEOF
52728#define HAVE_READLINE 1
52729_ACEOF
52730
52731
52732
52733
52734
52735cat >>confdefs.h <<\_ACEOF
52736#define AUTHENTICATION 1
52737_ACEOF
52738
52739cat >>confdefs.h <<\_ACEOF
52740#define ENCRYPTION 1
52741_ACEOF
52742
52743cat >>confdefs.h <<\_ACEOF
52744#define DES_ENCRYPTION 1
52745_ACEOF
52746
52747cat >>confdefs.h <<\_ACEOF
52748#define DIAGNOSTICS 1
52749_ACEOF
52750
52751cat >>confdefs.h <<\_ACEOF
52752#define OLD_ENVIRON 1
52753_ACEOF
52754if false; then
52755
52756cat >>confdefs.h <<\_ACEOF
52757#define ENV_HACK 1
52758_ACEOF
52759
52760fi
52761
52762# Simple test for streamspty, based on the existance of getmsg(), alas
52763# this breaks on SunOS4 which have streams but BSD-like ptys
52764#
52765# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
52766
52767case "$host" in
52768*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
52769	;;
52770*)
52771	echo "$as_me:$LINENO: checking for getmsg" >&5
52772echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
52773if test "${ac_cv_func_getmsg+set}" = set; then
52774  echo $ECHO_N "(cached) $ECHO_C" >&6
52775else
52776  cat >conftest.$ac_ext <<_ACEOF
52777/* confdefs.h.  */
52778_ACEOF
52779cat confdefs.h >>conftest.$ac_ext
52780cat >>conftest.$ac_ext <<_ACEOF
52781/* end confdefs.h.  */
52782/* Define getmsg to an innocuous variant, in case <limits.h> declares getmsg.
52783   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52784#define getmsg innocuous_getmsg
52785
52786/* System header to define __stub macros and hopefully few prototypes,
52787    which can conflict with char getmsg (); below.
52788    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52789    <limits.h> exists even on freestanding compilers.  */
52790
52791#ifdef __STDC__
52792# include <limits.h>
52793#else
52794# include <assert.h>
52795#endif
52796
52797#undef getmsg
52798
52799/* Override any gcc2 internal prototype to avoid an error.  */
52800#ifdef __cplusplus
52801extern "C"
52802{
52803#endif
52804/* We use char because int might match the return type of a gcc2
52805   builtin and then its argument prototype would still apply.  */
52806char getmsg ();
52807/* The GNU C library defines this for functions which it implements
52808    to always fail with ENOSYS.  Some functions are actually named
52809    something starting with __ and the normal name is an alias.  */
52810#if defined (__stub_getmsg) || defined (__stub___getmsg)
52811choke me
52812#else
52813char (*f) () = getmsg;
52814#endif
52815#ifdef __cplusplus
52816}
52817#endif
52818
52819int
52820main ()
52821{
52822return f != getmsg;
52823  ;
52824  return 0;
52825}
52826_ACEOF
52827rm -f conftest.$ac_objext conftest$ac_exeext
52828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52829  (eval $ac_link) 2>conftest.er1
52830  ac_status=$?
52831  grep -v '^ *+' conftest.er1 >conftest.err
52832  rm -f conftest.er1
52833  cat conftest.err >&5
52834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52835  (exit $ac_status); } &&
52836	 { ac_try='test -z "$ac_c_werror_flag"
52837			 || test ! -s conftest.err'
52838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52839  (eval $ac_try) 2>&5
52840  ac_status=$?
52841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52842  (exit $ac_status); }; } &&
52843	 { ac_try='test -s conftest$ac_exeext'
52844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52845  (eval $ac_try) 2>&5
52846  ac_status=$?
52847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52848  (exit $ac_status); }; }; then
52849  ac_cv_func_getmsg=yes
52850else
52851  echo "$as_me: failed program was:" >&5
52852sed 's/^/| /' conftest.$ac_ext >&5
52853
52854ac_cv_func_getmsg=no
52855fi
52856rm -f conftest.err conftest.$ac_objext \
52857      conftest$ac_exeext conftest.$ac_ext
52858fi
52859echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
52860echo "${ECHO_T}$ac_cv_func_getmsg" >&6
52861
52862	if test "$ac_cv_func_getmsg" = "yes"; then
52863		echo "$as_me:$LINENO: checking if getmsg works" >&5
52864echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6
52865if test "${ac_cv_func_getmsg_works+set}" = set; then
52866  echo $ECHO_N "(cached) $ECHO_C" >&6
52867else
52868  if test "$cross_compiling" = yes; then
52869  ac_cv_func_getmsg_works=no
52870else
52871  cat >conftest.$ac_ext <<_ACEOF
52872/* confdefs.h.  */
52873_ACEOF
52874cat confdefs.h >>conftest.$ac_ext
52875cat >>conftest.$ac_ext <<_ACEOF
52876/* end confdefs.h.  */
52877
52878			#include <stdio.h>
52879			#include <errno.h>
52880
52881			int main()
52882			{
52883			  int ret;
52884			  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
52885			  if(ret < 0 && errno == ENOSYS)
52886			    return 1;
52887			  return 0;
52888			}
52889
52890_ACEOF
52891rm -f conftest$ac_exeext
52892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52893  (eval $ac_link) 2>&5
52894  ac_status=$?
52895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52896  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52898  (eval $ac_try) 2>&5
52899  ac_status=$?
52900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52901  (exit $ac_status); }; }; then
52902  ac_cv_func_getmsg_works=yes
52903else
52904  echo "$as_me: program exited with status $ac_status" >&5
52905echo "$as_me: failed program was:" >&5
52906sed 's/^/| /' conftest.$ac_ext >&5
52907
52908( exit $ac_status )
52909ac_cv_func_getmsg_works=no
52910fi
52911rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52912fi
52913fi
52914echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
52915echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6
52916		if test "$ac_cv_func_getmsg_works" = "yes"; then
52917
52918cat >>confdefs.h <<\_ACEOF
52919#define HAVE_GETMSG 1
52920_ACEOF
52921
52922
52923cat >>confdefs.h <<\_ACEOF
52924#define STREAMSPTY 1
52925_ACEOF
52926
52927		fi
52928	fi
52929	;;
52930esac
52931
52932
52933
52934
52935
52936
52937
52938# Extract the first word of "compile_et", so it can be a program name with args.
52939set dummy compile_et; ac_word=$2
52940echo "$as_me:$LINENO: checking for $ac_word" >&5
52941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
52942if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
52943  echo $ECHO_N "(cached) $ECHO_C" >&6
52944else
52945  if test -n "$COMPILE_ET"; then
52946  ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
52947else
52948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52949for as_dir in $PATH
52950do
52951  IFS=$as_save_IFS
52952  test -z "$as_dir" && as_dir=.
52953  for ac_exec_ext in '' $ac_executable_extensions; do
52954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
52955    ac_cv_prog_COMPILE_ET="compile_et"
52956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52957    break 2
52958  fi
52959done
52960done
52961
52962fi
52963fi
52964COMPILE_ET=$ac_cv_prog_COMPILE_ET
52965if test -n "$COMPILE_ET"; then
52966  echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
52967echo "${ECHO_T}$COMPILE_ET" >&6
52968else
52969  echo "$as_me:$LINENO: result: no" >&5
52970echo "${ECHO_T}no" >&6
52971fi
52972
52973
52974krb_cv_compile_et="no"
52975krb_cv_com_err_need_r=""
52976if test "${COMPILE_ET}" = "compile_et"; then
52977
52978echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
52979echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6
52980cat > conftest_et.et <<'EOF'
52981error_table test conf
52982prefix CONFTEST
52983index 1
52984error_code CODE1, "CODE1"
52985index 128
52986error_code CODE2, "CODE2"
52987end
52988EOF
52989if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
52990    save_CPPFLAGS="${CPPFLAGS}"
52991  if test -d "/usr/include/et"; then
52992    CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
52993  fi
52994    if test "$cross_compiling" = yes; then
52995  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
52996See \`config.log' for more details." >&5
52997echo "$as_me: error: cannot run test program while cross compiling
52998See \`config.log' for more details." >&2;}
52999   { (exit 1); exit 1; }; }
53000else
53001  cat >conftest.$ac_ext <<_ACEOF
53002/* confdefs.h.  */
53003_ACEOF
53004cat confdefs.h >>conftest.$ac_ext
53005cat >>conftest.$ac_ext <<_ACEOF
53006/* end confdefs.h.  */
53007
53008#include <com_err.h>
53009#include <string.h>
53010#include "conftest_et.h"
53011int main(){
53012#ifndef ERROR_TABLE_BASE_conf
53013#error compile_et does not handle error_table N M
53014#endif
53015return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
53016
53017_ACEOF
53018rm -f conftest$ac_exeext
53019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53020  (eval $ac_link) 2>&5
53021  ac_status=$?
53022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53023  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53025  (eval $ac_try) 2>&5
53026  ac_status=$?
53027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53028  (exit $ac_status); }; }; then
53029  krb_cv_compile_et="yes"
53030else
53031  echo "$as_me: program exited with status $ac_status" >&5
53032echo "$as_me: failed program was:" >&5
53033sed 's/^/| /' conftest.$ac_ext >&5
53034
53035( exit $ac_status )
53036CPPFLAGS="${save_CPPFLAGS}"
53037fi
53038rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53039fi
53040fi
53041echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
53042echo "${ECHO_T}${krb_cv_compile_et}" >&6
53043if test "${krb_cv_compile_et}" = "yes"; then
53044  echo "$as_me:$LINENO: checking for if com_err needs to have a initialize_error_table_r" >&5
53045echo $ECHO_N "checking for if com_err needs to have a initialize_error_table_r... $ECHO_C" >&6
53046  cat >conftest.$ac_ext <<_ACEOF
53047/* confdefs.h.  */
53048_ACEOF
53049cat confdefs.h >>conftest.$ac_ext
53050cat >>conftest.$ac_ext <<_ACEOF
53051/* end confdefs.h.  */
53052#include "conftest_et.c"
53053_ACEOF
53054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53055  $EGREP "initialize_error_table_r" >/dev/null 2>&1; then
53056  krb_cv_com_err_need_r="initialize_error_table_r(0,0,0,0);"
53057fi
53058rm -f conftest*
53059
53060  if test X"$krb_cv_com_err_need_r" = X ; then
53061    echo "$as_me:$LINENO: result: no" >&5
53062echo "${ECHO_T}no" >&6
53063  else
53064    echo "$as_me:$LINENO: result: yes" >&5
53065echo "${ECHO_T}yes" >&6
53066  fi
53067fi
53068rm -fr conftest*
53069fi
53070
53071if test "${krb_cv_compile_et}" = "yes"; then
53072    krb_cv_save_LIBS="${LIBS}"
53073  LIBS="${LIBS} -lcom_err"
53074  echo "$as_me:$LINENO: checking for com_err" >&5
53075echo $ECHO_N "checking for com_err... $ECHO_C" >&6
53076  cat >conftest.$ac_ext <<_ACEOF
53077/* confdefs.h.  */
53078_ACEOF
53079cat confdefs.h >>conftest.$ac_ext
53080cat >>conftest.$ac_ext <<_ACEOF
53081/* end confdefs.h.  */
53082#include <com_err.h>
53083int
53084main ()
53085{
53086
53087    const char *p;
53088    p = error_message(0);
53089    $krb_cv_com_err_need_r
53090
53091  ;
53092  return 0;
53093}
53094_ACEOF
53095rm -f conftest.$ac_objext conftest$ac_exeext
53096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53097  (eval $ac_link) 2>conftest.er1
53098  ac_status=$?
53099  grep -v '^ *+' conftest.er1 >conftest.err
53100  rm -f conftest.er1
53101  cat conftest.err >&5
53102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53103  (exit $ac_status); } &&
53104	 { ac_try='test -z "$ac_c_werror_flag"
53105			 || test ! -s conftest.err'
53106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53107  (eval $ac_try) 2>&5
53108  ac_status=$?
53109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53110  (exit $ac_status); }; } &&
53111	 { ac_try='test -s conftest$ac_exeext'
53112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53113  (eval $ac_try) 2>&5
53114  ac_status=$?
53115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53116  (exit $ac_status); }; }; then
53117  krb_cv_com_err="yes"
53118else
53119  echo "$as_me: failed program was:" >&5
53120sed 's/^/| /' conftest.$ac_ext >&5
53121
53122krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
53123fi
53124rm -f conftest.err conftest.$ac_objext \
53125      conftest$ac_exeext conftest.$ac_ext
53126  echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
53127echo "${ECHO_T}${krb_cv_com_err}" >&6
53128  LIBS="${krb_cv_save_LIBS}"
53129else
53130    krb_cv_com_err="no"
53131fi
53132
53133if test "${krb_cv_com_err}" = "yes"; then
53134    DIR_com_err=""
53135    LIB_com_err="-lcom_err"
53136    LIB_com_err_a=""
53137    LIB_com_err_so=""
53138    { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
53139echo "$as_me: Using the already-installed com_err" >&6;}
53140else
53141    COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
53142    DIR_com_err="com_err"
53143    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
53144    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
53145    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
53146    { echo "$as_me:$LINENO: Using our own com_err" >&5
53147echo "$as_me: Using our own com_err" >&6;}
53148fi
53149
53150
53151
53152
53153
53154
53155
53156
53157echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
53158echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
53159
53160z='sia afskauthlib'
53161LIB_AUTH_SUBDIRS=
53162for i in $z; do
53163case $i in
53164sia)
53165if test "$ac_cv_header_siad_h" = yes; then
53166	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
53167fi
53168;;
53169pam)
53170case "${host}" in
53171*-*-freebsd*)	ac_cv_want_pam_krb4=no ;;
53172*)		ac_cv_want_pam_krb4=yes ;;
53173esac
53174
53175if test "$ac_cv_want_pam_krb4" = yes -a \
53176    "$ac_cv_header_security_pam_modules_h" = yes -a \
53177    "$enable_shared" = yes; then
53178	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
53179fi
53180;;
53181afskauthlib)
53182case "${host}" in
53183*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
53184esac
53185;;
53186esac
53187done
53188if test "$LIB_AUTH_SUBDIRS"; then
53189	echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
53190echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
53191else
53192	echo "$as_me:$LINENO: result: none" >&5
53193echo "${ECHO_T}none" >&6
53194fi
53195
53196
53197
53198
53199# This is done by AC_OUTPUT but we need the result here.
53200test "x$prefix" = xNONE && prefix=$ac_default_prefix
53201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53202
53203
53204	x="${bindir}"
53205	eval y="$x"
53206	while test "x$y" != "x$x"; do
53207		x="$y"
53208		eval y="$x"
53209	done
53210
53211cat >>confdefs.h <<_ACEOF
53212#define BINDIR "$x"
53213_ACEOF
53214
53215	x="${libdir}"
53216	eval y="$x"
53217	while test "x$y" != "x$x"; do
53218		x="$y"
53219		eval y="$x"
53220	done
53221
53222cat >>confdefs.h <<_ACEOF
53223#define LIBDIR "$x"
53224_ACEOF
53225
53226	x="${libexecdir}"
53227	eval y="$x"
53228	while test "x$y" != "x$x"; do
53229		x="$y"
53230		eval y="$x"
53231	done
53232
53233cat >>confdefs.h <<_ACEOF
53234#define LIBEXECDIR "$x"
53235_ACEOF
53236
53237	x="${localstatedir}"
53238	eval y="$x"
53239	while test "x$y" != "x$x"; do
53240		x="$y"
53241		eval y="$x"
53242	done
53243
53244cat >>confdefs.h <<_ACEOF
53245#define LOCALSTATEDIR "$x"
53246_ACEOF
53247
53248	x="${sbindir}"
53249	eval y="$x"
53250	while test "x$y" != "x$x"; do
53251		x="$y"
53252		eval y="$x"
53253	done
53254
53255cat >>confdefs.h <<_ACEOF
53256#define SBINDIR "$x"
53257_ACEOF
53258
53259	x="${sysconfdir}"
53260	eval y="$x"
53261	while test "x$y" != "x$x"; do
53262		x="$y"
53263		eval y="$x"
53264	done
53265
53266cat >>confdefs.h <<_ACEOF
53267#define SYSCONFDIR "$x"
53268_ACEOF
53269
53270
53271
53272LTLIBOBJS=`echo "$LIBOBJS" |
53273	sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
53274
53275
53276
53277
53278
53279                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        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"
53280
53281
53282cat >confcache <<\_ACEOF
53283# This file is a shell script that caches the results of configure
53284# tests run on this system so they can be shared between configure
53285# scripts and configure runs, see configure's option --config-cache.
53286# It is not useful on other systems.  If it contains results you don't
53287# want to keep, you may remove or edit it.
53288#
53289# config.status only pays attention to the cache file if you give it
53290# the --recheck option to rerun configure.
53291#
53292# `ac_cv_env_foo' variables (set or unset) will be overridden when
53293# loading this file, other *unset* `ac_cv_foo' will be assigned the
53294# following values.
53295
53296_ACEOF
53297
53298# The following way of writing the cache mishandles newlines in values,
53299# but we know of no workaround that is simple, portable, and efficient.
53300# So, don't put newlines in cache variables' values.
53301# Ultrix sh set writes to stderr and can't be redirected directly,
53302# and sets the high bit in the cache file unless we assign to the vars.
53303{
53304  (set) 2>&1 |
53305    case `(ac_space=' '; set | grep ac_space) 2>&1` in
53306    *ac_space=\ *)
53307      # `set' does not quote correctly, so add quotes (double-quote
53308      # substitution turns \\\\ into \\, and sed turns \\ into \).
53309      sed -n \
53310	"s/'/'\\\\''/g;
53311	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53312      ;;
53313    *)
53314      # `set' quotes correctly as required by POSIX, so do not add quotes.
53315      sed -n \
53316	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
53317      ;;
53318    esac;
53319} |
53320  sed '
53321     t clear
53322     : clear
53323     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53324     t end
53325     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53326     : end' >>confcache
53327if diff $cache_file confcache >/dev/null 2>&1; then :; else
53328  if test -w $cache_file; then
53329    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
53330    cat confcache >$cache_file
53331  else
53332    echo "not updating unwritable cache $cache_file"
53333  fi
53334fi
53335rm -f confcache
53336
53337test "x$prefix" = xNONE && prefix=$ac_default_prefix
53338# Let make expand exec_prefix.
53339test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53340
53341# VPATH may cause trouble with some makes, so we remove $(srcdir),
53342# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53343# trailing colons and then remove the whole line if VPATH becomes empty
53344# (actually we leave an empty line to preserve line numbers).
53345if test "x$srcdir" = x.; then
53346  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
53347s/:*\$(srcdir):*/:/;
53348s/:*\${srcdir}:*/:/;
53349s/:*@srcdir@:*/:/;
53350s/^\([^=]*=[	 ]*\):*/\1/;
53351s/:*$//;
53352s/^[^=]*=[	 ]*$//;
53353}'
53354fi
53355
53356DEFS=-DHAVE_CONFIG_H
53357
53358ac_libobjs=
53359ac_ltlibobjs=
53360for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53361  # 1. Remove the extension, and $U if already installed.
53362  ac_i=`echo "$ac_i" |
53363	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53364  # 2. Add them.
53365  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53366  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53367done
53368LIBOBJS=$ac_libobjs
53369
53370LTLIBOBJS=$ac_ltlibobjs
53371
53372
53373if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
53374  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
53375Usually this means the macro was only invoked conditionally." >&5
53376echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
53377Usually this means the macro was only invoked conditionally." >&2;}
53378   { (exit 1); exit 1; }; }
53379fi
53380if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
53381  { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
53382Usually this means the macro was only invoked conditionally." >&5
53383echo "$as_me: error: conditional \"KRB4\" was never defined.
53384Usually this means the macro was only invoked conditionally." >&2;}
53385   { (exit 1); exit 1; }; }
53386fi
53387if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
53388  { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
53389Usually this means the macro was only invoked conditionally." >&5
53390echo "$as_me: error: conditional \"KRB5\" was never defined.
53391Usually this means the macro was only invoked conditionally." >&2;}
53392   { (exit 1); exit 1; }; }
53393fi
53394if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
53395  { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
53396Usually this means the macro was only invoked conditionally." >&5
53397echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
53398Usually this means the macro was only invoked conditionally." >&2;}
53399   { (exit 1); exit 1; }; }
53400fi
53401if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
53402  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
53403Usually this means the macro was only invoked conditionally." >&5
53404echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
53405Usually this means the macro was only invoked conditionally." >&2;}
53406   { (exit 1); exit 1; }; }
53407fi
53408if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
53409  { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
53410Usually this means the macro was only invoked conditionally." >&5
53411echo "$as_me: error: conditional \"DCE\" was never defined.
53412Usually this means the macro was only invoked conditionally." >&2;}
53413   { (exit 1); exit 1; }; }
53414fi
53415if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
53416  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
53417Usually this means the macro was only invoked conditionally." >&5
53418echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
53419Usually this means the macro was only invoked conditionally." >&2;}
53420   { (exit 1); exit 1; }; }
53421fi
53422if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
53423  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
53424Usually this means the macro was only invoked conditionally." >&5
53425echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
53426Usually this means the macro was only invoked conditionally." >&2;}
53427   { (exit 1); exit 1; }; }
53428fi
53429if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
53430  { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
53431Usually this means the macro was only invoked conditionally." >&5
53432echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
53433Usually this means the macro was only invoked conditionally." >&2;}
53434   { (exit 1); exit 1; }; }
53435fi
53436if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
53437  { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
53438Usually this means the macro was only invoked conditionally." >&5
53439echo "$as_me: error: conditional \"have_err_h\" was never defined.
53440Usually this means the macro was only invoked conditionally." >&2;}
53441   { (exit 1); exit 1; }; }
53442fi
53443if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
53444  { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
53445Usually this means the macro was only invoked conditionally." >&5
53446echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
53447Usually this means the macro was only invoked conditionally." >&2;}
53448   { (exit 1); exit 1; }; }
53449fi
53450if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
53451  { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
53452Usually this means the macro was only invoked conditionally." >&5
53453echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
53454Usually this means the macro was only invoked conditionally." >&2;}
53455   { (exit 1); exit 1; }; }
53456fi
53457if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
53458  { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
53459Usually this means the macro was only invoked conditionally." >&5
53460echo "$as_me: error: conditional \"have_vis_h\" was never defined.
53461Usually this means the macro was only invoked conditionally." >&2;}
53462   { (exit 1); exit 1; }; }
53463fi
53464if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
53465  { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
53466Usually this means the macro was only invoked conditionally." >&5
53467echo "$as_me: error: conditional \"have_glob_h\" was never defined.
53468Usually this means the macro was only invoked conditionally." >&2;}
53469   { (exit 1); exit 1; }; }
53470fi
53471if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
53472  { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
53473Usually this means the macro was only invoked conditionally." >&5
53474echo "$as_me: error: conditional \"OTP\" was never defined.
53475Usually this means the macro was only invoked conditionally." >&2;}
53476   { (exit 1); exit 1; }; }
53477fi
53478if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
53479  { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
53480Usually this means the macro was only invoked conditionally." >&5
53481echo "$as_me: error: conditional \"CATMAN\" was never defined.
53482Usually this means the macro was only invoked conditionally." >&2;}
53483   { (exit 1); exit 1; }; }
53484fi
53485if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
53486  { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
53487Usually this means the macro was only invoked conditionally." >&5
53488echo "$as_me: error: conditional \"AIX\" was never defined.
53489Usually this means the macro was only invoked conditionally." >&2;}
53490   { (exit 1); exit 1; }; }
53491fi
53492if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
53493  { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
53494Usually this means the macro was only invoked conditionally." >&5
53495echo "$as_me: error: conditional \"AIX4\" was never defined.
53496Usually this means the macro was only invoked conditionally." >&2;}
53497   { (exit 1); exit 1; }; }
53498fi
53499if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
53500  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
53501Usually this means the macro was only invoked conditionally." >&5
53502echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
53503Usually this means the macro was only invoked conditionally." >&2;}
53504   { (exit 1); exit 1; }; }
53505fi
53506if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
53507  { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
53508Usually this means the macro was only invoked conditionally." >&5
53509echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
53510Usually this means the macro was only invoked conditionally." >&2;}
53511   { (exit 1); exit 1; }; }
53512fi
53513if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
53514  { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
53515Usually this means the macro was only invoked conditionally." >&5
53516echo "$as_me: error: conditional \"IRIX\" was never defined.
53517Usually this means the macro was only invoked conditionally." >&2;}
53518   { (exit 1); exit 1; }; }
53519fi
53520if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
53521  { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
53522Usually this means the macro was only invoked conditionally." >&5
53523echo "$as_me: error: conditional \"HAVE_X\" was never defined.
53524Usually this means the macro was only invoked conditionally." >&2;}
53525   { (exit 1); exit 1; }; }
53526fi
53527if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
53528  { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
53529Usually this means the macro was only invoked conditionally." >&5
53530echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
53531Usually this means the macro was only invoked conditionally." >&2;}
53532   { (exit 1); exit 1; }; }
53533fi
53534if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
53535  { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
53536Usually this means the macro was only invoked conditionally." >&5
53537echo "$as_me: error: conditional \"el_compat\" was never defined.
53538Usually this means the macro was only invoked conditionally." >&2;}
53539   { (exit 1); exit 1; }; }
53540fi
53541
53542: ${CONFIG_STATUS=./config.status}
53543ac_clean_files_save=$ac_clean_files
53544ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53545{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53546echo "$as_me: creating $CONFIG_STATUS" >&6;}
53547cat >$CONFIG_STATUS <<_ACEOF
53548#! $SHELL
53549# Generated by $as_me.
53550# Run this file to recreate the current configuration.
53551# Compiler output produced by configure, useful for debugging
53552# configure, is in config.log if it exists.
53553
53554debug=false
53555ac_cs_recheck=false
53556ac_cs_silent=false
53557SHELL=\${CONFIG_SHELL-$SHELL}
53558_ACEOF
53559
53560cat >>$CONFIG_STATUS <<\_ACEOF
53561## --------------------- ##
53562## M4sh Initialization.  ##
53563## --------------------- ##
53564
53565# Be Bourne compatible
53566if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53567  emulate sh
53568  NULLCMD=:
53569  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53570  # is contrary to our usage.  Disable this feature.
53571  alias -g '${1+"$@"}'='"$@"'
53572elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53573  set -o posix
53574fi
53575DUALCASE=1; export DUALCASE # for MKS sh
53576
53577# Support unset when possible.
53578if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53579  as_unset=unset
53580else
53581  as_unset=false
53582fi
53583
53584
53585# Work around bugs in pre-3.0 UWIN ksh.
53586$as_unset ENV MAIL MAILPATH
53587PS1='$ '
53588PS2='> '
53589PS4='+ '
53590
53591# NLS nuisances.
53592for as_var in \
53593  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53594  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53595  LC_TELEPHONE LC_TIME
53596do
53597  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53598    eval $as_var=C; export $as_var
53599  else
53600    $as_unset $as_var
53601  fi
53602done
53603
53604# Required to use basename.
53605if expr a : '\(a\)' >/dev/null 2>&1; then
53606  as_expr=expr
53607else
53608  as_expr=false
53609fi
53610
53611if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53612  as_basename=basename
53613else
53614  as_basename=false
53615fi
53616
53617
53618# Name of the executable.
53619as_me=`$as_basename "$0" ||
53620$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53621	 X"$0" : 'X\(//\)$' \| \
53622	 X"$0" : 'X\(/\)$' \| \
53623	 .     : '\(.\)' 2>/dev/null ||
53624echo X/"$0" |
53625    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53626  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
53627  	  /^X\/\(\/\).*/{ s//\1/; q; }
53628  	  s/.*/./; q'`
53629
53630
53631# PATH needs CR, and LINENO needs CR and PATH.
53632# Avoid depending upon Character Ranges.
53633as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53634as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53635as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53636as_cr_digits='0123456789'
53637as_cr_alnum=$as_cr_Letters$as_cr_digits
53638
53639# The user is always right.
53640if test "${PATH_SEPARATOR+set}" != set; then
53641  echo "#! /bin/sh" >conf$$.sh
53642  echo  "exit 0"   >>conf$$.sh
53643  chmod +x conf$$.sh
53644  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53645    PATH_SEPARATOR=';'
53646  else
53647    PATH_SEPARATOR=:
53648  fi
53649  rm -f conf$$.sh
53650fi
53651
53652
53653  as_lineno_1=$LINENO
53654  as_lineno_2=$LINENO
53655  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53656  test "x$as_lineno_1" != "x$as_lineno_2" &&
53657  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
53658  # Find who we are.  Look in the path if we contain no path at all
53659  # relative or not.
53660  case $0 in
53661    *[\\/]* ) as_myself=$0 ;;
53662    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53663for as_dir in $PATH
53664do
53665  IFS=$as_save_IFS
53666  test -z "$as_dir" && as_dir=.
53667  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53668done
53669
53670       ;;
53671  esac
53672  # We did not find ourselves, most probably we were run as `sh COMMAND'
53673  # in which case we are not to be found in the path.
53674  if test "x$as_myself" = x; then
53675    as_myself=$0
53676  fi
53677  if test ! -f "$as_myself"; then
53678    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53679echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53680   { (exit 1); exit 1; }; }
53681  fi
53682  case $CONFIG_SHELL in
53683  '')
53684    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53685for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53686do
53687  IFS=$as_save_IFS
53688  test -z "$as_dir" && as_dir=.
53689  for as_base in sh bash ksh sh5; do
53690	 case $as_dir in
53691	 /*)
53692	   if ("$as_dir/$as_base" -c '
53693  as_lineno_1=$LINENO
53694  as_lineno_2=$LINENO
53695  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53696  test "x$as_lineno_1" != "x$as_lineno_2" &&
53697  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
53698	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53699	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53700	     CONFIG_SHELL=$as_dir/$as_base
53701	     export CONFIG_SHELL
53702	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53703	   fi;;
53704	 esac
53705       done
53706done
53707;;
53708  esac
53709
53710  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53711  # uniformly replaced by the line number.  The first 'sed' inserts a
53712  # line-number line before each line; the second 'sed' does the real
53713  # work.  The second script uses 'N' to pair each line-number line
53714  # with the numbered line, and appends trailing '-' during
53715  # substitution so that $LINENO is not a special case at line end.
53716  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53717  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
53718  sed '=' <$as_myself |
53719    sed '
53720      N
53721      s,$,-,
53722      : loop
53723      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53724      t loop
53725      s,-$,,
53726      s,^['$as_cr_digits']*\n,,
53727    ' >$as_me.lineno &&
53728  chmod +x $as_me.lineno ||
53729    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53730echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53731   { (exit 1); exit 1; }; }
53732
53733  # Don't try to exec as it changes $[0], causing all sort of problems
53734  # (the dirname of $[0] is not the place where we might find the
53735  # original and so on.  Autoconf is especially sensible to this).
53736  . ./$as_me.lineno
53737  # Exit status is that of the last command.
53738  exit
53739}
53740
53741
53742case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53743  *c*,-n*) ECHO_N= ECHO_C='
53744' ECHO_T='	' ;;
53745  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53746  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
53747esac
53748
53749if expr a : '\(a\)' >/dev/null 2>&1; then
53750  as_expr=expr
53751else
53752  as_expr=false
53753fi
53754
53755rm -f conf$$ conf$$.exe conf$$.file
53756echo >conf$$.file
53757if ln -s conf$$.file conf$$ 2>/dev/null; then
53758  # We could just check for DJGPP; but this test a) works b) is more generic
53759  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53760  if test -f conf$$.exe; then
53761    # Don't use ln at all; we don't have any links
53762    as_ln_s='cp -p'
53763  else
53764    as_ln_s='ln -s'
53765  fi
53766elif ln conf$$.file conf$$ 2>/dev/null; then
53767  as_ln_s=ln
53768else
53769  as_ln_s='cp -p'
53770fi
53771rm -f conf$$ conf$$.exe conf$$.file
53772
53773if mkdir -p . 2>/dev/null; then
53774  as_mkdir_p=:
53775else
53776  test -d ./-p && rmdir ./-p
53777  as_mkdir_p=false
53778fi
53779
53780as_executable_p="test -f"
53781
53782# Sed expression to map a string onto a valid CPP name.
53783as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53784
53785# Sed expression to map a string onto a valid variable name.
53786as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53787
53788
53789# IFS
53790# We need space, tab and new line, in precisely that order.
53791as_nl='
53792'
53793IFS=" 	$as_nl"
53794
53795# CDPATH.
53796$as_unset CDPATH
53797
53798exec 6>&1
53799
53800# Open the log real soon, to keep \$[0] and so on meaningful, and to
53801# report actual input values of CONFIG_FILES etc. instead of their
53802# values after options handling.  Logging --version etc. is OK.
53803exec 5>>config.log
53804{
53805  echo
53806  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53807## Running $as_me. ##
53808_ASBOX
53809} >&5
53810cat >&5 <<_CSEOF
53811
53812This file was extended by Heimdal $as_me 0.6.3, which was
53813generated by GNU Autoconf 2.59.  Invocation command line was
53814
53815  CONFIG_FILES    = $CONFIG_FILES
53816  CONFIG_HEADERS  = $CONFIG_HEADERS
53817  CONFIG_LINKS    = $CONFIG_LINKS
53818  CONFIG_COMMANDS = $CONFIG_COMMANDS
53819  $ $0 $@
53820
53821_CSEOF
53822echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53823echo >&5
53824_ACEOF
53825
53826# Files that config.status was made for.
53827if test -n "$ac_config_files"; then
53828  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53829fi
53830
53831if test -n "$ac_config_headers"; then
53832  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53833fi
53834
53835if test -n "$ac_config_links"; then
53836  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53837fi
53838
53839if test -n "$ac_config_commands"; then
53840  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53841fi
53842
53843cat >>$CONFIG_STATUS <<\_ACEOF
53844
53845ac_cs_usage="\
53846\`$as_me' instantiates files from templates according to the
53847current configuration.
53848
53849Usage: $0 [OPTIONS] [FILE]...
53850
53851  -h, --help       print this help, then exit
53852  -V, --version    print version number, then exit
53853  -q, --quiet      do not print progress messages
53854  -d, --debug      don't remove temporary files
53855      --recheck    update $as_me by reconfiguring in the same conditions
53856  --file=FILE[:TEMPLATE]
53857		   instantiate the configuration file FILE
53858  --header=FILE[:TEMPLATE]
53859		   instantiate the configuration header FILE
53860
53861Configuration files:
53862$config_files
53863
53864Configuration headers:
53865$config_headers
53866
53867Report bugs to <bug-autoconf@gnu.org>."
53868_ACEOF
53869
53870cat >>$CONFIG_STATUS <<_ACEOF
53871ac_cs_version="\\
53872Heimdal config.status 0.6.3
53873configured by $0, generated by GNU Autoconf 2.59,
53874  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53875
53876Copyright (C) 2003 Free Software Foundation, Inc.
53877This config.status script is free software; the Free Software Foundation
53878gives unlimited permission to copy, distribute and modify it."
53879srcdir=$srcdir
53880INSTALL="$INSTALL"
53881_ACEOF
53882
53883cat >>$CONFIG_STATUS <<\_ACEOF
53884# If no file are specified by the user, then we need to provide default
53885# value.  By we need to know if files were specified by the user.
53886ac_need_defaults=:
53887while test $# != 0
53888do
53889  case $1 in
53890  --*=*)
53891    ac_option=`expr "x$1" : 'x\([^=]*\)='`
53892    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53893    ac_shift=:
53894    ;;
53895  -*)
53896    ac_option=$1
53897    ac_optarg=$2
53898    ac_shift=shift
53899    ;;
53900  *) # This is not an option, so the user has probably given explicit
53901     # arguments.
53902     ac_option=$1
53903     ac_need_defaults=false;;
53904  esac
53905
53906  case $ac_option in
53907  # Handling of the options.
53908_ACEOF
53909cat >>$CONFIG_STATUS <<\_ACEOF
53910  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53911    ac_cs_recheck=: ;;
53912  --version | --vers* | -V )
53913    echo "$ac_cs_version"; exit 0 ;;
53914  --he | --h)
53915    # Conflict between --help and --header
53916    { { echo "$as_me:$LINENO: error: ambiguous option: $1
53917Try \`$0 --help' for more information." >&5
53918echo "$as_me: error: ambiguous option: $1
53919Try \`$0 --help' for more information." >&2;}
53920   { (exit 1); exit 1; }; };;
53921  --help | --hel | -h )
53922    echo "$ac_cs_usage"; exit 0 ;;
53923  --debug | --d* | -d )
53924    debug=: ;;
53925  --file | --fil | --fi | --f )
53926    $ac_shift
53927    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53928    ac_need_defaults=false;;
53929  --header | --heade | --head | --hea )
53930    $ac_shift
53931    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53932    ac_need_defaults=false;;
53933  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53934  | -silent | --silent | --silen | --sile | --sil | --si | --s)
53935    ac_cs_silent=: ;;
53936
53937  # This is an error.
53938  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53939Try \`$0 --help' for more information." >&5
53940echo "$as_me: error: unrecognized option: $1
53941Try \`$0 --help' for more information." >&2;}
53942   { (exit 1); exit 1; }; } ;;
53943
53944  *) ac_config_targets="$ac_config_targets $1" ;;
53945
53946  esac
53947  shift
53948done
53949
53950ac_configure_extra_args=
53951
53952if $ac_cs_silent; then
53953  exec 6>/dev/null
53954  ac_configure_extra_args="$ac_configure_extra_args --silent"
53955fi
53956
53957_ACEOF
53958cat >>$CONFIG_STATUS <<_ACEOF
53959if \$ac_cs_recheck; then
53960  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53961  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53962fi
53963
53964_ACEOF
53965
53966
53967
53968
53969
53970cat >>$CONFIG_STATUS <<\_ACEOF
53971for ac_config_target in $ac_config_targets
53972do
53973  case "$ac_config_target" in
53974  # Handling of arguments.
53975  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53976  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
53977  "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
53978  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
53979  "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
53980  "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
53981  "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
53982  "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
53983  "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
53984  "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
53985  "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
53986  "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
53987  "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
53988  "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
53989  "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
53990  "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
53991  "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
53992  "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
53993  "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
53994  "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
53995  "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
53996  "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
53997  "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
53998  "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
53999  "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
54000  "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
54001  "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
54002  "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
54003  "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
54004  "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
54005  "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
54006  "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
54007  "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
54008  "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
54009  "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
54010  "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
54011  "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
54012  "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
54013  "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
54014  "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
54015  "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
54016  "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
54017  "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
54018  "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
54019  "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
54020  "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
54021  "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
54022  "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
54023  "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
54024  "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
54025  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
54026  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
54027  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
54028  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
54029echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
54030   { (exit 1); exit 1; }; };;
54031  esac
54032done
54033
54034# If the user did not use the arguments to specify the items to instantiate,
54035# then the envvar interface is used.  Set only those that are not.
54036# We use the long form for the default assignment because of an extremely
54037# bizarre bug on SunOS 4.1.3.
54038if $ac_need_defaults; then
54039  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54040  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54041fi
54042
54043# Have a temporary directory for convenience.  Make it in the build tree
54044# simply because there is no reason to put it here, and in addition,
54045# creating and moving files from /tmp can sometimes cause problems.
54046# Create a temporary directory, and hook for its removal unless debugging.
54047$debug ||
54048{
54049  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
54050  trap '{ (exit 1); exit 1; }' 1 2 13 15
54051}
54052
54053# Create a (secure) tmp directory for tmp files.
54054
54055{
54056  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
54057  test -n "$tmp" && test -d "$tmp"
54058}  ||
54059{
54060  tmp=./confstat$$-$RANDOM
54061  (umask 077 && mkdir $tmp)
54062} ||
54063{
54064   echo "$me: cannot create a temporary directory in ." >&2
54065   { (exit 1); exit 1; }
54066}
54067
54068_ACEOF
54069
54070cat >>$CONFIG_STATUS <<_ACEOF
54071
54072#
54073# CONFIG_FILES section.
54074#
54075
54076# No need to generate the scripts if there are no CONFIG_FILES.
54077# This happens for instance when ./config.status config.h
54078if test -n "\$CONFIG_FILES"; then
54079  # Protect against being on the right side of a sed subst in config.status.
54080  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
54081   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
54082s,@SHELL@,$SHELL,;t t
54083s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
54084s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
54085s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
54086s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
54087s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
54088s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
54089s,@exec_prefix@,$exec_prefix,;t t
54090s,@prefix@,$prefix,;t t
54091s,@program_transform_name@,$program_transform_name,;t t
54092s,@bindir@,$bindir,;t t
54093s,@sbindir@,$sbindir,;t t
54094s,@libexecdir@,$libexecdir,;t t
54095s,@datadir@,$datadir,;t t
54096s,@sysconfdir@,$sysconfdir,;t t
54097s,@sharedstatedir@,$sharedstatedir,;t t
54098s,@localstatedir@,$localstatedir,;t t
54099s,@libdir@,$libdir,;t t
54100s,@includedir@,$includedir,;t t
54101s,@oldincludedir@,$oldincludedir,;t t
54102s,@infodir@,$infodir,;t t
54103s,@mandir@,$mandir,;t t
54104s,@build_alias@,$build_alias,;t t
54105s,@host_alias@,$host_alias,;t t
54106s,@target_alias@,$target_alias,;t t
54107s,@DEFS@,$DEFS,;t t
54108s,@ECHO_C@,$ECHO_C,;t t
54109s,@ECHO_N@,$ECHO_N,;t t
54110s,@ECHO_T@,$ECHO_T,;t t
54111s,@LIBS@,$LIBS,;t t
54112s,@CC@,$CC,;t t
54113s,@CFLAGS@,$CFLAGS,;t t
54114s,@LDFLAGS@,$LDFLAGS,;t t
54115s,@CPPFLAGS@,$CPPFLAGS,;t t
54116s,@ac_ct_CC@,$ac_ct_CC,;t t
54117s,@EXEEXT@,$EXEEXT,;t t
54118s,@OBJEXT@,$OBJEXT,;t t
54119s,@CPP@,$CPP,;t t
54120s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
54121s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
54122s,@INSTALL_DATA@,$INSTALL_DATA,;t t
54123s,@CYGPATH_W@,$CYGPATH_W,;t t
54124s,@PACKAGE@,$PACKAGE,;t t
54125s,@VERSION@,$VERSION,;t t
54126s,@ACLOCAL@,$ACLOCAL,;t t
54127s,@AUTOCONF@,$AUTOCONF,;t t
54128s,@AUTOMAKE@,$AUTOMAKE,;t t
54129s,@AUTOHEADER@,$AUTOHEADER,;t t
54130s,@MAKEINFO@,$MAKEINFO,;t t
54131s,@AMTAR@,$AMTAR,;t t
54132s,@install_sh@,$install_sh,;t t
54133s,@STRIP@,$STRIP,;t t
54134s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
54135s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
54136s,@mkdir_p@,$mkdir_p,;t t
54137s,@AWK@,$AWK,;t t
54138s,@SET_MAKE@,$SET_MAKE,;t t
54139s,@am__leading_dot@,$am__leading_dot,;t t
54140s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
54141s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
54142s,@MAINT@,$MAINT,;t t
54143s,@build@,$build,;t t
54144s,@build_cpu@,$build_cpu,;t t
54145s,@build_vendor@,$build_vendor,;t t
54146s,@build_os@,$build_os,;t t
54147s,@host@,$host,;t t
54148s,@host_cpu@,$host_cpu,;t t
54149s,@host_vendor@,$host_vendor,;t t
54150s,@host_os@,$host_os,;t t
54151s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
54152s,@YACC@,$YACC,;t t
54153s,@LEX@,$LEX,;t t
54154s,@LEXLIB@,$LEXLIB,;t t
54155s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
54156s,@LN_S@,$LN_S,;t t
54157s,@EGREP@,$EGREP,;t t
54158s,@ECHO@,$ECHO,;t t
54159s,@AR@,$AR,;t t
54160s,@ac_ct_AR@,$ac_ct_AR,;t t
54161s,@RANLIB@,$RANLIB,;t t
54162s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
54163s,@CXX@,$CXX,;t t
54164s,@CXXFLAGS@,$CXXFLAGS,;t t
54165s,@ac_ct_CXX@,$ac_ct_CXX,;t t
54166s,@CXXCPP@,$CXXCPP,;t t
54167s,@F77@,$F77,;t t
54168s,@FFLAGS@,$FFLAGS,;t t
54169s,@ac_ct_F77@,$ac_ct_F77,;t t
54170s,@LIBTOOL@,$LIBTOOL,;t t
54171s,@WFLAGS@,$WFLAGS,;t t
54172s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
54173s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
54174s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
54175s,@LIB_openldap@,$LIB_openldap,;t t
54176s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
54177s,@LIB_krb4@,$LIB_krb4,;t t
54178s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
54179s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
54180s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
54181s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
54182s,@LIB_krb_kdctimeofday@,$LIB_krb_kdctimeofday,;t t
54183s,@LIB_krb_get_kdc_time_diff@,$LIB_krb_get_kdc_time_diff,;t t
54184s,@KRB4_TRUE@,$KRB4_TRUE,;t t
54185s,@KRB4_FALSE@,$KRB4_FALSE,;t t
54186s,@KRB5_TRUE@,$KRB5_TRUE,;t t
54187s,@KRB5_FALSE@,$KRB5_FALSE,;t t
54188s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t
54189s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t
54190s,@LIB_kdb@,$LIB_kdb,;t t
54191s,@HAVE_OPENSSL_TRUE@,$HAVE_OPENSSL_TRUE,;t t
54192s,@HAVE_OPENSSL_FALSE@,$HAVE_OPENSSL_FALSE,;t t
54193s,@DIR_des@,$DIR_des,;t t
54194s,@INCLUDE_des@,$INCLUDE_des,;t t
54195s,@LIB_des@,$LIB_des,;t t
54196s,@LIB_des_a@,$LIB_des_a,;t t
54197s,@LIB_des_so@,$LIB_des_so,;t t
54198s,@LIB_des_appl@,$LIB_des_appl,;t t
54199s,@DCE_TRUE@,$DCE_TRUE,;t t
54200s,@DCE_FALSE@,$DCE_FALSE,;t t
54201s,@dpagaix_cflags@,$dpagaix_cflags,;t t
54202s,@dpagaix_ldadd@,$dpagaix_ldadd,;t t
54203s,@dpagaix_ldflags@,$dpagaix_ldflags,;t t
54204s,@LIB_db_create@,$LIB_db_create,;t t
54205s,@LIB_dbopen@,$LIB_dbopen,;t t
54206s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
54207s,@HAVE_DB1_TRUE@,$HAVE_DB1_TRUE,;t t
54208s,@HAVE_DB1_FALSE@,$HAVE_DB1_FALSE,;t t
54209s,@HAVE_DB3_TRUE@,$HAVE_DB3_TRUE,;t t
54210s,@HAVE_DB3_FALSE@,$HAVE_DB3_FALSE,;t t
54211s,@HAVE_NDBM_TRUE@,$HAVE_NDBM_TRUE,;t t
54212s,@HAVE_NDBM_FALSE@,$HAVE_NDBM_FALSE,;t t
54213s,@DBLIB@,$DBLIB,;t t
54214s,@LIB_NDBM@,$LIB_NDBM,;t t
54215s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
54216s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
54217s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
54218s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
54219s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
54220s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t
54221s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t
54222s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t
54223s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t
54224s,@LIB_socket@,$LIB_socket,;t t
54225s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
54226s,@LIB_syslog@,$LIB_syslog,;t t
54227s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
54228s,@LIB_res_search@,$LIB_res_search,;t t
54229s,@LIB_res_nsearch@,$LIB_res_nsearch,;t t
54230s,@LIB_dn_expand@,$LIB_dn_expand,;t t
54231s,@LIBOBJS@,$LIBOBJS,;t t
54232s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
54233s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
54234s,@LIB_getsockopt@,$LIB_getsockopt,;t t
54235s,@LIB_setsockopt@,$LIB_setsockopt,;t t
54236s,@LIB_hstrerror@,$LIB_hstrerror,;t t
54237s,@LIB_bswap16@,$LIB_bswap16,;t t
54238s,@LIB_bswap32@,$LIB_bswap32,;t t
54239s,@LIB_pidfile@,$LIB_pidfile,;t t
54240s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t
54241s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t
54242s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t
54243s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t
54244s,@LIB_crypt@,$LIB_crypt,;t t
54245s,@DIR_roken@,$DIR_roken,;t t
54246s,@LIB_roken@,$LIB_roken,;t t
54247s,@INCLUDES_roken@,$INCLUDES_roken,;t t
54248s,@LIB_otp@,$LIB_otp,;t t
54249s,@OTP_TRUE@,$OTP_TRUE,;t t
54250s,@OTP_FALSE@,$OTP_FALSE,;t t
54251s,@LIB_security@,$LIB_security,;t t
54252s,@NROFF@,$NROFF,;t t
54253s,@GROFF@,$GROFF,;t t
54254s,@CATMAN@,$CATMAN,;t t
54255s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
54256s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
54257s,@CATMANEXT@,$CATMANEXT,;t t
54258s,@INCLUDE_readline@,$INCLUDE_readline,;t t
54259s,@LIB_readline@,$LIB_readline,;t t
54260s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
54261s,@LIB_hesiod@,$LIB_hesiod,;t t
54262s,@AIX_TRUE@,$AIX_TRUE,;t t
54263s,@AIX_FALSE@,$AIX_FALSE,;t t
54264s,@AIX4_TRUE@,$AIX4_TRUE,;t t
54265s,@AIX4_FALSE@,$AIX4_FALSE,;t t
54266s,@LIB_dlopen@,$LIB_dlopen,;t t
54267s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
54268s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
54269s,@LIB_loadquery@,$LIB_loadquery,;t t
54270s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
54271s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
54272s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
54273s,@IRIX_TRUE@,$IRIX_TRUE,;t t
54274s,@IRIX_FALSE@,$IRIX_FALSE,;t t
54275s,@X_CFLAGS@,$X_CFLAGS,;t t
54276s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
54277s,@X_LIBS@,$X_LIBS,;t t
54278s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
54279s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
54280s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
54281s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
54282s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
54283s,@LIB_XauFileName@,$LIB_XauFileName,;t t
54284s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
54285s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
54286s,@LIB_logwtmp@,$LIB_logwtmp,;t t
54287s,@LIB_logout@,$LIB_logout,;t t
54288s,@LIB_openpty@,$LIB_openpty,;t t
54289s,@LIB_tgetent@,$LIB_tgetent,;t t
54290s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
54291s,@LIB_el_init@,$LIB_el_init,;t t
54292s,@el_compat_TRUE@,$el_compat_TRUE,;t t
54293s,@el_compat_FALSE@,$el_compat_FALSE,;t t
54294s,@COMPILE_ET@,$COMPILE_ET,;t t
54295s,@DIR_com_err@,$DIR_com_err,;t t
54296s,@LIB_com_err@,$LIB_com_err,;t t
54297s,@LIB_com_err_a@,$LIB_com_err_a,;t t
54298s,@LIB_com_err_so@,$LIB_com_err_so,;t t
54299s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
54300s,@LTLIBOBJS@,$LTLIBOBJS,;t t
54301CEOF
54302
54303_ACEOF
54304
54305  cat >>$CONFIG_STATUS <<\_ACEOF
54306  # Split the substitutions into bite-sized pieces for seds with
54307  # small command number limits, like on Digital OSF/1 and HP-UX.
54308  ac_max_sed_lines=48
54309  ac_sed_frag=1 # Number of current file.
54310  ac_beg=1 # First line for current file.
54311  ac_end=$ac_max_sed_lines # Line after last line for current file.
54312  ac_more_lines=:
54313  ac_sed_cmds=
54314  while $ac_more_lines; do
54315    if test $ac_beg -gt 1; then
54316      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
54317    else
54318      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
54319    fi
54320    if test ! -s $tmp/subs.frag; then
54321      ac_more_lines=false
54322    else
54323      # The purpose of the label and of the branching condition is to
54324      # speed up the sed processing (if there are no `@' at all, there
54325      # is no need to browse any of the substitutions).
54326      # These are the two extra sed commands mentioned above.
54327      (echo ':t
54328  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
54329      if test -z "$ac_sed_cmds"; then
54330	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
54331      else
54332	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
54333      fi
54334      ac_sed_frag=`expr $ac_sed_frag + 1`
54335      ac_beg=$ac_end
54336      ac_end=`expr $ac_end + $ac_max_sed_lines`
54337    fi
54338  done
54339  if test -z "$ac_sed_cmds"; then
54340    ac_sed_cmds=cat
54341  fi
54342fi # test -n "$CONFIG_FILES"
54343
54344_ACEOF
54345cat >>$CONFIG_STATUS <<\_ACEOF
54346for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
54347  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54348  case $ac_file in
54349  - | *:- | *:-:* ) # input from stdin
54350	cat >$tmp/stdin
54351	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54352	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54353  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54354	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54355  * )   ac_file_in=$ac_file.in ;;
54356  esac
54357
54358  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
54359  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54360$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54361	 X"$ac_file" : 'X\(//\)[^/]' \| \
54362	 X"$ac_file" : 'X\(//\)$' \| \
54363	 X"$ac_file" : 'X\(/\)' \| \
54364	 .     : '\(.\)' 2>/dev/null ||
54365echo X"$ac_file" |
54366    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54367  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54368  	  /^X\(\/\/\)$/{ s//\1/; q; }
54369  	  /^X\(\/\).*/{ s//\1/; q; }
54370  	  s/.*/./; q'`
54371  { if $as_mkdir_p; then
54372    mkdir -p "$ac_dir"
54373  else
54374    as_dir="$ac_dir"
54375    as_dirs=
54376    while test ! -d "$as_dir"; do
54377      as_dirs="$as_dir $as_dirs"
54378      as_dir=`(dirname "$as_dir") 2>/dev/null ||
54379$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54380	 X"$as_dir" : 'X\(//\)[^/]' \| \
54381	 X"$as_dir" : 'X\(//\)$' \| \
54382	 X"$as_dir" : 'X\(/\)' \| \
54383	 .     : '\(.\)' 2>/dev/null ||
54384echo X"$as_dir" |
54385    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54386  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54387  	  /^X\(\/\/\)$/{ s//\1/; q; }
54388  	  /^X\(\/\).*/{ s//\1/; q; }
54389  	  s/.*/./; q'`
54390    done
54391    test ! -n "$as_dirs" || mkdir $as_dirs
54392  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54393echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54394   { (exit 1); exit 1; }; }; }
54395
54396  ac_builddir=.
54397
54398if test "$ac_dir" != .; then
54399  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54400  # A "../" for each directory in $ac_dir_suffix.
54401  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54402else
54403  ac_dir_suffix= ac_top_builddir=
54404fi
54405
54406case $srcdir in
54407  .)  # No --srcdir option.  We are building in place.
54408    ac_srcdir=.
54409    if test -z "$ac_top_builddir"; then
54410       ac_top_srcdir=.
54411    else
54412       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54413    fi ;;
54414  [\\/]* | ?:[\\/]* )  # Absolute path.
54415    ac_srcdir=$srcdir$ac_dir_suffix;
54416    ac_top_srcdir=$srcdir ;;
54417  *) # Relative path.
54418    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54419    ac_top_srcdir=$ac_top_builddir$srcdir ;;
54420esac
54421
54422# Do not use `cd foo && pwd` to compute absolute paths, because
54423# the directories may not exist.
54424case `pwd` in
54425.) ac_abs_builddir="$ac_dir";;
54426*)
54427  case "$ac_dir" in
54428  .) ac_abs_builddir=`pwd`;;
54429  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54430  *) ac_abs_builddir=`pwd`/"$ac_dir";;
54431  esac;;
54432esac
54433case $ac_abs_builddir in
54434.) ac_abs_top_builddir=${ac_top_builddir}.;;
54435*)
54436  case ${ac_top_builddir}. in
54437  .) ac_abs_top_builddir=$ac_abs_builddir;;
54438  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54439  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54440  esac;;
54441esac
54442case $ac_abs_builddir in
54443.) ac_abs_srcdir=$ac_srcdir;;
54444*)
54445  case $ac_srcdir in
54446  .) ac_abs_srcdir=$ac_abs_builddir;;
54447  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54448  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54449  esac;;
54450esac
54451case $ac_abs_builddir in
54452.) ac_abs_top_srcdir=$ac_top_srcdir;;
54453*)
54454  case $ac_top_srcdir in
54455  .) ac_abs_top_srcdir=$ac_abs_builddir;;
54456  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54457  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54458  esac;;
54459esac
54460
54461
54462  case $INSTALL in
54463  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54464  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54465  esac
54466
54467  if test x"$ac_file" != x-; then
54468    { echo "$as_me:$LINENO: creating $ac_file" >&5
54469echo "$as_me: creating $ac_file" >&6;}
54470    rm -f "$ac_file"
54471  fi
54472  # Let's still pretend it is `configure' which instantiates (i.e., don't
54473  # use $as_me), people would be surprised to read:
54474  #    /* config.h.  Generated by config.status.  */
54475  if test x"$ac_file" = x-; then
54476    configure_input=
54477  else
54478    configure_input="$ac_file.  "
54479  fi
54480  configure_input=$configure_input"Generated from `echo $ac_file_in |
54481				     sed 's,.*/,,'` by configure."
54482
54483  # First look for the input files in the build tree, otherwise in the
54484  # src tree.
54485  ac_file_inputs=`IFS=:
54486    for f in $ac_file_in; do
54487      case $f in
54488      -) echo $tmp/stdin ;;
54489      [\\/$]*)
54490	 # Absolute (can't be DOS-style, as IFS=:)
54491	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54492echo "$as_me: error: cannot find input file: $f" >&2;}
54493   { (exit 1); exit 1; }; }
54494	 echo "$f";;
54495      *) # Relative
54496	 if test -f "$f"; then
54497	   # Build tree
54498	   echo "$f"
54499	 elif test -f "$srcdir/$f"; then
54500	   # Source tree
54501	   echo "$srcdir/$f"
54502	 else
54503	   # /dev/null tree
54504	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54505echo "$as_me: error: cannot find input file: $f" >&2;}
54506   { (exit 1); exit 1; }; }
54507	 fi;;
54508      esac
54509    done` || { (exit 1); exit 1; }
54510_ACEOF
54511cat >>$CONFIG_STATUS <<_ACEOF
54512  sed "$ac_vpsub
54513$extrasub
54514_ACEOF
54515cat >>$CONFIG_STATUS <<\_ACEOF
54516:t
54517/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54518s,@configure_input@,$configure_input,;t t
54519s,@srcdir@,$ac_srcdir,;t t
54520s,@abs_srcdir@,$ac_abs_srcdir,;t t
54521s,@top_srcdir@,$ac_top_srcdir,;t t
54522s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54523s,@builddir@,$ac_builddir,;t t
54524s,@abs_builddir@,$ac_abs_builddir,;t t
54525s,@top_builddir@,$ac_top_builddir,;t t
54526s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54527s,@INSTALL@,$ac_INSTALL,;t t
54528" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54529  rm -f $tmp/stdin
54530  if test x"$ac_file" != x-; then
54531    mv $tmp/out $ac_file
54532  else
54533    cat $tmp/out
54534    rm -f $tmp/out
54535  fi
54536
54537done
54538_ACEOF
54539cat >>$CONFIG_STATUS <<\_ACEOF
54540
54541#
54542# CONFIG_HEADER section.
54543#
54544
54545# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54546# NAME is the cpp macro being defined and VALUE is the value it is being given.
54547#
54548# ac_d sets the value in "#define NAME VALUE" lines.
54549ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
54550ac_dB='[	 ].*$,\1#\2'
54551ac_dC=' '
54552ac_dD=',;t'
54553# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54554ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
54555ac_uB='$,\1#\2define\3'
54556ac_uC=' '
54557ac_uD=',;t'
54558
54559for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54560  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54561  case $ac_file in
54562  - | *:- | *:-:* ) # input from stdin
54563	cat >$tmp/stdin
54564	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54565	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54566  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54567	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54568  * )   ac_file_in=$ac_file.in ;;
54569  esac
54570
54571  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54572echo "$as_me: creating $ac_file" >&6;}
54573
54574  # First look for the input files in the build tree, otherwise in the
54575  # src tree.
54576  ac_file_inputs=`IFS=:
54577    for f in $ac_file_in; do
54578      case $f in
54579      -) echo $tmp/stdin ;;
54580      [\\/$]*)
54581	 # Absolute (can't be DOS-style, as IFS=:)
54582	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54583echo "$as_me: error: cannot find input file: $f" >&2;}
54584   { (exit 1); exit 1; }; }
54585	 # Do quote $f, to prevent DOS paths from being IFS'd.
54586	 echo "$f";;
54587      *) # Relative
54588	 if test -f "$f"; then
54589	   # Build tree
54590	   echo "$f"
54591	 elif test -f "$srcdir/$f"; then
54592	   # Source tree
54593	   echo "$srcdir/$f"
54594	 else
54595	   # /dev/null tree
54596	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54597echo "$as_me: error: cannot find input file: $f" >&2;}
54598   { (exit 1); exit 1; }; }
54599	 fi;;
54600      esac
54601    done` || { (exit 1); exit 1; }
54602  # Remove the trailing spaces.
54603  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
54604
54605_ACEOF
54606
54607# Transform confdefs.h into two sed scripts, `conftest.defines' and
54608# `conftest.undefs', that substitutes the proper values into
54609# config.h.in to produce config.h.  The first handles `#define'
54610# templates, and the second `#undef' templates.
54611# And first: Protect against being on the right side of a sed subst in
54612# config.status.  Protect against being in an unquoted here document
54613# in config.status.
54614rm -f conftest.defines conftest.undefs
54615# Using a here document instead of a string reduces the quoting nightmare.
54616# Putting comments in sed scripts is not portable.
54617#
54618# `end' is used to avoid that the second main sed command (meant for
54619# 0-ary CPP macros) applies to n-ary macro definitions.
54620# See the Autoconf documentation for `clear'.
54621cat >confdef2sed.sed <<\_ACEOF
54622s/[\\&,]/\\&/g
54623s,[\\$`],\\&,g
54624t clear
54625: clear
54626s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54627t end
54628s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54629: end
54630_ACEOF
54631# If some macros were called several times there might be several times
54632# the same #defines, which is useless.  Nevertheless, we may not want to
54633# sort them, since we want the *last* AC-DEFINE to be honored.
54634uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54635sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54636rm -f confdef2sed.sed
54637
54638# This sed command replaces #undef with comments.  This is necessary, for
54639# example, in the case of _POSIX_SOURCE, which is predefined and required
54640# on some systems where configure will not decide to define it.
54641cat >>conftest.undefs <<\_ACEOF
54642s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54643_ACEOF
54644
54645# Break up conftest.defines because some shells have a limit on the size
54646# of here documents, and old seds have small limits too (100 cmds).
54647echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54648echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54649echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54650echo '  :' >>$CONFIG_STATUS
54651rm -f conftest.tail
54652while grep . conftest.defines >/dev/null
54653do
54654  # Write a limited-size here document to $tmp/defines.sed.
54655  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54656  # Speed up: don't consider the non `#define' lines.
54657  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
54658  # Work around the forget-to-reset-the-flag bug.
54659  echo 't clr' >>$CONFIG_STATUS
54660  echo ': clr' >>$CONFIG_STATUS
54661  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54662  echo 'CEOF
54663  sed -f $tmp/defines.sed $tmp/in >$tmp/out
54664  rm -f $tmp/in
54665  mv $tmp/out $tmp/in
54666' >>$CONFIG_STATUS
54667  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54668  rm -f conftest.defines
54669  mv conftest.tail conftest.defines
54670done
54671rm -f conftest.defines
54672echo '  fi # grep' >>$CONFIG_STATUS
54673echo >>$CONFIG_STATUS
54674
54675# Break up conftest.undefs because some shells have a limit on the size
54676# of here documents, and old seds have small limits too (100 cmds).
54677echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
54678rm -f conftest.tail
54679while grep . conftest.undefs >/dev/null
54680do
54681  # Write a limited-size here document to $tmp/undefs.sed.
54682  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54683  # Speed up: don't consider the non `#undef'
54684  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
54685  # Work around the forget-to-reset-the-flag bug.
54686  echo 't clr' >>$CONFIG_STATUS
54687  echo ': clr' >>$CONFIG_STATUS
54688  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54689  echo 'CEOF
54690  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54691  rm -f $tmp/in
54692  mv $tmp/out $tmp/in
54693' >>$CONFIG_STATUS
54694  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54695  rm -f conftest.undefs
54696  mv conftest.tail conftest.undefs
54697done
54698rm -f conftest.undefs
54699
54700cat >>$CONFIG_STATUS <<\_ACEOF
54701  # Let's still pretend it is `configure' which instantiates (i.e., don't
54702  # use $as_me), people would be surprised to read:
54703  #    /* config.h.  Generated by config.status.  */
54704  if test x"$ac_file" = x-; then
54705    echo "/* Generated by configure.  */" >$tmp/config.h
54706  else
54707    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
54708  fi
54709  cat $tmp/in >>$tmp/config.h
54710  rm -f $tmp/in
54711  if test x"$ac_file" != x-; then
54712    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54713      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54714echo "$as_me: $ac_file is unchanged" >&6;}
54715    else
54716      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54717$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54718	 X"$ac_file" : 'X\(//\)[^/]' \| \
54719	 X"$ac_file" : 'X\(//\)$' \| \
54720	 X"$ac_file" : 'X\(/\)' \| \
54721	 .     : '\(.\)' 2>/dev/null ||
54722echo X"$ac_file" |
54723    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54724  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54725  	  /^X\(\/\/\)$/{ s//\1/; q; }
54726  	  /^X\(\/\).*/{ s//\1/; q; }
54727  	  s/.*/./; q'`
54728      { if $as_mkdir_p; then
54729    mkdir -p "$ac_dir"
54730  else
54731    as_dir="$ac_dir"
54732    as_dirs=
54733    while test ! -d "$as_dir"; do
54734      as_dirs="$as_dir $as_dirs"
54735      as_dir=`(dirname "$as_dir") 2>/dev/null ||
54736$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54737	 X"$as_dir" : 'X\(//\)[^/]' \| \
54738	 X"$as_dir" : 'X\(//\)$' \| \
54739	 X"$as_dir" : 'X\(/\)' \| \
54740	 .     : '\(.\)' 2>/dev/null ||
54741echo X"$as_dir" |
54742    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54743  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54744  	  /^X\(\/\/\)$/{ s//\1/; q; }
54745  	  /^X\(\/\).*/{ s//\1/; q; }
54746  	  s/.*/./; q'`
54747    done
54748    test ! -n "$as_dirs" || mkdir $as_dirs
54749  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54750echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54751   { (exit 1); exit 1; }; }; }
54752
54753      rm -f $ac_file
54754      mv $tmp/config.h $ac_file
54755    fi
54756  else
54757    cat $tmp/config.h
54758    rm -f $tmp/config.h
54759  fi
54760# Compute $ac_file's index in $config_headers.
54761_am_stamp_count=1
54762for _am_header in $config_headers :; do
54763  case $_am_header in
54764    $ac_file | $ac_file:* )
54765      break ;;
54766    * )
54767      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54768  esac
54769done
54770echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54771$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54772	 X$ac_file : 'X\(//\)[^/]' \| \
54773	 X$ac_file : 'X\(//\)$' \| \
54774	 X$ac_file : 'X\(/\)' \| \
54775	 .     : '\(.\)' 2>/dev/null ||
54776echo X$ac_file |
54777    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54778  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54779  	  /^X\(\/\/\)$/{ s//\1/; q; }
54780  	  /^X\(\/\).*/{ s//\1/; q; }
54781  	  s/.*/./; q'`/stamp-h$_am_stamp_count
54782done
54783_ACEOF
54784
54785cat >>$CONFIG_STATUS <<\_ACEOF
54786
54787{ (exit 0); exit 0; }
54788_ACEOF
54789chmod +x $CONFIG_STATUS
54790ac_clean_files=$ac_clean_files_save
54791
54792
54793# configure is writing to config.log, and then calls config.status.
54794# config.status does its own redirection, appending to config.log.
54795# Unfortunately, on DOS this fails, as config.log is still kept open
54796# by configure, so config.status won't be able to write to it; its
54797# output is simply discarded.  So we exec the FD to /dev/null,
54798# effectively closing config.log, so it can be properly (re)opened and
54799# appended to by config.status.  When coming back to configure, we
54800# need to make the FD available again.
54801if test "$no_create" != yes; then
54802  ac_cs_success=:
54803  ac_config_status_args=
54804  test "$silent" = yes &&
54805    ac_config_status_args="$ac_config_status_args --quiet"
54806  exec 5>/dev/null
54807  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54808  exec 5>>config.log
54809  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54810  # would make configure fail if this is the last instruction.
54811  $ac_cs_success || { (exit 1); exit 1; }
54812fi
54813
54814
54815
54816cat > include/newversion.h.in <<EOF
54817const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
54818const char *heimdal_version = "Heimdal 0.6.3";
54819EOF
54820
54821if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
54822	echo "include/version.h is unchanged"
54823	rm -f include/newversion.h.in
54824else
54825 	echo "creating include/version.h"
54826 	User=${USER-${LOGNAME}}
54827 	Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
54828 	Date=`date`
54829	mv -f include/newversion.h.in include/version.h.in
54830	sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
54831fi
54832