xref: /freebsd/crypto/heimdal/configure (revision 6a068746777241722b2b32c5d0bc443a2a64d80b)
1#! /bin/sh
2# From configure.ac Revision.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.65 for Heimdal 1.5.2.
5#
6# Report bugs to <heimdal-bugs@h5l.org>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11# Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='print -r --'
51  as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='printf %s\n'
54  as_echo_n='printf %s'
55else
56  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58    as_echo_n='/usr/ucb/echo -n'
59  else
60    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61    as_echo_n_body='eval
62      arg=$1;
63      case $arg in #(
64      *"$as_nl"*)
65	expr "X$arg" : "X\\(.*\\)$as_nl";
66	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67      esac;
68      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69    '
70    export as_echo_n_body
71    as_echo_n='sh -c $as_echo_n_body as_echo'
72  fi
73  export as_echo_body
74  as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order.  Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" ""	$as_nl"
93
94# Find who we are.  Look in the path if we contain no directory separator.
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	BASH_ENV=/dev/null
229	ENV=/dev/null
230	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231	export CONFIG_SHELL
232	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
233fi
234
235    if test x$as_have_required = xno; then :
236  $as_echo "$0: This script requires a shell more modern than all"
237  $as_echo "$0: the shells that I found on your system."
238  if test x${ZSH_VERSION+set} = xset ; then
239    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241  else
242    $as_echo "$0: Please tell bug-autoconf@gnu.org and
243$0: heimdal-bugs@h5l.org about your system, including any
244$0: error possibly output before this message. Then install
245$0: a modern shell, or manually run the script under such a
246$0: shell if you do have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error ERROR [LINENO LOG_FD]
372# ---------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with status $?, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$?; test $as_status -eq 0 && as_status=1
379  if test "$3"; then
380    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
382  fi
383  $as_echo "$as_me: error: $1" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540SHELL=${CONFIG_SHELL-/bin/sh}
541
542
543test -n "$DJDIR" || exec 7<&0 </dev/null
544exec 6>&1
545
546# Name of the host.
547# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
548# so uname gets run too.
549ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550
551#
552# Initializations.
553#
554ac_default_prefix=/usr/local
555ac_clean_files=
556ac_config_libobj_dir=.
557LIBOBJS=
558cross_compiling=no
559subdirs=
560MFLAGS=
561MAKEFLAGS=
562
563# Identity of this package.
564PACKAGE_NAME='Heimdal'
565PACKAGE_TARNAME='heimdal'
566PACKAGE_VERSION='1.5.2'
567PACKAGE_STRING='Heimdal 1.5.2'
568PACKAGE_BUGREPORT='heimdal-bugs@h5l.org'
569PACKAGE_URL=''
570
571ac_unique_file="kuser/kinit.c"
572# Factoring default headers for most tests.
573ac_includes_default="\
574#include <stdio.h>
575#ifdef HAVE_SYS_TYPES_H
576# include <sys/types.h>
577#endif
578#ifdef HAVE_SYS_STAT_H
579# include <sys/stat.h>
580#endif
581#ifdef STDC_HEADERS
582# include <stdlib.h>
583# include <stddef.h>
584#else
585# ifdef HAVE_STDLIB_H
586#  include <stdlib.h>
587# endif
588#endif
589#ifdef HAVE_STRING_H
590# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591#  include <memory.h>
592# endif
593# include <string.h>
594#endif
595#ifdef HAVE_STRINGS_H
596# include <strings.h>
597#endif
598#ifdef HAVE_INTTYPES_H
599# include <inttypes.h>
600#endif
601#ifdef HAVE_STDINT_H
602# include <stdint.h>
603#endif
604#ifdef HAVE_UNISTD_H
605# include <unistd.h>
606#endif"
607
608ac_default_prefix=/usr/heimdal
609ac_header_list=
610enable_option_checking=no
611ac_subst_vars='am__EXEEXT_FALSE
612am__EXEEXT_TRUE
613LTLIBOBJS
614HEIMDAL_DOCUMENTATION_FALSE
615HEIMDAL_DOCUMENTATION_TRUE
616LIB_AUTH_SUBDIRS
617LIB_com_err_so
618LIB_com_err_a
619LIB_com_err
620DIR_com_err
621COM_ERR_FALSE
622COM_ERR_TRUE
623COMPILE_ET
624LIBEDIT_FALSE
625LIBEDIT_TRUE
626FRAMEWORK_SECURITY_FALSE
627FRAMEWORK_SECURITY_TRUE
628KCM_FALSE
629KCM_TRUE
630LIB_door_create
631LIB_getpwnam_r
632LIB_tgetent
633LIB_openpty
634LIB_logout
635LIB_logwtmp
636NEED_WRITEAUTH_FALSE
637NEED_WRITEAUTH_TRUE
638LIB_XauFileName
639LIB_XauReadAuth
640LIB_XauWriteAuth
641HAVE_X_FALSE
642HAVE_X_TRUE
643X_EXTRA_LIBS
644X_LIBS
645X_PRE_LIBS
646X_CFLAGS
647XMKMF
648LIB_hesiod
649INCLUDE_hesiod
650subdirs
651LIB_libedit
652INCLUDE_libedit
653LIB_readline
654INCLUDE_readline
655CATMANEXT
656CATMAN_FALSE
657CATMAN_TRUE
658CATMAN
659GROFF
660NROFF
661LIB_security
662have_gcd_FALSE
663have_gcd_TRUE
664LIB_dispatch_async_f
665OTP_FALSE
666OTP_TRUE
667LIB_otp
668LIBADD_roken
669INCLUDES_roken
670LIB_roken
671DIR_roken
672have_socket_wrapper_FALSE
673have_socket_wrapper_TRUE
674LIB_crypt
675have_fnmatch_h_FALSE
676have_fnmatch_h_TRUE
677LIB_gai_strerror
678LIB_freeaddrinfo
679LIB_getnameinfo
680LIB_getaddrinfo
681LIB_pidfile
682LIB_bswap32
683LIB_bswap16
684LIB_hstrerror
685LIB_setsockopt
686LIB_getsockopt
687have_cgetent_FALSE
688have_cgetent_TRUE
689have_glob_h_FALSE
690have_glob_h_TRUE
691LIBOBJS
692LIB_dn_expand
693LIB_dns_search
694LIB_res_ndestroy
695LIB_res_nsearch
696LIB_res_search
697LIB_gethostbyname2
698LIB_syslog
699LIB_gethostbyname
700LIB_socket
701have_vis_h_FALSE
702have_vis_h_TRUE
703have_search_h_FALSE
704have_search_h_TRUE
705have_ifaddrs_h_FALSE
706have_ifaddrs_h_TRUE
707have_err_h_FALSE
708have_err_h_TRUE
709WFLAGS_NOIMPLICITINT
710WFLAGS_NOUNUSED
711WFLAGS
712LIB_NDBM
713DBLIB
714HAVE_DBHEADER_FALSE
715HAVE_DBHEADER_TRUE
716HAVE_NDBM_FALSE
717HAVE_NDBM_TRUE
718HAVE_DB3_FALSE
719HAVE_DB3_TRUE
720HAVE_DB1_FALSE
721HAVE_DB1_TRUE
722LIB_dbm_firstkey
723LIB_dbopen
724LIB_db_create
725DBHEADER
726NO_AFS
727dpagaix_ldflags
728dpagaix_ldadd
729dpagaix_cflags
730DCE_FALSE
731DCE_TRUE
732PTHREAD_LIBADD
733PTHREAD_LDADD
734PTHREAD_CFLAGS
735LIB_hcrypto_appl
736LIB_hcrypto_so
737LIB_hcrypto_a
738LIB_hcrypto
739INCLUDE_hcrypto
740DIR_hcrypto
741HAVE_OPENSSL_FALSE
742HAVE_OPENSSL_TRUE
743LIB_kdb
744do_roken_rename_FALSE
745do_roken_rename_TRUE
746KRB5_FALSE
747KRB5_TRUE
748KRB4_FALSE
749KRB4_TRUE
750LIB_krb4
751INCLUDE_krb4
752DIR_hdbdir
753LIB_libintl
754INCLUDE_libintl
755have_scc_FALSE
756have_scc_TRUE
757SQLITE3_FALSE
758SQLITE3_TRUE
759LIB_sqlite3
760INCLUDE_sqlite3
761HAVE_CAPNG_FALSE
762HAVE_CAPNG_TRUE
763CAPNG_LIBS
764CAPNG_CFLAGS
765PKG_CONFIG
766PKINIT_FALSE
767PKINIT_TRUE
768OPENLDAP_MODULE_FALSE
769OPENLDAP_MODULE_TRUE
770LIB_openldap
771INCLUDE_openldap
772SLC_DEP
773SLC
774ASN1_COMPILE_DEP
775ASN1_COMPILE
776CROSS_COMPILE_FALSE
777CROSS_COMPILE_TRUE
778LDFLAGS_VERSION_SCRIPT
779versionscript_FALSE
780versionscript_TRUE
781VERSIONING
782ENABLE_SHARED_FALSE
783ENABLE_SHARED_TRUE
784LEXLIB
785LEX_OUTPUT_ROOT
786LEX
787YFLAGS
788YACC
789IRIX_FALSE
790IRIX_TRUE
791AIX_EXTRA_KAFS
792AIX_DYNAMIC_AFS_FALSE
793AIX_DYNAMIC_AFS_TRUE
794LIB_loadquery
795HAVE_DLOPEN_FALSE
796HAVE_DLOPEN_TRUE
797LIB_dlopen
798AIX4_FALSE
799AIX4_TRUE
800AIX_FALSE
801AIX_TRUE
802CANONICAL_HOST
803OTOOL64
804OTOOL
805LIPO
806NMEDIT
807DSYMUTIL
808MANIFEST_TOOL
809RANLIB
810ac_ct_AR
811AR
812DLLTOOL
813OBJDUMP
814LN_S
815NM
816ac_ct_DUMPBIN
817DUMPBIN
818LD
819FGREP
820EGREP
821GREP
822SED
823host_os
824host_vendor
825host_cpu
826host
827build_os
828build_vendor
829build_cpu
830build
831LIBTOOL
832CPP
833am__fastdepCC_FALSE
834am__fastdepCC_TRUE
835CCDEPMODE
836AMDEPBACKSLASH
837AMDEP_FALSE
838AMDEP_TRUE
839am__quote
840am__include
841DEPDIR
842OBJEXT
843EXEEXT
844ac_ct_CC
845CPPFLAGS
846LDFLAGS
847CFLAGS
848CC
849MAINT
850MAINTAINER_MODE_FALSE
851MAINTAINER_MODE_TRUE
852am__untar
853am__tar
854AMTAR
855am__leading_dot
856SET_MAKE
857AWK
858mkdir_p
859MKDIR_P
860INSTALL_STRIP_PROGRAM
861STRIP
862install_sh
863MAKEINFO
864AUTOHEADER
865AUTOMAKE
866AUTOCONF
867ACLOCAL
868VERSION
869PACKAGE
870CYGPATH_W
871am__isrc
872INSTALL_DATA
873INSTALL_SCRIPT
874INSTALL_PROGRAM
875target_alias
876host_alias
877build_alias
878LIBS
879ECHO_T
880ECHO_N
881ECHO_C
882DEFS
883mandir
884localedir
885libdir
886psdir
887pdfdir
888dvidir
889htmldir
890infodir
891docdir
892oldincludedir
893includedir
894localstatedir
895sharedstatedir
896sysconfdir
897datadir
898datarootdir
899libexecdir
900sbindir
901bindir
902program_transform_name
903prefix
904exec_prefix
905PACKAGE_URL
906PACKAGE_BUGREPORT
907PACKAGE_STRING
908PACKAGE_VERSION
909PACKAGE_TARNAME
910PACKAGE_NAME
911PATH_SEPARATOR
912SHELL'
913ac_subst_files=''
914ac_user_opts='
915enable_option_checking
916enable_maintainer_mode
917enable_dependency_tracking
918enable_shared
919enable_static
920with_pic
921enable_fast_install
922with_gnu_ld
923with_sysroot
924enable_libtool_lock
925enable_largefile
926enable_dynamic_afs
927with_mips_abi
928with_cross_tools
929with_openldap
930with_openldap_lib
931with_openldap_include
932with_openldap_config
933enable_hdb_openldap_module
934enable_pk_init
935enable_digest
936enable_kx509
937with_capng
938with_sqlite3
939with_sqlite3_lib
940with_sqlite3_include
941with_sqlite3_config
942enable_sqlite_cache
943with_libintl
944with_libintl_lib
945with_libintl_include
946with_libintl_config
947with_hdbdir
948with_openssl
949with_openssl_lib
950with_openssl_include
951enable_pthread_support
952enable_dce
953enable_afs_support
954with_berkeley_db
955with_berkeley_db_include
956enable_ndbm_db
957enable_developer
958with_ipv6
959enable_socket_wrapper
960enable_otp
961enable_osfc2
962enable_mmap
963enable_afs_string_to_key
964with_readline
965with_readline_lib
966with_readline_include
967with_readline_config
968with_libedit
969with_libedit_lib
970with_libedit_include
971with_libedit_config
972with_hesiod
973with_hesiod_lib
974with_hesiod_include
975with_hesiod_config
976enable_bigendian
977enable_littleendian
978with_x
979enable_kcm
980enable_heimdal_documentation
981'
982      ac_precious_vars='build_alias
983host_alias
984target_alias
985CC
986CFLAGS
987LDFLAGS
988LIBS
989CPPFLAGS
990CPP
991YACC
992YFLAGS
993PKG_CONFIG
994CAPNG_CFLAGS
995CAPNG_LIBS
996XMKMF'
997ac_subdirs_all='lib/libedit'
998
999# Initialize some variables set by options.
1000ac_init_help=
1001ac_init_version=false
1002ac_unrecognized_opts=
1003ac_unrecognized_sep=
1004# The variables have the same names as the options, with
1005# dashes changed to underlines.
1006cache_file=/dev/null
1007exec_prefix=NONE
1008no_create=
1009no_recursion=
1010prefix=NONE
1011program_prefix=NONE
1012program_suffix=NONE
1013program_transform_name=s,x,x,
1014silent=
1015site=
1016srcdir=
1017verbose=
1018x_includes=NONE
1019x_libraries=NONE
1020
1021# Installation directory options.
1022# These are left unexpanded so users can "make install exec_prefix=/foo"
1023# and all the variables that are supposed to be based on exec_prefix
1024# by default will actually change.
1025# Use braces instead of parens because sh, perl, etc. also accept them.
1026# (The list follows the same order as the GNU Coding Standards.)
1027bindir='${exec_prefix}/bin'
1028sbindir='${exec_prefix}/sbin'
1029libexecdir='${exec_prefix}/libexec'
1030datarootdir='${prefix}/share'
1031datadir='${datarootdir}'
1032sysconfdir='${prefix}/etc'
1033sharedstatedir='${prefix}/com'
1034localstatedir='${prefix}/var'
1035includedir='${prefix}/include'
1036oldincludedir='/usr/include'
1037docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1038infodir='${datarootdir}/info'
1039htmldir='${docdir}'
1040dvidir='${docdir}'
1041pdfdir='${docdir}'
1042psdir='${docdir}'
1043libdir='${exec_prefix}/lib'
1044localedir='${datarootdir}/locale'
1045mandir='${datarootdir}/man'
1046
1047ac_prev=
1048ac_dashdash=
1049for ac_option
1050do
1051  # If the previous option needs an argument, assign it.
1052  if test -n "$ac_prev"; then
1053    eval $ac_prev=\$ac_option
1054    ac_prev=
1055    continue
1056  fi
1057
1058  case $ac_option in
1059  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1060  *)	ac_optarg=yes ;;
1061  esac
1062
1063  # Accept the important Cygnus configure options, so we can diagnose typos.
1064
1065  case $ac_dashdash$ac_option in
1066  --)
1067    ac_dashdash=yes ;;
1068
1069  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1070    ac_prev=bindir ;;
1071  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072    bindir=$ac_optarg ;;
1073
1074  -build | --build | --buil | --bui | --bu)
1075    ac_prev=build_alias ;;
1076  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077    build_alias=$ac_optarg ;;
1078
1079  -cache-file | --cache-file | --cache-fil | --cache-fi \
1080  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081    ac_prev=cache_file ;;
1082  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084    cache_file=$ac_optarg ;;
1085
1086  --config-cache | -C)
1087    cache_file=config.cache ;;
1088
1089  -datadir | --datadir | --datadi | --datad)
1090    ac_prev=datadir ;;
1091  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092    datadir=$ac_optarg ;;
1093
1094  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095  | --dataroo | --dataro | --datar)
1096    ac_prev=datarootdir ;;
1097  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099    datarootdir=$ac_optarg ;;
1100
1101  -disable-* | --disable-*)
1102    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103    # Reject names that are not valid shell variable names.
1104    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105      as_fn_error "invalid feature name: $ac_useropt"
1106    ac_useropt_orig=$ac_useropt
1107    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108    case $ac_user_opts in
1109      *"
1110"enable_$ac_useropt"
1111"*) ;;
1112      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1113	 ac_unrecognized_sep=', ';;
1114    esac
1115    eval enable_$ac_useropt=no ;;
1116
1117  -docdir | --docdir | --docdi | --doc | --do)
1118    ac_prev=docdir ;;
1119  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1120    docdir=$ac_optarg ;;
1121
1122  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1123    ac_prev=dvidir ;;
1124  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1125    dvidir=$ac_optarg ;;
1126
1127  -enable-* | --enable-*)
1128    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1129    # Reject names that are not valid shell variable names.
1130    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131      as_fn_error "invalid feature name: $ac_useropt"
1132    ac_useropt_orig=$ac_useropt
1133    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134    case $ac_user_opts in
1135      *"
1136"enable_$ac_useropt"
1137"*) ;;
1138      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1139	 ac_unrecognized_sep=', ';;
1140    esac
1141    eval enable_$ac_useropt=\$ac_optarg ;;
1142
1143  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1144  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1145  | --exec | --exe | --ex)
1146    ac_prev=exec_prefix ;;
1147  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1148  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1149  | --exec=* | --exe=* | --ex=*)
1150    exec_prefix=$ac_optarg ;;
1151
1152  -gas | --gas | --ga | --g)
1153    # Obsolete; use --with-gas.
1154    with_gas=yes ;;
1155
1156  -help | --help | --hel | --he | -h)
1157    ac_init_help=long ;;
1158  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1159    ac_init_help=recursive ;;
1160  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1161    ac_init_help=short ;;
1162
1163  -host | --host | --hos | --ho)
1164    ac_prev=host_alias ;;
1165  -host=* | --host=* | --hos=* | --ho=*)
1166    host_alias=$ac_optarg ;;
1167
1168  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1169    ac_prev=htmldir ;;
1170  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1171  | --ht=*)
1172    htmldir=$ac_optarg ;;
1173
1174  -includedir | --includedir | --includedi | --included | --include \
1175  | --includ | --inclu | --incl | --inc)
1176    ac_prev=includedir ;;
1177  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1178  | --includ=* | --inclu=* | --incl=* | --inc=*)
1179    includedir=$ac_optarg ;;
1180
1181  -infodir | --infodir | --infodi | --infod | --info | --inf)
1182    ac_prev=infodir ;;
1183  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1184    infodir=$ac_optarg ;;
1185
1186  -libdir | --libdir | --libdi | --libd)
1187    ac_prev=libdir ;;
1188  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1189    libdir=$ac_optarg ;;
1190
1191  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1192  | --libexe | --libex | --libe)
1193    ac_prev=libexecdir ;;
1194  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1195  | --libexe=* | --libex=* | --libe=*)
1196    libexecdir=$ac_optarg ;;
1197
1198  -localedir | --localedir | --localedi | --localed | --locale)
1199    ac_prev=localedir ;;
1200  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1201    localedir=$ac_optarg ;;
1202
1203  -localstatedir | --localstatedir | --localstatedi | --localstated \
1204  | --localstate | --localstat | --localsta | --localst | --locals)
1205    ac_prev=localstatedir ;;
1206  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1207  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1208    localstatedir=$ac_optarg ;;
1209
1210  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1211    ac_prev=mandir ;;
1212  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1213    mandir=$ac_optarg ;;
1214
1215  -nfp | --nfp | --nf)
1216    # Obsolete; use --without-fp.
1217    with_fp=no ;;
1218
1219  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1220  | --no-cr | --no-c | -n)
1221    no_create=yes ;;
1222
1223  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1224  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1225    no_recursion=yes ;;
1226
1227  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1228  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1229  | --oldin | --oldi | --old | --ol | --o)
1230    ac_prev=oldincludedir ;;
1231  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1232  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1233  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1234    oldincludedir=$ac_optarg ;;
1235
1236  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1237    ac_prev=prefix ;;
1238  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1239    prefix=$ac_optarg ;;
1240
1241  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1242  | --program-pre | --program-pr | --program-p)
1243    ac_prev=program_prefix ;;
1244  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1245  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1246    program_prefix=$ac_optarg ;;
1247
1248  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1249  | --program-suf | --program-su | --program-s)
1250    ac_prev=program_suffix ;;
1251  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1252  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1253    program_suffix=$ac_optarg ;;
1254
1255  -program-transform-name | --program-transform-name \
1256  | --program-transform-nam | --program-transform-na \
1257  | --program-transform-n | --program-transform- \
1258  | --program-transform | --program-transfor \
1259  | --program-transfo | --program-transf \
1260  | --program-trans | --program-tran \
1261  | --progr-tra | --program-tr | --program-t)
1262    ac_prev=program_transform_name ;;
1263  -program-transform-name=* | --program-transform-name=* \
1264  | --program-transform-nam=* | --program-transform-na=* \
1265  | --program-transform-n=* | --program-transform-=* \
1266  | --program-transform=* | --program-transfor=* \
1267  | --program-transfo=* | --program-transf=* \
1268  | --program-trans=* | --program-tran=* \
1269  | --progr-tra=* | --program-tr=* | --program-t=*)
1270    program_transform_name=$ac_optarg ;;
1271
1272  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1273    ac_prev=pdfdir ;;
1274  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1275    pdfdir=$ac_optarg ;;
1276
1277  -psdir | --psdir | --psdi | --psd | --ps)
1278    ac_prev=psdir ;;
1279  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1280    psdir=$ac_optarg ;;
1281
1282  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283  | -silent | --silent | --silen | --sile | --sil)
1284    silent=yes ;;
1285
1286  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1287    ac_prev=sbindir ;;
1288  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1289  | --sbi=* | --sb=*)
1290    sbindir=$ac_optarg ;;
1291
1292  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1293  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1294  | --sharedst | --shareds | --shared | --share | --shar \
1295  | --sha | --sh)
1296    ac_prev=sharedstatedir ;;
1297  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1298  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1299  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1300  | --sha=* | --sh=*)
1301    sharedstatedir=$ac_optarg ;;
1302
1303  -site | --site | --sit)
1304    ac_prev=site ;;
1305  -site=* | --site=* | --sit=*)
1306    site=$ac_optarg ;;
1307
1308  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1309    ac_prev=srcdir ;;
1310  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1311    srcdir=$ac_optarg ;;
1312
1313  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1314  | --syscon | --sysco | --sysc | --sys | --sy)
1315    ac_prev=sysconfdir ;;
1316  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1317  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1318    sysconfdir=$ac_optarg ;;
1319
1320  -target | --target | --targe | --targ | --tar | --ta | --t)
1321    ac_prev=target_alias ;;
1322  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1323    target_alias=$ac_optarg ;;
1324
1325  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1326    verbose=yes ;;
1327
1328  -version | --version | --versio | --versi | --vers | -V)
1329    ac_init_version=: ;;
1330
1331  -with-* | --with-*)
1332    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1333    # Reject names that are not valid shell variable names.
1334    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1335      as_fn_error "invalid package name: $ac_useropt"
1336    ac_useropt_orig=$ac_useropt
1337    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338    case $ac_user_opts in
1339      *"
1340"with_$ac_useropt"
1341"*) ;;
1342      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1343	 ac_unrecognized_sep=', ';;
1344    esac
1345    eval with_$ac_useropt=\$ac_optarg ;;
1346
1347  -without-* | --without-*)
1348    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1349    # Reject names that are not valid shell variable names.
1350    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1351      as_fn_error "invalid package name: $ac_useropt"
1352    ac_useropt_orig=$ac_useropt
1353    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1354    case $ac_user_opts in
1355      *"
1356"with_$ac_useropt"
1357"*) ;;
1358      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1359	 ac_unrecognized_sep=', ';;
1360    esac
1361    eval with_$ac_useropt=no ;;
1362
1363  --x)
1364    # Obsolete; use --with-x.
1365    with_x=yes ;;
1366
1367  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1368  | --x-incl | --x-inc | --x-in | --x-i)
1369    ac_prev=x_includes ;;
1370  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1371  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1372    x_includes=$ac_optarg ;;
1373
1374  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1375  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1376    ac_prev=x_libraries ;;
1377  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1378  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1379    x_libraries=$ac_optarg ;;
1380
1381  -*) as_fn_error "unrecognized option: \`$ac_option'
1382Try \`$0 --help' for more information."
1383    ;;
1384
1385  *=*)
1386    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1387    # Reject names that are not valid shell variable names.
1388    case $ac_envvar in #(
1389      '' | [0-9]* | *[!_$as_cr_alnum]* )
1390      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1391    esac
1392    eval $ac_envvar=\$ac_optarg
1393    export $ac_envvar ;;
1394
1395  *)
1396    # FIXME: should be removed in autoconf 3.0.
1397    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1398    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1399      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1400    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1401    ;;
1402
1403  esac
1404done
1405
1406if test -n "$ac_prev"; then
1407  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1408  as_fn_error "missing argument to $ac_option"
1409fi
1410
1411if test -n "$ac_unrecognized_opts"; then
1412  case $enable_option_checking in
1413    no) ;;
1414    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1415    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1416  esac
1417fi
1418
1419# Check all directory arguments for consistency.
1420for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1421		datadir sysconfdir sharedstatedir localstatedir includedir \
1422		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1423		libdir localedir mandir
1424do
1425  eval ac_val=\$$ac_var
1426  # Remove trailing slashes.
1427  case $ac_val in
1428    */ )
1429      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1430      eval $ac_var=\$ac_val;;
1431  esac
1432  # Be sure to have absolute directory names.
1433  case $ac_val in
1434    [\\/$]* | ?:[\\/]* )  continue;;
1435    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1436  esac
1437  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1438done
1439
1440# There might be people who depend on the old broken behavior: `$host'
1441# used to hold the argument of --host etc.
1442# FIXME: To remove some day.
1443build=$build_alias
1444host=$host_alias
1445target=$target_alias
1446
1447# FIXME: To remove some day.
1448if test "x$host_alias" != x; then
1449  if test "x$build_alias" = x; then
1450    cross_compiling=maybe
1451    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1452    If a cross compiler is detected then cross compile mode will be used." >&2
1453  elif test "x$build_alias" != "x$host_alias"; then
1454    cross_compiling=yes
1455  fi
1456fi
1457
1458ac_tool_prefix=
1459test -n "$host_alias" && ac_tool_prefix=$host_alias-
1460
1461test "$silent" = yes && exec 6>/dev/null
1462
1463
1464ac_pwd=`pwd` && test -n "$ac_pwd" &&
1465ac_ls_di=`ls -di .` &&
1466ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1467  as_fn_error "working directory cannot be determined"
1468test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1469  as_fn_error "pwd does not report name of working directory"
1470
1471
1472# Find the source files, if location was not specified.
1473if test -z "$srcdir"; then
1474  ac_srcdir_defaulted=yes
1475  # Try the directory containing this script, then the parent directory.
1476  ac_confdir=`$as_dirname -- "$as_myself" ||
1477$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1478	 X"$as_myself" : 'X\(//\)[^/]' \| \
1479	 X"$as_myself" : 'X\(//\)$' \| \
1480	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1481$as_echo X"$as_myself" |
1482    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1483	    s//\1/
1484	    q
1485	  }
1486	  /^X\(\/\/\)[^/].*/{
1487	    s//\1/
1488	    q
1489	  }
1490	  /^X\(\/\/\)$/{
1491	    s//\1/
1492	    q
1493	  }
1494	  /^X\(\/\).*/{
1495	    s//\1/
1496	    q
1497	  }
1498	  s/.*/./; q'`
1499  srcdir=$ac_confdir
1500  if test ! -r "$srcdir/$ac_unique_file"; then
1501    srcdir=..
1502  fi
1503else
1504  ac_srcdir_defaulted=no
1505fi
1506if test ! -r "$srcdir/$ac_unique_file"; then
1507  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1508  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1509fi
1510ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1511ac_abs_confdir=`(
1512	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1513	pwd)`
1514# When building in place, set srcdir=.
1515if test "$ac_abs_confdir" = "$ac_pwd"; then
1516  srcdir=.
1517fi
1518# Remove unnecessary trailing slashes from srcdir.
1519# Double slashes in file names in object file debugging info
1520# mess up M-x gdb in Emacs.
1521case $srcdir in
1522*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1523esac
1524for ac_var in $ac_precious_vars; do
1525  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1526  eval ac_env_${ac_var}_value=\$${ac_var}
1527  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1528  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1529done
1530
1531#
1532# Report the --help message.
1533#
1534if test "$ac_init_help" = "long"; then
1535  # Omit some internal or obsolete options to make the list less imposing.
1536  # This message is too long to be a string in the A/UX 3.1 sh.
1537  cat <<_ACEOF
1538\`configure' configures Heimdal 1.5.2 to adapt to many kinds of systems.
1539
1540Usage: $0 [OPTION]... [VAR=VALUE]...
1541
1542To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543VAR=VALUE.  See below for descriptions of some of the useful variables.
1544
1545Defaults for the options are specified in brackets.
1546
1547Configuration:
1548  -h, --help              display this help and exit
1549      --help=short        display options specific to this package
1550      --help=recursive    display the short help of all the included packages
1551  -V, --version           display version information and exit
1552  -q, --quiet, --silent   do not print \`checking...' messages
1553      --cache-file=FILE   cache test results in FILE [disabled]
1554  -C, --config-cache      alias for \`--cache-file=config.cache'
1555  -n, --no-create         do not create output files
1556      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1557
1558Installation directories:
1559  --prefix=PREFIX         install architecture-independent files in PREFIX
1560                          [$ac_default_prefix]
1561  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1562                          [PREFIX]
1563
1564By default, \`make install' will install all the files in
1565\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1566an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567for instance \`--prefix=\$HOME'.
1568
1569For better control, use the options below.
1570
1571Fine tuning of the installation directories:
1572  --bindir=DIR            user executables [EPREFIX/bin]
1573  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1574  --libexecdir=DIR        program executables [EPREFIX/libexec]
1575  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1576  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1577  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1578  --libdir=DIR            object code libraries [EPREFIX/lib]
1579  --includedir=DIR        C header files [PREFIX/include]
1580  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1581  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1582  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1583  --infodir=DIR           info documentation [DATAROOTDIR/info]
1584  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1585  --mandir=DIR            man documentation [DATAROOTDIR/man]
1586  --docdir=DIR            documentation root [DATAROOTDIR/doc/heimdal]
1587  --htmldir=DIR           html documentation [DOCDIR]
1588  --dvidir=DIR            dvi documentation [DOCDIR]
1589  --pdfdir=DIR            pdf documentation [DOCDIR]
1590  --psdir=DIR             ps documentation [DOCDIR]
1591_ACEOF
1592
1593  cat <<\_ACEOF
1594
1595Program names:
1596  --program-prefix=PREFIX            prepend PREFIX to installed program names
1597  --program-suffix=SUFFIX            append SUFFIX to installed program names
1598  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1599
1600X features:
1601  --x-includes=DIR    X include files are in DIR
1602  --x-libraries=DIR   X library files are in DIR
1603
1604System types:
1605  --build=BUILD     configure for building on BUILD [guessed]
1606  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1607_ACEOF
1608fi
1609
1610if test -n "$ac_init_help"; then
1611  case $ac_init_help in
1612     short | recursive ) echo "Configuration of Heimdal 1.5.2:";;
1613   esac
1614  cat <<\_ACEOF
1615
1616Optional Features:
1617  --disable-option-checking  ignore unrecognized --enable/--with options
1618  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1619  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1620  --enable-maintainer-mode  enable make rules and dependencies not useful
1621			  (and sometimes confusing) to the casual installer
1622  --disable-dependency-tracking  speeds up one-time build
1623  --enable-dependency-tracking   do not reject slow dependency extractors
1624  --enable-shared[=PKGS]  build shared libraries [default=yes]
1625  --enable-static[=PKGS]  build static libraries [default=yes]
1626  --enable-fast-install[=PKGS]
1627                          optimize for fast installation [default=yes]
1628  --disable-libtool-lock  avoid locking (might break parallel builds)
1629  --disable-largefile     omit support for large files
1630  --disable-dynamic-afs   do not use loaded AFS library with AIX
1631  --enable-hdb-openldap-module
1632                          if you want support to build openldap hdb as shared
1633                          object
1634  --disable-pk-init       if you want disable to PK-INIT support
1635  --disable-digest        if you want disable to DIGEST support
1636  --disable-kx509         if you want disable to kx509 support
1637  --disable-sqlite-cache  if you want support for cache in sqlite
1638  --enable-pthread-support
1639                          if you want thread safe libraries
1640  --enable-dce            if you want support for DCE/DFS PAG's
1641  --disable-afs-support   if you don't want support for AFS
1642  --disable-ndbm-db       if you don't want ndbm db
1643  --enable-developer      enable developer warnings
1644  --enable-socket-wrapper use sambas socket-wrapper for testing
1645  --disable-otp           if you don't want OTP support
1646  --enable-osfc2          enable some OSF C2 support
1647  --disable-mmap          disable use of mmap
1648  --disable-afs-string-to-key
1649                          disable use of weak AFS string-to-key functions
1650  --enable-bigendian      the target is big endian
1651  --enable-littleendian   the target is little endian
1652  --enable-kcm            enable Kerberos Credentials Manager
1653  --disable-heimdal-documentation
1654                          if you want disable to heimdal documentation
1655
1656Optional Packages:
1657  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1658  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1659  --with-pic              try to use only PIC/non-PIC objects [default=use
1660                          both]
1661  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1662  --with-sysroot=DIR Search for dependent libraries within DIR
1663                        (or the compiler's sysroot if not specified).
1664  --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
1665  --with-cross-tools=dir  use cross tools in dir
1666  --with-openldap=dir     use openldap in dir
1667  --with-openldap-lib=dir use openldap libraries in dir
1668  --with-openldap-include=dir
1669                          use openldap headers in dir
1670  --with-openldap-config=path
1671                          config program for openldap
1672  --with-capng            use libcap-ng to drop KDC privileges [default=check]
1673  --with-sqlite3=dir      use sqlite3 in dir
1674  --with-sqlite3-lib=dir  use sqlite3 libraries in dir
1675  --with-sqlite3-include=dir
1676                          use sqlite3 headers in dir
1677  --with-sqlite3-config=path
1678                          config program for sqlite3
1679  --with-libintl=dir      use libintl in dir
1680  --with-libintl-lib=dir  use libintl libraries in dir
1681  --with-libintl-include=dir
1682                          use libintl headers in dir
1683  --with-libintl-config=path
1684                          config program for libintl
1685  --with-hdbdir           Default location for KDC database
1686                          [default=/var/heimdal]
1687  --with-openssl=dir      use openssl in dir
1688  --with-openssl-lib=dir  use openssl libraries in dir
1689  --with-openssl-include=dir
1690                          use openssl headers in dir
1691  --with-berkeley-db      enable support for berkeley db [default=check]
1692  --with-berkeley-db-include=dir
1693                          use berkeley-db headers in dir
1694  --without-ipv6          do not enable IPv6 support
1695  --with-readline=dir     use readline in dir
1696  --with-readline-lib=dir use readline libraries in dir
1697  --with-readline-include=dir
1698                          use readline headers in dir
1699  --with-readline-config=path
1700                          config program for readline
1701  --with-libedit=dir      use libedit in dir
1702  --with-libedit-lib=dir  use libedit libraries in dir
1703  --with-libedit-include=dir
1704                          use libedit headers in dir
1705  --with-libedit-config=path
1706                          config program for libedit
1707  --with-hesiod=dir       use hesiod in dir
1708  --with-hesiod-lib=dir   use hesiod libraries in dir
1709  --with-hesiod-include=dir
1710                          use hesiod headers in dir
1711  --with-hesiod-config=path
1712                          config program for hesiod
1713  --with-x                use the X Window System
1714
1715Some influential environment variables:
1716  CC          C compiler command
1717  CFLAGS      C compiler flags
1718  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1719              nonstandard directory <lib dir>
1720  LIBS        libraries to pass to the linker, e.g. -l<library>
1721  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1722              you have headers in a nonstandard directory <include dir>
1723  CPP         C preprocessor
1724  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1725              the first program found out of: `bison -y', `byacc', `yacc'.
1726  YFLAGS      The list of arguments that will be passed by default to $YACC.
1727              This script will default YFLAGS to the empty string to avoid a
1728              default value of `-d' given by some make applications.
1729  PKG_CONFIG  path to pkg-config utility
1730  CAPNG_CFLAGS
1731              C compiler flags for CAPNG, overriding pkg-config
1732  CAPNG_LIBS  linker flags for CAPNG, overriding pkg-config
1733  XMKMF       Path to xmkmf, Makefile generator for X Window System
1734
1735Use these variables to override the choices made by `configure' or to help
1736it to find libraries and programs with nonstandard names/locations.
1737
1738Report bugs to <heimdal-bugs@h5l.org>.
1739_ACEOF
1740ac_status=$?
1741fi
1742
1743if test "$ac_init_help" = "recursive"; then
1744  # If there are subdirs, report their specific --help.
1745  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746    test -d "$ac_dir" ||
1747      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1748      continue
1749    ac_builddir=.
1750
1751case "$ac_dir" in
1752.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1753*)
1754  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1755  # A ".." for each directory in $ac_dir_suffix.
1756  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1757  case $ac_top_builddir_sub in
1758  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1760  esac ;;
1761esac
1762ac_abs_top_builddir=$ac_pwd
1763ac_abs_builddir=$ac_pwd$ac_dir_suffix
1764# for backward compatibility:
1765ac_top_builddir=$ac_top_build_prefix
1766
1767case $srcdir in
1768  .)  # We are building in place.
1769    ac_srcdir=.
1770    ac_top_srcdir=$ac_top_builddir_sub
1771    ac_abs_top_srcdir=$ac_pwd ;;
1772  [\\/]* | ?:[\\/]* )  # Absolute name.
1773    ac_srcdir=$srcdir$ac_dir_suffix;
1774    ac_top_srcdir=$srcdir
1775    ac_abs_top_srcdir=$srcdir ;;
1776  *) # Relative name.
1777    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778    ac_top_srcdir=$ac_top_build_prefix$srcdir
1779    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1780esac
1781ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1782
1783    cd "$ac_dir" || { ac_status=$?; continue; }
1784    # Check for guested configure.
1785    if test -f "$ac_srcdir/configure.gnu"; then
1786      echo &&
1787      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788    elif test -f "$ac_srcdir/configure"; then
1789      echo &&
1790      $SHELL "$ac_srcdir/configure" --help=recursive
1791    else
1792      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1793    fi || ac_status=$?
1794    cd "$ac_pwd" || { ac_status=$?; break; }
1795  done
1796fi
1797
1798test -n "$ac_init_help" && exit $ac_status
1799if $ac_init_version; then
1800  cat <<\_ACEOF
1801Heimdal configure 1.5.2
1802generated by GNU Autoconf 2.65
1803
1804Copyright (C) 2009 Free Software Foundation, Inc.
1805This configure script is free software; the Free Software Foundation
1806gives unlimited permission to copy, distribute and modify it.
1807_ACEOF
1808  exit
1809fi
1810
1811## ------------------------ ##
1812## Autoconf initialization. ##
1813## ------------------------ ##
1814
1815# ac_fn_c_try_compile LINENO
1816# --------------------------
1817# Try to compile conftest.$ac_ext, and return whether this succeeded.
1818ac_fn_c_try_compile ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  rm -f conftest.$ac_objext
1822  if { { ac_try="$ac_compile"
1823case "(($ac_try" in
1824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825  *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829  (eval "$ac_compile") 2>conftest.err
1830  ac_status=$?
1831  if test -s conftest.err; then
1832    grep -v '^ *+' conftest.err >conftest.er1
1833    cat conftest.er1 >&5
1834    mv -f conftest.er1 conftest.err
1835  fi
1836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837  test $ac_status = 0; } && {
1838	 test -z "$ac_c_werror_flag" ||
1839	 test ! -s conftest.err
1840       } && test -s conftest.$ac_objext; then :
1841  ac_retval=0
1842else
1843  $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846	ac_retval=1
1847fi
1848  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849  as_fn_set_status $ac_retval
1850
1851} # ac_fn_c_try_compile
1852
1853# ac_fn_c_try_cpp LINENO
1854# ----------------------
1855# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1856ac_fn_c_try_cpp ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  if { { ac_try="$ac_cpp conftest.$ac_ext"
1860case "(($ac_try" in
1861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862  *) ac_try_echo=$ac_try;;
1863esac
1864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865$as_echo "$ac_try_echo"; } >&5
1866  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1867  ac_status=$?
1868  if test -s conftest.err; then
1869    grep -v '^ *+' conftest.err >conftest.er1
1870    cat conftest.er1 >&5
1871    mv -f conftest.er1 conftest.err
1872  fi
1873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874  test $ac_status = 0; } >/dev/null && {
1875	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1876	 test ! -s conftest.err
1877       }; then :
1878  ac_retval=0
1879else
1880  $as_echo "$as_me: failed program was:" >&5
1881sed 's/^/| /' conftest.$ac_ext >&5
1882
1883    ac_retval=1
1884fi
1885  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886  as_fn_set_status $ac_retval
1887
1888} # ac_fn_c_try_cpp
1889
1890# ac_fn_c_try_link LINENO
1891# -----------------------
1892# Try to link conftest.$ac_ext, and return whether this succeeded.
1893ac_fn_c_try_link ()
1894{
1895  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896  rm -f conftest.$ac_objext conftest$ac_exeext
1897  if { { ac_try="$ac_link"
1898case "(($ac_try" in
1899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900  *) ac_try_echo=$ac_try;;
1901esac
1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903$as_echo "$ac_try_echo"; } >&5
1904  (eval "$ac_link") 2>conftest.err
1905  ac_status=$?
1906  if test -s conftest.err; then
1907    grep -v '^ *+' conftest.err >conftest.er1
1908    cat conftest.er1 >&5
1909    mv -f conftest.er1 conftest.err
1910  fi
1911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912  test $ac_status = 0; } && {
1913	 test -z "$ac_c_werror_flag" ||
1914	 test ! -s conftest.err
1915       } && test -s conftest$ac_exeext && {
1916	 test "$cross_compiling" = yes ||
1917	 $as_test_x conftest$ac_exeext
1918       }; then :
1919  ac_retval=0
1920else
1921  $as_echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
1924	ac_retval=1
1925fi
1926  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928  # interfere with the next link command; also delete a directory that is
1929  # left behind by Apple's compiler.  We do this before executing the actions.
1930  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932  as_fn_set_status $ac_retval
1933
1934} # ac_fn_c_try_link
1935
1936# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1937# -------------------------------------------------------
1938# Tests whether HEADER exists and can be compiled using the include files in
1939# INCLUDES, setting the cache variable VAR accordingly.
1940ac_fn_c_check_header_compile ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950$4
1951#include <$2>
1952_ACEOF
1953if ac_fn_c_try_compile "$LINENO"; then :
1954  eval "$3=yes"
1955else
1956  eval "$3=no"
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959fi
1960eval ac_res=\$$3
1961	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964
1965} # ac_fn_c_check_header_compile
1966
1967# ac_fn_c_try_run LINENO
1968# ----------------------
1969# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1970# that executables *can* be run.
1971ac_fn_c_try_run ()
1972{
1973  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974  if { { ac_try="$ac_link"
1975case "(($ac_try" in
1976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977  *) ac_try_echo=$ac_try;;
1978esac
1979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980$as_echo "$ac_try_echo"; } >&5
1981  (eval "$ac_link") 2>&5
1982  ac_status=$?
1983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1985  { { case "(($ac_try" in
1986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987  *) ac_try_echo=$ac_try;;
1988esac
1989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990$as_echo "$ac_try_echo"; } >&5
1991  (eval "$ac_try") 2>&5
1992  ac_status=$?
1993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994  test $ac_status = 0; }; }; then :
1995  ac_retval=0
1996else
1997  $as_echo "$as_me: program exited with status $ac_status" >&5
1998       $as_echo "$as_me: failed program was:" >&5
1999sed 's/^/| /' conftest.$ac_ext >&5
2000
2001       ac_retval=$ac_status
2002fi
2003  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005  as_fn_set_status $ac_retval
2006
2007} # ac_fn_c_try_run
2008
2009# ac_fn_c_check_func LINENO FUNC VAR
2010# ----------------------------------
2011# Tests whether FUNC exists, setting the cache variable VAR accordingly
2012ac_fn_c_check_func ()
2013{
2014  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
2017if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018  $as_echo_n "(cached) " >&6
2019else
2020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h.  */
2022/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2023   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2024#define $2 innocuous_$2
2025
2026/* System header to define __stub macros and hopefully few prototypes,
2027    which can conflict with char $2 (); below.
2028    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2029    <limits.h> exists even on freestanding compilers.  */
2030
2031#ifdef __STDC__
2032# include <limits.h>
2033#else
2034# include <assert.h>
2035#endif
2036
2037#undef $2
2038
2039/* Override any GCC internal prototype to avoid an error.
2040   Use char because int might match the return type of a GCC
2041   builtin and then its argument prototype would still apply.  */
2042#ifdef __cplusplus
2043extern "C"
2044#endif
2045char $2 ();
2046/* The GNU C library defines this for functions which it implements
2047    to always fail with ENOSYS.  Some functions are actually named
2048    something starting with __ and the normal name is an alias.  */
2049#if defined __stub_$2 || defined __stub___$2
2050choke me
2051#endif
2052
2053int
2054main ()
2055{
2056return $2 ();
2057  ;
2058  return 0;
2059}
2060_ACEOF
2061if ac_fn_c_try_link "$LINENO"; then :
2062  eval "$3=yes"
2063else
2064  eval "$3=no"
2065fi
2066rm -f core conftest.err conftest.$ac_objext \
2067    conftest$ac_exeext conftest.$ac_ext
2068fi
2069eval ac_res=\$$3
2070	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071$as_echo "$ac_res" >&6; }
2072  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073
2074} # ac_fn_c_check_func
2075
2076# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2077# -------------------------------------------------------
2078# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2079# the include files in INCLUDES and setting the cache variable VAR
2080# accordingly.
2081ac_fn_c_check_header_mongrel ()
2082{
2083  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086$as_echo_n "checking for $2... " >&6; }
2087if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088  $as_echo_n "(cached) " >&6
2089fi
2090eval ac_res=\$$3
2091	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092$as_echo "$ac_res" >&6; }
2093else
2094  # Is the header compilable?
2095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2096$as_echo_n "checking $2 usability... " >&6; }
2097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h.  */
2099$4
2100#include <$2>
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103  ac_header_compiler=yes
2104else
2105  ac_header_compiler=no
2106fi
2107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2109$as_echo "$ac_header_compiler" >&6; }
2110
2111# Is the header present?
2112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2113$as_echo_n "checking $2 presence... " >&6; }
2114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h.  */
2116#include <$2>
2117_ACEOF
2118if ac_fn_c_try_cpp "$LINENO"; then :
2119  ac_header_preproc=yes
2120else
2121  ac_header_preproc=no
2122fi
2123rm -f conftest.err conftest.$ac_ext
2124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2125$as_echo "$ac_header_preproc" >&6; }
2126
2127# So?  What about this header?
2128case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2129  yes:no: )
2130    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2131$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2132    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2133$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2134    ;;
2135  no:yes:* )
2136    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2137$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2138    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2139$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2140    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2141$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2142    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2143$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2144    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2145$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2146( cat <<\_ASBOX
2147## ----------------------------------- ##
2148## Report this to heimdal-bugs@h5l.org ##
2149## ----------------------------------- ##
2150_ASBOX
2151     ) | sed "s/^/$as_me: WARNING:     /" >&2
2152    ;;
2153esac
2154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155$as_echo_n "checking for $2... " >&6; }
2156if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2157  $as_echo_n "(cached) " >&6
2158else
2159  eval "$3=\$ac_header_compiler"
2160fi
2161eval ac_res=\$$3
2162	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163$as_echo "$ac_res" >&6; }
2164fi
2165  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166
2167} # ac_fn_c_check_header_mongrel
2168
2169# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2170# -------------------------------------------
2171# Tests whether TYPE exists after having included INCLUDES, setting cache
2172# variable VAR accordingly.
2173ac_fn_c_check_type ()
2174{
2175  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177$as_echo_n "checking for $2... " >&6; }
2178if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2179  $as_echo_n "(cached) " >&6
2180else
2181  eval "$3=no"
2182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h.  */
2184$4
2185int
2186main ()
2187{
2188if (sizeof ($2))
2189	 return 0;
2190  ;
2191  return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"; then :
2195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h.  */
2197$4
2198int
2199main ()
2200{
2201if (sizeof (($2)))
2202	    return 0;
2203  ;
2204  return 0;
2205}
2206_ACEOF
2207if ac_fn_c_try_compile "$LINENO"; then :
2208
2209else
2210  eval "$3=yes"
2211fi
2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213fi
2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215fi
2216eval ac_res=\$$3
2217	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218$as_echo "$ac_res" >&6; }
2219  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220
2221} # ac_fn_c_check_type
2222
2223# ac_fn_c_check_header_preproc LINENO HEADER VAR
2224# ----------------------------------------------
2225# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2226ac_fn_c_check_header_preproc ()
2227{
2228  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230$as_echo_n "checking for $2... " >&6; }
2231if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2232  $as_echo_n "(cached) " >&6
2233else
2234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h.  */
2236#include <$2>
2237_ACEOF
2238if ac_fn_c_try_cpp "$LINENO"; then :
2239  eval "$3=yes"
2240else
2241  eval "$3=no"
2242fi
2243rm -f conftest.err conftest.$ac_ext
2244fi
2245eval ac_res=\$$3
2246	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247$as_echo "$ac_res" >&6; }
2248  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249
2250} # ac_fn_c_check_header_preproc
2251cat >config.log <<_ACEOF
2252This file contains any messages produced by compilers while
2253running configure, to aid debugging if configure makes a mistake.
2254
2255It was created by Heimdal $as_me 1.5.2, which was
2256generated by GNU Autoconf 2.65.  Invocation command line was
2257
2258  $ $0 $@
2259
2260_ACEOF
2261exec 5>>config.log
2262{
2263cat <<_ASUNAME
2264## --------- ##
2265## Platform. ##
2266## --------- ##
2267
2268hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2269uname -m = `(uname -m) 2>/dev/null || echo unknown`
2270uname -r = `(uname -r) 2>/dev/null || echo unknown`
2271uname -s = `(uname -s) 2>/dev/null || echo unknown`
2272uname -v = `(uname -v) 2>/dev/null || echo unknown`
2273
2274/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2275/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2276
2277/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2278/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2279/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2280/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2281/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2282/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2283/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2284
2285_ASUNAME
2286
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290  IFS=$as_save_IFS
2291  test -z "$as_dir" && as_dir=.
2292    $as_echo "PATH: $as_dir"
2293  done
2294IFS=$as_save_IFS
2295
2296} >&5
2297
2298cat >&5 <<_ACEOF
2299
2300
2301## ----------- ##
2302## Core tests. ##
2303## ----------- ##
2304
2305_ACEOF
2306
2307
2308# Keep a trace of the command line.
2309# Strip out --no-create and --no-recursion so they do not pile up.
2310# Strip out --silent because we don't want to record it for future runs.
2311# Also quote any args containing shell meta-characters.
2312# Make two passes to allow for proper duplicate-argument suppression.
2313ac_configure_args=
2314ac_configure_args0=
2315ac_configure_args1=
2316ac_must_keep_next=false
2317for ac_pass in 1 2
2318do
2319  for ac_arg
2320  do
2321    case $ac_arg in
2322    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2323    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2324    | -silent | --silent | --silen | --sile | --sil)
2325      continue ;;
2326    *\'*)
2327      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2328    esac
2329    case $ac_pass in
2330    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2331    2)
2332      as_fn_append ac_configure_args1 " '$ac_arg'"
2333      if test $ac_must_keep_next = true; then
2334	ac_must_keep_next=false # Got value, back to normal.
2335      else
2336	case $ac_arg in
2337	  *=* | --config-cache | -C | -disable-* | --disable-* \
2338	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2339	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2340	  | -with-* | --with-* | -without-* | --without-* | --x)
2341	    case "$ac_configure_args0 " in
2342	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2343	    esac
2344	    ;;
2345	  -* ) ac_must_keep_next=true ;;
2346	esac
2347      fi
2348      as_fn_append ac_configure_args " '$ac_arg'"
2349      ;;
2350    esac
2351  done
2352done
2353{ ac_configure_args0=; unset ac_configure_args0;}
2354{ ac_configure_args1=; unset ac_configure_args1;}
2355
2356# When interrupted or exit'd, cleanup temporary files, and complete
2357# config.log.  We remove comments because anyway the quotes in there
2358# would cause problems or look ugly.
2359# WARNING: Use '\'' to represent an apostrophe within the trap.
2360# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2361trap 'exit_status=$?
2362  # Save into config.log some information that might help in debugging.
2363  {
2364    echo
2365
2366    cat <<\_ASBOX
2367## ---------------- ##
2368## Cache variables. ##
2369## ---------------- ##
2370_ASBOX
2371    echo
2372    # The following way of writing the cache mishandles newlines in values,
2373(
2374  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2375    eval ac_val=\$$ac_var
2376    case $ac_val in #(
2377    *${as_nl}*)
2378      case $ac_var in #(
2379      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2380$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2381      esac
2382      case $ac_var in #(
2383      _ | IFS | as_nl) ;; #(
2384      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2385      *) { eval $ac_var=; unset $ac_var;} ;;
2386      esac ;;
2387    esac
2388  done
2389  (set) 2>&1 |
2390    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2391    *${as_nl}ac_space=\ *)
2392      sed -n \
2393	"s/'\''/'\''\\\\'\'''\''/g;
2394	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2395      ;; #(
2396    *)
2397      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2398      ;;
2399    esac |
2400    sort
2401)
2402    echo
2403
2404    cat <<\_ASBOX
2405## ----------------- ##
2406## Output variables. ##
2407## ----------------- ##
2408_ASBOX
2409    echo
2410    for ac_var in $ac_subst_vars
2411    do
2412      eval ac_val=\$$ac_var
2413      case $ac_val in
2414      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415      esac
2416      $as_echo "$ac_var='\''$ac_val'\''"
2417    done | sort
2418    echo
2419
2420    if test -n "$ac_subst_files"; then
2421      cat <<\_ASBOX
2422## ------------------- ##
2423## File substitutions. ##
2424## ------------------- ##
2425_ASBOX
2426      echo
2427      for ac_var in $ac_subst_files
2428      do
2429	eval ac_val=\$$ac_var
2430	case $ac_val in
2431	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432	esac
2433	$as_echo "$ac_var='\''$ac_val'\''"
2434      done | sort
2435      echo
2436    fi
2437
2438    if test -s confdefs.h; then
2439      cat <<\_ASBOX
2440## ----------- ##
2441## confdefs.h. ##
2442## ----------- ##
2443_ASBOX
2444      echo
2445      cat confdefs.h
2446      echo
2447    fi
2448    test "$ac_signal" != 0 &&
2449      $as_echo "$as_me: caught signal $ac_signal"
2450    $as_echo "$as_me: exit $exit_status"
2451  } >&5
2452  rm -f core *.core core.conftest.* &&
2453    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2454    exit $exit_status
2455' 0
2456for ac_signal in 1 2 13 15; do
2457  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2458done
2459ac_signal=0
2460
2461# confdefs.h avoids OS command line length limits that DEFS can exceed.
2462rm -f -r conftest* confdefs.h
2463
2464$as_echo "/* confdefs.h */" > confdefs.h
2465
2466# Predefined preprocessor variables.
2467
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_NAME "$PACKAGE_NAME"
2470_ACEOF
2471
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2474_ACEOF
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_VERSION "$PACKAGE_VERSION"
2478_ACEOF
2479
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_STRING "$PACKAGE_STRING"
2482_ACEOF
2483
2484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2486_ACEOF
2487
2488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_URL "$PACKAGE_URL"
2490_ACEOF
2491
2492
2493# Let the site file select an alternate cache file if it wants to.
2494# Prefer an explicitly selected file to automatically selected ones.
2495ac_site_file1=NONE
2496ac_site_file2=NONE
2497if test -n "$CONFIG_SITE"; then
2498  ac_site_file1=$CONFIG_SITE
2499elif test "x$prefix" != xNONE; then
2500  ac_site_file1=$prefix/share/config.site
2501  ac_site_file2=$prefix/etc/config.site
2502else
2503  ac_site_file1=$ac_default_prefix/share/config.site
2504  ac_site_file2=$ac_default_prefix/etc/config.site
2505fi
2506for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2507do
2508  test "x$ac_site_file" = xNONE && continue
2509  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2510    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2511$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2512    sed 's/^/| /' "$ac_site_file" >&5
2513    . "$ac_site_file"
2514  fi
2515done
2516
2517if test -r "$cache_file"; then
2518  # Some versions of bash will fail to source /dev/null (special files
2519  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2520  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2521    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2522$as_echo "$as_me: loading cache $cache_file" >&6;}
2523    case $cache_file in
2524      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2525      *)                      . "./$cache_file";;
2526    esac
2527  fi
2528else
2529  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2530$as_echo "$as_me: creating cache $cache_file" >&6;}
2531  >$cache_file
2532fi
2533
2534as_fn_append ac_header_list " stdlib.h"
2535as_fn_append ac_header_list " unistd.h"
2536as_fn_append ac_header_list " sys/param.h"
2537# Check that the precious variables saved in the cache have kept the same
2538# value.
2539ac_cache_corrupted=false
2540for ac_var in $ac_precious_vars; do
2541  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2542  eval ac_new_set=\$ac_env_${ac_var}_set
2543  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2544  eval ac_new_val=\$ac_env_${ac_var}_value
2545  case $ac_old_set,$ac_new_set in
2546    set,)
2547      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2549      ac_cache_corrupted=: ;;
2550    ,set)
2551      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2553      ac_cache_corrupted=: ;;
2554    ,);;
2555    *)
2556      if test "x$ac_old_val" != "x$ac_new_val"; then
2557	# differences in whitespace do not lead to failure.
2558	ac_old_val_w=`echo x $ac_old_val`
2559	ac_new_val_w=`echo x $ac_new_val`
2560	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2563	  ac_cache_corrupted=:
2564	else
2565	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567	  eval $ac_var=\$ac_old_val
2568	fi
2569	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2570$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2571	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2572$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2573      fi;;
2574  esac
2575  # Pass precious variables to config.status.
2576  if test "$ac_new_set" = set; then
2577    case $ac_new_val in
2578    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2579    *) ac_arg=$ac_var=$ac_new_val ;;
2580    esac
2581    case " $ac_configure_args " in
2582      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2583      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2584    esac
2585  fi
2586done
2587if $ac_cache_corrupted; then
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2593fi
2594## -------------------- ##
2595## Main body of script. ##
2596## -------------------- ##
2597
2598ac_ext=c
2599ac_cpp='$CPP $CPPFLAGS'
2600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603
2604
2605
2606ac_config_headers="$ac_config_headers include/config.h"
2607
2608
2609
2610am__api_version='1.11'
2611
2612ac_aux_dir=
2613for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2614  for ac_t in install-sh install.sh shtool; do
2615    if test -f "$ac_dir/$ac_t"; then
2616      ac_aux_dir=$ac_dir
2617      ac_install_sh="$ac_aux_dir/$ac_t -c"
2618      break 2
2619    fi
2620  done
2621done
2622if test -z "$ac_aux_dir"; then
2623  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2624fi
2625
2626# These three variables are undocumented and unsupported,
2627# and are intended to be withdrawn in a future Autoconf release.
2628# They can cause serious problems if a builder's source tree is in a directory
2629# whose full name contains unusual characters.
2630ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2631ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2632ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2633
2634
2635# Find a good install program.  We prefer a C program (faster),
2636# so one script is as good as another.  But avoid the broken or
2637# incompatible versions:
2638# SysV /etc/install, /usr/sbin/install
2639# SunOS /usr/etc/install
2640# IRIX /sbin/install
2641# AIX /bin/install
2642# AmigaOS /C/install, which installs bootblocks on floppy discs
2643# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2644# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2645# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2646# OS/2's system install, which has a completely different semantic
2647# ./install, which can be erroneously created by make from ./install.sh.
2648# Reject install programs that cannot install multiple files.
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2650$as_echo_n "checking for a BSD-compatible install... " >&6; }
2651if test -z "$INSTALL"; then
2652if test "${ac_cv_path_install+set}" = set; then :
2653  $as_echo_n "(cached) " >&6
2654else
2655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658  IFS=$as_save_IFS
2659  test -z "$as_dir" && as_dir=.
2660    # Account for people who put trailing slashes in PATH elements.
2661case $as_dir/ in #((
2662  ./ | .// | /[cC]/* | \
2663  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2664  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2665  /usr/ucb/* ) ;;
2666  *)
2667    # OSF1 and SCO ODT 3.0 have their own names for install.
2668    # Don't use installbsd from OSF since it installs stuff as root
2669    # by default.
2670    for ac_prog in ginstall scoinst install; do
2671      for ac_exec_ext in '' $ac_executable_extensions; do
2672	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2673	  if test $ac_prog = install &&
2674	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2675	    # AIX install.  It has an incompatible calling convention.
2676	    :
2677	  elif test $ac_prog = install &&
2678	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2679	    # program-specific install script used by HP pwplus--don't use.
2680	    :
2681	  else
2682	    rm -rf conftest.one conftest.two conftest.dir
2683	    echo one > conftest.one
2684	    echo two > conftest.two
2685	    mkdir conftest.dir
2686	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2687	      test -s conftest.one && test -s conftest.two &&
2688	      test -s conftest.dir/conftest.one &&
2689	      test -s conftest.dir/conftest.two
2690	    then
2691	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2692	      break 3
2693	    fi
2694	  fi
2695	fi
2696      done
2697    done
2698    ;;
2699esac
2700
2701  done
2702IFS=$as_save_IFS
2703
2704rm -rf conftest.one conftest.two conftest.dir
2705
2706fi
2707  if test "${ac_cv_path_install+set}" = set; then
2708    INSTALL=$ac_cv_path_install
2709  else
2710    # As a last resort, use the slow shell script.  Don't cache a
2711    # value for INSTALL within a source directory, because that will
2712    # break other packages using the cache if that directory is
2713    # removed, or if the value is a relative name.
2714    INSTALL=$ac_install_sh
2715  fi
2716fi
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2718$as_echo "$INSTALL" >&6; }
2719
2720# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2721# It thinks the first close brace ends the variable substitution.
2722test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2723
2724test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2725
2726test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2727
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2729$as_echo_n "checking whether build environment is sane... " >&6; }
2730# Just in case
2731sleep 1
2732echo timestamp > conftest.file
2733# Reject unsafe characters in $srcdir or the absolute working directory
2734# name.  Accept space and tab only in the latter.
2735am_lf='
2736'
2737case `pwd` in
2738  *[\\\"\#\$\&\'\`$am_lf]*)
2739    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2740esac
2741case $srcdir in
2742  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2743    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2744esac
2745
2746# Do `set' in a subshell so we don't clobber the current shell's
2747# arguments.  Must try -L first in case configure is actually a
2748# symlink; some systems play weird games with the mod time of symlinks
2749# (eg FreeBSD returns the mod time of the symlink's containing
2750# directory).
2751if (
2752   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2753   if test "$*" = "X"; then
2754      # -L didn't work.
2755      set X `ls -t "$srcdir/configure" conftest.file`
2756   fi
2757   rm -f conftest.file
2758   if test "$*" != "X $srcdir/configure conftest.file" \
2759      && test "$*" != "X conftest.file $srcdir/configure"; then
2760
2761      # If neither matched, then we have a broken ls.  This can happen
2762      # if, for instance, CONFIG_SHELL is bash and it inherits a
2763      # broken ls alias from the environment.  This has actually
2764      # happened.  Such a system could not be considered "sane".
2765      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2766alias in your environment" "$LINENO" 5
2767   fi
2768
2769   test "$2" = conftest.file
2770   )
2771then
2772   # Ok.
2773   :
2774else
2775   as_fn_error "newly created file is older than distributed files!
2776Check your system clock" "$LINENO" 5
2777fi
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2779$as_echo "yes" >&6; }
2780test "$program_prefix" != NONE &&
2781  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2782# Use a double $ so make ignores it.
2783test "$program_suffix" != NONE &&
2784  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2785# Double any \ or $.
2786# By default was `s,x,x', remove it if useless.
2787ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2788program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2789
2790# expand $ac_aux_dir to an absolute path
2791am_aux_dir=`cd $ac_aux_dir && pwd`
2792
2793if test x"${MISSING+set}" != xset; then
2794  case $am_aux_dir in
2795  *\ * | *\	*)
2796    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2797  *)
2798    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2799  esac
2800fi
2801# Use eval to expand $SHELL
2802if eval "$MISSING --run true"; then
2803  am_missing_run="$MISSING --run "
2804else
2805  am_missing_run=
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2807$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2808fi
2809
2810if test x"${install_sh}" != xset; then
2811  case $am_aux_dir in
2812  *\ * | *\	*)
2813    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2814  *)
2815    install_sh="\${SHELL} $am_aux_dir/install-sh"
2816  esac
2817fi
2818
2819# Installed binaries are usually stripped using `strip' when the user
2820# run `make install-strip'.  However `strip' might not be the right
2821# tool to use in cross-compilation environments, therefore Automake
2822# will honor the `STRIP' environment variable to overrule this program.
2823if test "$cross_compiling" != no; then
2824  if test -n "$ac_tool_prefix"; then
2825  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2826set dummy ${ac_tool_prefix}strip; ac_word=$2
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828$as_echo_n "checking for $ac_word... " >&6; }
2829if test "${ac_cv_prog_STRIP+set}" = set; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  if test -n "$STRIP"; then
2833  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838  IFS=$as_save_IFS
2839  test -z "$as_dir" && as_dir=.
2840    for ac_exec_ext in '' $ac_executable_extensions; do
2841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844    break 2
2845  fi
2846done
2847  done
2848IFS=$as_save_IFS
2849
2850fi
2851fi
2852STRIP=$ac_cv_prog_STRIP
2853if test -n "$STRIP"; then
2854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2855$as_echo "$STRIP" >&6; }
2856else
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858$as_echo "no" >&6; }
2859fi
2860
2861
2862fi
2863if test -z "$ac_cv_prog_STRIP"; then
2864  ac_ct_STRIP=$STRIP
2865  # Extract the first word of "strip", so it can be a program name with args.
2866set dummy strip; ac_word=$2
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868$as_echo_n "checking for $ac_word... " >&6; }
2869if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2870  $as_echo_n "(cached) " >&6
2871else
2872  if test -n "$ac_ct_STRIP"; then
2873  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878  IFS=$as_save_IFS
2879  test -z "$as_dir" && as_dir=.
2880    for ac_exec_ext in '' $ac_executable_extensions; do
2881  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882    ac_cv_prog_ac_ct_STRIP="strip"
2883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884    break 2
2885  fi
2886done
2887  done
2888IFS=$as_save_IFS
2889
2890fi
2891fi
2892ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2893if test -n "$ac_ct_STRIP"; then
2894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2895$as_echo "$ac_ct_STRIP" >&6; }
2896else
2897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898$as_echo "no" >&6; }
2899fi
2900
2901  if test "x$ac_ct_STRIP" = x; then
2902    STRIP=":"
2903  else
2904    case $cross_compiling:$ac_tool_warned in
2905yes:)
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2908ac_tool_warned=yes ;;
2909esac
2910    STRIP=$ac_ct_STRIP
2911  fi
2912else
2913  STRIP="$ac_cv_prog_STRIP"
2914fi
2915
2916fi
2917INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2918
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2920$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2921if test -z "$MKDIR_P"; then
2922  if test "${ac_cv_path_mkdir+set}" = set; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2927do
2928  IFS=$as_save_IFS
2929  test -z "$as_dir" && as_dir=.
2930    for ac_prog in mkdir gmkdir; do
2931	 for ac_exec_ext in '' $ac_executable_extensions; do
2932	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2933	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2934	     'mkdir (GNU coreutils) '* | \
2935	     'mkdir (coreutils) '* | \
2936	     'mkdir (fileutils) '4.1*)
2937	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2938	       break 3;;
2939	   esac
2940	 done
2941       done
2942  done
2943IFS=$as_save_IFS
2944
2945fi
2946
2947  test -d ./--version && rmdir ./--version
2948  if test "${ac_cv_path_mkdir+set}" = set; then
2949    MKDIR_P="$ac_cv_path_mkdir -p"
2950  else
2951    # As a last resort, use the slow shell script.  Don't cache a
2952    # value for MKDIR_P within a source directory, because that will
2953    # break other packages using the cache if that directory is
2954    # removed, or if the value is a relative name.
2955    MKDIR_P="$ac_install_sh -d"
2956  fi
2957fi
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2959$as_echo "$MKDIR_P" >&6; }
2960
2961mkdir_p="$MKDIR_P"
2962case $mkdir_p in
2963  [\\/$]* | ?:[\\/]*) ;;
2964  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2965esac
2966
2967for ac_prog in gawk mawk nawk awk
2968do
2969  # Extract the first word of "$ac_prog", so it can be a program name with args.
2970set dummy $ac_prog; ac_word=$2
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972$as_echo_n "checking for $ac_word... " >&6; }
2973if test "${ac_cv_prog_AWK+set}" = set; then :
2974  $as_echo_n "(cached) " >&6
2975else
2976  if test -n "$AWK"; then
2977  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2978else
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982  IFS=$as_save_IFS
2983  test -z "$as_dir" && as_dir=.
2984    for ac_exec_ext in '' $ac_executable_extensions; do
2985  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986    ac_cv_prog_AWK="$ac_prog"
2987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988    break 2
2989  fi
2990done
2991  done
2992IFS=$as_save_IFS
2993
2994fi
2995fi
2996AWK=$ac_cv_prog_AWK
2997if test -n "$AWK"; then
2998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2999$as_echo "$AWK" >&6; }
3000else
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002$as_echo "no" >&6; }
3003fi
3004
3005
3006  test -n "$AWK" && break
3007done
3008
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3010$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3011set x ${MAKE-make}
3012ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3013if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3014  $as_echo_n "(cached) " >&6
3015else
3016  cat >conftest.make <<\_ACEOF
3017SHELL = /bin/sh
3018all:
3019	@echo '@@@%%%=$(MAKE)=@@@%%%'
3020_ACEOF
3021# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3022case `${MAKE-make} -f conftest.make 2>/dev/null` in
3023  *@@@%%%=?*=@@@%%%*)
3024    eval ac_cv_prog_make_${ac_make}_set=yes;;
3025  *)
3026    eval ac_cv_prog_make_${ac_make}_set=no;;
3027esac
3028rm -f conftest.make
3029fi
3030if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032$as_echo "yes" >&6; }
3033  SET_MAKE=
3034else
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036$as_echo "no" >&6; }
3037  SET_MAKE="MAKE=${MAKE-make}"
3038fi
3039
3040rm -rf .tst 2>/dev/null
3041mkdir .tst 2>/dev/null
3042if test -d .tst; then
3043  am__leading_dot=.
3044else
3045  am__leading_dot=_
3046fi
3047rmdir .tst 2>/dev/null
3048
3049if test "`cd $srcdir && pwd`" != "`pwd`"; then
3050  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3051  # is not polluted with repeated "-I."
3052  am__isrc=' -I$(srcdir)'
3053  # test to see if srcdir already configured
3054  if test -f $srcdir/config.status; then
3055    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3056  fi
3057fi
3058
3059# test whether we have cygpath
3060if test -z "$CYGPATH_W"; then
3061  if (cygpath --version) >/dev/null 2>/dev/null; then
3062    CYGPATH_W='cygpath -w'
3063  else
3064    CYGPATH_W=echo
3065  fi
3066fi
3067
3068
3069# Define the identity of the package.
3070 PACKAGE='heimdal'
3071 VERSION='1.5.2'
3072
3073
3074cat >>confdefs.h <<_ACEOF
3075#define PACKAGE "$PACKAGE"
3076_ACEOF
3077
3078
3079cat >>confdefs.h <<_ACEOF
3080#define VERSION "$VERSION"
3081_ACEOF
3082
3083# Some tools Automake needs.
3084
3085ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3086
3087
3088AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3089
3090
3091AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3092
3093
3094AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3095
3096
3097MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3098
3099# We need awk for the "check" target.  The system "awk" is bad on
3100# some platforms.
3101# Always define AMTAR for backward compatibility.
3102
3103AMTAR=${AMTAR-"${am_missing_run}tar"}
3104
3105am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3106
3107
3108
3109
3110
3111
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3113$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3114    # Check whether --enable-maintainer-mode was given.
3115if test "${enable_maintainer_mode+set}" = set; then :
3116  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3117else
3118  USE_MAINTAINER_MODE=no
3119fi
3120
3121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3122$as_echo "$USE_MAINTAINER_MODE" >&6; }
3123   if test $USE_MAINTAINER_MODE = yes; then
3124  MAINTAINER_MODE_TRUE=
3125  MAINTAINER_MODE_FALSE='#'
3126else
3127  MAINTAINER_MODE_TRUE='#'
3128  MAINTAINER_MODE_FALSE=
3129fi
3130
3131  MAINT=$MAINTAINER_MODE_TRUE
3132
3133
3134
3135ac_ext=c
3136ac_cpp='$CPP $CPPFLAGS'
3137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140if test -n "$ac_tool_prefix"; then
3141  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3142set dummy ${ac_tool_prefix}gcc; ac_word=$2
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144$as_echo_n "checking for $ac_word... " >&6; }
3145if test "${ac_cv_prog_CC+set}" = set; then :
3146  $as_echo_n "(cached) " >&6
3147else
3148  if test -n "$CC"; then
3149  ac_cv_prog_CC="$CC" # Let the user override the test.
3150else
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154  IFS=$as_save_IFS
3155  test -z "$as_dir" && as_dir=.
3156    for ac_exec_ext in '' $ac_executable_extensions; do
3157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160    break 2
3161  fi
3162done
3163  done
3164IFS=$as_save_IFS
3165
3166fi
3167fi
3168CC=$ac_cv_prog_CC
3169if test -n "$CC"; then
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171$as_echo "$CC" >&6; }
3172else
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
3175fi
3176
3177
3178fi
3179if test -z "$ac_cv_prog_CC"; then
3180  ac_ct_CC=$CC
3181  # Extract the first word of "gcc", so it can be a program name with args.
3182set dummy gcc; ac_word=$2
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
3185if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  if test -n "$ac_ct_CC"; then
3189  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190else
3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192for as_dir in $PATH
3193do
3194  IFS=$as_save_IFS
3195  test -z "$as_dir" && as_dir=.
3196    for ac_exec_ext in '' $ac_executable_extensions; do
3197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198    ac_cv_prog_ac_ct_CC="gcc"
3199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200    break 2
3201  fi
3202done
3203  done
3204IFS=$as_save_IFS
3205
3206fi
3207fi
3208ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209if test -n "$ac_ct_CC"; then
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3211$as_echo "$ac_ct_CC" >&6; }
3212else
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214$as_echo "no" >&6; }
3215fi
3216
3217  if test "x$ac_ct_CC" = x; then
3218    CC=""
3219  else
3220    case $cross_compiling:$ac_tool_warned in
3221yes:)
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224ac_tool_warned=yes ;;
3225esac
3226    CC=$ac_ct_CC
3227  fi
3228else
3229  CC="$ac_cv_prog_CC"
3230fi
3231
3232if test -z "$CC"; then
3233          if test -n "$ac_tool_prefix"; then
3234    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3235set dummy ${ac_tool_prefix}cc; ac_word=$2
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237$as_echo_n "checking for $ac_word... " >&6; }
3238if test "${ac_cv_prog_CC+set}" = set; then :
3239  $as_echo_n "(cached) " >&6
3240else
3241  if test -n "$CC"; then
3242  ac_cv_prog_CC="$CC" # Let the user override the test.
3243else
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247  IFS=$as_save_IFS
3248  test -z "$as_dir" && as_dir=.
3249    for ac_exec_ext in '' $ac_executable_extensions; do
3250  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251    ac_cv_prog_CC="${ac_tool_prefix}cc"
3252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253    break 2
3254  fi
3255done
3256  done
3257IFS=$as_save_IFS
3258
3259fi
3260fi
3261CC=$ac_cv_prog_CC
3262if test -n "$CC"; then
3263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264$as_echo "$CC" >&6; }
3265else
3266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267$as_echo "no" >&6; }
3268fi
3269
3270
3271  fi
3272fi
3273if test -z "$CC"; then
3274  # Extract the first word of "cc", so it can be a program name with args.
3275set dummy cc; ac_word=$2
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277$as_echo_n "checking for $ac_word... " >&6; }
3278if test "${ac_cv_prog_CC+set}" = set; then :
3279  $as_echo_n "(cached) " >&6
3280else
3281  if test -n "$CC"; then
3282  ac_cv_prog_CC="$CC" # Let the user override the test.
3283else
3284  ac_prog_rejected=no
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288  IFS=$as_save_IFS
3289  test -z "$as_dir" && as_dir=.
3290    for ac_exec_ext in '' $ac_executable_extensions; do
3291  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3293       ac_prog_rejected=yes
3294       continue
3295     fi
3296    ac_cv_prog_CC="cc"
3297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298    break 2
3299  fi
3300done
3301  done
3302IFS=$as_save_IFS
3303
3304if test $ac_prog_rejected = yes; then
3305  # We found a bogon in the path, so make sure we never use it.
3306  set dummy $ac_cv_prog_CC
3307  shift
3308  if test $# != 0; then
3309    # We chose a different compiler from the bogus one.
3310    # However, it has the same basename, so the bogon will be chosen
3311    # first if we set CC to just the basename; use the full file name.
3312    shift
3313    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3314  fi
3315fi
3316fi
3317fi
3318CC=$ac_cv_prog_CC
3319if test -n "$CC"; then
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321$as_echo "$CC" >&6; }
3322else
3323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324$as_echo "no" >&6; }
3325fi
3326
3327
3328fi
3329if test -z "$CC"; then
3330  if test -n "$ac_tool_prefix"; then
3331  for ac_prog in cl.exe
3332  do
3333    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3334set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336$as_echo_n "checking for $ac_word... " >&6; }
3337if test "${ac_cv_prog_CC+set}" = set; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  if test -n "$CC"; then
3341  ac_cv_prog_CC="$CC" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346  IFS=$as_save_IFS
3347  test -z "$as_dir" && as_dir=.
3348    for ac_exec_ext in '' $ac_executable_extensions; do
3349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352    break 2
3353  fi
3354done
3355  done
3356IFS=$as_save_IFS
3357
3358fi
3359fi
3360CC=$ac_cv_prog_CC
3361if test -n "$CC"; then
3362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363$as_echo "$CC" >&6; }
3364else
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367fi
3368
3369
3370    test -n "$CC" && break
3371  done
3372fi
3373if test -z "$CC"; then
3374  ac_ct_CC=$CC
3375  for ac_prog in cl.exe
3376do
3377  # Extract the first word of "$ac_prog", so it can be a program name with args.
3378set dummy $ac_prog; ac_word=$2
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380$as_echo_n "checking for $ac_word... " >&6; }
3381if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3382  $as_echo_n "(cached) " >&6
3383else
3384  if test -n "$ac_ct_CC"; then
3385  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3386else
3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390  IFS=$as_save_IFS
3391  test -z "$as_dir" && as_dir=.
3392    for ac_exec_ext in '' $ac_executable_extensions; do
3393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394    ac_cv_prog_ac_ct_CC="$ac_prog"
3395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396    break 2
3397  fi
3398done
3399  done
3400IFS=$as_save_IFS
3401
3402fi
3403fi
3404ac_ct_CC=$ac_cv_prog_ac_ct_CC
3405if test -n "$ac_ct_CC"; then
3406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3407$as_echo "$ac_ct_CC" >&6; }
3408else
3409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410$as_echo "no" >&6; }
3411fi
3412
3413
3414  test -n "$ac_ct_CC" && break
3415done
3416
3417  if test "x$ac_ct_CC" = x; then
3418    CC=""
3419  else
3420    case $cross_compiling:$ac_tool_warned in
3421yes:)
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3424ac_tool_warned=yes ;;
3425esac
3426    CC=$ac_ct_CC
3427  fi
3428fi
3429
3430fi
3431
3432
3433test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435as_fn_error "no acceptable C compiler found in \$PATH
3436See \`config.log' for more details." "$LINENO" 5; }
3437
3438# Provide some information about the compiler.
3439$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3440set X $ac_compile
3441ac_compiler=$2
3442for ac_option in --version -v -V -qversion; do
3443  { { ac_try="$ac_compiler $ac_option >&5"
3444case "(($ac_try" in
3445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446  *) ac_try_echo=$ac_try;;
3447esac
3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449$as_echo "$ac_try_echo"; } >&5
3450  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3451  ac_status=$?
3452  if test -s conftest.err; then
3453    sed '10a\
3454... rest of stderr output deleted ...
3455         10q' conftest.err >conftest.er1
3456    cat conftest.er1 >&5
3457  fi
3458  rm -f conftest.er1 conftest.err
3459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460  test $ac_status = 0; }
3461done
3462
3463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465
3466int
3467main ()
3468{
3469
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474ac_clean_files_save=$ac_clean_files
3475ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3476# Try to create an executable without -o first, disregard a.out.
3477# It will help us diagnose broken compilers, and finding out an intuition
3478# of exeext.
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3480$as_echo_n "checking whether the C compiler works... " >&6; }
3481ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3482
3483# The possible output files:
3484ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3485
3486ac_rmfiles=
3487for ac_file in $ac_files
3488do
3489  case $ac_file in
3490    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3491    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3492  esac
3493done
3494rm -f $ac_rmfiles
3495
3496if { { ac_try="$ac_link_default"
3497case "(($ac_try" in
3498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499  *) ac_try_echo=$ac_try;;
3500esac
3501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502$as_echo "$ac_try_echo"; } >&5
3503  (eval "$ac_link_default") 2>&5
3504  ac_status=$?
3505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506  test $ac_status = 0; }; then :
3507  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3508# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3509# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3510# so that the user can short-circuit this test for compilers unknown to
3511# Autoconf.
3512for ac_file in $ac_files ''
3513do
3514  test -f "$ac_file" || continue
3515  case $ac_file in
3516    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3517	;;
3518    [ab].out )
3519	# We found the default executable, but exeext='' is most
3520	# certainly right.
3521	break;;
3522    *.* )
3523	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3524	then :; else
3525	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526	fi
3527	# We set ac_cv_exeext here because the later test for it is not
3528	# safe: cross compilers may not add the suffix if given an `-o'
3529	# argument, so we may need to know it at that point already.
3530	# Even if this section looks crufty: it has the advantage of
3531	# actually working.
3532	break;;
3533    * )
3534	break;;
3535  esac
3536done
3537test "$ac_cv_exeext" = no && ac_cv_exeext=
3538
3539else
3540  ac_file=''
3541fi
3542if test -z "$ac_file"; then :
3543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544$as_echo "no" >&6; }
3545$as_echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550{ as_fn_set_status 77
3551as_fn_error "C compiler cannot create executables
3552See \`config.log' for more details." "$LINENO" 5; }; }
3553else
3554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3555$as_echo "yes" >&6; }
3556fi
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3558$as_echo_n "checking for C compiler default output file name... " >&6; }
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3560$as_echo "$ac_file" >&6; }
3561ac_exeext=$ac_cv_exeext
3562
3563rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3564ac_clean_files=$ac_clean_files_save
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3566$as_echo_n "checking for suffix of executables... " >&6; }
3567if { { ac_try="$ac_link"
3568case "(($ac_try" in
3569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570  *) ac_try_echo=$ac_try;;
3571esac
3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573$as_echo "$ac_try_echo"; } >&5
3574  (eval "$ac_link") 2>&5
3575  ac_status=$?
3576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577  test $ac_status = 0; }; then :
3578  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3579# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3580# work properly (i.e., refer to `conftest.exe'), while it won't with
3581# `rm'.
3582for ac_file in conftest.exe conftest conftest.*; do
3583  test -f "$ac_file" || continue
3584  case $ac_file in
3585    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3586    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3587	  break;;
3588    * ) break;;
3589  esac
3590done
3591else
3592  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594as_fn_error "cannot compute suffix of executables: cannot compile and link
3595See \`config.log' for more details." "$LINENO" 5; }
3596fi
3597rm -f conftest conftest$ac_cv_exeext
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3599$as_echo "$ac_cv_exeext" >&6; }
3600
3601rm -f conftest.$ac_ext
3602EXEEXT=$ac_cv_exeext
3603ac_exeext=$EXEEXT
3604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606#include <stdio.h>
3607int
3608main ()
3609{
3610FILE *f = fopen ("conftest.out", "w");
3611 return ferror (f) || fclose (f) != 0;
3612
3613  ;
3614  return 0;
3615}
3616_ACEOF
3617ac_clean_files="$ac_clean_files conftest.out"
3618# Check that the compiler produces executables we can run.  If not, either
3619# the compiler is broken, or we cross compile.
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3621$as_echo_n "checking whether we are cross compiling... " >&6; }
3622if test "$cross_compiling" != yes; then
3623  { { ac_try="$ac_link"
3624case "(($ac_try" in
3625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626  *) ac_try_echo=$ac_try;;
3627esac
3628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629$as_echo "$ac_try_echo"; } >&5
3630  (eval "$ac_link") 2>&5
3631  ac_status=$?
3632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633  test $ac_status = 0; }
3634  if { ac_try='./conftest$ac_cv_exeext'
3635  { { case "(($ac_try" in
3636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637  *) ac_try_echo=$ac_try;;
3638esac
3639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640$as_echo "$ac_try_echo"; } >&5
3641  (eval "$ac_try") 2>&5
3642  ac_status=$?
3643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644  test $ac_status = 0; }; }; then
3645    cross_compiling=no
3646  else
3647    if test "$cross_compiling" = maybe; then
3648	cross_compiling=yes
3649    else
3650	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652as_fn_error "cannot run C compiled programs.
3653If you meant to cross compile, use \`--host'.
3654See \`config.log' for more details." "$LINENO" 5; }
3655    fi
3656  fi
3657fi
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3659$as_echo "$cross_compiling" >&6; }
3660
3661rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3662ac_clean_files=$ac_clean_files_save
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3664$as_echo_n "checking for suffix of object files... " >&6; }
3665if test "${ac_cv_objext+set}" = set; then :
3666  $as_echo_n "(cached) " >&6
3667else
3668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669/* end confdefs.h.  */
3670
3671int
3672main ()
3673{
3674
3675  ;
3676  return 0;
3677}
3678_ACEOF
3679rm -f conftest.o conftest.obj
3680if { { ac_try="$ac_compile"
3681case "(($ac_try" in
3682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683  *) ac_try_echo=$ac_try;;
3684esac
3685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686$as_echo "$ac_try_echo"; } >&5
3687  (eval "$ac_compile") 2>&5
3688  ac_status=$?
3689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690  test $ac_status = 0; }; then :
3691  for ac_file in conftest.o conftest.obj conftest.*; do
3692  test -f "$ac_file" || continue;
3693  case $ac_file in
3694    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3695    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3696       break;;
3697  esac
3698done
3699else
3700  $as_echo "$as_me: failed program was:" >&5
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
3703{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705as_fn_error "cannot compute suffix of object files: cannot compile
3706See \`config.log' for more details." "$LINENO" 5; }
3707fi
3708rm -f conftest.$ac_cv_objext conftest.$ac_ext
3709fi
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3711$as_echo "$ac_cv_objext" >&6; }
3712OBJEXT=$ac_cv_objext
3713ac_objext=$OBJEXT
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3715$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3716if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h.  */
3721
3722int
3723main ()
3724{
3725#ifndef __GNUC__
3726       choke me
3727#endif
3728
3729  ;
3730  return 0;
3731}
3732_ACEOF
3733if ac_fn_c_try_compile "$LINENO"; then :
3734  ac_compiler_gnu=yes
3735else
3736  ac_compiler_gnu=no
3737fi
3738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739ac_cv_c_compiler_gnu=$ac_compiler_gnu
3740
3741fi
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3743$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3744if test $ac_compiler_gnu = yes; then
3745  GCC=yes
3746else
3747  GCC=
3748fi
3749ac_test_CFLAGS=${CFLAGS+set}
3750ac_save_CFLAGS=$CFLAGS
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3752$as_echo_n "checking whether $CC accepts -g... " >&6; }
3753if test "${ac_cv_prog_cc_g+set}" = set; then :
3754  $as_echo_n "(cached) " >&6
3755else
3756  ac_save_c_werror_flag=$ac_c_werror_flag
3757   ac_c_werror_flag=yes
3758   ac_cv_prog_cc_g=no
3759   CFLAGS="-g"
3760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761/* end confdefs.h.  */
3762
3763int
3764main ()
3765{
3766
3767  ;
3768  return 0;
3769}
3770_ACEOF
3771if ac_fn_c_try_compile "$LINENO"; then :
3772  ac_cv_prog_cc_g=yes
3773else
3774  CFLAGS=""
3775      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776/* end confdefs.h.  */
3777
3778int
3779main ()
3780{
3781
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786if ac_fn_c_try_compile "$LINENO"; then :
3787
3788else
3789  ac_c_werror_flag=$ac_save_c_werror_flag
3790	 CFLAGS="-g"
3791	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h.  */
3793
3794int
3795main ()
3796{
3797
3798  ;
3799  return 0;
3800}
3801_ACEOF
3802if ac_fn_c_try_compile "$LINENO"; then :
3803  ac_cv_prog_cc_g=yes
3804fi
3805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806fi
3807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808fi
3809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810   ac_c_werror_flag=$ac_save_c_werror_flag
3811fi
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3813$as_echo "$ac_cv_prog_cc_g" >&6; }
3814if test "$ac_test_CFLAGS" = set; then
3815  CFLAGS=$ac_save_CFLAGS
3816elif test $ac_cv_prog_cc_g = yes; then
3817  if test "$GCC" = yes; then
3818    CFLAGS="-g -O2"
3819  else
3820    CFLAGS="-g"
3821  fi
3822else
3823  if test "$GCC" = yes; then
3824    CFLAGS="-O2"
3825  else
3826    CFLAGS=
3827  fi
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3830$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3831if test "${ac_cv_prog_cc_c89+set}" = set; then :
3832  $as_echo_n "(cached) " >&6
3833else
3834  ac_cv_prog_cc_c89=no
3835ac_save_CC=$CC
3836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h.  */
3838#include <stdarg.h>
3839#include <stdio.h>
3840#include <sys/types.h>
3841#include <sys/stat.h>
3842/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3843struct buf { int x; };
3844FILE * (*rcsopen) (struct buf *, struct stat *, int);
3845static char *e (p, i)
3846     char **p;
3847     int i;
3848{
3849  return p[i];
3850}
3851static char *f (char * (*g) (char **, int), char **p, ...)
3852{
3853  char *s;
3854  va_list v;
3855  va_start (v,p);
3856  s = g (p, va_arg (v,int));
3857  va_end (v);
3858  return s;
3859}
3860
3861/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3862   function prototypes and stuff, but not '\xHH' hex character constants.
3863   These don't provoke an error unfortunately, instead are silently treated
3864   as 'x'.  The following induces an error, until -std is added to get
3865   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3866   array size at least.  It's necessary to write '\x00'==0 to get something
3867   that's true only with -std.  */
3868int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3869
3870/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3871   inside strings and character constants.  */
3872#define FOO(x) 'x'
3873int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3874
3875int test (int i, double x);
3876struct s1 {int (*f) (int a);};
3877struct s2 {int (*f) (double a);};
3878int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3879int argc;
3880char **argv;
3881int
3882main ()
3883{
3884return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3885  ;
3886  return 0;
3887}
3888_ACEOF
3889for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3890	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3891do
3892  CC="$ac_save_CC $ac_arg"
3893  if ac_fn_c_try_compile "$LINENO"; then :
3894  ac_cv_prog_cc_c89=$ac_arg
3895fi
3896rm -f core conftest.err conftest.$ac_objext
3897  test "x$ac_cv_prog_cc_c89" != "xno" && break
3898done
3899rm -f conftest.$ac_ext
3900CC=$ac_save_CC
3901
3902fi
3903# AC_CACHE_VAL
3904case "x$ac_cv_prog_cc_c89" in
3905  x)
3906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3907$as_echo "none needed" >&6; } ;;
3908  xno)
3909    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3910$as_echo "unsupported" >&6; } ;;
3911  *)
3912    CC="$CC $ac_cv_prog_cc_c89"
3913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3914$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3915esac
3916if test "x$ac_cv_prog_cc_c89" != xno; then :
3917
3918fi
3919
3920ac_ext=c
3921ac_cpp='$CPP $CPPFLAGS'
3922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925DEPDIR="${am__leading_dot}deps"
3926
3927ac_config_commands="$ac_config_commands depfiles"
3928
3929
3930am_make=${MAKE-make}
3931cat > confinc << 'END'
3932am__doit:
3933	@echo this is the am__doit target
3934.PHONY: am__doit
3935END
3936# If we don't find an include directive, just comment out the code.
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3938$as_echo_n "checking for style of include used by $am_make... " >&6; }
3939am__include="#"
3940am__quote=
3941_am_result=none
3942# First try GNU make style include.
3943echo "include confinc" > confmf
3944# Ignore all kinds of additional output from `make'.
3945case `$am_make -s -f confmf 2> /dev/null` in #(
3946*the\ am__doit\ target*)
3947  am__include=include
3948  am__quote=
3949  _am_result=GNU
3950  ;;
3951esac
3952# Now try BSD make style include.
3953if test "$am__include" = "#"; then
3954   echo '.include "confinc"' > confmf
3955   case `$am_make -s -f confmf 2> /dev/null` in #(
3956   *the\ am__doit\ target*)
3957     am__include=.include
3958     am__quote="\""
3959     _am_result=BSD
3960     ;;
3961   esac
3962fi
3963
3964
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3966$as_echo "$_am_result" >&6; }
3967rm -f confinc confmf
3968
3969# Check whether --enable-dependency-tracking was given.
3970if test "${enable_dependency_tracking+set}" = set; then :
3971  enableval=$enable_dependency_tracking;
3972fi
3973
3974if test "x$enable_dependency_tracking" != xno; then
3975  am_depcomp="$ac_aux_dir/depcomp"
3976  AMDEPBACKSLASH='\'
3977fi
3978 if test "x$enable_dependency_tracking" != xno; then
3979  AMDEP_TRUE=
3980  AMDEP_FALSE='#'
3981else
3982  AMDEP_TRUE='#'
3983  AMDEP_FALSE=
3984fi
3985
3986
3987
3988depcc="$CC"   am_compiler_list=
3989
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3991$as_echo_n "checking dependency style of $depcc... " >&6; }
3992if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3993  $as_echo_n "(cached) " >&6
3994else
3995  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3996  # We make a subdir and do the tests there.  Otherwise we can end up
3997  # making bogus files that we don't know about and never remove.  For
3998  # instance it was reported that on HP-UX the gcc test will end up
3999  # making a dummy file named `D' -- because `-MD' means `put the output
4000  # in D'.
4001  mkdir conftest.dir
4002  # Copy depcomp to subdir because otherwise we won't find it if we're
4003  # using a relative directory.
4004  cp "$am_depcomp" conftest.dir
4005  cd conftest.dir
4006  # We will build objects and dependencies in a subdirectory because
4007  # it helps to detect inapplicable dependency modes.  For instance
4008  # both Tru64's cc and ICC support -MD to output dependencies as a
4009  # side effect of compilation, but ICC will put the dependencies in
4010  # the current directory while Tru64 will put them in the object
4011  # directory.
4012  mkdir sub
4013
4014  am_cv_CC_dependencies_compiler_type=none
4015  if test "$am_compiler_list" = ""; then
4016     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4017  fi
4018  am__universal=false
4019  case " $depcc " in #(
4020     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4021     esac
4022
4023  for depmode in $am_compiler_list; do
4024    # Setup a source with many dependencies, because some compilers
4025    # like to wrap large dependency lists on column 80 (with \), and
4026    # we should not choose a depcomp mode which is confused by this.
4027    #
4028    # We need to recreate these files for each test, as the compiler may
4029    # overwrite some of them when testing with obscure command lines.
4030    # This happens at least with the AIX C compiler.
4031    : > sub/conftest.c
4032    for i in 1 2 3 4 5 6; do
4033      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4034      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4035      # Solaris 8's {/usr,}/bin/sh.
4036      touch sub/conftst$i.h
4037    done
4038    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4039
4040    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4041    # mode.  It turns out that the SunPro C++ compiler does not properly
4042    # handle `-M -o', and we need to detect this.  Also, some Intel
4043    # versions had trouble with output in subdirs
4044    am__obj=sub/conftest.${OBJEXT-o}
4045    am__minus_obj="-o $am__obj"
4046    case $depmode in
4047    gcc)
4048      # This depmode causes a compiler race in universal mode.
4049      test "$am__universal" = false || continue
4050      ;;
4051    nosideeffect)
4052      # after this tag, mechanisms are not by side-effect, so they'll
4053      # only be used when explicitly requested
4054      if test "x$enable_dependency_tracking" = xyes; then
4055	continue
4056      else
4057	break
4058      fi
4059      ;;
4060    msvisualcpp | msvcmsys)
4061      # This compiler won't grok `-c -o', but also, the minuso test has
4062      # not run yet.  These depmodes are late enough in the game, and
4063      # so weak that their functioning should not be impacted.
4064      am__obj=conftest.${OBJEXT-o}
4065      am__minus_obj=
4066      ;;
4067    none) break ;;
4068    esac
4069    if depmode=$depmode \
4070       source=sub/conftest.c object=$am__obj \
4071       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4072       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4073         >/dev/null 2>conftest.err &&
4074       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4075       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4076       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4077       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4078      # icc doesn't choke on unknown options, it will just issue warnings
4079      # or remarks (even with -Werror).  So we grep stderr for any message
4080      # that says an option was ignored or not supported.
4081      # When given -MP, icc 7.0 and 7.1 complain thusly:
4082      #   icc: Command line warning: ignoring option '-M'; no argument required
4083      # The diagnosis changed in icc 8.0:
4084      #   icc: Command line remark: option '-MP' not supported
4085      if (grep 'ignoring option' conftest.err ||
4086          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4087        am_cv_CC_dependencies_compiler_type=$depmode
4088        break
4089      fi
4090    fi
4091  done
4092
4093  cd ..
4094  rm -rf conftest.dir
4095else
4096  am_cv_CC_dependencies_compiler_type=none
4097fi
4098
4099fi
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4101$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4102CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4103
4104 if
4105  test "x$enable_dependency_tracking" != xno \
4106  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4107  am__fastdepCC_TRUE=
4108  am__fastdepCC_FALSE='#'
4109else
4110  am__fastdepCC_TRUE='#'
4111  am__fastdepCC_FALSE=
4112fi
4113
4114
4115if test "x$CC" != xcc; then
4116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4117$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4118else
4119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4120$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4121fi
4122set dummy $CC; ac_cc=`$as_echo "$2" |
4123		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4124if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4125  $as_echo_n "(cached) " >&6
4126else
4127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128/* end confdefs.h.  */
4129
4130int
4131main ()
4132{
4133
4134  ;
4135  return 0;
4136}
4137_ACEOF
4138# Make sure it works both with $CC and with simple cc.
4139# We do the test twice because some compilers refuse to overwrite an
4140# existing .o file with -o, though they will create one.
4141ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4142rm -f conftest2.*
4143if { { case "(($ac_try" in
4144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145  *) ac_try_echo=$ac_try;;
4146esac
4147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148$as_echo "$ac_try_echo"; } >&5
4149  (eval "$ac_try") 2>&5
4150  ac_status=$?
4151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152  test $ac_status = 0; } &&
4153   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155  *) ac_try_echo=$ac_try;;
4156esac
4157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4158$as_echo "$ac_try_echo"; } >&5
4159  (eval "$ac_try") 2>&5
4160  ac_status=$?
4161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162  test $ac_status = 0; };
4163then
4164  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4165  if test "x$CC" != xcc; then
4166    # Test first that cc exists at all.
4167    if { ac_try='cc -c conftest.$ac_ext >&5'
4168  { { case "(($ac_try" in
4169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170  *) ac_try_echo=$ac_try;;
4171esac
4172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173$as_echo "$ac_try_echo"; } >&5
4174  (eval "$ac_try") 2>&5
4175  ac_status=$?
4176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177  test $ac_status = 0; }; }; then
4178      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4179      rm -f conftest2.*
4180      if { { case "(($ac_try" in
4181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182  *) ac_try_echo=$ac_try;;
4183esac
4184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4185$as_echo "$ac_try_echo"; } >&5
4186  (eval "$ac_try") 2>&5
4187  ac_status=$?
4188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189  test $ac_status = 0; } &&
4190	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192  *) ac_try_echo=$ac_try;;
4193esac
4194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195$as_echo "$ac_try_echo"; } >&5
4196  (eval "$ac_try") 2>&5
4197  ac_status=$?
4198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199  test $ac_status = 0; };
4200      then
4201	# cc works too.
4202	:
4203      else
4204	# cc exists but doesn't like -o.
4205	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4206      fi
4207    fi
4208  fi
4209else
4210  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4211fi
4212rm -f core conftest*
4213
4214fi
4215if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4217$as_echo "yes" >&6; }
4218else
4219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220$as_echo "no" >&6; }
4221
4222$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4223
4224fi
4225
4226# FIXME: we rely on the cache variable name because
4227# there is no other way.
4228set dummy $CC
4229am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4230eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4231if test "$am_t" != yes; then
4232   # Losing compiler, so override with the script.
4233   # FIXME: It is wrong to rewrite CC.
4234   # But if we don't then we get into trouble of one sort or another.
4235   # A longer-term fix would be to have automake use am__CC in this case,
4236   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4237   CC="$am_aux_dir/compile $CC"
4238fi
4239
4240
4241ac_ext=c
4242ac_cpp='$CPP $CPPFLAGS'
4243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4247$as_echo_n "checking how to run the C preprocessor... " >&6; }
4248# On Suns, sometimes $CPP names a directory.
4249if test -n "$CPP" && test -d "$CPP"; then
4250  CPP=
4251fi
4252if test -z "$CPP"; then
4253  if test "${ac_cv_prog_CPP+set}" = set; then :
4254  $as_echo_n "(cached) " >&6
4255else
4256      # Double quotes because CPP needs to be expanded
4257    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4258    do
4259      ac_preproc_ok=false
4260for ac_c_preproc_warn_flag in '' yes
4261do
4262  # Use a header file that comes with gcc, so configuring glibc
4263  # with a fresh cross-compiler works.
4264  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4265  # <limits.h> exists even on freestanding compilers.
4266  # On the NeXT, cc -E runs the code through the compiler's parser,
4267  # not just through cpp. "Syntax error" is here to catch this case.
4268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269/* end confdefs.h.  */
4270#ifdef __STDC__
4271# include <limits.h>
4272#else
4273# include <assert.h>
4274#endif
4275		     Syntax error
4276_ACEOF
4277if ac_fn_c_try_cpp "$LINENO"; then :
4278
4279else
4280  # Broken: fails on valid input.
4281continue
4282fi
4283rm -f conftest.err conftest.$ac_ext
4284
4285  # OK, works on sane cases.  Now check whether nonexistent headers
4286  # can be detected and how.
4287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h.  */
4289#include <ac_nonexistent.h>
4290_ACEOF
4291if ac_fn_c_try_cpp "$LINENO"; then :
4292  # Broken: success on invalid input.
4293continue
4294else
4295  # Passes both tests.
4296ac_preproc_ok=:
4297break
4298fi
4299rm -f conftest.err conftest.$ac_ext
4300
4301done
4302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4303rm -f conftest.err conftest.$ac_ext
4304if $ac_preproc_ok; then :
4305  break
4306fi
4307
4308    done
4309    ac_cv_prog_CPP=$CPP
4310
4311fi
4312  CPP=$ac_cv_prog_CPP
4313else
4314  ac_cv_prog_CPP=$CPP
4315fi
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4317$as_echo "$CPP" >&6; }
4318ac_preproc_ok=false
4319for ac_c_preproc_warn_flag in '' yes
4320do
4321  # Use a header file that comes with gcc, so configuring glibc
4322  # with a fresh cross-compiler works.
4323  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324  # <limits.h> exists even on freestanding compilers.
4325  # On the NeXT, cc -E runs the code through the compiler's parser,
4326  # not just through cpp. "Syntax error" is here to catch this case.
4327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328/* end confdefs.h.  */
4329#ifdef __STDC__
4330# include <limits.h>
4331#else
4332# include <assert.h>
4333#endif
4334		     Syntax error
4335_ACEOF
4336if ac_fn_c_try_cpp "$LINENO"; then :
4337
4338else
4339  # Broken: fails on valid input.
4340continue
4341fi
4342rm -f conftest.err conftest.$ac_ext
4343
4344  # OK, works on sane cases.  Now check whether nonexistent headers
4345  # can be detected and how.
4346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347/* end confdefs.h.  */
4348#include <ac_nonexistent.h>
4349_ACEOF
4350if ac_fn_c_try_cpp "$LINENO"; then :
4351  # Broken: success on invalid input.
4352continue
4353else
4354  # Passes both tests.
4355ac_preproc_ok=:
4356break
4357fi
4358rm -f conftest.err conftest.$ac_ext
4359
4360done
4361# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4362rm -f conftest.err conftest.$ac_ext
4363if $ac_preproc_ok; then :
4364
4365else
4366  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4368as_fn_error "C preprocessor \"$CPP\" fails sanity check
4369See \`config.log' for more details." "$LINENO" 5; }
4370fi
4371
4372ac_ext=c
4373ac_cpp='$CPP $CPPFLAGS'
4374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377
4378case `pwd` in
4379  *\ * | *\	*)
4380    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4381$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4382esac
4383
4384
4385
4386macro_version='2.4'
4387macro_revision='1.3293'
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401ltmain="$ac_aux_dir/ltmain.sh"
4402
4403# Make sure we can run config.sub.
4404$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4405  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4406
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4408$as_echo_n "checking build system type... " >&6; }
4409if test "${ac_cv_build+set}" = set; then :
4410  $as_echo_n "(cached) " >&6
4411else
4412  ac_build_alias=$build_alias
4413test "x$ac_build_alias" = x &&
4414  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4415test "x$ac_build_alias" = x &&
4416  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4417ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4418  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4419
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4422$as_echo "$ac_cv_build" >&6; }
4423case $ac_cv_build in
4424*-*-*) ;;
4425*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4426esac
4427build=$ac_cv_build
4428ac_save_IFS=$IFS; IFS='-'
4429set x $ac_cv_build
4430shift
4431build_cpu=$1
4432build_vendor=$2
4433shift; shift
4434# Remember, the first character of IFS is used to create $*,
4435# except with old shells:
4436build_os=$*
4437IFS=$ac_save_IFS
4438case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4439
4440
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4442$as_echo_n "checking host system type... " >&6; }
4443if test "${ac_cv_host+set}" = set; then :
4444  $as_echo_n "(cached) " >&6
4445else
4446  if test "x$host_alias" = x; then
4447  ac_cv_host=$ac_cv_build
4448else
4449  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4450    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4451fi
4452
4453fi
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4455$as_echo "$ac_cv_host" >&6; }
4456case $ac_cv_host in
4457*-*-*) ;;
4458*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4459esac
4460host=$ac_cv_host
4461ac_save_IFS=$IFS; IFS='-'
4462set x $ac_cv_host
4463shift
4464host_cpu=$1
4465host_vendor=$2
4466shift; shift
4467# Remember, the first character of IFS is used to create $*,
4468# except with old shells:
4469host_os=$*
4470IFS=$ac_save_IFS
4471case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4472
4473
4474# Backslashify metacharacters that are still active within
4475# double-quoted strings.
4476sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4477
4478# Same as above, but do not quote variable references.
4479double_quote_subst='s/\(["`\\]\)/\\\1/g'
4480
4481# Sed substitution to delay expansion of an escaped shell variable in a
4482# double_quote_subst'ed string.
4483delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4484
4485# Sed substitution to delay expansion of an escaped single quote.
4486delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4487
4488# Sed substitution to avoid accidental globbing in evaled expressions
4489no_glob_subst='s/\*/\\\*/g'
4490
4491ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4492ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4493ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4494
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4496$as_echo_n "checking how to print strings... " >&6; }
4497# Test print first, because it will be a builtin if present.
4498if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4499   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4500  ECHO='print -r --'
4501elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4502  ECHO='printf %s\n'
4503else
4504  # Use this function as a fallback that always works.
4505  func_fallback_echo ()
4506  {
4507    eval 'cat <<_LTECHO_EOF
4508$1
4509_LTECHO_EOF'
4510  }
4511  ECHO='func_fallback_echo'
4512fi
4513
4514# func_echo_all arg...
4515# Invoke $ECHO with all args, space-separated.
4516func_echo_all ()
4517{
4518    $ECHO ""
4519}
4520
4521case "$ECHO" in
4522  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4523$as_echo "printf" >&6; } ;;
4524  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4525$as_echo "print -r" >&6; } ;;
4526  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4527$as_echo "cat" >&6; } ;;
4528esac
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4544$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4545if test "${ac_cv_path_SED+set}" = set; then :
4546  $as_echo_n "(cached) " >&6
4547else
4548            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4549     for ac_i in 1 2 3 4 5 6 7; do
4550       ac_script="$ac_script$as_nl$ac_script"
4551     done
4552     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4553     { ac_script=; unset ac_script;}
4554     if test -z "$SED"; then
4555  ac_path_SED_found=false
4556  # Loop through the user's path and test for each of PROGNAME-LIST
4557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560  IFS=$as_save_IFS
4561  test -z "$as_dir" && as_dir=.
4562    for ac_prog in sed gsed; do
4563    for ac_exec_ext in '' $ac_executable_extensions; do
4564      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4565      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4566# Check for GNU ac_path_SED and select it if it is found.
4567  # Check for GNU $ac_path_SED
4568case `"$ac_path_SED" --version 2>&1` in
4569*GNU*)
4570  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4571*)
4572  ac_count=0
4573  $as_echo_n 0123456789 >"conftest.in"
4574  while :
4575  do
4576    cat "conftest.in" "conftest.in" >"conftest.tmp"
4577    mv "conftest.tmp" "conftest.in"
4578    cp "conftest.in" "conftest.nl"
4579    $as_echo '' >> "conftest.nl"
4580    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4581    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4582    as_fn_arith $ac_count + 1 && ac_count=$as_val
4583    if test $ac_count -gt ${ac_path_SED_max-0}; then
4584      # Best one so far, save it but keep looking for a better one
4585      ac_cv_path_SED="$ac_path_SED"
4586      ac_path_SED_max=$ac_count
4587    fi
4588    # 10*(2^10) chars as input seems more than enough
4589    test $ac_count -gt 10 && break
4590  done
4591  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4592esac
4593
4594      $ac_path_SED_found && break 3
4595    done
4596  done
4597  done
4598IFS=$as_save_IFS
4599  if test -z "$ac_cv_path_SED"; then
4600    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4601  fi
4602else
4603  ac_cv_path_SED=$SED
4604fi
4605
4606fi
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4608$as_echo "$ac_cv_path_SED" >&6; }
4609 SED="$ac_cv_path_SED"
4610  rm -f conftest.sed
4611
4612test -z "$SED" && SED=sed
4613Xsed="$SED -e 1s/^X//"
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4626$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4627if test "${ac_cv_path_GREP+set}" = set; then :
4628  $as_echo_n "(cached) " >&6
4629else
4630  if test -z "$GREP"; then
4631  ac_path_GREP_found=false
4632  # Loop through the user's path and test for each of PROGNAME-LIST
4633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4635do
4636  IFS=$as_save_IFS
4637  test -z "$as_dir" && as_dir=.
4638    for ac_prog in grep ggrep; do
4639    for ac_exec_ext in '' $ac_executable_extensions; do
4640      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4641      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4642# Check for GNU ac_path_GREP and select it if it is found.
4643  # Check for GNU $ac_path_GREP
4644case `"$ac_path_GREP" --version 2>&1` in
4645*GNU*)
4646  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4647*)
4648  ac_count=0
4649  $as_echo_n 0123456789 >"conftest.in"
4650  while :
4651  do
4652    cat "conftest.in" "conftest.in" >"conftest.tmp"
4653    mv "conftest.tmp" "conftest.in"
4654    cp "conftest.in" "conftest.nl"
4655    $as_echo 'GREP' >> "conftest.nl"
4656    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658    as_fn_arith $ac_count + 1 && ac_count=$as_val
4659    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4660      # Best one so far, save it but keep looking for a better one
4661      ac_cv_path_GREP="$ac_path_GREP"
4662      ac_path_GREP_max=$ac_count
4663    fi
4664    # 10*(2^10) chars as input seems more than enough
4665    test $ac_count -gt 10 && break
4666  done
4667  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4668esac
4669
4670      $ac_path_GREP_found && break 3
4671    done
4672  done
4673  done
4674IFS=$as_save_IFS
4675  if test -z "$ac_cv_path_GREP"; then
4676    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4677  fi
4678else
4679  ac_cv_path_GREP=$GREP
4680fi
4681
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4684$as_echo "$ac_cv_path_GREP" >&6; }
4685 GREP="$ac_cv_path_GREP"
4686
4687
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4689$as_echo_n "checking for egrep... " >&6; }
4690if test "${ac_cv_path_EGREP+set}" = set; then :
4691  $as_echo_n "(cached) " >&6
4692else
4693  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4694   then ac_cv_path_EGREP="$GREP -E"
4695   else
4696     if test -z "$EGREP"; then
4697  ac_path_EGREP_found=false
4698  # Loop through the user's path and test for each of PROGNAME-LIST
4699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4701do
4702  IFS=$as_save_IFS
4703  test -z "$as_dir" && as_dir=.
4704    for ac_prog in egrep; do
4705    for ac_exec_ext in '' $ac_executable_extensions; do
4706      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4707      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4708# Check for GNU ac_path_EGREP and select it if it is found.
4709  # Check for GNU $ac_path_EGREP
4710case `"$ac_path_EGREP" --version 2>&1` in
4711*GNU*)
4712  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4713*)
4714  ac_count=0
4715  $as_echo_n 0123456789 >"conftest.in"
4716  while :
4717  do
4718    cat "conftest.in" "conftest.in" >"conftest.tmp"
4719    mv "conftest.tmp" "conftest.in"
4720    cp "conftest.in" "conftest.nl"
4721    $as_echo 'EGREP' >> "conftest.nl"
4722    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4723    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4724    as_fn_arith $ac_count + 1 && ac_count=$as_val
4725    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4726      # Best one so far, save it but keep looking for a better one
4727      ac_cv_path_EGREP="$ac_path_EGREP"
4728      ac_path_EGREP_max=$ac_count
4729    fi
4730    # 10*(2^10) chars as input seems more than enough
4731    test $ac_count -gt 10 && break
4732  done
4733  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4734esac
4735
4736      $ac_path_EGREP_found && break 3
4737    done
4738  done
4739  done
4740IFS=$as_save_IFS
4741  if test -z "$ac_cv_path_EGREP"; then
4742    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4743  fi
4744else
4745  ac_cv_path_EGREP=$EGREP
4746fi
4747
4748   fi
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4751$as_echo "$ac_cv_path_EGREP" >&6; }
4752 EGREP="$ac_cv_path_EGREP"
4753
4754
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4756$as_echo_n "checking for fgrep... " >&6; }
4757if test "${ac_cv_path_FGREP+set}" = set; then :
4758  $as_echo_n "(cached) " >&6
4759else
4760  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4761   then ac_cv_path_FGREP="$GREP -F"
4762   else
4763     if test -z "$FGREP"; then
4764  ac_path_FGREP_found=false
4765  # Loop through the user's path and test for each of PROGNAME-LIST
4766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4768do
4769  IFS=$as_save_IFS
4770  test -z "$as_dir" && as_dir=.
4771    for ac_prog in fgrep; do
4772    for ac_exec_ext in '' $ac_executable_extensions; do
4773      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4774      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4775# Check for GNU ac_path_FGREP and select it if it is found.
4776  # Check for GNU $ac_path_FGREP
4777case `"$ac_path_FGREP" --version 2>&1` in
4778*GNU*)
4779  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4780*)
4781  ac_count=0
4782  $as_echo_n 0123456789 >"conftest.in"
4783  while :
4784  do
4785    cat "conftest.in" "conftest.in" >"conftest.tmp"
4786    mv "conftest.tmp" "conftest.in"
4787    cp "conftest.in" "conftest.nl"
4788    $as_echo 'FGREP' >> "conftest.nl"
4789    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4790    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4791    as_fn_arith $ac_count + 1 && ac_count=$as_val
4792    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4793      # Best one so far, save it but keep looking for a better one
4794      ac_cv_path_FGREP="$ac_path_FGREP"
4795      ac_path_FGREP_max=$ac_count
4796    fi
4797    # 10*(2^10) chars as input seems more than enough
4798    test $ac_count -gt 10 && break
4799  done
4800  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4801esac
4802
4803      $ac_path_FGREP_found && break 3
4804    done
4805  done
4806  done
4807IFS=$as_save_IFS
4808  if test -z "$ac_cv_path_FGREP"; then
4809    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4810  fi
4811else
4812  ac_cv_path_FGREP=$FGREP
4813fi
4814
4815   fi
4816fi
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4818$as_echo "$ac_cv_path_FGREP" >&6; }
4819 FGREP="$ac_cv_path_FGREP"
4820
4821
4822test -z "$GREP" && GREP=grep
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842# Check whether --with-gnu-ld was given.
4843if test "${with_gnu_ld+set}" = set; then :
4844  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4845else
4846  with_gnu_ld=no
4847fi
4848
4849ac_prog=ld
4850if test "$GCC" = yes; then
4851  # Check if gcc -print-prog-name=ld gives a path.
4852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4853$as_echo_n "checking for ld used by $CC... " >&6; }
4854  case $host in
4855  *-*-mingw*)
4856    # gcc leaves a trailing carriage return which upsets mingw
4857    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4858  *)
4859    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4860  esac
4861  case $ac_prog in
4862    # Accept absolute paths.
4863    [\\/]* | ?:[\\/]*)
4864      re_direlt='/[^/][^/]*/\.\./'
4865      # Canonicalize the pathname of ld
4866      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4867      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4868	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4869      done
4870      test -z "$LD" && LD="$ac_prog"
4871      ;;
4872  "")
4873    # If it fails, then pretend we aren't using GCC.
4874    ac_prog=ld
4875    ;;
4876  *)
4877    # If it is relative, then search for the first ld in PATH.
4878    with_gnu_ld=unknown
4879    ;;
4880  esac
4881elif test "$with_gnu_ld" = yes; then
4882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4883$as_echo_n "checking for GNU ld... " >&6; }
4884else
4885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4886$as_echo_n "checking for non-GNU ld... " >&6; }
4887fi
4888if test "${lt_cv_path_LD+set}" = set; then :
4889  $as_echo_n "(cached) " >&6
4890else
4891  if test -z "$LD"; then
4892  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4893  for ac_dir in $PATH; do
4894    IFS="$lt_save_ifs"
4895    test -z "$ac_dir" && ac_dir=.
4896    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4897      lt_cv_path_LD="$ac_dir/$ac_prog"
4898      # Check to see if the program is GNU ld.  I'd rather use --version,
4899      # but apparently some variants of GNU ld only accept -v.
4900      # Break only if it was the GNU/non-GNU ld that we prefer.
4901      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4902      *GNU* | *'with BFD'*)
4903	test "$with_gnu_ld" != no && break
4904	;;
4905      *)
4906	test "$with_gnu_ld" != yes && break
4907	;;
4908      esac
4909    fi
4910  done
4911  IFS="$lt_save_ifs"
4912else
4913  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4914fi
4915fi
4916
4917LD="$lt_cv_path_LD"
4918if test -n "$LD"; then
4919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4920$as_echo "$LD" >&6; }
4921else
4922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923$as_echo "no" >&6; }
4924fi
4925test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4927$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4928if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4932case `$LD -v 2>&1 </dev/null` in
4933*GNU* | *'with BFD'*)
4934  lt_cv_prog_gnu_ld=yes
4935  ;;
4936*)
4937  lt_cv_prog_gnu_ld=no
4938  ;;
4939esac
4940fi
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4942$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4943with_gnu_ld=$lt_cv_prog_gnu_ld
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4954$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4955if test "${lt_cv_path_NM+set}" = set; then :
4956  $as_echo_n "(cached) " >&6
4957else
4958  if test -n "$NM"; then
4959  # Let the user override the test.
4960  lt_cv_path_NM="$NM"
4961else
4962  lt_nm_to_check="${ac_tool_prefix}nm"
4963  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4964    lt_nm_to_check="$lt_nm_to_check nm"
4965  fi
4966  for lt_tmp_nm in $lt_nm_to_check; do
4967    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4968    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4969      IFS="$lt_save_ifs"
4970      test -z "$ac_dir" && ac_dir=.
4971      tmp_nm="$ac_dir/$lt_tmp_nm"
4972      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4973	# Check to see if the nm accepts a BSD-compat flag.
4974	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4975	#   nm: unknown option "B" ignored
4976	# Tru64's nm complains that /dev/null is an invalid object file
4977	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4978	*/dev/null* | *'Invalid file or object type'*)
4979	  lt_cv_path_NM="$tmp_nm -B"
4980	  break
4981	  ;;
4982	*)
4983	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4984	  */dev/null*)
4985	    lt_cv_path_NM="$tmp_nm -p"
4986	    break
4987	    ;;
4988	  *)
4989	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4990	    continue # so that we can try to find one that supports BSD flags
4991	    ;;
4992	  esac
4993	  ;;
4994	esac
4995      fi
4996    done
4997    IFS="$lt_save_ifs"
4998  done
4999  : ${lt_cv_path_NM=no}
5000fi
5001fi
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5003$as_echo "$lt_cv_path_NM" >&6; }
5004if test "$lt_cv_path_NM" != "no"; then
5005  NM="$lt_cv_path_NM"
5006else
5007  # Didn't find any BSD compatible name lister, look for dumpbin.
5008  if test -n "$DUMPBIN"; then :
5009    # Let the user override the test.
5010  else
5011    if test -n "$ac_tool_prefix"; then
5012  for ac_prog in dumpbin "link -dump"
5013  do
5014    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017$as_echo_n "checking for $ac_word... " >&6; }
5018if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5019  $as_echo_n "(cached) " >&6
5020else
5021  if test -n "$DUMPBIN"; then
5022  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027  IFS=$as_save_IFS
5028  test -z "$as_dir" && as_dir=.
5029    for ac_exec_ext in '' $ac_executable_extensions; do
5030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033    break 2
5034  fi
5035done
5036  done
5037IFS=$as_save_IFS
5038
5039fi
5040fi
5041DUMPBIN=$ac_cv_prog_DUMPBIN
5042if test -n "$DUMPBIN"; then
5043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5044$as_echo "$DUMPBIN" >&6; }
5045else
5046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047$as_echo "no" >&6; }
5048fi
5049
5050
5051    test -n "$DUMPBIN" && break
5052  done
5053fi
5054if test -z "$DUMPBIN"; then
5055  ac_ct_DUMPBIN=$DUMPBIN
5056  for ac_prog in dumpbin "link -dump"
5057do
5058  # Extract the first word of "$ac_prog", so it can be a program name with args.
5059set dummy $ac_prog; ac_word=$2
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061$as_echo_n "checking for $ac_word... " >&6; }
5062if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5063  $as_echo_n "(cached) " >&6
5064else
5065  if test -n "$ac_ct_DUMPBIN"; then
5066  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5067else
5068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071  IFS=$as_save_IFS
5072  test -z "$as_dir" && as_dir=.
5073    for ac_exec_ext in '' $ac_executable_extensions; do
5074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077    break 2
5078  fi
5079done
5080  done
5081IFS=$as_save_IFS
5082
5083fi
5084fi
5085ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5086if test -n "$ac_ct_DUMPBIN"; then
5087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5088$as_echo "$ac_ct_DUMPBIN" >&6; }
5089else
5090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091$as_echo "no" >&6; }
5092fi
5093
5094
5095  test -n "$ac_ct_DUMPBIN" && break
5096done
5097
5098  if test "x$ac_ct_DUMPBIN" = x; then
5099    DUMPBIN=":"
5100  else
5101    case $cross_compiling:$ac_tool_warned in
5102yes:)
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105ac_tool_warned=yes ;;
5106esac
5107    DUMPBIN=$ac_ct_DUMPBIN
5108  fi
5109fi
5110
5111    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5112    *COFF*)
5113      DUMPBIN="$DUMPBIN -symbols"
5114      ;;
5115    *)
5116      DUMPBIN=:
5117      ;;
5118    esac
5119  fi
5120
5121  if test "$DUMPBIN" != ":"; then
5122    NM="$DUMPBIN"
5123  fi
5124fi
5125test -z "$NM" && NM=nm
5126
5127
5128
5129
5130
5131
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5133$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5134if test "${lt_cv_nm_interface+set}" = set; then :
5135  $as_echo_n "(cached) " >&6
5136else
5137  lt_cv_nm_interface="BSD nm"
5138  echo "int some_variable = 0;" > conftest.$ac_ext
5139  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5140  (eval "$ac_compile" 2>conftest.err)
5141  cat conftest.err >&5
5142  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5143  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5144  cat conftest.err >&5
5145  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5146  cat conftest.out >&5
5147  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5148    lt_cv_nm_interface="MS dumpbin"
5149  fi
5150  rm -f conftest*
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5153$as_echo "$lt_cv_nm_interface" >&6; }
5154
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5156$as_echo_n "checking whether ln -s works... " >&6; }
5157LN_S=$as_ln_s
5158if test "$LN_S" = "ln -s"; then
5159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5160$as_echo "yes" >&6; }
5161else
5162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5163$as_echo "no, using $LN_S" >&6; }
5164fi
5165
5166# find the maximum length of command line arguments
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5168$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5169if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5170  $as_echo_n "(cached) " >&6
5171else
5172    i=0
5173  teststring="ABCD"
5174
5175  case $build_os in
5176  msdosdjgpp*)
5177    # On DJGPP, this test can blow up pretty badly due to problems in libc
5178    # (any single argument exceeding 2000 bytes causes a buffer overrun
5179    # during glob expansion).  Even if it were fixed, the result of this
5180    # check would be larger than it should be.
5181    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5182    ;;
5183
5184  gnu*)
5185    # Under GNU Hurd, this test is not required because there is
5186    # no limit to the length of command line arguments.
5187    # Libtool will interpret -1 as no limit whatsoever
5188    lt_cv_sys_max_cmd_len=-1;
5189    ;;
5190
5191  cygwin* | mingw* | cegcc*)
5192    # On Win9x/ME, this test blows up -- it succeeds, but takes
5193    # about 5 minutes as the teststring grows exponentially.
5194    # Worse, since 9x/ME are not pre-emptively multitasking,
5195    # you end up with a "frozen" computer, even though with patience
5196    # the test eventually succeeds (with a max line length of 256k).
5197    # Instead, let's just punt: use the minimum linelength reported by
5198    # all of the supported platforms: 8192 (on NT/2K/XP).
5199    lt_cv_sys_max_cmd_len=8192;
5200    ;;
5201
5202  mint*)
5203    # On MiNT this can take a long time and run out of memory.
5204    lt_cv_sys_max_cmd_len=8192;
5205    ;;
5206
5207  amigaos*)
5208    # On AmigaOS with pdksh, this test takes hours, literally.
5209    # So we just punt and use a minimum line length of 8192.
5210    lt_cv_sys_max_cmd_len=8192;
5211    ;;
5212
5213  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5214    # This has been around since 386BSD, at least.  Likely further.
5215    if test -x /sbin/sysctl; then
5216      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5217    elif test -x /usr/sbin/sysctl; then
5218      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5219    else
5220      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5221    fi
5222    # And add a safety zone
5223    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5224    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5225    ;;
5226
5227  interix*)
5228    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5229    lt_cv_sys_max_cmd_len=196608
5230    ;;
5231
5232  osf*)
5233    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5234    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5235    # nice to cause kernel panics so lets avoid the loop below.
5236    # First set a reasonable default.
5237    lt_cv_sys_max_cmd_len=16384
5238    #
5239    if test -x /sbin/sysconfig; then
5240      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5241        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5242      esac
5243    fi
5244    ;;
5245  sco3.2v5*)
5246    lt_cv_sys_max_cmd_len=102400
5247    ;;
5248  sysv5* | sco5v6* | sysv4.2uw2*)
5249    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5250    if test -n "$kargmax"; then
5251      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5252    else
5253      lt_cv_sys_max_cmd_len=32768
5254    fi
5255    ;;
5256  *)
5257    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5258    if test -n "$lt_cv_sys_max_cmd_len"; then
5259      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5260      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5261    else
5262      # Make teststring a little bigger before we do anything with it.
5263      # a 1K string should be a reasonable start.
5264      for i in 1 2 3 4 5 6 7 8 ; do
5265        teststring=$teststring$teststring
5266      done
5267      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5268      # If test is not a shell built-in, we'll probably end up computing a
5269      # maximum length that is only half of the actual maximum length, but
5270      # we can't tell.
5271      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5272	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5273	      test $i != 17 # 1/2 MB should be enough
5274      do
5275        i=`expr $i + 1`
5276        teststring=$teststring$teststring
5277      done
5278      # Only check the string length outside the loop.
5279      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5280      teststring=
5281      # Add a significant safety factor because C++ compilers can tack on
5282      # massive amounts of additional arguments before passing them to the
5283      # linker.  It appears as though 1/2 is a usable value.
5284      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5285    fi
5286    ;;
5287  esac
5288
5289fi
5290
5291if test -n $lt_cv_sys_max_cmd_len ; then
5292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5293$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5294else
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5296$as_echo "none" >&6; }
5297fi
5298max_cmd_len=$lt_cv_sys_max_cmd_len
5299
5300
5301
5302
5303
5304
5305: ${CP="cp -f"}
5306: ${MV="mv -f"}
5307: ${RM="rm -f"}
5308
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5310$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5311# Try some XSI features
5312xsi_shell=no
5313( _lt_dummy="a/b/c"
5314  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5315      = c,a/b,b/c, \
5316    && eval 'test $(( 1 + 1 )) -eq 2 \
5317    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5318  && xsi_shell=yes
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5320$as_echo "$xsi_shell" >&6; }
5321
5322
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5324$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5325lt_shell_append=no
5326( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5327    >/dev/null 2>&1 \
5328  && lt_shell_append=yes
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5330$as_echo "$lt_shell_append" >&6; }
5331
5332
5333if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5334  lt_unset=unset
5335else
5336  lt_unset=false
5337fi
5338
5339
5340
5341
5342
5343# test EBCDIC or ASCII
5344case `echo X|tr X '\101'` in
5345 A) # ASCII based system
5346    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5347  lt_SP2NL='tr \040 \012'
5348  lt_NL2SP='tr \015\012 \040\040'
5349  ;;
5350 *) # EBCDIC based system
5351  lt_SP2NL='tr \100 \n'
5352  lt_NL2SP='tr \r\n \100\100'
5353  ;;
5354esac
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5365$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5366if test "${lt_cv_to_host_file_cmd+set}" = set; then :
5367  $as_echo_n "(cached) " >&6
5368else
5369  case $host in
5370  *-*-mingw* )
5371    case $build in
5372      *-*-mingw* ) # actually msys
5373        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5374        ;;
5375      *-*-cygwin* )
5376        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5377        ;;
5378      * ) # otherwise, assume *nix
5379        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5380        ;;
5381    esac
5382    ;;
5383  *-*-cygwin* )
5384    case $build in
5385      *-*-mingw* ) # actually msys
5386        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5387        ;;
5388      *-*-cygwin* )
5389        lt_cv_to_host_file_cmd=func_convert_file_noop
5390        ;;
5391      * ) # otherwise, assume *nix
5392        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5393        ;;
5394    esac
5395    ;;
5396  * ) # unhandled hosts (and "normal" native builds)
5397    lt_cv_to_host_file_cmd=func_convert_file_noop
5398    ;;
5399esac
5400
5401fi
5402
5403to_host_file_cmd=$lt_cv_to_host_file_cmd
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5405$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5406
5407
5408
5409
5410
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5412$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5413if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
5414  $as_echo_n "(cached) " >&6
5415else
5416  #assume ordinary cross tools, or native build.
5417lt_cv_to_tool_file_cmd=func_convert_file_noop
5418case $host in
5419  *-*-mingw* )
5420    case $build in
5421      *-*-mingw* ) # actually msys
5422        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5423        ;;
5424    esac
5425    ;;
5426esac
5427
5428fi
5429
5430to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5432$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5433
5434
5435
5436
5437
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5439$as_echo_n "checking for $LD option to reload object files... " >&6; }
5440if test "${lt_cv_ld_reload_flag+set}" = set; then :
5441  $as_echo_n "(cached) " >&6
5442else
5443  lt_cv_ld_reload_flag='-r'
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5446$as_echo "$lt_cv_ld_reload_flag" >&6; }
5447reload_flag=$lt_cv_ld_reload_flag
5448case $reload_flag in
5449"" | " "*) ;;
5450*) reload_flag=" $reload_flag" ;;
5451esac
5452reload_cmds='$LD$reload_flag -o $output$reload_objs'
5453case $host_os in
5454  cygwin* | mingw* | pw32* | cegcc*)
5455    if test "$GCC" != yes; then
5456      reload_cmds=false
5457    fi
5458    ;;
5459  darwin*)
5460    if test "$GCC" = yes; then
5461      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5462    else
5463      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5464    fi
5465    ;;
5466esac
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476if test -n "$ac_tool_prefix"; then
5477  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5478set dummy ${ac_tool_prefix}objdump; ac_word=$2
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480$as_echo_n "checking for $ac_word... " >&6; }
5481if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5482  $as_echo_n "(cached) " >&6
5483else
5484  if test -n "$OBJDUMP"; then
5485  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5486else
5487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488for as_dir in $PATH
5489do
5490  IFS=$as_save_IFS
5491  test -z "$as_dir" && as_dir=.
5492    for ac_exec_ext in '' $ac_executable_extensions; do
5493  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496    break 2
5497  fi
5498done
5499  done
5500IFS=$as_save_IFS
5501
5502fi
5503fi
5504OBJDUMP=$ac_cv_prog_OBJDUMP
5505if test -n "$OBJDUMP"; then
5506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5507$as_echo "$OBJDUMP" >&6; }
5508else
5509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510$as_echo "no" >&6; }
5511fi
5512
5513
5514fi
5515if test -z "$ac_cv_prog_OBJDUMP"; then
5516  ac_ct_OBJDUMP=$OBJDUMP
5517  # Extract the first word of "objdump", so it can be a program name with args.
5518set dummy objdump; ac_word=$2
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520$as_echo_n "checking for $ac_word... " >&6; }
5521if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  if test -n "$ac_ct_OBJDUMP"; then
5525  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5526else
5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH
5529do
5530  IFS=$as_save_IFS
5531  test -z "$as_dir" && as_dir=.
5532    for ac_exec_ext in '' $ac_executable_extensions; do
5533  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536    break 2
5537  fi
5538done
5539  done
5540IFS=$as_save_IFS
5541
5542fi
5543fi
5544ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5545if test -n "$ac_ct_OBJDUMP"; then
5546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5547$as_echo "$ac_ct_OBJDUMP" >&6; }
5548else
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550$as_echo "no" >&6; }
5551fi
5552
5553  if test "x$ac_ct_OBJDUMP" = x; then
5554    OBJDUMP="false"
5555  else
5556    case $cross_compiling:$ac_tool_warned in
5557yes:)
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560ac_tool_warned=yes ;;
5561esac
5562    OBJDUMP=$ac_ct_OBJDUMP
5563  fi
5564else
5565  OBJDUMP="$ac_cv_prog_OBJDUMP"
5566fi
5567
5568test -z "$OBJDUMP" && OBJDUMP=objdump
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5579$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5580if test "${lt_cv_deplibs_check_method+set}" = set; then :
5581  $as_echo_n "(cached) " >&6
5582else
5583  lt_cv_file_magic_cmd='$MAGIC_CMD'
5584lt_cv_file_magic_test_file=
5585lt_cv_deplibs_check_method='unknown'
5586# Need to set the preceding variable on all platforms that support
5587# interlibrary dependencies.
5588# 'none' -- dependencies not supported.
5589# `unknown' -- same as none, but documents that we really don't know.
5590# 'pass_all' -- all dependencies passed with no checks.
5591# 'test_compile' -- check by making test program.
5592# 'file_magic [[regex]]' -- check by looking for files in library path
5593# which responds to the $file_magic_cmd with a given extended regex.
5594# If you have `file' or equivalent on your system and you're not sure
5595# whether `pass_all' will *always* work, you probably want this one.
5596
5597case $host_os in
5598aix[4-9]*)
5599  lt_cv_deplibs_check_method=pass_all
5600  ;;
5601
5602beos*)
5603  lt_cv_deplibs_check_method=pass_all
5604  ;;
5605
5606bsdi[45]*)
5607  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5608  lt_cv_file_magic_cmd='/usr/bin/file -L'
5609  lt_cv_file_magic_test_file=/shlib/libc.so
5610  ;;
5611
5612cygwin*)
5613  # func_win32_libid is a shell function defined in ltmain.sh
5614  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5615  lt_cv_file_magic_cmd='func_win32_libid'
5616  ;;
5617
5618mingw* | pw32*)
5619  # Base MSYS/MinGW do not provide the 'file' command needed by
5620  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5621  # unless we find 'file', for example because we are cross-compiling.
5622  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5623  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5624    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5625    lt_cv_file_magic_cmd='func_win32_libid'
5626  else
5627    # Keep this pattern in sync with the one in func_win32_libid.
5628    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5629    lt_cv_file_magic_cmd='$OBJDUMP -f'
5630  fi
5631  ;;
5632
5633cegcc*)
5634  # use the weaker test based on 'objdump'. See mingw*.
5635  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5636  lt_cv_file_magic_cmd='$OBJDUMP -f'
5637  ;;
5638
5639darwin* | rhapsody*)
5640  lt_cv_deplibs_check_method=pass_all
5641  ;;
5642
5643freebsd* | dragonfly*)
5644  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5645    case $host_cpu in
5646    i*86 )
5647      # Not sure whether the presence of OpenBSD here was a mistake.
5648      # Let's accept both of them until this is cleared up.
5649      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5650      lt_cv_file_magic_cmd=/usr/bin/file
5651      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5652      ;;
5653    esac
5654  else
5655    lt_cv_deplibs_check_method=pass_all
5656  fi
5657  ;;
5658
5659gnu*)
5660  lt_cv_deplibs_check_method=pass_all
5661  ;;
5662
5663haiku*)
5664  lt_cv_deplibs_check_method=pass_all
5665  ;;
5666
5667hpux10.20* | hpux11*)
5668  lt_cv_file_magic_cmd=/usr/bin/file
5669  case $host_cpu in
5670  ia64*)
5671    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5672    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5673    ;;
5674  hppa*64*)
5675    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5676    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5677    ;;
5678  *)
5679    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5680    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5681    ;;
5682  esac
5683  ;;
5684
5685interix[3-9]*)
5686  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5687  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5688  ;;
5689
5690irix5* | irix6* | nonstopux*)
5691  case $LD in
5692  *-32|*"-32 ") libmagic=32-bit;;
5693  *-n32|*"-n32 ") libmagic=N32;;
5694  *-64|*"-64 ") libmagic=64-bit;;
5695  *) libmagic=never-match;;
5696  esac
5697  lt_cv_deplibs_check_method=pass_all
5698  ;;
5699
5700# This must be Linux ELF.
5701linux* | k*bsd*-gnu | kopensolaris*-gnu)
5702  lt_cv_deplibs_check_method=pass_all
5703  ;;
5704
5705netbsd*)
5706  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5707    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5708  else
5709    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5710  fi
5711  ;;
5712
5713newos6*)
5714  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5715  lt_cv_file_magic_cmd=/usr/bin/file
5716  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5717  ;;
5718
5719*nto* | *qnx*)
5720  lt_cv_deplibs_check_method=pass_all
5721  ;;
5722
5723openbsd*)
5724  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5725    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5726  else
5727    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5728  fi
5729  ;;
5730
5731osf3* | osf4* | osf5*)
5732  lt_cv_deplibs_check_method=pass_all
5733  ;;
5734
5735rdos*)
5736  lt_cv_deplibs_check_method=pass_all
5737  ;;
5738
5739solaris*)
5740  lt_cv_deplibs_check_method=pass_all
5741  ;;
5742
5743sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5744  lt_cv_deplibs_check_method=pass_all
5745  ;;
5746
5747sysv4 | sysv4.3*)
5748  case $host_vendor in
5749  motorola)
5750    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]'
5751    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5752    ;;
5753  ncr)
5754    lt_cv_deplibs_check_method=pass_all
5755    ;;
5756  sequent)
5757    lt_cv_file_magic_cmd='/bin/file'
5758    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5759    ;;
5760  sni)
5761    lt_cv_file_magic_cmd='/bin/file'
5762    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5763    lt_cv_file_magic_test_file=/lib/libc.so
5764    ;;
5765  siemens)
5766    lt_cv_deplibs_check_method=pass_all
5767    ;;
5768  pc)
5769    lt_cv_deplibs_check_method=pass_all
5770    ;;
5771  esac
5772  ;;
5773
5774tpf*)
5775  lt_cv_deplibs_check_method=pass_all
5776  ;;
5777esac
5778
5779fi
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5781$as_echo "$lt_cv_deplibs_check_method" >&6; }
5782
5783file_magic_glob=
5784want_nocaseglob=no
5785if test "$build" = "$host"; then
5786  case $host_os in
5787  mingw* | pw32*)
5788    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5789      want_nocaseglob=yes
5790    else
5791      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5792    fi
5793    ;;
5794  esac
5795fi
5796
5797file_magic_cmd=$lt_cv_file_magic_cmd
5798deplibs_check_method=$lt_cv_deplibs_check_method
5799test -z "$deplibs_check_method" && deplibs_check_method=unknown
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822if test -n "$ac_tool_prefix"; then
5823  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5824set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826$as_echo_n "checking for $ac_word... " >&6; }
5827if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5828  $as_echo_n "(cached) " >&6
5829else
5830  if test -n "$DLLTOOL"; then
5831  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836  IFS=$as_save_IFS
5837  test -z "$as_dir" && as_dir=.
5838    for ac_exec_ext in '' $ac_executable_extensions; do
5839  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842    break 2
5843  fi
5844done
5845  done
5846IFS=$as_save_IFS
5847
5848fi
5849fi
5850DLLTOOL=$ac_cv_prog_DLLTOOL
5851if test -n "$DLLTOOL"; then
5852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5853$as_echo "$DLLTOOL" >&6; }
5854else
5855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856$as_echo "no" >&6; }
5857fi
5858
5859
5860fi
5861if test -z "$ac_cv_prog_DLLTOOL"; then
5862  ac_ct_DLLTOOL=$DLLTOOL
5863  # Extract the first word of "dlltool", so it can be a program name with args.
5864set dummy dlltool; ac_word=$2
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866$as_echo_n "checking for $ac_word... " >&6; }
5867if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5868  $as_echo_n "(cached) " >&6
5869else
5870  if test -n "$ac_ct_DLLTOOL"; then
5871  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876  IFS=$as_save_IFS
5877  test -z "$as_dir" && as_dir=.
5878    for ac_exec_ext in '' $ac_executable_extensions; do
5879  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882    break 2
5883  fi
5884done
5885  done
5886IFS=$as_save_IFS
5887
5888fi
5889fi
5890ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5891if test -n "$ac_ct_DLLTOOL"; then
5892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5893$as_echo "$ac_ct_DLLTOOL" >&6; }
5894else
5895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898
5899  if test "x$ac_ct_DLLTOOL" = x; then
5900    DLLTOOL="false"
5901  else
5902    case $cross_compiling:$ac_tool_warned in
5903yes:)
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5906ac_tool_warned=yes ;;
5907esac
5908    DLLTOOL=$ac_ct_DLLTOOL
5909  fi
5910else
5911  DLLTOOL="$ac_cv_prog_DLLTOOL"
5912fi
5913
5914test -z "$DLLTOOL" && DLLTOOL=dlltool
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5926$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5927if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  lt_cv_sharedlib_from_linklib_cmd='unknown'
5931
5932case $host_os in
5933cygwin* | mingw* | pw32* | cegcc*)
5934  # two different shell functions defined in ltmain.sh
5935  # decide which to use based on capabilities of $DLLTOOL
5936  case `$DLLTOOL --help 2>&1` in
5937  *--identify-strict*)
5938    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5939    ;;
5940  *)
5941    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5942    ;;
5943  esac
5944  ;;
5945*)
5946  # fallback: assume linklib IS sharedlib
5947  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5948  ;;
5949esac
5950
5951fi
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5953$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5954sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5955test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5956
5957
5958
5959
5960
5961
5962
5963
5964if test -n "$ac_tool_prefix"; then
5965  for ac_prog in ar
5966  do
5967    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5968set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970$as_echo_n "checking for $ac_word... " >&6; }
5971if test "${ac_cv_prog_AR+set}" = set; then :
5972  $as_echo_n "(cached) " >&6
5973else
5974  if test -n "$AR"; then
5975  ac_cv_prog_AR="$AR" # Let the user override the test.
5976else
5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980  IFS=$as_save_IFS
5981  test -z "$as_dir" && as_dir=.
5982    for ac_exec_ext in '' $ac_executable_extensions; do
5983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986    break 2
5987  fi
5988done
5989  done
5990IFS=$as_save_IFS
5991
5992fi
5993fi
5994AR=$ac_cv_prog_AR
5995if test -n "$AR"; then
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5997$as_echo "$AR" >&6; }
5998else
5999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000$as_echo "no" >&6; }
6001fi
6002
6003
6004    test -n "$AR" && break
6005  done
6006fi
6007if test -z "$AR"; then
6008  ac_ct_AR=$AR
6009  for ac_prog in ar
6010do
6011  # Extract the first word of "$ac_prog", so it can be a program name with args.
6012set dummy $ac_prog; ac_word=$2
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014$as_echo_n "checking for $ac_word... " >&6; }
6015if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6016  $as_echo_n "(cached) " >&6
6017else
6018  if test -n "$ac_ct_AR"; then
6019  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024  IFS=$as_save_IFS
6025  test -z "$as_dir" && as_dir=.
6026    for ac_exec_ext in '' $ac_executable_extensions; do
6027  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028    ac_cv_prog_ac_ct_AR="$ac_prog"
6029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030    break 2
6031  fi
6032done
6033  done
6034IFS=$as_save_IFS
6035
6036fi
6037fi
6038ac_ct_AR=$ac_cv_prog_ac_ct_AR
6039if test -n "$ac_ct_AR"; then
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6041$as_echo "$ac_ct_AR" >&6; }
6042else
6043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044$as_echo "no" >&6; }
6045fi
6046
6047
6048  test -n "$ac_ct_AR" && break
6049done
6050
6051  if test "x$ac_ct_AR" = x; then
6052    AR="false"
6053  else
6054    case $cross_compiling:$ac_tool_warned in
6055yes:)
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6058ac_tool_warned=yes ;;
6059esac
6060    AR=$ac_ct_AR
6061  fi
6062fi
6063
6064: ${AR=ar}
6065: ${AR_FLAGS=cru}
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6078$as_echo_n "checking for archiver @FILE support... " >&6; }
6079if test "${lt_cv_ar_at_file+set}" = set; then :
6080  $as_echo_n "(cached) " >&6
6081else
6082  lt_cv_ar_at_file=no
6083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h.  */
6085
6086int
6087main ()
6088{
6089
6090  ;
6091  return 0;
6092}
6093_ACEOF
6094if ac_fn_c_try_compile "$LINENO"; then :
6095  echo conftest.$ac_objext > conftest.lst
6096      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6097      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6098  (eval $lt_ar_try) 2>&5
6099  ac_status=$?
6100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6101  test $ac_status = 0; }
6102      if test "$ac_status" -eq 0; then
6103	# Ensure the archiver fails upon bogus file names.
6104	rm -f conftest.$ac_objext libconftest.a
6105	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6106  (eval $lt_ar_try) 2>&5
6107  ac_status=$?
6108  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109  test $ac_status = 0; }
6110	if test "$ac_status" -ne 0; then
6111          lt_cv_ar_at_file=@
6112        fi
6113      fi
6114      rm -f conftest.* libconftest.a
6115
6116fi
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118
6119fi
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6121$as_echo "$lt_cv_ar_at_file" >&6; }
6122
6123if test "x$lt_cv_ar_at_file" = xno; then
6124  archiver_list_spec=
6125else
6126  archiver_list_spec=$lt_cv_ar_at_file
6127fi
6128
6129
6130
6131
6132
6133
6134
6135if test -n "$ac_tool_prefix"; then
6136  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6137set dummy ${ac_tool_prefix}strip; ac_word=$2
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139$as_echo_n "checking for $ac_word... " >&6; }
6140if test "${ac_cv_prog_STRIP+set}" = set; then :
6141  $as_echo_n "(cached) " >&6
6142else
6143  if test -n "$STRIP"; then
6144  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6145else
6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149  IFS=$as_save_IFS
6150  test -z "$as_dir" && as_dir=.
6151    for ac_exec_ext in '' $ac_executable_extensions; do
6152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155    break 2
6156  fi
6157done
6158  done
6159IFS=$as_save_IFS
6160
6161fi
6162fi
6163STRIP=$ac_cv_prog_STRIP
6164if test -n "$STRIP"; then
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6166$as_echo "$STRIP" >&6; }
6167else
6168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169$as_echo "no" >&6; }
6170fi
6171
6172
6173fi
6174if test -z "$ac_cv_prog_STRIP"; then
6175  ac_ct_STRIP=$STRIP
6176  # Extract the first word of "strip", so it can be a program name with args.
6177set dummy strip; ac_word=$2
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179$as_echo_n "checking for $ac_word... " >&6; }
6180if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  if test -n "$ac_ct_STRIP"; then
6184  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6185else
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189  IFS=$as_save_IFS
6190  test -z "$as_dir" && as_dir=.
6191    for ac_exec_ext in '' $ac_executable_extensions; do
6192  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193    ac_cv_prog_ac_ct_STRIP="strip"
6194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195    break 2
6196  fi
6197done
6198  done
6199IFS=$as_save_IFS
6200
6201fi
6202fi
6203ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6204if test -n "$ac_ct_STRIP"; then
6205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6206$as_echo "$ac_ct_STRIP" >&6; }
6207else
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209$as_echo "no" >&6; }
6210fi
6211
6212  if test "x$ac_ct_STRIP" = x; then
6213    STRIP=":"
6214  else
6215    case $cross_compiling:$ac_tool_warned in
6216yes:)
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219ac_tool_warned=yes ;;
6220esac
6221    STRIP=$ac_ct_STRIP
6222  fi
6223else
6224  STRIP="$ac_cv_prog_STRIP"
6225fi
6226
6227test -z "$STRIP" && STRIP=:
6228
6229
6230
6231
6232
6233
6234if test -n "$ac_tool_prefix"; then
6235  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6236set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238$as_echo_n "checking for $ac_word... " >&6; }
6239if test "${ac_cv_prog_RANLIB+set}" = set; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  if test -n "$RANLIB"; then
6243  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248  IFS=$as_save_IFS
6249  test -z "$as_dir" && as_dir=.
6250    for ac_exec_ext in '' $ac_executable_extensions; do
6251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254    break 2
6255  fi
6256done
6257  done
6258IFS=$as_save_IFS
6259
6260fi
6261fi
6262RANLIB=$ac_cv_prog_RANLIB
6263if test -n "$RANLIB"; then
6264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6265$as_echo "$RANLIB" >&6; }
6266else
6267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268$as_echo "no" >&6; }
6269fi
6270
6271
6272fi
6273if test -z "$ac_cv_prog_RANLIB"; then
6274  ac_ct_RANLIB=$RANLIB
6275  # Extract the first word of "ranlib", so it can be a program name with args.
6276set dummy ranlib; ac_word=$2
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278$as_echo_n "checking for $ac_word... " >&6; }
6279if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6280  $as_echo_n "(cached) " >&6
6281else
6282  if test -n "$ac_ct_RANLIB"; then
6283  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288  IFS=$as_save_IFS
6289  test -z "$as_dir" && as_dir=.
6290    for ac_exec_ext in '' $ac_executable_extensions; do
6291  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292    ac_cv_prog_ac_ct_RANLIB="ranlib"
6293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294    break 2
6295  fi
6296done
6297  done
6298IFS=$as_save_IFS
6299
6300fi
6301fi
6302ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6303if test -n "$ac_ct_RANLIB"; then
6304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6305$as_echo "$ac_ct_RANLIB" >&6; }
6306else
6307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
6309fi
6310
6311  if test "x$ac_ct_RANLIB" = x; then
6312    RANLIB=":"
6313  else
6314    case $cross_compiling:$ac_tool_warned in
6315yes:)
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318ac_tool_warned=yes ;;
6319esac
6320    RANLIB=$ac_ct_RANLIB
6321  fi
6322else
6323  RANLIB="$ac_cv_prog_RANLIB"
6324fi
6325
6326test -z "$RANLIB" && RANLIB=:
6327
6328
6329
6330
6331
6332
6333# Determine commands to create old-style static archives.
6334old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6335old_postinstall_cmds='chmod 644 $oldlib'
6336old_postuninstall_cmds=
6337
6338if test -n "$RANLIB"; then
6339  case $host_os in
6340  openbsd*)
6341    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6342    ;;
6343  *)
6344    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6345    ;;
6346  esac
6347  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6348fi
6349
6350case $host_os in
6351  darwin*)
6352    lock_old_archive_extraction=yes ;;
6353  *)
6354    lock_old_archive_extraction=no ;;
6355esac
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395# If no C compiler was specified, use CC.
6396LTCC=${LTCC-"$CC"}
6397
6398# If no C compiler flags were specified, use CFLAGS.
6399LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6400
6401# Allow CC to be a program name with arguments.
6402compiler=$CC
6403
6404
6405# Check for command to grab the raw symbol name followed by C symbol from nm.
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6407$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6408if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6409  $as_echo_n "(cached) " >&6
6410else
6411
6412# These are sane defaults that work on at least a few old systems.
6413# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6414
6415# Character class describing NM global symbol codes.
6416symcode='[BCDEGRST]'
6417
6418# Regexp to match symbols that can be accessed directly from C.
6419sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6420
6421# Define system-specific variables.
6422case $host_os in
6423aix*)
6424  symcode='[BCDT]'
6425  ;;
6426cygwin* | mingw* | pw32* | cegcc*)
6427  symcode='[ABCDGISTW]'
6428  ;;
6429hpux*)
6430  if test "$host_cpu" = ia64; then
6431    symcode='[ABCDEGRST]'
6432  fi
6433  ;;
6434irix* | nonstopux*)
6435  symcode='[BCDEGRST]'
6436  ;;
6437osf*)
6438  symcode='[BCDEGQRST]'
6439  ;;
6440solaris*)
6441  symcode='[BDRT]'
6442  ;;
6443sco3.2v5*)
6444  symcode='[DT]'
6445  ;;
6446sysv4.2uw2*)
6447  symcode='[DT]'
6448  ;;
6449sysv5* | sco5v6* | unixware* | OpenUNIX*)
6450  symcode='[ABDT]'
6451  ;;
6452sysv4)
6453  symcode='[DFNSTU]'
6454  ;;
6455esac
6456
6457# If we're using GNU nm, then use its standard symbol codes.
6458case `$NM -V 2>&1` in
6459*GNU* | *'with BFD'*)
6460  symcode='[ABCDGIRSTW]' ;;
6461esac
6462
6463# Transform an extracted symbol line into a proper C declaration.
6464# Some systems (esp. on ia64) link data and code symbols differently,
6465# so use this general approach.
6466lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6467
6468# Transform an extracted symbol line into symbol name and symbol address
6469lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6470lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6471
6472# Handle CRLF in mingw tool chain
6473opt_cr=
6474case $build_os in
6475mingw*)
6476  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6477  ;;
6478esac
6479
6480# Try without a prefix underscore, then with it.
6481for ac_symprfx in "" "_"; do
6482
6483  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6484  symxfrm="\\1 $ac_symprfx\\2 \\2"
6485
6486  # Write the raw and C identifiers.
6487  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6488    # Fake it for dumpbin and say T for any non-static function
6489    # and D for any global variable.
6490    # Also find C++ and __fastcall symbols from MSVC++,
6491    # which start with @ or ?.
6492    lt_cv_sys_global_symbol_pipe="$AWK '"\
6493"     {last_section=section; section=\$ 3};"\
6494"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6495"     \$ 0!~/External *\|/{next};"\
6496"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6497"     {if(hide[section]) next};"\
6498"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6499"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6500"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6501"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6502"     ' prfx=^$ac_symprfx"
6503  else
6504    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6505  fi
6506  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6507
6508  # Check to see that the pipe works correctly.
6509  pipe_works=no
6510
6511  rm -f conftest*
6512  cat > conftest.$ac_ext <<_LT_EOF
6513#ifdef __cplusplus
6514extern "C" {
6515#endif
6516char nm_test_var;
6517void nm_test_func(void);
6518void nm_test_func(void){}
6519#ifdef __cplusplus
6520}
6521#endif
6522int main(){nm_test_var='a';nm_test_func();return(0);}
6523_LT_EOF
6524
6525  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6526  (eval $ac_compile) 2>&5
6527  ac_status=$?
6528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6529  test $ac_status = 0; }; then
6530    # Now try to grab the symbols.
6531    nlist=conftest.nm
6532    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6533  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6534  ac_status=$?
6535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536  test $ac_status = 0; } && test -s "$nlist"; then
6537      # Try sorting and uniquifying the output.
6538      if sort "$nlist" | uniq > "$nlist"T; then
6539	mv -f "$nlist"T "$nlist"
6540      else
6541	rm -f "$nlist"T
6542      fi
6543
6544      # Make sure that we snagged all the symbols we need.
6545      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6546	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6547	  cat <<_LT_EOF > conftest.$ac_ext
6548/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6549#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6550/* DATA imports from DLLs on WIN32 con't be const, because runtime
6551   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6552# define LT_DLSYM_CONST
6553#elif defined(__osf__)
6554/* This system does not cope well with relocations in const data.  */
6555# define LT_DLSYM_CONST
6556#else
6557# define LT_DLSYM_CONST const
6558#endif
6559
6560#ifdef __cplusplus
6561extern "C" {
6562#endif
6563
6564_LT_EOF
6565	  # Now generate the symbol file.
6566	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6567
6568	  cat <<_LT_EOF >> conftest.$ac_ext
6569
6570/* The mapping between symbol names and symbols.  */
6571LT_DLSYM_CONST struct {
6572  const char *name;
6573  void       *address;
6574}
6575lt__PROGRAM__LTX_preloaded_symbols[] =
6576{
6577  { "@PROGRAM@", (void *) 0 },
6578_LT_EOF
6579	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6580	  cat <<\_LT_EOF >> conftest.$ac_ext
6581  {0, (void *) 0}
6582};
6583
6584/* This works around a problem in FreeBSD linker */
6585#ifdef FREEBSD_WORKAROUND
6586static const void *lt_preloaded_setup() {
6587  return lt__PROGRAM__LTX_preloaded_symbols;
6588}
6589#endif
6590
6591#ifdef __cplusplus
6592}
6593#endif
6594_LT_EOF
6595	  # Now try linking the two files.
6596	  mv conftest.$ac_objext conftstm.$ac_objext
6597	  lt_globsym_save_LIBS=$LIBS
6598	  lt_globsym_save_CFLAGS=$CFLAGS
6599	  LIBS="conftstm.$ac_objext"
6600	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6601	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6602  (eval $ac_link) 2>&5
6603  ac_status=$?
6604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6605  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6606	    pipe_works=yes
6607	  fi
6608	  LIBS=$lt_globsym_save_LIBS
6609	  CFLAGS=$lt_globsym_save_CFLAGS
6610	else
6611	  echo "cannot find nm_test_func in $nlist" >&5
6612	fi
6613      else
6614	echo "cannot find nm_test_var in $nlist" >&5
6615      fi
6616    else
6617      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6618    fi
6619  else
6620    echo "$progname: failed program was:" >&5
6621    cat conftest.$ac_ext >&5
6622  fi
6623  rm -rf conftest* conftst*
6624
6625  # Do not use the global_symbol_pipe unless it works.
6626  if test "$pipe_works" = yes; then
6627    break
6628  else
6629    lt_cv_sys_global_symbol_pipe=
6630  fi
6631done
6632
6633fi
6634
6635if test -z "$lt_cv_sys_global_symbol_pipe"; then
6636  lt_cv_sys_global_symbol_to_cdecl=
6637fi
6638if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6640$as_echo "failed" >&6; }
6641else
6642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6643$as_echo "ok" >&6; }
6644fi
6645
6646# Response file support.
6647if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6648  nm_file_list_spec='@'
6649elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6650  nm_file_list_spec='@'
6651fi
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6680$as_echo_n "checking for sysroot... " >&6; }
6681
6682# Check whether --with-sysroot was given.
6683if test "${with_sysroot+set}" = set; then :
6684  withval=$with_sysroot;
6685else
6686  with_sysroot=no
6687fi
6688
6689
6690lt_sysroot=
6691case ${with_sysroot} in #(
6692 yes)
6693   if test "$GCC" = yes; then
6694     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6695   fi
6696   ;; #(
6697 /*)
6698   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6699   ;; #(
6700 no|'')
6701   ;; #(
6702 *)
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6704$as_echo "${with_sysroot}" >&6; }
6705   as_fn_error "The sysroot must be an absolute path." "$LINENO" 5
6706   ;;
6707esac
6708
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6710$as_echo "${lt_sysroot:-no}" >&6; }
6711
6712
6713
6714
6715
6716# Check whether --enable-libtool-lock was given.
6717if test "${enable_libtool_lock+set}" = set; then :
6718  enableval=$enable_libtool_lock;
6719fi
6720
6721test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6722
6723# Some flags need to be propagated to the compiler or linker for good
6724# libtool support.
6725case $host in
6726ia64-*-hpux*)
6727  # Find out which ABI we are using.
6728  echo 'int i;' > conftest.$ac_ext
6729  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730  (eval $ac_compile) 2>&5
6731  ac_status=$?
6732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733  test $ac_status = 0; }; then
6734    case `/usr/bin/file conftest.$ac_objext` in
6735      *ELF-32*)
6736	HPUX_IA64_MODE="32"
6737	;;
6738      *ELF-64*)
6739	HPUX_IA64_MODE="64"
6740	;;
6741    esac
6742  fi
6743  rm -rf conftest*
6744  ;;
6745*-*-irix6*)
6746  # Find out which ABI we are using.
6747  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6748  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6749  (eval $ac_compile) 2>&5
6750  ac_status=$?
6751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6752  test $ac_status = 0; }; then
6753    if test "$lt_cv_prog_gnu_ld" = yes; then
6754      case `/usr/bin/file conftest.$ac_objext` in
6755	*32-bit*)
6756	  LD="${LD-ld} -melf32bsmip"
6757	  ;;
6758	*N32*)
6759	  LD="${LD-ld} -melf32bmipn32"
6760	  ;;
6761	*64-bit*)
6762	  LD="${LD-ld} -melf64bmip"
6763	;;
6764      esac
6765    else
6766      case `/usr/bin/file conftest.$ac_objext` in
6767	*32-bit*)
6768	  LD="${LD-ld} -32"
6769	  ;;
6770	*N32*)
6771	  LD="${LD-ld} -n32"
6772	  ;;
6773	*64-bit*)
6774	  LD="${LD-ld} -64"
6775	  ;;
6776      esac
6777    fi
6778  fi
6779  rm -rf conftest*
6780  ;;
6781
6782x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6783s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6784  # Find out which ABI we are using.
6785  echo 'int i;' > conftest.$ac_ext
6786  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6787  (eval $ac_compile) 2>&5
6788  ac_status=$?
6789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790  test $ac_status = 0; }; then
6791    case `/usr/bin/file conftest.o` in
6792      *32-bit*)
6793	case $host in
6794	  x86_64-*kfreebsd*-gnu)
6795	    LD="${LD-ld} -m elf_i386_fbsd"
6796	    ;;
6797	  x86_64-*linux*)
6798	    LD="${LD-ld} -m elf_i386"
6799	    ;;
6800	  ppc64-*linux*|powerpc64-*linux*)
6801	    LD="${LD-ld} -m elf32ppclinux"
6802	    ;;
6803	  s390x-*linux*)
6804	    LD="${LD-ld} -m elf_s390"
6805	    ;;
6806	  sparc64-*linux*)
6807	    LD="${LD-ld} -m elf32_sparc"
6808	    ;;
6809	esac
6810	;;
6811      *64-bit*)
6812	case $host in
6813	  x86_64-*kfreebsd*-gnu)
6814	    LD="${LD-ld} -m elf_x86_64_fbsd"
6815	    ;;
6816	  x86_64-*linux*)
6817	    LD="${LD-ld} -m elf_x86_64"
6818	    ;;
6819	  ppc*-*linux*|powerpc*-*linux*)
6820	    LD="${LD-ld} -m elf64ppc"
6821	    ;;
6822	  s390*-*linux*|s390*-*tpf*)
6823	    LD="${LD-ld} -m elf64_s390"
6824	    ;;
6825	  sparc*-*linux*)
6826	    LD="${LD-ld} -m elf64_sparc"
6827	    ;;
6828	esac
6829	;;
6830    esac
6831  fi
6832  rm -rf conftest*
6833  ;;
6834
6835*-*-sco3.2v5*)
6836  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6837  SAVE_CFLAGS="$CFLAGS"
6838  CFLAGS="$CFLAGS -belf"
6839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6840$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6841if test "${lt_cv_cc_needs_belf+set}" = set; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  ac_ext=c
6845ac_cpp='$CPP $CPPFLAGS'
6846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848ac_compiler_gnu=$ac_cv_c_compiler_gnu
6849
6850     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h.  */
6852
6853int
6854main ()
6855{
6856
6857  ;
6858  return 0;
6859}
6860_ACEOF
6861if ac_fn_c_try_link "$LINENO"; then :
6862  lt_cv_cc_needs_belf=yes
6863else
6864  lt_cv_cc_needs_belf=no
6865fi
6866rm -f core conftest.err conftest.$ac_objext \
6867    conftest$ac_exeext conftest.$ac_ext
6868     ac_ext=c
6869ac_cpp='$CPP $CPPFLAGS'
6870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6872ac_compiler_gnu=$ac_cv_c_compiler_gnu
6873
6874fi
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6876$as_echo "$lt_cv_cc_needs_belf" >&6; }
6877  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6878    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6879    CFLAGS="$SAVE_CFLAGS"
6880  fi
6881  ;;
6882sparc*-*solaris*)
6883  # Find out which ABI we are using.
6884  echo 'int i;' > conftest.$ac_ext
6885  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6886  (eval $ac_compile) 2>&5
6887  ac_status=$?
6888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889  test $ac_status = 0; }; then
6890    case `/usr/bin/file conftest.o` in
6891    *64-bit*)
6892      case $lt_cv_prog_gnu_ld in
6893      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6894      *)
6895	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6896	  LD="${LD-ld} -64"
6897	fi
6898	;;
6899      esac
6900      ;;
6901    esac
6902  fi
6903  rm -rf conftest*
6904  ;;
6905esac
6906
6907need_locks="$enable_libtool_lock"
6908
6909if test -n "$ac_tool_prefix"; then
6910  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6911set dummy ${ac_tool_prefix}mt; ac_word=$2
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
6914if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
6915  $as_echo_n "(cached) " >&6
6916else
6917  if test -n "$MANIFEST_TOOL"; then
6918  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923  IFS=$as_save_IFS
6924  test -z "$as_dir" && as_dir=.
6925    for ac_exec_ext in '' $ac_executable_extensions; do
6926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929    break 2
6930  fi
6931done
6932  done
6933IFS=$as_save_IFS
6934
6935fi
6936fi
6937MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6938if test -n "$MANIFEST_TOOL"; then
6939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6940$as_echo "$MANIFEST_TOOL" >&6; }
6941else
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
6944fi
6945
6946
6947fi
6948if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6949  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6950  # Extract the first word of "mt", so it can be a program name with args.
6951set dummy mt; ac_word=$2
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953$as_echo_n "checking for $ac_word... " >&6; }
6954if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
6955  $as_echo_n "(cached) " >&6
6956else
6957  if test -n "$ac_ct_MANIFEST_TOOL"; then
6958  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6959else
6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963  IFS=$as_save_IFS
6964  test -z "$as_dir" && as_dir=.
6965    for ac_exec_ext in '' $ac_executable_extensions; do
6966  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969    break 2
6970  fi
6971done
6972  done
6973IFS=$as_save_IFS
6974
6975fi
6976fi
6977ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6978if test -n "$ac_ct_MANIFEST_TOOL"; then
6979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6980$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6981else
6982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983$as_echo "no" >&6; }
6984fi
6985
6986  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6987    MANIFEST_TOOL=":"
6988  else
6989    case $cross_compiling:$ac_tool_warned in
6990yes:)
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993ac_tool_warned=yes ;;
6994esac
6995    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6996  fi
6997else
6998  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6999fi
7000
7001test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7003$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7004if test "${lt_cv_path_mainfest_tool+set}" = set; then :
7005  $as_echo_n "(cached) " >&6
7006else
7007  lt_cv_path_mainfest_tool=no
7008  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7009  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7010  cat conftest.err >&5
7011  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7012    lt_cv_path_mainfest_tool=yes
7013  fi
7014  rm -f conftest*
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7017$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7018if test "x$lt_cv_path_mainfest_tool" != xyes; then
7019  MANIFEST_TOOL=:
7020fi
7021
7022
7023
7024
7025
7026
7027  case $host_os in
7028    rhapsody* | darwin*)
7029    if test -n "$ac_tool_prefix"; then
7030  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7031set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
7034if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7035  $as_echo_n "(cached) " >&6
7036else
7037  if test -n "$DSYMUTIL"; then
7038  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043  IFS=$as_save_IFS
7044  test -z "$as_dir" && as_dir=.
7045    for ac_exec_ext in '' $ac_executable_extensions; do
7046  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049    break 2
7050  fi
7051done
7052  done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
7057DSYMUTIL=$ac_cv_prog_DSYMUTIL
7058if test -n "$DSYMUTIL"; then
7059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7060$as_echo "$DSYMUTIL" >&6; }
7061else
7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
7064fi
7065
7066
7067fi
7068if test -z "$ac_cv_prog_DSYMUTIL"; then
7069  ac_ct_DSYMUTIL=$DSYMUTIL
7070  # Extract the first word of "dsymutil", so it can be a program name with args.
7071set dummy dsymutil; ac_word=$2
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073$as_echo_n "checking for $ac_word... " >&6; }
7074if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7075  $as_echo_n "(cached) " >&6
7076else
7077  if test -n "$ac_ct_DSYMUTIL"; then
7078  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7079else
7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083  IFS=$as_save_IFS
7084  test -z "$as_dir" && as_dir=.
7085    for ac_exec_ext in '' $ac_executable_extensions; do
7086  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7087    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089    break 2
7090  fi
7091done
7092  done
7093IFS=$as_save_IFS
7094
7095fi
7096fi
7097ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7098if test -n "$ac_ct_DSYMUTIL"; then
7099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7100$as_echo "$ac_ct_DSYMUTIL" >&6; }
7101else
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103$as_echo "no" >&6; }
7104fi
7105
7106  if test "x$ac_ct_DSYMUTIL" = x; then
7107    DSYMUTIL=":"
7108  else
7109    case $cross_compiling:$ac_tool_warned in
7110yes:)
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113ac_tool_warned=yes ;;
7114esac
7115    DSYMUTIL=$ac_ct_DSYMUTIL
7116  fi
7117else
7118  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7119fi
7120
7121    if test -n "$ac_tool_prefix"; then
7122  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7123set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125$as_echo_n "checking for $ac_word... " >&6; }
7126if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  if test -n "$NMEDIT"; then
7130  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135  IFS=$as_save_IFS
7136  test -z "$as_dir" && as_dir=.
7137    for ac_exec_ext in '' $ac_executable_extensions; do
7138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141    break 2
7142  fi
7143done
7144  done
7145IFS=$as_save_IFS
7146
7147fi
7148fi
7149NMEDIT=$ac_cv_prog_NMEDIT
7150if test -n "$NMEDIT"; then
7151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7152$as_echo "$NMEDIT" >&6; }
7153else
7154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155$as_echo "no" >&6; }
7156fi
7157
7158
7159fi
7160if test -z "$ac_cv_prog_NMEDIT"; then
7161  ac_ct_NMEDIT=$NMEDIT
7162  # Extract the first word of "nmedit", so it can be a program name with args.
7163set dummy nmedit; ac_word=$2
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165$as_echo_n "checking for $ac_word... " >&6; }
7166if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7167  $as_echo_n "(cached) " >&6
7168else
7169  if test -n "$ac_ct_NMEDIT"; then
7170  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7171else
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175  IFS=$as_save_IFS
7176  test -z "$as_dir" && as_dir=.
7177    for ac_exec_ext in '' $ac_executable_extensions; do
7178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181    break 2
7182  fi
7183done
7184  done
7185IFS=$as_save_IFS
7186
7187fi
7188fi
7189ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7190if test -n "$ac_ct_NMEDIT"; then
7191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7192$as_echo "$ac_ct_NMEDIT" >&6; }
7193else
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195$as_echo "no" >&6; }
7196fi
7197
7198  if test "x$ac_ct_NMEDIT" = x; then
7199    NMEDIT=":"
7200  else
7201    case $cross_compiling:$ac_tool_warned in
7202yes:)
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205ac_tool_warned=yes ;;
7206esac
7207    NMEDIT=$ac_ct_NMEDIT
7208  fi
7209else
7210  NMEDIT="$ac_cv_prog_NMEDIT"
7211fi
7212
7213    if test -n "$ac_tool_prefix"; then
7214  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7215set dummy ${ac_tool_prefix}lipo; ac_word=$2
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217$as_echo_n "checking for $ac_word... " >&6; }
7218if test "${ac_cv_prog_LIPO+set}" = set; then :
7219  $as_echo_n "(cached) " >&6
7220else
7221  if test -n "$LIPO"; then
7222  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7223else
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227  IFS=$as_save_IFS
7228  test -z "$as_dir" && as_dir=.
7229    for ac_exec_ext in '' $ac_executable_extensions; do
7230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7231    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233    break 2
7234  fi
7235done
7236  done
7237IFS=$as_save_IFS
7238
7239fi
7240fi
7241LIPO=$ac_cv_prog_LIPO
7242if test -n "$LIPO"; then
7243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7244$as_echo "$LIPO" >&6; }
7245else
7246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247$as_echo "no" >&6; }
7248fi
7249
7250
7251fi
7252if test -z "$ac_cv_prog_LIPO"; then
7253  ac_ct_LIPO=$LIPO
7254  # Extract the first word of "lipo", so it can be a program name with args.
7255set dummy lipo; ac_word=$2
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257$as_echo_n "checking for $ac_word... " >&6; }
7258if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7259  $as_echo_n "(cached) " >&6
7260else
7261  if test -n "$ac_ct_LIPO"; then
7262  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7263else
7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267  IFS=$as_save_IFS
7268  test -z "$as_dir" && as_dir=.
7269    for ac_exec_ext in '' $ac_executable_extensions; do
7270  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7271    ac_cv_prog_ac_ct_LIPO="lipo"
7272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273    break 2
7274  fi
7275done
7276  done
7277IFS=$as_save_IFS
7278
7279fi
7280fi
7281ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7282if test -n "$ac_ct_LIPO"; then
7283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7284$as_echo "$ac_ct_LIPO" >&6; }
7285else
7286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287$as_echo "no" >&6; }
7288fi
7289
7290  if test "x$ac_ct_LIPO" = x; then
7291    LIPO=":"
7292  else
7293    case $cross_compiling:$ac_tool_warned in
7294yes:)
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7297ac_tool_warned=yes ;;
7298esac
7299    LIPO=$ac_ct_LIPO
7300  fi
7301else
7302  LIPO="$ac_cv_prog_LIPO"
7303fi
7304
7305    if test -n "$ac_tool_prefix"; then
7306  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7307set dummy ${ac_tool_prefix}otool; ac_word=$2
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309$as_echo_n "checking for $ac_word... " >&6; }
7310if test "${ac_cv_prog_OTOOL+set}" = set; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  if test -n "$OTOOL"; then
7314  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7315else
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319  IFS=$as_save_IFS
7320  test -z "$as_dir" && as_dir=.
7321    for ac_exec_ext in '' $ac_executable_extensions; do
7322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325    break 2
7326  fi
7327done
7328  done
7329IFS=$as_save_IFS
7330
7331fi
7332fi
7333OTOOL=$ac_cv_prog_OTOOL
7334if test -n "$OTOOL"; then
7335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7336$as_echo "$OTOOL" >&6; }
7337else
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339$as_echo "no" >&6; }
7340fi
7341
7342
7343fi
7344if test -z "$ac_cv_prog_OTOOL"; then
7345  ac_ct_OTOOL=$OTOOL
7346  # Extract the first word of "otool", so it can be a program name with args.
7347set dummy otool; ac_word=$2
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349$as_echo_n "checking for $ac_word... " >&6; }
7350if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7351  $as_echo_n "(cached) " >&6
7352else
7353  if test -n "$ac_ct_OTOOL"; then
7354  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7355else
7356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359  IFS=$as_save_IFS
7360  test -z "$as_dir" && as_dir=.
7361    for ac_exec_ext in '' $ac_executable_extensions; do
7362  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363    ac_cv_prog_ac_ct_OTOOL="otool"
7364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365    break 2
7366  fi
7367done
7368  done
7369IFS=$as_save_IFS
7370
7371fi
7372fi
7373ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7374if test -n "$ac_ct_OTOOL"; then
7375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7376$as_echo "$ac_ct_OTOOL" >&6; }
7377else
7378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379$as_echo "no" >&6; }
7380fi
7381
7382  if test "x$ac_ct_OTOOL" = x; then
7383    OTOOL=":"
7384  else
7385    case $cross_compiling:$ac_tool_warned in
7386yes:)
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7389ac_tool_warned=yes ;;
7390esac
7391    OTOOL=$ac_ct_OTOOL
7392  fi
7393else
7394  OTOOL="$ac_cv_prog_OTOOL"
7395fi
7396
7397    if test -n "$ac_tool_prefix"; then
7398  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7399set dummy ${ac_tool_prefix}otool64; ac_word=$2
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401$as_echo_n "checking for $ac_word... " >&6; }
7402if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7403  $as_echo_n "(cached) " >&6
7404else
7405  if test -n "$OTOOL64"; then
7406  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7407else
7408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409for as_dir in $PATH
7410do
7411  IFS=$as_save_IFS
7412  test -z "$as_dir" && as_dir=.
7413    for ac_exec_ext in '' $ac_executable_extensions; do
7414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7415    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417    break 2
7418  fi
7419done
7420  done
7421IFS=$as_save_IFS
7422
7423fi
7424fi
7425OTOOL64=$ac_cv_prog_OTOOL64
7426if test -n "$OTOOL64"; then
7427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7428$as_echo "$OTOOL64" >&6; }
7429else
7430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431$as_echo "no" >&6; }
7432fi
7433
7434
7435fi
7436if test -z "$ac_cv_prog_OTOOL64"; then
7437  ac_ct_OTOOL64=$OTOOL64
7438  # Extract the first word of "otool64", so it can be a program name with args.
7439set dummy otool64; ac_word=$2
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441$as_echo_n "checking for $ac_word... " >&6; }
7442if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7443  $as_echo_n "(cached) " >&6
7444else
7445  if test -n "$ac_ct_OTOOL64"; then
7446  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7447else
7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH
7450do
7451  IFS=$as_save_IFS
7452  test -z "$as_dir" && as_dir=.
7453    for ac_exec_ext in '' $ac_executable_extensions; do
7454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7455    ac_cv_prog_ac_ct_OTOOL64="otool64"
7456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457    break 2
7458  fi
7459done
7460  done
7461IFS=$as_save_IFS
7462
7463fi
7464fi
7465ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7466if test -n "$ac_ct_OTOOL64"; then
7467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7468$as_echo "$ac_ct_OTOOL64" >&6; }
7469else
7470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471$as_echo "no" >&6; }
7472fi
7473
7474  if test "x$ac_ct_OTOOL64" = x; then
7475    OTOOL64=":"
7476  else
7477    case $cross_compiling:$ac_tool_warned in
7478yes:)
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481ac_tool_warned=yes ;;
7482esac
7483    OTOOL64=$ac_ct_OTOOL64
7484  fi
7485else
7486  OTOOL64="$ac_cv_prog_OTOOL64"
7487fi
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7516$as_echo_n "checking for -single_module linker flag... " >&6; }
7517if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7518  $as_echo_n "(cached) " >&6
7519else
7520  lt_cv_apple_cc_single_mod=no
7521      if test -z "${LT_MULTI_MODULE}"; then
7522	# By default we will add the -single_module flag. You can override
7523	# by either setting the environment variable LT_MULTI_MODULE
7524	# non-empty at configure time, or by adding -multi_module to the
7525	# link flags.
7526	rm -rf libconftest.dylib*
7527	echo "int foo(void){return 1;}" > conftest.c
7528	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7529-dynamiclib -Wl,-single_module conftest.c" >&5
7530	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7531	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7532        _lt_result=$?
7533	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7534	  lt_cv_apple_cc_single_mod=yes
7535	else
7536	  cat conftest.err >&5
7537	fi
7538	rm -rf libconftest.dylib*
7539	rm -f conftest.*
7540      fi
7541fi
7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7543$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7544    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7545$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7546if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7547  $as_echo_n "(cached) " >&6
7548else
7549  lt_cv_ld_exported_symbols_list=no
7550      save_LDFLAGS=$LDFLAGS
7551      echo "_main" > conftest.sym
7552      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7553      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554/* end confdefs.h.  */
7555
7556int
7557main ()
7558{
7559
7560  ;
7561  return 0;
7562}
7563_ACEOF
7564if ac_fn_c_try_link "$LINENO"; then :
7565  lt_cv_ld_exported_symbols_list=yes
7566else
7567  lt_cv_ld_exported_symbols_list=no
7568fi
7569rm -f core conftest.err conftest.$ac_objext \
7570    conftest$ac_exeext conftest.$ac_ext
7571	LDFLAGS="$save_LDFLAGS"
7572
7573fi
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7575$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7577$as_echo_n "checking for -force_load linker flag... " >&6; }
7578if test "${lt_cv_ld_force_load+set}" = set; then :
7579  $as_echo_n "(cached) " >&6
7580else
7581  lt_cv_ld_force_load=no
7582      cat > conftest.c << _LT_EOF
7583int forced_loaded() { return 2;}
7584_LT_EOF
7585      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7586      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7587      echo "$AR cru libconftest.a conftest.o" >&5
7588      $AR cru libconftest.a conftest.o 2>&5
7589      echo "$RANLIB libconftest.a" >&5
7590      $RANLIB libconftest.a 2>&5
7591      cat > conftest.c << _LT_EOF
7592int main() { return 0;}
7593_LT_EOF
7594      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7595      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7596      _lt_result=$?
7597      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7598	lt_cv_ld_force_load=yes
7599      else
7600	cat conftest.err >&5
7601      fi
7602        rm -f conftest.err libconftest.a conftest conftest.c
7603        rm -rf conftest.dSYM
7604
7605fi
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7607$as_echo "$lt_cv_ld_force_load" >&6; }
7608    case $host_os in
7609    rhapsody* | darwin1.[012])
7610      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7611    darwin1.*)
7612      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7613    darwin*) # darwin 5.x on
7614      # if running on 10.5 or later, the deployment target defaults
7615      # to the OS version, if on x86, and 10.4, the deployment
7616      # target defaults to 10.4. Don't you love it?
7617      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7618	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7619	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7620	10.[012]*)
7621	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7622	10.*)
7623	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7624      esac
7625    ;;
7626  esac
7627    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7628      _lt_dar_single_mod='$single_module'
7629    fi
7630    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7631      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7632    else
7633      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7634    fi
7635    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7636      _lt_dsymutil='~$DSYMUTIL $lib || :'
7637    else
7638      _lt_dsymutil=
7639    fi
7640    ;;
7641  esac
7642
7643
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7645$as_echo_n "checking for ANSI C header files... " >&6; }
7646if test "${ac_cv_header_stdc+set}" = set; then :
7647  $as_echo_n "(cached) " >&6
7648else
7649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650/* end confdefs.h.  */
7651#include <stdlib.h>
7652#include <stdarg.h>
7653#include <string.h>
7654#include <float.h>
7655
7656int
7657main ()
7658{
7659
7660  ;
7661  return 0;
7662}
7663_ACEOF
7664if ac_fn_c_try_compile "$LINENO"; then :
7665  ac_cv_header_stdc=yes
7666else
7667  ac_cv_header_stdc=no
7668fi
7669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670
7671if test $ac_cv_header_stdc = yes; then
7672  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674/* end confdefs.h.  */
7675#include <string.h>
7676
7677_ACEOF
7678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7679  $EGREP "memchr" >/dev/null 2>&1; then :
7680
7681else
7682  ac_cv_header_stdc=no
7683fi
7684rm -f conftest*
7685
7686fi
7687
7688if test $ac_cv_header_stdc = yes; then
7689  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691/* end confdefs.h.  */
7692#include <stdlib.h>
7693
7694_ACEOF
7695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7696  $EGREP "free" >/dev/null 2>&1; then :
7697
7698else
7699  ac_cv_header_stdc=no
7700fi
7701rm -f conftest*
7702
7703fi
7704
7705if test $ac_cv_header_stdc = yes; then
7706  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7707  if test "$cross_compiling" = yes; then :
7708  :
7709else
7710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711/* end confdefs.h.  */
7712#include <ctype.h>
7713#include <stdlib.h>
7714#if ((' ' & 0x0FF) == 0x020)
7715# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7716# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7717#else
7718# define ISLOWER(c) \
7719		   (('a' <= (c) && (c) <= 'i') \
7720		     || ('j' <= (c) && (c) <= 'r') \
7721		     || ('s' <= (c) && (c) <= 'z'))
7722# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7723#endif
7724
7725#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7726int
7727main ()
7728{
7729  int i;
7730  for (i = 0; i < 256; i++)
7731    if (XOR (islower (i), ISLOWER (i))
7732	|| toupper (i) != TOUPPER (i))
7733      return 2;
7734  return 0;
7735}
7736_ACEOF
7737if ac_fn_c_try_run "$LINENO"; then :
7738
7739else
7740  ac_cv_header_stdc=no
7741fi
7742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7743  conftest.$ac_objext conftest.beam conftest.$ac_ext
7744fi
7745
7746fi
7747fi
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7749$as_echo "$ac_cv_header_stdc" >&6; }
7750if test $ac_cv_header_stdc = yes; then
7751
7752$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7753
7754fi
7755
7756# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7757for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7758		  inttypes.h stdint.h unistd.h
7759do :
7760  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7761ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7762"
7763eval as_val=\$$as_ac_Header
7764   if test "x$as_val" = x""yes; then :
7765  cat >>confdefs.h <<_ACEOF
7766#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7767_ACEOF
7768
7769fi
7770
7771done
7772
7773
7774for ac_header in dlfcn.h
7775do :
7776  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7777"
7778if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7779  cat >>confdefs.h <<_ACEOF
7780#define HAVE_DLFCN_H 1
7781_ACEOF
7782
7783fi
7784
7785done
7786
7787
7788
7789
7790
7791# Set options
7792
7793
7794
7795        enable_dlopen=no
7796
7797
7798  enable_win32_dll=no
7799
7800
7801            # Check whether --enable-shared was given.
7802if test "${enable_shared+set}" = set; then :
7803  enableval=$enable_shared; p=${PACKAGE-default}
7804    case $enableval in
7805    yes) enable_shared=yes ;;
7806    no) enable_shared=no ;;
7807    *)
7808      enable_shared=no
7809      # Look at the argument we got.  We use all the common list separators.
7810      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7811      for pkg in $enableval; do
7812	IFS="$lt_save_ifs"
7813	if test "X$pkg" = "X$p"; then
7814	  enable_shared=yes
7815	fi
7816      done
7817      IFS="$lt_save_ifs"
7818      ;;
7819    esac
7820else
7821  enable_shared=yes
7822fi
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832  # Check whether --enable-static was given.
7833if test "${enable_static+set}" = set; then :
7834  enableval=$enable_static; p=${PACKAGE-default}
7835    case $enableval in
7836    yes) enable_static=yes ;;
7837    no) enable_static=no ;;
7838    *)
7839     enable_static=no
7840      # Look at the argument we got.  We use all the common list separators.
7841      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7842      for pkg in $enableval; do
7843	IFS="$lt_save_ifs"
7844	if test "X$pkg" = "X$p"; then
7845	  enable_static=yes
7846	fi
7847      done
7848      IFS="$lt_save_ifs"
7849      ;;
7850    esac
7851else
7852  enable_static=yes
7853fi
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864# Check whether --with-pic was given.
7865if test "${with_pic+set}" = set; then :
7866  withval=$with_pic; pic_mode="$withval"
7867else
7868  pic_mode=default
7869fi
7870
7871
7872test -z "$pic_mode" && pic_mode=default
7873
7874
7875
7876
7877
7878
7879
7880  # Check whether --enable-fast-install was given.
7881if test "${enable_fast_install+set}" = set; then :
7882  enableval=$enable_fast_install; p=${PACKAGE-default}
7883    case $enableval in
7884    yes) enable_fast_install=yes ;;
7885    no) enable_fast_install=no ;;
7886    *)
7887      enable_fast_install=no
7888      # Look at the argument we got.  We use all the common list separators.
7889      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7890      for pkg in $enableval; do
7891	IFS="$lt_save_ifs"
7892	if test "X$pkg" = "X$p"; then
7893	  enable_fast_install=yes
7894	fi
7895      done
7896      IFS="$lt_save_ifs"
7897      ;;
7898    esac
7899else
7900  enable_fast_install=yes
7901fi
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913# This can be used to rebuild libtool when needed
7914LIBTOOL_DEPS="$ltmain"
7915
7916# Always use our own libtool.
7917LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944test -z "$LN_S" && LN_S="ln -s"
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959if test -n "${ZSH_VERSION+set}" ; then
7960   setopt NO_GLOB_SUBST
7961fi
7962
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7964$as_echo_n "checking for objdir... " >&6; }
7965if test "${lt_cv_objdir+set}" = set; then :
7966  $as_echo_n "(cached) " >&6
7967else
7968  rm -f .libs 2>/dev/null
7969mkdir .libs 2>/dev/null
7970if test -d .libs; then
7971  lt_cv_objdir=.libs
7972else
7973  # MS-DOS does not allow filenames that begin with a dot.
7974  lt_cv_objdir=_libs
7975fi
7976rmdir .libs 2>/dev/null
7977fi
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7979$as_echo "$lt_cv_objdir" >&6; }
7980objdir=$lt_cv_objdir
7981
7982
7983
7984
7985
7986cat >>confdefs.h <<_ACEOF
7987#define LT_OBJDIR "$lt_cv_objdir/"
7988_ACEOF
7989
7990
7991
7992
7993case $host_os in
7994aix3*)
7995  # AIX sometimes has problems with the GCC collect2 program.  For some
7996  # reason, if we set the COLLECT_NAMES environment variable, the problems
7997  # vanish in a puff of smoke.
7998  if test "X${COLLECT_NAMES+set}" != Xset; then
7999    COLLECT_NAMES=
8000    export COLLECT_NAMES
8001  fi
8002  ;;
8003esac
8004
8005# Global variables:
8006ofile=libtool
8007can_build_shared=yes
8008
8009# All known linkers require a `.a' archive for static linking (except MSVC,
8010# which needs '.lib').
8011libext=a
8012
8013with_gnu_ld="$lt_cv_prog_gnu_ld"
8014
8015old_CC="$CC"
8016old_CFLAGS="$CFLAGS"
8017
8018# Set sane defaults for various variables
8019test -z "$CC" && CC=cc
8020test -z "$LTCC" && LTCC=$CC
8021test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8022test -z "$LD" && LD=ld
8023test -z "$ac_objext" && ac_objext=o
8024
8025for cc_temp in $compiler""; do
8026  case $cc_temp in
8027    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8028    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8029    \-*) ;;
8030    *) break;;
8031  esac
8032done
8033cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8034
8035
8036# Only perform the check for file, if the check method requires it
8037test -z "$MAGIC_CMD" && MAGIC_CMD=file
8038case $deplibs_check_method in
8039file_magic*)
8040  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8041    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8042$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8043if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8044  $as_echo_n "(cached) " >&6
8045else
8046  case $MAGIC_CMD in
8047[\\/*] |  ?:[\\/]*)
8048  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8049  ;;
8050*)
8051  lt_save_MAGIC_CMD="$MAGIC_CMD"
8052  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8053  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8054  for ac_dir in $ac_dummy; do
8055    IFS="$lt_save_ifs"
8056    test -z "$ac_dir" && ac_dir=.
8057    if test -f $ac_dir/${ac_tool_prefix}file; then
8058      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8059      if test -n "$file_magic_test_file"; then
8060	case $deplibs_check_method in
8061	"file_magic "*)
8062	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8063	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8064	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8065	    $EGREP "$file_magic_regex" > /dev/null; then
8066	    :
8067	  else
8068	    cat <<_LT_EOF 1>&2
8069
8070*** Warning: the command libtool uses to detect shared libraries,
8071*** $file_magic_cmd, produces output that libtool cannot recognize.
8072*** The result is that libtool may fail to recognize shared libraries
8073*** as such.  This will affect the creation of libtool libraries that
8074*** depend on shared libraries, but programs linked with such libtool
8075*** libraries will work regardless of this problem.  Nevertheless, you
8076*** may want to report the problem to your system manager and/or to
8077*** bug-libtool@gnu.org
8078
8079_LT_EOF
8080	  fi ;;
8081	esac
8082      fi
8083      break
8084    fi
8085  done
8086  IFS="$lt_save_ifs"
8087  MAGIC_CMD="$lt_save_MAGIC_CMD"
8088  ;;
8089esac
8090fi
8091
8092MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8093if test -n "$MAGIC_CMD"; then
8094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8095$as_echo "$MAGIC_CMD" >&6; }
8096else
8097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098$as_echo "no" >&6; }
8099fi
8100
8101
8102
8103
8104
8105if test -z "$lt_cv_path_MAGIC_CMD"; then
8106  if test -n "$ac_tool_prefix"; then
8107    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8108$as_echo_n "checking for file... " >&6; }
8109if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8110  $as_echo_n "(cached) " >&6
8111else
8112  case $MAGIC_CMD in
8113[\\/*] |  ?:[\\/]*)
8114  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8115  ;;
8116*)
8117  lt_save_MAGIC_CMD="$MAGIC_CMD"
8118  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8119  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8120  for ac_dir in $ac_dummy; do
8121    IFS="$lt_save_ifs"
8122    test -z "$ac_dir" && ac_dir=.
8123    if test -f $ac_dir/file; then
8124      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8125      if test -n "$file_magic_test_file"; then
8126	case $deplibs_check_method in
8127	"file_magic "*)
8128	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8129	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8130	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8131	    $EGREP "$file_magic_regex" > /dev/null; then
8132	    :
8133	  else
8134	    cat <<_LT_EOF 1>&2
8135
8136*** Warning: the command libtool uses to detect shared libraries,
8137*** $file_magic_cmd, produces output that libtool cannot recognize.
8138*** The result is that libtool may fail to recognize shared libraries
8139*** as such.  This will affect the creation of libtool libraries that
8140*** depend on shared libraries, but programs linked with such libtool
8141*** libraries will work regardless of this problem.  Nevertheless, you
8142*** may want to report the problem to your system manager and/or to
8143*** bug-libtool@gnu.org
8144
8145_LT_EOF
8146	  fi ;;
8147	esac
8148      fi
8149      break
8150    fi
8151  done
8152  IFS="$lt_save_ifs"
8153  MAGIC_CMD="$lt_save_MAGIC_CMD"
8154  ;;
8155esac
8156fi
8157
8158MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8159if test -n "$MAGIC_CMD"; then
8160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8161$as_echo "$MAGIC_CMD" >&6; }
8162else
8163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164$as_echo "no" >&6; }
8165fi
8166
8167
8168  else
8169    MAGIC_CMD=:
8170  fi
8171fi
8172
8173  fi
8174  ;;
8175esac
8176
8177# Use C for the default configuration in the libtool script
8178
8179lt_save_CC="$CC"
8180ac_ext=c
8181ac_cpp='$CPP $CPPFLAGS'
8182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8184ac_compiler_gnu=$ac_cv_c_compiler_gnu
8185
8186
8187# Source file extension for C test sources.
8188ac_ext=c
8189
8190# Object file extension for compiled C test sources.
8191objext=o
8192objext=$objext
8193
8194# Code to be used in simple compile tests
8195lt_simple_compile_test_code="int some_variable = 0;"
8196
8197# Code to be used in simple link tests
8198lt_simple_link_test_code='int main(){return(0);}'
8199
8200
8201
8202
8203
8204
8205
8206# If no C compiler was specified, use CC.
8207LTCC=${LTCC-"$CC"}
8208
8209# If no C compiler flags were specified, use CFLAGS.
8210LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8211
8212# Allow CC to be a program name with arguments.
8213compiler=$CC
8214
8215# Save the default compiler, since it gets overwritten when the other
8216# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8217compiler_DEFAULT=$CC
8218
8219# save warnings/boilerplate of simple test code
8220ac_outfile=conftest.$ac_objext
8221echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8222eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8223_lt_compiler_boilerplate=`cat conftest.err`
8224$RM conftest*
8225
8226ac_outfile=conftest.$ac_objext
8227echo "$lt_simple_link_test_code" >conftest.$ac_ext
8228eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8229_lt_linker_boilerplate=`cat conftest.err`
8230$RM -r conftest*
8231
8232
8233## CAVEAT EMPTOR:
8234## There is no encapsulation within the following macros, do not change
8235## the running order or otherwise move them around unless you know exactly
8236## what you are doing...
8237if test -n "$compiler"; then
8238
8239lt_prog_compiler_no_builtin_flag=
8240
8241if test "$GCC" = yes; then
8242  case $cc_basename in
8243  nvcc*)
8244    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8245  *)
8246    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8247  esac
8248
8249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8250$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8251if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8252  $as_echo_n "(cached) " >&6
8253else
8254  lt_cv_prog_compiler_rtti_exceptions=no
8255   ac_outfile=conftest.$ac_objext
8256   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8257   lt_compiler_flag="-fno-rtti -fno-exceptions"
8258   # Insert the option either (1) after the last *FLAGS variable, or
8259   # (2) before a word containing "conftest.", or (3) at the end.
8260   # Note that $ac_compile itself does not contain backslashes and begins
8261   # with a dollar sign (not a hyphen), so the echo should work correctly.
8262   # The option is referenced via a variable to avoid confusing sed.
8263   lt_compile=`echo "$ac_compile" | $SED \
8264   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8265   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8266   -e 's:$: $lt_compiler_flag:'`
8267   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8268   (eval "$lt_compile" 2>conftest.err)
8269   ac_status=$?
8270   cat conftest.err >&5
8271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272   if (exit $ac_status) && test -s "$ac_outfile"; then
8273     # The compiler can only warn and ignore the option if not recognized
8274     # So say no if there are warnings other than the usual output.
8275     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8276     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8277     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8278       lt_cv_prog_compiler_rtti_exceptions=yes
8279     fi
8280   fi
8281   $RM conftest*
8282
8283fi
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8285$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8286
8287if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8288    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8289else
8290    :
8291fi
8292
8293fi
8294
8295
8296
8297
8298
8299
8300  lt_prog_compiler_wl=
8301lt_prog_compiler_pic=
8302lt_prog_compiler_static=
8303
8304
8305  if test "$GCC" = yes; then
8306    lt_prog_compiler_wl='-Wl,'
8307    lt_prog_compiler_static='-static'
8308
8309    case $host_os in
8310      aix*)
8311      # All AIX code is PIC.
8312      if test "$host_cpu" = ia64; then
8313	# AIX 5 now supports IA64 processor
8314	lt_prog_compiler_static='-Bstatic'
8315      fi
8316      ;;
8317
8318    amigaos*)
8319      case $host_cpu in
8320      powerpc)
8321            # see comment about AmigaOS4 .so support
8322            lt_prog_compiler_pic='-fPIC'
8323        ;;
8324      m68k)
8325            # FIXME: we need at least 68020 code to build shared libraries, but
8326            # adding the `-m68020' flag to GCC prevents building anything better,
8327            # like `-m68040'.
8328            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8329        ;;
8330      esac
8331      ;;
8332
8333    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8334      # PIC is the default for these OSes.
8335      ;;
8336
8337    mingw* | cygwin* | pw32* | os2* | cegcc*)
8338      # This hack is so that the source file can tell whether it is being
8339      # built for inclusion in a dll (and should export symbols for example).
8340      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8341      # (--disable-auto-import) libraries
8342      lt_prog_compiler_pic='-DDLL_EXPORT'
8343      ;;
8344
8345    darwin* | rhapsody*)
8346      # PIC is the default on this platform
8347      # Common symbols not allowed in MH_DYLIB files
8348      lt_prog_compiler_pic='-fno-common'
8349      ;;
8350
8351    haiku*)
8352      # PIC is the default for Haiku.
8353      # The "-static" flag exists, but is broken.
8354      lt_prog_compiler_static=
8355      ;;
8356
8357    hpux*)
8358      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8359      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8360      # sets the default TLS model and affects inlining.
8361      case $host_cpu in
8362      hppa*64*)
8363	# +Z the default
8364	;;
8365      *)
8366	lt_prog_compiler_pic='-fPIC'
8367	;;
8368      esac
8369      ;;
8370
8371    interix[3-9]*)
8372      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8373      # Instead, we relocate shared libraries at runtime.
8374      ;;
8375
8376    msdosdjgpp*)
8377      # Just because we use GCC doesn't mean we suddenly get shared libraries
8378      # on systems that don't support them.
8379      lt_prog_compiler_can_build_shared=no
8380      enable_shared=no
8381      ;;
8382
8383    *nto* | *qnx*)
8384      # QNX uses GNU C++, but need to define -shared option too, otherwise
8385      # it will coredump.
8386      lt_prog_compiler_pic='-fPIC -shared'
8387      ;;
8388
8389    sysv4*MP*)
8390      if test -d /usr/nec; then
8391	lt_prog_compiler_pic=-Kconform_pic
8392      fi
8393      ;;
8394
8395    *)
8396      lt_prog_compiler_pic='-fPIC'
8397      ;;
8398    esac
8399
8400    case $cc_basename in
8401    nvcc*) # Cuda Compiler Driver 2.2
8402      lt_prog_compiler_wl='-Xlinker '
8403      lt_prog_compiler_pic='-Xcompiler -fPIC'
8404      ;;
8405    esac
8406  else
8407    # PORTME Check for flag to pass linker flags through the system compiler.
8408    case $host_os in
8409    aix*)
8410      lt_prog_compiler_wl='-Wl,'
8411      if test "$host_cpu" = ia64; then
8412	# AIX 5 now supports IA64 processor
8413	lt_prog_compiler_static='-Bstatic'
8414      else
8415	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8416      fi
8417      ;;
8418
8419    mingw* | cygwin* | pw32* | os2* | cegcc*)
8420      # This hack is so that the source file can tell whether it is being
8421      # built for inclusion in a dll (and should export symbols for example).
8422      lt_prog_compiler_pic='-DDLL_EXPORT'
8423      ;;
8424
8425    hpux9* | hpux10* | hpux11*)
8426      lt_prog_compiler_wl='-Wl,'
8427      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8428      # not for PA HP-UX.
8429      case $host_cpu in
8430      hppa*64*|ia64*)
8431	# +Z the default
8432	;;
8433      *)
8434	lt_prog_compiler_pic='+Z'
8435	;;
8436      esac
8437      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8438      lt_prog_compiler_static='${wl}-a ${wl}archive'
8439      ;;
8440
8441    irix5* | irix6* | nonstopux*)
8442      lt_prog_compiler_wl='-Wl,'
8443      # PIC (with -KPIC) is the default.
8444      lt_prog_compiler_static='-non_shared'
8445      ;;
8446
8447    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8448      case $cc_basename in
8449      # old Intel for x86_64 which still supported -KPIC.
8450      ecc*)
8451	lt_prog_compiler_wl='-Wl,'
8452	lt_prog_compiler_pic='-KPIC'
8453	lt_prog_compiler_static='-static'
8454        ;;
8455      # icc used to be incompatible with GCC.
8456      # ICC 10 doesn't accept -KPIC any more.
8457      icc* | ifort*)
8458	lt_prog_compiler_wl='-Wl,'
8459	lt_prog_compiler_pic='-fPIC'
8460	lt_prog_compiler_static='-static'
8461        ;;
8462      # Lahey Fortran 8.1.
8463      lf95*)
8464	lt_prog_compiler_wl='-Wl,'
8465	lt_prog_compiler_pic='--shared'
8466	lt_prog_compiler_static='--static'
8467	;;
8468      nagfor*)
8469	# NAG Fortran compiler
8470	lt_prog_compiler_wl='-Wl,-Wl,,'
8471	lt_prog_compiler_pic='-PIC'
8472	lt_prog_compiler_static='-Bstatic'
8473	;;
8474      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8475        # Portland Group compilers (*not* the Pentium gcc compiler,
8476	# which looks to be a dead project)
8477	lt_prog_compiler_wl='-Wl,'
8478	lt_prog_compiler_pic='-fpic'
8479	lt_prog_compiler_static='-Bstatic'
8480        ;;
8481      ccc*)
8482        lt_prog_compiler_wl='-Wl,'
8483        # All Alpha code is PIC.
8484        lt_prog_compiler_static='-non_shared'
8485        ;;
8486      xl* | bgxl* | bgf* | mpixl*)
8487	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8488	lt_prog_compiler_wl='-Wl,'
8489	lt_prog_compiler_pic='-qpic'
8490	lt_prog_compiler_static='-qstaticlink'
8491	;;
8492      *)
8493	case `$CC -V 2>&1 | sed 5q` in
8494	*Sun\ F* | *Sun*Fortran*)
8495	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8496	  lt_prog_compiler_pic='-KPIC'
8497	  lt_prog_compiler_static='-Bstatic'
8498	  lt_prog_compiler_wl=''
8499	  ;;
8500	*Sun\ C*)
8501	  # Sun C 5.9
8502	  lt_prog_compiler_pic='-KPIC'
8503	  lt_prog_compiler_static='-Bstatic'
8504	  lt_prog_compiler_wl='-Wl,'
8505	  ;;
8506	esac
8507	;;
8508      esac
8509      ;;
8510
8511    newsos6)
8512      lt_prog_compiler_pic='-KPIC'
8513      lt_prog_compiler_static='-Bstatic'
8514      ;;
8515
8516    *nto* | *qnx*)
8517      # QNX uses GNU C++, but need to define -shared option too, otherwise
8518      # it will coredump.
8519      lt_prog_compiler_pic='-fPIC -shared'
8520      ;;
8521
8522    osf3* | osf4* | osf5*)
8523      lt_prog_compiler_wl='-Wl,'
8524      # All OSF/1 code is PIC.
8525      lt_prog_compiler_static='-non_shared'
8526      ;;
8527
8528    rdos*)
8529      lt_prog_compiler_static='-non_shared'
8530      ;;
8531
8532    solaris*)
8533      lt_prog_compiler_pic='-KPIC'
8534      lt_prog_compiler_static='-Bstatic'
8535      case $cc_basename in
8536      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8537	lt_prog_compiler_wl='-Qoption ld ';;
8538      *)
8539	lt_prog_compiler_wl='-Wl,';;
8540      esac
8541      ;;
8542
8543    sunos4*)
8544      lt_prog_compiler_wl='-Qoption ld '
8545      lt_prog_compiler_pic='-PIC'
8546      lt_prog_compiler_static='-Bstatic'
8547      ;;
8548
8549    sysv4 | sysv4.2uw2* | sysv4.3*)
8550      lt_prog_compiler_wl='-Wl,'
8551      lt_prog_compiler_pic='-KPIC'
8552      lt_prog_compiler_static='-Bstatic'
8553      ;;
8554
8555    sysv4*MP*)
8556      if test -d /usr/nec ;then
8557	lt_prog_compiler_pic='-Kconform_pic'
8558	lt_prog_compiler_static='-Bstatic'
8559      fi
8560      ;;
8561
8562    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8563      lt_prog_compiler_wl='-Wl,'
8564      lt_prog_compiler_pic='-KPIC'
8565      lt_prog_compiler_static='-Bstatic'
8566      ;;
8567
8568    unicos*)
8569      lt_prog_compiler_wl='-Wl,'
8570      lt_prog_compiler_can_build_shared=no
8571      ;;
8572
8573    uts4*)
8574      lt_prog_compiler_pic='-pic'
8575      lt_prog_compiler_static='-Bstatic'
8576      ;;
8577
8578    *)
8579      lt_prog_compiler_can_build_shared=no
8580      ;;
8581    esac
8582  fi
8583
8584case $host_os in
8585  # For platforms which do not support PIC, -DPIC is meaningless:
8586  *djgpp*)
8587    lt_prog_compiler_pic=
8588    ;;
8589  *)
8590    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8591    ;;
8592esac
8593
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8595$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8596if test "${lt_cv_prog_compiler_pic+set}" = set; then :
8597  $as_echo_n "(cached) " >&6
8598else
8599  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8600fi
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8602$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8603lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8604
8605#
8606# Check to make sure the PIC flag actually works.
8607#
8608if test -n "$lt_prog_compiler_pic"; then
8609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8610$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8611if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8612  $as_echo_n "(cached) " >&6
8613else
8614  lt_cv_prog_compiler_pic_works=no
8615   ac_outfile=conftest.$ac_objext
8616   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8617   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8618   # Insert the option either (1) after the last *FLAGS variable, or
8619   # (2) before a word containing "conftest.", or (3) at the end.
8620   # Note that $ac_compile itself does not contain backslashes and begins
8621   # with a dollar sign (not a hyphen), so the echo should work correctly.
8622   # The option is referenced via a variable to avoid confusing sed.
8623   lt_compile=`echo "$ac_compile" | $SED \
8624   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8625   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8626   -e 's:$: $lt_compiler_flag:'`
8627   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8628   (eval "$lt_compile" 2>conftest.err)
8629   ac_status=$?
8630   cat conftest.err >&5
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   if (exit $ac_status) && test -s "$ac_outfile"; then
8633     # The compiler can only warn and ignore the option if not recognized
8634     # So say no if there are warnings other than the usual output.
8635     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8636     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8637     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8638       lt_cv_prog_compiler_pic_works=yes
8639     fi
8640   fi
8641   $RM conftest*
8642
8643fi
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8645$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8646
8647if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8648    case $lt_prog_compiler_pic in
8649     "" | " "*) ;;
8650     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8651     esac
8652else
8653    lt_prog_compiler_pic=
8654     lt_prog_compiler_can_build_shared=no
8655fi
8656
8657fi
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669#
8670# Check to make sure the static flag actually works.
8671#
8672wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8674$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8675if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8676  $as_echo_n "(cached) " >&6
8677else
8678  lt_cv_prog_compiler_static_works=no
8679   save_LDFLAGS="$LDFLAGS"
8680   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8681   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8682   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8683     # The linker can only warn and ignore the option if not recognized
8684     # So say no if there are warnings
8685     if test -s conftest.err; then
8686       # Append any errors to the config.log.
8687       cat conftest.err 1>&5
8688       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8689       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8690       if diff conftest.exp conftest.er2 >/dev/null; then
8691         lt_cv_prog_compiler_static_works=yes
8692       fi
8693     else
8694       lt_cv_prog_compiler_static_works=yes
8695     fi
8696   fi
8697   $RM -r conftest*
8698   LDFLAGS="$save_LDFLAGS"
8699
8700fi
8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8702$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8703
8704if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8705    :
8706else
8707    lt_prog_compiler_static=
8708fi
8709
8710
8711
8712
8713
8714
8715
8716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8717$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8718if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8719  $as_echo_n "(cached) " >&6
8720else
8721  lt_cv_prog_compiler_c_o=no
8722   $RM -r conftest 2>/dev/null
8723   mkdir conftest
8724   cd conftest
8725   mkdir out
8726   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8727
8728   lt_compiler_flag="-o out/conftest2.$ac_objext"
8729   # Insert the option either (1) after the last *FLAGS variable, or
8730   # (2) before a word containing "conftest.", or (3) at the end.
8731   # Note that $ac_compile itself does not contain backslashes and begins
8732   # with a dollar sign (not a hyphen), so the echo should work correctly.
8733   lt_compile=`echo "$ac_compile" | $SED \
8734   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8735   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8736   -e 's:$: $lt_compiler_flag:'`
8737   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8738   (eval "$lt_compile" 2>out/conftest.err)
8739   ac_status=$?
8740   cat out/conftest.err >&5
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8743   then
8744     # The compiler can only warn and ignore the option if not recognized
8745     # So say no if there are warnings
8746     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8747     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8748     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8749       lt_cv_prog_compiler_c_o=yes
8750     fi
8751   fi
8752   chmod u+w . 2>&5
8753   $RM conftest*
8754   # SGI C++ compiler will create directory out/ii_files/ for
8755   # template instantiation
8756   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8757   $RM out/* && rmdir out
8758   cd ..
8759   $RM -r conftest
8760   $RM conftest*
8761
8762fi
8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8764$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8765
8766
8767
8768
8769
8770
8771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8772$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8773if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8774  $as_echo_n "(cached) " >&6
8775else
8776  lt_cv_prog_compiler_c_o=no
8777   $RM -r conftest 2>/dev/null
8778   mkdir conftest
8779   cd conftest
8780   mkdir out
8781   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8782
8783   lt_compiler_flag="-o out/conftest2.$ac_objext"
8784   # Insert the option either (1) after the last *FLAGS variable, or
8785   # (2) before a word containing "conftest.", or (3) at the end.
8786   # Note that $ac_compile itself does not contain backslashes and begins
8787   # with a dollar sign (not a hyphen), so the echo should work correctly.
8788   lt_compile=`echo "$ac_compile" | $SED \
8789   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8790   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8791   -e 's:$: $lt_compiler_flag:'`
8792   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8793   (eval "$lt_compile" 2>out/conftest.err)
8794   ac_status=$?
8795   cat out/conftest.err >&5
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8798   then
8799     # The compiler can only warn and ignore the option if not recognized
8800     # So say no if there are warnings
8801     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8802     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8803     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8804       lt_cv_prog_compiler_c_o=yes
8805     fi
8806   fi
8807   chmod u+w . 2>&5
8808   $RM conftest*
8809   # SGI C++ compiler will create directory out/ii_files/ for
8810   # template instantiation
8811   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8812   $RM out/* && rmdir out
8813   cd ..
8814   $RM -r conftest
8815   $RM conftest*
8816
8817fi
8818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8819$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8820
8821
8822
8823
8824hard_links="nottested"
8825if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8826  # do not overwrite the value of need_locks provided by the user
8827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8828$as_echo_n "checking if we can lock with hard links... " >&6; }
8829  hard_links=yes
8830  $RM conftest*
8831  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8832  touch conftest.a
8833  ln conftest.a conftest.b 2>&5 || hard_links=no
8834  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8836$as_echo "$hard_links" >&6; }
8837  if test "$hard_links" = no; then
8838    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8839$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8840    need_locks=warn
8841  fi
8842else
8843  need_locks=no
8844fi
8845
8846
8847
8848
8849
8850
8851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8852$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8853
8854  runpath_var=
8855  allow_undefined_flag=
8856  always_export_symbols=no
8857  archive_cmds=
8858  archive_expsym_cmds=
8859  compiler_needs_object=no
8860  enable_shared_with_static_runtimes=no
8861  export_dynamic_flag_spec=
8862  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8863  hardcode_automatic=no
8864  hardcode_direct=no
8865  hardcode_direct_absolute=no
8866  hardcode_libdir_flag_spec=
8867  hardcode_libdir_flag_spec_ld=
8868  hardcode_libdir_separator=
8869  hardcode_minus_L=no
8870  hardcode_shlibpath_var=unsupported
8871  inherit_rpath=no
8872  link_all_deplibs=unknown
8873  module_cmds=
8874  module_expsym_cmds=
8875  old_archive_from_new_cmds=
8876  old_archive_from_expsyms_cmds=
8877  thread_safe_flag_spec=
8878  whole_archive_flag_spec=
8879  # include_expsyms should be a list of space-separated symbols to be *always*
8880  # included in the symbol list
8881  include_expsyms=
8882  # exclude_expsyms can be an extended regexp of symbols to exclude
8883  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8884  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8885  # as well as any symbol that contains `d'.
8886  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8887  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8888  # platforms (ab)use it in PIC code, but their linkers get confused if
8889  # the symbol is explicitly referenced.  Since portable code cannot
8890  # rely on this symbol name, it's probably fine to never include it in
8891  # preloaded symbol tables.
8892  # Exclude shared library initialization/finalization symbols.
8893  extract_expsyms_cmds=
8894
8895  case $host_os in
8896  cygwin* | mingw* | pw32* | cegcc*)
8897    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8898    # When not using gcc, we currently assume that we are using
8899    # Microsoft Visual C++.
8900    if test "$GCC" != yes; then
8901      with_gnu_ld=no
8902    fi
8903    ;;
8904  interix*)
8905    # we just hope/assume this is gcc and not c89 (= MSVC++)
8906    with_gnu_ld=yes
8907    ;;
8908  openbsd*)
8909    with_gnu_ld=no
8910    ;;
8911  esac
8912
8913  ld_shlibs=yes
8914
8915  # On some targets, GNU ld is compatible enough with the native linker
8916  # that we're better off using the native interface for both.
8917  lt_use_gnu_ld_interface=no
8918  if test "$with_gnu_ld" = yes; then
8919    case $host_os in
8920      aix*)
8921	# The AIX port of GNU ld has always aspired to compatibility
8922	# with the native linker.  However, as the warning in the GNU ld
8923	# block says, versions before 2.19.5* couldn't really create working
8924	# shared libraries, regardless of the interface used.
8925	case `$LD -v 2>&1` in
8926	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8927	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8928	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8929	  *)
8930	    lt_use_gnu_ld_interface=yes
8931	    ;;
8932	esac
8933	;;
8934      *)
8935	lt_use_gnu_ld_interface=yes
8936	;;
8937    esac
8938  fi
8939
8940  if test "$lt_use_gnu_ld_interface" = yes; then
8941    # If archive_cmds runs LD, not CC, wlarc should be empty
8942    wlarc='${wl}'
8943
8944    # Set some defaults for GNU ld with shared library support. These
8945    # are reset later if shared libraries are not supported. Putting them
8946    # here allows them to be overridden if necessary.
8947    runpath_var=LD_RUN_PATH
8948    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8949    export_dynamic_flag_spec='${wl}--export-dynamic'
8950    # ancient GNU ld didn't support --whole-archive et. al.
8951    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8952      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8953    else
8954      whole_archive_flag_spec=
8955    fi
8956    supports_anon_versioning=no
8957    case `$LD -v 2>&1` in
8958      *GNU\ gold*) supports_anon_versioning=yes ;;
8959      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8960      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8961      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8962      *\ 2.11.*) ;; # other 2.11 versions
8963      *) supports_anon_versioning=yes ;;
8964    esac
8965
8966    # See if GNU ld supports shared libraries.
8967    case $host_os in
8968    aix[3-9]*)
8969      # On AIX/PPC, the GNU linker is very broken
8970      if test "$host_cpu" != ia64; then
8971	ld_shlibs=no
8972	cat <<_LT_EOF 1>&2
8973
8974*** Warning: the GNU linker, at least up to release 2.19, is reported
8975*** to be unable to reliably create shared libraries on AIX.
8976*** Therefore, libtool is disabling shared libraries support.  If you
8977*** really care for shared libraries, you may want to install binutils
8978*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8979*** You will then need to restart the configuration process.
8980
8981_LT_EOF
8982      fi
8983      ;;
8984
8985    amigaos*)
8986      case $host_cpu in
8987      powerpc)
8988            # see comment about AmigaOS4 .so support
8989            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8990            archive_expsym_cmds=''
8991        ;;
8992      m68k)
8993            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)'
8994            hardcode_libdir_flag_spec='-L$libdir'
8995            hardcode_minus_L=yes
8996        ;;
8997      esac
8998      ;;
8999
9000    beos*)
9001      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9002	allow_undefined_flag=unsupported
9003	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9004	# support --undefined.  This deserves some investigation.  FIXME
9005	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9006      else
9007	ld_shlibs=no
9008      fi
9009      ;;
9010
9011    cygwin* | mingw* | pw32* | cegcc*)
9012      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9013      # as there is no search path for DLLs.
9014      hardcode_libdir_flag_spec='-L$libdir'
9015      export_dynamic_flag_spec='${wl}--export-all-symbols'
9016      allow_undefined_flag=unsupported
9017      always_export_symbols=no
9018      enable_shared_with_static_runtimes=yes
9019      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9020      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9021
9022      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9023        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9024	# If the export-symbols file already is a .def file (1st line
9025	# is EXPORTS), use it as is; otherwise, prepend...
9026	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9027	  cp $export_symbols $output_objdir/$soname.def;
9028	else
9029	  echo EXPORTS > $output_objdir/$soname.def;
9030	  cat $export_symbols >> $output_objdir/$soname.def;
9031	fi~
9032	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9033      else
9034	ld_shlibs=no
9035      fi
9036      ;;
9037
9038    haiku*)
9039      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040      link_all_deplibs=yes
9041      ;;
9042
9043    interix[3-9]*)
9044      hardcode_direct=no
9045      hardcode_shlibpath_var=no
9046      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9047      export_dynamic_flag_spec='${wl}-E'
9048      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9049      # Instead, shared libraries are loaded at an image base (0x10000000 by
9050      # default) and relocated if they conflict, which is a slow very memory
9051      # consuming and fragmenting process.  To avoid this, we pick a random,
9052      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9053      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9054      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9055      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9056      ;;
9057
9058    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9059      tmp_diet=no
9060      if test "$host_os" = linux-dietlibc; then
9061	case $cc_basename in
9062	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9063	esac
9064      fi
9065      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9066	 && test "$tmp_diet" = no
9067      then
9068	tmp_addflag=' $pic_flag'
9069	tmp_sharedflag='-shared'
9070	case $cc_basename,$host_cpu in
9071        pgcc*)				# Portland Group C compiler
9072	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9073	  tmp_addflag=' $pic_flag'
9074	  ;;
9075	pgf77* | pgf90* | pgf95* | pgfortran*)
9076					# Portland Group f77 and f90 compilers
9077	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9078	  tmp_addflag=' $pic_flag -Mnomain' ;;
9079	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9080	  tmp_addflag=' -i_dynamic' ;;
9081	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9082	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9083	ifc* | ifort*)			# Intel Fortran compiler
9084	  tmp_addflag=' -nofor_main' ;;
9085	lf95*)				# Lahey Fortran 8.1
9086	  whole_archive_flag_spec=
9087	  tmp_sharedflag='--shared' ;;
9088	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9089	  tmp_sharedflag='-qmkshrobj'
9090	  tmp_addflag= ;;
9091	nvcc*)	# Cuda Compiler Driver 2.2
9092	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9093	  compiler_needs_object=yes
9094	  ;;
9095	esac
9096	case `$CC -V 2>&1 | sed 5q` in
9097	*Sun\ C*)			# Sun C 5.9
9098	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9099	  compiler_needs_object=yes
9100	  tmp_sharedflag='-G' ;;
9101	*Sun\ F*)			# Sun Fortran 8.3
9102	  tmp_sharedflag='-G' ;;
9103	esac
9104	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105
9106        if test "x$supports_anon_versioning" = xyes; then
9107          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9108	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9109	    echo "local: *; };" >> $output_objdir/$libname.ver~
9110	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9111        fi
9112
9113	case $cc_basename in
9114	xlf* | bgf* | bgxlf* | mpixlf*)
9115	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9116	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9117	  hardcode_libdir_flag_spec=
9118	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9119	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9120	  if test "x$supports_anon_versioning" = xyes; then
9121	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9122	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9123	      echo "local: *; };" >> $output_objdir/$libname.ver~
9124	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9125	  fi
9126	  ;;
9127	esac
9128      else
9129        ld_shlibs=no
9130      fi
9131      ;;
9132
9133    netbsd*)
9134      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9135	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9136	wlarc=
9137      else
9138	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9139	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9140      fi
9141      ;;
9142
9143    solaris*)
9144      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9145	ld_shlibs=no
9146	cat <<_LT_EOF 1>&2
9147
9148*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9149*** create shared libraries on Solaris systems.  Therefore, libtool
9150*** is disabling shared libraries support.  We urge you to upgrade GNU
9151*** binutils to release 2.9.1 or newer.  Another option is to modify
9152*** your PATH or compiler configuration so that the native linker is
9153*** used, and then restart.
9154
9155_LT_EOF
9156      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9157	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9159      else
9160	ld_shlibs=no
9161      fi
9162      ;;
9163
9164    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9165      case `$LD -v 2>&1` in
9166        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9167	ld_shlibs=no
9168	cat <<_LT_EOF 1>&2
9169
9170*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9171*** reliably create shared libraries on SCO systems.  Therefore, libtool
9172*** is disabling shared libraries support.  We urge you to upgrade GNU
9173*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9174*** your PATH or compiler configuration so that the native linker is
9175*** used, and then restart.
9176
9177_LT_EOF
9178	;;
9179	*)
9180	  # For security reasons, it is highly recommended that you always
9181	  # use absolute paths for naming shared libraries, and exclude the
9182	  # DT_RUNPATH tag from executables and libraries.  But doing so
9183	  # requires that you compile everything twice, which is a pain.
9184	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9185	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9188	  else
9189	    ld_shlibs=no
9190	  fi
9191	;;
9192      esac
9193      ;;
9194
9195    sunos4*)
9196      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9197      wlarc=
9198      hardcode_direct=yes
9199      hardcode_shlibpath_var=no
9200      ;;
9201
9202    *)
9203      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9204	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9205	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9206      else
9207	ld_shlibs=no
9208      fi
9209      ;;
9210    esac
9211
9212    if test "$ld_shlibs" = no; then
9213      runpath_var=
9214      hardcode_libdir_flag_spec=
9215      export_dynamic_flag_spec=
9216      whole_archive_flag_spec=
9217    fi
9218  else
9219    # PORTME fill in a description of your system's linker (not GNU ld)
9220    case $host_os in
9221    aix3*)
9222      allow_undefined_flag=unsupported
9223      always_export_symbols=yes
9224      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'
9225      # Note: this linker hardcodes the directories in LIBPATH if there
9226      # are no directories specified by -L.
9227      hardcode_minus_L=yes
9228      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9229	# Neither direct hardcoding nor static linking is supported with a
9230	# broken collect2.
9231	hardcode_direct=unsupported
9232      fi
9233      ;;
9234
9235    aix[4-9]*)
9236      if test "$host_cpu" = ia64; then
9237	# On IA64, the linker does run time linking by default, so we don't
9238	# have to do anything special.
9239	aix_use_runtimelinking=no
9240	exp_sym_flag='-Bexport'
9241	no_entry_flag=""
9242      else
9243	# If we're using GNU nm, then we don't want the "-C" option.
9244	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9245	# Also, AIX nm treats weak defined symbols like other global
9246	# defined symbols, whereas GNU nm marks them as "W".
9247	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9248	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9249	else
9250	  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'
9251	fi
9252	aix_use_runtimelinking=no
9253
9254	# Test if we are trying to use run time linking or normal
9255	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9256	# need to do runtime linking.
9257	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9258	  for ld_flag in $LDFLAGS; do
9259	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9260	    aix_use_runtimelinking=yes
9261	    break
9262	  fi
9263	  done
9264	  ;;
9265	esac
9266
9267	exp_sym_flag='-bexport'
9268	no_entry_flag='-bnoentry'
9269      fi
9270
9271      # When large executables or shared objects are built, AIX ld can
9272      # have problems creating the table of contents.  If linking a library
9273      # or program results in "error TOC overflow" add -mminimal-toc to
9274      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9275      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9276
9277      archive_cmds=''
9278      hardcode_direct=yes
9279      hardcode_direct_absolute=yes
9280      hardcode_libdir_separator=':'
9281      link_all_deplibs=yes
9282      file_list_spec='${wl}-f,'
9283
9284      if test "$GCC" = yes; then
9285	case $host_os in aix4.[012]|aix4.[012].*)
9286	# We only want to do this on AIX 4.2 and lower, the check
9287	# below for broken collect2 doesn't work under 4.3+
9288	  collect2name=`${CC} -print-prog-name=collect2`
9289	  if test -f "$collect2name" &&
9290	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9291	  then
9292	  # We have reworked collect2
9293	  :
9294	  else
9295	  # We have old collect2
9296	  hardcode_direct=unsupported
9297	  # It fails to find uninstalled libraries when the uninstalled
9298	  # path is not listed in the libpath.  Setting hardcode_minus_L
9299	  # to unsupported forces relinking
9300	  hardcode_minus_L=yes
9301	  hardcode_libdir_flag_spec='-L$libdir'
9302	  hardcode_libdir_separator=
9303	  fi
9304	  ;;
9305	esac
9306	shared_flag='-shared'
9307	if test "$aix_use_runtimelinking" = yes; then
9308	  shared_flag="$shared_flag "'${wl}-G'
9309	fi
9310      else
9311	# not using gcc
9312	if test "$host_cpu" = ia64; then
9313	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9314	# chokes on -Wl,-G. The following line is correct:
9315	  shared_flag='-G'
9316	else
9317	  if test "$aix_use_runtimelinking" = yes; then
9318	    shared_flag='${wl}-G'
9319	  else
9320	    shared_flag='${wl}-bM:SRE'
9321	  fi
9322	fi
9323      fi
9324
9325      export_dynamic_flag_spec='${wl}-bexpall'
9326      # It seems that -bexpall does not export symbols beginning with
9327      # underscore (_), so it is better to generate a list of symbols to export.
9328      always_export_symbols=yes
9329      if test "$aix_use_runtimelinking" = yes; then
9330	# Warning - without using the other runtime loading flags (-brtl),
9331	# -berok will link without error, but may produce a broken library.
9332	allow_undefined_flag='-berok'
9333        # Determine the default libpath from the value encoded in an
9334        # empty executable.
9335        if test "${lt_cv_aix_libpath+set}" = set; then
9336  aix_libpath=$lt_cv_aix_libpath
9337else
9338  if test "${lt_cv_aix_libpath_+set}" = set; then :
9339  $as_echo_n "(cached) " >&6
9340else
9341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342/* end confdefs.h.  */
9343
9344int
9345main ()
9346{
9347
9348  ;
9349  return 0;
9350}
9351_ACEOF
9352if ac_fn_c_try_link "$LINENO"; then :
9353
9354  lt_aix_libpath_sed='
9355      /Import File Strings/,/^$/ {
9356	  /^0/ {
9357	      s/^0  *\([^ ]*\) *$/\1/
9358	      p
9359	  }
9360      }'
9361  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9362  # Check for a 64-bit object if we didn't find anything.
9363  if test -z "$lt_cv_aix_libpath_"; then
9364    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9365  fi
9366fi
9367rm -f core conftest.err conftest.$ac_objext \
9368    conftest$ac_exeext conftest.$ac_ext
9369  if test -z "$lt_cv_aix_libpath_"; then
9370    lt_cv_aix_libpath_="/usr/lib:/lib"
9371  fi
9372
9373fi
9374
9375  aix_libpath=$lt_cv_aix_libpath_
9376fi
9377
9378        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9379        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9380      else
9381	if test "$host_cpu" = ia64; then
9382	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9383	  allow_undefined_flag="-z nodefs"
9384	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9385	else
9386	 # Determine the default libpath from the value encoded in an
9387	 # empty executable.
9388	 if test "${lt_cv_aix_libpath+set}" = set; then
9389  aix_libpath=$lt_cv_aix_libpath
9390else
9391  if test "${lt_cv_aix_libpath_+set}" = set; then :
9392  $as_echo_n "(cached) " >&6
9393else
9394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395/* end confdefs.h.  */
9396
9397int
9398main ()
9399{
9400
9401  ;
9402  return 0;
9403}
9404_ACEOF
9405if ac_fn_c_try_link "$LINENO"; then :
9406
9407  lt_aix_libpath_sed='
9408      /Import File Strings/,/^$/ {
9409	  /^0/ {
9410	      s/^0  *\([^ ]*\) *$/\1/
9411	      p
9412	  }
9413      }'
9414  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9415  # Check for a 64-bit object if we didn't find anything.
9416  if test -z "$lt_cv_aix_libpath_"; then
9417    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9418  fi
9419fi
9420rm -f core conftest.err conftest.$ac_objext \
9421    conftest$ac_exeext conftest.$ac_ext
9422  if test -z "$lt_cv_aix_libpath_"; then
9423    lt_cv_aix_libpath_="/usr/lib:/lib"
9424  fi
9425
9426fi
9427
9428  aix_libpath=$lt_cv_aix_libpath_
9429fi
9430
9431	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9432	  # Warning - without using the other run time loading flags,
9433	  # -berok will link without error, but may produce a broken library.
9434	  no_undefined_flag=' ${wl}-bernotok'
9435	  allow_undefined_flag=' ${wl}-berok'
9436	  if test "$with_gnu_ld" = yes; then
9437	    # We only use this code for GNU lds that support --whole-archive.
9438	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9439	  else
9440	    # Exported symbols can be pulled into shared objects from archives
9441	    whole_archive_flag_spec='$convenience'
9442	  fi
9443	  archive_cmds_need_lc=yes
9444	  # This is similar to how AIX traditionally builds its shared libraries.
9445	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9446	fi
9447      fi
9448      ;;
9449
9450    amigaos*)
9451      case $host_cpu in
9452      powerpc)
9453            # see comment about AmigaOS4 .so support
9454            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455            archive_expsym_cmds=''
9456        ;;
9457      m68k)
9458            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)'
9459            hardcode_libdir_flag_spec='-L$libdir'
9460            hardcode_minus_L=yes
9461        ;;
9462      esac
9463      ;;
9464
9465    bsdi[45]*)
9466      export_dynamic_flag_spec=-rdynamic
9467      ;;
9468
9469    cygwin* | mingw* | pw32* | cegcc*)
9470      # When not using gcc, we currently assume that we are using
9471      # Microsoft Visual C++.
9472      # hardcode_libdir_flag_spec is actually meaningless, as there is
9473      # no search path for DLLs.
9474      case $cc_basename in
9475      cl*)
9476	# Native MSVC
9477	hardcode_libdir_flag_spec=' '
9478	allow_undefined_flag=unsupported
9479	always_export_symbols=yes
9480	file_list_spec='@'
9481	# Tell ltmain to make .lib files, not .a files.
9482	libext=lib
9483	# Tell ltmain to make .dll files, not .so files.
9484	shrext_cmds=".dll"
9485	# FIXME: Setting linknames here is a bad hack.
9486	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9487	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9488	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9489	  else
9490	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9491	  fi~
9492	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9493	  linknames='
9494	# The linker will not automatically build a static lib if we build a DLL.
9495	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9496	enable_shared_with_static_runtimes=yes
9497	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9498	# Don't use ranlib
9499	old_postinstall_cmds='chmod 644 $oldlib'
9500	postlink_cmds='lt_outputfile="@OUTPUT@"~
9501	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9502	  case $lt_outputfile in
9503	    *.exe|*.EXE) ;;
9504	    *)
9505	      lt_outputfile="$lt_outputfile.exe"
9506	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9507	      ;;
9508	  esac~
9509	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9510	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9511	    $RM "$lt_outputfile.manifest";
9512	  fi'
9513	;;
9514      *)
9515	# Assume MSVC wrapper
9516	hardcode_libdir_flag_spec=' '
9517	allow_undefined_flag=unsupported
9518	# Tell ltmain to make .lib files, not .a files.
9519	libext=lib
9520	# Tell ltmain to make .dll files, not .so files.
9521	shrext_cmds=".dll"
9522	# FIXME: Setting linknames here is a bad hack.
9523	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9524	# The linker will automatically build a .lib file if we build a DLL.
9525	old_archive_from_new_cmds='true'
9526	# FIXME: Should let the user specify the lib program.
9527	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9528	enable_shared_with_static_runtimes=yes
9529	;;
9530      esac
9531      ;;
9532
9533    darwin* | rhapsody*)
9534
9535
9536  archive_cmds_need_lc=no
9537  hardcode_direct=no
9538  hardcode_automatic=yes
9539  hardcode_shlibpath_var=unsupported
9540  if test "$lt_cv_ld_force_load" = "yes"; then
9541    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9542  else
9543    whole_archive_flag_spec=''
9544  fi
9545  link_all_deplibs=yes
9546  allow_undefined_flag="$_lt_dar_allow_undefined"
9547  case $cc_basename in
9548     ifort*) _lt_dar_can_shared=yes ;;
9549     *) _lt_dar_can_shared=$GCC ;;
9550  esac
9551  if test "$_lt_dar_can_shared" = "yes"; then
9552    output_verbose_link_cmd=func_echo_all
9553    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9554    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9555    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9556    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9557
9558  else
9559  ld_shlibs=no
9560  fi
9561
9562      ;;
9563
9564    dgux*)
9565      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9566      hardcode_libdir_flag_spec='-L$libdir'
9567      hardcode_shlibpath_var=no
9568      ;;
9569
9570    freebsd1*)
9571      ld_shlibs=no
9572      ;;
9573
9574    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9575    # support.  Future versions do this automatically, but an explicit c++rt0.o
9576    # does not break anything, and helps significantly (at the cost of a little
9577    # extra space).
9578    freebsd2.2*)
9579      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9580      hardcode_libdir_flag_spec='-R$libdir'
9581      hardcode_direct=yes
9582      hardcode_shlibpath_var=no
9583      ;;
9584
9585    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9586    freebsd2*)
9587      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9588      hardcode_direct=yes
9589      hardcode_minus_L=yes
9590      hardcode_shlibpath_var=no
9591      ;;
9592
9593    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9594    freebsd* | dragonfly*)
9595      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596      hardcode_libdir_flag_spec='-R$libdir'
9597      hardcode_direct=yes
9598      hardcode_shlibpath_var=no
9599      ;;
9600
9601    hpux9*)
9602      if test "$GCC" = yes; then
9603	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9604      else
9605	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'
9606      fi
9607      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9608      hardcode_libdir_separator=:
9609      hardcode_direct=yes
9610
9611      # hardcode_minus_L: Not really in the search PATH,
9612      # but as the default location of the library.
9613      hardcode_minus_L=yes
9614      export_dynamic_flag_spec='${wl}-E'
9615      ;;
9616
9617    hpux10*)
9618      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9619	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9620      else
9621	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9622      fi
9623      if test "$with_gnu_ld" = no; then
9624	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9625	hardcode_libdir_flag_spec_ld='+b $libdir'
9626	hardcode_libdir_separator=:
9627	hardcode_direct=yes
9628	hardcode_direct_absolute=yes
9629	export_dynamic_flag_spec='${wl}-E'
9630	# hardcode_minus_L: Not really in the search PATH,
9631	# but as the default location of the library.
9632	hardcode_minus_L=yes
9633      fi
9634      ;;
9635
9636    hpux11*)
9637      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9638	case $host_cpu in
9639	hppa*64*)
9640	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9641	  ;;
9642	ia64*)
9643	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9644	  ;;
9645	*)
9646	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9647	  ;;
9648	esac
9649      else
9650	case $host_cpu in
9651	hppa*64*)
9652	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9653	  ;;
9654	ia64*)
9655	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9656	  ;;
9657	*)
9658
9659	  # Older versions of the 11.00 compiler do not understand -b yet
9660	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9661	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9662$as_echo_n "checking if $CC understands -b... " >&6; }
9663if test "${lt_cv_prog_compiler__b+set}" = set; then :
9664  $as_echo_n "(cached) " >&6
9665else
9666  lt_cv_prog_compiler__b=no
9667   save_LDFLAGS="$LDFLAGS"
9668   LDFLAGS="$LDFLAGS -b"
9669   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9670   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9671     # The linker can only warn and ignore the option if not recognized
9672     # So say no if there are warnings
9673     if test -s conftest.err; then
9674       # Append any errors to the config.log.
9675       cat conftest.err 1>&5
9676       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9677       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9678       if diff conftest.exp conftest.er2 >/dev/null; then
9679         lt_cv_prog_compiler__b=yes
9680       fi
9681     else
9682       lt_cv_prog_compiler__b=yes
9683     fi
9684   fi
9685   $RM -r conftest*
9686   LDFLAGS="$save_LDFLAGS"
9687
9688fi
9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9690$as_echo "$lt_cv_prog_compiler__b" >&6; }
9691
9692if test x"$lt_cv_prog_compiler__b" = xyes; then
9693    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9694else
9695    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9696fi
9697
9698	  ;;
9699	esac
9700      fi
9701      if test "$with_gnu_ld" = no; then
9702	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9703	hardcode_libdir_separator=:
9704
9705	case $host_cpu in
9706	hppa*64*|ia64*)
9707	  hardcode_direct=no
9708	  hardcode_shlibpath_var=no
9709	  ;;
9710	*)
9711	  hardcode_direct=yes
9712	  hardcode_direct_absolute=yes
9713	  export_dynamic_flag_spec='${wl}-E'
9714
9715	  # hardcode_minus_L: Not really in the search PATH,
9716	  # but as the default location of the library.
9717	  hardcode_minus_L=yes
9718	  ;;
9719	esac
9720      fi
9721      ;;
9722
9723    irix5* | irix6* | nonstopux*)
9724      if test "$GCC" = yes; then
9725	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9726	# Try to use the -exported_symbol ld option, if it does not
9727	# work, assume that -exports_file does not work either and
9728	# implicitly export all symbols.
9729	# This should be the same for all languages, so no per-tag cache variable.
9730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9731$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9732if test "${lt_cv_irix_exported_symbol+set}" = set; then :
9733  $as_echo_n "(cached) " >&6
9734else
9735  save_LDFLAGS="$LDFLAGS"
9736	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9737	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738/* end confdefs.h.  */
9739int foo (void) { return 0; }
9740_ACEOF
9741if ac_fn_c_try_link "$LINENO"; then :
9742  lt_cv_irix_exported_symbol=yes
9743else
9744  lt_cv_irix_exported_symbol=no
9745fi
9746rm -f core conftest.err conftest.$ac_objext \
9747    conftest$ac_exeext conftest.$ac_ext
9748           LDFLAGS="$save_LDFLAGS"
9749fi
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9751$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9752	if test "$lt_cv_irix_exported_symbol" = yes; then
9753          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9754	fi
9755      else
9756	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9757	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9758      fi
9759      archive_cmds_need_lc='no'
9760      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9761      hardcode_libdir_separator=:
9762      inherit_rpath=yes
9763      link_all_deplibs=yes
9764      ;;
9765
9766    netbsd*)
9767      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9768	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9769      else
9770	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9771      fi
9772      hardcode_libdir_flag_spec='-R$libdir'
9773      hardcode_direct=yes
9774      hardcode_shlibpath_var=no
9775      ;;
9776
9777    newsos6)
9778      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779      hardcode_direct=yes
9780      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9781      hardcode_libdir_separator=:
9782      hardcode_shlibpath_var=no
9783      ;;
9784
9785    *nto* | *qnx*)
9786      ;;
9787
9788    openbsd*)
9789      if test -f /usr/libexec/ld.so; then
9790	hardcode_direct=yes
9791	hardcode_shlibpath_var=no
9792	hardcode_direct_absolute=yes
9793	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9794	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9795	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9796	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9797	  export_dynamic_flag_spec='${wl}-E'
9798	else
9799	  case $host_os in
9800	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9801	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9802	     hardcode_libdir_flag_spec='-R$libdir'
9803	     ;;
9804	   *)
9805	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9806	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9807	     ;;
9808	  esac
9809	fi
9810      else
9811	ld_shlibs=no
9812      fi
9813      ;;
9814
9815    os2*)
9816      hardcode_libdir_flag_spec='-L$libdir'
9817      hardcode_minus_L=yes
9818      allow_undefined_flag=unsupported
9819      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'
9820      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9821      ;;
9822
9823    osf3*)
9824      if test "$GCC" = yes; then
9825	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9826	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9827      else
9828	allow_undefined_flag=' -expect_unresolved \*'
9829	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9830      fi
9831      archive_cmds_need_lc='no'
9832      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9833      hardcode_libdir_separator=:
9834      ;;
9835
9836    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9837      if test "$GCC" = yes; then
9838	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9839	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9840	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9841      else
9842	allow_undefined_flag=' -expect_unresolved \*'
9843	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9844	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9845	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9846
9847	# Both c and cxx compiler support -rpath directly
9848	hardcode_libdir_flag_spec='-rpath $libdir'
9849      fi
9850      archive_cmds_need_lc='no'
9851      hardcode_libdir_separator=:
9852      ;;
9853
9854    solaris*)
9855      no_undefined_flag=' -z defs'
9856      if test "$GCC" = yes; then
9857	wlarc='${wl}'
9858	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9859	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9860	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9861      else
9862	case `$CC -V 2>&1` in
9863	*"Compilers 5.0"*)
9864	  wlarc=''
9865	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9867	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9868	  ;;
9869	*)
9870	  wlarc='${wl}'
9871	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9872	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9873	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9874	  ;;
9875	esac
9876      fi
9877      hardcode_libdir_flag_spec='-R$libdir'
9878      hardcode_shlibpath_var=no
9879      case $host_os in
9880      solaris2.[0-5] | solaris2.[0-5].*) ;;
9881      *)
9882	# The compiler driver will combine and reorder linker options,
9883	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9884	# but is careful enough not to reorder.
9885	# Supported since Solaris 2.6 (maybe 2.5.1?)
9886	if test "$GCC" = yes; then
9887	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9888	else
9889	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9890	fi
9891	;;
9892      esac
9893      link_all_deplibs=yes
9894      ;;
9895
9896    sunos4*)
9897      if test "x$host_vendor" = xsequent; then
9898	# Use $CC to link under sequent, because it throws in some extra .o
9899	# files that make .init and .fini sections work.
9900	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9901      else
9902	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9903      fi
9904      hardcode_libdir_flag_spec='-L$libdir'
9905      hardcode_direct=yes
9906      hardcode_minus_L=yes
9907      hardcode_shlibpath_var=no
9908      ;;
9909
9910    sysv4)
9911      case $host_vendor in
9912	sni)
9913	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914	  hardcode_direct=yes # is this really true???
9915	;;
9916	siemens)
9917	  ## LD is ld it makes a PLAMLIB
9918	  ## CC just makes a GrossModule.
9919	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9920	  reload_cmds='$CC -r -o $output$reload_objs'
9921	  hardcode_direct=no
9922        ;;
9923	motorola)
9924	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9925	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9926	;;
9927      esac
9928      runpath_var='LD_RUN_PATH'
9929      hardcode_shlibpath_var=no
9930      ;;
9931
9932    sysv4.3*)
9933      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934      hardcode_shlibpath_var=no
9935      export_dynamic_flag_spec='-Bexport'
9936      ;;
9937
9938    sysv4*MP*)
9939      if test -d /usr/nec; then
9940	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941	hardcode_shlibpath_var=no
9942	runpath_var=LD_RUN_PATH
9943	hardcode_runpath_var=yes
9944	ld_shlibs=yes
9945      fi
9946      ;;
9947
9948    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9949      no_undefined_flag='${wl}-z,text'
9950      archive_cmds_need_lc=no
9951      hardcode_shlibpath_var=no
9952      runpath_var='LD_RUN_PATH'
9953
9954      if test "$GCC" = yes; then
9955	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9956	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9957      else
9958	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9959	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9960      fi
9961      ;;
9962
9963    sysv5* | sco3.2v5* | sco5v6*)
9964      # Note: We can NOT use -z defs as we might desire, because we do not
9965      # link with -lc, and that would cause any symbols used from libc to
9966      # always be unresolved, which means just about no library would
9967      # ever link correctly.  If we're not using GNU ld we use -z text
9968      # though, which does catch some bad symbols but isn't as heavy-handed
9969      # as -z defs.
9970      no_undefined_flag='${wl}-z,text'
9971      allow_undefined_flag='${wl}-z,nodefs'
9972      archive_cmds_need_lc=no
9973      hardcode_shlibpath_var=no
9974      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9975      hardcode_libdir_separator=':'
9976      link_all_deplibs=yes
9977      export_dynamic_flag_spec='${wl}-Bexport'
9978      runpath_var='LD_RUN_PATH'
9979
9980      if test "$GCC" = yes; then
9981	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9982	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9983      else
9984	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9985	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986      fi
9987      ;;
9988
9989    uts4*)
9990      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991      hardcode_libdir_flag_spec='-L$libdir'
9992      hardcode_shlibpath_var=no
9993      ;;
9994
9995    *)
9996      ld_shlibs=no
9997      ;;
9998    esac
9999
10000    if test x$host_vendor = xsni; then
10001      case $host in
10002      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10003	export_dynamic_flag_spec='${wl}-Blargedynsym'
10004	;;
10005      esac
10006    fi
10007  fi
10008
10009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10010$as_echo "$ld_shlibs" >&6; }
10011test "$ld_shlibs" = no && can_build_shared=no
10012
10013with_gnu_ld=$with_gnu_ld
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029#
10030# Do we need to explicitly link libc?
10031#
10032case "x$archive_cmds_need_lc" in
10033x|xyes)
10034  # Assume -lc should be added
10035  archive_cmds_need_lc=yes
10036
10037  if test "$enable_shared" = yes && test "$GCC" = yes; then
10038    case $archive_cmds in
10039    *'~'*)
10040      # FIXME: we may have to deal with multi-command sequences.
10041      ;;
10042    '$CC '*)
10043      # Test whether the compiler implicitly links with -lc since on some
10044      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10045      # to ld, don't add -lc before -lgcc.
10046      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10047$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10048if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10049  $as_echo_n "(cached) " >&6
10050else
10051  $RM conftest*
10052	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10053
10054	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10055  (eval $ac_compile) 2>&5
10056  ac_status=$?
10057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10058  test $ac_status = 0; } 2>conftest.err; then
10059	  soname=conftest
10060	  lib=conftest
10061	  libobjs=conftest.$ac_objext
10062	  deplibs=
10063	  wl=$lt_prog_compiler_wl
10064	  pic_flag=$lt_prog_compiler_pic
10065	  compiler_flags=-v
10066	  linker_flags=-v
10067	  verstring=
10068	  output_objdir=.
10069	  libname=conftest
10070	  lt_save_allow_undefined_flag=$allow_undefined_flag
10071	  allow_undefined_flag=
10072	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10073  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10074  ac_status=$?
10075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10076  test $ac_status = 0; }
10077	  then
10078	    lt_cv_archive_cmds_need_lc=no
10079	  else
10080	    lt_cv_archive_cmds_need_lc=yes
10081	  fi
10082	  allow_undefined_flag=$lt_save_allow_undefined_flag
10083	else
10084	  cat conftest.err 1>&5
10085	fi
10086	$RM conftest*
10087
10088fi
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10090$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10091      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10092      ;;
10093    esac
10094  fi
10095  ;;
10096esac
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10255$as_echo_n "checking dynamic linker characteristics... " >&6; }
10256
10257if test "$GCC" = yes; then
10258  case $host_os in
10259    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10260    *) lt_awk_arg="/^libraries:/" ;;
10261  esac
10262  case $host_os in
10263    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10264    *) lt_sed_strip_eq="s,=/,/,g" ;;
10265  esac
10266  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10267  case $lt_search_path_spec in
10268  *\;*)
10269    # if the path contains ";" then we assume it to be the separator
10270    # otherwise default to the standard path separator (i.e. ":") - it is
10271    # assumed that no part of a normal pathname contains ";" but that should
10272    # okay in the real world where ";" in dirpaths is itself problematic.
10273    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10274    ;;
10275  *)
10276    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10277    ;;
10278  esac
10279  # Ok, now we have the path, separated by spaces, we can step through it
10280  # and add multilib dir if necessary.
10281  lt_tmp_lt_search_path_spec=
10282  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10283  for lt_sys_path in $lt_search_path_spec; do
10284    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10285      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10286    else
10287      test -d "$lt_sys_path" && \
10288	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10289    fi
10290  done
10291  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10292BEGIN {RS=" "; FS="/|\n";} {
10293  lt_foo="";
10294  lt_count=0;
10295  for (lt_i = NF; lt_i > 0; lt_i--) {
10296    if ($lt_i != "" && $lt_i != ".") {
10297      if ($lt_i == "..") {
10298        lt_count++;
10299      } else {
10300        if (lt_count == 0) {
10301          lt_foo="/" $lt_i lt_foo;
10302        } else {
10303          lt_count--;
10304        }
10305      }
10306    }
10307  }
10308  if (lt_foo != "") { lt_freq[lt_foo]++; }
10309  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10310}'`
10311  # AWK program above erroneously prepends '/' to C:/dos/paths
10312  # for these hosts.
10313  case $host_os in
10314    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10315      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10316  esac
10317  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10318else
10319  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10320fi
10321library_names_spec=
10322libname_spec='lib$name'
10323soname_spec=
10324shrext_cmds=".so"
10325postinstall_cmds=
10326postuninstall_cmds=
10327finish_cmds=
10328finish_eval=
10329shlibpath_var=
10330shlibpath_overrides_runpath=unknown
10331version_type=none
10332dynamic_linker="$host_os ld.so"
10333sys_lib_dlsearch_path_spec="/lib /usr/lib"
10334need_lib_prefix=unknown
10335hardcode_into_libs=no
10336
10337# when you set need_version to no, make sure it does not cause -set_version
10338# flags to be left without arguments
10339need_version=unknown
10340
10341case $host_os in
10342aix3*)
10343  version_type=linux
10344  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10345  shlibpath_var=LIBPATH
10346
10347  # AIX 3 has no versioning support, so we append a major version to the name.
10348  soname_spec='${libname}${release}${shared_ext}$major'
10349  ;;
10350
10351aix[4-9]*)
10352  version_type=linux
10353  need_lib_prefix=no
10354  need_version=no
10355  hardcode_into_libs=yes
10356  if test "$host_cpu" = ia64; then
10357    # AIX 5 supports IA64
10358    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10359    shlibpath_var=LD_LIBRARY_PATH
10360  else
10361    # With GCC up to 2.95.x, collect2 would create an import file
10362    # for dependence libraries.  The import file would start with
10363    # the line `#! .'.  This would cause the generated library to
10364    # depend on `.', always an invalid library.  This was fixed in
10365    # development snapshots of GCC prior to 3.0.
10366    case $host_os in
10367      aix4 | aix4.[01] | aix4.[01].*)
10368      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10369	   echo ' yes '
10370	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10371	:
10372      else
10373	can_build_shared=no
10374      fi
10375      ;;
10376    esac
10377    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10378    # soname into executable. Probably we can add versioning support to
10379    # collect2, so additional links can be useful in future.
10380    if test "$aix_use_runtimelinking" = yes; then
10381      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10382      # instead of lib<name>.a to let people know that these are not
10383      # typical AIX shared libraries.
10384      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385    else
10386      # We preserve .a as extension for shared libraries through AIX4.2
10387      # and later when we are not doing run time linking.
10388      library_names_spec='${libname}${release}.a $libname.a'
10389      soname_spec='${libname}${release}${shared_ext}$major'
10390    fi
10391    shlibpath_var=LIBPATH
10392  fi
10393  ;;
10394
10395amigaos*)
10396  case $host_cpu in
10397  powerpc)
10398    # Since July 2007 AmigaOS4 officially supports .so libraries.
10399    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10400    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401    ;;
10402  m68k)
10403    library_names_spec='$libname.ixlibrary $libname.a'
10404    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10405    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10406    ;;
10407  esac
10408  ;;
10409
10410beos*)
10411  library_names_spec='${libname}${shared_ext}'
10412  dynamic_linker="$host_os ld.so"
10413  shlibpath_var=LIBRARY_PATH
10414  ;;
10415
10416bsdi[45]*)
10417  version_type=linux
10418  need_version=no
10419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420  soname_spec='${libname}${release}${shared_ext}$major'
10421  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10422  shlibpath_var=LD_LIBRARY_PATH
10423  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10424  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10425  # the default ld.so.conf also contains /usr/contrib/lib and
10426  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10427  # libtool to hard-code these into programs
10428  ;;
10429
10430cygwin* | mingw* | pw32* | cegcc*)
10431  version_type=windows
10432  shrext_cmds=".dll"
10433  need_version=no
10434  need_lib_prefix=no
10435
10436  case $GCC,$cc_basename in
10437  yes,*)
10438    # gcc
10439    library_names_spec='$libname.dll.a'
10440    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10441    postinstall_cmds='base_file=`basename \${file}`~
10442      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10443      dldir=$destdir/`dirname \$dlpath`~
10444      test -d \$dldir || mkdir -p \$dldir~
10445      $install_prog $dir/$dlname \$dldir/$dlname~
10446      chmod a+x \$dldir/$dlname~
10447      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10448        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10449      fi'
10450    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10451      dlpath=$dir/\$dldll~
10452       $RM \$dlpath'
10453    shlibpath_overrides_runpath=yes
10454
10455    case $host_os in
10456    cygwin*)
10457      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10458      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10459
10460      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10461      ;;
10462    mingw* | cegcc*)
10463      # MinGW DLLs use traditional 'lib' prefix
10464      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10465      ;;
10466    pw32*)
10467      # pw32 DLLs use 'pw' prefix rather than 'lib'
10468      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10469      ;;
10470    esac
10471    dynamic_linker='Win32 ld.exe'
10472    ;;
10473
10474  *,cl*)
10475    # Native MSVC
10476    libname_spec='$name'
10477    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10478    library_names_spec='${libname}.dll.lib'
10479
10480    case $build_os in
10481    mingw*)
10482      sys_lib_search_path_spec=
10483      lt_save_ifs=$IFS
10484      IFS=';'
10485      for lt_path in $LIB
10486      do
10487        IFS=$lt_save_ifs
10488        # Let DOS variable expansion print the short 8.3 style file name.
10489        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10490        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10491      done
10492      IFS=$lt_save_ifs
10493      # Convert to MSYS style.
10494      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10495      ;;
10496    cygwin*)
10497      # Convert to unix form, then to dos form, then back to unix form
10498      # but this time dos style (no spaces!) so that the unix form looks
10499      # like /cygdrive/c/PROGRA~1:/cygdr...
10500      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10501      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10502      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10503      ;;
10504    *)
10505      sys_lib_search_path_spec="$LIB"
10506      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10507        # It is most probably a Windows format PATH.
10508        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10509      else
10510        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10511      fi
10512      # FIXME: find the short name or the path components, as spaces are
10513      # common. (e.g. "Program Files" -> "PROGRA~1")
10514      ;;
10515    esac
10516
10517    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10518    postinstall_cmds='base_file=`basename \${file}`~
10519      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10520      dldir=$destdir/`dirname \$dlpath`~
10521      test -d \$dldir || mkdir -p \$dldir~
10522      $install_prog $dir/$dlname \$dldir/$dlname'
10523    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10524      dlpath=$dir/\$dldll~
10525       $RM \$dlpath'
10526    shlibpath_overrides_runpath=yes
10527    dynamic_linker='Win32 link.exe'
10528    ;;
10529
10530  *)
10531    # Assume MSVC wrapper
10532    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10533    dynamic_linker='Win32 ld.exe'
10534    ;;
10535  esac
10536  # FIXME: first we should search . and the directory the executable is in
10537  shlibpath_var=PATH
10538  ;;
10539
10540darwin* | rhapsody*)
10541  dynamic_linker="$host_os dyld"
10542  version_type=darwin
10543  need_lib_prefix=no
10544  need_version=no
10545  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10546  soname_spec='${libname}${release}${major}$shared_ext'
10547  shlibpath_overrides_runpath=yes
10548  shlibpath_var=DYLD_LIBRARY_PATH
10549  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10550
10551  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10552  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10553  ;;
10554
10555dgux*)
10556  version_type=linux
10557  need_lib_prefix=no
10558  need_version=no
10559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10560  soname_spec='${libname}${release}${shared_ext}$major'
10561  shlibpath_var=LD_LIBRARY_PATH
10562  ;;
10563
10564freebsd1*)
10565  dynamic_linker=no
10566  ;;
10567
10568freebsd* | dragonfly*)
10569  # DragonFly does not have aout.  When/if they implement a new
10570  # versioning mechanism, adjust this.
10571  if test -x /usr/bin/objformat; then
10572    objformat=`/usr/bin/objformat`
10573  else
10574    case $host_os in
10575    freebsd[123]*) objformat=aout ;;
10576    *) objformat=elf ;;
10577    esac
10578  fi
10579  version_type=freebsd-$objformat
10580  case $version_type in
10581    freebsd-elf*)
10582      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10583      need_version=no
10584      need_lib_prefix=no
10585      ;;
10586    freebsd-*)
10587      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10588      need_version=yes
10589      ;;
10590  esac
10591  shlibpath_var=LD_LIBRARY_PATH
10592  case $host_os in
10593  freebsd2*)
10594    shlibpath_overrides_runpath=yes
10595    ;;
10596  freebsd3.[01]* | freebsdelf3.[01]*)
10597    shlibpath_overrides_runpath=yes
10598    hardcode_into_libs=yes
10599    ;;
10600  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10601  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10602    shlibpath_overrides_runpath=no
10603    hardcode_into_libs=yes
10604    ;;
10605  *) # from 4.6 on, and DragonFly
10606    shlibpath_overrides_runpath=yes
10607    hardcode_into_libs=yes
10608    ;;
10609  esac
10610  ;;
10611
10612gnu*)
10613  version_type=linux
10614  need_lib_prefix=no
10615  need_version=no
10616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10617  soname_spec='${libname}${release}${shared_ext}$major'
10618  shlibpath_var=LD_LIBRARY_PATH
10619  hardcode_into_libs=yes
10620  ;;
10621
10622haiku*)
10623  version_type=linux
10624  need_lib_prefix=no
10625  need_version=no
10626  dynamic_linker="$host_os runtime_loader"
10627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10628  soname_spec='${libname}${release}${shared_ext}$major'
10629  shlibpath_var=LIBRARY_PATH
10630  shlibpath_overrides_runpath=yes
10631  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10632  hardcode_into_libs=yes
10633  ;;
10634
10635hpux9* | hpux10* | hpux11*)
10636  # Give a soname corresponding to the major version so that dld.sl refuses to
10637  # link against other versions.
10638  version_type=sunos
10639  need_lib_prefix=no
10640  need_version=no
10641  case $host_cpu in
10642  ia64*)
10643    shrext_cmds='.so'
10644    hardcode_into_libs=yes
10645    dynamic_linker="$host_os dld.so"
10646    shlibpath_var=LD_LIBRARY_PATH
10647    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10648    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649    soname_spec='${libname}${release}${shared_ext}$major'
10650    if test "X$HPUX_IA64_MODE" = X32; then
10651      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10652    else
10653      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10654    fi
10655    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10656    ;;
10657  hppa*64*)
10658    shrext_cmds='.sl'
10659    hardcode_into_libs=yes
10660    dynamic_linker="$host_os dld.sl"
10661    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10662    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10663    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664    soname_spec='${libname}${release}${shared_ext}$major'
10665    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10666    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10667    ;;
10668  *)
10669    shrext_cmds='.sl'
10670    dynamic_linker="$host_os dld.sl"
10671    shlibpath_var=SHLIB_PATH
10672    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10673    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674    soname_spec='${libname}${release}${shared_ext}$major'
10675    ;;
10676  esac
10677  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10678  postinstall_cmds='chmod 555 $lib'
10679  # or fails outright, so override atomically:
10680  install_override_mode=555
10681  ;;
10682
10683interix[3-9]*)
10684  version_type=linux
10685  need_lib_prefix=no
10686  need_version=no
10687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10688  soname_spec='${libname}${release}${shared_ext}$major'
10689  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10690  shlibpath_var=LD_LIBRARY_PATH
10691  shlibpath_overrides_runpath=no
10692  hardcode_into_libs=yes
10693  ;;
10694
10695irix5* | irix6* | nonstopux*)
10696  case $host_os in
10697    nonstopux*) version_type=nonstopux ;;
10698    *)
10699	if test "$lt_cv_prog_gnu_ld" = yes; then
10700		version_type=linux
10701	else
10702		version_type=irix
10703	fi ;;
10704  esac
10705  need_lib_prefix=no
10706  need_version=no
10707  soname_spec='${libname}${release}${shared_ext}$major'
10708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10709  case $host_os in
10710  irix5* | nonstopux*)
10711    libsuff= shlibsuff=
10712    ;;
10713  *)
10714    case $LD in # libtool.m4 will add one of these switches to LD
10715    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10716      libsuff= shlibsuff= libmagic=32-bit;;
10717    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10718      libsuff=32 shlibsuff=N32 libmagic=N32;;
10719    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10720      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10721    *) libsuff= shlibsuff= libmagic=never-match;;
10722    esac
10723    ;;
10724  esac
10725  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10726  shlibpath_overrides_runpath=no
10727  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10728  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10729  hardcode_into_libs=yes
10730  ;;
10731
10732# No shared lib support for Linux oldld, aout, or coff.
10733linux*oldld* | linux*aout* | linux*coff*)
10734  dynamic_linker=no
10735  ;;
10736
10737# This must be Linux ELF.
10738linux* | k*bsd*-gnu | kopensolaris*-gnu)
10739  version_type=linux
10740  need_lib_prefix=no
10741  need_version=no
10742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743  soname_spec='${libname}${release}${shared_ext}$major'
10744  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10745  shlibpath_var=LD_LIBRARY_PATH
10746  shlibpath_overrides_runpath=no
10747
10748  # Some binutils ld are patched to set DT_RUNPATH
10749  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10750  $as_echo_n "(cached) " >&6
10751else
10752  lt_cv_shlibpath_overrides_runpath=no
10753    save_LDFLAGS=$LDFLAGS
10754    save_libdir=$libdir
10755    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10756	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10757    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758/* end confdefs.h.  */
10759
10760int
10761main ()
10762{
10763
10764  ;
10765  return 0;
10766}
10767_ACEOF
10768if ac_fn_c_try_link "$LINENO"; then :
10769  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10770  lt_cv_shlibpath_overrides_runpath=yes
10771fi
10772fi
10773rm -f core conftest.err conftest.$ac_objext \
10774    conftest$ac_exeext conftest.$ac_ext
10775    LDFLAGS=$save_LDFLAGS
10776    libdir=$save_libdir
10777
10778fi
10779
10780  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10781
10782  # This implies no fast_install, which is unacceptable.
10783  # Some rework will be needed to allow for fast_install
10784  # before this can be enabled.
10785  hardcode_into_libs=yes
10786
10787  # Append ld.so.conf contents to the search path
10788  if test -f /etc/ld.so.conf; then
10789    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10790    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10791  fi
10792
10793  # We used to test for /lib/ld.so.1 and disable shared libraries on
10794  # powerpc, because MkLinux only supported shared libraries with the
10795  # GNU dynamic linker.  Since this was broken with cross compilers,
10796  # most powerpc-linux boxes support dynamic linking these days and
10797  # people can always --disable-shared, the test was removed, and we
10798  # assume the GNU/Linux dynamic linker is in use.
10799  dynamic_linker='GNU/Linux ld.so'
10800  ;;
10801
10802netbsd*)
10803  version_type=sunos
10804  need_lib_prefix=no
10805  need_version=no
10806  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10807    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10808    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10809    dynamic_linker='NetBSD (a.out) ld.so'
10810  else
10811    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10812    soname_spec='${libname}${release}${shared_ext}$major'
10813    dynamic_linker='NetBSD ld.elf_so'
10814  fi
10815  shlibpath_var=LD_LIBRARY_PATH
10816  shlibpath_overrides_runpath=yes
10817  hardcode_into_libs=yes
10818  ;;
10819
10820newsos6)
10821  version_type=linux
10822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823  shlibpath_var=LD_LIBRARY_PATH
10824  shlibpath_overrides_runpath=yes
10825  ;;
10826
10827*nto* | *qnx*)
10828  version_type=qnx
10829  need_lib_prefix=no
10830  need_version=no
10831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832  soname_spec='${libname}${release}${shared_ext}$major'
10833  shlibpath_var=LD_LIBRARY_PATH
10834  shlibpath_overrides_runpath=no
10835  hardcode_into_libs=yes
10836  dynamic_linker='ldqnx.so'
10837  ;;
10838
10839openbsd*)
10840  version_type=sunos
10841  sys_lib_dlsearch_path_spec="/usr/lib"
10842  need_lib_prefix=no
10843  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10844  case $host_os in
10845    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10846    *)				need_version=no  ;;
10847  esac
10848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10849  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10850  shlibpath_var=LD_LIBRARY_PATH
10851  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10852    case $host_os in
10853      openbsd2.[89] | openbsd2.[89].*)
10854	shlibpath_overrides_runpath=no
10855	;;
10856      *)
10857	shlibpath_overrides_runpath=yes
10858	;;
10859      esac
10860  else
10861    shlibpath_overrides_runpath=yes
10862  fi
10863  ;;
10864
10865os2*)
10866  libname_spec='$name'
10867  shrext_cmds=".dll"
10868  need_lib_prefix=no
10869  library_names_spec='$libname${shared_ext} $libname.a'
10870  dynamic_linker='OS/2 ld.exe'
10871  shlibpath_var=LIBPATH
10872  ;;
10873
10874osf3* | osf4* | osf5*)
10875  version_type=osf
10876  need_lib_prefix=no
10877  need_version=no
10878  soname_spec='${libname}${release}${shared_ext}$major'
10879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880  shlibpath_var=LD_LIBRARY_PATH
10881  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10882  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10883  ;;
10884
10885rdos*)
10886  dynamic_linker=no
10887  ;;
10888
10889solaris*)
10890  version_type=linux
10891  need_lib_prefix=no
10892  need_version=no
10893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894  soname_spec='${libname}${release}${shared_ext}$major'
10895  shlibpath_var=LD_LIBRARY_PATH
10896  shlibpath_overrides_runpath=yes
10897  hardcode_into_libs=yes
10898  # ldd complains unless libraries are executable
10899  postinstall_cmds='chmod +x $lib'
10900  ;;
10901
10902sunos4*)
10903  version_type=sunos
10904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10905  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10906  shlibpath_var=LD_LIBRARY_PATH
10907  shlibpath_overrides_runpath=yes
10908  if test "$with_gnu_ld" = yes; then
10909    need_lib_prefix=no
10910  fi
10911  need_version=yes
10912  ;;
10913
10914sysv4 | sysv4.3*)
10915  version_type=linux
10916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917  soname_spec='${libname}${release}${shared_ext}$major'
10918  shlibpath_var=LD_LIBRARY_PATH
10919  case $host_vendor in
10920    sni)
10921      shlibpath_overrides_runpath=no
10922      need_lib_prefix=no
10923      runpath_var=LD_RUN_PATH
10924      ;;
10925    siemens)
10926      need_lib_prefix=no
10927      ;;
10928    motorola)
10929      need_lib_prefix=no
10930      need_version=no
10931      shlibpath_overrides_runpath=no
10932      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10933      ;;
10934  esac
10935  ;;
10936
10937sysv4*MP*)
10938  if test -d /usr/nec ;then
10939    version_type=linux
10940    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10941    soname_spec='$libname${shared_ext}.$major'
10942    shlibpath_var=LD_LIBRARY_PATH
10943  fi
10944  ;;
10945
10946sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10947  version_type=freebsd-elf
10948  need_lib_prefix=no
10949  need_version=no
10950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10951  soname_spec='${libname}${release}${shared_ext}$major'
10952  shlibpath_var=LD_LIBRARY_PATH
10953  shlibpath_overrides_runpath=yes
10954  hardcode_into_libs=yes
10955  if test "$with_gnu_ld" = yes; then
10956    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10957  else
10958    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10959    case $host_os in
10960      sco3.2v5*)
10961        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10962	;;
10963    esac
10964  fi
10965  sys_lib_dlsearch_path_spec='/usr/lib'
10966  ;;
10967
10968tpf*)
10969  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10970  version_type=linux
10971  need_lib_prefix=no
10972  need_version=no
10973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974  shlibpath_var=LD_LIBRARY_PATH
10975  shlibpath_overrides_runpath=no
10976  hardcode_into_libs=yes
10977  ;;
10978
10979uts4*)
10980  version_type=linux
10981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982  soname_spec='${libname}${release}${shared_ext}$major'
10983  shlibpath_var=LD_LIBRARY_PATH
10984  ;;
10985
10986*)
10987  dynamic_linker=no
10988  ;;
10989esac
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10991$as_echo "$dynamic_linker" >&6; }
10992test "$dynamic_linker" = no && can_build_shared=no
10993
10994variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10995if test "$GCC" = yes; then
10996  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10997fi
10998
10999if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11000  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11001fi
11002if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11003  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11004fi
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11098$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11099hardcode_action=
11100if test -n "$hardcode_libdir_flag_spec" ||
11101   test -n "$runpath_var" ||
11102   test "X$hardcode_automatic" = "Xyes" ; then
11103
11104  # We can hardcode non-existent directories.
11105  if test "$hardcode_direct" != no &&
11106     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11107     # have to relink, otherwise we might link with an installed library
11108     # when we should be linking with a yet-to-be-installed one
11109     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11110     test "$hardcode_minus_L" != no; then
11111    # Linking always hardcodes the temporary library directory.
11112    hardcode_action=relink
11113  else
11114    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11115    hardcode_action=immediate
11116  fi
11117else
11118  # We cannot hardcode anything, or else we can only hardcode existing
11119  # directories.
11120  hardcode_action=unsupported
11121fi
11122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11123$as_echo "$hardcode_action" >&6; }
11124
11125if test "$hardcode_action" = relink ||
11126   test "$inherit_rpath" = yes; then
11127  # Fast installation is not supported
11128  enable_fast_install=no
11129elif test "$shlibpath_overrides_runpath" = yes ||
11130     test "$enable_shared" = no; then
11131  # Fast installation is not necessary
11132  enable_fast_install=needless
11133fi
11134
11135
11136
11137
11138
11139
11140  if test "x$enable_dlopen" != xyes; then
11141  enable_dlopen=unknown
11142  enable_dlopen_self=unknown
11143  enable_dlopen_self_static=unknown
11144else
11145  lt_cv_dlopen=no
11146  lt_cv_dlopen_libs=
11147
11148  case $host_os in
11149  beos*)
11150    lt_cv_dlopen="load_add_on"
11151    lt_cv_dlopen_libs=
11152    lt_cv_dlopen_self=yes
11153    ;;
11154
11155  mingw* | pw32* | cegcc*)
11156    lt_cv_dlopen="LoadLibrary"
11157    lt_cv_dlopen_libs=
11158    ;;
11159
11160  cygwin*)
11161    lt_cv_dlopen="dlopen"
11162    lt_cv_dlopen_libs=
11163    ;;
11164
11165  darwin*)
11166  # if libdl is installed we need to link against it
11167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11168$as_echo_n "checking for dlopen in -ldl... " >&6; }
11169if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11170  $as_echo_n "(cached) " >&6
11171else
11172  ac_check_lib_save_LIBS=$LIBS
11173LIBS="-ldl  $LIBS"
11174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175/* end confdefs.h.  */
11176
11177/* Override any GCC internal prototype to avoid an error.
11178   Use char because int might match the return type of a GCC
11179   builtin and then its argument prototype would still apply.  */
11180#ifdef __cplusplus
11181extern "C"
11182#endif
11183char dlopen ();
11184int
11185main ()
11186{
11187return dlopen ();
11188  ;
11189  return 0;
11190}
11191_ACEOF
11192if ac_fn_c_try_link "$LINENO"; then :
11193  ac_cv_lib_dl_dlopen=yes
11194else
11195  ac_cv_lib_dl_dlopen=no
11196fi
11197rm -f core conftest.err conftest.$ac_objext \
11198    conftest$ac_exeext conftest.$ac_ext
11199LIBS=$ac_check_lib_save_LIBS
11200fi
11201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11202$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11203if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11204  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11205else
11206
11207    lt_cv_dlopen="dyld"
11208    lt_cv_dlopen_libs=
11209    lt_cv_dlopen_self=yes
11210
11211fi
11212
11213    ;;
11214
11215  *)
11216    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11217if test "x$ac_cv_func_shl_load" = x""yes; then :
11218  lt_cv_dlopen="shl_load"
11219else
11220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11221$as_echo_n "checking for shl_load in -ldld... " >&6; }
11222if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11223  $as_echo_n "(cached) " >&6
11224else
11225  ac_check_lib_save_LIBS=$LIBS
11226LIBS="-ldld  $LIBS"
11227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228/* end confdefs.h.  */
11229
11230/* Override any GCC internal prototype to avoid an error.
11231   Use char because int might match the return type of a GCC
11232   builtin and then its argument prototype would still apply.  */
11233#ifdef __cplusplus
11234extern "C"
11235#endif
11236char shl_load ();
11237int
11238main ()
11239{
11240return shl_load ();
11241  ;
11242  return 0;
11243}
11244_ACEOF
11245if ac_fn_c_try_link "$LINENO"; then :
11246  ac_cv_lib_dld_shl_load=yes
11247else
11248  ac_cv_lib_dld_shl_load=no
11249fi
11250rm -f core conftest.err conftest.$ac_objext \
11251    conftest$ac_exeext conftest.$ac_ext
11252LIBS=$ac_check_lib_save_LIBS
11253fi
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11255$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11256if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11257  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11258else
11259  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11260if test "x$ac_cv_func_dlopen" = x""yes; then :
11261  lt_cv_dlopen="dlopen"
11262else
11263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11264$as_echo_n "checking for dlopen in -ldl... " >&6; }
11265if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11266  $as_echo_n "(cached) " >&6
11267else
11268  ac_check_lib_save_LIBS=$LIBS
11269LIBS="-ldl  $LIBS"
11270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271/* end confdefs.h.  */
11272
11273/* Override any GCC internal prototype to avoid an error.
11274   Use char because int might match the return type of a GCC
11275   builtin and then its argument prototype would still apply.  */
11276#ifdef __cplusplus
11277extern "C"
11278#endif
11279char dlopen ();
11280int
11281main ()
11282{
11283return dlopen ();
11284  ;
11285  return 0;
11286}
11287_ACEOF
11288if ac_fn_c_try_link "$LINENO"; then :
11289  ac_cv_lib_dl_dlopen=yes
11290else
11291  ac_cv_lib_dl_dlopen=no
11292fi
11293rm -f core conftest.err conftest.$ac_objext \
11294    conftest$ac_exeext conftest.$ac_ext
11295LIBS=$ac_check_lib_save_LIBS
11296fi
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11298$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11299if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11300  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11301else
11302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11303$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11304if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11305  $as_echo_n "(cached) " >&6
11306else
11307  ac_check_lib_save_LIBS=$LIBS
11308LIBS="-lsvld  $LIBS"
11309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310/* end confdefs.h.  */
11311
11312/* Override any GCC internal prototype to avoid an error.
11313   Use char because int might match the return type of a GCC
11314   builtin and then its argument prototype would still apply.  */
11315#ifdef __cplusplus
11316extern "C"
11317#endif
11318char dlopen ();
11319int
11320main ()
11321{
11322return dlopen ();
11323  ;
11324  return 0;
11325}
11326_ACEOF
11327if ac_fn_c_try_link "$LINENO"; then :
11328  ac_cv_lib_svld_dlopen=yes
11329else
11330  ac_cv_lib_svld_dlopen=no
11331fi
11332rm -f core conftest.err conftest.$ac_objext \
11333    conftest$ac_exeext conftest.$ac_ext
11334LIBS=$ac_check_lib_save_LIBS
11335fi
11336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11337$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11338if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11339  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11340else
11341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11342$as_echo_n "checking for dld_link in -ldld... " >&6; }
11343if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11344  $as_echo_n "(cached) " >&6
11345else
11346  ac_check_lib_save_LIBS=$LIBS
11347LIBS="-ldld  $LIBS"
11348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349/* end confdefs.h.  */
11350
11351/* Override any GCC internal prototype to avoid an error.
11352   Use char because int might match the return type of a GCC
11353   builtin and then its argument prototype would still apply.  */
11354#ifdef __cplusplus
11355extern "C"
11356#endif
11357char dld_link ();
11358int
11359main ()
11360{
11361return dld_link ();
11362  ;
11363  return 0;
11364}
11365_ACEOF
11366if ac_fn_c_try_link "$LINENO"; then :
11367  ac_cv_lib_dld_dld_link=yes
11368else
11369  ac_cv_lib_dld_dld_link=no
11370fi
11371rm -f core conftest.err conftest.$ac_objext \
11372    conftest$ac_exeext conftest.$ac_ext
11373LIBS=$ac_check_lib_save_LIBS
11374fi
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11376$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11377if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11378  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11379fi
11380
11381
11382fi
11383
11384
11385fi
11386
11387
11388fi
11389
11390
11391fi
11392
11393
11394fi
11395
11396    ;;
11397  esac
11398
11399  if test "x$lt_cv_dlopen" != xno; then
11400    enable_dlopen=yes
11401  else
11402    enable_dlopen=no
11403  fi
11404
11405  case $lt_cv_dlopen in
11406  dlopen)
11407    save_CPPFLAGS="$CPPFLAGS"
11408    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11409
11410    save_LDFLAGS="$LDFLAGS"
11411    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11412
11413    save_LIBS="$LIBS"
11414    LIBS="$lt_cv_dlopen_libs $LIBS"
11415
11416    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11417$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11418if test "${lt_cv_dlopen_self+set}" = set; then :
11419  $as_echo_n "(cached) " >&6
11420else
11421  	  if test "$cross_compiling" = yes; then :
11422  lt_cv_dlopen_self=cross
11423else
11424  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11425  lt_status=$lt_dlunknown
11426  cat > conftest.$ac_ext <<_LT_EOF
11427#line $LINENO "configure"
11428#include "confdefs.h"
11429
11430#if HAVE_DLFCN_H
11431#include <dlfcn.h>
11432#endif
11433
11434#include <stdio.h>
11435
11436#ifdef RTLD_GLOBAL
11437#  define LT_DLGLOBAL		RTLD_GLOBAL
11438#else
11439#  ifdef DL_GLOBAL
11440#    define LT_DLGLOBAL		DL_GLOBAL
11441#  else
11442#    define LT_DLGLOBAL		0
11443#  endif
11444#endif
11445
11446/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11447   find out it does not work in some platform. */
11448#ifndef LT_DLLAZY_OR_NOW
11449#  ifdef RTLD_LAZY
11450#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11451#  else
11452#    ifdef DL_LAZY
11453#      define LT_DLLAZY_OR_NOW		DL_LAZY
11454#    else
11455#      ifdef RTLD_NOW
11456#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11457#      else
11458#        ifdef DL_NOW
11459#          define LT_DLLAZY_OR_NOW	DL_NOW
11460#        else
11461#          define LT_DLLAZY_OR_NOW	0
11462#        endif
11463#      endif
11464#    endif
11465#  endif
11466#endif
11467
11468/* When -fvisbility=hidden is used, assume the code has been annotated
11469   correspondingly for the symbols needed.  */
11470#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11471int fnord () __attribute__((visibility("default")));
11472#endif
11473
11474int fnord () { return 42; }
11475int main ()
11476{
11477  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11478  int status = $lt_dlunknown;
11479
11480  if (self)
11481    {
11482      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11483      else
11484        {
11485	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11486          else puts (dlerror ());
11487	}
11488      /* dlclose (self); */
11489    }
11490  else
11491    puts (dlerror ());
11492
11493  return status;
11494}
11495_LT_EOF
11496  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11497  (eval $ac_link) 2>&5
11498  ac_status=$?
11499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11500  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11501    (./conftest; exit; ) >&5 2>/dev/null
11502    lt_status=$?
11503    case x$lt_status in
11504      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11505      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11506      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11507    esac
11508  else :
11509    # compilation failed
11510    lt_cv_dlopen_self=no
11511  fi
11512fi
11513rm -fr conftest*
11514
11515
11516fi
11517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11518$as_echo "$lt_cv_dlopen_self" >&6; }
11519
11520    if test "x$lt_cv_dlopen_self" = xyes; then
11521      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11522      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11523$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11524if test "${lt_cv_dlopen_self_static+set}" = set; then :
11525  $as_echo_n "(cached) " >&6
11526else
11527  	  if test "$cross_compiling" = yes; then :
11528  lt_cv_dlopen_self_static=cross
11529else
11530  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11531  lt_status=$lt_dlunknown
11532  cat > conftest.$ac_ext <<_LT_EOF
11533#line $LINENO "configure"
11534#include "confdefs.h"
11535
11536#if HAVE_DLFCN_H
11537#include <dlfcn.h>
11538#endif
11539
11540#include <stdio.h>
11541
11542#ifdef RTLD_GLOBAL
11543#  define LT_DLGLOBAL		RTLD_GLOBAL
11544#else
11545#  ifdef DL_GLOBAL
11546#    define LT_DLGLOBAL		DL_GLOBAL
11547#  else
11548#    define LT_DLGLOBAL		0
11549#  endif
11550#endif
11551
11552/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11553   find out it does not work in some platform. */
11554#ifndef LT_DLLAZY_OR_NOW
11555#  ifdef RTLD_LAZY
11556#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11557#  else
11558#    ifdef DL_LAZY
11559#      define LT_DLLAZY_OR_NOW		DL_LAZY
11560#    else
11561#      ifdef RTLD_NOW
11562#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11563#      else
11564#        ifdef DL_NOW
11565#          define LT_DLLAZY_OR_NOW	DL_NOW
11566#        else
11567#          define LT_DLLAZY_OR_NOW	0
11568#        endif
11569#      endif
11570#    endif
11571#  endif
11572#endif
11573
11574/* When -fvisbility=hidden is used, assume the code has been annotated
11575   correspondingly for the symbols needed.  */
11576#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11577int fnord () __attribute__((visibility("default")));
11578#endif
11579
11580int fnord () { return 42; }
11581int main ()
11582{
11583  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11584  int status = $lt_dlunknown;
11585
11586  if (self)
11587    {
11588      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11589      else
11590        {
11591	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11592          else puts (dlerror ());
11593	}
11594      /* dlclose (self); */
11595    }
11596  else
11597    puts (dlerror ());
11598
11599  return status;
11600}
11601_LT_EOF
11602  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11603  (eval $ac_link) 2>&5
11604  ac_status=$?
11605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11606  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11607    (./conftest; exit; ) >&5 2>/dev/null
11608    lt_status=$?
11609    case x$lt_status in
11610      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11611      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11612      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11613    esac
11614  else :
11615    # compilation failed
11616    lt_cv_dlopen_self_static=no
11617  fi
11618fi
11619rm -fr conftest*
11620
11621
11622fi
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11624$as_echo "$lt_cv_dlopen_self_static" >&6; }
11625    fi
11626
11627    CPPFLAGS="$save_CPPFLAGS"
11628    LDFLAGS="$save_LDFLAGS"
11629    LIBS="$save_LIBS"
11630    ;;
11631  esac
11632
11633  case $lt_cv_dlopen_self in
11634  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11635  *) enable_dlopen_self=unknown ;;
11636  esac
11637
11638  case $lt_cv_dlopen_self_static in
11639  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11640  *) enable_dlopen_self_static=unknown ;;
11641  esac
11642fi
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660striplib=
11661old_striplib=
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11663$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11664if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11665  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11666  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11668$as_echo "yes" >&6; }
11669else
11670# FIXME - insert some real tests, host_os isn't really good enough
11671  case $host_os in
11672  darwin*)
11673    if test -n "$STRIP" ; then
11674      striplib="$STRIP -x"
11675      old_striplib="$STRIP -S"
11676      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11677$as_echo "yes" >&6; }
11678    else
11679      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680$as_echo "no" >&6; }
11681    fi
11682    ;;
11683  *)
11684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685$as_echo "no" >&6; }
11686    ;;
11687  esac
11688fi
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701  # Report which library types will actually be built
11702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11703$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11705$as_echo "$can_build_shared" >&6; }
11706
11707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11708$as_echo_n "checking whether to build shared libraries... " >&6; }
11709  test "$can_build_shared" = "no" && enable_shared=no
11710
11711  # On AIX, shared libraries and static libraries use the same namespace, and
11712  # are all built from PIC.
11713  case $host_os in
11714  aix3*)
11715    test "$enable_shared" = yes && enable_static=no
11716    if test -n "$RANLIB"; then
11717      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11718      postinstall_cmds='$RANLIB $lib'
11719    fi
11720    ;;
11721
11722  aix[4-9]*)
11723    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11724      test "$enable_shared" = yes && enable_static=no
11725    fi
11726    ;;
11727  esac
11728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11729$as_echo "$enable_shared" >&6; }
11730
11731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11732$as_echo_n "checking whether to build static libraries... " >&6; }
11733  # Make sure either enable_shared or enable_static is yes.
11734  test "$enable_shared" = yes || enable_static=yes
11735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11736$as_echo "$enable_static" >&6; }
11737
11738
11739
11740
11741fi
11742ac_ext=c
11743ac_cpp='$CPP $CPPFLAGS'
11744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11746ac_compiler_gnu=$ac_cv_c_compiler_gnu
11747
11748CC="$lt_save_CC"
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762        ac_config_commands="$ac_config_commands libtool"
11763
11764
11765
11766
11767# Only expand once:
11768
11769
11770
11771
11772
11773test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
11774test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
11775
11776
11777CANONICAL_HOST=$host
11778
11779
11780# Check whether --enable-largefile was given.
11781if test "${enable_largefile+set}" = set; then :
11782  enableval=$enable_largefile;
11783fi
11784
11785if test "$enable_largefile" != no; then
11786
11787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11788$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11789if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11790  $as_echo_n "(cached) " >&6
11791else
11792  ac_cv_sys_largefile_CC=no
11793     if test "$GCC" != yes; then
11794       ac_save_CC=$CC
11795       while :; do
11796	 # IRIX 6.2 and later do not support large files by default,
11797	 # so use the C compiler's -n32 option if that helps.
11798	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799/* end confdefs.h.  */
11800#include <sys/types.h>
11801 /* Check that off_t can represent 2**63 - 1 correctly.
11802    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11803    since some C++ compilers masquerading as C compilers
11804    incorrectly reject 9223372036854775807.  */
11805#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11806  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11807		       && LARGE_OFF_T % 2147483647 == 1)
11808		      ? 1 : -1];
11809int
11810main ()
11811{
11812
11813  ;
11814  return 0;
11815}
11816_ACEOF
11817	 if ac_fn_c_try_compile "$LINENO"; then :
11818  break
11819fi
11820rm -f core conftest.err conftest.$ac_objext
11821	 CC="$CC -n32"
11822	 if ac_fn_c_try_compile "$LINENO"; then :
11823  ac_cv_sys_largefile_CC=' -n32'; break
11824fi
11825rm -f core conftest.err conftest.$ac_objext
11826	 break
11827       done
11828       CC=$ac_save_CC
11829       rm -f conftest.$ac_ext
11830    fi
11831fi
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11833$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11834  if test "$ac_cv_sys_largefile_CC" != no; then
11835    CC=$CC$ac_cv_sys_largefile_CC
11836  fi
11837
11838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11839$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11840if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11841  $as_echo_n "(cached) " >&6
11842else
11843  while :; do
11844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845/* end confdefs.h.  */
11846#include <sys/types.h>
11847 /* Check that off_t can represent 2**63 - 1 correctly.
11848    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11849    since some C++ compilers masquerading as C compilers
11850    incorrectly reject 9223372036854775807.  */
11851#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11852  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11853		       && LARGE_OFF_T % 2147483647 == 1)
11854		      ? 1 : -1];
11855int
11856main ()
11857{
11858
11859  ;
11860  return 0;
11861}
11862_ACEOF
11863if ac_fn_c_try_compile "$LINENO"; then :
11864  ac_cv_sys_file_offset_bits=no; break
11865fi
11866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868/* end confdefs.h.  */
11869#define _FILE_OFFSET_BITS 64
11870#include <sys/types.h>
11871 /* Check that off_t can represent 2**63 - 1 correctly.
11872    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11873    since some C++ compilers masquerading as C compilers
11874    incorrectly reject 9223372036854775807.  */
11875#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11876  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11877		       && LARGE_OFF_T % 2147483647 == 1)
11878		      ? 1 : -1];
11879int
11880main ()
11881{
11882
11883  ;
11884  return 0;
11885}
11886_ACEOF
11887if ac_fn_c_try_compile "$LINENO"; then :
11888  ac_cv_sys_file_offset_bits=64; break
11889fi
11890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891  ac_cv_sys_file_offset_bits=unknown
11892  break
11893done
11894fi
11895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11896$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11897case $ac_cv_sys_file_offset_bits in #(
11898  no | unknown) ;;
11899  *)
11900cat >>confdefs.h <<_ACEOF
11901#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11902_ACEOF
11903;;
11904esac
11905rm -rf conftest*
11906  if test $ac_cv_sys_file_offset_bits = unknown; then
11907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11908$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11909if test "${ac_cv_sys_large_files+set}" = set; then :
11910  $as_echo_n "(cached) " >&6
11911else
11912  while :; do
11913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914/* end confdefs.h.  */
11915#include <sys/types.h>
11916 /* Check that off_t can represent 2**63 - 1 correctly.
11917    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11918    since some C++ compilers masquerading as C compilers
11919    incorrectly reject 9223372036854775807.  */
11920#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11921  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11922		       && LARGE_OFF_T % 2147483647 == 1)
11923		      ? 1 : -1];
11924int
11925main ()
11926{
11927
11928  ;
11929  return 0;
11930}
11931_ACEOF
11932if ac_fn_c_try_compile "$LINENO"; then :
11933  ac_cv_sys_large_files=no; break
11934fi
11935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937/* end confdefs.h.  */
11938#define _LARGE_FILES 1
11939#include <sys/types.h>
11940 /* Check that off_t can represent 2**63 - 1 correctly.
11941    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11942    since some C++ compilers masquerading as C compilers
11943    incorrectly reject 9223372036854775807.  */
11944#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11945  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11946		       && LARGE_OFF_T % 2147483647 == 1)
11947		      ? 1 : -1];
11948int
11949main ()
11950{
11951
11952  ;
11953  return 0;
11954}
11955_ACEOF
11956if ac_fn_c_try_compile "$LINENO"; then :
11957  ac_cv_sys_large_files=1; break
11958fi
11959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960  ac_cv_sys_large_files=unknown
11961  break
11962done
11963fi
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11965$as_echo "$ac_cv_sys_large_files" >&6; }
11966case $ac_cv_sys_large_files in #(
11967  no | unknown) ;;
11968  *)
11969cat >>confdefs.h <<_ACEOF
11970#define _LARGE_FILES $ac_cv_sys_large_files
11971_ACEOF
11972;;
11973esac
11974rm -rf conftest*
11975  fi
11976fi
11977
11978
11979if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
11980	CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
11981fi
11982if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then
11983	CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11984fi
11985
11986
11987
11988
11989
11990
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
11992$as_echo_n "checking for dlopen... " >&6; }
11993if test "${ac_cv_funclib_dlopen+set}" = set; then :
11994  $as_echo_n "(cached) " >&6
11995else
11996
11997if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
11998	ac_save_LIBS="$LIBS"
11999	for ac_lib in "" dl; do
12000		case "$ac_lib" in
12001		"") ;;
12002		yes) ac_lib="" ;;
12003		no) continue ;;
12004		-l*) ;;
12005		*) ac_lib="-l$ac_lib" ;;
12006		esac
12007		LIBS=" $ac_lib  $ac_save_LIBS"
12008		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009/* end confdefs.h.  */
12010
12011#ifdef HAVE_DLFCN_H
12012#include <dlfcn.h>
12013#endif
12014int
12015main ()
12016{
12017dlopen(0,0)
12018  ;
12019  return 0;
12020}
12021_ACEOF
12022if ac_fn_c_try_link "$LINENO"; then :
12023  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
12024fi
12025rm -f core conftest.err conftest.$ac_objext \
12026    conftest$ac_exeext conftest.$ac_ext
12027	done
12028	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
12029	LIBS="$ac_save_LIBS"
12030fi
12031
12032fi
12033
12034
12035eval "ac_res=\$ac_cv_funclib_dlopen"
12036
12037if false; then
12038	for ac_func in dlopen
12039do :
12040  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12041if test "x$ac_cv_func_dlopen" = x""yes; then :
12042  cat >>confdefs.h <<_ACEOF
12043#define HAVE_DLOPEN 1
12044_ACEOF
12045
12046fi
12047done
12048
12049fi
12050# dlopen
12051eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12052eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12053eval "LIB_dlopen=$ac_res"
12054
12055case "$ac_res" in
12056	yes)
12057	eval "ac_cv_func_dlopen=yes"
12058	eval "LIB_dlopen="
12059	cat >>confdefs.h <<_ACEOF
12060#define $ac_tr_func 1
12061_ACEOF
12062
12063	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12064$as_echo "yes" >&6; }
12065	;;
12066	no)
12067	eval "ac_cv_func_dlopen=no"
12068	eval "LIB_dlopen="
12069	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070$as_echo "no" >&6; }
12071	;;
12072	*)
12073	eval "ac_cv_func_dlopen=yes"
12074	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12075	cat >>confdefs.h <<_ACEOF
12076#define $ac_tr_func 1
12077_ACEOF
12078
12079	cat >>confdefs.h <<_ACEOF
12080#define $ac_tr_lib 1
12081_ACEOF
12082
12083	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
12084$as_echo "yes, in $ac_res" >&6; }
12085	;;
12086esac
12087
12088
12089	 if test "$ac_cv_funclib_dlopen" != no; then
12090  HAVE_DLOPEN_TRUE=
12091  HAVE_DLOPEN_FALSE='#'
12092else
12093  HAVE_DLOPEN_TRUE='#'
12094  HAVE_DLOPEN_FALSE=
12095fi
12096
12097
12098
12099
12100aix=no
12101case "$host" in
12102*-*-aix3*)
12103	aix=3
12104	;;
12105*-*-aix[4-9]*)
12106	aix=4
12107	;;
12108esac
12109
12110 if test "$aix" != no; then
12111  AIX_TRUE=
12112  AIX_FALSE='#'
12113else
12114  AIX_TRUE='#'
12115  AIX_FALSE=
12116fi
12117 if test "$aix" = 4; then
12118  AIX4_TRUE=
12119  AIX4_FALSE='#'
12120else
12121  AIX4_TRUE='#'
12122  AIX4_FALSE=
12123fi
12124
12125# Check whether --enable-dynamic-afs was given.
12126if test "${enable_dynamic_afs+set}" = set; then :
12127  enableval=$enable_dynamic_afs;
12128fi
12129
12130
12131if test "$aix" != no; then
12132
12133
12134$as_echo "#define NEED_QSORT 1" >>confdefs.h
12135
12136
12137	if test "$enable_dynamic_afs" != no; then
12138
12139		if test "$ac_cv_func_dlopen" = no; then
12140
12141
12142
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for loadquery" >&5
12144$as_echo_n "checking for loadquery... " >&6; }
12145if test "${ac_cv_funclib_loadquery+set}" = set; then :
12146  $as_echo_n "(cached) " >&6
12147else
12148
12149if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
12150	ac_save_LIBS="$LIBS"
12151	for ac_lib in "" ld; do
12152		case "$ac_lib" in
12153		"") ;;
12154		yes) ac_lib="" ;;
12155		no) continue ;;
12156		-l*) ;;
12157		*) ac_lib="-l$ac_lib" ;;
12158		esac
12159		LIBS=" $ac_lib  $ac_save_LIBS"
12160		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161/* end confdefs.h.  */
12162
12163int
12164main ()
12165{
12166loadquery()
12167  ;
12168  return 0;
12169}
12170_ACEOF
12171if ac_fn_c_try_link "$LINENO"; then :
12172  eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
12173fi
12174rm -f core conftest.err conftest.$ac_objext \
12175    conftest$ac_exeext conftest.$ac_ext
12176	done
12177	eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
12178	LIBS="$ac_save_LIBS"
12179fi
12180
12181fi
12182
12183
12184eval "ac_res=\$ac_cv_funclib_loadquery"
12185
12186if false; then
12187	for ac_func in loadquery
12188do :
12189  ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
12190if test "x$ac_cv_func_loadquery" = x""yes; then :
12191  cat >>confdefs.h <<_ACEOF
12192#define HAVE_LOADQUERY 1
12193_ACEOF
12194
12195fi
12196done
12197
12198fi
12199# loadquery
12200eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12201eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12202eval "LIB_loadquery=$ac_res"
12203
12204case "$ac_res" in
12205	yes)
12206	eval "ac_cv_func_loadquery=yes"
12207	eval "LIB_loadquery="
12208	cat >>confdefs.h <<_ACEOF
12209#define $ac_tr_func 1
12210_ACEOF
12211
12212	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12213$as_echo "yes" >&6; }
12214	;;
12215	no)
12216	eval "ac_cv_func_loadquery=no"
12217	eval "LIB_loadquery="
12218	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219$as_echo "no" >&6; }
12220	;;
12221	*)
12222	eval "ac_cv_func_loadquery=yes"
12223	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12224	cat >>confdefs.h <<_ACEOF
12225#define $ac_tr_func 1
12226_ACEOF
12227
12228	cat >>confdefs.h <<_ACEOF
12229#define $ac_tr_lib 1
12230_ACEOF
12231
12232	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
12233$as_echo "yes, in $ac_res" >&6; }
12234	;;
12235esac
12236
12237
12238		fi
12239		if test "$ac_cv_func_dlopen" != no; then
12240			AIX_EXTRA_KAFS='$(LIB_dlopen)'
12241		elif test "$ac_cv_func_loadquery" != no; then
12242			AIX_EXTRA_KAFS='$(LIB_loadquery)'
12243		else
12244			{ $as_echo "$as_me:${as_lineno-$LINENO}: not using dynloaded AFS library" >&5
12245$as_echo "$as_me: not using dynloaded AFS library" >&6;}
12246			AIX_EXTRA_KAFS=
12247			enable_dynamic_afs=no
12248		fi
12249	else
12250		AIX_EXTRA_KAFS=
12251	fi
12252fi
12253
12254 if test "$enable_dynamic_afs" != no; then
12255  AIX_DYNAMIC_AFS_TRUE=
12256  AIX_DYNAMIC_AFS_FALSE='#'
12257else
12258  AIX_DYNAMIC_AFS_TRUE='#'
12259  AIX_DYNAMIC_AFS_FALSE=
12260fi
12261
12262if test "$aix" != no; then
12263
12264$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
12265
12266fi
12267
12268
12269
12270
12271
12272irix=no
12273case "$host" in
12274*-*-irix*)
12275	irix=yes
12276	;;
12277esac
12278 if test "$irix" != no; then
12279  IRIX_TRUE=
12280  IRIX_FALSE='#'
12281else
12282  IRIX_TRUE='#'
12283  IRIX_FALSE=
12284fi
12285
12286
12287
12288sunos=no
12289case "$host" in
12290*-*-solaris2.7)
12291	sunos=57
12292	;;
12293*-*-solaris2.[89] | *-*-solaris2.1[0-9])
12294	sunos=58
12295	;;
12296*-*-solaris2*)
12297	sunos=50
12298	;;
12299esac
12300if test "$sunos" != no; then
12301
12302cat >>confdefs.h <<_ACEOF
12303#define SunOS $sunos
12304_ACEOF
12305
12306fi
12307
12308
12309
12310$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
12311
12312
12313
12314
12315
12316for ac_prog in 'bison -y' byacc
12317do
12318  # Extract the first word of "$ac_prog", so it can be a program name with args.
12319set dummy $ac_prog; ac_word=$2
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321$as_echo_n "checking for $ac_word... " >&6; }
12322if test "${ac_cv_prog_YACC+set}" = set; then :
12323  $as_echo_n "(cached) " >&6
12324else
12325  if test -n "$YACC"; then
12326  ac_cv_prog_YACC="$YACC" # Let the user override the test.
12327else
12328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329for as_dir in $PATH
12330do
12331  IFS=$as_save_IFS
12332  test -z "$as_dir" && as_dir=.
12333    for ac_exec_ext in '' $ac_executable_extensions; do
12334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335    ac_cv_prog_YACC="$ac_prog"
12336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337    break 2
12338  fi
12339done
12340  done
12341IFS=$as_save_IFS
12342
12343fi
12344fi
12345YACC=$ac_cv_prog_YACC
12346if test -n "$YACC"; then
12347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12348$as_echo "$YACC" >&6; }
12349else
12350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351$as_echo "no" >&6; }
12352fi
12353
12354
12355  test -n "$YACC" && break
12356done
12357test -n "$YACC" || YACC="yacc"
12358
12359for ac_prog in flex lex
12360do
12361  # Extract the first word of "$ac_prog", so it can be a program name with args.
12362set dummy $ac_prog; ac_word=$2
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364$as_echo_n "checking for $ac_word... " >&6; }
12365if test "${ac_cv_prog_LEX+set}" = set; then :
12366  $as_echo_n "(cached) " >&6
12367else
12368  if test -n "$LEX"; then
12369  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12370else
12371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372for as_dir in $PATH
12373do
12374  IFS=$as_save_IFS
12375  test -z "$as_dir" && as_dir=.
12376    for ac_exec_ext in '' $ac_executable_extensions; do
12377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378    ac_cv_prog_LEX="$ac_prog"
12379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380    break 2
12381  fi
12382done
12383  done
12384IFS=$as_save_IFS
12385
12386fi
12387fi
12388LEX=$ac_cv_prog_LEX
12389if test -n "$LEX"; then
12390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12391$as_echo "$LEX" >&6; }
12392else
12393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394$as_echo "no" >&6; }
12395fi
12396
12397
12398  test -n "$LEX" && break
12399done
12400test -n "$LEX" || LEX=":"
12401
12402if test "x$LEX" != "x:"; then
12403  cat >conftest.l <<_ACEOF
12404%%
12405a { ECHO; }
12406b { REJECT; }
12407c { yymore (); }
12408d { yyless (1); }
12409e { yyless (input () != 0); }
12410f { unput (yytext[0]); }
12411. { BEGIN INITIAL; }
12412%%
12413#ifdef YYTEXT_POINTER
12414extern char *yytext;
12415#endif
12416int
12417main (void)
12418{
12419  return ! yylex () + ! yywrap ();
12420}
12421_ACEOF
12422{ { ac_try="$LEX conftest.l"
12423case "(($ac_try" in
12424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425  *) ac_try_echo=$ac_try;;
12426esac
12427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12428$as_echo "$ac_try_echo"; } >&5
12429  (eval "$LEX conftest.l") 2>&5
12430  ac_status=$?
12431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12432  test $ac_status = 0; }
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12434$as_echo_n "checking lex output file root... " >&6; }
12435if test "${ac_cv_prog_lex_root+set}" = set; then :
12436  $as_echo_n "(cached) " >&6
12437else
12438
12439if test -f lex.yy.c; then
12440  ac_cv_prog_lex_root=lex.yy
12441elif test -f lexyy.c; then
12442  ac_cv_prog_lex_root=lexyy
12443else
12444  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12445fi
12446fi
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12448$as_echo "$ac_cv_prog_lex_root" >&6; }
12449LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12450
12451if test -z "${LEXLIB+set}"; then
12452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12453$as_echo_n "checking lex library... " >&6; }
12454if test "${ac_cv_lib_lex+set}" = set; then :
12455  $as_echo_n "(cached) " >&6
12456else
12457
12458    ac_save_LIBS=$LIBS
12459    ac_cv_lib_lex='none needed'
12460    for ac_lib in '' -lfl -ll; do
12461      LIBS="$ac_lib $ac_save_LIBS"
12462      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463/* end confdefs.h.  */
12464`cat $LEX_OUTPUT_ROOT.c`
12465_ACEOF
12466if ac_fn_c_try_link "$LINENO"; then :
12467  ac_cv_lib_lex=$ac_lib
12468fi
12469rm -f core conftest.err conftest.$ac_objext \
12470    conftest$ac_exeext conftest.$ac_ext
12471      test "$ac_cv_lib_lex" != 'none needed' && break
12472    done
12473    LIBS=$ac_save_LIBS
12474
12475fi
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12477$as_echo "$ac_cv_lib_lex" >&6; }
12478  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12479fi
12480
12481
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12483$as_echo_n "checking whether yytext is a pointer... " >&6; }
12484if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12485  $as_echo_n "(cached) " >&6
12486else
12487  # POSIX says lex can declare yytext either as a pointer or an array; the
12488# default is implementation-dependent.  Figure out which it is, since
12489# not all implementations provide the %pointer and %array declarations.
12490ac_cv_prog_lex_yytext_pointer=no
12491ac_save_LIBS=$LIBS
12492LIBS="$LEXLIB $ac_save_LIBS"
12493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494/* end confdefs.h.  */
12495#define YYTEXT_POINTER 1
12496`cat $LEX_OUTPUT_ROOT.c`
12497_ACEOF
12498if ac_fn_c_try_link "$LINENO"; then :
12499  ac_cv_prog_lex_yytext_pointer=yes
12500fi
12501rm -f core conftest.err conftest.$ac_objext \
12502    conftest$ac_exeext conftest.$ac_ext
12503LIBS=$ac_save_LIBS
12504
12505fi
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12507$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12508if test $ac_cv_prog_lex_yytext_pointer = yes; then
12509
12510$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12511
12512fi
12513rm -f conftest.l $LEX_OUTPUT_ROOT.c
12514
12515fi
12516if test "$LEX" = :; then
12517  LEX=${am_missing_run}flex
12518fi
12519for ac_prog in gawk mawk nawk awk
12520do
12521  # Extract the first word of "$ac_prog", so it can be a program name with args.
12522set dummy $ac_prog; ac_word=$2
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524$as_echo_n "checking for $ac_word... " >&6; }
12525if test "${ac_cv_prog_AWK+set}" = set; then :
12526  $as_echo_n "(cached) " >&6
12527else
12528  if test -n "$AWK"; then
12529  ac_cv_prog_AWK="$AWK" # Let the user override the test.
12530else
12531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532for as_dir in $PATH
12533do
12534  IFS=$as_save_IFS
12535  test -z "$as_dir" && as_dir=.
12536    for ac_exec_ext in '' $ac_executable_extensions; do
12537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12538    ac_cv_prog_AWK="$ac_prog"
12539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12540    break 2
12541  fi
12542done
12543  done
12544IFS=$as_save_IFS
12545
12546fi
12547fi
12548AWK=$ac_cv_prog_AWK
12549if test -n "$AWK"; then
12550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12551$as_echo "$AWK" >&6; }
12552else
12553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554$as_echo "no" >&6; }
12555fi
12556
12557
12558  test -n "$AWK" && break
12559done
12560
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ln -s or something else" >&5
12562$as_echo_n "checking for ln -s or something else... " >&6; }
12563if test "${ac_cv_prog_LN_S+set}" = set; then :
12564  $as_echo_n "(cached) " >&6
12565else
12566  rm -f conftestdata
12567if ln -s X conftestdata 2>/dev/null
12568then
12569  rm -f conftestdata
12570  ac_cv_prog_LN_S="ln -s"
12571else
12572  touch conftestdata1
12573  if ln conftestdata1 conftestdata2; then
12574    rm -f conftestdata*
12575    ac_cv_prog_LN_S=ln
12576  else
12577    ac_cv_prog_LN_S=cp
12578  fi
12579fi
12580fi
12581LN_S="$ac_cv_prog_LN_S"
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_LN_S" >&5
12583$as_echo "$ac_cv_prog_LN_S" >&6; }
12584
12585
12586
12587
12588# Check whether --with-mips_abi was given.
12589if test "${with_mips_abi+set}" = set; then :
12590  withval=$with_mips_abi;
12591fi
12592
12593
12594case "$host_os" in
12595irix*)
12596with_mips_abi="${with_mips_abi:-yes}"
12597if test -n "$GCC"; then
12598
12599# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
12600# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
12601#
12602# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
12603# GCC and revert back to O32. The same goes if O32 is asked for - old
12604# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
12605#
12606# Don't you just love *all* the different SGI ABIs?
12607
12608case "${with_mips_abi}" in
12609        32|o32) abi='-mabi=32';  abilibdirext=''     ;;
12610       n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
12611        64) abi='-mabi=64';  abilibdirext='64'   ;;
12612	no) abi=''; abilibdirext='';;
12613         *) as_fn_error "\"Invalid ABI specified\"" "$LINENO" 5 ;;
12614esac
12615if test -n "$abi" ; then
12616ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the $abi option" >&5
12618$as_echo_n "checking if $CC supports the $abi option... " >&6; }
12619if { as_var=$ac_foo; eval "test \"\${$as_var+set}\" = set"; }; then :
12620  $as_echo_n "(cached) " >&6
12621else
12622
12623save_CFLAGS="$CFLAGS"
12624CFLAGS="$CFLAGS $abi"
12625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626/* end confdefs.h.  */
12627
12628int
12629main ()
12630{
12631int x;
12632  ;
12633  return 0;
12634}
12635_ACEOF
12636if ac_fn_c_try_compile "$LINENO"; then :
12637  eval $ac_foo=yes
12638else
12639  eval $ac_foo=no
12640fi
12641rm -f core conftest.err conftest.$ac_objext conftest.$ac_extCFLAGS="$save_CFLAGS"
12642
12643fi
12644
12645ac_res=`eval echo \\\$$ac_foo`
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12647$as_echo "$ac_res" >&6; }
12648if test $ac_res = no; then
12649# Try to figure out why that failed...
12650case $abi in
12651	-mabi=32)
12652	save_CFLAGS="$CFLAGS"
12653	CFLAGS="$CFLAGS -mabi=n32"
12654	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655/* end confdefs.h.  */
12656
12657int
12658main ()
12659{
12660int x;
12661  ;
12662  return 0;
12663}
12664_ACEOF
12665if ac_fn_c_try_compile "$LINENO"; then :
12666  ac_res=yes
12667else
12668  ac_res=no
12669fi
12670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext	CLAGS="$save_CFLAGS"
12671	if test $ac_res = yes; then
12672		# New GCC
12673		as_fn_error "$CC does not support the $with_mips_abi ABI" "$LINENO" 5
12674	fi
12675	# Old GCC
12676	abi=''
12677	abilibdirext=''
12678	;;
12679	-mabi=n32|-mabi=64)
12680		if test $with_mips_abi = yes; then
12681			# Old GCC, default to O32
12682			abi=''
12683			abilibdirext=''
12684		else
12685			# Some broken GCC
12686			as_fn_error "$CC does not support the $with_mips_abi ABI" "$LINENO" 5
12687		fi
12688	;;
12689esac
12690fi #if test $ac_res = no; then
12691fi #if test -n "$abi" ; then
12692else
12693case "${with_mips_abi}" in
12694        32|o32) abi='-32'; abilibdirext=''     ;;
12695       n32|yes) abi='-n32'; abilibdirext='32'  ;;
12696        64) abi='-64'; abilibdirext='64'   ;;
12697	no) abi=''; abilibdirext='';;
12698         *) as_fn_error "\"Invalid ABI specified\"" "$LINENO" 5 ;;
12699esac
12700fi #if test -n "$GCC"; then
12701;;
12702esac
12703
12704CC="$CC $abi"
12705libdir="$libdir$abilibdirext"
12706
12707
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
12709$as_echo_n "checking for __attribute__... " >&6; }
12710if test "${ac_cv___attribute__+set}" = set; then :
12711  $as_echo_n "(cached) " >&6
12712else
12713
12714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715/* end confdefs.h.  */
12716#include <stdlib.h>
12717static void foo(void) __attribute__ ((noreturn));
12718
12719static void
12720foo(void)
12721{
12722  exit(1);
12723}
12724
12725_ACEOF
12726if ac_fn_c_try_compile "$LINENO"; then :
12727  ac_cv___attribute__=yes
12728else
12729  ac_cv___attribute__=no
12730fi
12731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12732fi
12733
12734if test "$ac_cv___attribute__" = "yes"; then
12735
12736$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
12737
12738fi
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
12740$as_echo "$ac_cv___attribute__" >&6; }
12741
12742
12743
12744
12745
12746 if test "$enable_shared" = "yes"; then
12747  ENABLE_SHARED_TRUE=
12748  ENABLE_SHARED_FALSE='#'
12749else
12750  ENABLE_SHARED_TRUE='#'
12751  ENABLE_SHARED_FALSE=
12752fi
12753
12754
12755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
12756$as_echo_n "checking for ld --version-script... " >&6; }
12757if test "${rk_cv_version_script+set}" = set; then :
12758  $as_echo_n "(cached) " >&6
12759else
12760
12761  rk_cv_version_script=no
12762
12763  cat > conftest.map <<EOF
12764HEIM_GSS_V1 {
12765        global: gss*;
12766};
12767HEIM_GSS_V1_1 {
12768        global: gss_init_creds;
12769} HEIM_GSS_V1;
12770EOF
12771cat > conftest.c <<EOF
12772int gss_init_creds(int foo) { return 0; }
12773EOF
12774
12775  if { ac_try='${CC-cc} -c $CFLAGS -fPIC conftest.c'
12776  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12777  (eval $ac_try) 2>&5
12778  ac_status=$?
12779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12780  test $ac_status = 0; }; }  &&
12781     { ac_try='${CC-cc} -shared -Wl,--version-script,conftest.map $CFLAGS $LDFLAGS -o libconftestlib.so conftest.o'
12782  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12783  (eval $ac_try) 2>&5
12784  ac_status=$?
12785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12786  test $ac_status = 0; }; };
12787  then
12788    rk_cv_version_script=yes
12789  fi
12790rm -rf conftest* libconftest* .libs
12791
12792fi
12793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_version_script" >&5
12794$as_echo "$rk_cv_version_script" >&6; }
12795
12796if test $rk_cv_version_script = yes ; then
12797  doversioning=yes
12798  LDFLAGS_VERSION_SCRIPT="-Wl,--version-script,"
12799else
12800  doversioning=no
12801  LDFLAGS_VERSION_SCRIPT=
12802fi
12803
12804
12805 if test $doversioning = yes; then
12806  versionscript_TRUE=
12807  versionscript_FALSE='#'
12808else
12809  versionscript_TRUE='#'
12810  versionscript_FALSE=
12811fi
12812
12813
12814
12815
12816
12817
12818
12819
12820 if test "${cross_compiling}" = yes; then
12821  CROSS_COMPILE_TRUE=
12822  CROSS_COMPILE_FALSE='#'
12823else
12824  CROSS_COMPILE_TRUE='#'
12825  CROSS_COMPILE_FALSE=
12826fi
12827
12828
12829
12830# Check whether --with-cross-tools was given.
12831if test "${with_cross_tools+set}" = set; then :
12832  withval=$with_cross_tools; if test "$withval" = "yes"; then
12833		as_fn_error "Need path to cross tools" "$LINENO" 5
12834	fi
12835	with_cross_tools="${with_cross_tools}/"
12836
12837fi
12838
12839
12840if test "${cross_compiling}" != yes ; then
12841
12842   ASN1_COMPILE="\$(top_builddir)/lib/asn1/asn1_compile\$(EXEEXT)"
12843   SLC="\$(top_builddir)/lib/sl/slc"
12844
12845   ASN1_COMPILE_DEP="\$(ASN1_COMPILE)"
12846   SLC_DEP="\$(SLC)"
12847else
12848   ASN1_COMPILE="${with_cross_tools}asn1_compile"
12849   SLC="${with_cross_tools}slc"
12850
12851   ASN1_COMPILE_DEP=
12852   SLC_DEP=
12853
12854   ac_cv_prog_COMPILE_ET=${with_cross_tools}compile_et
12855
12856fi
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866$as_echo "#define HEIM_WEAK_CRYPTO 1" >>confdefs.h
12867
12868
12869
12870
12871# Check whether --with-openldap was given.
12872if test "${with_openldap+set}" = set; then :
12873  withval=$with_openldap;
12874fi
12875
12876
12877# Check whether --with-openldap-lib was given.
12878if test "${with_openldap_lib+set}" = set; then :
12879  withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
12880  as_fn_error "No argument for --with-openldap-lib" "$LINENO" 5
12881elif test "X$with_openldap" = "X"; then
12882  with_openldap=yes
12883fi
12884fi
12885
12886
12887# Check whether --with-openldap-include was given.
12888if test "${with_openldap_include+set}" = set; then :
12889  withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then
12890  as_fn_error "No argument for --with-openldap-include" "$LINENO" 5
12891elif test "X$with_openldap" = "X"; then
12892  with_openldap=yes
12893fi
12894fi
12895
12896
12897# Check whether --with-openldap-config was given.
12898if test "${with_openldap_config+set}" = set; then :
12899  withval=$with_openldap_config;
12900fi
12901
12902
12903
12904
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openldap" >&5
12906$as_echo_n "checking for openldap... " >&6; }
12907
12908case "$with_openldap" in
12909yes|"") d='' ;;
12910no)	d= ;;
12911*)	d="$with_openldap" ;;
12912esac
12913
12914header_dirs=
12915lib_dirs=
12916for i in $d; do
12917	if test "$with_openldap_include" = ""; then
12918		if test -d "$i/include/openldap"; then
12919			header_dirs="$header_dirs $i/include/openldap"
12920		fi
12921		if test -d "$i/include"; then
12922			header_dirs="$header_dirs $i/include"
12923		fi
12924	fi
12925	if test "$with_openldap_lib" = ""; then
12926		if test -d "$i/lib$abilibdirext"; then
12927			lib_dirs="$lib_dirs $i/lib$abilibdirext"
12928		fi
12929	fi
12930done
12931
12932if test "$with_openldap_include"; then
12933	header_dirs="$with_openldap_include $header_dirs"
12934fi
12935if test "$with_openldap_lib"; then
12936	lib_dirs="$with_openldap_lib $lib_dirs"
12937fi
12938
12939if test "$with_openldap_config" = ""; then
12940	with_openldap_config=''
12941fi
12942
12943openldap_cflags=
12944openldap_libs=
12945
12946case "$with_openldap_config" in
12947yes|no|""|"")
12948	if test -f $with_openldap/bin/ ; then
12949		with_openldap_config=$with_openldap/bin/
12950	fi
12951	;;
12952esac
12953
12954case "$with_openldap_config" in
12955yes|no|"")
12956	;;
12957*)
12958	openldap_cflags="`$with_openldap_config --cflags 2>&1`"
12959	openldap_libs="`$with_openldap_config --libs 2>&1`"
12960	;;
12961esac
12962
12963found=no
12964if test "$with_openldap" != no; then
12965	save_CFLAGS="$CFLAGS"
12966	save_LIBS="$LIBS"
12967	if test "$openldap_cflags" -a "$openldap_libs"; then
12968		CFLAGS="$openldap_cflags $save_CFLAGS"
12969		LIBS="$openldap_libs $save_LIBS"
12970
12971		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972/* end confdefs.h.  */
12973#include <lber.h>
12974#include <ldap.h>
12975int
12976main ()
12977{
12978
12979  ;
12980  return 0;
12981}
12982_ACEOF
12983if ac_fn_c_try_link "$LINENO"; then :
12984
12985			INCLUDE_openldap="$openldap_cflags"
12986			LIB_openldap="$openldap_libs"
12987			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_openldap_config" >&5
12988$as_echo "from $with_openldap_config" >&6; }
12989			found=yes
12990fi
12991rm -f core conftest.err conftest.$ac_objext \
12992    conftest$ac_exeext conftest.$ac_ext
12993	fi
12994	if test "$found" = no; then
12995		ires= lres=
12996		for i in $header_dirs; do
12997			CFLAGS="-I$i $save_CFLAGS"
12998
12999			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000/* end confdefs.h.  */
13001#include <lber.h>
13002#include <ldap.h>
13003int
13004main ()
13005{
13006
13007  ;
13008  return 0;
13009}
13010_ACEOF
13011if ac_fn_c_try_compile "$LINENO"; then :
13012  ires=$i;break
13013fi
13014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015		done
13016		for i in $lib_dirs; do
13017			LIBS="-L$i -lldap -llber  $save_LIBS"
13018			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13019/* end confdefs.h.  */
13020#include <lber.h>
13021#include <ldap.h>
13022int
13023main ()
13024{
13025
13026  ;
13027  return 0;
13028}
13029_ACEOF
13030if ac_fn_c_try_link "$LINENO"; then :
13031  lres=$i;break
13032fi
13033rm -f core conftest.err conftest.$ac_objext \
13034    conftest$ac_exeext conftest.$ac_ext
13035		done
13036		if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
13037			INCLUDE_openldap="-I$ires"
13038			LIB_openldap="-L$lres -lldap -llber "
13039			found=yes
13040			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
13041$as_echo "headers $ires, libraries $lres" >&6; }
13042		fi
13043	fi
13044	CFLAGS="$save_CFLAGS"
13045	LIBS="$save_LIBS"
13046fi
13047
13048if test "$found" = yes; then
13049
13050cat >>confdefs.h <<_ACEOF
13051#define OPENLDAP 1
13052_ACEOF
13053
13054	with_openldap=yes
13055else
13056	with_openldap=no
13057	INCLUDE_openldap=
13058	LIB_openldap=
13059	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060$as_echo "no" >&6; }
13061fi
13062
13063
13064
13065
13066
13067# Check whether --enable-hdb-openldap-module was given.
13068if test "${enable_hdb_openldap_module+set}" = set; then :
13069  enableval=$enable_hdb_openldap_module;
13070fi
13071
13072if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
13073
13074$as_echo "#define OPENLDAP_MODULE 1" >>confdefs.h
13075
13076fi
13077 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
13078  OPENLDAP_MODULE_TRUE=
13079  OPENLDAP_MODULE_FALSE='#'
13080else
13081  OPENLDAP_MODULE_TRUE='#'
13082  OPENLDAP_MODULE_FALSE=
13083fi
13084
13085
13086
13087# Check whether --enable-pk-init was given.
13088if test "${enable_pk_init+set}" = set; then :
13089  enableval=$enable_pk_init;
13090fi
13091
13092if test "$enable_pk_init" != no ;then
13093
13094$as_echo "#define PKINIT 1" >>confdefs.h
13095
13096fi
13097 if test "$enable_pk_init" != no; then
13098  PKINIT_TRUE=
13099  PKINIT_FALSE='#'
13100else
13101  PKINIT_TRUE='#'
13102  PKINIT_FALSE=
13103fi
13104
13105
13106# Check whether --enable-digest was given.
13107if test "${enable_digest+set}" = set; then :
13108  enableval=$enable_digest;
13109fi
13110
13111if test "$enable_digest" != no ;then
13112
13113$as_echo "#define DIGEST 1" >>confdefs.h
13114
13115fi
13116
13117# Check whether --enable-kx509 was given.
13118if test "${enable_kx509+set}" = set; then :
13119  enableval=$enable_kx509;
13120fi
13121
13122if test "$enable_kx509" != no ;then
13123
13124$as_echo "#define KX509 1" >>confdefs.h
13125
13126fi
13127
13128
13129
13130if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13131	if test -n "$ac_tool_prefix"; then
13132  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13133set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135$as_echo_n "checking for $ac_word... " >&6; }
13136if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13137  $as_echo_n "(cached) " >&6
13138else
13139  case $PKG_CONFIG in
13140  [\\/]* | ?:[\\/]*)
13141  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13142  ;;
13143  *)
13144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145for as_dir in $PATH
13146do
13147  IFS=$as_save_IFS
13148  test -z "$as_dir" && as_dir=.
13149    for ac_exec_ext in '' $ac_executable_extensions; do
13150  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153    break 2
13154  fi
13155done
13156  done
13157IFS=$as_save_IFS
13158
13159  ;;
13160esac
13161fi
13162PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13163if test -n "$PKG_CONFIG"; then
13164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13165$as_echo "$PKG_CONFIG" >&6; }
13166else
13167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168$as_echo "no" >&6; }
13169fi
13170
13171
13172fi
13173if test -z "$ac_cv_path_PKG_CONFIG"; then
13174  ac_pt_PKG_CONFIG=$PKG_CONFIG
13175  # Extract the first word of "pkg-config", so it can be a program name with args.
13176set dummy pkg-config; ac_word=$2
13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178$as_echo_n "checking for $ac_word... " >&6; }
13179if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
13180  $as_echo_n "(cached) " >&6
13181else
13182  case $ac_pt_PKG_CONFIG in
13183  [\\/]* | ?:[\\/]*)
13184  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13185  ;;
13186  *)
13187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188for as_dir in $PATH
13189do
13190  IFS=$as_save_IFS
13191  test -z "$as_dir" && as_dir=.
13192    for ac_exec_ext in '' $ac_executable_extensions; do
13193  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13194    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196    break 2
13197  fi
13198done
13199  done
13200IFS=$as_save_IFS
13201
13202  ;;
13203esac
13204fi
13205ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13206if test -n "$ac_pt_PKG_CONFIG"; then
13207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13208$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13209else
13210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211$as_echo "no" >&6; }
13212fi
13213
13214  if test "x$ac_pt_PKG_CONFIG" = x; then
13215    PKG_CONFIG=""
13216  else
13217    case $cross_compiling:$ac_tool_warned in
13218yes:)
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13221ac_tool_warned=yes ;;
13222esac
13223    PKG_CONFIG=$ac_pt_PKG_CONFIG
13224  fi
13225else
13226  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13227fi
13228
13229fi
13230if test -n "$PKG_CONFIG"; then
13231	_pkg_min_version=0.9.0
13232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13233$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13234	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13235		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13236$as_echo "yes" >&6; }
13237	else
13238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239$as_echo "no" >&6; }
13240		PKG_CONFIG=""
13241	fi
13242
13243fi
13244
13245
13246# Check whether --with-capng was given.
13247if test "${with_capng+set}" = set; then :
13248  withval=$with_capng;
13249else
13250  with_capng=check
13251fi
13252
13253if test "$with_capng" != "no"; then
13254
13255pkg_failed=no
13256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAPNG" >&5
13257$as_echo_n "checking for CAPNG... " >&6; }
13258
13259if test -n "$PKG_CONFIG"; then
13260    if test -n "$CAPNG_CFLAGS"; then
13261        pkg_cv_CAPNG_CFLAGS="$CAPNG_CFLAGS"
13262    else
13263        if test -n "$PKG_CONFIG" && \
13264    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5
13265  ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5
13266  ac_status=$?
13267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13268  test $ac_status = 0; }; then
13269  pkg_cv_CAPNG_CFLAGS=`$PKG_CONFIG --cflags "libcap-ng >= 0.4.0" 2>/dev/null`
13270else
13271  pkg_failed=yes
13272fi
13273    fi
13274else
13275	pkg_failed=untried
13276fi
13277if test -n "$PKG_CONFIG"; then
13278    if test -n "$CAPNG_LIBS"; then
13279        pkg_cv_CAPNG_LIBS="$CAPNG_LIBS"
13280    else
13281        if test -n "$PKG_CONFIG" && \
13282    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5
13283  ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5
13284  ac_status=$?
13285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13286  test $ac_status = 0; }; then
13287  pkg_cv_CAPNG_LIBS=`$PKG_CONFIG --libs "libcap-ng >= 0.4.0" 2>/dev/null`
13288else
13289  pkg_failed=yes
13290fi
13291    fi
13292else
13293	pkg_failed=untried
13294fi
13295
13296
13297
13298if test $pkg_failed = yes; then
13299
13300if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13301        _pkg_short_errors_supported=yes
13302else
13303        _pkg_short_errors_supported=no
13304fi
13305        if test $_pkg_short_errors_supported = yes; then
13306	        CAPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"`
13307        else
13308	        CAPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"`
13309        fi
13310	# Put the nasty error message in config.log where it belongs
13311	echo "$CAPNG_PKG_ERRORS" >&5
13312
13313	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314$as_echo "no" >&6; }
13315                with_capng=no
13316elif test $pkg_failed = untried; then
13317	with_capng=no
13318else
13319	CAPNG_CFLAGS=$pkg_cv_CAPNG_CFLAGS
13320	CAPNG_LIBS=$pkg_cv_CAPNG_LIBS
13321        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13322$as_echo "yes" >&6; }
13323	with_capng=yes
13324fi
13325fi
13326if test "$with_capng" = "yes"; then
13327
13328cat >>confdefs.h <<_ACEOF
13329#define HAVE_CAPNG 1
13330_ACEOF
13331
13332fi
13333 if test "$with_capng" != "no"; then
13334  HAVE_CAPNG_TRUE=
13335  HAVE_CAPNG_FALSE='#'
13336else
13337  HAVE_CAPNG_TRUE='#'
13338  HAVE_CAPNG_FALSE=
13339fi
13340
13341
13342
13343
13344
13345
13346# Check whether --with-sqlite3 was given.
13347if test "${with_sqlite3+set}" = set; then :
13348  withval=$with_sqlite3;
13349fi
13350
13351
13352# Check whether --with-sqlite3-lib was given.
13353if test "${with_sqlite3_lib+set}" = set; then :
13354  withval=$with_sqlite3_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
13355  as_fn_error "No argument for --with-sqlite3-lib" "$LINENO" 5
13356elif test "X$with_sqlite3" = "X"; then
13357  with_sqlite3=yes
13358fi
13359fi
13360
13361
13362# Check whether --with-sqlite3-include was given.
13363if test "${with_sqlite3_include+set}" = set; then :
13364  withval=$with_sqlite3_include; if test "$withval" = "yes" -o "$withval" = "no"; then
13365  as_fn_error "No argument for --with-sqlite3-include" "$LINENO" 5
13366elif test "X$with_sqlite3" = "X"; then
13367  with_sqlite3=yes
13368fi
13369fi
13370
13371
13372# Check whether --with-sqlite3-config was given.
13373if test "${with_sqlite3_config+set}" = set; then :
13374  withval=$with_sqlite3_config;
13375fi
13376
13377
13378
13379
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
13381$as_echo_n "checking for sqlite3... " >&6; }
13382
13383case "$with_sqlite3" in
13384yes|"") d='' ;;
13385no)	d= ;;
13386*)	d="$with_sqlite3" ;;
13387esac
13388
13389header_dirs=
13390lib_dirs=
13391for i in $d; do
13392	if test "$with_sqlite3_include" = ""; then
13393		if test -d "$i/include/sqlite3"; then
13394			header_dirs="$header_dirs $i/include/sqlite3"
13395		fi
13396		if test -d "$i/include"; then
13397			header_dirs="$header_dirs $i/include"
13398		fi
13399	fi
13400	if test "$with_sqlite3_lib" = ""; then
13401		if test -d "$i/lib$abilibdirext"; then
13402			lib_dirs="$lib_dirs $i/lib$abilibdirext"
13403		fi
13404	fi
13405done
13406
13407if test "$with_sqlite3_include"; then
13408	header_dirs="$with_sqlite3_include $header_dirs"
13409fi
13410if test "$with_sqlite3_lib"; then
13411	lib_dirs="$with_sqlite3_lib $lib_dirs"
13412fi
13413
13414if test "$with_sqlite3_config" = ""; then
13415	with_sqlite3_config=''
13416fi
13417
13418sqlite3_cflags=
13419sqlite3_libs=
13420
13421case "$with_sqlite3_config" in
13422yes|no|""|"")
13423	if test -f $with_sqlite3/bin/ ; then
13424		with_sqlite3_config=$with_sqlite3/bin/
13425	fi
13426	;;
13427esac
13428
13429case "$with_sqlite3_config" in
13430yes|no|"")
13431	;;
13432*)
13433	sqlite3_cflags="`$with_sqlite3_config --cflags 2>&1`"
13434	sqlite3_libs="`$with_sqlite3_config --libs 2>&1`"
13435	;;
13436esac
13437
13438found=no
13439if test "$with_sqlite3" != no; then
13440	save_CFLAGS="$CFLAGS"
13441	save_LIBS="$LIBS"
13442	if test "$sqlite3_cflags" -a "$sqlite3_libs"; then
13443		CFLAGS="$sqlite3_cflags $save_CFLAGS"
13444		LIBS="$sqlite3_libs $save_LIBS"
13445
13446		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h.  */
13448#include <sqlite3.h>
13449#ifndef SQLITE_OPEN_CREATE
13450#error "old version"
13451#endif
13452int
13453main ()
13454{
13455
13456  ;
13457  return 0;
13458}
13459_ACEOF
13460if ac_fn_c_try_link "$LINENO"; then :
13461
13462			INCLUDE_sqlite3="$sqlite3_cflags"
13463			LIB_sqlite3="$sqlite3_libs"
13464			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_sqlite3_config" >&5
13465$as_echo "from $with_sqlite3_config" >&6; }
13466			found=yes
13467fi
13468rm -f core conftest.err conftest.$ac_objext \
13469    conftest$ac_exeext conftest.$ac_ext
13470	fi
13471	if test "$found" = no; then
13472		ires= lres=
13473		for i in $header_dirs; do
13474			CFLAGS="-I$i $save_CFLAGS"
13475
13476			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477/* end confdefs.h.  */
13478#include <sqlite3.h>
13479#ifndef SQLITE_OPEN_CREATE
13480#error "old version"
13481#endif
13482int
13483main ()
13484{
13485
13486  ;
13487  return 0;
13488}
13489_ACEOF
13490if ac_fn_c_try_compile "$LINENO"; then :
13491  ires=$i;break
13492fi
13493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494		done
13495		for i in $lib_dirs; do
13496			LIBS="-L$i -lsqlite3  $save_LIBS"
13497			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498/* end confdefs.h.  */
13499#include <sqlite3.h>
13500#ifndef SQLITE_OPEN_CREATE
13501#error "old version"
13502#endif
13503int
13504main ()
13505{
13506
13507  ;
13508  return 0;
13509}
13510_ACEOF
13511if ac_fn_c_try_link "$LINENO"; then :
13512  lres=$i;break
13513fi
13514rm -f core conftest.err conftest.$ac_objext \
13515    conftest$ac_exeext conftest.$ac_ext
13516		done
13517		if test "$ires" -a "$lres" -a "$with_sqlite3" != "no"; then
13518			INCLUDE_sqlite3="-I$ires"
13519			LIB_sqlite3="-L$lres -lsqlite3 "
13520			found=yes
13521			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
13522$as_echo "headers $ires, libraries $lres" >&6; }
13523		fi
13524	fi
13525	CFLAGS="$save_CFLAGS"
13526	LIBS="$save_LIBS"
13527fi
13528
13529if test "$found" = yes; then
13530
13531cat >>confdefs.h <<_ACEOF
13532#define SQLITE3 1
13533_ACEOF
13534
13535	with_sqlite3=yes
13536else
13537	with_sqlite3=no
13538	INCLUDE_sqlite3=
13539	LIB_sqlite3=
13540	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541$as_echo "no" >&6; }
13542fi
13543
13544
13545
13546
13547
13548if test "X$with_sqlite3" != Xyes ; then
13549   INCLUDE_sqlite3="-I\$(top_srcdir)/lib/sqlite"
13550   LIB_sqlite3="\$(top_builddir)/lib/sqlite/libheimsqlite.la"
13551fi
13552 if test "X$with_sqlite3" = Xyes; then
13553  SQLITE3_TRUE=
13554  SQLITE3_FALSE='#'
13555else
13556  SQLITE3_TRUE='#'
13557  SQLITE3_FALSE=
13558fi
13559
13560
13561
13562$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
13563
13564
13565# Check whether --enable-sqlite-cache was given.
13566if test "${enable_sqlite_cache+set}" = set; then :
13567  enableval=$enable_sqlite_cache;
13568fi
13569
13570if test "$enable_sqlite_cache" != no; then
13571
13572$as_echo "#define HAVE_SCC 1" >>confdefs.h
13573
13574fi
13575 if test "$enable_sqlite_cache" != no; then
13576  have_scc_TRUE=
13577  have_scc_FALSE='#'
13578else
13579  have_scc_TRUE='#'
13580  have_scc_FALSE=
13581fi
13582
13583
13584
13585
13586
13587# Check whether --with-libintl was given.
13588if test "${with_libintl+set}" = set; then :
13589  withval=$with_libintl;
13590fi
13591
13592
13593# Check whether --with-libintl-lib was given.
13594if test "${with_libintl_lib+set}" = set; then :
13595  withval=$with_libintl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
13596  as_fn_error "No argument for --with-libintl-lib" "$LINENO" 5
13597elif test "X$with_libintl" = "X"; then
13598  with_libintl=yes
13599fi
13600fi
13601
13602
13603# Check whether --with-libintl-include was given.
13604if test "${with_libintl_include+set}" = set; then :
13605  withval=$with_libintl_include; if test "$withval" = "yes" -o "$withval" = "no"; then
13606  as_fn_error "No argument for --with-libintl-include" "$LINENO" 5
13607elif test "X$with_libintl" = "X"; then
13608  with_libintl=yes
13609fi
13610fi
13611
13612
13613# Check whether --with-libintl-config was given.
13614if test "${with_libintl_config+set}" = set; then :
13615  withval=$with_libintl_config;
13616fi
13617
13618
13619
13620
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl" >&5
13622$as_echo_n "checking for libintl... " >&6; }
13623
13624case "$with_libintl" in
13625yes|"") d='' ;;
13626no)	d= ;;
13627*)	d="$with_libintl" ;;
13628esac
13629
13630header_dirs=
13631lib_dirs=
13632for i in $d; do
13633	if test "$with_libintl_include" = ""; then
13634		if test -d "$i/include/libintl"; then
13635			header_dirs="$header_dirs $i/include/libintl"
13636		fi
13637		if test -d "$i/include"; then
13638			header_dirs="$header_dirs $i/include"
13639		fi
13640	fi
13641	if test "$with_libintl_lib" = ""; then
13642		if test -d "$i/lib$abilibdirext"; then
13643			lib_dirs="$lib_dirs $i/lib$abilibdirext"
13644		fi
13645	fi
13646done
13647
13648if test "$with_libintl_include"; then
13649	header_dirs="$with_libintl_include $header_dirs"
13650fi
13651if test "$with_libintl_lib"; then
13652	lib_dirs="$with_libintl_lib $lib_dirs"
13653fi
13654
13655if test "$with_libintl_config" = ""; then
13656	with_libintl_config=''
13657fi
13658
13659libintl_cflags=
13660libintl_libs=
13661
13662case "$with_libintl_config" in
13663yes|no|""|"")
13664	if test -f $with_libintl/bin/ ; then
13665		with_libintl_config=$with_libintl/bin/
13666	fi
13667	;;
13668esac
13669
13670case "$with_libintl_config" in
13671yes|no|"")
13672	;;
13673*)
13674	libintl_cflags="`$with_libintl_config --cflags 2>&1`"
13675	libintl_libs="`$with_libintl_config --libs 2>&1`"
13676	;;
13677esac
13678
13679found=no
13680if test "$with_libintl" != no; then
13681	save_CFLAGS="$CFLAGS"
13682	save_LIBS="$LIBS"
13683	if test "$libintl_cflags" -a "$libintl_libs"; then
13684		CFLAGS="$libintl_cflags $save_CFLAGS"
13685		LIBS="$libintl_libs $save_LIBS"
13686
13687		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688/* end confdefs.h.  */
13689#include <libintl.h>
13690int
13691main ()
13692{
13693
13694  ;
13695  return 0;
13696}
13697_ACEOF
13698if ac_fn_c_try_link "$LINENO"; then :
13699
13700			INCLUDE_libintl="$libintl_cflags"
13701			LIB_libintl="$libintl_libs"
13702			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_libintl_config" >&5
13703$as_echo "from $with_libintl_config" >&6; }
13704			found=yes
13705fi
13706rm -f core conftest.err conftest.$ac_objext \
13707    conftest$ac_exeext conftest.$ac_ext
13708	fi
13709	if test "$found" = no; then
13710		ires= lres=
13711		for i in $header_dirs; do
13712			CFLAGS="-I$i $save_CFLAGS"
13713
13714			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715/* end confdefs.h.  */
13716#include <libintl.h>
13717int
13718main ()
13719{
13720
13721  ;
13722  return 0;
13723}
13724_ACEOF
13725if ac_fn_c_try_compile "$LINENO"; then :
13726  ires=$i;break
13727fi
13728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13729		done
13730		for i in $lib_dirs; do
13731			LIBS="-L$i -lintl  $save_LIBS"
13732			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733/* end confdefs.h.  */
13734#include <libintl.h>
13735int
13736main ()
13737{
13738
13739  ;
13740  return 0;
13741}
13742_ACEOF
13743if ac_fn_c_try_link "$LINENO"; then :
13744  lres=$i;break
13745fi
13746rm -f core conftest.err conftest.$ac_objext \
13747    conftest$ac_exeext conftest.$ac_ext
13748		done
13749		if test "$ires" -a "$lres" -a "$with_libintl" != "no"; then
13750			INCLUDE_libintl="-I$ires"
13751			LIB_libintl="-L$lres -lintl "
13752			found=yes
13753			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
13754$as_echo "headers $ires, libraries $lres" >&6; }
13755		fi
13756	fi
13757	CFLAGS="$save_CFLAGS"
13758	LIBS="$save_LIBS"
13759fi
13760
13761if test "$found" = yes; then
13762
13763cat >>confdefs.h <<_ACEOF
13764#define LIBINTL 1
13765_ACEOF
13766
13767	with_libintl=yes
13768else
13769	with_libintl=no
13770	INCLUDE_libintl=
13771	LIB_libintl=
13772	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773$as_echo "no" >&6; }
13774fi
13775
13776
13777
13778
13779
13780
13781# Check whether --with-hdbdir was given.
13782if test "${with_hdbdir+set}" = set; then :
13783  withval=$with_hdbdir;
13784else
13785  with_hdbdir=/var/heimdal
13786fi
13787
13788DIR_hdbdir="$with_hdbdir"
13789
13790
13791
13792with_krb4=no
13793
13794
13795 if false; then
13796  KRB4_TRUE=
13797  KRB4_FALSE='#'
13798else
13799  KRB4_TRUE='#'
13800  KRB4_FALSE=
13801fi
13802
13803
13804 if true; then
13805  KRB5_TRUE=
13806  KRB5_FALSE='#'
13807else
13808  KRB5_TRUE='#'
13809  KRB5_FALSE=
13810fi
13811
13812 if true; then
13813  do_roken_rename_TRUE=
13814  do_roken_rename_FALSE='#'
13815else
13816  do_roken_rename_TRUE='#'
13817  do_roken_rename_FALSE=
13818fi
13819
13820
13821
13822$as_echo "#define SUPPORT_INETD 1" >>confdefs.h
13823
13824
13825
13826$as_echo "#define KRB5 1" >>confdefs.h
13827
13828
13829crypto_lib=unknown
13830
13831
13832# Check whether --with-openssl was given.
13833if test "${with_openssl+set}" = set; then :
13834  withval=$with_openssl;
13835fi
13836
13837
13838
13839# Check whether --with-openssl-lib was given.
13840if test "${with_openssl_lib+set}" = set; then :
13841  withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
13842  as_fn_error "No argument for --with-openssl-lib" "$LINENO" 5
13843elif test "X$with_openssl" = "X"; then
13844  with_openssl=yes
13845fi
13846fi
13847
13848
13849
13850# Check whether --with-openssl-include was given.
13851if test "${with_openssl_include+set}" = set; then :
13852  withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then
13853  as_fn_error "No argument for --with-openssl-include" "$LINENO" 5
13854elif test "X$with_openssl" = "X"; then
13855  with_openssl=yes
13856fi
13857fi
13858
13859
13860case "$with_openssl" in
13861yes)	;;
13862no)	;;
13863"")	;;
13864*)	if test "$with_openssl_include" = ""; then
13865		with_openssl_include="$with_openssl/include"
13866	fi
13867	if test "$with_openssl_lib" = ""; then
13868		with_openssl_lib="$with_openssl/lib$abilibdirext"
13869	fi
13870	;;
13871esac
13872
13873
13874DIR_hcrypto=
13875
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library" >&5
13877$as_echo_n "checking for crypto library... " >&6; }
13878
13879openssl=no
13880
13881if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
13882	save_CPPFLAGS="$CPPFLAGS"
13883	save_LIBS="$LIBS"
13884
13885	cdirs= clibs=
13886	for i in $LIB_krb4; do
13887		case "$i" in
13888		-L*) cdirs="$cdirs $i";;
13889		-l*) clibs="$clibs $i";;
13890		esac
13891	done
13892
13893	ires=
13894	for i in $INCLUDE_krb4; do
13895		CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
13896		for j in $cdirs; do
13897			for k in $clibs; do
13898				LIBS="$j $k $save_LIBS"
13899				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900/* end confdefs.h.  */
13901
13902		#undef KRB5 /* makes md4.h et al unhappy */
13903		#ifdef HAVE_OPENSSL
13904		#ifdef HAVE_SYS_TYPES_H
13905		#include <sys/types.h>
13906		#endif
13907		#include <openssl/evp.h>
13908		#include <openssl/md4.h>
13909		#include <openssl/md5.h>
13910		#include <openssl/sha.h>
13911		#include <openssl/des.h>
13912		#include <openssl/rc4.h>
13913		#include <openssl/aes.h>
13914		#include <openssl/ec.h>
13915		#include <openssl/engine.h>
13916		#include <openssl/ui.h>
13917		#include <openssl/rand.h>
13918		#include <openssl/hmac.h>
13919		#include <openssl/pkcs12.h>
13920		#else
13921		#include <hcrypto/evp.h>
13922		#include <hcrypto/md4.h>
13923		#include <hcrypto/md5.h>
13924		#include <hcrypto/sha.h>
13925		#include <hcrypto/des.h>
13926		#include <hcrypto/rc4.h>
13927		#include <hcrypto/aes.h>
13928		#include <hcrypto/engine.h>
13929		#include <hcrypto/hmac.h>
13930		#include <hcrypto/pkcs12.h>
13931		#endif
13932
13933int
13934main ()
13935{
13936
13937		void *schedule = 0;
13938		EVP_MD_CTX mdctx;
13939
13940		EVP_md4();
13941		EVP_md5();
13942		EVP_sha1();
13943		EVP_sha256();
13944
13945		EVP_MD_CTX_init(&mdctx);
13946		EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0);
13947		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
13948		UI_UTIL_read_pw_string(0,0,0,0);
13949		RAND_status();
13950		#ifdef HAVE_OPENSSL
13951		EC_KEY_new();
13952		#endif
13953
13954		OpenSSL_add_all_algorithms();
13955		AES_encrypt(0,0,0);
13956		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
13957		RC4(0, 0, 0, 0);
13958  ;
13959  return 0;
13960}
13961_ACEOF
13962if ac_fn_c_try_link "$LINENO"; then :
13963  openssl=yes ires="$i" lres="$j $k"; break 3
13964fi
13965rm -f core conftest.err conftest.$ac_objext \
13966    conftest$ac_exeext conftest.$ac_ext
13967			done
13968		done
13969		CFLAGS="$i $save_CFLAGS"
13970		for j in $cdirs; do
13971			for k in $clibs; do
13972				LIBS="$j $k $save_LIBS"
13973				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974/* end confdefs.h.  */
13975
13976		#undef KRB5 /* makes md4.h et al unhappy */
13977		#ifdef HAVE_OPENSSL
13978		#ifdef HAVE_SYS_TYPES_H
13979		#include <sys/types.h>
13980		#endif
13981		#include <openssl/evp.h>
13982		#include <openssl/md4.h>
13983		#include <openssl/md5.h>
13984		#include <openssl/sha.h>
13985		#include <openssl/des.h>
13986		#include <openssl/rc4.h>
13987		#include <openssl/aes.h>
13988		#include <openssl/ec.h>
13989		#include <openssl/engine.h>
13990		#include <openssl/ui.h>
13991		#include <openssl/rand.h>
13992		#include <openssl/hmac.h>
13993		#include <openssl/pkcs12.h>
13994		#else
13995		#include <hcrypto/evp.h>
13996		#include <hcrypto/md4.h>
13997		#include <hcrypto/md5.h>
13998		#include <hcrypto/sha.h>
13999		#include <hcrypto/des.h>
14000		#include <hcrypto/rc4.h>
14001		#include <hcrypto/aes.h>
14002		#include <hcrypto/engine.h>
14003		#include <hcrypto/hmac.h>
14004		#include <hcrypto/pkcs12.h>
14005		#endif
14006
14007int
14008main ()
14009{
14010
14011		void *schedule = 0;
14012		EVP_MD_CTX mdctx;
14013
14014		EVP_md4();
14015		EVP_md5();
14016		EVP_sha1();
14017		EVP_sha256();
14018
14019		EVP_MD_CTX_init(&mdctx);
14020		EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0);
14021		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
14022		UI_UTIL_read_pw_string(0,0,0,0);
14023		RAND_status();
14024		#ifdef HAVE_OPENSSL
14025		EC_KEY_new();
14026		#endif
14027
14028		OpenSSL_add_all_algorithms();
14029		AES_encrypt(0,0,0);
14030		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
14031		RC4(0, 0, 0, 0);
14032  ;
14033  return 0;
14034}
14035_ACEOF
14036if ac_fn_c_try_link "$LINENO"; then :
14037  openssl=no ires="$i" lres="$j $k"; break 3
14038fi
14039rm -f core conftest.err conftest.$ac_objext \
14040    conftest$ac_exeext conftest.$ac_ext
14041			done
14042		done
14043	done
14044
14045	CFLAGS="$save_CFLAGS"
14046	LIBS="$save_LIBS"
14047	if test "$ires" -a "$lres"; then
14048		INCLUDE_hcrypto="$ires"
14049		LIB_hcrypto="$lres"
14050		crypto_lib=krb4
14051		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: same as krb4" >&5
14052$as_echo "same as krb4" >&6; }
14053		LIB_hcrypto_a='$(LIB_hcrypto)'
14054		LIB_hcrypto_so='$(LIB_hcrypto)'
14055		LIB_hcrypto_appl='$(LIB_hcrypto)'
14056	fi
14057fi
14058
14059if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
14060	save_CFLAGS="$CFLAGS"
14061	save_LIBS="$LIBS"
14062	INCLUDE_hcrypto=
14063	LIB_hcrypto=
14064	if test "$with_openssl_include" != ""; then
14065		INCLUDE_hcrypto="-I${with_openssl_include}"
14066	fi
14067	if test "$with_openssl_lib" != ""; then
14068		LIB_hcrypto="-L${with_openssl_lib}"
14069	fi
14070	CFLAGS="-DHAVE_OPENSSL ${INCLUDE_hcrypto} ${CFLAGS}"
14071	saved_LIB_hcrypto="$LIB_hcrypto"
14072	for lres in "" "-ldl" "-lnsl -lsocket" "-lnsl -lsocket -ldl"; do
14073		LIB_hcrypto="${saved_LIB_hcrypto} -lcrypto $lres"
14074		LIB_hcrypto_a="$LIB_hcrypto"
14075		LIB_hcrypto_so="$LIB_hcrypto"
14076		LIB_hcrypto_appl="$LIB_hcrypto"
14077		LIBS="${LIBS} ${LIB_hcrypto}"
14078		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079/* end confdefs.h.  */
14080
14081		#undef KRB5 /* makes md4.h et al unhappy */
14082		#ifdef HAVE_OPENSSL
14083		#ifdef HAVE_SYS_TYPES_H
14084		#include <sys/types.h>
14085		#endif
14086		#include <openssl/evp.h>
14087		#include <openssl/md4.h>
14088		#include <openssl/md5.h>
14089		#include <openssl/sha.h>
14090		#include <openssl/des.h>
14091		#include <openssl/rc4.h>
14092		#include <openssl/aes.h>
14093		#include <openssl/ec.h>
14094		#include <openssl/engine.h>
14095		#include <openssl/ui.h>
14096		#include <openssl/rand.h>
14097		#include <openssl/hmac.h>
14098		#include <openssl/pkcs12.h>
14099		#else
14100		#include <hcrypto/evp.h>
14101		#include <hcrypto/md4.h>
14102		#include <hcrypto/md5.h>
14103		#include <hcrypto/sha.h>
14104		#include <hcrypto/des.h>
14105		#include <hcrypto/rc4.h>
14106		#include <hcrypto/aes.h>
14107		#include <hcrypto/engine.h>
14108		#include <hcrypto/hmac.h>
14109		#include <hcrypto/pkcs12.h>
14110		#endif
14111
14112int
14113main ()
14114{
14115
14116		void *schedule = 0;
14117		EVP_MD_CTX mdctx;
14118
14119		EVP_md4();
14120		EVP_md5();
14121		EVP_sha1();
14122		EVP_sha256();
14123
14124		EVP_MD_CTX_init(&mdctx);
14125		EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0);
14126		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
14127		UI_UTIL_read_pw_string(0,0,0,0);
14128		RAND_status();
14129		#ifdef HAVE_OPENSSL
14130		EC_KEY_new();
14131		#endif
14132
14133		OpenSSL_add_all_algorithms();
14134		AES_encrypt(0,0,0);
14135		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
14136		RC4(0, 0, 0, 0);
14137  ;
14138  return 0;
14139}
14140_ACEOF
14141if ac_fn_c_try_link "$LINENO"; then :
14142
14143			crypto_lib=libcrypto openssl=yes
14144			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libcrypto" >&5
14145$as_echo "libcrypto" >&6; }
14146
14147fi
14148rm -f core conftest.err conftest.$ac_objext \
14149    conftest$ac_exeext conftest.$ac_ext
14150		if test "$crypto_lib" = libcrypto ; then
14151			break;
14152		fi
14153	done
14154	CFLAGS="$save_CFLAGS"
14155	LIBS="$save_LIBS"
14156fi
14157
14158if test "$crypto_lib" = "unknown"; then
14159
14160  DIR_hcrypto='hcrypto'
14161  LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la'
14162  LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a'
14163  LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so'
14164  LIB_hcrypto_appl="-lhcrypto"
14165
14166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: included libhcrypto" >&5
14167$as_echo "included libhcrypto" >&6; }
14168
14169fi
14170
14171if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
14172	as_fn_error "the crypto library used by krb4 lacks features
14173required by Kerberos 5; to continue, you need to install a newer
14174Kerberos 4 or configure --without-krb4" "$LINENO" 5
14175fi
14176
14177if test "$openssl" = "yes"; then
14178
14179$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
14180
14181fi
14182 if test "$openssl" = yes; then
14183  HAVE_OPENSSL_TRUE=
14184  HAVE_OPENSSL_FALSE='#'
14185else
14186  HAVE_OPENSSL_TRUE='#'
14187  HAVE_OPENSSL_FALSE=
14188fi
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling threadsafe libraries" >&5
14200$as_echo_n "checking if compiling threadsafe libraries... " >&6; }
14201
14202# Check whether --enable-pthread-support was given.
14203if test "${enable_pthread_support+set}" = set; then :
14204  enableval=$enable_pthread_support;
14205else
14206  enable_pthread_support=maybe
14207fi
14208
14209
14210case "$host" in
14211*-*-solaris2*)
14212	native_pthread_support=yes
14213	if test "$GCC" = yes; then
14214		PTHREAD_CFLAGS=-pthreads
14215		PTHREAD_LIBADD=-pthreads
14216	else
14217		PTHREAD_CFLAGS=-mt
14218		PTHREAD_LDADD=-mt
14219		PTHREAD_LIBADD=-mt
14220	fi
14221	;;
14222*-*-netbsd[12]*)
14223	native_pthread_support="if running netbsd 1.6T or newer"
14224		PTHREAD_LIBADD="-lpthread"
14225	;;
14226*-*-netbsd[3456789]*)
14227	native_pthread_support="netbsd 3 uses explict pthread"
14228		PTHREAD_LIBADD="-lpthread"
14229	;;
14230*-*-freebsd[56789]*)
14231	native_pthread_support=yes
14232	PTHREAD_LIBADD="-pthread"
14233	;;
14234*-*-openbsd*)
14235	native_pthread_support=yes
14236	PTHREAD_CFLAGS=-pthread
14237	PTHREAD_LIBADD=-pthread
14238	;;
14239*-*-linux* | *-*-linux-gnu)
14240	case `uname -r` in
14241	2.*|3.*)
14242		native_pthread_support=yes
14243		PTHREAD_CFLAGS=-pthread
14244		PTHREAD_LIBADD=-pthread
14245		;;
14246	esac
14247	;;
14248*-*-kfreebsd*-gnu*)
14249	native_pthread_support=yes
14250	PTHREAD_CFLAGS=-pthread
14251	PTHREAD_LIBADD=-pthread
14252	;;
14253*-*-aix*)
14254	        	native_pthread_support=no
14255	;;
14256mips-sgi-irix6.[5-9])  # maybe works for earlier versions too
14257	native_pthread_support=yes
14258	PTHREAD_LIBADD="-lpthread"
14259	;;
14260*-*-darwin*)
14261	native_pthread_support=yes
14262	;;
14263*)
14264	native_pthread_support=no
14265	;;
14266esac
14267
14268if test "$enable_pthread_support" = maybe ; then
14269	enable_pthread_support="$native_pthread_support"
14270fi
14271
14272if test "$enable_pthread_support" != no; then
14273
14274$as_echo "#define ENABLE_PTHREAD_SUPPORT 1" >>confdefs.h
14275
14276            LIBS="$PTHREAD_LIBADD $LIBS"
14277else
14278  PTHREAD_CFLAGS=""
14279  PTHREAD_LIBADD=""
14280fi
14281
14282
14283
14284
14285
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pthread_support" >&5
14287$as_echo "$enable_pthread_support" >&6; }
14288
14289
14290# Check whether --enable-dce was given.
14291if test "${enable_dce+set}" = set; then :
14292  enableval=$enable_dce;
14293fi
14294
14295if test "$enable_dce" = yes; then
14296
14297$as_echo "#define DCE 1" >>confdefs.h
14298
14299fi
14300 if test "$enable_dce" = yes; then
14301  DCE_TRUE=
14302  DCE_FALSE='#'
14303else
14304  DCE_TRUE='#'
14305  DCE_FALSE=
14306fi
14307
14308
14309## XXX quite horrible:
14310if test -f /etc/ibmcxx.cfg; then
14311	dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
14312	dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
14313	dpagaix_ldflags=
14314else
14315	dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
14316	dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
14317	dpagaix_ldflags="-Wl,-bI:dfspag.exp"
14318fi
14319
14320
14321
14322
14323# Check whether --enable-afs-support was given.
14324if test "${enable_afs_support+set}" = set; then :
14325  enableval=$enable_afs_support;
14326fi
14327
14328if test "$enable_afs_support" = no; then
14329
14330$as_echo "#define NO_AFS 1" >>confdefs.h
14331
14332	NO_AFS="1"
14333fi
14334
14335
14336
14337# Check whether --with-berkeley-db was given.
14338if test "${with_berkeley_db+set}" = set; then :
14339  withval=$with_berkeley_db;
14340else
14341  with_berkeley_db=check
14342fi
14343
14344
14345dbheader=""
14346
14347# Check whether --with-berkeley-db-include was given.
14348if test "${with_berkeley_db_include+set}" = set; then :
14349  withval=$with_berkeley_db_include; dbheader=$withval
14350else
14351  with_berkeley_db_include=check
14352fi
14353
14354
14355# Check whether --enable-ndbm-db was given.
14356if test "${enable_ndbm_db+set}" = set; then :
14357  enableval=$enable_ndbm_db;
14358
14359fi
14360
14361
14362have_ndbm=no
14363db_type=unknown
14364
14365if test "x$with_berkeley_db" != xno; then :
14366  if test "x$with_berkeley_db_include" != xcheck; then :
14367  for ac_header in "$dbheader/db.h"
14368do :
14369  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14370ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14371eval as_val=\$$as_ac_Header
14372   if test "x$as_val" = x""yes; then :
14373  cat >>confdefs.h <<_ACEOF
14374#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14375_ACEOF
14376 DBHEADER=$dbheader
14377
14378
14379$as_echo "#define HAVE_DBHEADER 1" >>confdefs.h
14380
14381
14382else
14383  if test "x$with_berkeley_db_include" != xcheck; then
14384		     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14386as_fn_error "--with-berkeley-db-include was given but include test failed
14387See \`config.log' for more details." "$LINENO" 5; }
14388		    fi
14389
14390fi
14391
14392done
14393
14394else
14395  for ac_header in 					\
14396	           db5/db.h				\
14397	           db4/db.h				\
14398	           db3/db.h				\
14399	           db.h					\
14400
14401do :
14402  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14403ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14404eval as_val=\$$as_ac_Header
14405   if test "x$as_val" = x""yes; then :
14406  cat >>confdefs.h <<_ACEOF
14407#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14408_ACEOF
14409
14410fi
14411
14412done
14413
14414fi
14415
14416
14417
14418
14419
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create" >&5
14421$as_echo_n "checking for db_create... " >&6; }
14422if test "${ac_cv_funclib_db_create+set}" = set; then :
14423  $as_echo_n "(cached) " >&6
14424else
14425
14426if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
14427	ac_save_LIBS="$LIBS"
14428	for ac_lib in "" $dbheader db5 db4 db3 db; do
14429		case "$ac_lib" in
14430		"") ;;
14431		yes) ac_lib="" ;;
14432		no) continue ;;
14433		-l*) ;;
14434		*) ac_lib="-l$ac_lib" ;;
14435		esac
14436		LIBS=" $ac_lib  $ac_save_LIBS"
14437		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438/* end confdefs.h.  */
14439
14440  #include <stdio.h>
14441  #ifdef HAVE_DBHEADER
14442  #include <$dbheader/db.h>
14443  #elif HAVE_DB5_DB_H
14444  #include <db5/db.h>
14445  #elif HAVE_DB4_DB_H
14446  #include <db4/db.h>
14447  #elif defined(HAVE_DB3_DB_H)
14448  #include <db3/db.h>
14449  #else
14450  #include <db.h>
14451  #endif
14452
14453int
14454main ()
14455{
14456db_create(NULL, NULL, 0)
14457  ;
14458  return 0;
14459}
14460_ACEOF
14461if ac_fn_c_try_link "$LINENO"; then :
14462  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
14463fi
14464rm -f core conftest.err conftest.$ac_objext \
14465    conftest$ac_exeext conftest.$ac_ext
14466	done
14467	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
14468	LIBS="$ac_save_LIBS"
14469fi
14470
14471fi
14472
14473
14474eval "ac_res=\$ac_cv_funclib_db_create"
14475
14476if false; then
14477	for ac_func in db_create
14478do :
14479  ac_fn_c_check_func "$LINENO" "db_create" "ac_cv_func_db_create"
14480if test "x$ac_cv_func_db_create" = x""yes; then :
14481  cat >>confdefs.h <<_ACEOF
14482#define HAVE_DB_CREATE 1
14483_ACEOF
14484
14485fi
14486done
14487
14488fi
14489# db_create
14490eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14491eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14492eval "LIB_db_create=$ac_res"
14493
14494case "$ac_res" in
14495	yes)
14496	eval "ac_cv_func_db_create=yes"
14497	eval "LIB_db_create="
14498	cat >>confdefs.h <<_ACEOF
14499#define $ac_tr_func 1
14500_ACEOF
14501
14502	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14503$as_echo "yes" >&6; }
14504	;;
14505	no)
14506	eval "ac_cv_func_db_create=no"
14507	eval "LIB_db_create="
14508	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14509$as_echo "no" >&6; }
14510	;;
14511	*)
14512	eval "ac_cv_func_db_create=yes"
14513	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14514	cat >>confdefs.h <<_ACEOF
14515#define $ac_tr_func 1
14516_ACEOF
14517
14518	cat >>confdefs.h <<_ACEOF
14519#define $ac_tr_lib 1
14520_ACEOF
14521
14522	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
14523$as_echo "yes, in $ac_res" >&6; }
14524	;;
14525esac
14526
14527
14528
14529  if test "$ac_cv_func_db_create" = "yes"; then
14530    db_type=db3
14531    if test "$ac_cv_funclib_db_create" != "yes"; then
14532      DBLIB="$ac_cv_funclib_db_create"
14533    else
14534      DBLIB=""
14535    fi
14536
14537$as_echo "#define HAVE_DB3 1" >>confdefs.h
14538
14539  fi
14540
14541
14542
14543
14544
14545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen" >&5
14546$as_echo_n "checking for dbopen... " >&6; }
14547if test "${ac_cv_funclib_dbopen+set}" = set; then :
14548  $as_echo_n "(cached) " >&6
14549else
14550
14551if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
14552	ac_save_LIBS="$LIBS"
14553	for ac_lib in "" db2 db; do
14554		case "$ac_lib" in
14555		"") ;;
14556		yes) ac_lib="" ;;
14557		no) continue ;;
14558		-l*) ;;
14559		*) ac_lib="-l$ac_lib" ;;
14560		esac
14561		LIBS=" $ac_lib  $ac_save_LIBS"
14562		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563/* end confdefs.h.  */
14564
14565  #include <stdio.h>
14566  #if defined(HAVE_DB2_DB_H)
14567  #include <db2/db.h>
14568  #elif defined(HAVE_DB_H)
14569  #include <db.h>
14570  #else
14571  #error no db.h
14572  #endif
14573
14574int
14575main ()
14576{
14577dbopen(NULL, 0, 0, 0, NULL)
14578  ;
14579  return 0;
14580}
14581_ACEOF
14582if ac_fn_c_try_link "$LINENO"; then :
14583  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
14584fi
14585rm -f core conftest.err conftest.$ac_objext \
14586    conftest$ac_exeext conftest.$ac_ext
14587	done
14588	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
14589	LIBS="$ac_save_LIBS"
14590fi
14591
14592fi
14593
14594
14595eval "ac_res=\$ac_cv_funclib_dbopen"
14596
14597if false; then
14598	for ac_func in dbopen
14599do :
14600  ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen"
14601if test "x$ac_cv_func_dbopen" = x""yes; then :
14602  cat >>confdefs.h <<_ACEOF
14603#define HAVE_DBOPEN 1
14604_ACEOF
14605
14606fi
14607done
14608
14609fi
14610# dbopen
14611eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14612eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14613eval "LIB_dbopen=$ac_res"
14614
14615case "$ac_res" in
14616	yes)
14617	eval "ac_cv_func_dbopen=yes"
14618	eval "LIB_dbopen="
14619	cat >>confdefs.h <<_ACEOF
14620#define $ac_tr_func 1
14621_ACEOF
14622
14623	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14624$as_echo "yes" >&6; }
14625	;;
14626	no)
14627	eval "ac_cv_func_dbopen=no"
14628	eval "LIB_dbopen="
14629	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630$as_echo "no" >&6; }
14631	;;
14632	*)
14633	eval "ac_cv_func_dbopen=yes"
14634	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14635	cat >>confdefs.h <<_ACEOF
14636#define $ac_tr_func 1
14637_ACEOF
14638
14639	cat >>confdefs.h <<_ACEOF
14640#define $ac_tr_lib 1
14641_ACEOF
14642
14643	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
14644$as_echo "yes, in $ac_res" >&6; }
14645	;;
14646esac
14647
14648
14649
14650  if test "$ac_cv_func_dbopen" = "yes"; then
14651    db_type=db1
14652    if test "$ac_cv_funclib_dbopen" != "yes"; then
14653      DBLIB="$ac_cv_funclib_dbopen"
14654    else
14655      DBLIB=""
14656    fi
14657
14658$as_echo "#define HAVE_DB1 1" >>confdefs.h
14659
14660  fi
14661
14662
14663  if test "$ac_cv_func_dbm_firstkey" != yes; then
14664
14665
14666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5
14667$as_echo_n "checking for dbm_firstkey... " >&6; }
14668if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then :
14669  $as_echo_n "(cached) " >&6
14670else
14671
14672if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
14673	ac_save_LIBS="$LIBS"
14674	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
14675		case "$ac_lib" in
14676		"") ;;
14677		yes) ac_lib="" ;;
14678		no) continue ;;
14679		-l*) ;;
14680		*) ac_lib="-l$ac_lib" ;;
14681		esac
14682		LIBS=" $ac_lib  $ac_save_LIBS"
14683		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684/* end confdefs.h.  */
14685
14686    #include <stdio.h>
14687    #define DB_DBM_HSEARCH 1
14688    #include <db.h>
14689    DBM *dbm;
14690
14691int
14692main ()
14693{
14694dbm_firstkey(NULL)
14695  ;
14696  return 0;
14697}
14698_ACEOF
14699if ac_fn_c_try_link "$LINENO"; then :
14700  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
14701fi
14702rm -f core conftest.err conftest.$ac_objext \
14703    conftest$ac_exeext conftest.$ac_ext
14704	done
14705	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
14706	LIBS="$ac_save_LIBS"
14707fi
14708
14709fi
14710
14711
14712eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
14713
14714if false; then
14715	for ac_func in dbm_firstkey
14716do :
14717  ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey"
14718if test "x$ac_cv_func_dbm_firstkey" = x""yes; then :
14719  cat >>confdefs.h <<_ACEOF
14720#define HAVE_DBM_FIRSTKEY 1
14721_ACEOF
14722
14723fi
14724done
14725
14726fi
14727# dbm_firstkey
14728eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14729eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14730eval "LIB_dbm_firstkey=$ac_res"
14731
14732case "$ac_res" in
14733	yes)
14734	eval "ac_cv_func_dbm_firstkey=yes"
14735	eval "LIB_dbm_firstkey="
14736	cat >>confdefs.h <<_ACEOF
14737#define $ac_tr_func 1
14738_ACEOF
14739
14740	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14741$as_echo "yes" >&6; }
14742	;;
14743	no)
14744	eval "ac_cv_func_dbm_firstkey=no"
14745	eval "LIB_dbm_firstkey="
14746	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747$as_echo "no" >&6; }
14748	;;
14749	*)
14750	eval "ac_cv_func_dbm_firstkey=yes"
14751	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14752	cat >>confdefs.h <<_ACEOF
14753#define $ac_tr_func 1
14754_ACEOF
14755
14756	cat >>confdefs.h <<_ACEOF
14757#define $ac_tr_lib 1
14758_ACEOF
14759
14760	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
14761$as_echo "yes, in $ac_res" >&6; }
14762	;;
14763esac
14764
14765
14766
14767    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
14768      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
14769        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
14770      else
14771        LIB_NDBM=""
14772      fi
14773
14774$as_echo "#define HAVE_DB_NDBM 1" >>confdefs.h
14775
14776
14777$as_echo "#define HAVE_NEW_DB 1" >>confdefs.h
14778
14779    else
14780      $as_unset ac_cv_func_dbm_firstkey
14781      $as_unset ac_cv_funclib_dbm_firstkey
14782    fi
14783  fi
14784
14785
14786fi # fi berkeley db
14787
14788if test "$enable_ndbm_db" != "no"; then
14789
14790  if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
14791
14792    for ac_header in 				\
14793  	dbm.h					\
14794  	ndbm.h					\
14795
14796do :
14797  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14798ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14799eval as_val=\$$as_ac_Header
14800   if test "x$as_val" = x""yes; then :
14801  cat >>confdefs.h <<_ACEOF
14802#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14803_ACEOF
14804
14805fi
14806
14807done
14808
14809
14810
14811
14812
14813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5
14814$as_echo_n "checking for dbm_firstkey... " >&6; }
14815if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then :
14816  $as_echo_n "(cached) " >&6
14817else
14818
14819if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
14820	ac_save_LIBS="$LIBS"
14821	for ac_lib in "" ndbm; do
14822		case "$ac_lib" in
14823		"") ;;
14824		yes) ac_lib="" ;;
14825		no) continue ;;
14826		-l*) ;;
14827		*) ac_lib="-l$ac_lib" ;;
14828		esac
14829		LIBS=" $ac_lib  $ac_save_LIBS"
14830		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831/* end confdefs.h.  */
14832
14833    #include <stdio.h>
14834    #if defined(HAVE_NDBM_H)
14835    #include <ndbm.h>
14836    #elif defined(HAVE_DBM_H)
14837    #include <dbm.h>
14838    #endif
14839    DBM *dbm;
14840
14841int
14842main ()
14843{
14844dbm_firstkey(NULL)
14845  ;
14846  return 0;
14847}
14848_ACEOF
14849if ac_fn_c_try_link "$LINENO"; then :
14850  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
14851fi
14852rm -f core conftest.err conftest.$ac_objext \
14853    conftest$ac_exeext conftest.$ac_ext
14854	done
14855	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
14856	LIBS="$ac_save_LIBS"
14857fi
14858
14859fi
14860
14861
14862eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
14863
14864if false; then
14865	for ac_func in dbm_firstkey
14866do :
14867  ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey"
14868if test "x$ac_cv_func_dbm_firstkey" = x""yes; then :
14869  cat >>confdefs.h <<_ACEOF
14870#define HAVE_DBM_FIRSTKEY 1
14871_ACEOF
14872
14873fi
14874done
14875
14876fi
14877# dbm_firstkey
14878eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14879eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14880eval "LIB_dbm_firstkey=$ac_res"
14881
14882case "$ac_res" in
14883	yes)
14884	eval "ac_cv_func_dbm_firstkey=yes"
14885	eval "LIB_dbm_firstkey="
14886	cat >>confdefs.h <<_ACEOF
14887#define $ac_tr_func 1
14888_ACEOF
14889
14890	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891$as_echo "yes" >&6; }
14892	;;
14893	no)
14894	eval "ac_cv_func_dbm_firstkey=no"
14895	eval "LIB_dbm_firstkey="
14896	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14897$as_echo "no" >&6; }
14898	;;
14899	*)
14900	eval "ac_cv_func_dbm_firstkey=yes"
14901	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14902	cat >>confdefs.h <<_ACEOF
14903#define $ac_tr_func 1
14904_ACEOF
14905
14906	cat >>confdefs.h <<_ACEOF
14907#define $ac_tr_lib 1
14908_ACEOF
14909
14910	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
14911$as_echo "yes, in $ac_res" >&6; }
14912	;;
14913esac
14914
14915
14916
14917    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
14918      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
14919        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
14920      else
14921        LIB_NDBM=""
14922      fi
14923
14924$as_echo "#define HAVE_NDBM 1" >>confdefs.h
14925      have_ndbm=yes
14926      if test "$db_type" = "unknown"; then
14927        db_type=ndbm
14928        DBLIB="$LIB_NDBM"
14929      fi
14930    else
14931
14932      $as_unset ac_cv_func_dbm_firstkey
14933      $as_unset ac_cv_funclib_dbm_firstkey
14934
14935      for ac_header in 				\
14936  	  gdbm/ndbm.h				\
14937
14938do :
14939  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14940ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14941eval as_val=\$$as_ac_Header
14942   if test "x$as_val" = x""yes; then :
14943  cat >>confdefs.h <<_ACEOF
14944#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14945_ACEOF
14946
14947fi
14948
14949done
14950
14951
14952
14953
14954
14955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5
14956$as_echo_n "checking for dbm_firstkey... " >&6; }
14957if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then :
14958  $as_echo_n "(cached) " >&6
14959else
14960
14961if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
14962	ac_save_LIBS="$LIBS"
14963	for ac_lib in "" gdbm; do
14964		case "$ac_lib" in
14965		"") ;;
14966		yes) ac_lib="" ;;
14967		no) continue ;;
14968		-l*) ;;
14969		*) ac_lib="-l$ac_lib" ;;
14970		esac
14971		LIBS=" $ac_lib  $ac_save_LIBS"
14972		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973/* end confdefs.h.  */
14974
14975      #include <stdio.h>
14976      #include <gdbm/ndbm.h>
14977      DBM *dbm;
14978
14979int
14980main ()
14981{
14982dbm_firstkey(NULL)
14983  ;
14984  return 0;
14985}
14986_ACEOF
14987if ac_fn_c_try_link "$LINENO"; then :
14988  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
14989fi
14990rm -f core conftest.err conftest.$ac_objext \
14991    conftest$ac_exeext conftest.$ac_ext
14992	done
14993	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
14994	LIBS="$ac_save_LIBS"
14995fi
14996
14997fi
14998
14999
15000eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
15001
15002if false; then
15003	for ac_func in dbm_firstkey
15004do :
15005  ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey"
15006if test "x$ac_cv_func_dbm_firstkey" = x""yes; then :
15007  cat >>confdefs.h <<_ACEOF
15008#define HAVE_DBM_FIRSTKEY 1
15009_ACEOF
15010
15011fi
15012done
15013
15014fi
15015# dbm_firstkey
15016eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15017eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15018eval "LIB_dbm_firstkey=$ac_res"
15019
15020case "$ac_res" in
15021	yes)
15022	eval "ac_cv_func_dbm_firstkey=yes"
15023	eval "LIB_dbm_firstkey="
15024	cat >>confdefs.h <<_ACEOF
15025#define $ac_tr_func 1
15026_ACEOF
15027
15028	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15029$as_echo "yes" >&6; }
15030	;;
15031	no)
15032	eval "ac_cv_func_dbm_firstkey=no"
15033	eval "LIB_dbm_firstkey="
15034	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15035$as_echo "no" >&6; }
15036	;;
15037	*)
15038	eval "ac_cv_func_dbm_firstkey=yes"
15039	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15040	cat >>confdefs.h <<_ACEOF
15041#define $ac_tr_func 1
15042_ACEOF
15043
15044	cat >>confdefs.h <<_ACEOF
15045#define $ac_tr_lib 1
15046_ACEOF
15047
15048	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
15049$as_echo "yes, in $ac_res" >&6; }
15050	;;
15051esac
15052
15053
15054
15055      if test "$ac_cv_func_dbm_firstkey" = "yes"; then
15056        if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
15057  	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
15058        else
15059  	LIB_NDBM=""
15060        fi
15061
15062$as_echo "#define HAVE_NDBM 1" >>confdefs.h
15063        have_ndbm=yes
15064        if test "$db_type" = "unknown"; then
15065  	db_type=ndbm
15066  	DBLIB="$LIB_NDBM"
15067        fi
15068      fi
15069    fi
15070  fi #enable_ndbm_db
15071fi # unknown
15072
15073if test "$have_ndbm" = "yes"; then
15074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ndbm is implemented with db" >&5
15075$as_echo_n "checking if ndbm is implemented with db... " >&6; }
15076  if test "$cross_compiling" = yes; then :
15077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no-cross" >&5
15078$as_echo "no-cross" >&6; }
15079else
15080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081/* end confdefs.h.  */
15082
15083#include <unistd.h>
15084#include <fcntl.h>
15085#if defined(HAVE_GDBM_NDBM_H)
15086#include <gdbm/ndbm.h>
15087#elif defined(HAVE_NDBM_H)
15088#include <ndbm.h>
15089#elif defined(HAVE_DBM_H)
15090#include <dbm.h>
15091#endif
15092int main(int argc, char **argv)
15093{
15094  DBM *d;
15095
15096  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
15097  if (d == NULL)
15098    return 1;
15099  dbm_close(d);
15100  return 0;
15101}
15102_ACEOF
15103if ac_fn_c_try_run "$LINENO"; then :
15104
15105    if test -f conftest.db; then
15106      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15107$as_echo "yes" >&6; }
15108
15109$as_echo "#define HAVE_NEW_DB 1" >>confdefs.h
15110
15111    else
15112      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15113$as_echo "no" >&6; }
15114    fi
15115else
15116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15117$as_echo "no" >&6; }
15118fi
15119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15120  conftest.$ac_objext conftest.beam conftest.$ac_ext
15121fi
15122
15123fi
15124
15125 if test "$db_type" = db1; then
15126  HAVE_DB1_TRUE=
15127  HAVE_DB1_FALSE='#'
15128else
15129  HAVE_DB1_TRUE='#'
15130  HAVE_DB1_FALSE=
15131fi
15132 if test "$db_type" = db3; then
15133  HAVE_DB3_TRUE=
15134  HAVE_DB3_FALSE='#'
15135else
15136  HAVE_DB3_TRUE='#'
15137  HAVE_DB3_FALSE=
15138fi
15139 if test "$db_type" = ndbm; then
15140  HAVE_NDBM_TRUE=
15141  HAVE_NDBM_FALSE='#'
15142else
15143  HAVE_NDBM_TRUE='#'
15144  HAVE_NDBM_FALSE=
15145fi
15146 if test "$dbheader" != ""; then
15147  HAVE_DBHEADER_TRUE=
15148  HAVE_DBHEADER_FALSE='#'
15149else
15150  HAVE_DBHEADER_TRUE='#'
15151  HAVE_DBHEADER_FALSE=
15152fi
15153
15154## it's probably not correct to include LDFLAGS here, but we might
15155## need it, for now just add any possible -L
15156z=""
15157for i in $LDFLAGS; do
15158	case "$i" in
15159	-L*) z="$z $i";;
15160	esac
15161done
15162DBLIB="$z $DBLIB"
15163
15164
15165
15166
15167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15168$as_echo_n "checking for inline... " >&6; }
15169if test "${ac_cv_c_inline+set}" = set; then :
15170  $as_echo_n "(cached) " >&6
15171else
15172  ac_cv_c_inline=no
15173for ac_kw in inline __inline__ __inline; do
15174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175/* end confdefs.h.  */
15176#ifndef __cplusplus
15177typedef int foo_t;
15178static $ac_kw foo_t static_foo () {return 0; }
15179$ac_kw foo_t foo () {return 0; }
15180#endif
15181
15182_ACEOF
15183if ac_fn_c_try_compile "$LINENO"; then :
15184  ac_cv_c_inline=$ac_kw
15185fi
15186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187  test "$ac_cv_c_inline" != no && break
15188done
15189
15190fi
15191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15192$as_echo "$ac_cv_c_inline" >&6; }
15193
15194case $ac_cv_c_inline in
15195  inline | yes) ;;
15196  *)
15197    case $ac_cv_c_inline in
15198      no) ac_val=;;
15199      *) ac_val=$ac_cv_c_inline;;
15200    esac
15201    cat >>confdefs.h <<_ACEOF
15202#ifndef __cplusplus
15203#define inline $ac_val
15204#endif
15205_ACEOF
15206    ;;
15207esac
15208
15209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15210$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15211if test "${ac_cv_c_const+set}" = set; then :
15212  $as_echo_n "(cached) " >&6
15213else
15214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215/* end confdefs.h.  */
15216
15217int
15218main ()
15219{
15220/* FIXME: Include the comments suggested by Paul. */
15221#ifndef __cplusplus
15222  /* Ultrix mips cc rejects this.  */
15223  typedef int charset[2];
15224  const charset cs;
15225  /* SunOS 4.1.1 cc rejects this.  */
15226  char const *const *pcpcc;
15227  char **ppc;
15228  /* NEC SVR4.0.2 mips cc rejects this.  */
15229  struct point {int x, y;};
15230  static struct point const zero = {0,0};
15231  /* AIX XL C 1.02.0.0 rejects this.
15232     It does not let you subtract one const X* pointer from another in
15233     an arm of an if-expression whose if-part is not a constant
15234     expression */
15235  const char *g = "string";
15236  pcpcc = &g + (g ? g-g : 0);
15237  /* HPUX 7.0 cc rejects these. */
15238  ++pcpcc;
15239  ppc = (char**) pcpcc;
15240  pcpcc = (char const *const *) ppc;
15241  { /* SCO 3.2v4 cc rejects this.  */
15242    char *t;
15243    char const *s = 0 ? (char *) 0 : (char const *) 0;
15244
15245    *t++ = 0;
15246    if (s) return 0;
15247  }
15248  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15249    int x[] = {25, 17};
15250    const int *foo = &x[0];
15251    ++foo;
15252  }
15253  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15254    typedef const int *iptr;
15255    iptr p = 0;
15256    ++p;
15257  }
15258  { /* AIX XL C 1.02.0.0 rejects this saying
15259       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15260    struct s { int j; const int *ap[3]; };
15261    struct s *b; b->j = 5;
15262  }
15263  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15264    const int foo = 10;
15265    if (!foo) return 0;
15266  }
15267  return !cs[0] && !zero.x;
15268#endif
15269
15270  ;
15271  return 0;
15272}
15273_ACEOF
15274if ac_fn_c_try_compile "$LINENO"; then :
15275  ac_cv_c_const=yes
15276else
15277  ac_cv_c_const=no
15278fi
15279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280fi
15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15282$as_echo "$ac_cv_c_const" >&6; }
15283if test $ac_cv_c_const = no; then
15284
15285$as_echo "#define const /**/" >>confdefs.h
15286
15287fi
15288
15289ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15290if test "x$ac_cv_type_size_t" = x""yes; then :
15291
15292else
15293
15294cat >>confdefs.h <<_ACEOF
15295#define size_t unsigned int
15296_ACEOF
15297
15298fi
15299
15300ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15301if test "x$ac_cv_type_pid_t" = x""yes; then :
15302
15303else
15304
15305cat >>confdefs.h <<_ACEOF
15306#define pid_t int
15307_ACEOF
15308
15309fi
15310
15311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15312$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15313if test "${ac_cv_type_uid_t+set}" = set; then :
15314  $as_echo_n "(cached) " >&6
15315else
15316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317/* end confdefs.h.  */
15318#include <sys/types.h>
15319
15320_ACEOF
15321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15322  $EGREP "uid_t" >/dev/null 2>&1; then :
15323  ac_cv_type_uid_t=yes
15324else
15325  ac_cv_type_uid_t=no
15326fi
15327rm -f conftest*
15328
15329fi
15330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15331$as_echo "$ac_cv_type_uid_t" >&6; }
15332if test $ac_cv_type_uid_t = no; then
15333
15334$as_echo "#define uid_t int" >>confdefs.h
15335
15336
15337$as_echo "#define gid_t int" >>confdefs.h
15338
15339fi
15340
15341
15342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15343$as_echo_n "checking return type of signal handlers... " >&6; }
15344if test "${ac_cv_type_signal+set}" = set; then :
15345  $as_echo_n "(cached) " >&6
15346else
15347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348/* end confdefs.h.  */
15349#include <sys/types.h>
15350#include <signal.h>
15351
15352int
15353main ()
15354{
15355return *(signal (0, 0)) (0) == 1;
15356  ;
15357  return 0;
15358}
15359_ACEOF
15360if ac_fn_c_try_compile "$LINENO"; then :
15361  ac_cv_type_signal=int
15362else
15363  ac_cv_type_signal=void
15364fi
15365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366fi
15367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15368$as_echo "$ac_cv_type_signal" >&6; }
15369
15370cat >>confdefs.h <<_ACEOF
15371#define RETSIGTYPE $ac_cv_type_signal
15372_ACEOF
15373
15374
15375if test "$ac_cv_type_signal" = "void" ; then
15376
15377$as_echo "#define VOID_RETSIGTYPE 1" >>confdefs.h
15378
15379fi
15380
15381
15382
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15384$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15385if test "${ac_cv_header_time+set}" = set; then :
15386  $as_echo_n "(cached) " >&6
15387else
15388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15389/* end confdefs.h.  */
15390#include <sys/types.h>
15391#include <sys/time.h>
15392#include <time.h>
15393
15394int
15395main ()
15396{
15397if ((struct tm *) 0)
15398return 0;
15399  ;
15400  return 0;
15401}
15402_ACEOF
15403if ac_fn_c_try_compile "$LINENO"; then :
15404  ac_cv_header_time=yes
15405else
15406  ac_cv_header_time=no
15407fi
15408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15409fi
15410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15411$as_echo "$ac_cv_header_time" >&6; }
15412if test $ac_cv_header_time = yes; then
15413
15414$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15415
15416fi
15417
15418
15419for ac_header in standards.h
15420do :
15421  ac_fn_c_check_header_mongrel "$LINENO" "standards.h" "ac_cv_header_standards_h" "$ac_includes_default"
15422if test "x$ac_cv_header_standards_h" = x""yes; then :
15423  cat >>confdefs.h <<_ACEOF
15424#define HAVE_STANDARDS_H 1
15425_ACEOF
15426
15427fi
15428
15429done
15430
15431for i in netinet/ip.h netinet/tcp.h; do
15432
15433cv=`echo "$i" | sed 'y%./+-%__p_%'`
15434
15435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $i" >&5
15436$as_echo_n "checking for $i... " >&6; }
15437if { as_var=ac_cv_header_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
15438  $as_echo_n "(cached) " >&6
15439else
15440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441/* end confdefs.h.  */
15442
15443#ifdef HAVE_STANDARDS_H
15444#include <standards.h>
15445#endif
15446#include <$i>
15447
15448_ACEOF
15449if ac_fn_c_try_cpp "$LINENO"; then :
15450  eval "ac_cv_header_$cv=yes"
15451else
15452  eval "ac_cv_header_$cv=no"
15453fi
15454rm -f conftest.err conftest.$ac_ext
15455fi
15456eval ac_res=\$ac_cv_header_$cv
15457	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15458$as_echo "$ac_res" >&6; }
15459ac_res=`eval echo \\$ac_cv_header_$cv`
15460if test "$ac_res" = yes; then
15461	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15462	cat >>confdefs.h <<_ACEOF
15463#define $ac_tr_hdr 1
15464_ACEOF
15465
15466fi
15467done
15468if false;then
15469	for ac_header in netinet/ip.h netinet/tcp.h
15470do :
15471  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15472ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15473eval as_val=\$$as_ac_Header
15474   if test "x$as_val" = x""yes; then :
15475  cat >>confdefs.h <<_ACEOF
15476#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15477_ACEOF
15478
15479fi
15480
15481done
15482
15483fi
15484
15485
15486for ac_func in getlogin setlogin
15487do :
15488  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15489ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15490eval as_val=\$$as_ac_var
15491   if test "x$as_val" = x""yes; then :
15492  cat >>confdefs.h <<_ACEOF
15493#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15494_ACEOF
15495
15496fi
15497done
15498
15499if test "$ac_cv_func_getlogin" = yes; then
15500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getlogin is posix" >&5
15501$as_echo_n "checking if getlogin is posix... " >&6; }
15502if test "${ac_cv_func_getlogin_posix+set}" = set; then :
15503  $as_echo_n "(cached) " >&6
15504else
15505
15506if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
15507	ac_cv_func_getlogin_posix=no
15508else
15509	ac_cv_func_getlogin_posix=yes
15510fi
15511
15512fi
15513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getlogin_posix" >&5
15514$as_echo "$ac_cv_func_getlogin_posix" >&6; }
15515if test "$ac_cv_func_getlogin_posix" = yes; then
15516
15517$as_echo "#define POSIX_GETLOGIN 1" >>confdefs.h
15518
15519fi
15520fi
15521
15522
15523
15524
15525  for ac_header in $ac_header_list
15526do :
15527  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15528ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15529"
15530eval as_val=\$$as_ac_Header
15531   if test "x$as_val" = x""yes; then :
15532  cat >>confdefs.h <<_ACEOF
15533#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15534_ACEOF
15535
15536fi
15537
15538done
15539
15540
15541
15542
15543
15544
15545
15546
15547for ac_func in getpagesize
15548do :
15549  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15550if test "x$ac_cv_func_getpagesize" = x""yes; then :
15551  cat >>confdefs.h <<_ACEOF
15552#define HAVE_GETPAGESIZE 1
15553_ACEOF
15554
15555fi
15556done
15557
15558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15559$as_echo_n "checking for working mmap... " >&6; }
15560if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15561  $as_echo_n "(cached) " >&6
15562else
15563  if test "$cross_compiling" = yes; then :
15564  ac_cv_func_mmap_fixed_mapped=no
15565else
15566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567/* end confdefs.h.  */
15568$ac_includes_default
15569/* malloc might have been renamed as rpl_malloc. */
15570#undef malloc
15571
15572/* Thanks to Mike Haertel and Jim Avera for this test.
15573   Here is a matrix of mmap possibilities:
15574	mmap private not fixed
15575	mmap private fixed at somewhere currently unmapped
15576	mmap private fixed at somewhere already mapped
15577	mmap shared not fixed
15578	mmap shared fixed at somewhere currently unmapped
15579	mmap shared fixed at somewhere already mapped
15580   For private mappings, we should verify that changes cannot be read()
15581   back from the file, nor mmap's back from the file at a different
15582   address.  (There have been systems where private was not correctly
15583   implemented like the infamous i386 svr4.0, and systems where the
15584   VM page cache was not coherent with the file system buffer cache
15585   like early versions of FreeBSD and possibly contemporary NetBSD.)
15586   For shared mappings, we should conversely verify that changes get
15587   propagated back to all the places they're supposed to be.
15588
15589   Grep wants private fixed already mapped.
15590   The main things grep needs to know about mmap are:
15591   * does it exist and is it safe to write into the mmap'd area
15592   * how to use it (BSD variants)  */
15593
15594#include <fcntl.h>
15595#include <sys/mman.h>
15596
15597#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15598char *malloc ();
15599#endif
15600
15601/* This mess was copied from the GNU getpagesize.h.  */
15602#ifndef HAVE_GETPAGESIZE
15603# ifdef _SC_PAGESIZE
15604#  define getpagesize() sysconf(_SC_PAGESIZE)
15605# else /* no _SC_PAGESIZE */
15606#  ifdef HAVE_SYS_PARAM_H
15607#   include <sys/param.h>
15608#   ifdef EXEC_PAGESIZE
15609#    define getpagesize() EXEC_PAGESIZE
15610#   else /* no EXEC_PAGESIZE */
15611#    ifdef NBPG
15612#     define getpagesize() NBPG * CLSIZE
15613#     ifndef CLSIZE
15614#      define CLSIZE 1
15615#     endif /* no CLSIZE */
15616#    else /* no NBPG */
15617#     ifdef NBPC
15618#      define getpagesize() NBPC
15619#     else /* no NBPC */
15620#      ifdef PAGESIZE
15621#       define getpagesize() PAGESIZE
15622#      endif /* PAGESIZE */
15623#     endif /* no NBPC */
15624#    endif /* no NBPG */
15625#   endif /* no EXEC_PAGESIZE */
15626#  else /* no HAVE_SYS_PARAM_H */
15627#   define getpagesize() 8192	/* punt totally */
15628#  endif /* no HAVE_SYS_PARAM_H */
15629# endif /* no _SC_PAGESIZE */
15630
15631#endif /* no HAVE_GETPAGESIZE */
15632
15633int
15634main ()
15635{
15636  char *data, *data2, *data3;
15637  int i, pagesize;
15638  int fd, fd2;
15639
15640  pagesize = getpagesize ();
15641
15642  /* First, make a file with some known garbage in it. */
15643  data = (char *) malloc (pagesize);
15644  if (!data)
15645    return 1;
15646  for (i = 0; i < pagesize; ++i)
15647    *(data + i) = rand ();
15648  umask (0);
15649  fd = creat ("conftest.mmap", 0600);
15650  if (fd < 0)
15651    return 2;
15652  if (write (fd, data, pagesize) != pagesize)
15653    return 3;
15654  close (fd);
15655
15656  /* Next, check that the tail of a page is zero-filled.  File must have
15657     non-zero length, otherwise we risk SIGBUS for entire page.  */
15658  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15659  if (fd2 < 0)
15660    return 4;
15661  data2 = "";
15662  if (write (fd2, data2, 1) != 1)
15663    return 5;
15664  data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15665  if (data2 == MAP_FAILED)
15666    return 6;
15667  for (i = 0; i < pagesize; ++i)
15668    if (*(data2 + i))
15669      return 7;
15670  close (fd2);
15671  if (munmap (data2, pagesize))
15672    return 8;
15673
15674  /* Next, try to mmap the file at a fixed address which already has
15675     something else allocated at it.  If we can, also make sure that
15676     we see the same garbage.  */
15677  fd = open ("conftest.mmap", O_RDWR);
15678  if (fd < 0)
15679    return 9;
15680  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15681		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
15682    return 10;
15683  for (i = 0; i < pagesize; ++i)
15684    if (*(data + i) != *(data2 + i))
15685      return 11;
15686
15687  /* Finally, make sure that changes to the mapped area do not
15688     percolate back to the file as seen by read().  (This is a bug on
15689     some variants of i386 svr4.0.)  */
15690  for (i = 0; i < pagesize; ++i)
15691    *(data2 + i) = *(data2 + i) + 1;
15692  data3 = (char *) malloc (pagesize);
15693  if (!data3)
15694    return 12;
15695  if (read (fd, data3, pagesize) != pagesize)
15696    return 13;
15697  for (i = 0; i < pagesize; ++i)
15698    if (*(data + i) != *(data3 + i))
15699      return 14;
15700  close (fd);
15701  return 0;
15702}
15703_ACEOF
15704if ac_fn_c_try_run "$LINENO"; then :
15705  ac_cv_func_mmap_fixed_mapped=yes
15706else
15707  ac_cv_func_mmap_fixed_mapped=no
15708fi
15709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15710  conftest.$ac_objext conftest.beam conftest.$ac_ext
15711fi
15712
15713fi
15714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15715$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15716if test $ac_cv_func_mmap_fixed_mapped = yes; then
15717
15718$as_echo "#define HAVE_MMAP 1" >>confdefs.h
15719
15720fi
15721rm -f conftest.mmap conftest.txt
15722
15723
15724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if realloc if broken" >&5
15725$as_echo_n "checking if realloc if broken... " >&6; }
15726if test "${ac_cv_func_realloc_broken+set}" = set; then :
15727  $as_echo_n "(cached) " >&6
15728else
15729
15730ac_cv_func_realloc_broken=no
15731if test "$cross_compiling" = yes; then :
15732  :
15733else
15734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735/* end confdefs.h.  */
15736
15737#include <stddef.h>
15738#include <stdlib.h>
15739
15740int main(int argc, char **argv)
15741{
15742	return realloc(NULL, 17) == NULL;
15743}
15744
15745_ACEOF
15746if ac_fn_c_try_run "$LINENO"; then :
15747  :
15748else
15749  ac_cv_func_realloc_broken=yes
15750fi
15751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15752  conftest.$ac_objext conftest.beam conftest.$ac_ext
15753fi
15754
15755
15756fi
15757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_broken" >&5
15758$as_echo "$ac_cv_func_realloc_broken" >&6; }
15759if test "$ac_cv_func_realloc_broken" = yes ; then
15760
15761$as_echo "#define BROKEN_REALLOC 1" >>confdefs.h
15762
15763fi
15764
15765
15766
15767
15768
15769
15770DIR_roken=roken
15771LIB_roken='$(top_builddir)/lib/roken/libroken.la'
15772INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783$as_echo "#define rk_PATH_DELIM '/'" >>confdefs.h
15784
15785
15786
15787
15788
15789
15790
15791
15792# Check whether --enable-developer was given.
15793if test "${enable_developer+set}" = set; then :
15794  enableval=$enable_developer;
15795fi
15796
15797if test "X$enable_developer" = Xyes; then
15798    dwflags="-Werror"
15799fi
15800
15801WFLAGS_NOUNUSED=""
15802WFLAGS_NOIMPLICITINT=""
15803if test -z "$WFLAGS" -a "$GCC" = "yes"; then
15804  # -Wno-implicit-int for broken X11 headers
15805  # leave these out for now:
15806  #   -Wcast-align doesn't work well on alpha osf/1
15807  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
15808  #   -Wmissing-declarations -Wnested-externs
15809  #   -Wstrict-overflow=5
15810  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
15811  WFLAGS_NOUNUSED="-Wno-unused"
15812  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
15813fi
15814
15815
15816
15817
15818
15819
15820
15821
15822cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
15823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15824$as_echo_n "checking for ssize_t... " >&6; }
15825if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
15826  $as_echo_n "(cached) " >&6
15827else
15828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829/* end confdefs.h.  */
15830
15831#include <sys/types.h>
15832#if STDC_HEADERS
15833#include <stdlib.h>
15834#include <stddef.h>
15835#endif
15836#include <unistd.h>
15837int
15838main ()
15839{
15840ssize_t foo;
15841  ;
15842  return 0;
15843}
15844_ACEOF
15845if ac_fn_c_try_compile "$LINENO"; then :
15846  eval "ac_cv_type_$cv=yes"
15847else
15848  eval "ac_cv_type_$cv=no"
15849fi
15850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15851fi
15852ac_foo=`eval echo \\$ac_cv_type_$cv`
15853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
15854$as_echo "$ac_foo" >&6; }
15855if test "$ac_foo" = yes; then
15856  ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
15857if false; then
15858	ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15859if test "x$ac_cv_type_ssize_t" = x""yes; then :
15860
15861cat >>confdefs.h <<_ACEOF
15862#define HAVE_SSIZE_T 1
15863_ACEOF
15864
15865
15866fi
15867
15868fi
15869
15870cat >>confdefs.h <<_ACEOF
15871#define $ac_tr_hdr 1
15872_ACEOF
15873
15874fi
15875
15876
15877
15878
15879
15880cv=`echo "long long" | sed 'y%./+- %__p__%'`
15881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
15882$as_echo_n "checking for long long... " >&6; }
15883if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
15884  $as_echo_n "(cached) " >&6
15885else
15886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887/* end confdefs.h.  */
15888
15889#include <sys/types.h>
15890#if STDC_HEADERS
15891#include <stdlib.h>
15892#include <stddef.h>
15893#endif
15894
15895int
15896main ()
15897{
15898long long foo;
15899  ;
15900  return 0;
15901}
15902_ACEOF
15903if ac_fn_c_try_compile "$LINENO"; then :
15904  eval "ac_cv_type_$cv=yes"
15905else
15906  eval "ac_cv_type_$cv=no"
15907fi
15908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909fi
15910ac_foo=`eval echo \\$ac_cv_type_$cv`
15911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
15912$as_echo "$ac_foo" >&6; }
15913if test "$ac_foo" = yes; then
15914  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
15915if false; then
15916	ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15917if test "x$ac_cv_type_long_long" = x""yes; then :
15918
15919cat >>confdefs.h <<_ACEOF
15920#define HAVE_LONG_LONG 1
15921_ACEOF
15922
15923
15924fi
15925
15926fi
15927
15928cat >>confdefs.h <<_ACEOF
15929#define $ac_tr_hdr 1
15930_ACEOF
15931
15932fi
15933
15934
15935
15936
15937
15938
15939
15940for ac_header in \
15941	arpa/inet.h				\
15942	config.h				\
15943	crypt.h					\
15944	dirent.h				\
15945	errno.h					\
15946	err.h					\
15947	fcntl.h					\
15948	fnmatch.h				\
15949	grp.h					\
15950	ifaddrs.h				\
15951	netinet/in.h				\
15952	netinet/in6.h				\
15953	netinet/in_systm.h			\
15954	netinet6/in6.h				\
15955	paths.h					\
15956	poll.h					\
15957	pwd.h					\
15958	rpcsvc/ypclnt.h				\
15959	search.h				\
15960	shadow.h				\
15961	stdint.h				\
15962	sys/bswap.h				\
15963	sys/ioctl.h				\
15964	sys/mman.h				\
15965	sys/param.h				\
15966	sys/resource.h				\
15967	sys/sockio.h				\
15968	sys/stat.h				\
15969	sys/time.h				\
15970	sys/tty.h				\
15971	sys/types.h				\
15972	sys/uio.h				\
15973	sys/utsname.h				\
15974	sys/wait.h				\
15975	syslog.h				\
15976	termios.h				\
15977	winsock2.h				\
15978	ws2tcpip.h				\
15979	unistd.h				\
15980	userconf.h				\
15981	usersec.h				\
15982	util.h					\
15983
15984do :
15985  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15986ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15987eval as_val=\$$as_ac_Header
15988   if test "x$as_val" = x""yes; then :
15989  cat >>confdefs.h <<_ACEOF
15990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15991_ACEOF
15992
15993fi
15994
15995done
15996
15997
15998
15999
16000cv=`echo "uintptr_t" | sed 'y%./+- %__p__%'`
16001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5
16002$as_echo_n "checking for uintptr_t... " >&6; }
16003if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
16004  $as_echo_n "(cached) " >&6
16005else
16006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007/* end confdefs.h.  */
16008
16009#include <sys/types.h>
16010#if STDC_HEADERS
16011#include <stdlib.h>
16012#include <stddef.h>
16013#endif
16014#ifdef HAVE_STDINT_H
16015#include <stdint.h>
16016#endif
16017int
16018main ()
16019{
16020uintptr_t foo;
16021  ;
16022  return 0;
16023}
16024_ACEOF
16025if ac_fn_c_try_compile "$LINENO"; then :
16026  eval "ac_cv_type_$cv=yes"
16027else
16028  eval "ac_cv_type_$cv=no"
16029fi
16030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16031fi
16032ac_foo=`eval echo \\$ac_cv_type_$cv`
16033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
16034$as_echo "$ac_foo" >&6; }
16035if test "$ac_foo" = yes; then
16036  ac_tr_hdr=HAVE_`echo uintptr_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
16037if false; then
16038	ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16039if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16040
16041cat >>confdefs.h <<_ACEOF
16042#define HAVE_UINTPTR_T 1
16043_ACEOF
16044
16045
16046fi
16047
16048fi
16049
16050cat >>confdefs.h <<_ACEOF
16051#define $ac_tr_hdr 1
16052_ACEOF
16053
16054fi
16055
16056
16057for ac_header in vis.h
16058do :
16059  ac_fn_c_check_header_compile "$LINENO" "vis.h" "ac_cv_header_vis_h" "
16060#include <vis.h>
16061#ifndef VIS_SP
16062#error invis
16063#endif
16064"
16065if test "x$ac_cv_header_vis_h" = x""yes; then :
16066  cat >>confdefs.h <<_ACEOF
16067#define HAVE_VIS_H 1
16068_ACEOF
16069
16070fi
16071
16072done
16073
16074
16075for ac_header in netdb.h
16076do :
16077  ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default
16078#ifdef HAVE_SYS_TYPES_H
16079#include <sys/types.h>
16080#endif
16081
16082"
16083if test "x$ac_cv_header_netdb_h" = x""yes; then :
16084  cat >>confdefs.h <<_ACEOF
16085#define HAVE_NETDB_H 1
16086_ACEOF
16087
16088fi
16089
16090done
16091
16092
16093for ac_header in sys/socket.h
16094do :
16095  ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
16096#ifdef HAVE_SYS_TYPES_H
16097#include <sys/types.h>
16098#endif
16099
16100"
16101if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
16102  cat >>confdefs.h <<_ACEOF
16103#define HAVE_SYS_SOCKET_H 1
16104_ACEOF
16105
16106fi
16107
16108done
16109
16110
16111for ac_header in net/if.h
16112do :
16113  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
16114#ifdef HAVE_SYS_TYPES_H
16115#include <sys/types.h>
16116#endif
16117#if HAVE_SYS_SOCKET_H
16118#include <sys/socket.h>
16119#endif
16120"
16121if test "x$ac_cv_header_net_if_h" = x""yes; then :
16122  cat >>confdefs.h <<_ACEOF
16123#define HAVE_NET_IF_H 1
16124_ACEOF
16125
16126fi
16127
16128done
16129
16130
16131for ac_header in netinet6/in6_var.h
16132do :
16133  ac_fn_c_check_header_compile "$LINENO" "netinet6/in6_var.h" "ac_cv_header_netinet6_in6_var_h" "$ac_includes_default
16134#ifdef HAVE_SYS_TYPES_H
16135#include <sys/types.h>
16136#endif
16137#if HAVE_SYS_SOCKET_H
16138#include <sys/socket.h>
16139#endif
16140#ifdef HAVE_NETINET6_IN6_H
16141#include <netinet6/in6.h>
16142#endif
16143
16144"
16145if test "x$ac_cv_header_netinet6_in6_var_h" = x""yes; then :
16146  cat >>confdefs.h <<_ACEOF
16147#define HAVE_NETINET6_IN6_VAR_H 1
16148_ACEOF
16149
16150fi
16151
16152done
16153
16154
16155for ac_header in sys/sysctl.h
16156do :
16157  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
16158#ifdef HAVE_SYS_PARAM_H
16159#include <sys/param.h>
16160#endif
16161
16162"
16163if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
16164  cat >>confdefs.h <<_ACEOF
16165#define HAVE_SYS_SYSCTL_H 1
16166_ACEOF
16167
16168fi
16169
16170done
16171
16172
16173for ac_header in sys/proc.h
16174do :
16175  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "$ac_includes_default
16176#ifdef HAVE_SYS_PARAM_H
16177#include <sys/param.h>
16178#endif
16179
16180"
16181if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
16182  cat >>confdefs.h <<_ACEOF
16183#define HAVE_SYS_PROC_H 1
16184_ACEOF
16185
16186fi
16187
16188done
16189
16190
16191
16192
16193 if test "$ac_cv_header_err_h" = yes; then
16194  have_err_h_TRUE=
16195  have_err_h_FALSE='#'
16196else
16197  have_err_h_TRUE='#'
16198  have_err_h_FALSE=
16199fi
16200
16201 if test "$ac_cv_header_ifaddrs_h" = yes; then
16202  have_ifaddrs_h_TRUE=
16203  have_ifaddrs_h_FALSE='#'
16204else
16205  have_ifaddrs_h_TRUE='#'
16206  have_ifaddrs_h_FALSE=
16207fi
16208
16209 if test "$ac_cv_header_search_h" = yes; then
16210  have_search_h_TRUE=
16211  have_search_h_FALSE='#'
16212else
16213  have_search_h_TRUE='#'
16214  have_search_h_FALSE=
16215fi
16216
16217 if test "$ac_cv_header_vis_h" = yes; then
16218  have_vis_h_TRUE=
16219  have_vis_h_FALSE='#'
16220else
16221  have_vis_h_TRUE='#'
16222  have_vis_h_FALSE=
16223fi
16224
16225
16226
16227
16228
16229
16230
16231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket" >&5
16232$as_echo_n "checking for socket... " >&6; }
16233if test "${ac_cv_funclib_socket+set}" = set; then :
16234  $as_echo_n "(cached) " >&6
16235else
16236
16237if eval "test \"\$ac_cv_func_socket\" != yes" ; then
16238	ac_save_LIBS="$LIBS"
16239	for ac_lib in "" socket; do
16240		case "$ac_lib" in
16241		"") ;;
16242		yes) ac_lib="" ;;
16243		no) continue ;;
16244		-l*) ;;
16245		*) ac_lib="-l$ac_lib" ;;
16246		esac
16247		LIBS=" $ac_lib  $ac_save_LIBS"
16248		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249/* end confdefs.h.  */
16250
16251int
16252main ()
16253{
16254socket()
16255  ;
16256  return 0;
16257}
16258_ACEOF
16259if ac_fn_c_try_link "$LINENO"; then :
16260  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
16261fi
16262rm -f core conftest.err conftest.$ac_objext \
16263    conftest$ac_exeext conftest.$ac_ext
16264	done
16265	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
16266	LIBS="$ac_save_LIBS"
16267fi
16268
16269fi
16270
16271
16272eval "ac_res=\$ac_cv_funclib_socket"
16273
16274if false; then
16275	for ac_func in socket
16276do :
16277  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16278if test "x$ac_cv_func_socket" = x""yes; then :
16279  cat >>confdefs.h <<_ACEOF
16280#define HAVE_SOCKET 1
16281_ACEOF
16282
16283fi
16284done
16285
16286fi
16287# socket
16288eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16289eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16290eval "LIB_socket=$ac_res"
16291
16292case "$ac_res" in
16293	yes)
16294	eval "ac_cv_func_socket=yes"
16295	eval "LIB_socket="
16296	cat >>confdefs.h <<_ACEOF
16297#define $ac_tr_func 1
16298_ACEOF
16299
16300	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16301$as_echo "yes" >&6; }
16302	;;
16303	no)
16304	eval "ac_cv_func_socket=no"
16305	eval "LIB_socket="
16306	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16307$as_echo "no" >&6; }
16308	;;
16309	*)
16310	eval "ac_cv_func_socket=yes"
16311	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16312	cat >>confdefs.h <<_ACEOF
16313#define $ac_tr_func 1
16314_ACEOF
16315
16316	cat >>confdefs.h <<_ACEOF
16317#define $ac_tr_lib 1
16318_ACEOF
16319
16320	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16321$as_echo "yes, in $ac_res" >&6; }
16322	;;
16323esac
16324
16325
16326if test -n "$LIB_socket"; then
16327	LIBS="$LIB_socket $LIBS"
16328fi
16329
16330
16331
16332
16333
16334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5
16335$as_echo_n "checking for gethostbyname... " >&6; }
16336if test "${ac_cv_funclib_gethostbyname+set}" = set; then :
16337  $as_echo_n "(cached) " >&6
16338else
16339
16340if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
16341	ac_save_LIBS="$LIBS"
16342	for ac_lib in "" nsl; do
16343		case "$ac_lib" in
16344		"") ;;
16345		yes) ac_lib="" ;;
16346		no) continue ;;
16347		-l*) ;;
16348		*) ac_lib="-l$ac_lib" ;;
16349		esac
16350		LIBS=" $ac_lib  $ac_save_LIBS"
16351		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352/* end confdefs.h.  */
16353
16354int
16355main ()
16356{
16357gethostbyname()
16358  ;
16359  return 0;
16360}
16361_ACEOF
16362if ac_fn_c_try_link "$LINENO"; then :
16363  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
16364fi
16365rm -f core conftest.err conftest.$ac_objext \
16366    conftest$ac_exeext conftest.$ac_ext
16367	done
16368	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
16369	LIBS="$ac_save_LIBS"
16370fi
16371
16372fi
16373
16374
16375eval "ac_res=\$ac_cv_funclib_gethostbyname"
16376
16377if false; then
16378	for ac_func in gethostbyname
16379do :
16380  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16381if test "x$ac_cv_func_gethostbyname" = x""yes; then :
16382  cat >>confdefs.h <<_ACEOF
16383#define HAVE_GETHOSTBYNAME 1
16384_ACEOF
16385
16386fi
16387done
16388
16389fi
16390# gethostbyname
16391eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16392eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16393eval "LIB_gethostbyname=$ac_res"
16394
16395case "$ac_res" in
16396	yes)
16397	eval "ac_cv_func_gethostbyname=yes"
16398	eval "LIB_gethostbyname="
16399	cat >>confdefs.h <<_ACEOF
16400#define $ac_tr_func 1
16401_ACEOF
16402
16403	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16404$as_echo "yes" >&6; }
16405	;;
16406	no)
16407	eval "ac_cv_func_gethostbyname=no"
16408	eval "LIB_gethostbyname="
16409	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16410$as_echo "no" >&6; }
16411	;;
16412	*)
16413	eval "ac_cv_func_gethostbyname=yes"
16414	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16415	cat >>confdefs.h <<_ACEOF
16416#define $ac_tr_func 1
16417_ACEOF
16418
16419	cat >>confdefs.h <<_ACEOF
16420#define $ac_tr_lib 1
16421_ACEOF
16422
16423	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16424$as_echo "yes, in $ac_res" >&6; }
16425	;;
16426esac
16427
16428
16429if test -n "$LIB_gethostbyname"; then
16430	LIBS="$LIB_gethostbyname $LIBS"
16431fi
16432
16433
16434
16435
16436
16437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog" >&5
16438$as_echo_n "checking for syslog... " >&6; }
16439if test "${ac_cv_funclib_syslog+set}" = set; then :
16440  $as_echo_n "(cached) " >&6
16441else
16442
16443if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
16444	ac_save_LIBS="$LIBS"
16445	for ac_lib in "" syslog; do
16446		case "$ac_lib" in
16447		"") ;;
16448		yes) ac_lib="" ;;
16449		no) continue ;;
16450		-l*) ;;
16451		*) ac_lib="-l$ac_lib" ;;
16452		esac
16453		LIBS=" $ac_lib  $ac_save_LIBS"
16454		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455/* end confdefs.h.  */
16456
16457int
16458main ()
16459{
16460syslog()
16461  ;
16462  return 0;
16463}
16464_ACEOF
16465if ac_fn_c_try_link "$LINENO"; then :
16466  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
16467fi
16468rm -f core conftest.err conftest.$ac_objext \
16469    conftest$ac_exeext conftest.$ac_ext
16470	done
16471	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
16472	LIBS="$ac_save_LIBS"
16473fi
16474
16475fi
16476
16477
16478eval "ac_res=\$ac_cv_funclib_syslog"
16479
16480if false; then
16481	for ac_func in syslog
16482do :
16483  ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
16484if test "x$ac_cv_func_syslog" = x""yes; then :
16485  cat >>confdefs.h <<_ACEOF
16486#define HAVE_SYSLOG 1
16487_ACEOF
16488
16489fi
16490done
16491
16492fi
16493# syslog
16494eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16495eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16496eval "LIB_syslog=$ac_res"
16497
16498case "$ac_res" in
16499	yes)
16500	eval "ac_cv_func_syslog=yes"
16501	eval "LIB_syslog="
16502	cat >>confdefs.h <<_ACEOF
16503#define $ac_tr_func 1
16504_ACEOF
16505
16506	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16507$as_echo "yes" >&6; }
16508	;;
16509	no)
16510	eval "ac_cv_func_syslog=no"
16511	eval "LIB_syslog="
16512	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16513$as_echo "no" >&6; }
16514	;;
16515	*)
16516	eval "ac_cv_func_syslog=yes"
16517	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16518	cat >>confdefs.h <<_ACEOF
16519#define $ac_tr_func 1
16520_ACEOF
16521
16522	cat >>confdefs.h <<_ACEOF
16523#define $ac_tr_lib 1
16524_ACEOF
16525
16526	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16527$as_echo "yes, in $ac_res" >&6; }
16528	;;
16529esac
16530
16531
16532if test -n "$LIB_syslog"; then
16533	LIBS="$LIB_syslog $LIBS"
16534fi
16535
16536
16537
16538
16539# Check whether --with-ipv6 was given.
16540if test "${with_ipv6+set}" = set; then :
16541  withval=$with_ipv6;
16542        ac_cv_lib_ipv6="$withval"
16543
16544fi
16545
16546save_CFLAGS="${CFLAGS}"
16547
16548if test "X$ac_cv_lib_ipv6" != "Xno"; then
16549
16550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 stack type" >&5
16551$as_echo_n "checking for IPv6 stack type... " >&6; }
16552if test "${rk_cv_v6type+set}" = set; then :
16553  $as_echo_n "(cached) " >&6
16554else
16555  	v6type=unknown
16556	v6lib=none
16557
16558	for i in v6d toshiba kame inria zeta linux; do
16559		case $i in
16560		v6d)
16561			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562/* end confdefs.h.  */
16563
16564#include </usr/local/v6/include/sys/types.h>
16565#ifdef __V6D__
16566yes
16567#endif
16568_ACEOF
16569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16570  $EGREP "yes" >/dev/null 2>&1; then :
16571  v6type=$i; v6lib=v6;
16572				v6libdir=/usr/local/v6/lib;
16573				CFLAGS="-I/usr/local/v6/include $CFLAGS"
16574fi
16575rm -f conftest*
16576
16577			;;
16578		toshiba)
16579			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580/* end confdefs.h.  */
16581
16582#include <sys/param.h>
16583#ifdef _TOSHIBA_INET6
16584yes
16585#endif
16586_ACEOF
16587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16588  $EGREP "yes" >/dev/null 2>&1; then :
16589  v6type=$i; v6lib=inet6;
16590				v6libdir=/usr/local/v6/lib;
16591				CFLAGS="-DINET6 $CFLAGS"
16592fi
16593rm -f conftest*
16594
16595			;;
16596		kame)
16597			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16598/* end confdefs.h.  */
16599
16600#include <netinet/in.h>
16601#ifdef __KAME__
16602yes
16603#endif
16604_ACEOF
16605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16606  $EGREP "yes" >/dev/null 2>&1; then :
16607  v6type=$i; v6lib=inet6;
16608				v6libdir=/usr/local/v6/lib;
16609				CFLAGS="-DINET6 $CFLAGS"
16610fi
16611rm -f conftest*
16612
16613			;;
16614		inria)
16615			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616/* end confdefs.h.  */
16617
16618#include <netinet/in.h>
16619#ifdef IPV6_INRIA_VERSION
16620yes
16621#endif
16622_ACEOF
16623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16624  $EGREP "yes" >/dev/null 2>&1; then :
16625  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
16626fi
16627rm -f conftest*
16628
16629			;;
16630		zeta)
16631			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632/* end confdefs.h.  */
16633
16634#include <sys/param.h>
16635#ifdef _ZETA_MINAMI_INET6
16636yes
16637#endif
16638_ACEOF
16639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16640  $EGREP "yes" >/dev/null 2>&1; then :
16641  v6type=$i; v6lib=inet6;
16642				v6libdir=/usr/local/v6/lib;
16643				CFLAGS="-DINET6 $CFLAGS"
16644fi
16645rm -f conftest*
16646
16647			;;
16648		linux)
16649			if test -d /usr/inet6; then
16650				v6type=$i
16651				v6lib=inet6
16652				v6libdir=/usr/inet6
16653				CFLAGS="-DINET6 $CFLAGS"
16654			fi
16655			;;
16656		esac
16657		if test "$v6type" != "unknown"; then
16658			break
16659		fi
16660	done
16661
16662	if test "$v6lib" != "none"; then
16663		for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
16664			if test -d $dir -a -f $dir/lib$v6lib.a; then
16665				LIBS="-L$dir -l$v6lib $LIBS"
16666				break
16667			fi
16668		done
16669	fi
16670fi
16671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_v6type" >&5
16672$as_echo "$rk_cv_v6type" >&6; }
16673
16674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5
16675$as_echo_n "checking for IPv6... " >&6; }
16676if test "${rk_cv_lib_ipv6+set}" = set; then :
16677  $as_echo_n "(cached) " >&6
16678else
16679
16680	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681/* end confdefs.h.  */
16682
16683#ifdef HAVE_SYS_TYPES_H
16684#include <sys/types.h>
16685#endif
16686#ifdef HAVE_SYS_SOCKET_H
16687#include <sys/socket.h>
16688#endif
16689#ifdef HAVE_NETINET_IN_H
16690#include <netinet/in.h>
16691#endif
16692#ifdef HAVE_NETINET_IN6_H
16693#include <netinet/in6.h>
16694#endif
16695
16696int
16697main ()
16698{
16699
16700 struct sockaddr_in6 sin6;
16701 int s;
16702
16703 s = socket(AF_INET6, SOCK_DGRAM, 0);
16704
16705 sin6.sin6_family = AF_INET6;
16706 sin6.sin6_port = htons(17);
16707 sin6.sin6_addr = in6addr_any;
16708 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
16709
16710  ;
16711  return 0;
16712}
16713_ACEOF
16714if ac_fn_c_try_link "$LINENO"; then :
16715  ac_cv_lib_ipv6=yes
16716else
16717  ac_cv_lib_ipv6=no
16718fi
16719rm -f core conftest.err conftest.$ac_objext \
16720    conftest$ac_exeext conftest.$ac_ext
16721fi
16722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_lib_ipv6" >&5
16723$as_echo "$rk_cv_lib_ipv6" >&6; }
16724fi
16725
16726if test "$ac_cv_lib_ipv6" = yes; then
16727
16728$as_echo "#define HAVE_IPV6 1" >>confdefs.h
16729
16730else
16731  CFLAGS="${save_CFLAGS}"
16732fi
16733
16734## test for AIX missing in6addr_loopback
16735if test "$ac_cv_lib_ipv6" = yes; then
16736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5
16737$as_echo_n "checking for in6addr_loopback... " >&6; }
16738if test "${rk_cv_var_in6addr_loopback+set}" = set; then :
16739  $as_echo_n "(cached) " >&6
16740else
16741
16742	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743/* end confdefs.h.  */
16744
16745#ifdef HAVE_SYS_TYPES_H
16746#include <sys/types.h>
16747#endif
16748#ifdef HAVE_SYS_SOCKET_H
16749#include <sys/socket.h>
16750#endif
16751#ifdef HAVE_NETINET_IN_H
16752#include <netinet/in.h>
16753#endif
16754#ifdef HAVE_NETINET_IN6_H
16755#include <netinet/in6.h>
16756#endif
16757int
16758main ()
16759{
16760
16761struct sockaddr_in6 sin6;
16762sin6.sin6_addr = in6addr_loopback;
16763
16764  ;
16765  return 0;
16766}
16767_ACEOF
16768if ac_fn_c_try_link "$LINENO"; then :
16769  ac_cv_var_in6addr_loopback=yes
16770else
16771  ac_cv_var_in6addr_loopback=no
16772fi
16773rm -f core conftest.err conftest.$ac_objext \
16774    conftest$ac_exeext conftest.$ac_ext
16775fi
16776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_var_in6addr_loopback" >&5
16777$as_echo "$rk_cv_var_in6addr_loopback" >&6; }
16778	if test "$ac_cv_var_in6addr_loopback" = yes; then
16779
16780$as_echo "#define HAVE_IN6ADDR_LOOPBACK 1" >>confdefs.h
16781
16782	fi
16783fi
16784
16785
16786
16787
16788
16789
16790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2" >&5
16791$as_echo_n "checking for gethostbyname2... " >&6; }
16792if test "${ac_cv_funclib_gethostbyname2+set}" = set; then :
16793  $as_echo_n "(cached) " >&6
16794else
16795
16796if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
16797	ac_save_LIBS="$LIBS"
16798	for ac_lib in "" inet6 ip6; do
16799		case "$ac_lib" in
16800		"") ;;
16801		yes) ac_lib="" ;;
16802		no) continue ;;
16803		-l*) ;;
16804		*) ac_lib="-l$ac_lib" ;;
16805		esac
16806		LIBS=" $ac_lib  $ac_save_LIBS"
16807		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808/* end confdefs.h.  */
16809
16810int
16811main ()
16812{
16813gethostbyname2()
16814  ;
16815  return 0;
16816}
16817_ACEOF
16818if ac_fn_c_try_link "$LINENO"; then :
16819  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
16820fi
16821rm -f core conftest.err conftest.$ac_objext \
16822    conftest$ac_exeext conftest.$ac_ext
16823	done
16824	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
16825	LIBS="$ac_save_LIBS"
16826fi
16827
16828fi
16829
16830
16831eval "ac_res=\$ac_cv_funclib_gethostbyname2"
16832
16833if false; then
16834	for ac_func in gethostbyname2
16835do :
16836  ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
16837if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
16838  cat >>confdefs.h <<_ACEOF
16839#define HAVE_GETHOSTBYNAME2 1
16840_ACEOF
16841
16842fi
16843done
16844
16845fi
16846# gethostbyname2
16847eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16848eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16849eval "LIB_gethostbyname2=$ac_res"
16850
16851case "$ac_res" in
16852	yes)
16853	eval "ac_cv_func_gethostbyname2=yes"
16854	eval "LIB_gethostbyname2="
16855	cat >>confdefs.h <<_ACEOF
16856#define $ac_tr_func 1
16857_ACEOF
16858
16859	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16860$as_echo "yes" >&6; }
16861	;;
16862	no)
16863	eval "ac_cv_func_gethostbyname2=no"
16864	eval "LIB_gethostbyname2="
16865	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16866$as_echo "no" >&6; }
16867	;;
16868	*)
16869	eval "ac_cv_func_gethostbyname2=yes"
16870	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16871	cat >>confdefs.h <<_ACEOF
16872#define $ac_tr_func 1
16873_ACEOF
16874
16875	cat >>confdefs.h <<_ACEOF
16876#define $ac_tr_lib 1
16877_ACEOF
16878
16879	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16880$as_echo "yes, in $ac_res" >&6; }
16881	;;
16882esac
16883
16884
16885if test -n "$LIB_gethostbyname2"; then
16886	LIBS="$LIB_gethostbyname2 $LIBS"
16887fi
16888
16889
16890
16891
16892for ac_header in arpa/nameser.h dns.h
16893do :
16894  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16895ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16896eval as_val=\$$as_ac_Header
16897   if test "x$as_val" = x""yes; then :
16898  cat >>confdefs.h <<_ACEOF
16899#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16900_ACEOF
16901
16902fi
16903
16904done
16905
16906
16907for ac_header in resolv.h
16908do :
16909  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
16910#ifdef HAVE_SYS_TYPES_H
16911#include <sys/types.h>
16912#endif
16913#ifdef HAVE_NETINET_IN_H
16914#include <netinet/in.h>
16915#endif
16916#ifdef HAVE_ARPA_NAMESER_H
16917#include <arpa/nameser.h>
16918#endif
16919
16920"
16921if test "x$ac_cv_header_resolv_h" = x""yes; then :
16922  cat >>confdefs.h <<_ACEOF
16923#define HAVE_RESOLV_H 1
16924_ACEOF
16925
16926fi
16927
16928done
16929
16930
16931
16932
16933
16934
16935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search" >&5
16936$as_echo_n "checking for res_search... " >&6; }
16937if test "${ac_cv_funclib_res_search+set}" = set; then :
16938  $as_echo_n "(cached) " >&6
16939else
16940
16941if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
16942	ac_save_LIBS="$LIBS"
16943	for ac_lib in "" resolv; do
16944		case "$ac_lib" in
16945		"") ;;
16946		yes) ac_lib="" ;;
16947		no) continue ;;
16948		-l*) ;;
16949		*) ac_lib="-l$ac_lib" ;;
16950		esac
16951		LIBS=" $ac_lib  $ac_save_LIBS"
16952		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953/* end confdefs.h.  */
16954
16955#include <stdio.h>
16956#ifdef HAVE_SYS_TYPES_H
16957#include <sys/types.h>
16958#endif
16959#ifdef HAVE_NETINET_IN_H
16960#include <netinet/in.h>
16961#endif
16962#ifdef HAVE_ARPA_NAMESER_H
16963#include <arpa/nameser.h>
16964#endif
16965#ifdef HAVE_RESOLV_H
16966#include <resolv.h>
16967#endif
16968
16969int
16970main ()
16971{
16972res_search(0,0,0,0,0)
16973  ;
16974  return 0;
16975}
16976_ACEOF
16977if ac_fn_c_try_link "$LINENO"; then :
16978  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
16979fi
16980rm -f core conftest.err conftest.$ac_objext \
16981    conftest$ac_exeext conftest.$ac_ext
16982	done
16983	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
16984	LIBS="$ac_save_LIBS"
16985fi
16986
16987fi
16988
16989
16990eval "ac_res=\$ac_cv_funclib_res_search"
16991
16992if false; then
16993	for ac_func in res_search
16994do :
16995  ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
16996if test "x$ac_cv_func_res_search" = x""yes; then :
16997  cat >>confdefs.h <<_ACEOF
16998#define HAVE_RES_SEARCH 1
16999_ACEOF
17000
17001fi
17002done
17003
17004fi
17005# res_search
17006eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17007eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17008eval "LIB_res_search=$ac_res"
17009
17010case "$ac_res" in
17011	yes)
17012	eval "ac_cv_func_res_search=yes"
17013	eval "LIB_res_search="
17014	cat >>confdefs.h <<_ACEOF
17015#define $ac_tr_func 1
17016_ACEOF
17017
17018	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17019$as_echo "yes" >&6; }
17020	;;
17021	no)
17022	eval "ac_cv_func_res_search=no"
17023	eval "LIB_res_search="
17024	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17025$as_echo "no" >&6; }
17026	;;
17027	*)
17028	eval "ac_cv_func_res_search=yes"
17029	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17030	cat >>confdefs.h <<_ACEOF
17031#define $ac_tr_func 1
17032_ACEOF
17033
17034	cat >>confdefs.h <<_ACEOF
17035#define $ac_tr_lib 1
17036_ACEOF
17037
17038	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17039$as_echo "yes, in $ac_res" >&6; }
17040	;;
17041esac
17042
17043
17044if test -n "$LIB_res_search"; then
17045	LIBS="$LIB_res_search $LIBS"
17046fi
17047
17048
17049
17050
17051
17052
17053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch" >&5
17054$as_echo_n "checking for res_nsearch... " >&6; }
17055if test "${ac_cv_funclib_res_nsearch+set}" = set; then :
17056  $as_echo_n "(cached) " >&6
17057else
17058
17059if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
17060	ac_save_LIBS="$LIBS"
17061	for ac_lib in "" resolv; do
17062		case "$ac_lib" in
17063		"") ;;
17064		yes) ac_lib="" ;;
17065		no) continue ;;
17066		-l*) ;;
17067		*) ac_lib="-l$ac_lib" ;;
17068		esac
17069		LIBS=" $ac_lib  $ac_save_LIBS"
17070		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071/* end confdefs.h.  */
17072
17073#include <stdio.h>
17074#ifdef HAVE_SYS_TYPES_H
17075#include <sys/types.h>
17076#endif
17077#ifdef HAVE_NETINET_IN_H
17078#include <netinet/in.h>
17079#endif
17080#ifdef HAVE_ARPA_NAMESER_H
17081#include <arpa/nameser.h>
17082#endif
17083#ifdef HAVE_RESOLV_H
17084#include <resolv.h>
17085#endif
17086
17087int
17088main ()
17089{
17090res_nsearch(0,0,0,0,0,0)
17091  ;
17092  return 0;
17093}
17094_ACEOF
17095if ac_fn_c_try_link "$LINENO"; then :
17096  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
17097fi
17098rm -f core conftest.err conftest.$ac_objext \
17099    conftest$ac_exeext conftest.$ac_ext
17100	done
17101	eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
17102	LIBS="$ac_save_LIBS"
17103fi
17104
17105fi
17106
17107
17108eval "ac_res=\$ac_cv_funclib_res_nsearch"
17109
17110if false; then
17111	for ac_func in res_nsearch
17112do :
17113  ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch"
17114if test "x$ac_cv_func_res_nsearch" = x""yes; then :
17115  cat >>confdefs.h <<_ACEOF
17116#define HAVE_RES_NSEARCH 1
17117_ACEOF
17118
17119fi
17120done
17121
17122fi
17123# res_nsearch
17124eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17125eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17126eval "LIB_res_nsearch=$ac_res"
17127
17128case "$ac_res" in
17129	yes)
17130	eval "ac_cv_func_res_nsearch=yes"
17131	eval "LIB_res_nsearch="
17132	cat >>confdefs.h <<_ACEOF
17133#define $ac_tr_func 1
17134_ACEOF
17135
17136	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17137$as_echo "yes" >&6; }
17138	;;
17139	no)
17140	eval "ac_cv_func_res_nsearch=no"
17141	eval "LIB_res_nsearch="
17142	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17143$as_echo "no" >&6; }
17144	;;
17145	*)
17146	eval "ac_cv_func_res_nsearch=yes"
17147	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17148	cat >>confdefs.h <<_ACEOF
17149#define $ac_tr_func 1
17150_ACEOF
17151
17152	cat >>confdefs.h <<_ACEOF
17153#define $ac_tr_lib 1
17154_ACEOF
17155
17156	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17157$as_echo "yes, in $ac_res" >&6; }
17158	;;
17159esac
17160
17161
17162if test -n "$LIB_res_nsearch"; then
17163	LIBS="$LIB_res_nsearch $LIBS"
17164fi
17165
17166
17167
17168
17169
17170
17171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5
17172$as_echo_n "checking for res_ndestroy... " >&6; }
17173if test "${ac_cv_funclib_res_ndestroy+set}" = set; then :
17174  $as_echo_n "(cached) " >&6
17175else
17176
17177if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then
17178	ac_save_LIBS="$LIBS"
17179	for ac_lib in "" resolv; do
17180		case "$ac_lib" in
17181		"") ;;
17182		yes) ac_lib="" ;;
17183		no) continue ;;
17184		-l*) ;;
17185		*) ac_lib="-l$ac_lib" ;;
17186		esac
17187		LIBS=" $ac_lib  $ac_save_LIBS"
17188		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189/* end confdefs.h.  */
17190
17191#include <stdio.h>
17192#ifdef HAVE_SYS_TYPES_H
17193#include <sys/types.h>
17194#endif
17195#ifdef HAVE_NETINET_IN_H
17196#include <netinet/in.h>
17197#endif
17198#ifdef HAVE_ARPA_NAMESER_H
17199#include <arpa/nameser.h>
17200#endif
17201#ifdef HAVE_RESOLV_H
17202#include <resolv.h>
17203#endif
17204
17205int
17206main ()
17207{
17208res_ndestroy(0)
17209  ;
17210  return 0;
17211}
17212_ACEOF
17213if ac_fn_c_try_link "$LINENO"; then :
17214  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break
17215fi
17216rm -f core conftest.err conftest.$ac_objext \
17217    conftest$ac_exeext conftest.$ac_ext
17218	done
17219	eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}"
17220	LIBS="$ac_save_LIBS"
17221fi
17222
17223fi
17224
17225
17226eval "ac_res=\$ac_cv_funclib_res_ndestroy"
17227
17228if false; then
17229	for ac_func in res_ndestroy
17230do :
17231  ac_fn_c_check_func "$LINENO" "res_ndestroy" "ac_cv_func_res_ndestroy"
17232if test "x$ac_cv_func_res_ndestroy" = x""yes; then :
17233  cat >>confdefs.h <<_ACEOF
17234#define HAVE_RES_NDESTROY 1
17235_ACEOF
17236
17237fi
17238done
17239
17240fi
17241# res_ndestroy
17242eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17243eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17244eval "LIB_res_ndestroy=$ac_res"
17245
17246case "$ac_res" in
17247	yes)
17248	eval "ac_cv_func_res_ndestroy=yes"
17249	eval "LIB_res_ndestroy="
17250	cat >>confdefs.h <<_ACEOF
17251#define $ac_tr_func 1
17252_ACEOF
17253
17254	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17255$as_echo "yes" >&6; }
17256	;;
17257	no)
17258	eval "ac_cv_func_res_ndestroy=no"
17259	eval "LIB_res_ndestroy="
17260	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17261$as_echo "no" >&6; }
17262	;;
17263	*)
17264	eval "ac_cv_func_res_ndestroy=yes"
17265	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17266	cat >>confdefs.h <<_ACEOF
17267#define $ac_tr_func 1
17268_ACEOF
17269
17270	cat >>confdefs.h <<_ACEOF
17271#define $ac_tr_lib 1
17272_ACEOF
17273
17274	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17275$as_echo "yes, in $ac_res" >&6; }
17276	;;
17277esac
17278
17279
17280if test -n "$LIB_res_ndestroy"; then
17281	LIBS="$LIB_res_ndestroy $LIBS"
17282fi
17283
17284
17285
17286
17287
17288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search" >&5
17289$as_echo_n "checking for dns_search... " >&6; }
17290if test "${ac_cv_funclib_dns_search+set}" = set; then :
17291  $as_echo_n "(cached) " >&6
17292else
17293
17294if eval "test \"\$ac_cv_func_dns_search\" != yes" ; then
17295	ac_save_LIBS="$LIBS"
17296	for ac_lib in "" ; do
17297		case "$ac_lib" in
17298		"") ;;
17299		yes) ac_lib="" ;;
17300		no) continue ;;
17301		-l*) ;;
17302		*) ac_lib="-l$ac_lib" ;;
17303		esac
17304		LIBS=" $ac_lib  $ac_save_LIBS"
17305		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17306/* end confdefs.h.  */
17307
17308#ifdef HAVE_DNS_H
17309#include <dns.h>
17310#endif
17311
17312int
17313main ()
17314{
17315dns_search(0,0,0,0,0,0,0,0)
17316  ;
17317  return 0;
17318}
17319_ACEOF
17320if ac_fn_c_try_link "$LINENO"; then :
17321  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dns_search=$ac_lib; else ac_cv_funclib_dns_search=yes; fi";break
17322fi
17323rm -f core conftest.err conftest.$ac_objext \
17324    conftest$ac_exeext conftest.$ac_ext
17325	done
17326	eval "ac_cv_funclib_dns_search=\${ac_cv_funclib_dns_search-no}"
17327	LIBS="$ac_save_LIBS"
17328fi
17329
17330fi
17331
17332
17333eval "ac_res=\$ac_cv_funclib_dns_search"
17334
17335if false; then
17336	for ac_func in dns_search
17337do :
17338  ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search"
17339if test "x$ac_cv_func_dns_search" = x""yes; then :
17340  cat >>confdefs.h <<_ACEOF
17341#define HAVE_DNS_SEARCH 1
17342_ACEOF
17343
17344fi
17345done
17346
17347fi
17348# dns_search
17349eval "ac_tr_func=HAVE_`echo dns_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17350eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17351eval "LIB_dns_search=$ac_res"
17352
17353case "$ac_res" in
17354	yes)
17355	eval "ac_cv_func_dns_search=yes"
17356	eval "LIB_dns_search="
17357	cat >>confdefs.h <<_ACEOF
17358#define $ac_tr_func 1
17359_ACEOF
17360
17361	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17362$as_echo "yes" >&6; }
17363	;;
17364	no)
17365	eval "ac_cv_func_dns_search=no"
17366	eval "LIB_dns_search="
17367	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368$as_echo "no" >&6; }
17369	;;
17370	*)
17371	eval "ac_cv_func_dns_search=yes"
17372	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17373	cat >>confdefs.h <<_ACEOF
17374#define $ac_tr_func 1
17375_ACEOF
17376
17377	cat >>confdefs.h <<_ACEOF
17378#define $ac_tr_lib 1
17379_ACEOF
17380
17381	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17382$as_echo "yes, in $ac_res" >&6; }
17383	;;
17384esac
17385
17386
17387
17388
17389
17390
17391
17392
17393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand" >&5
17394$as_echo_n "checking for dn_expand... " >&6; }
17395if test "${ac_cv_funclib_dn_expand+set}" = set; then :
17396  $as_echo_n "(cached) " >&6
17397else
17398
17399if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
17400	ac_save_LIBS="$LIBS"
17401	for ac_lib in "" resolv; do
17402		case "$ac_lib" in
17403		"") ;;
17404		yes) ac_lib="" ;;
17405		no) continue ;;
17406		-l*) ;;
17407		*) ac_lib="-l$ac_lib" ;;
17408		esac
17409		LIBS=" $ac_lib  $ac_save_LIBS"
17410		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411/* end confdefs.h.  */
17412
17413#include <stdio.h>
17414#ifdef HAVE_SYS_TYPES_H
17415#include <sys/types.h>
17416#endif
17417#ifdef HAVE_NETINET_IN_H
17418#include <netinet/in.h>
17419#endif
17420#ifdef HAVE_ARPA_NAMESER_H
17421#include <arpa/nameser.h>
17422#endif
17423#ifdef HAVE_RESOLV_H
17424#include <resolv.h>
17425#endif
17426
17427int
17428main ()
17429{
17430dn_expand(0,0,0,0,0)
17431  ;
17432  return 0;
17433}
17434_ACEOF
17435if ac_fn_c_try_link "$LINENO"; then :
17436  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
17437fi
17438rm -f core conftest.err conftest.$ac_objext \
17439    conftest$ac_exeext conftest.$ac_ext
17440	done
17441	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
17442	LIBS="$ac_save_LIBS"
17443fi
17444
17445fi
17446
17447
17448eval "ac_res=\$ac_cv_funclib_dn_expand"
17449
17450if false; then
17451	for ac_func in dn_expand
17452do :
17453  ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand"
17454if test "x$ac_cv_func_dn_expand" = x""yes; then :
17455  cat >>confdefs.h <<_ACEOF
17456#define HAVE_DN_EXPAND 1
17457_ACEOF
17458
17459fi
17460done
17461
17462fi
17463# dn_expand
17464eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17465eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17466eval "LIB_dn_expand=$ac_res"
17467
17468case "$ac_res" in
17469	yes)
17470	eval "ac_cv_func_dn_expand=yes"
17471	eval "LIB_dn_expand="
17472	cat >>confdefs.h <<_ACEOF
17473#define $ac_tr_func 1
17474_ACEOF
17475
17476	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17477$as_echo "yes" >&6; }
17478	;;
17479	no)
17480	eval "ac_cv_func_dn_expand=no"
17481	eval "LIB_dn_expand="
17482	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17483$as_echo "no" >&6; }
17484	;;
17485	*)
17486	eval "ac_cv_func_dn_expand=yes"
17487	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17488	cat >>confdefs.h <<_ACEOF
17489#define $ac_tr_func 1
17490_ACEOF
17491
17492	cat >>confdefs.h <<_ACEOF
17493#define $ac_tr_lib 1
17494_ACEOF
17495
17496	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17497$as_echo "yes, in $ac_res" >&6; }
17498	;;
17499esac
17500
17501
17502if test -n "$LIB_dn_expand"; then
17503	LIBS="$LIB_dn_expand $LIBS"
17504fi
17505
17506
17507
17508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _res" >&5
17509$as_echo_n "checking for _res... " >&6; }
17510if test "${ac_cv_var__res+set}" = set; then :
17511  $as_echo_n "(cached) " >&6
17512else
17513
17514
17515	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516/* end confdefs.h.  */
17517#include <stdio.h>
17518#ifdef HAVE_SYS_TYPES_H
17519#include <sys/types.h>
17520#endif
17521#ifdef HAVE_NETINET_IN_H
17522#include <netinet/in.h>
17523#endif
17524#ifdef HAVE_ARPA_NAMESER_H
17525#include <arpa/nameser.h>
17526#endif
17527#ifdef HAVE_RESOLV_H
17528#include <resolv.h>
17529#endif
17530	void * foo(void) { return &_res; }
17531int
17532main ()
17533{
17534foo()
17535  ;
17536  return 0;
17537}
17538_ACEOF
17539if ac_fn_c_try_link "$LINENO"; then :
17540  ac_cv_var__res=yes
17541else
17542  ac_cv_var__res=no
17543fi
17544rm -f core conftest.err conftest.$ac_objext \
17545    conftest$ac_exeext conftest.$ac_ext
17546if test "$ac_cv_var__res" != yes ; then
17547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17548/* end confdefs.h.  */
17549#include <stdio.h>
17550#ifdef HAVE_SYS_TYPES_H
17551#include <sys/types.h>
17552#endif
17553#ifdef HAVE_NETINET_IN_H
17554#include <netinet/in.h>
17555#endif
17556#ifdef HAVE_ARPA_NAMESER_H
17557#include <arpa/nameser.h>
17558#endif
17559#ifdef HAVE_RESOLV_H
17560#include <resolv.h>
17561#endif
17562extern int _res;
17563int foo(void) { return _res; }
17564int
17565main ()
17566{
17567foo()
17568  ;
17569  return 0;
17570}
17571_ACEOF
17572if ac_fn_c_try_link "$LINENO"; then :
17573  ac_cv_var__res=yes
17574else
17575  ac_cv_var__res=no
17576fi
17577rm -f core conftest.err conftest.$ac_objext \
17578    conftest$ac_exeext conftest.$ac_ext
17579fi
17580
17581fi
17582
17583ac_foo=`eval echo \\$ac_cv_var__res`
17584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
17585$as_echo "$ac_foo" >&6; }
17586if test "$ac_foo" = yes; then
17587
17588cat >>confdefs.h <<_ACEOF
17589#define HAVE__RES 1
17590_ACEOF
17591
17592
17593# ac_fn_c_check_decl LINENO SYMBOL VAR
17594# ------------------------------------
17595# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
17596ac_fn_c_check_decl ()
17597{
17598  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
17600$as_echo_n "checking whether $2 is declared... " >&6; }
17601if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
17602  $as_echo_n "(cached) " >&6
17603else
17604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17605/* end confdefs.h.  */
17606$4
17607int
17608main ()
17609{
17610#ifndef $2
17611  (void) $2;
17612#endif
17613
17614  ;
17615  return 0;
17616}
17617_ACEOF
17618if ac_fn_c_try_compile "$LINENO"; then :
17619  eval "$3=yes"
17620else
17621  eval "$3=no"
17622fi
17623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17624fi
17625eval ac_res=\$$3
17626	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17627$as_echo "$ac_res" >&6; }
17628  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
17629
17630} # ac_fn_c_check_decl
17631ac_fn_c_check_decl "$LINENO" "_res" "ac_cv_have_decl__res" "#include <stdio.h>
17632#ifdef HAVE_SYS_TYPES_H
17633#include <sys/types.h>
17634#endif
17635#ifdef HAVE_NETINET_IN_H
17636#include <netinet/in.h>
17637#endif
17638#ifdef HAVE_ARPA_NAMESER_H
17639#include <arpa/nameser.h>
17640#endif
17641#ifdef HAVE_RESOLV_H
17642#include <resolv.h>
17643#endif
17644"
17645if test "x$ac_cv_have_decl__res" = x""yes; then :
17646  ac_have_decl=1
17647else
17648  ac_have_decl=0
17649fi
17650
17651cat >>confdefs.h <<_ACEOF
17652#define HAVE_DECL__RES $ac_have_decl
17653_ACEOF
17654
17655fi
17656
17657
17658
17659
17660
17661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
17662$as_echo_n "checking for working snprintf... " >&6; }
17663if test "${ac_cv_func_snprintf_working+set}" = set; then :
17664  $as_echo_n "(cached) " >&6
17665else
17666  ac_cv_func_snprintf_working=yes
17667if test "$cross_compiling" = yes; then :
17668  :
17669else
17670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671/* end confdefs.h.  */
17672
17673#include <stdio.h>
17674#include <string.h>
17675int main(int argc, char **argv)
17676{
17677	char foo[3];
17678	snprintf(foo, 2, "12");
17679	return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2;
17680}
17681_ACEOF
17682if ac_fn_c_try_run "$LINENO"; then :
17683  :
17684else
17685  ac_cv_func_snprintf_working=no
17686fi
17687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17688  conftest.$ac_objext conftest.beam conftest.$ac_ext
17689fi
17690
17691fi
17692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_working" >&5
17693$as_echo "$ac_cv_func_snprintf_working" >&6; }
17694
17695if test "$ac_cv_func_snprintf_working" = yes; then
17696
17697cat >>confdefs.h <<_ACEOF
17698#define HAVE_SNPRINTF 1
17699_ACEOF
17700
17701fi
17702if test "$ac_cv_func_snprintf_working" = yes; then
17703
17704if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
17705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if snprintf needs a prototype" >&5
17706$as_echo_n "checking if snprintf needs a prototype... " >&6; }
17707if test "${ac_cv_func_snprintf_noproto+set}" = set; then :
17708  $as_echo_n "(cached) " >&6
17709else
17710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711/* end confdefs.h.  */
17712#include <stdio.h>
17713struct foo { int foo; } xx;
17714extern int snprintf (struct foo*);
17715int
17716main ()
17717{
17718snprintf(&xx)
17719  ;
17720  return 0;
17721}
17722_ACEOF
17723if ac_fn_c_try_compile "$LINENO"; then :
17724  eval "ac_cv_func_snprintf_noproto=yes"
17725else
17726  eval "ac_cv_func_snprintf_noproto=no"
17727fi
17728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17729fi
17730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_noproto" >&5
17731$as_echo "$ac_cv_func_snprintf_noproto" >&6; }
17732if test "$ac_cv_func_snprintf_noproto" = yes; then
17733
17734$as_echo "#define NEED_SNPRINTF_PROTO 1" >>confdefs.h
17735
17736fi
17737fi
17738
17739fi
17740
17741
17742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5
17743$as_echo_n "checking for working vsnprintf... " >&6; }
17744if test "${ac_cv_func_vsnprintf_working+set}" = set; then :
17745  $as_echo_n "(cached) " >&6
17746else
17747  ac_cv_func_vsnprintf_working=yes
17748if test "$cross_compiling" = yes; then :
17749  :
17750else
17751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752/* end confdefs.h.  */
17753
17754#include <stdio.h>
17755#include <string.h>
17756#include <stdarg.h>
17757
17758int foo(int num, ...)
17759{
17760	char bar[3];
17761	va_list arg;
17762	va_start(arg, num);
17763	vsnprintf(bar, 2, "%s", arg);
17764	va_end(arg);
17765	return strcmp(bar, "1");
17766}
17767
17768int bar(int num, int len, ...)
17769{
17770	int r;
17771	va_list arg;
17772	va_start(arg, len);
17773	r = vsnprintf(NULL, 0, "%s", arg);
17774	va_end(arg);
17775	return r != len;
17776}
17777
17778int main(int argc, char **argv)
17779{
17780	return foo(0, "12") || bar(0, 2, "12");
17781}
17782_ACEOF
17783if ac_fn_c_try_run "$LINENO"; then :
17784  :
17785else
17786  ac_cv_func_vsnprintf_working=no
17787fi
17788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17789  conftest.$ac_objext conftest.beam conftest.$ac_ext
17790fi
17791
17792fi
17793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_working" >&5
17794$as_echo "$ac_cv_func_vsnprintf_working" >&6; }
17795
17796if test "$ac_cv_func_vsnprintf_working" = yes; then
17797
17798cat >>confdefs.h <<_ACEOF
17799#define HAVE_VSNPRINTF 1
17800_ACEOF
17801
17802fi
17803if test "$ac_cv_func_vsnprintf_working" = yes; then
17804
17805if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
17806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf needs a prototype" >&5
17807$as_echo_n "checking if vsnprintf needs a prototype... " >&6; }
17808if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then :
17809  $as_echo_n "(cached) " >&6
17810else
17811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17812/* end confdefs.h.  */
17813#include <stdio.h>
17814struct foo { int foo; } xx;
17815extern int vsnprintf (struct foo*);
17816int
17817main ()
17818{
17819vsnprintf(&xx)
17820  ;
17821  return 0;
17822}
17823_ACEOF
17824if ac_fn_c_try_compile "$LINENO"; then :
17825  eval "ac_cv_func_vsnprintf_noproto=yes"
17826else
17827  eval "ac_cv_func_vsnprintf_noproto=no"
17828fi
17829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17830fi
17831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_noproto" >&5
17832$as_echo "$ac_cv_func_vsnprintf_noproto" >&6; }
17833if test "$ac_cv_func_vsnprintf_noproto" = yes; then
17834
17835$as_echo "#define NEED_VSNPRINTF_PROTO 1" >>confdefs.h
17836
17837fi
17838fi
17839
17840fi
17841
17842
17843
17844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working glob" >&5
17845$as_echo_n "checking for working glob... " >&6; }
17846if test "${ac_cv_func_glob_working+set}" = set; then :
17847  $as_echo_n "(cached) " >&6
17848else
17849  ac_cv_func_glob_working=yes
17850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851/* end confdefs.h.  */
17852
17853#include <stdio.h>
17854#include <glob.h>
17855int
17856main ()
17857{
17858
17859glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
17860#ifdef GLOB_MAXPATH
17861GLOB_MAXPATH
17862#else
17863GLOB_LIMIT
17864#endif
17865,
17866NULL, NULL);
17867
17868  ;
17869  return 0;
17870}
17871_ACEOF
17872if ac_fn_c_try_link "$LINENO"; then :
17873  :
17874else
17875  ac_cv_func_glob_working=no
17876fi
17877rm -f core conftest.err conftest.$ac_objext \
17878    conftest$ac_exeext conftest.$ac_ext
17879fi
17880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_working" >&5
17881$as_echo "$ac_cv_func_glob_working" >&6; }
17882
17883if test "$ac_cv_func_glob_working" = yes; then
17884
17885$as_echo "#define HAVE_GLOB 1" >>confdefs.h
17886
17887fi
17888if test "$ac_cv_func_glob_working" = yes; then
17889
17890if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
17891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if glob needs a prototype" >&5
17892$as_echo_n "checking if glob needs a prototype... " >&6; }
17893if test "${ac_cv_func_glob_noproto+set}" = set; then :
17894  $as_echo_n "(cached) " >&6
17895else
17896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897/* end confdefs.h.  */
17898#include <stdio.h>
17899#include <glob.h>
17900struct foo { int foo; } xx;
17901extern int glob (struct foo*);
17902int
17903main ()
17904{
17905glob(&xx)
17906  ;
17907  return 0;
17908}
17909_ACEOF
17910if ac_fn_c_try_compile "$LINENO"; then :
17911  eval "ac_cv_func_glob_noproto=yes"
17912else
17913  eval "ac_cv_func_glob_noproto=no"
17914fi
17915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916fi
17917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_noproto" >&5
17918$as_echo "$ac_cv_func_glob_noproto" >&6; }
17919if test "$ac_cv_func_glob_noproto" = yes; then
17920
17921$as_echo "#define NEED_GLOB_PROTO 1" >>confdefs.h
17922
17923fi
17924fi
17925
17926fi
17927
17928if test "$ac_cv_func_glob_working" != yes; then
17929	case " $LIBOBJS " in
17930  *" glob.$ac_objext "* ) ;;
17931  *) LIBOBJS="$LIBOBJS glob.$ac_objext"
17932 ;;
17933esac
17934
17935fi
17936 if test "$ac_cv_func_glob_working" = yes; then
17937  have_glob_h_TRUE=
17938  have_glob_h_FALSE='#'
17939else
17940  have_glob_h_TRUE='#'
17941  have_glob_h_FALSE=
17942fi
17943
17944
17945
17946for ac_func in 				\
17947	asnprintf				\
17948	asprintf				\
17949	atexit					\
17950	cgetent					\
17951	getconfattr				\
17952	getprogname				\
17953	getrlimit				\
17954	getspnam				\
17955	issetugid				\
17956	on_exit					\
17957	poll					\
17958	random					\
17959	setprogname				\
17960	strsvis					\
17961	strsvisx				\
17962	strunvis				\
17963	strvis					\
17964	strvisx					\
17965	svis					\
17966	sysconf					\
17967	sysctl					\
17968	tdelete					\
17969	tfind					\
17970	twalk					\
17971	uname					\
17972	unvis					\
17973	vasnprintf				\
17974	vasprintf				\
17975	vis					\
17976
17977do :
17978  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17979ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17980eval as_val=\$$as_ac_var
17981   if test "x$as_val" = x""yes; then :
17982  cat >>confdefs.h <<_ACEOF
17983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17984_ACEOF
17985
17986fi
17987done
17988
17989
17990if test "$ac_cv_func_cgetent" = no; then
17991	case " $LIBOBJS " in
17992  *" getcap.$ac_objext "* ) ;;
17993  *) LIBOBJS="$LIBOBJS getcap.$ac_objext"
17994 ;;
17995esac
17996
17997fi
17998 if test "$ac_cv_func_cgetent" = yes; then
17999  have_cgetent_TRUE=
18000  have_cgetent_FALSE='#'
18001else
18002  have_cgetent_TRUE='#'
18003  have_cgetent_FALSE=
18004fi
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt" >&5
18015$as_echo_n "checking for getsockopt... " >&6; }
18016if test "${ac_cv_funclib_getsockopt+set}" = set; then :
18017  $as_echo_n "(cached) " >&6
18018else
18019
18020if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
18021	ac_save_LIBS="$LIBS"
18022	for ac_lib in "" ; do
18023		case "$ac_lib" in
18024		"") ;;
18025		yes) ac_lib="" ;;
18026		no) continue ;;
18027		-l*) ;;
18028		*) ac_lib="-l$ac_lib" ;;
18029		esac
18030		LIBS=" $ac_lib  $ac_save_LIBS"
18031		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032/* end confdefs.h.  */
18033#ifdef HAVE_SYS_TYPES_H
18034#include <sys/types.h>
18035#endif
18036#ifdef HAVE_SYS_SOCKET_H
18037#include <sys/socket.h>
18038#endif
18039int
18040main ()
18041{
18042getsockopt(0,0,0,0,0)
18043  ;
18044  return 0;
18045}
18046_ACEOF
18047if ac_fn_c_try_link "$LINENO"; then :
18048  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
18049fi
18050rm -f core conftest.err conftest.$ac_objext \
18051    conftest$ac_exeext conftest.$ac_ext
18052	done
18053	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
18054	LIBS="$ac_save_LIBS"
18055fi
18056
18057fi
18058
18059
18060eval "ac_res=\$ac_cv_funclib_getsockopt"
18061
18062if false; then
18063	for ac_func in getsockopt
18064do :
18065  ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
18066if test "x$ac_cv_func_getsockopt" = x""yes; then :
18067  cat >>confdefs.h <<_ACEOF
18068#define HAVE_GETSOCKOPT 1
18069_ACEOF
18070
18071fi
18072done
18073
18074fi
18075# getsockopt
18076eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18077eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18078eval "LIB_getsockopt=$ac_res"
18079
18080case "$ac_res" in
18081	yes)
18082	eval "ac_cv_func_getsockopt=yes"
18083	eval "LIB_getsockopt="
18084	cat >>confdefs.h <<_ACEOF
18085#define $ac_tr_func 1
18086_ACEOF
18087
18088	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18089$as_echo "yes" >&6; }
18090	;;
18091	no)
18092	eval "ac_cv_func_getsockopt=no"
18093	eval "LIB_getsockopt="
18094	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18095$as_echo "no" >&6; }
18096	;;
18097	*)
18098	eval "ac_cv_func_getsockopt=yes"
18099	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18100	cat >>confdefs.h <<_ACEOF
18101#define $ac_tr_func 1
18102_ACEOF
18103
18104	cat >>confdefs.h <<_ACEOF
18105#define $ac_tr_lib 1
18106_ACEOF
18107
18108	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18109$as_echo "yes, in $ac_res" >&6; }
18110	;;
18111esac
18112
18113
18114
18115
18116
18117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5
18118$as_echo_n "checking for setsockopt... " >&6; }
18119if test "${ac_cv_funclib_setsockopt+set}" = set; then :
18120  $as_echo_n "(cached) " >&6
18121else
18122
18123if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
18124	ac_save_LIBS="$LIBS"
18125	for ac_lib in "" ; do
18126		case "$ac_lib" in
18127		"") ;;
18128		yes) ac_lib="" ;;
18129		no) continue ;;
18130		-l*) ;;
18131		*) ac_lib="-l$ac_lib" ;;
18132		esac
18133		LIBS=" $ac_lib  $ac_save_LIBS"
18134		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135/* end confdefs.h.  */
18136#ifdef HAVE_SYS_TYPES_H
18137#include <sys/types.h>
18138#endif
18139#ifdef HAVE_SYS_SOCKET_H
18140#include <sys/socket.h>
18141#endif
18142int
18143main ()
18144{
18145setsockopt(0,0,0,0,0)
18146  ;
18147  return 0;
18148}
18149_ACEOF
18150if ac_fn_c_try_link "$LINENO"; then :
18151  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
18152fi
18153rm -f core conftest.err conftest.$ac_objext \
18154    conftest$ac_exeext conftest.$ac_ext
18155	done
18156	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
18157	LIBS="$ac_save_LIBS"
18158fi
18159
18160fi
18161
18162
18163eval "ac_res=\$ac_cv_funclib_setsockopt"
18164
18165if false; then
18166	for ac_func in setsockopt
18167do :
18168  ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
18169if test "x$ac_cv_func_setsockopt" = x""yes; then :
18170  cat >>confdefs.h <<_ACEOF
18171#define HAVE_SETSOCKOPT 1
18172_ACEOF
18173
18174fi
18175done
18176
18177fi
18178# setsockopt
18179eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18180eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18181eval "LIB_setsockopt=$ac_res"
18182
18183case "$ac_res" in
18184	yes)
18185	eval "ac_cv_func_setsockopt=yes"
18186	eval "LIB_setsockopt="
18187	cat >>confdefs.h <<_ACEOF
18188#define $ac_tr_func 1
18189_ACEOF
18190
18191	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18192$as_echo "yes" >&6; }
18193	;;
18194	no)
18195	eval "ac_cv_func_setsockopt=no"
18196	eval "LIB_setsockopt="
18197	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18198$as_echo "no" >&6; }
18199	;;
18200	*)
18201	eval "ac_cv_func_setsockopt=yes"
18202	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18203	cat >>confdefs.h <<_ACEOF
18204#define $ac_tr_func 1
18205_ACEOF
18206
18207	cat >>confdefs.h <<_ACEOF
18208#define $ac_tr_lib 1
18209_ACEOF
18210
18211	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18212$as_echo "yes, in $ac_res" >&6; }
18213	;;
18214esac
18215
18216
18217
18218
18219
18220
18221
18222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
18223$as_echo_n "checking for hstrerror... " >&6; }
18224if test "${ac_cv_funclib_hstrerror+set}" = set; then :
18225  $as_echo_n "(cached) " >&6
18226else
18227
18228if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
18229	ac_save_LIBS="$LIBS"
18230	for ac_lib in "" resolv; do
18231		case "$ac_lib" in
18232		"") ;;
18233		yes) ac_lib="" ;;
18234		no) continue ;;
18235		-l*) ;;
18236		*) ac_lib="-l$ac_lib" ;;
18237		esac
18238		LIBS=" $ac_lib  $ac_save_LIBS"
18239		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240/* end confdefs.h.  */
18241#ifdef HAVE_NETDB_H
18242#include <netdb.h>
18243#endif
18244int
18245main ()
18246{
18247hstrerror(17)
18248  ;
18249  return 0;
18250}
18251_ACEOF
18252if ac_fn_c_try_link "$LINENO"; then :
18253  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
18254fi
18255rm -f core conftest.err conftest.$ac_objext \
18256    conftest$ac_exeext conftest.$ac_ext
18257	done
18258	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
18259	LIBS="$ac_save_LIBS"
18260fi
18261
18262fi
18263
18264
18265eval "ac_res=\$ac_cv_funclib_hstrerror"
18266
18267if false; then
18268	for ac_func in hstrerror
18269do :
18270  ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
18271if test "x$ac_cv_func_hstrerror" = x""yes; then :
18272  cat >>confdefs.h <<_ACEOF
18273#define HAVE_HSTRERROR 1
18274_ACEOF
18275
18276fi
18277done
18278
18279fi
18280# hstrerror
18281eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18282eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18283eval "LIB_hstrerror=$ac_res"
18284
18285case "$ac_res" in
18286	yes)
18287	eval "ac_cv_func_hstrerror=yes"
18288	eval "LIB_hstrerror="
18289	cat >>confdefs.h <<_ACEOF
18290#define $ac_tr_func 1
18291_ACEOF
18292
18293	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18294$as_echo "yes" >&6; }
18295	;;
18296	no)
18297	eval "ac_cv_func_hstrerror=no"
18298	eval "LIB_hstrerror="
18299	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18300$as_echo "no" >&6; }
18301	;;
18302	*)
18303	eval "ac_cv_func_hstrerror=yes"
18304	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18305	cat >>confdefs.h <<_ACEOF
18306#define $ac_tr_func 1
18307_ACEOF
18308
18309	cat >>confdefs.h <<_ACEOF
18310#define $ac_tr_lib 1
18311_ACEOF
18312
18313	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18314$as_echo "yes, in $ac_res" >&6; }
18315	;;
18316esac
18317
18318
18319if test -n "$LIB_hstrerror"; then
18320	LIBS="$LIB_hstrerror $LIBS"
18321fi
18322
18323if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
18324	case " $LIBOBJS " in
18325  *" hstrerror.$ac_objext "* ) ;;
18326  *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
18327 ;;
18328esac
18329
18330fi
18331
18332
18333if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
18334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if hstrerror needs a prototype" >&5
18335$as_echo_n "checking if hstrerror needs a prototype... " >&6; }
18336if test "${ac_cv_func_hstrerror_noproto+set}" = set; then :
18337  $as_echo_n "(cached) " >&6
18338else
18339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340/* end confdefs.h.  */
18341
18342#ifdef HAVE_NETDB_H
18343#include <netdb.h>
18344#endif
18345struct foo { int foo; } xx;
18346extern int hstrerror (struct foo*);
18347int
18348main ()
18349{
18350hstrerror(&xx)
18351  ;
18352  return 0;
18353}
18354_ACEOF
18355if ac_fn_c_try_compile "$LINENO"; then :
18356  eval "ac_cv_func_hstrerror_noproto=yes"
18357else
18358  eval "ac_cv_func_hstrerror_noproto=no"
18359fi
18360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18361fi
18362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror_noproto" >&5
18363$as_echo "$ac_cv_func_hstrerror_noproto" >&6; }
18364if test "$ac_cv_func_hstrerror_noproto" = yes; then
18365
18366$as_echo "#define NEED_HSTRERROR_PROTO 1" >>confdefs.h
18367
18368fi
18369fi
18370
18371
18372
18373if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
18374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asprintf needs a prototype" >&5
18375$as_echo_n "checking if asprintf needs a prototype... " >&6; }
18376if test "${ac_cv_func_asprintf_noproto+set}" = set; then :
18377  $as_echo_n "(cached) " >&6
18378else
18379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18380/* end confdefs.h.  */
18381
18382	#include <stdio.h>
18383	#include <string.h>
18384struct foo { int foo; } xx;
18385extern int asprintf (struct foo*);
18386int
18387main ()
18388{
18389asprintf(&xx)
18390  ;
18391  return 0;
18392}
18393_ACEOF
18394if ac_fn_c_try_compile "$LINENO"; then :
18395  eval "ac_cv_func_asprintf_noproto=yes"
18396else
18397  eval "ac_cv_func_asprintf_noproto=no"
18398fi
18399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18400fi
18401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asprintf_noproto" >&5
18402$as_echo "$ac_cv_func_asprintf_noproto" >&6; }
18403if test "$ac_cv_func_asprintf_noproto" = yes; then
18404
18405$as_echo "#define NEED_ASPRINTF_PROTO 1" >>confdefs.h
18406
18407fi
18408fi
18409
18410if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
18411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasprintf needs a prototype" >&5
18412$as_echo_n "checking if vasprintf needs a prototype... " >&6; }
18413if test "${ac_cv_func_vasprintf_noproto+set}" = set; then :
18414  $as_echo_n "(cached) " >&6
18415else
18416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18417/* end confdefs.h.  */
18418
18419	#include <stdio.h>
18420	#include <string.h>
18421struct foo { int foo; } xx;
18422extern int vasprintf (struct foo*);
18423int
18424main ()
18425{
18426vasprintf(&xx)
18427  ;
18428  return 0;
18429}
18430_ACEOF
18431if ac_fn_c_try_compile "$LINENO"; then :
18432  eval "ac_cv_func_vasprintf_noproto=yes"
18433else
18434  eval "ac_cv_func_vasprintf_noproto=no"
18435fi
18436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18437fi
18438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasprintf_noproto" >&5
18439$as_echo "$ac_cv_func_vasprintf_noproto" >&6; }
18440if test "$ac_cv_func_vasprintf_noproto" = yes; then
18441
18442$as_echo "#define NEED_VASPRINTF_PROTO 1" >>confdefs.h
18443
18444fi
18445fi
18446
18447if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
18448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asnprintf needs a prototype" >&5
18449$as_echo_n "checking if asnprintf needs a prototype... " >&6; }
18450if test "${ac_cv_func_asnprintf_noproto+set}" = set; then :
18451  $as_echo_n "(cached) " >&6
18452else
18453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18454/* end confdefs.h.  */
18455
18456	#include <stdio.h>
18457	#include <string.h>
18458struct foo { int foo; } xx;
18459extern int asnprintf (struct foo*);
18460int
18461main ()
18462{
18463asnprintf(&xx)
18464  ;
18465  return 0;
18466}
18467_ACEOF
18468if ac_fn_c_try_compile "$LINENO"; then :
18469  eval "ac_cv_func_asnprintf_noproto=yes"
18470else
18471  eval "ac_cv_func_asnprintf_noproto=no"
18472fi
18473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474fi
18475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asnprintf_noproto" >&5
18476$as_echo "$ac_cv_func_asnprintf_noproto" >&6; }
18477if test "$ac_cv_func_asnprintf_noproto" = yes; then
18478
18479$as_echo "#define NEED_ASNPRINTF_PROTO 1" >>confdefs.h
18480
18481fi
18482fi
18483
18484if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
18485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasnprintf needs a prototype" >&5
18486$as_echo_n "checking if vasnprintf needs a prototype... " >&6; }
18487if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then :
18488  $as_echo_n "(cached) " >&6
18489else
18490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18491/* end confdefs.h.  */
18492
18493	#include <stdio.h>
18494	#include <string.h>
18495struct foo { int foo; } xx;
18496extern int vasnprintf (struct foo*);
18497int
18498main ()
18499{
18500vasnprintf(&xx)
18501  ;
18502  return 0;
18503}
18504_ACEOF
18505if ac_fn_c_try_compile "$LINENO"; then :
18506  eval "ac_cv_func_vasnprintf_noproto=yes"
18507else
18508  eval "ac_cv_func_vasnprintf_noproto=no"
18509fi
18510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18511fi
18512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasnprintf_noproto" >&5
18513$as_echo "$ac_cv_func_vasnprintf_noproto" >&6; }
18514if test "$ac_cv_func_vasnprintf_noproto" = yes; then
18515
18516$as_echo "#define NEED_VASNPRINTF_PROTO 1" >>confdefs.h
18517
18518fi
18519fi
18520
18521
18522
18523
18524
18525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16" >&5
18526$as_echo_n "checking for bswap16... " >&6; }
18527if test "${ac_cv_funclib_bswap16+set}" = set; then :
18528  $as_echo_n "(cached) " >&6
18529else
18530
18531if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
18532	ac_save_LIBS="$LIBS"
18533	for ac_lib in "" ; do
18534		case "$ac_lib" in
18535		"") ;;
18536		yes) ac_lib="" ;;
18537		no) continue ;;
18538		-l*) ;;
18539		*) ac_lib="-l$ac_lib" ;;
18540		esac
18541		LIBS=" $ac_lib  $ac_save_LIBS"
18542		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18543/* end confdefs.h.  */
18544#ifdef HAVE_SYS_TYPES_H
18545#include <sys/types.h>
18546#endif
18547#ifdef HAVE_SYS_BSWAP_H
18548#include <sys/bswap.h>
18549#endif
18550int
18551main ()
18552{
18553bswap16(0)
18554  ;
18555  return 0;
18556}
18557_ACEOF
18558if ac_fn_c_try_link "$LINENO"; then :
18559  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
18560fi
18561rm -f core conftest.err conftest.$ac_objext \
18562    conftest$ac_exeext conftest.$ac_ext
18563	done
18564	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
18565	LIBS="$ac_save_LIBS"
18566fi
18567
18568fi
18569
18570
18571eval "ac_res=\$ac_cv_funclib_bswap16"
18572
18573if false; then
18574	for ac_func in bswap16
18575do :
18576  ac_fn_c_check_func "$LINENO" "bswap16" "ac_cv_func_bswap16"
18577if test "x$ac_cv_func_bswap16" = x""yes; then :
18578  cat >>confdefs.h <<_ACEOF
18579#define HAVE_BSWAP16 1
18580_ACEOF
18581
18582fi
18583done
18584
18585fi
18586# bswap16
18587eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18588eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18589eval "LIB_bswap16=$ac_res"
18590
18591case "$ac_res" in
18592	yes)
18593	eval "ac_cv_func_bswap16=yes"
18594	eval "LIB_bswap16="
18595	cat >>confdefs.h <<_ACEOF
18596#define $ac_tr_func 1
18597_ACEOF
18598
18599	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18600$as_echo "yes" >&6; }
18601	;;
18602	no)
18603	eval "ac_cv_func_bswap16=no"
18604	eval "LIB_bswap16="
18605	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18606$as_echo "no" >&6; }
18607	;;
18608	*)
18609	eval "ac_cv_func_bswap16=yes"
18610	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18611	cat >>confdefs.h <<_ACEOF
18612#define $ac_tr_func 1
18613_ACEOF
18614
18615	cat >>confdefs.h <<_ACEOF
18616#define $ac_tr_lib 1
18617_ACEOF
18618
18619	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18620$as_echo "yes, in $ac_res" >&6; }
18621	;;
18622esac
18623
18624
18625
18626
18627
18628
18629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32" >&5
18630$as_echo_n "checking for bswap32... " >&6; }
18631if test "${ac_cv_funclib_bswap32+set}" = set; then :
18632  $as_echo_n "(cached) " >&6
18633else
18634
18635if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
18636	ac_save_LIBS="$LIBS"
18637	for ac_lib in "" ; do
18638		case "$ac_lib" in
18639		"") ;;
18640		yes) ac_lib="" ;;
18641		no) continue ;;
18642		-l*) ;;
18643		*) ac_lib="-l$ac_lib" ;;
18644		esac
18645		LIBS=" $ac_lib  $ac_save_LIBS"
18646		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18647/* end confdefs.h.  */
18648#ifdef HAVE_SYS_TYPES_H
18649#include <sys/types.h>
18650#endif
18651#ifdef HAVE_SYS_BSWAP_H
18652#include <sys/bswap.h>
18653#endif
18654int
18655main ()
18656{
18657bswap32(0)
18658  ;
18659  return 0;
18660}
18661_ACEOF
18662if ac_fn_c_try_link "$LINENO"; then :
18663  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
18664fi
18665rm -f core conftest.err conftest.$ac_objext \
18666    conftest$ac_exeext conftest.$ac_ext
18667	done
18668	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
18669	LIBS="$ac_save_LIBS"
18670fi
18671
18672fi
18673
18674
18675eval "ac_res=\$ac_cv_funclib_bswap32"
18676
18677if false; then
18678	for ac_func in bswap32
18679do :
18680  ac_fn_c_check_func "$LINENO" "bswap32" "ac_cv_func_bswap32"
18681if test "x$ac_cv_func_bswap32" = x""yes; then :
18682  cat >>confdefs.h <<_ACEOF
18683#define HAVE_BSWAP32 1
18684_ACEOF
18685
18686fi
18687done
18688
18689fi
18690# bswap32
18691eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18692eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18693eval "LIB_bswap32=$ac_res"
18694
18695case "$ac_res" in
18696	yes)
18697	eval "ac_cv_func_bswap32=yes"
18698	eval "LIB_bswap32="
18699	cat >>confdefs.h <<_ACEOF
18700#define $ac_tr_func 1
18701_ACEOF
18702
18703	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18704$as_echo "yes" >&6; }
18705	;;
18706	no)
18707	eval "ac_cv_func_bswap32=no"
18708	eval "LIB_bswap32="
18709	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18710$as_echo "no" >&6; }
18711	;;
18712	*)
18713	eval "ac_cv_func_bswap32=yes"
18714	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18715	cat >>confdefs.h <<_ACEOF
18716#define $ac_tr_func 1
18717_ACEOF
18718
18719	cat >>confdefs.h <<_ACEOF
18720#define $ac_tr_lib 1
18721_ACEOF
18722
18723	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18724$as_echo "yes, in $ac_res" >&6; }
18725	;;
18726esac
18727
18728
18729
18730
18731
18732
18733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pidfile" >&5
18734$as_echo_n "checking for pidfile... " >&6; }
18735if test "${ac_cv_funclib_pidfile+set}" = set; then :
18736  $as_echo_n "(cached) " >&6
18737else
18738
18739if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
18740	ac_save_LIBS="$LIBS"
18741	for ac_lib in "" util; do
18742		case "$ac_lib" in
18743		"") ;;
18744		yes) ac_lib="" ;;
18745		no) continue ;;
18746		-l*) ;;
18747		*) ac_lib="-l$ac_lib" ;;
18748		esac
18749		LIBS=" $ac_lib  $ac_save_LIBS"
18750		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18751/* end confdefs.h.  */
18752#ifdef HAVE_UTIL_H
18753#include <util.h>
18754#endif
18755int
18756main ()
18757{
18758pidfile(0)
18759  ;
18760  return 0;
18761}
18762_ACEOF
18763if ac_fn_c_try_link "$LINENO"; then :
18764  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
18765fi
18766rm -f core conftest.err conftest.$ac_objext \
18767    conftest$ac_exeext conftest.$ac_ext
18768	done
18769	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
18770	LIBS="$ac_save_LIBS"
18771fi
18772
18773fi
18774
18775
18776eval "ac_res=\$ac_cv_funclib_pidfile"
18777
18778if false; then
18779	for ac_func in pidfile
18780do :
18781  ac_fn_c_check_func "$LINENO" "pidfile" "ac_cv_func_pidfile"
18782if test "x$ac_cv_func_pidfile" = x""yes; then :
18783  cat >>confdefs.h <<_ACEOF
18784#define HAVE_PIDFILE 1
18785_ACEOF
18786
18787fi
18788done
18789
18790fi
18791# pidfile
18792eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18793eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18794eval "LIB_pidfile=$ac_res"
18795
18796case "$ac_res" in
18797	yes)
18798	eval "ac_cv_func_pidfile=yes"
18799	eval "LIB_pidfile="
18800	cat >>confdefs.h <<_ACEOF
18801#define $ac_tr_func 1
18802_ACEOF
18803
18804	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18805$as_echo "yes" >&6; }
18806	;;
18807	no)
18808	eval "ac_cv_func_pidfile=no"
18809	eval "LIB_pidfile="
18810	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18811$as_echo "no" >&6; }
18812	;;
18813	*)
18814	eval "ac_cv_func_pidfile=yes"
18815	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18816	cat >>confdefs.h <<_ACEOF
18817#define $ac_tr_func 1
18818_ACEOF
18819
18820	cat >>confdefs.h <<_ACEOF
18821#define $ac_tr_lib 1
18822_ACEOF
18823
18824	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18825$as_echo "yes, in $ac_res" >&6; }
18826	;;
18827esac
18828
18829
18830
18831
18832
18833
18834
18835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
18836$as_echo_n "checking for getaddrinfo... " >&6; }
18837if test "${ac_cv_funclib_getaddrinfo+set}" = set; then :
18838  $as_echo_n "(cached) " >&6
18839else
18840
18841if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
18842	ac_save_LIBS="$LIBS"
18843	for ac_lib in "" ; do
18844		case "$ac_lib" in
18845		"") ;;
18846		yes) ac_lib="" ;;
18847		no) continue ;;
18848		-l*) ;;
18849		*) ac_lib="-l$ac_lib" ;;
18850		esac
18851		LIBS=" $ac_lib  $ac_save_LIBS"
18852		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853/* end confdefs.h.  */
18854#ifdef HAVE_NETDB_H
18855#include <netdb.h>
18856#endif
18857#ifdef HAVE_WS2TCPIP_H
18858#include <ws2tcpip.h>
18859#endif
18860int
18861main ()
18862{
18863getaddrinfo(0,0,0,0)
18864  ;
18865  return 0;
18866}
18867_ACEOF
18868if ac_fn_c_try_link "$LINENO"; then :
18869  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
18870fi
18871rm -f core conftest.err conftest.$ac_objext \
18872    conftest$ac_exeext conftest.$ac_ext
18873	done
18874	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
18875	LIBS="$ac_save_LIBS"
18876fi
18877
18878fi
18879
18880
18881eval "ac_res=\$ac_cv_funclib_getaddrinfo"
18882
18883if false; then
18884	for ac_func in getaddrinfo
18885do :
18886  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18887if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
18888  cat >>confdefs.h <<_ACEOF
18889#define HAVE_GETADDRINFO 1
18890_ACEOF
18891
18892fi
18893done
18894
18895fi
18896# getaddrinfo
18897eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18898eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18899eval "LIB_getaddrinfo=$ac_res"
18900
18901case "$ac_res" in
18902	yes)
18903	eval "ac_cv_func_getaddrinfo=yes"
18904	eval "LIB_getaddrinfo="
18905	cat >>confdefs.h <<_ACEOF
18906#define $ac_tr_func 1
18907_ACEOF
18908
18909	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18910$as_echo "yes" >&6; }
18911	;;
18912	no)
18913	eval "ac_cv_func_getaddrinfo=no"
18914	eval "LIB_getaddrinfo="
18915	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18916$as_echo "no" >&6; }
18917	;;
18918	*)
18919	eval "ac_cv_func_getaddrinfo=yes"
18920	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18921	cat >>confdefs.h <<_ACEOF
18922#define $ac_tr_func 1
18923_ACEOF
18924
18925	cat >>confdefs.h <<_ACEOF
18926#define $ac_tr_lib 1
18927_ACEOF
18928
18929	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18930$as_echo "yes, in $ac_res" >&6; }
18931	;;
18932esac
18933
18934
18935if test -n "$LIB_getaddrinfo"; then
18936	LIBS="$LIB_getaddrinfo $LIBS"
18937fi
18938
18939if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
18940	case " $LIBOBJS " in
18941  *" getaddrinfo.$ac_objext "* ) ;;
18942  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
18943 ;;
18944esac
18945
18946fi
18947
18948
18949
18950
18951
18952
18953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
18954$as_echo_n "checking for getnameinfo... " >&6; }
18955if test "${ac_cv_funclib_getnameinfo+set}" = set; then :
18956  $as_echo_n "(cached) " >&6
18957else
18958
18959if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
18960	ac_save_LIBS="$LIBS"
18961	for ac_lib in "" ; do
18962		case "$ac_lib" in
18963		"") ;;
18964		yes) ac_lib="" ;;
18965		no) continue ;;
18966		-l*) ;;
18967		*) ac_lib="-l$ac_lib" ;;
18968		esac
18969		LIBS=" $ac_lib  $ac_save_LIBS"
18970		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971/* end confdefs.h.  */
18972#ifdef HAVE_NETDB_H
18973#include <netdb.h>
18974#endif
18975#ifdef HAVE_WS2TCPIP_H
18976#include <ws2tcpip.h>
18977#endif
18978int
18979main ()
18980{
18981getnameinfo(0,0,0,0,0,0,0)
18982  ;
18983  return 0;
18984}
18985_ACEOF
18986if ac_fn_c_try_link "$LINENO"; then :
18987  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
18988fi
18989rm -f core conftest.err conftest.$ac_objext \
18990    conftest$ac_exeext conftest.$ac_ext
18991	done
18992	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
18993	LIBS="$ac_save_LIBS"
18994fi
18995
18996fi
18997
18998
18999eval "ac_res=\$ac_cv_funclib_getnameinfo"
19000
19001if false; then
19002	for ac_func in getnameinfo
19003do :
19004  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
19005if test "x$ac_cv_func_getnameinfo" = x""yes; then :
19006  cat >>confdefs.h <<_ACEOF
19007#define HAVE_GETNAMEINFO 1
19008_ACEOF
19009
19010fi
19011done
19012
19013fi
19014# getnameinfo
19015eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19016eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19017eval "LIB_getnameinfo=$ac_res"
19018
19019case "$ac_res" in
19020	yes)
19021	eval "ac_cv_func_getnameinfo=yes"
19022	eval "LIB_getnameinfo="
19023	cat >>confdefs.h <<_ACEOF
19024#define $ac_tr_func 1
19025_ACEOF
19026
19027	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19028$as_echo "yes" >&6; }
19029	;;
19030	no)
19031	eval "ac_cv_func_getnameinfo=no"
19032	eval "LIB_getnameinfo="
19033	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19034$as_echo "no" >&6; }
19035	;;
19036	*)
19037	eval "ac_cv_func_getnameinfo=yes"
19038	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
19039	cat >>confdefs.h <<_ACEOF
19040#define $ac_tr_func 1
19041_ACEOF
19042
19043	cat >>confdefs.h <<_ACEOF
19044#define $ac_tr_lib 1
19045_ACEOF
19046
19047	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
19048$as_echo "yes, in $ac_res" >&6; }
19049	;;
19050esac
19051
19052
19053if test -n "$LIB_getnameinfo"; then
19054	LIBS="$LIB_getnameinfo $LIBS"
19055fi
19056
19057if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
19058	case " $LIBOBJS " in
19059  *" getnameinfo.$ac_objext "* ) ;;
19060  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
19061 ;;
19062esac
19063
19064fi
19065
19066
19067
19068
19069
19070
19071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freeaddrinfo" >&5
19072$as_echo_n "checking for freeaddrinfo... " >&6; }
19073if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then :
19074  $as_echo_n "(cached) " >&6
19075else
19076
19077if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
19078	ac_save_LIBS="$LIBS"
19079	for ac_lib in "" ; do
19080		case "$ac_lib" in
19081		"") ;;
19082		yes) ac_lib="" ;;
19083		no) continue ;;
19084		-l*) ;;
19085		*) ac_lib="-l$ac_lib" ;;
19086		esac
19087		LIBS=" $ac_lib  $ac_save_LIBS"
19088		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19089/* end confdefs.h.  */
19090#ifdef HAVE_NETDB_H
19091#include <netdb.h>
19092#endif
19093#ifdef HAVE_WS2TCPIP_H
19094#include <ws2tcpip.h>
19095#endif
19096int
19097main ()
19098{
19099freeaddrinfo(0)
19100  ;
19101  return 0;
19102}
19103_ACEOF
19104if ac_fn_c_try_link "$LINENO"; then :
19105  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
19106fi
19107rm -f core conftest.err conftest.$ac_objext \
19108    conftest$ac_exeext conftest.$ac_ext
19109	done
19110	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
19111	LIBS="$ac_save_LIBS"
19112fi
19113
19114fi
19115
19116
19117eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
19118
19119if false; then
19120	for ac_func in freeaddrinfo
19121do :
19122  ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo"
19123if test "x$ac_cv_func_freeaddrinfo" = x""yes; then :
19124  cat >>confdefs.h <<_ACEOF
19125#define HAVE_FREEADDRINFO 1
19126_ACEOF
19127
19128fi
19129done
19130
19131fi
19132# freeaddrinfo
19133eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19134eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19135eval "LIB_freeaddrinfo=$ac_res"
19136
19137case "$ac_res" in
19138	yes)
19139	eval "ac_cv_func_freeaddrinfo=yes"
19140	eval "LIB_freeaddrinfo="
19141	cat >>confdefs.h <<_ACEOF
19142#define $ac_tr_func 1
19143_ACEOF
19144
19145	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19146$as_echo "yes" >&6; }
19147	;;
19148	no)
19149	eval "ac_cv_func_freeaddrinfo=no"
19150	eval "LIB_freeaddrinfo="
19151	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19152$as_echo "no" >&6; }
19153	;;
19154	*)
19155	eval "ac_cv_func_freeaddrinfo=yes"
19156	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
19157	cat >>confdefs.h <<_ACEOF
19158#define $ac_tr_func 1
19159_ACEOF
19160
19161	cat >>confdefs.h <<_ACEOF
19162#define $ac_tr_lib 1
19163_ACEOF
19164
19165	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
19166$as_echo "yes, in $ac_res" >&6; }
19167	;;
19168esac
19169
19170
19171if test -n "$LIB_freeaddrinfo"; then
19172	LIBS="$LIB_freeaddrinfo $LIBS"
19173fi
19174
19175if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
19176	case " $LIBOBJS " in
19177  *" freeaddrinfo.$ac_objext "* ) ;;
19178  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
19179 ;;
19180esac
19181
19182fi
19183
19184
19185
19186
19187
19188
19189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror" >&5
19190$as_echo_n "checking for gai_strerror... " >&6; }
19191if test "${ac_cv_funclib_gai_strerror+set}" = set; then :
19192  $as_echo_n "(cached) " >&6
19193else
19194
19195if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
19196	ac_save_LIBS="$LIBS"
19197	for ac_lib in "" ; do
19198		case "$ac_lib" in
19199		"") ;;
19200		yes) ac_lib="" ;;
19201		no) continue ;;
19202		-l*) ;;
19203		*) ac_lib="-l$ac_lib" ;;
19204		esac
19205		LIBS=" $ac_lib  $ac_save_LIBS"
19206		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207/* end confdefs.h.  */
19208#ifdef HAVE_NETDB_H
19209#include <netdb.h>
19210#endif
19211#ifdef HAVE_WS2TCPIP_H
19212#include <ws2tcpip.h>
19213#endif
19214int
19215main ()
19216{
19217gai_strerror(0)
19218  ;
19219  return 0;
19220}
19221_ACEOF
19222if ac_fn_c_try_link "$LINENO"; then :
19223  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
19224fi
19225rm -f core conftest.err conftest.$ac_objext \
19226    conftest$ac_exeext conftest.$ac_ext
19227	done
19228	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
19229	LIBS="$ac_save_LIBS"
19230fi
19231
19232fi
19233
19234
19235eval "ac_res=\$ac_cv_funclib_gai_strerror"
19236
19237if false; then
19238	for ac_func in gai_strerror
19239do :
19240  ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
19241if test "x$ac_cv_func_gai_strerror" = x""yes; then :
19242  cat >>confdefs.h <<_ACEOF
19243#define HAVE_GAI_STRERROR 1
19244_ACEOF
19245
19246fi
19247done
19248
19249fi
19250# gai_strerror
19251eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19252eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19253eval "LIB_gai_strerror=$ac_res"
19254
19255case "$ac_res" in
19256	yes)
19257	eval "ac_cv_func_gai_strerror=yes"
19258	eval "LIB_gai_strerror="
19259	cat >>confdefs.h <<_ACEOF
19260#define $ac_tr_func 1
19261_ACEOF
19262
19263	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19264$as_echo "yes" >&6; }
19265	;;
19266	no)
19267	eval "ac_cv_func_gai_strerror=no"
19268	eval "LIB_gai_strerror="
19269	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270$as_echo "no" >&6; }
19271	;;
19272	*)
19273	eval "ac_cv_func_gai_strerror=yes"
19274	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
19275	cat >>confdefs.h <<_ACEOF
19276#define $ac_tr_func 1
19277_ACEOF
19278
19279	cat >>confdefs.h <<_ACEOF
19280#define $ac_tr_lib 1
19281_ACEOF
19282
19283	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
19284$as_echo "yes, in $ac_res" >&6; }
19285	;;
19286esac
19287
19288
19289if test -n "$LIB_gai_strerror"; then
19290	LIBS="$LIB_gai_strerror $LIBS"
19291fi
19292
19293if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
19294	case " $LIBOBJS " in
19295  *" gai_strerror.$ac_objext "* ) ;;
19296  *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
19297 ;;
19298esac
19299
19300fi
19301
19302
19303case "$host_os" in
19304	darwin*)
19305		;;
19306	*)
19307
19308$as_echo "#define SUPPORT_DETACH 1" >>confdefs.h
19309
19310		ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19311if test "x$ac_cv_func_daemon" = x""yes; then :
19312
19313cat >>confdefs.h <<_ACEOF
19314#define HAVE_DAEMON 1
19315_ACEOF
19316
19317else
19318  case " $LIBOBJS " in
19319  *" daemon.$ac_objext "* ) ;;
19320  *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
19321 ;;
19322esac
19323
19324fi
19325 ;;
19326esac
19327
19328ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
19329if test "x$ac_cv_func_chown" = x""yes; then :
19330
19331cat >>confdefs.h <<_ACEOF
19332#define HAVE_CHOWN 1
19333_ACEOF
19334
19335else
19336  case " $LIBOBJS " in
19337  *" chown.$ac_objext "* ) ;;
19338  *) LIBOBJS="$LIBOBJS chown.$ac_objext"
19339 ;;
19340esac
19341
19342fi
19343ac_fn_c_check_func "$LINENO" "copyhostent" "ac_cv_func_copyhostent"
19344if test "x$ac_cv_func_copyhostent" = x""yes; then :
19345
19346cat >>confdefs.h <<_ACEOF
19347#define HAVE_COPYHOSTENT 1
19348_ACEOF
19349
19350else
19351  case " $LIBOBJS " in
19352  *" copyhostent.$ac_objext "* ) ;;
19353  *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
19354 ;;
19355esac
19356
19357fi
19358ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
19359if test "x$ac_cv_func_closefrom" = x""yes; then :
19360
19361cat >>confdefs.h <<_ACEOF
19362#define HAVE_CLOSEFROM 1
19363_ACEOF
19364
19365else
19366  case " $LIBOBJS " in
19367  *" closefrom.$ac_objext "* ) ;;
19368  *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
19369 ;;
19370esac
19371
19372fi
19373ac_fn_c_check_func "$LINENO" "ecalloc" "ac_cv_func_ecalloc"
19374if test "x$ac_cv_func_ecalloc" = x""yes; then :
19375
19376cat >>confdefs.h <<_ACEOF
19377#define HAVE_ECALLOC 1
19378_ACEOF
19379
19380else
19381  case " $LIBOBJS " in
19382  *" ecalloc.$ac_objext "* ) ;;
19383  *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
19384 ;;
19385esac
19386
19387fi
19388ac_fn_c_check_func "$LINENO" "emalloc" "ac_cv_func_emalloc"
19389if test "x$ac_cv_func_emalloc" = x""yes; then :
19390
19391cat >>confdefs.h <<_ACEOF
19392#define HAVE_EMALLOC 1
19393_ACEOF
19394
19395else
19396  case " $LIBOBJS " in
19397  *" emalloc.$ac_objext "* ) ;;
19398  *) LIBOBJS="$LIBOBJS emalloc.$ac_objext"
19399 ;;
19400esac
19401
19402fi
19403ac_fn_c_check_func "$LINENO" "erealloc" "ac_cv_func_erealloc"
19404if test "x$ac_cv_func_erealloc" = x""yes; then :
19405
19406cat >>confdefs.h <<_ACEOF
19407#define HAVE_EREALLOC 1
19408_ACEOF
19409
19410else
19411  case " $LIBOBJS " in
19412  *" erealloc.$ac_objext "* ) ;;
19413  *) LIBOBJS="$LIBOBJS erealloc.$ac_objext"
19414 ;;
19415esac
19416
19417fi
19418ac_fn_c_check_func "$LINENO" "estrdup" "ac_cv_func_estrdup"
19419if test "x$ac_cv_func_estrdup" = x""yes; then :
19420
19421cat >>confdefs.h <<_ACEOF
19422#define HAVE_ESTRDUP 1
19423_ACEOF
19424
19425else
19426  case " $LIBOBJS " in
19427  *" estrdup.$ac_objext "* ) ;;
19428  *) LIBOBJS="$LIBOBJS estrdup.$ac_objext"
19429 ;;
19430esac
19431
19432fi
19433ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
19434if test "x$ac_cv_func_err" = x""yes; then :
19435
19436cat >>confdefs.h <<_ACEOF
19437#define HAVE_ERR 1
19438_ACEOF
19439
19440else
19441  case " $LIBOBJS " in
19442  *" err.$ac_objext "* ) ;;
19443  *) LIBOBJS="$LIBOBJS err.$ac_objext"
19444 ;;
19445esac
19446
19447fi
19448ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx"
19449if test "x$ac_cv_func_errx" = x""yes; then :
19450
19451cat >>confdefs.h <<_ACEOF
19452#define HAVE_ERRX 1
19453_ACEOF
19454
19455else
19456  case " $LIBOBJS " in
19457  *" errx.$ac_objext "* ) ;;
19458  *) LIBOBJS="$LIBOBJS errx.$ac_objext"
19459 ;;
19460esac
19461
19462fi
19463ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
19464if test "x$ac_cv_func_fchown" = x""yes; then :
19465
19466cat >>confdefs.h <<_ACEOF
19467#define HAVE_FCHOWN 1
19468_ACEOF
19469
19470else
19471  case " $LIBOBJS " in
19472  *" fchown.$ac_objext "* ) ;;
19473  *) LIBOBJS="$LIBOBJS fchown.$ac_objext"
19474 ;;
19475esac
19476
19477fi
19478ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
19479if test "x$ac_cv_func_flock" = x""yes; then :
19480
19481cat >>confdefs.h <<_ACEOF
19482#define HAVE_FLOCK 1
19483_ACEOF
19484
19485else
19486  case " $LIBOBJS " in
19487  *" flock.$ac_objext "* ) ;;
19488  *) LIBOBJS="$LIBOBJS flock.$ac_objext"
19489 ;;
19490esac
19491
19492fi
19493ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
19494if test "x$ac_cv_func_fnmatch" = x""yes; then :
19495
19496cat >>confdefs.h <<_ACEOF
19497#define HAVE_FNMATCH 1
19498_ACEOF
19499
19500else
19501  case " $LIBOBJS " in
19502  *" fnmatch.$ac_objext "* ) ;;
19503  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
19504 ;;
19505esac
19506
19507fi
19508ac_fn_c_check_func "$LINENO" "freehostent" "ac_cv_func_freehostent"
19509if test "x$ac_cv_func_freehostent" = x""yes; then :
19510
19511cat >>confdefs.h <<_ACEOF
19512#define HAVE_FREEHOSTENT 1
19513_ACEOF
19514
19515else
19516  case " $LIBOBJS " in
19517  *" freehostent.$ac_objext "* ) ;;
19518  *) LIBOBJS="$LIBOBJS freehostent.$ac_objext"
19519 ;;
19520esac
19521
19522fi
19523ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
19524if test "x$ac_cv_func_getcwd" = x""yes; then :
19525
19526cat >>confdefs.h <<_ACEOF
19527#define HAVE_GETCWD 1
19528_ACEOF
19529
19530else
19531  case " $LIBOBJS " in
19532  *" getcwd.$ac_objext "* ) ;;
19533  *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
19534 ;;
19535esac
19536
19537fi
19538ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
19539if test "x$ac_cv_func_getdtablesize" = x""yes; then :
19540
19541cat >>confdefs.h <<_ACEOF
19542#define HAVE_GETDTABLESIZE 1
19543_ACEOF
19544
19545else
19546  case " $LIBOBJS " in
19547  *" getdtablesize.$ac_objext "* ) ;;
19548  *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
19549 ;;
19550esac
19551
19552fi
19553ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
19554if test "x$ac_cv_func_getegid" = x""yes; then :
19555
19556cat >>confdefs.h <<_ACEOF
19557#define HAVE_GETEGID 1
19558_ACEOF
19559
19560else
19561  case " $LIBOBJS " in
19562  *" getegid.$ac_objext "* ) ;;
19563  *) LIBOBJS="$LIBOBJS getegid.$ac_objext"
19564 ;;
19565esac
19566
19567fi
19568ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
19569if test "x$ac_cv_func_geteuid" = x""yes; then :
19570
19571cat >>confdefs.h <<_ACEOF
19572#define HAVE_GETEUID 1
19573_ACEOF
19574
19575else
19576  case " $LIBOBJS " in
19577  *" geteuid.$ac_objext "* ) ;;
19578  *) LIBOBJS="$LIBOBJS geteuid.$ac_objext"
19579 ;;
19580esac
19581
19582fi
19583ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
19584if test "x$ac_cv_func_getgid" = x""yes; then :
19585
19586cat >>confdefs.h <<_ACEOF
19587#define HAVE_GETGID 1
19588_ACEOF
19589
19590else
19591  case " $LIBOBJS " in
19592  *" getgid.$ac_objext "* ) ;;
19593  *) LIBOBJS="$LIBOBJS getgid.$ac_objext"
19594 ;;
19595esac
19596
19597fi
19598ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
19599if test "x$ac_cv_func_gethostname" = x""yes; then :
19600
19601cat >>confdefs.h <<_ACEOF
19602#define HAVE_GETHOSTNAME 1
19603_ACEOF
19604
19605else
19606  case " $LIBOBJS " in
19607  *" gethostname.$ac_objext "* ) ;;
19608  *) LIBOBJS="$LIBOBJS gethostname.$ac_objext"
19609 ;;
19610esac
19611
19612fi
19613ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
19614if test "x$ac_cv_func_getifaddrs" = x""yes; then :
19615
19616cat >>confdefs.h <<_ACEOF
19617#define HAVE_GETIFADDRS 1
19618_ACEOF
19619
19620else
19621  case " $LIBOBJS " in
19622  *" getifaddrs.$ac_objext "* ) ;;
19623  *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
19624 ;;
19625esac
19626
19627fi
19628ac_fn_c_check_func "$LINENO" "getipnodebyaddr" "ac_cv_func_getipnodebyaddr"
19629if test "x$ac_cv_func_getipnodebyaddr" = x""yes; then :
19630
19631cat >>confdefs.h <<_ACEOF
19632#define HAVE_GETIPNODEBYADDR 1
19633_ACEOF
19634
19635else
19636  case " $LIBOBJS " in
19637  *" getipnodebyaddr.$ac_objext "* ) ;;
19638  *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
19639 ;;
19640esac
19641
19642fi
19643ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname"
19644if test "x$ac_cv_func_getipnodebyname" = x""yes; then :
19645
19646cat >>confdefs.h <<_ACEOF
19647#define HAVE_GETIPNODEBYNAME 1
19648_ACEOF
19649
19650else
19651  case " $LIBOBJS " in
19652  *" getipnodebyname.$ac_objext "* ) ;;
19653  *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
19654 ;;
19655esac
19656
19657fi
19658ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
19659if test "x$ac_cv_func_getopt" = x""yes; then :
19660
19661cat >>confdefs.h <<_ACEOF
19662#define HAVE_GETOPT 1
19663_ACEOF
19664
19665else
19666  case " $LIBOBJS " in
19667  *" getopt.$ac_objext "* ) ;;
19668  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
19669 ;;
19670esac
19671
19672fi
19673ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19674if test "x$ac_cv_func_gettimeofday" = x""yes; then :
19675
19676cat >>confdefs.h <<_ACEOF
19677#define HAVE_GETTIMEOFDAY 1
19678_ACEOF
19679
19680else
19681  case " $LIBOBJS " in
19682  *" gettimeofday.$ac_objext "* ) ;;
19683  *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
19684 ;;
19685esac
19686
19687fi
19688ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
19689if test "x$ac_cv_func_getuid" = x""yes; then :
19690
19691cat >>confdefs.h <<_ACEOF
19692#define HAVE_GETUID 1
19693_ACEOF
19694
19695else
19696  case " $LIBOBJS " in
19697  *" getuid.$ac_objext "* ) ;;
19698  *) LIBOBJS="$LIBOBJS getuid.$ac_objext"
19699 ;;
19700esac
19701
19702fi
19703ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell"
19704if test "x$ac_cv_func_getusershell" = x""yes; then :
19705
19706cat >>confdefs.h <<_ACEOF
19707#define HAVE_GETUSERSHELL 1
19708_ACEOF
19709
19710else
19711  case " $LIBOBJS " in
19712  *" getusershell.$ac_objext "* ) ;;
19713  *) LIBOBJS="$LIBOBJS getusershell.$ac_objext"
19714 ;;
19715esac
19716
19717fi
19718ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
19719if test "x$ac_cv_func_initgroups" = x""yes; then :
19720
19721cat >>confdefs.h <<_ACEOF
19722#define HAVE_INITGROUPS 1
19723_ACEOF
19724
19725else
19726  case " $LIBOBJS " in
19727  *" initgroups.$ac_objext "* ) ;;
19728  *) LIBOBJS="$LIBOBJS initgroups.$ac_objext"
19729 ;;
19730esac
19731
19732fi
19733ac_fn_c_check_func "$LINENO" "innetgr" "ac_cv_func_innetgr"
19734if test "x$ac_cv_func_innetgr" = x""yes; then :
19735
19736cat >>confdefs.h <<_ACEOF
19737#define HAVE_INNETGR 1
19738_ACEOF
19739
19740else
19741  case " $LIBOBJS " in
19742  *" innetgr.$ac_objext "* ) ;;
19743  *) LIBOBJS="$LIBOBJS innetgr.$ac_objext"
19744 ;;
19745esac
19746
19747fi
19748ac_fn_c_check_func "$LINENO" "iruserok" "ac_cv_func_iruserok"
19749if test "x$ac_cv_func_iruserok" = x""yes; then :
19750
19751cat >>confdefs.h <<_ACEOF
19752#define HAVE_IRUSEROK 1
19753_ACEOF
19754
19755else
19756  case " $LIBOBJS " in
19757  *" iruserok.$ac_objext "* ) ;;
19758  *) LIBOBJS="$LIBOBJS iruserok.$ac_objext"
19759 ;;
19760esac
19761
19762fi
19763ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
19764if test "x$ac_cv_func_localtime_r" = x""yes; then :
19765
19766cat >>confdefs.h <<_ACEOF
19767#define HAVE_LOCALTIME_R 1
19768_ACEOF
19769
19770else
19771  case " $LIBOBJS " in
19772  *" localtime_r.$ac_objext "* ) ;;
19773  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
19774 ;;
19775esac
19776
19777fi
19778ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
19779if test "x$ac_cv_func_lstat" = x""yes; then :
19780
19781cat >>confdefs.h <<_ACEOF
19782#define HAVE_LSTAT 1
19783_ACEOF
19784
19785else
19786  case " $LIBOBJS " in
19787  *" lstat.$ac_objext "* ) ;;
19788  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19789 ;;
19790esac
19791
19792fi
19793ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19794if test "x$ac_cv_func_memmove" = x""yes; then :
19795
19796cat >>confdefs.h <<_ACEOF
19797#define HAVE_MEMMOVE 1
19798_ACEOF
19799
19800else
19801  case " $LIBOBJS " in
19802  *" memmove.$ac_objext "* ) ;;
19803  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
19804 ;;
19805esac
19806
19807fi
19808ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
19809if test "x$ac_cv_func_mkstemp" = x""yes; then :
19810
19811cat >>confdefs.h <<_ACEOF
19812#define HAVE_MKSTEMP 1
19813_ACEOF
19814
19815else
19816  case " $LIBOBJS " in
19817  *" mkstemp.$ac_objext "* ) ;;
19818  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
19819 ;;
19820esac
19821
19822fi
19823ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
19824if test "x$ac_cv_func_putenv" = x""yes; then :
19825
19826cat >>confdefs.h <<_ACEOF
19827#define HAVE_PUTENV 1
19828_ACEOF
19829
19830else
19831  case " $LIBOBJS " in
19832  *" putenv.$ac_objext "* ) ;;
19833  *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
19834 ;;
19835esac
19836
19837fi
19838ac_fn_c_check_func "$LINENO" "rcmd" "ac_cv_func_rcmd"
19839if test "x$ac_cv_func_rcmd" = x""yes; then :
19840
19841cat >>confdefs.h <<_ACEOF
19842#define HAVE_RCMD 1
19843_ACEOF
19844
19845else
19846  case " $LIBOBJS " in
19847  *" rcmd.$ac_objext "* ) ;;
19848  *) LIBOBJS="$LIBOBJS rcmd.$ac_objext"
19849 ;;
19850esac
19851
19852fi
19853ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv"
19854if test "x$ac_cv_func_readv" = x""yes; then :
19855
19856cat >>confdefs.h <<_ACEOF
19857#define HAVE_READV 1
19858_ACEOF
19859
19860else
19861  case " $LIBOBJS " in
19862  *" readv.$ac_objext "* ) ;;
19863  *) LIBOBJS="$LIBOBJS readv.$ac_objext"
19864 ;;
19865esac
19866
19867fi
19868ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
19869if test "x$ac_cv_func_recvmsg" = x""yes; then :
19870
19871cat >>confdefs.h <<_ACEOF
19872#define HAVE_RECVMSG 1
19873_ACEOF
19874
19875else
19876  case " $LIBOBJS " in
19877  *" recvmsg.$ac_objext "* ) ;;
19878  *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
19879 ;;
19880esac
19881
19882fi
19883ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg"
19884if test "x$ac_cv_func_sendmsg" = x""yes; then :
19885
19886cat >>confdefs.h <<_ACEOF
19887#define HAVE_SENDMSG 1
19888_ACEOF
19889
19890else
19891  case " $LIBOBJS " in
19892  *" sendmsg.$ac_objext "* ) ;;
19893  *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
19894 ;;
19895esac
19896
19897fi
19898ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
19899if test "x$ac_cv_func_setegid" = x""yes; then :
19900
19901cat >>confdefs.h <<_ACEOF
19902#define HAVE_SETEGID 1
19903_ACEOF
19904
19905else
19906  case " $LIBOBJS " in
19907  *" setegid.$ac_objext "* ) ;;
19908  *) LIBOBJS="$LIBOBJS setegid.$ac_objext"
19909 ;;
19910esac
19911
19912fi
19913ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
19914if test "x$ac_cv_func_setenv" = x""yes; then :
19915
19916cat >>confdefs.h <<_ACEOF
19917#define HAVE_SETENV 1
19918_ACEOF
19919
19920else
19921  case " $LIBOBJS " in
19922  *" setenv.$ac_objext "* ) ;;
19923  *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
19924 ;;
19925esac
19926
19927fi
19928ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
19929if test "x$ac_cv_func_seteuid" = x""yes; then :
19930
19931cat >>confdefs.h <<_ACEOF
19932#define HAVE_SETEUID 1
19933_ACEOF
19934
19935else
19936  case " $LIBOBJS " in
19937  *" seteuid.$ac_objext "* ) ;;
19938  *) LIBOBJS="$LIBOBJS seteuid.$ac_objext"
19939 ;;
19940esac
19941
19942fi
19943ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19944if test "x$ac_cv_func_strcasecmp" = x""yes; then :
19945
19946cat >>confdefs.h <<_ACEOF
19947#define HAVE_STRCASECMP 1
19948_ACEOF
19949
19950else
19951  case " $LIBOBJS " in
19952  *" strcasecmp.$ac_objext "* ) ;;
19953  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
19954 ;;
19955esac
19956
19957fi
19958ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
19959if test "x$ac_cv_func_strdup" = x""yes; then :
19960
19961cat >>confdefs.h <<_ACEOF
19962#define HAVE_STRDUP 1
19963_ACEOF
19964
19965else
19966  case " $LIBOBJS " in
19967  *" strdup.$ac_objext "* ) ;;
19968  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
19969 ;;
19970esac
19971
19972fi
19973ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
19974if test "x$ac_cv_func_strerror" = x""yes; then :
19975
19976cat >>confdefs.h <<_ACEOF
19977#define HAVE_STRERROR 1
19978_ACEOF
19979
19980else
19981  case " $LIBOBJS " in
19982  *" strerror.$ac_objext "* ) ;;
19983  *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
19984 ;;
19985esac
19986
19987fi
19988ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
19989if test "x$ac_cv_func_strftime" = x""yes; then :
19990
19991cat >>confdefs.h <<_ACEOF
19992#define HAVE_STRFTIME 1
19993_ACEOF
19994
19995else
19996  case " $LIBOBJS " in
19997  *" strftime.$ac_objext "* ) ;;
19998  *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
19999 ;;
20000esac
20001
20002fi
20003ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20004if test "x$ac_cv_func_strlcat" = x""yes; then :
20005
20006cat >>confdefs.h <<_ACEOF
20007#define HAVE_STRLCAT 1
20008_ACEOF
20009
20010else
20011  case " $LIBOBJS " in
20012  *" strlcat.$ac_objext "* ) ;;
20013  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20014 ;;
20015esac
20016
20017fi
20018ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20019if test "x$ac_cv_func_strlcpy" = x""yes; then :
20020
20021cat >>confdefs.h <<_ACEOF
20022#define HAVE_STRLCPY 1
20023_ACEOF
20024
20025else
20026  case " $LIBOBJS " in
20027  *" strlcpy.$ac_objext "* ) ;;
20028  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20029 ;;
20030esac
20031
20032fi
20033ac_fn_c_check_func "$LINENO" "strlwr" "ac_cv_func_strlwr"
20034if test "x$ac_cv_func_strlwr" = x""yes; then :
20035
20036cat >>confdefs.h <<_ACEOF
20037#define HAVE_STRLWR 1
20038_ACEOF
20039
20040else
20041  case " $LIBOBJS " in
20042  *" strlwr.$ac_objext "* ) ;;
20043  *) LIBOBJS="$LIBOBJS strlwr.$ac_objext"
20044 ;;
20045esac
20046
20047fi
20048ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
20049if test "x$ac_cv_func_strncasecmp" = x""yes; then :
20050
20051cat >>confdefs.h <<_ACEOF
20052#define HAVE_STRNCASECMP 1
20053_ACEOF
20054
20055else
20056  case " $LIBOBJS " in
20057  *" strncasecmp.$ac_objext "* ) ;;
20058  *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
20059 ;;
20060esac
20061
20062fi
20063ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
20064if test "x$ac_cv_func_strndup" = x""yes; then :
20065
20066cat >>confdefs.h <<_ACEOF
20067#define HAVE_STRNDUP 1
20068_ACEOF
20069
20070else
20071  case " $LIBOBJS " in
20072  *" strndup.$ac_objext "* ) ;;
20073  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
20074 ;;
20075esac
20076
20077fi
20078ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
20079if test "x$ac_cv_func_strnlen" = x""yes; then :
20080
20081cat >>confdefs.h <<_ACEOF
20082#define HAVE_STRNLEN 1
20083_ACEOF
20084
20085else
20086  case " $LIBOBJS " in
20087  *" strnlen.$ac_objext "* ) ;;
20088  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
20089 ;;
20090esac
20091
20092fi
20093ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
20094if test "x$ac_cv_func_strptime" = x""yes; then :
20095
20096cat >>confdefs.h <<_ACEOF
20097#define HAVE_STRPTIME 1
20098_ACEOF
20099
20100else
20101  case " $LIBOBJS " in
20102  *" strptime.$ac_objext "* ) ;;
20103  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
20104 ;;
20105esac
20106
20107fi
20108ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20109if test "x$ac_cv_func_strsep" = x""yes; then :
20110
20111cat >>confdefs.h <<_ACEOF
20112#define HAVE_STRSEP 1
20113_ACEOF
20114
20115else
20116  case " $LIBOBJS " in
20117  *" strsep.$ac_objext "* ) ;;
20118  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
20119 ;;
20120esac
20121
20122fi
20123ac_fn_c_check_func "$LINENO" "strsep_copy" "ac_cv_func_strsep_copy"
20124if test "x$ac_cv_func_strsep_copy" = x""yes; then :
20125
20126cat >>confdefs.h <<_ACEOF
20127#define HAVE_STRSEP_COPY 1
20128_ACEOF
20129
20130else
20131  case " $LIBOBJS " in
20132  *" strsep_copy.$ac_objext "* ) ;;
20133  *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
20134 ;;
20135esac
20136
20137fi
20138ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
20139if test "x$ac_cv_func_strtok_r" = x""yes; then :
20140
20141cat >>confdefs.h <<_ACEOF
20142#define HAVE_STRTOK_R 1
20143_ACEOF
20144
20145else
20146  case " $LIBOBJS " in
20147  *" strtok_r.$ac_objext "* ) ;;
20148  *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
20149 ;;
20150esac
20151
20152fi
20153ac_fn_c_check_func "$LINENO" "strupr" "ac_cv_func_strupr"
20154if test "x$ac_cv_func_strupr" = x""yes; then :
20155
20156cat >>confdefs.h <<_ACEOF
20157#define HAVE_STRUPR 1
20158_ACEOF
20159
20160else
20161  case " $LIBOBJS " in
20162  *" strupr.$ac_objext "* ) ;;
20163  *) LIBOBJS="$LIBOBJS strupr.$ac_objext"
20164 ;;
20165esac
20166
20167fi
20168ac_fn_c_check_func "$LINENO" "swab" "ac_cv_func_swab"
20169if test "x$ac_cv_func_swab" = x""yes; then :
20170
20171cat >>confdefs.h <<_ACEOF
20172#define HAVE_SWAB 1
20173_ACEOF
20174
20175else
20176  case " $LIBOBJS " in
20177  *" swab.$ac_objext "* ) ;;
20178  *) LIBOBJS="$LIBOBJS swab.$ac_objext"
20179 ;;
20180esac
20181
20182fi
20183ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
20184if test "x$ac_cv_func_tsearch" = x""yes; then :
20185
20186cat >>confdefs.h <<_ACEOF
20187#define HAVE_TSEARCH 1
20188_ACEOF
20189
20190else
20191  case " $LIBOBJS " in
20192  *" tsearch.$ac_objext "* ) ;;
20193  *) LIBOBJS="$LIBOBJS tsearch.$ac_objext"
20194 ;;
20195esac
20196
20197fi
20198ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
20199if test "x$ac_cv_func_timegm" = x""yes; then :
20200
20201cat >>confdefs.h <<_ACEOF
20202#define HAVE_TIMEGM 1
20203_ACEOF
20204
20205else
20206  case " $LIBOBJS " in
20207  *" timegm.$ac_objext "* ) ;;
20208  *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
20209 ;;
20210esac
20211
20212fi
20213ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
20214if test "x$ac_cv_func_unsetenv" = x""yes; then :
20215
20216cat >>confdefs.h <<_ACEOF
20217#define HAVE_UNSETENV 1
20218_ACEOF
20219
20220else
20221  case " $LIBOBJS " in
20222  *" unsetenv.$ac_objext "* ) ;;
20223  *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
20224 ;;
20225esac
20226
20227fi
20228ac_fn_c_check_func "$LINENO" "verr" "ac_cv_func_verr"
20229if test "x$ac_cv_func_verr" = x""yes; then :
20230
20231cat >>confdefs.h <<_ACEOF
20232#define HAVE_VERR 1
20233_ACEOF
20234
20235else
20236  case " $LIBOBJS " in
20237  *" verr.$ac_objext "* ) ;;
20238  *) LIBOBJS="$LIBOBJS verr.$ac_objext"
20239 ;;
20240esac
20241
20242fi
20243ac_fn_c_check_func "$LINENO" "verrx" "ac_cv_func_verrx"
20244if test "x$ac_cv_func_verrx" = x""yes; then :
20245
20246cat >>confdefs.h <<_ACEOF
20247#define HAVE_VERRX 1
20248_ACEOF
20249
20250else
20251  case " $LIBOBJS " in
20252  *" verrx.$ac_objext "* ) ;;
20253  *) LIBOBJS="$LIBOBJS verrx.$ac_objext"
20254 ;;
20255esac
20256
20257fi
20258ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
20259if test "x$ac_cv_func_vsyslog" = x""yes; then :
20260
20261cat >>confdefs.h <<_ACEOF
20262#define HAVE_VSYSLOG 1
20263_ACEOF
20264
20265else
20266  case " $LIBOBJS " in
20267  *" vsyslog.$ac_objext "* ) ;;
20268  *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
20269 ;;
20270esac
20271
20272fi
20273ac_fn_c_check_func "$LINENO" "vwarn" "ac_cv_func_vwarn"
20274if test "x$ac_cv_func_vwarn" = x""yes; then :
20275
20276cat >>confdefs.h <<_ACEOF
20277#define HAVE_VWARN 1
20278_ACEOF
20279
20280else
20281  case " $LIBOBJS " in
20282  *" vwarn.$ac_objext "* ) ;;
20283  *) LIBOBJS="$LIBOBJS vwarn.$ac_objext"
20284 ;;
20285esac
20286
20287fi
20288ac_fn_c_check_func "$LINENO" "vwarnx" "ac_cv_func_vwarnx"
20289if test "x$ac_cv_func_vwarnx" = x""yes; then :
20290
20291cat >>confdefs.h <<_ACEOF
20292#define HAVE_VWARNX 1
20293_ACEOF
20294
20295else
20296  case " $LIBOBJS " in
20297  *" vwarnx.$ac_objext "* ) ;;
20298  *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
20299 ;;
20300esac
20301
20302fi
20303ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
20304if test "x$ac_cv_func_warn" = x""yes; then :
20305
20306cat >>confdefs.h <<_ACEOF
20307#define HAVE_WARN 1
20308_ACEOF
20309
20310else
20311  case " $LIBOBJS " in
20312  *" warn.$ac_objext "* ) ;;
20313  *) LIBOBJS="$LIBOBJS warn.$ac_objext"
20314 ;;
20315esac
20316
20317fi
20318ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx"
20319if test "x$ac_cv_func_warnx" = x""yes; then :
20320
20321cat >>confdefs.h <<_ACEOF
20322#define HAVE_WARNX 1
20323_ACEOF
20324
20325else
20326  case " $LIBOBJS " in
20327  *" warnx.$ac_objext "* ) ;;
20328  *) LIBOBJS="$LIBOBJS warnx.$ac_objext"
20329 ;;
20330esac
20331
20332fi
20333ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
20334if test "x$ac_cv_func_writev" = x""yes; then :
20335
20336cat >>confdefs.h <<_ACEOF
20337#define HAVE_WRITEV 1
20338_ACEOF
20339
20340else
20341  case " $LIBOBJS " in
20342  *" writev.$ac_objext "* ) ;;
20343  *) LIBOBJS="$LIBOBJS writev.$ac_objext"
20344 ;;
20345esac
20346
20347fi
20348
20349
20350 if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then
20351  have_fnmatch_h_TRUE=
20352  have_fnmatch_h_FALSE='#'
20353else
20354  have_fnmatch_h_TRUE='#'
20355  have_fnmatch_h_FALSE=
20356fi
20357
20358
20359
20360if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
20361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strndup needs a prototype" >&5
20362$as_echo_n "checking if strndup needs a prototype... " >&6; }
20363if test "${ac_cv_func_strndup_noproto+set}" = set; then :
20364  $as_echo_n "(cached) " >&6
20365else
20366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367/* end confdefs.h.  */
20368#include <string.h>
20369struct foo { int foo; } xx;
20370extern int strndup (struct foo*);
20371int
20372main ()
20373{
20374strndup(&xx)
20375  ;
20376  return 0;
20377}
20378_ACEOF
20379if ac_fn_c_try_compile "$LINENO"; then :
20380  eval "ac_cv_func_strndup_noproto=yes"
20381else
20382  eval "ac_cv_func_strndup_noproto=no"
20383fi
20384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20385fi
20386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strndup_noproto" >&5
20387$as_echo "$ac_cv_func_strndup_noproto" >&6; }
20388if test "$ac_cv_func_strndup_noproto" = yes; then
20389
20390$as_echo "#define NEED_STRNDUP_PROTO 1" >>confdefs.h
20391
20392fi
20393fi
20394
20395if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
20396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsep needs a prototype" >&5
20397$as_echo_n "checking if strsep needs a prototype... " >&6; }
20398if test "${ac_cv_func_strsep_noproto+set}" = set; then :
20399  $as_echo_n "(cached) " >&6
20400else
20401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20402/* end confdefs.h.  */
20403#include <string.h>
20404struct foo { int foo; } xx;
20405extern int strsep (struct foo*);
20406int
20407main ()
20408{
20409strsep(&xx)
20410  ;
20411  return 0;
20412}
20413_ACEOF
20414if ac_fn_c_try_compile "$LINENO"; then :
20415  eval "ac_cv_func_strsep_noproto=yes"
20416else
20417  eval "ac_cv_func_strsep_noproto=no"
20418fi
20419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20420fi
20421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsep_noproto" >&5
20422$as_echo "$ac_cv_func_strsep_noproto" >&6; }
20423if test "$ac_cv_func_strsep_noproto" = yes; then
20424
20425$as_echo "#define NEED_STRSEP_PROTO 1" >>confdefs.h
20426
20427fi
20428fi
20429
20430if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
20431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r needs a prototype" >&5
20432$as_echo_n "checking if strtok_r needs a prototype... " >&6; }
20433if test "${ac_cv_func_strtok_r_noproto+set}" = set; then :
20434  $as_echo_n "(cached) " >&6
20435else
20436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20437/* end confdefs.h.  */
20438#include <string.h>
20439struct foo { int foo; } xx;
20440extern int strtok_r (struct foo*);
20441int
20442main ()
20443{
20444strtok_r(&xx)
20445  ;
20446  return 0;
20447}
20448_ACEOF
20449if ac_fn_c_try_compile "$LINENO"; then :
20450  eval "ac_cv_func_strtok_r_noproto=yes"
20451else
20452  eval "ac_cv_func_strtok_r_noproto=no"
20453fi
20454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455fi
20456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtok_r_noproto" >&5
20457$as_echo "$ac_cv_func_strtok_r_noproto" >&6; }
20458if test "$ac_cv_func_strtok_r_noproto" = yes; then
20459
20460$as_echo "#define NEED_STRTOK_R_PROTO 1" >>confdefs.h
20461
20462fi
20463fi
20464
20465
20466
20467if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
20468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsvis needs a prototype" >&5
20469$as_echo_n "checking if strsvis needs a prototype... " >&6; }
20470if test "${ac_cv_func_strsvis_noproto+set}" = set; then :
20471  $as_echo_n "(cached) " >&6
20472else
20473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20474/* end confdefs.h.  */
20475#ifdef HAVE_VIS_H
20476#include <vis.h>
20477#endif
20478struct foo { int foo; } xx;
20479extern int strsvis (struct foo*);
20480int
20481main ()
20482{
20483strsvis(&xx)
20484  ;
20485  return 0;
20486}
20487_ACEOF
20488if ac_fn_c_try_compile "$LINENO"; then :
20489  eval "ac_cv_func_strsvis_noproto=yes"
20490else
20491  eval "ac_cv_func_strsvis_noproto=no"
20492fi
20493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20494fi
20495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvis_noproto" >&5
20496$as_echo "$ac_cv_func_strsvis_noproto" >&6; }
20497if test "$ac_cv_func_strsvis_noproto" = yes; then
20498
20499$as_echo "#define NEED_STRSVIS_PROTO 1" >>confdefs.h
20500
20501fi
20502fi
20503
20504if test "$ac_cv_func_strsvisx+set" != set -o "$ac_cv_func_strsvisx" = yes; then
20505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsvisx needs a prototype" >&5
20506$as_echo_n "checking if strsvisx needs a prototype... " >&6; }
20507if test "${ac_cv_func_strsvisx_noproto+set}" = set; then :
20508  $as_echo_n "(cached) " >&6
20509else
20510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20511/* end confdefs.h.  */
20512#ifdef HAVE_VIS_H
20513#include <vis.h>
20514#endif
20515struct foo { int foo; } xx;
20516extern int strsvisx (struct foo*);
20517int
20518main ()
20519{
20520strsvisx(&xx)
20521  ;
20522  return 0;
20523}
20524_ACEOF
20525if ac_fn_c_try_compile "$LINENO"; then :
20526  eval "ac_cv_func_strsvisx_noproto=yes"
20527else
20528  eval "ac_cv_func_strsvisx_noproto=no"
20529fi
20530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20531fi
20532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvisx_noproto" >&5
20533$as_echo "$ac_cv_func_strsvisx_noproto" >&6; }
20534if test "$ac_cv_func_strsvisx_noproto" = yes; then
20535
20536$as_echo "#define NEED_STRSVISX_PROTO 1" >>confdefs.h
20537
20538fi
20539fi
20540
20541if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
20542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strunvis needs a prototype" >&5
20543$as_echo_n "checking if strunvis needs a prototype... " >&6; }
20544if test "${ac_cv_func_strunvis_noproto+set}" = set; then :
20545  $as_echo_n "(cached) " >&6
20546else
20547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20548/* end confdefs.h.  */
20549#ifdef HAVE_VIS_H
20550#include <vis.h>
20551#endif
20552struct foo { int foo; } xx;
20553extern int strunvis (struct foo*);
20554int
20555main ()
20556{
20557strunvis(&xx)
20558  ;
20559  return 0;
20560}
20561_ACEOF
20562if ac_fn_c_try_compile "$LINENO"; then :
20563  eval "ac_cv_func_strunvis_noproto=yes"
20564else
20565  eval "ac_cv_func_strunvis_noproto=no"
20566fi
20567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20568fi
20569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strunvis_noproto" >&5
20570$as_echo "$ac_cv_func_strunvis_noproto" >&6; }
20571if test "$ac_cv_func_strunvis_noproto" = yes; then
20572
20573$as_echo "#define NEED_STRUNVIS_PROTO 1" >>confdefs.h
20574
20575fi
20576fi
20577
20578if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
20579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strvis needs a prototype" >&5
20580$as_echo_n "checking if strvis needs a prototype... " >&6; }
20581if test "${ac_cv_func_strvis_noproto+set}" = set; then :
20582  $as_echo_n "(cached) " >&6
20583else
20584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585/* end confdefs.h.  */
20586#ifdef HAVE_VIS_H
20587#include <vis.h>
20588#endif
20589struct foo { int foo; } xx;
20590extern int strvis (struct foo*);
20591int
20592main ()
20593{
20594strvis(&xx)
20595  ;
20596  return 0;
20597}
20598_ACEOF
20599if ac_fn_c_try_compile "$LINENO"; then :
20600  eval "ac_cv_func_strvis_noproto=yes"
20601else
20602  eval "ac_cv_func_strvis_noproto=no"
20603fi
20604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20605fi
20606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvis_noproto" >&5
20607$as_echo "$ac_cv_func_strvis_noproto" >&6; }
20608if test "$ac_cv_func_strvis_noproto" = yes; then
20609
20610$as_echo "#define NEED_STRVIS_PROTO 1" >>confdefs.h
20611
20612fi
20613fi
20614
20615if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
20616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strvisx needs a prototype" >&5
20617$as_echo_n "checking if strvisx needs a prototype... " >&6; }
20618if test "${ac_cv_func_strvisx_noproto+set}" = set; then :
20619  $as_echo_n "(cached) " >&6
20620else
20621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20622/* end confdefs.h.  */
20623#ifdef HAVE_VIS_H
20624#include <vis.h>
20625#endif
20626struct foo { int foo; } xx;
20627extern int strvisx (struct foo*);
20628int
20629main ()
20630{
20631strvisx(&xx)
20632  ;
20633  return 0;
20634}
20635_ACEOF
20636if ac_fn_c_try_compile "$LINENO"; then :
20637  eval "ac_cv_func_strvisx_noproto=yes"
20638else
20639  eval "ac_cv_func_strvisx_noproto=no"
20640fi
20641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642fi
20643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvisx_noproto" >&5
20644$as_echo "$ac_cv_func_strvisx_noproto" >&6; }
20645if test "$ac_cv_func_strvisx_noproto" = yes; then
20646
20647$as_echo "#define NEED_STRVISX_PROTO 1" >>confdefs.h
20648
20649fi
20650fi
20651
20652if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
20653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if svis needs a prototype" >&5
20654$as_echo_n "checking if svis needs a prototype... " >&6; }
20655if test "${ac_cv_func_svis_noproto+set}" = set; then :
20656  $as_echo_n "(cached) " >&6
20657else
20658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659/* end confdefs.h.  */
20660#ifdef HAVE_VIS_H
20661#include <vis.h>
20662#endif
20663struct foo { int foo; } xx;
20664extern int svis (struct foo*);
20665int
20666main ()
20667{
20668svis(&xx)
20669  ;
20670  return 0;
20671}
20672_ACEOF
20673if ac_fn_c_try_compile "$LINENO"; then :
20674  eval "ac_cv_func_svis_noproto=yes"
20675else
20676  eval "ac_cv_func_svis_noproto=no"
20677fi
20678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20679fi
20680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_svis_noproto" >&5
20681$as_echo "$ac_cv_func_svis_noproto" >&6; }
20682if test "$ac_cv_func_svis_noproto" = yes; then
20683
20684$as_echo "#define NEED_SVIS_PROTO 1" >>confdefs.h
20685
20686fi
20687fi
20688
20689if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
20690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unvis needs a prototype" >&5
20691$as_echo_n "checking if unvis needs a prototype... " >&6; }
20692if test "${ac_cv_func_unvis_noproto+set}" = set; then :
20693  $as_echo_n "(cached) " >&6
20694else
20695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696/* end confdefs.h.  */
20697#ifdef HAVE_VIS_H
20698#include <vis.h>
20699#endif
20700struct foo { int foo; } xx;
20701extern int unvis (struct foo*);
20702int
20703main ()
20704{
20705unvis(&xx)
20706  ;
20707  return 0;
20708}
20709_ACEOF
20710if ac_fn_c_try_compile "$LINENO"; then :
20711  eval "ac_cv_func_unvis_noproto=yes"
20712else
20713  eval "ac_cv_func_unvis_noproto=no"
20714fi
20715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20716fi
20717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unvis_noproto" >&5
20718$as_echo "$ac_cv_func_unvis_noproto" >&6; }
20719if test "$ac_cv_func_unvis_noproto" = yes; then
20720
20721$as_echo "#define NEED_UNVIS_PROTO 1" >>confdefs.h
20722
20723fi
20724fi
20725
20726if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
20727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vis needs a prototype" >&5
20728$as_echo_n "checking if vis needs a prototype... " >&6; }
20729if test "${ac_cv_func_vis_noproto+set}" = set; then :
20730  $as_echo_n "(cached) " >&6
20731else
20732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20733/* end confdefs.h.  */
20734#ifdef HAVE_VIS_H
20735#include <vis.h>
20736#endif
20737struct foo { int foo; } xx;
20738extern int vis (struct foo*);
20739int
20740main ()
20741{
20742vis(&xx)
20743  ;
20744  return 0;
20745}
20746_ACEOF
20747if ac_fn_c_try_compile "$LINENO"; then :
20748  eval "ac_cv_func_vis_noproto=yes"
20749else
20750  eval "ac_cv_func_vis_noproto=no"
20751fi
20752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20753fi
20754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vis_noproto" >&5
20755$as_echo "$ac_cv_func_vis_noproto" >&6; }
20756if test "$ac_cv_func_vis_noproto" = yes; then
20757
20758$as_echo "#define NEED_VIS_PROTO 1" >>confdefs.h
20759
20760fi
20761fi
20762
20763
20764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for dirfd" >&5
20765$as_echo_n "checking checking for dirfd... " >&6; }
20766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767/* end confdefs.h.  */
20768#include <sys/types.h>
20769#ifdef HAVE_DIRENT_H
20770#include <dirent.h>
20771#endif
20772
20773int
20774main ()
20775{
20776DIR *d = 0; dirfd(d);
20777  ;
20778  return 0;
20779}
20780_ACEOF
20781if ac_fn_c_try_link "$LINENO"; then :
20782  ac_rk_have_dirfd=yes
20783else
20784  ac_rk_have_dirfd=no
20785fi
20786rm -f core conftest.err conftest.$ac_objext \
20787    conftest$ac_exeext conftest.$ac_ext
20788if test "$ac_rk_have_dirfd" = "yes" ; then
20789
20790cat >>confdefs.h <<_ACEOF
20791#define HAVE_DIRFD 1
20792_ACEOF
20793
20794fi
20795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have_dirfd" >&5
20796$as_echo "$ac_rk_have_dirfd" >&6; }
20797
20798
20799
20800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dd_fd in DIR" >&5
20801$as_echo_n "checking for dd_fd in DIR... " >&6; }
20802if test "${ac_cv_type_dir_dd_fd+set}" = set; then :
20803  $as_echo_n "(cached) " >&6
20804else
20805
20806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20807/* end confdefs.h.  */
20808#include <sys/types.h>
20809#ifdef HAVE_DIRENT_H
20810#include <dirent.h>
20811#endif
20812int
20813main ()
20814{
20815DIR x; memset(&x, 0, sizeof(x)); x.dd_fd
20816  ;
20817  return 0;
20818}
20819_ACEOF
20820if ac_fn_c_try_compile "$LINENO"; then :
20821  ac_cv_type_dir_dd_fd=yes
20822else
20823  ac_cv_type_dir_dd_fd=no
20824fi
20825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20826
20827fi
20828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_dir_dd_fd" >&5
20829$as_echo "$ac_cv_type_dir_dd_fd" >&6; }
20830if test "$ac_cv_type_dir_dd_fd" = yes; then
20831
20832
20833$as_echo "#define HAVE_DIR_DD_FD 1" >>confdefs.h
20834
20835
20836fi
20837
20838
20839
20840
20841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
20842$as_echo_n "checking for inet_aton... " >&6; }
20843if test "${ac_cv_func_inet_aton+set}" = set; then :
20844  $as_echo_n "(cached) " >&6
20845else
20846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20847/* end confdefs.h.  */
20848#ifdef HAVE_SYS_TYPES_H
20849#include <sys/types.h>
20850#endif
20851#ifdef HAVE_SYS_SOCKET_H
20852#include <sys/socket.h>
20853#endif
20854#ifdef HAVE_NETINET_IN_H
20855#include <netinet/in.h>
20856#endif
20857#ifdef HAVE_ARPA_INET_H
20858#include <arpa/inet.h>
20859#endif
20860int
20861main ()
20862{
20863
20864/* The GNU C library defines this for functions which it implements
20865    to always fail with ENOSYS.  Some functions are actually named
20866    something starting with __ and the normal name is an alias.  */
20867#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
20868choke me
20869#else
20870inet_aton(0,0);
20871#endif
20872
20873  ;
20874  return 0;
20875}
20876_ACEOF
20877if ac_fn_c_try_link "$LINENO"; then :
20878  eval "ac_cv_func_inet_aton=yes"
20879else
20880  eval "ac_cv_func_inet_aton=no"
20881fi
20882rm -f core conftest.err conftest.$ac_objext \
20883    conftest$ac_exeext conftest.$ac_ext
20884fi
20885
20886if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
20887
20888cat >>confdefs.h <<_ACEOF
20889#define HAVE_INET_ATON 1
20890_ACEOF
20891
20892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20893$as_echo "yes" >&6; }
20894else
20895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20896$as_echo "no" >&6; }
20897  case " $LIBOBJS " in
20898  *" inet_aton.$ac_objext "* ) ;;
20899  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20900 ;;
20901esac
20902
20903fi
20904
20905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5
20906$as_echo_n "checking for inet_ntop... " >&6; }
20907if test "${ac_cv_func_inet_ntop+set}" = set; then :
20908  $as_echo_n "(cached) " >&6
20909else
20910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20911/* end confdefs.h.  */
20912#ifdef HAVE_SYS_TYPES_H
20913#include <sys/types.h>
20914#endif
20915#ifdef HAVE_SYS_SOCKET_H
20916#include <sys/socket.h>
20917#endif
20918#ifdef HAVE_NETINET_IN_H
20919#include <netinet/in.h>
20920#endif
20921#ifdef HAVE_ARPA_INET_H
20922#include <arpa/inet.h>
20923#endif
20924int
20925main ()
20926{
20927
20928/* The GNU C library defines this for functions which it implements
20929    to always fail with ENOSYS.  Some functions are actually named
20930    something starting with __ and the normal name is an alias.  */
20931#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
20932choke me
20933#else
20934inet_ntop(0, 0, 0, 0);
20935#endif
20936
20937  ;
20938  return 0;
20939}
20940_ACEOF
20941if ac_fn_c_try_link "$LINENO"; then :
20942  eval "ac_cv_func_inet_ntop=yes"
20943else
20944  eval "ac_cv_func_inet_ntop=no"
20945fi
20946rm -f core conftest.err conftest.$ac_objext \
20947    conftest$ac_exeext conftest.$ac_ext
20948fi
20949
20950if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
20951
20952cat >>confdefs.h <<_ACEOF
20953#define HAVE_INET_NTOP 1
20954_ACEOF
20955
20956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20957$as_echo "yes" >&6; }
20958else
20959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20960$as_echo "no" >&6; }
20961  case " $LIBOBJS " in
20962  *" inet_ntop.$ac_objext "* ) ;;
20963  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20964 ;;
20965esac
20966
20967fi
20968
20969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
20970$as_echo_n "checking for inet_pton... " >&6; }
20971if test "${ac_cv_func_inet_pton+set}" = set; then :
20972  $as_echo_n "(cached) " >&6
20973else
20974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20975/* end confdefs.h.  */
20976#ifdef HAVE_SYS_TYPES_H
20977#include <sys/types.h>
20978#endif
20979#ifdef HAVE_SYS_SOCKET_H
20980#include <sys/socket.h>
20981#endif
20982#ifdef HAVE_NETINET_IN_H
20983#include <netinet/in.h>
20984#endif
20985#ifdef HAVE_ARPA_INET_H
20986#include <arpa/inet.h>
20987#endif
20988int
20989main ()
20990{
20991
20992/* The GNU C library defines this for functions which it implements
20993    to always fail with ENOSYS.  Some functions are actually named
20994    something starting with __ and the normal name is an alias.  */
20995#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
20996choke me
20997#else
20998inet_pton(0,0,0);
20999#endif
21000
21001  ;
21002  return 0;
21003}
21004_ACEOF
21005if ac_fn_c_try_link "$LINENO"; then :
21006  eval "ac_cv_func_inet_pton=yes"
21007else
21008  eval "ac_cv_func_inet_pton=no"
21009fi
21010rm -f core conftest.err conftest.$ac_objext \
21011    conftest$ac_exeext conftest.$ac_ext
21012fi
21013
21014if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
21015
21016cat >>confdefs.h <<_ACEOF
21017#define HAVE_INET_PTON 1
21018_ACEOF
21019
21020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21021$as_echo "yes" >&6; }
21022else
21023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21024$as_echo "no" >&6; }
21025  case " $LIBOBJS " in
21026  *" inet_pton.$ac_objext "* ) ;;
21027  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
21028 ;;
21029esac
21030
21031fi
21032
21033
21034
21035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5
21036$as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
21037if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then :
21038  $as_echo_n "(cached) " >&6
21039else
21040
21041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21042/* end confdefs.h.  */
21043#include <sys/types.h>
21044#include <sys/socket.h>
21045int
21046main ()
21047{
21048struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len
21049  ;
21050  return 0;
21051}
21052_ACEOF
21053if ac_fn_c_try_compile "$LINENO"; then :
21054  ac_cv_type_struct_sockaddr_sa_len=yes
21055else
21056  ac_cv_type_struct_sockaddr_sa_len=no
21057fi
21058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21059
21060fi
21061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
21062$as_echo "$ac_cv_type_struct_sockaddr_sa_len" >&6; }
21063if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
21064
21065
21066$as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
21067
21068
21069fi
21070
21071
21072
21073if test "$ac_cv_func_getaddrinfo" = "yes"; then
21074
21075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo handles numeric services" >&5
21076$as_echo_n "checking if getaddrinfo handles numeric services... " >&6; }
21077if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then :
21078  $as_echo_n "(cached) " >&6
21079else
21080  if test "$cross_compiling" = yes; then :
21081  ac_cv_func_getaddrinfo_numserv=yes
21082else
21083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21084/* end confdefs.h.  */
21085#include <stdio.h>
21086#include <sys/types.h>
21087#include <sys/socket.h>
21088#include <netdb.h>
21089
21090int
21091main(int argc, char **argv)
21092{
21093	struct addrinfo hints, *ai;
21094	memset(&hints, 0, sizeof(hints));
21095	hints.ai_flags = AI_PASSIVE;
21096	hints.ai_socktype = SOCK_STREAM;
21097	hints.ai_family = PF_UNSPEC;
21098	if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
21099		return 1;
21100	if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
21101		return 1;
21102	return 0;
21103}
21104
21105_ACEOF
21106if ac_fn_c_try_run "$LINENO"; then :
21107  ac_cv_func_getaddrinfo_numserv=yes
21108else
21109  ac_cv_func_getaddrinfo_numserv=no
21110fi
21111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21112  conftest.$ac_objext conftest.beam conftest.$ac_ext
21113fi
21114
21115fi
21116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo_numserv" >&5
21117$as_echo "$ac_cv_func_getaddrinfo_numserv" >&6; }
21118  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
21119	case " $LIBOBJS " in
21120  *" getaddrinfo.$ac_objext "* ) ;;
21121  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21122 ;;
21123esac
21124
21125	case " $LIBOBJS " in
21126  *" freeaddrinfo.$ac_objext "* ) ;;
21127  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
21128 ;;
21129esac
21130
21131  fi
21132fi
21133
21134
21135if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
21136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setenv needs a prototype" >&5
21137$as_echo_n "checking if setenv needs a prototype... " >&6; }
21138if test "${ac_cv_func_setenv_noproto+set}" = set; then :
21139  $as_echo_n "(cached) " >&6
21140else
21141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21142/* end confdefs.h.  */
21143#include <stdlib.h>
21144struct foo { int foo; } xx;
21145extern int setenv (struct foo*);
21146int
21147main ()
21148{
21149setenv(&xx)
21150  ;
21151  return 0;
21152}
21153_ACEOF
21154if ac_fn_c_try_compile "$LINENO"; then :
21155  eval "ac_cv_func_setenv_noproto=yes"
21156else
21157  eval "ac_cv_func_setenv_noproto=no"
21158fi
21159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160fi
21161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setenv_noproto" >&5
21162$as_echo "$ac_cv_func_setenv_noproto" >&6; }
21163if test "$ac_cv_func_setenv_noproto" = yes; then
21164
21165$as_echo "#define NEED_SETENV_PROTO 1" >>confdefs.h
21166
21167fi
21168fi
21169
21170
21171if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
21172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unsetenv needs a prototype" >&5
21173$as_echo_n "checking if unsetenv needs a prototype... " >&6; }
21174if test "${ac_cv_func_unsetenv_noproto+set}" = set; then :
21175  $as_echo_n "(cached) " >&6
21176else
21177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21178/* end confdefs.h.  */
21179#include <stdlib.h>
21180struct foo { int foo; } xx;
21181extern int unsetenv (struct foo*);
21182int
21183main ()
21184{
21185unsetenv(&xx)
21186  ;
21187  return 0;
21188}
21189_ACEOF
21190if ac_fn_c_try_compile "$LINENO"; then :
21191  eval "ac_cv_func_unsetenv_noproto=yes"
21192else
21193  eval "ac_cv_func_unsetenv_noproto=no"
21194fi
21195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196fi
21197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unsetenv_noproto" >&5
21198$as_echo "$ac_cv_func_unsetenv_noproto" >&6; }
21199if test "$ac_cv_func_unsetenv_noproto" = yes; then
21200
21201$as_echo "#define NEED_UNSETENV_PROTO 1" >>confdefs.h
21202
21203fi
21204fi
21205
21206
21207if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
21208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname needs a prototype" >&5
21209$as_echo_n "checking if gethostname needs a prototype... " >&6; }
21210if test "${ac_cv_func_gethostname_noproto+set}" = set; then :
21211  $as_echo_n "(cached) " >&6
21212else
21213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21214/* end confdefs.h.  */
21215#include <unistd.h>
21216struct foo { int foo; } xx;
21217extern int gethostname (struct foo*);
21218int
21219main ()
21220{
21221gethostname(&xx)
21222  ;
21223  return 0;
21224}
21225_ACEOF
21226if ac_fn_c_try_compile "$LINENO"; then :
21227  eval "ac_cv_func_gethostname_noproto=yes"
21228else
21229  eval "ac_cv_func_gethostname_noproto=no"
21230fi
21231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21232fi
21233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostname_noproto" >&5
21234$as_echo "$ac_cv_func_gethostname_noproto" >&6; }
21235if test "$ac_cv_func_gethostname_noproto" = yes; then
21236
21237$as_echo "#define NEED_GETHOSTNAME_PROTO 1" >>confdefs.h
21238
21239fi
21240fi
21241
21242
21243if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
21244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkstemp needs a prototype" >&5
21245$as_echo_n "checking if mkstemp needs a prototype... " >&6; }
21246if test "${ac_cv_func_mkstemp_noproto+set}" = set; then :
21247  $as_echo_n "(cached) " >&6
21248else
21249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21250/* end confdefs.h.  */
21251#include <unistd.h>
21252struct foo { int foo; } xx;
21253extern int mkstemp (struct foo*);
21254int
21255main ()
21256{
21257mkstemp(&xx)
21258  ;
21259  return 0;
21260}
21261_ACEOF
21262if ac_fn_c_try_compile "$LINENO"; then :
21263  eval "ac_cv_func_mkstemp_noproto=yes"
21264else
21265  eval "ac_cv_func_mkstemp_noproto=no"
21266fi
21267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268fi
21269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mkstemp_noproto" >&5
21270$as_echo "$ac_cv_func_mkstemp_noproto" >&6; }
21271if test "$ac_cv_func_mkstemp_noproto" = yes; then
21272
21273$as_echo "#define NEED_MKSTEMP_PROTO 1" >>confdefs.h
21274
21275fi
21276fi
21277
21278
21279if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
21280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getusershell needs a prototype" >&5
21281$as_echo_n "checking if getusershell needs a prototype... " >&6; }
21282if test "${ac_cv_func_getusershell_noproto+set}" = set; then :
21283  $as_echo_n "(cached) " >&6
21284else
21285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21286/* end confdefs.h.  */
21287#include <unistd.h>
21288struct foo { int foo; } xx;
21289extern int getusershell (struct foo*);
21290int
21291main ()
21292{
21293getusershell(&xx)
21294  ;
21295  return 0;
21296}
21297_ACEOF
21298if ac_fn_c_try_compile "$LINENO"; then :
21299  eval "ac_cv_func_getusershell_noproto=yes"
21300else
21301  eval "ac_cv_func_getusershell_noproto=no"
21302fi
21303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21304fi
21305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getusershell_noproto" >&5
21306$as_echo "$ac_cv_func_getusershell_noproto" >&6; }
21307if test "$ac_cv_func_getusershell_noproto" = yes; then
21308
21309$as_echo "#define NEED_GETUSERSHELL_PROTO 1" >>confdefs.h
21310
21311fi
21312fi
21313
21314
21315if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then
21316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon needs a prototype" >&5
21317$as_echo_n "checking if daemon needs a prototype... " >&6; }
21318if test "${ac_cv_func_daemon_noproto+set}" = set; then :
21319  $as_echo_n "(cached) " >&6
21320else
21321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21322/* end confdefs.h.  */
21323#include <unistd.h>
21324struct foo { int foo; } xx;
21325extern int daemon (struct foo*);
21326int
21327main ()
21328{
21329daemon(&xx)
21330  ;
21331  return 0;
21332}
21333_ACEOF
21334if ac_fn_c_try_compile "$LINENO"; then :
21335  eval "ac_cv_func_daemon_noproto=yes"
21336else
21337  eval "ac_cv_func_daemon_noproto=no"
21338fi
21339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340fi
21341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_daemon_noproto" >&5
21342$as_echo "$ac_cv_func_daemon_noproto" >&6; }
21343if test "$ac_cv_func_daemon_noproto" = yes; then
21344
21345$as_echo "#define NEED_DAEMON_PROTO 1" >>confdefs.h
21346
21347fi
21348fi
21349
21350
21351if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then
21352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if iruserok needs a prototype" >&5
21353$as_echo_n "checking if iruserok needs a prototype... " >&6; }
21354if test "${ac_cv_func_iruserok_noproto+set}" = set; then :
21355  $as_echo_n "(cached) " >&6
21356else
21357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21358/* end confdefs.h.  */
21359
21360#ifdef HAVE_SYS_TYPES_H
21361#include <sys/types.h>
21362#endif
21363#ifdef HAVE_SYS_SOCKET_H
21364#include <sys/socket.h>
21365#endif
21366#ifdef HAVE_NETINET_IN_H
21367#include <netinet/in.h>
21368#endif
21369#ifdef HAVE_ARPA_INET_H
21370#include <arpa/inet.h>
21371#endif
21372#ifdef HAVE_NETDB_H
21373#include <netdb.h>
21374#endif
21375#ifdef HAVE_UNISTD_H
21376#include <unistd.h>
21377#endif
21378struct foo { int foo; } xx;
21379extern int iruserok (struct foo*);
21380int
21381main ()
21382{
21383iruserok(&xx)
21384  ;
21385  return 0;
21386}
21387_ACEOF
21388if ac_fn_c_try_compile "$LINENO"; then :
21389  eval "ac_cv_func_iruserok_noproto=yes"
21390else
21391  eval "ac_cv_func_iruserok_noproto=no"
21392fi
21393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394fi
21395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_iruserok_noproto" >&5
21396$as_echo "$ac_cv_func_iruserok_noproto" >&6; }
21397if test "$ac_cv_func_iruserok_noproto" = yes; then
21398
21399$as_echo "#define NEED_IRUSEROK_PROTO 1" >>confdefs.h
21400
21401fi
21402fi
21403
21404
21405
21406if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
21407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton needs a prototype" >&5
21408$as_echo_n "checking if inet_aton needs a prototype... " >&6; }
21409if test "${ac_cv_func_inet_aton_noproto+set}" = set; then :
21410  $as_echo_n "(cached) " >&6
21411else
21412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21413/* end confdefs.h.  */
21414
21415#ifdef HAVE_SYS_TYPES_H
21416#include <sys/types.h>
21417#endif
21418#ifdef HAVE_SYS_SOCKET_H
21419#include <sys/socket.h>
21420#endif
21421#ifdef HAVE_NETINET_IN_H
21422#include <netinet/in.h>
21423#endif
21424#ifdef HAVE_ARPA_INET_H
21425#include <arpa/inet.h>
21426#endif
21427struct foo { int foo; } xx;
21428extern int inet_aton (struct foo*);
21429int
21430main ()
21431{
21432inet_aton(&xx)
21433  ;
21434  return 0;
21435}
21436_ACEOF
21437if ac_fn_c_try_compile "$LINENO"; then :
21438  eval "ac_cv_func_inet_aton_noproto=yes"
21439else
21440  eval "ac_cv_func_inet_aton_noproto=no"
21441fi
21442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21443fi
21444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton_noproto" >&5
21445$as_echo "$ac_cv_func_inet_aton_noproto" >&6; }
21446if test "$ac_cv_func_inet_aton_noproto" = yes; then
21447
21448$as_echo "#define NEED_INET_ATON_PROTO 1" >>confdefs.h
21449
21450fi
21451fi
21452
21453
21454
21455
21456
21457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt" >&5
21458$as_echo_n "checking for crypt... " >&6; }
21459if test "${ac_cv_funclib_crypt+set}" = set; then :
21460  $as_echo_n "(cached) " >&6
21461else
21462
21463if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
21464	ac_save_LIBS="$LIBS"
21465	for ac_lib in "" crypt; do
21466		case "$ac_lib" in
21467		"") ;;
21468		yes) ac_lib="" ;;
21469		no) continue ;;
21470		-l*) ;;
21471		*) ac_lib="-l$ac_lib" ;;
21472		esac
21473		LIBS=" $ac_lib  $ac_save_LIBS"
21474		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21475/* end confdefs.h.  */
21476
21477int
21478main ()
21479{
21480crypt()
21481  ;
21482  return 0;
21483}
21484_ACEOF
21485if ac_fn_c_try_link "$LINENO"; then :
21486  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
21487fi
21488rm -f core conftest.err conftest.$ac_objext \
21489    conftest$ac_exeext conftest.$ac_ext
21490	done
21491	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
21492	LIBS="$ac_save_LIBS"
21493fi
21494
21495fi
21496
21497
21498eval "ac_res=\$ac_cv_funclib_crypt"
21499
21500if false; then
21501	for ac_func in crypt
21502do :
21503  ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
21504if test "x$ac_cv_func_crypt" = x""yes; then :
21505  cat >>confdefs.h <<_ACEOF
21506#define HAVE_CRYPT 1
21507_ACEOF
21508
21509fi
21510done
21511
21512fi
21513# crypt
21514eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21515eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21516eval "LIB_crypt=$ac_res"
21517
21518case "$ac_res" in
21519	yes)
21520	eval "ac_cv_func_crypt=yes"
21521	eval "LIB_crypt="
21522	cat >>confdefs.h <<_ACEOF
21523#define $ac_tr_func 1
21524_ACEOF
21525
21526	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21527$as_echo "yes" >&6; }
21528	;;
21529	no)
21530	eval "ac_cv_func_crypt=no"
21531	eval "LIB_crypt="
21532	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21533$as_echo "no" >&6; }
21534	;;
21535	*)
21536	eval "ac_cv_func_crypt=yes"
21537	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21538	cat >>confdefs.h <<_ACEOF
21539#define $ac_tr_func 1
21540_ACEOF
21541
21542	cat >>confdefs.h <<_ACEOF
21543#define $ac_tr_lib 1
21544_ACEOF
21545
21546	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
21547$as_echo "yes, in $ac_res" >&6; }
21548	;;
21549esac
21550
21551
21552
21553
21554
21555
21556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compatible with system prototype" >&5
21557$as_echo_n "checking if strerror_r is compatible with system prototype... " >&6; }
21558if test "${ac_cv_func_strerror_r_proto_compat+set}" = set; then :
21559  $as_echo_n "(cached) " >&6
21560else
21561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21562/* end confdefs.h.  */
21563
21564#include <stdio.h>
21565#include <string.h>
21566
21567int
21568main ()
21569{
21570int strerror_r(int, char *, size_t)
21571  ;
21572  return 0;
21573}
21574_ACEOF
21575if ac_fn_c_try_compile "$LINENO"; then :
21576  eval "ac_cv_func_strerror_r_proto_compat=yes"
21577else
21578  eval "ac_cv_func_strerror_r_proto_compat=no"
21579fi
21580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581fi
21582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_proto_compat" >&5
21583$as_echo "$ac_cv_func_strerror_r_proto_compat" >&6; }
21584
21585if test "$ac_cv_func_strerror_r_proto_compat" = yes; then
21586
21587$as_echo "#define STRERROR_R_PROTO_COMPATIBLE 1" >>confdefs.h
21588
21589fi
21590
21591
21592
21593ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21594if test "x$ac_cv_func_strerror_r" = x""yes; then :
21595
21596cat >>confdefs.h <<_ACEOF
21597#define HAVE_STRERROR_R 1
21598_ACEOF
21599
21600fi
21601
21602
21603
21604
21605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compatible with system prototype" >&5
21606$as_echo_n "checking if gethostbyname is compatible with system prototype... " >&6; }
21607if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then :
21608  $as_echo_n "(cached) " >&6
21609else
21610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21611/* end confdefs.h.  */
21612
21613#ifdef HAVE_SYS_TYPES_H
21614#include <sys/types.h>
21615#endif
21616#ifdef HAVE_SYS_SOCKET_H
21617#include <sys/socket.h>
21618#endif
21619#ifdef HAVE_NETINET_IN_H
21620#include <netinet/in.h>
21621#endif
21622#ifdef HAVE_ARPA_INET_H
21623#include <arpa/inet.h>
21624#endif
21625#ifdef HAVE_NETDB_H
21626#include <netdb.h>
21627#endif
21628
21629int
21630main ()
21631{
21632struct hostent *gethostbyname(const char *)
21633  ;
21634  return 0;
21635}
21636_ACEOF
21637if ac_fn_c_try_compile "$LINENO"; then :
21638  eval "ac_cv_func_gethostbyname_proto_compat=yes"
21639else
21640  eval "ac_cv_func_gethostbyname_proto_compat=no"
21641fi
21642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643fi
21644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname_proto_compat" >&5
21645$as_echo "$ac_cv_func_gethostbyname_proto_compat" >&6; }
21646
21647if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
21648
21649$as_echo "#define GETHOSTBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h
21650
21651fi
21652
21653
21654
21655
21656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compatible with system prototype" >&5
21657$as_echo_n "checking if gethostbyaddr is compatible with system prototype... " >&6; }
21658if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then :
21659  $as_echo_n "(cached) " >&6
21660else
21661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21662/* end confdefs.h.  */
21663
21664#ifdef HAVE_SYS_TYPES_H
21665#include <sys/types.h>
21666#endif
21667#ifdef HAVE_SYS_SOCKET_H
21668#include <sys/socket.h>
21669#endif
21670#ifdef HAVE_NETINET_IN_H
21671#include <netinet/in.h>
21672#endif
21673#ifdef HAVE_ARPA_INET_H
21674#include <arpa/inet.h>
21675#endif
21676#ifdef HAVE_NETDB_H
21677#include <netdb.h>
21678#endif
21679
21680int
21681main ()
21682{
21683struct hostent *gethostbyaddr(const void *, size_t, int)
21684  ;
21685  return 0;
21686}
21687_ACEOF
21688if ac_fn_c_try_compile "$LINENO"; then :
21689  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
21690else
21691  eval "ac_cv_func_gethostbyaddr_proto_compat=no"
21692fi
21693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21694fi
21695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
21696$as_echo "$ac_cv_func_gethostbyaddr_proto_compat" >&6; }
21697
21698if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
21699
21700$as_echo "#define GETHOSTBYADDR_PROTO_COMPATIBLE 1" >>confdefs.h
21701
21702fi
21703
21704
21705
21706
21707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyname is compatible with system prototype" >&5
21708$as_echo_n "checking if getservbyname is compatible with system prototype... " >&6; }
21709if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then :
21710  $as_echo_n "(cached) " >&6
21711else
21712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21713/* end confdefs.h.  */
21714
21715#ifdef HAVE_SYS_TYPES_H
21716#include <sys/types.h>
21717#endif
21718#ifdef HAVE_SYS_SOCKET_H
21719#include <sys/socket.h>
21720#endif
21721#ifdef HAVE_NETINET_IN_H
21722#include <netinet/in.h>
21723#endif
21724#ifdef HAVE_ARPA_INET_H
21725#include <arpa/inet.h>
21726#endif
21727#ifdef HAVE_NETDB_H
21728#include <netdb.h>
21729#endif
21730
21731int
21732main ()
21733{
21734struct servent *getservbyname(const char *, const char *)
21735  ;
21736  return 0;
21737}
21738_ACEOF
21739if ac_fn_c_try_compile "$LINENO"; then :
21740  eval "ac_cv_func_getservbyname_proto_compat=yes"
21741else
21742  eval "ac_cv_func_getservbyname_proto_compat=no"
21743fi
21744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21745fi
21746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname_proto_compat" >&5
21747$as_echo "$ac_cv_func_getservbyname_proto_compat" >&6; }
21748
21749if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
21750
21751$as_echo "#define GETSERVBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h
21752
21753fi
21754
21755
21756
21757
21758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is compatible with system prototype" >&5
21759$as_echo_n "checking if getsockname is compatible with system prototype... " >&6; }
21760if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then :
21761  $as_echo_n "(cached) " >&6
21762else
21763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21764/* end confdefs.h.  */
21765
21766#ifdef HAVE_SYS_TYPES_H
21767#include <sys/types.h>
21768#endif
21769#ifdef HAVE_SYS_SOCKET_H
21770#include <sys/socket.h>
21771#endif
21772
21773int
21774main ()
21775{
21776int getsockname(int, struct sockaddr*, socklen_t*)
21777  ;
21778  return 0;
21779}
21780_ACEOF
21781if ac_fn_c_try_compile "$LINENO"; then :
21782  eval "ac_cv_func_getsockname_proto_compat=yes"
21783else
21784  eval "ac_cv_func_getsockname_proto_compat=no"
21785fi
21786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787fi
21788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_proto_compat" >&5
21789$as_echo "$ac_cv_func_getsockname_proto_compat" >&6; }
21790
21791if test "$ac_cv_func_getsockname_proto_compat" = yes; then
21792
21793$as_echo "#define GETSOCKNAME_PROTO_COMPATIBLE 1" >>confdefs.h
21794
21795fi
21796
21797
21798
21799
21800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if openlog is compatible with system prototype" >&5
21801$as_echo_n "checking if openlog is compatible with system prototype... " >&6; }
21802if test "${ac_cv_func_openlog_proto_compat+set}" = set; then :
21803  $as_echo_n "(cached) " >&6
21804else
21805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21806/* end confdefs.h.  */
21807
21808#ifdef HAVE_SYSLOG_H
21809#include <syslog.h>
21810#endif
21811
21812int
21813main ()
21814{
21815void openlog(const char *, int, int)
21816  ;
21817  return 0;
21818}
21819_ACEOF
21820if ac_fn_c_try_compile "$LINENO"; then :
21821  eval "ac_cv_func_openlog_proto_compat=yes"
21822else
21823  eval "ac_cv_func_openlog_proto_compat=no"
21824fi
21825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21826fi
21827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_openlog_proto_compat" >&5
21828$as_echo "$ac_cv_func_openlog_proto_compat" >&6; }
21829
21830if test "$ac_cv_func_openlog_proto_compat" = yes; then
21831
21832$as_echo "#define OPENLOG_PROTO_COMPATIBLE 1" >>confdefs.h
21833
21834fi
21835
21836
21837
21838
21839if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
21840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if crypt needs a prototype" >&5
21841$as_echo_n "checking if crypt needs a prototype... " >&6; }
21842if test "${ac_cv_func_crypt_noproto+set}" = set; then :
21843  $as_echo_n "(cached) " >&6
21844else
21845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846/* end confdefs.h.  */
21847
21848#ifdef HAVE_CRYPT_H
21849#include <crypt.h>
21850#endif
21851#ifdef HAVE_UNISTD_H
21852#include <unistd.h>
21853#endif
21854
21855struct foo { int foo; } xx;
21856extern int crypt (struct foo*);
21857int
21858main ()
21859{
21860crypt(&xx)
21861  ;
21862  return 0;
21863}
21864_ACEOF
21865if ac_fn_c_try_compile "$LINENO"; then :
21866  eval "ac_cv_func_crypt_noproto=yes"
21867else
21868  eval "ac_cv_func_crypt_noproto=no"
21869fi
21870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21871fi
21872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_crypt_noproto" >&5
21873$as_echo "$ac_cv_func_crypt_noproto" >&6; }
21874if test "$ac_cv_func_crypt_noproto" = yes; then
21875
21876$as_echo "#define NEED_CRYPT_PROTO 1" >>confdefs.h
21877
21878fi
21879fi
21880
21881
21882
21883
21884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5
21885$as_echo_n "checking for h_errno... " >&6; }
21886if test "${ac_cv_var_h_errno+set}" = set; then :
21887  $as_echo_n "(cached) " >&6
21888else
21889
21890
21891	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21892/* end confdefs.h.  */
21893#ifdef HAVE_SYS_TYPES_H
21894#include <sys/types.h>
21895#endif
21896#ifdef HAVE_NETDB_H
21897#include <netdb.h>
21898#endif
21899#ifdef HAVE_WS2TCPIP_H
21900#include <ws2tcpip.h>
21901#endif
21902
21903	void * foo(void) { return &h_errno; }
21904int
21905main ()
21906{
21907foo()
21908  ;
21909  return 0;
21910}
21911_ACEOF
21912if ac_fn_c_try_link "$LINENO"; then :
21913  ac_cv_var_h_errno=yes
21914else
21915  ac_cv_var_h_errno=no
21916fi
21917rm -f core conftest.err conftest.$ac_objext \
21918    conftest$ac_exeext conftest.$ac_ext
21919if test "$ac_cv_var_h_errno" != yes ; then
21920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921/* end confdefs.h.  */
21922#ifdef HAVE_SYS_TYPES_H
21923#include <sys/types.h>
21924#endif
21925#ifdef HAVE_NETDB_H
21926#include <netdb.h>
21927#endif
21928#ifdef HAVE_WS2TCPIP_H
21929#include <ws2tcpip.h>
21930#endif
21931
21932extern int h_errno;
21933int foo(void) { return h_errno; }
21934int
21935main ()
21936{
21937foo()
21938  ;
21939  return 0;
21940}
21941_ACEOF
21942if ac_fn_c_try_link "$LINENO"; then :
21943  ac_cv_var_h_errno=yes
21944else
21945  ac_cv_var_h_errno=no
21946fi
21947rm -f core conftest.err conftest.$ac_objext \
21948    conftest$ac_exeext conftest.$ac_ext
21949fi
21950
21951fi
21952
21953ac_foo=`eval echo \\$ac_cv_var_h_errno`
21954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21955$as_echo "$ac_foo" >&6; }
21956if test "$ac_foo" = yes; then
21957
21958cat >>confdefs.h <<_ACEOF
21959#define HAVE_H_ERRNO 1
21960_ACEOF
21961
21962	ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#ifdef HAVE_SYS_TYPES_H
21963#include <sys/types.h>
21964#endif
21965#ifdef HAVE_NETDB_H
21966#include <netdb.h>
21967#endif
21968#ifdef HAVE_WS2TCPIP_H
21969#include <ws2tcpip.h>
21970#endif
21971
21972"
21973if test "x$ac_cv_have_decl_h_errno" = x""yes; then :
21974  ac_have_decl=1
21975else
21976  ac_have_decl=0
21977fi
21978
21979cat >>confdefs.h <<_ACEOF
21980#define HAVE_DECL_H_ERRNO $ac_have_decl
21981_ACEOF
21982
21983fi
21984
21985
21986
21987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errlist" >&5
21988$as_echo_n "checking for h_errlist... " >&6; }
21989if test "${ac_cv_var_h_errlist+set}" = set; then :
21990  $as_echo_n "(cached) " >&6
21991else
21992
21993
21994	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21995/* end confdefs.h.  */
21996#ifdef HAVE_NETDB_H
21997#include <netdb.h>
21998#endif
21999#ifdef HAVE_WS2TCPIP_H
22000#include <ws2tcpip.h>
22001#endif
22002	void * foo(void) { return &h_errlist; }
22003int
22004main ()
22005{
22006foo()
22007  ;
22008  return 0;
22009}
22010_ACEOF
22011if ac_fn_c_try_link "$LINENO"; then :
22012  ac_cv_var_h_errlist=yes
22013else
22014  ac_cv_var_h_errlist=no
22015fi
22016rm -f core conftest.err conftest.$ac_objext \
22017    conftest$ac_exeext conftest.$ac_ext
22018if test "$ac_cv_var_h_errlist" != yes ; then
22019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020/* end confdefs.h.  */
22021#ifdef HAVE_NETDB_H
22022#include <netdb.h>
22023#endif
22024#ifdef HAVE_WS2TCPIP_H
22025#include <ws2tcpip.h>
22026#endif
22027extern int h_errlist;
22028int foo(void) { return h_errlist; }
22029int
22030main ()
22031{
22032foo()
22033  ;
22034  return 0;
22035}
22036_ACEOF
22037if ac_fn_c_try_link "$LINENO"; then :
22038  ac_cv_var_h_errlist=yes
22039else
22040  ac_cv_var_h_errlist=no
22041fi
22042rm -f core conftest.err conftest.$ac_objext \
22043    conftest$ac_exeext conftest.$ac_ext
22044fi
22045
22046fi
22047
22048ac_foo=`eval echo \\$ac_cv_var_h_errlist`
22049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22050$as_echo "$ac_foo" >&6; }
22051if test "$ac_foo" = yes; then
22052
22053cat >>confdefs.h <<_ACEOF
22054#define HAVE_H_ERRLIST 1
22055_ACEOF
22056
22057	ac_fn_c_check_decl "$LINENO" "h_errlist" "ac_cv_have_decl_h_errlist" "#ifdef HAVE_NETDB_H
22058#include <netdb.h>
22059#endif
22060#ifdef HAVE_WS2TCPIP_H
22061#include <ws2tcpip.h>
22062#endif
22063"
22064if test "x$ac_cv_have_decl_h_errlist" = x""yes; then :
22065  ac_have_decl=1
22066else
22067  ac_have_decl=0
22068fi
22069
22070cat >>confdefs.h <<_ACEOF
22071#define HAVE_DECL_H_ERRLIST $ac_have_decl
22072_ACEOF
22073
22074fi
22075
22076
22077
22078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_nerr" >&5
22079$as_echo_n "checking for h_nerr... " >&6; }
22080if test "${ac_cv_var_h_nerr+set}" = set; then :
22081  $as_echo_n "(cached) " >&6
22082else
22083
22084
22085	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22086/* end confdefs.h.  */
22087#ifdef HAVE_NETDB_H
22088#include <netdb.h>
22089#endif
22090#ifdef HAVE_WS2TCPIP_H
22091#include <ws2tcpip.h>
22092#endif
22093	void * foo(void) { return &h_nerr; }
22094int
22095main ()
22096{
22097foo()
22098  ;
22099  return 0;
22100}
22101_ACEOF
22102if ac_fn_c_try_link "$LINENO"; then :
22103  ac_cv_var_h_nerr=yes
22104else
22105  ac_cv_var_h_nerr=no
22106fi
22107rm -f core conftest.err conftest.$ac_objext \
22108    conftest$ac_exeext conftest.$ac_ext
22109if test "$ac_cv_var_h_nerr" != yes ; then
22110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111/* end confdefs.h.  */
22112#ifdef HAVE_NETDB_H
22113#include <netdb.h>
22114#endif
22115#ifdef HAVE_WS2TCPIP_H
22116#include <ws2tcpip.h>
22117#endif
22118extern int h_nerr;
22119int foo(void) { return h_nerr; }
22120int
22121main ()
22122{
22123foo()
22124  ;
22125  return 0;
22126}
22127_ACEOF
22128if ac_fn_c_try_link "$LINENO"; then :
22129  ac_cv_var_h_nerr=yes
22130else
22131  ac_cv_var_h_nerr=no
22132fi
22133rm -f core conftest.err conftest.$ac_objext \
22134    conftest$ac_exeext conftest.$ac_ext
22135fi
22136
22137fi
22138
22139ac_foo=`eval echo \\$ac_cv_var_h_nerr`
22140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22141$as_echo "$ac_foo" >&6; }
22142if test "$ac_foo" = yes; then
22143
22144cat >>confdefs.h <<_ACEOF
22145#define HAVE_H_NERR 1
22146_ACEOF
22147
22148	ac_fn_c_check_decl "$LINENO" "h_nerr" "ac_cv_have_decl_h_nerr" "#ifdef HAVE_NETDB_H
22149#include <netdb.h>
22150#endif
22151#ifdef HAVE_WS2TCPIP_H
22152#include <ws2tcpip.h>
22153#endif
22154"
22155if test "x$ac_cv_have_decl_h_nerr" = x""yes; then :
22156  ac_have_decl=1
22157else
22158  ac_have_decl=0
22159fi
22160
22161cat >>confdefs.h <<_ACEOF
22162#define HAVE_DECL_H_NERR $ac_have_decl
22163_ACEOF
22164
22165fi
22166
22167
22168
22169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
22170$as_echo_n "checking for __progname... " >&6; }
22171if test "${ac_cv_var___progname+set}" = set; then :
22172  $as_echo_n "(cached) " >&6
22173else
22174
22175
22176	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22177/* end confdefs.h.  */
22178#ifdef HAVE_ERR_H
22179#include <err.h>
22180#endif
22181	void * foo(void) { return &__progname; }
22182int
22183main ()
22184{
22185foo()
22186  ;
22187  return 0;
22188}
22189_ACEOF
22190if ac_fn_c_try_link "$LINENO"; then :
22191  ac_cv_var___progname=yes
22192else
22193  ac_cv_var___progname=no
22194fi
22195rm -f core conftest.err conftest.$ac_objext \
22196    conftest$ac_exeext conftest.$ac_ext
22197if test "$ac_cv_var___progname" != yes ; then
22198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199/* end confdefs.h.  */
22200#ifdef HAVE_ERR_H
22201#include <err.h>
22202#endif
22203extern int __progname;
22204int foo(void) { return __progname; }
22205int
22206main ()
22207{
22208foo()
22209  ;
22210  return 0;
22211}
22212_ACEOF
22213if ac_fn_c_try_link "$LINENO"; then :
22214  ac_cv_var___progname=yes
22215else
22216  ac_cv_var___progname=no
22217fi
22218rm -f core conftest.err conftest.$ac_objext \
22219    conftest$ac_exeext conftest.$ac_ext
22220fi
22221
22222fi
22223
22224ac_foo=`eval echo \\$ac_cv_var___progname`
22225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22226$as_echo "$ac_foo" >&6; }
22227if test "$ac_foo" = yes; then
22228
22229cat >>confdefs.h <<_ACEOF
22230#define HAVE___PROGNAME 1
22231_ACEOF
22232
22233	ac_fn_c_check_decl "$LINENO" "__progname" "ac_cv_have_decl___progname" "#ifdef HAVE_ERR_H
22234#include <err.h>
22235#endif
22236"
22237if test "x$ac_cv_have_decl___progname" = x""yes; then :
22238  ac_have_decl=1
22239else
22240  ac_have_decl=0
22241fi
22242
22243cat >>confdefs.h <<_ACEOF
22244#define HAVE_DECL___PROGNAME $ac_have_decl
22245_ACEOF
22246
22247fi
22248
22249
22250ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "
22251#include <stdlib.h>
22252#ifdef HAVE_UNISTD_H
22253#include <unistd.h>
22254#endif
22255"
22256if test "x$ac_cv_have_decl_optarg" = x""yes; then :
22257  ac_have_decl=1
22258else
22259  ac_have_decl=0
22260fi
22261
22262cat >>confdefs.h <<_ACEOF
22263#define HAVE_DECL_OPTARG $ac_have_decl
22264_ACEOF
22265ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
22266#include <stdlib.h>
22267#ifdef HAVE_UNISTD_H
22268#include <unistd.h>
22269#endif
22270"
22271if test "x$ac_cv_have_decl_optind" = x""yes; then :
22272  ac_have_decl=1
22273else
22274  ac_have_decl=0
22275fi
22276
22277cat >>confdefs.h <<_ACEOF
22278#define HAVE_DECL_OPTIND $ac_have_decl
22279_ACEOF
22280ac_fn_c_check_decl "$LINENO" "opterr" "ac_cv_have_decl_opterr" "
22281#include <stdlib.h>
22282#ifdef HAVE_UNISTD_H
22283#include <unistd.h>
22284#endif
22285"
22286if test "x$ac_cv_have_decl_opterr" = x""yes; then :
22287  ac_have_decl=1
22288else
22289  ac_have_decl=0
22290fi
22291
22292cat >>confdefs.h <<_ACEOF
22293#define HAVE_DECL_OPTERR $ac_have_decl
22294_ACEOF
22295ac_fn_c_check_decl "$LINENO" "optopt" "ac_cv_have_decl_optopt" "
22296#include <stdlib.h>
22297#ifdef HAVE_UNISTD_H
22298#include <unistd.h>
22299#endif
22300"
22301if test "x$ac_cv_have_decl_optopt" = x""yes; then :
22302  ac_have_decl=1
22303else
22304  ac_have_decl=0
22305fi
22306
22307cat >>confdefs.h <<_ACEOF
22308#define HAVE_DECL_OPTOPT $ac_have_decl
22309_ACEOF
22310ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "
22311#include <stdlib.h>
22312#ifdef HAVE_UNISTD_H
22313#include <unistd.h>
22314#endif
22315"
22316if test "x$ac_cv_have_decl_environ" = x""yes; then :
22317  ac_have_decl=1
22318else
22319  ac_have_decl=0
22320fi
22321
22322cat >>confdefs.h <<_ACEOF
22323#define HAVE_DECL_ENVIRON $ac_have_decl
22324_ACEOF
22325
22326
22327
22328
22329
22330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
22331$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
22332if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then :
22333  $as_echo_n "(cached) " >&6
22334else
22335
22336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22337/* end confdefs.h.  */
22338#include <time.h>
22339int
22340main ()
22341{
22342struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff
22343  ;
22344  return 0;
22345}
22346_ACEOF
22347if ac_fn_c_try_compile "$LINENO"; then :
22348  ac_cv_type_struct_tm_tm_gmtoff=yes
22349else
22350  ac_cv_type_struct_tm_tm_gmtoff=no
22351fi
22352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22353
22354fi
22355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
22356$as_echo "$ac_cv_type_struct_tm_tm_gmtoff" >&6; }
22357if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
22358
22359
22360$as_echo "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
22361
22362
22363fi
22364
22365
22366
22367
22368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
22369$as_echo_n "checking for tm_zone in struct tm... " >&6; }
22370if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then :
22371  $as_echo_n "(cached) " >&6
22372else
22373
22374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22375/* end confdefs.h.  */
22376#include <time.h>
22377int
22378main ()
22379{
22380struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone
22381  ;
22382  return 0;
22383}
22384_ACEOF
22385if ac_fn_c_try_compile "$LINENO"; then :
22386  ac_cv_type_struct_tm_tm_zone=yes
22387else
22388  ac_cv_type_struct_tm_tm_zone=no
22389fi
22390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22391
22392fi
22393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_zone" >&5
22394$as_echo "$ac_cv_type_struct_tm_tm_zone" >&6; }
22395if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
22396
22397
22398$as_echo "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
22399
22400
22401fi
22402
22403
22404
22405
22406
22407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
22408$as_echo_n "checking for timezone... " >&6; }
22409if test "${ac_cv_var_timezone+set}" = set; then :
22410  $as_echo_n "(cached) " >&6
22411else
22412
22413
22414	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22415/* end confdefs.h.  */
22416#include <time.h>
22417	void * foo(void) { return &timezone; }
22418int
22419main ()
22420{
22421foo()
22422  ;
22423  return 0;
22424}
22425_ACEOF
22426if ac_fn_c_try_link "$LINENO"; then :
22427  ac_cv_var_timezone=yes
22428else
22429  ac_cv_var_timezone=no
22430fi
22431rm -f core conftest.err conftest.$ac_objext \
22432    conftest$ac_exeext conftest.$ac_ext
22433if test "$ac_cv_var_timezone" != yes ; then
22434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22435/* end confdefs.h.  */
22436#include <time.h>
22437extern int timezone;
22438int foo(void) { return timezone; }
22439int
22440main ()
22441{
22442foo()
22443  ;
22444  return 0;
22445}
22446_ACEOF
22447if ac_fn_c_try_link "$LINENO"; then :
22448  ac_cv_var_timezone=yes
22449else
22450  ac_cv_var_timezone=no
22451fi
22452rm -f core conftest.err conftest.$ac_objext \
22453    conftest$ac_exeext conftest.$ac_ext
22454fi
22455
22456fi
22457
22458ac_foo=`eval echo \\$ac_cv_var_timezone`
22459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22460$as_echo "$ac_foo" >&6; }
22461if test "$ac_foo" = yes; then
22462
22463cat >>confdefs.h <<_ACEOF
22464#define HAVE_TIMEZONE 1
22465_ACEOF
22466
22467	ac_fn_c_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" "#include <time.h>
22468"
22469if test "x$ac_cv_have_decl_timezone" = x""yes; then :
22470  ac_have_decl=1
22471else
22472  ac_have_decl=0
22473fi
22474
22475cat >>confdefs.h <<_ACEOF
22476#define HAVE_DECL_TIMEZONE $ac_have_decl
22477_ACEOF
22478
22479fi
22480
22481
22482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone" >&5
22483$as_echo_n "checking for altzone... " >&6; }
22484if test "${ac_cv_var_altzone+set}" = set; then :
22485  $as_echo_n "(cached) " >&6
22486else
22487
22488
22489	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22490/* end confdefs.h.  */
22491#include <time.h>
22492	void * foo(void) { return &altzone; }
22493int
22494main ()
22495{
22496foo()
22497  ;
22498  return 0;
22499}
22500_ACEOF
22501if ac_fn_c_try_link "$LINENO"; then :
22502  ac_cv_var_altzone=yes
22503else
22504  ac_cv_var_altzone=no
22505fi
22506rm -f core conftest.err conftest.$ac_objext \
22507    conftest$ac_exeext conftest.$ac_ext
22508if test "$ac_cv_var_altzone" != yes ; then
22509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22510/* end confdefs.h.  */
22511#include <time.h>
22512extern int altzone;
22513int foo(void) { return altzone; }
22514int
22515main ()
22516{
22517foo()
22518  ;
22519  return 0;
22520}
22521_ACEOF
22522if ac_fn_c_try_link "$LINENO"; then :
22523  ac_cv_var_altzone=yes
22524else
22525  ac_cv_var_altzone=no
22526fi
22527rm -f core conftest.err conftest.$ac_objext \
22528    conftest$ac_exeext conftest.$ac_ext
22529fi
22530
22531fi
22532
22533ac_foo=`eval echo \\$ac_cv_var_altzone`
22534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22535$as_echo "$ac_foo" >&6; }
22536if test "$ac_foo" = yes; then
22537
22538cat >>confdefs.h <<_ACEOF
22539#define HAVE_ALTZONE 1
22540_ACEOF
22541
22542	ac_fn_c_check_decl "$LINENO" "altzone" "ac_cv_have_decl_altzone" "#include <time.h>
22543"
22544if test "x$ac_cv_have_decl_altzone" = x""yes; then :
22545  ac_have_decl=1
22546else
22547  ac_have_decl=0
22548fi
22549
22550cat >>confdefs.h <<_ACEOF
22551#define HAVE_DECL_ALTZONE $ac_have_decl
22552_ACEOF
22553
22554fi
22555
22556
22557
22558
22559cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
22560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
22561$as_echo_n "checking for sa_family_t... " >&6; }
22562if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22563  $as_echo_n "(cached) " >&6
22564else
22565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22566/* end confdefs.h.  */
22567
22568#include <sys/types.h>
22569#if STDC_HEADERS
22570#include <stdlib.h>
22571#include <stddef.h>
22572#endif
22573
22574#include <sys/types.h>
22575#ifdef HAVE_SYS_SOCKET_H
22576#include <sys/socket.h>
22577#endif
22578#ifdef HAVE_WS2TCPIP_H
22579#include <ws2tcpip.h>
22580#endif
22581int
22582main ()
22583{
22584sa_family_t foo;
22585  ;
22586  return 0;
22587}
22588_ACEOF
22589if ac_fn_c_try_compile "$LINENO"; then :
22590  eval "ac_cv_type_$cv=yes"
22591else
22592  eval "ac_cv_type_$cv=no"
22593fi
22594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22595fi
22596ac_foo=`eval echo \\$ac_cv_type_$cv`
22597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22598$as_echo "$ac_foo" >&6; }
22599if test "$ac_foo" = yes; then
22600  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22601if false; then
22602	ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "$ac_includes_default"
22603if test "x$ac_cv_type_sa_family_t" = x""yes; then :
22604
22605cat >>confdefs.h <<_ACEOF
22606#define HAVE_SA_FAMILY_T 1
22607_ACEOF
22608
22609
22610fi
22611
22612fi
22613
22614cat >>confdefs.h <<_ACEOF
22615#define $ac_tr_hdr 1
22616_ACEOF
22617
22618fi
22619
22620
22621
22622cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
22623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
22624$as_echo_n "checking for socklen_t... " >&6; }
22625if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22626  $as_echo_n "(cached) " >&6
22627else
22628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22629/* end confdefs.h.  */
22630
22631#include <sys/types.h>
22632#if STDC_HEADERS
22633#include <stdlib.h>
22634#include <stddef.h>
22635#endif
22636
22637#include <sys/types.h>
22638#ifdef HAVE_SYS_SOCKET_H
22639#include <sys/socket.h>
22640#endif
22641#ifdef HAVE_WS2TCPIP_H
22642#include <ws2tcpip.h>
22643#endif
22644int
22645main ()
22646{
22647socklen_t foo;
22648  ;
22649  return 0;
22650}
22651_ACEOF
22652if ac_fn_c_try_compile "$LINENO"; then :
22653  eval "ac_cv_type_$cv=yes"
22654else
22655  eval "ac_cv_type_$cv=no"
22656fi
22657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22658fi
22659ac_foo=`eval echo \\$ac_cv_type_$cv`
22660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22661$as_echo "$ac_foo" >&6; }
22662if test "$ac_foo" = yes; then
22663  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22664if false; then
22665	ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default"
22666if test "x$ac_cv_type_socklen_t" = x""yes; then :
22667
22668cat >>confdefs.h <<_ACEOF
22669#define HAVE_SOCKLEN_T 1
22670_ACEOF
22671
22672
22673fi
22674
22675fi
22676
22677cat >>confdefs.h <<_ACEOF
22678#define $ac_tr_hdr 1
22679_ACEOF
22680
22681fi
22682
22683
22684
22685cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
22686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr" >&5
22687$as_echo_n "checking for struct sockaddr... " >&6; }
22688if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22689  $as_echo_n "(cached) " >&6
22690else
22691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22692/* end confdefs.h.  */
22693
22694#include <sys/types.h>
22695#if STDC_HEADERS
22696#include <stdlib.h>
22697#include <stddef.h>
22698#endif
22699
22700#include <sys/types.h>
22701#ifdef HAVE_SYS_SOCKET_H
22702#include <sys/socket.h>
22703#endif
22704#ifdef HAVE_WS2TCPIP_H
22705#include <ws2tcpip.h>
22706#endif
22707int
22708main ()
22709{
22710struct sockaddr foo;
22711  ;
22712  return 0;
22713}
22714_ACEOF
22715if ac_fn_c_try_compile "$LINENO"; then :
22716  eval "ac_cv_type_$cv=yes"
22717else
22718  eval "ac_cv_type_$cv=no"
22719fi
22720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22721fi
22722ac_foo=`eval echo \\$ac_cv_type_$cv`
22723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22724$as_echo "$ac_foo" >&6; }
22725if test "$ac_foo" = yes; then
22726  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22727if false; then
22728	ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "$ac_includes_default"
22729if test "x$ac_cv_type_struct_sockaddr" = x""yes; then :
22730
22731cat >>confdefs.h <<_ACEOF
22732#define HAVE_STRUCT_SOCKADDR 1
22733_ACEOF
22734
22735
22736fi
22737
22738fi
22739
22740cat >>confdefs.h <<_ACEOF
22741#define $ac_tr_hdr 1
22742_ACEOF
22743
22744fi
22745
22746
22747
22748cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
22749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
22750$as_echo_n "checking for struct sockaddr_storage... " >&6; }
22751if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22752  $as_echo_n "(cached) " >&6
22753else
22754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22755/* end confdefs.h.  */
22756
22757#include <sys/types.h>
22758#if STDC_HEADERS
22759#include <stdlib.h>
22760#include <stddef.h>
22761#endif
22762
22763#include <sys/types.h>
22764#ifdef HAVE_SYS_SOCKET_H
22765#include <sys/socket.h>
22766#endif
22767#ifdef HAVE_WS2TCPIP_H
22768#include <ws2tcpip.h>
22769#endif
22770int
22771main ()
22772{
22773struct sockaddr_storage foo;
22774  ;
22775  return 0;
22776}
22777_ACEOF
22778if ac_fn_c_try_compile "$LINENO"; then :
22779  eval "ac_cv_type_$cv=yes"
22780else
22781  eval "ac_cv_type_$cv=no"
22782fi
22783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22784fi
22785ac_foo=`eval echo \\$ac_cv_type_$cv`
22786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22787$as_echo "$ac_foo" >&6; }
22788if test "$ac_foo" = yes; then
22789  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22790if false; then
22791	ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
22792if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
22793
22794cat >>confdefs.h <<_ACEOF
22795#define HAVE_STRUCT_SOCKADDR_STORAGE 1
22796_ACEOF
22797
22798
22799fi
22800
22801fi
22802
22803cat >>confdefs.h <<_ACEOF
22804#define $ac_tr_hdr 1
22805_ACEOF
22806
22807fi
22808
22809
22810
22811cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
22812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
22813$as_echo_n "checking for struct addrinfo... " >&6; }
22814if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22815  $as_echo_n "(cached) " >&6
22816else
22817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22818/* end confdefs.h.  */
22819
22820#include <sys/types.h>
22821#if STDC_HEADERS
22822#include <stdlib.h>
22823#include <stddef.h>
22824#endif
22825
22826#include <sys/types.h>
22827#ifdef HAVE_NETDB_H
22828#include <netdb.h>
22829#endif
22830#ifdef HAVE_WS2TCPIP_H
22831#include <ws2tcpip.h>
22832#endif
22833int
22834main ()
22835{
22836struct addrinfo foo;
22837  ;
22838  return 0;
22839}
22840_ACEOF
22841if ac_fn_c_try_compile "$LINENO"; then :
22842  eval "ac_cv_type_$cv=yes"
22843else
22844  eval "ac_cv_type_$cv=no"
22845fi
22846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22847fi
22848ac_foo=`eval echo \\$ac_cv_type_$cv`
22849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22850$as_echo "$ac_foo" >&6; }
22851if test "$ac_foo" = yes; then
22852  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22853if false; then
22854	ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default"
22855if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
22856
22857cat >>confdefs.h <<_ACEOF
22858#define HAVE_STRUCT_ADDRINFO 1
22859_ACEOF
22860
22861
22862fi
22863
22864fi
22865
22866cat >>confdefs.h <<_ACEOF
22867#define $ac_tr_hdr 1
22868_ACEOF
22869
22870fi
22871
22872
22873
22874cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
22875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ifaddrs" >&5
22876$as_echo_n "checking for struct ifaddrs... " >&6; }
22877if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22878  $as_echo_n "(cached) " >&6
22879else
22880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22881/* end confdefs.h.  */
22882
22883#include <sys/types.h>
22884#if STDC_HEADERS
22885#include <stdlib.h>
22886#include <stddef.h>
22887#endif
22888#include <ifaddrs.h>
22889int
22890main ()
22891{
22892struct ifaddrs foo;
22893  ;
22894  return 0;
22895}
22896_ACEOF
22897if ac_fn_c_try_compile "$LINENO"; then :
22898  eval "ac_cv_type_$cv=yes"
22899else
22900  eval "ac_cv_type_$cv=no"
22901fi
22902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903fi
22904ac_foo=`eval echo \\$ac_cv_type_$cv`
22905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22906$as_echo "$ac_foo" >&6; }
22907if test "$ac_foo" = yes; then
22908  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22909if false; then
22910	ac_fn_c_check_type "$LINENO" "struct ifaddrs" "ac_cv_type_struct_ifaddrs" "$ac_includes_default"
22911if test "x$ac_cv_type_struct_ifaddrs" = x""yes; then :
22912
22913cat >>confdefs.h <<_ACEOF
22914#define HAVE_STRUCT_IFADDRS 1
22915_ACEOF
22916
22917
22918fi
22919
22920fi
22921
22922cat >>confdefs.h <<_ACEOF
22923#define $ac_tr_hdr 1
22924_ACEOF
22925
22926fi
22927
22928
22929
22930cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
22931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct iovec" >&5
22932$as_echo_n "checking for struct iovec... " >&6; }
22933if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22934  $as_echo_n "(cached) " >&6
22935else
22936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937/* end confdefs.h.  */
22938
22939#include <sys/types.h>
22940#if STDC_HEADERS
22941#include <stdlib.h>
22942#include <stddef.h>
22943#endif
22944
22945#include <sys/types.h>
22946#include <sys/uio.h>
22947
22948int
22949main ()
22950{
22951struct iovec foo;
22952  ;
22953  return 0;
22954}
22955_ACEOF
22956if ac_fn_c_try_compile "$LINENO"; then :
22957  eval "ac_cv_type_$cv=yes"
22958else
22959  eval "ac_cv_type_$cv=no"
22960fi
22961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22962fi
22963ac_foo=`eval echo \\$ac_cv_type_$cv`
22964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22965$as_echo "$ac_foo" >&6; }
22966if test "$ac_foo" = yes; then
22967  ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22968if false; then
22969	ac_fn_c_check_type "$LINENO" "struct iovec" "ac_cv_type_struct_iovec" "$ac_includes_default"
22970if test "x$ac_cv_type_struct_iovec" = x""yes; then :
22971
22972cat >>confdefs.h <<_ACEOF
22973#define HAVE_STRUCT_IOVEC 1
22974_ACEOF
22975
22976
22977fi
22978
22979fi
22980
22981cat >>confdefs.h <<_ACEOF
22982#define $ac_tr_hdr 1
22983_ACEOF
22984
22985fi
22986
22987
22988
22989cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
22990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr" >&5
22991$as_echo_n "checking for struct msghdr... " >&6; }
22992if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
22993  $as_echo_n "(cached) " >&6
22994else
22995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996/* end confdefs.h.  */
22997
22998#include <sys/types.h>
22999#if STDC_HEADERS
23000#include <stdlib.h>
23001#include <stddef.h>
23002#endif
23003
23004#include <sys/types.h>
23005#ifdef HAVE_SYS_SOCKET_H
23006#include <sys/socket.h>
23007#endif
23008#ifdef HAVE_WS2TCPIP_H
23009#include <ws2tcpip.h>
23010#endif
23011int
23012main ()
23013{
23014struct msghdr foo;
23015  ;
23016  return 0;
23017}
23018_ACEOF
23019if ac_fn_c_try_compile "$LINENO"; then :
23020  eval "ac_cv_type_$cv=yes"
23021else
23022  eval "ac_cv_type_$cv=no"
23023fi
23024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23025fi
23026ac_foo=`eval echo \\$ac_cv_type_$cv`
23027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
23028$as_echo "$ac_foo" >&6; }
23029if test "$ac_foo" = yes; then
23030  ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
23031if false; then
23032	ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "$ac_includes_default"
23033if test "x$ac_cv_type_struct_msghdr" = x""yes; then :
23034
23035cat >>confdefs.h <<_ACEOF
23036#define HAVE_STRUCT_MSGHDR 1
23037_ACEOF
23038
23039
23040fi
23041
23042fi
23043
23044cat >>confdefs.h <<_ACEOF
23045#define $ac_tr_hdr 1
23046_ACEOF
23047
23048fi
23049
23050
23051
23052
23053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize" >&5
23054$as_echo_n "checking for struct winsize... " >&6; }
23055if test "${ac_cv_struct_winsize+set}" = set; then :
23056  $as_echo_n "(cached) " >&6
23057else
23058
23059ac_cv_struct_winsize=no
23060for i in sys/termios.h sys/ioctl.h; do
23061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23062/* end confdefs.h.  */
23063#include <$i>
23064
23065_ACEOF
23066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23067  $EGREP "struct[ 	]*winsize" >/dev/null 2>&1; then :
23068  ac_cv_struct_winsize=yes; break
23069fi
23070rm -f conftest*
23071done
23072
23073fi
23074
23075if test "$ac_cv_struct_winsize" = "yes"; then
23076
23077$as_echo "#define HAVE_STRUCT_WINSIZE 1" >>confdefs.h
23078
23079fi
23080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_winsize" >&5
23081$as_echo "$ac_cv_struct_winsize" >&6; }
23082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083/* end confdefs.h.  */
23084#include <termios.h>
23085
23086_ACEOF
23087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23088  $EGREP "ws_xpixel" >/dev/null 2>&1; then :
23089
23090$as_echo "#define HAVE_WS_XPIXEL 1" >>confdefs.h
23091
23092fi
23093rm -f conftest*
23094
23095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23096/* end confdefs.h.  */
23097#include <termios.h>
23098
23099_ACEOF
23100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23101  $EGREP "ws_ypixel" >/dev/null 2>&1; then :
23102
23103$as_echo "#define HAVE_WS_YPIXEL 1" >>confdefs.h
23104
23105fi
23106rm -f conftest*
23107
23108
23109
23110
23111
23112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct spwd" >&5
23113$as_echo_n "checking for struct spwd... " >&6; }
23114if test "${ac_cv_struct_spwd+set}" = set; then :
23115  $as_echo_n "(cached) " >&6
23116else
23117
23118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23119/* end confdefs.h.  */
23120
23121#include <pwd.h>
23122#ifdef HAVE_SHADOW_H
23123#include <shadow.h>
23124#endif
23125int
23126main ()
23127{
23128struct spwd foo;
23129  ;
23130  return 0;
23131}
23132_ACEOF
23133if ac_fn_c_try_compile "$LINENO"; then :
23134  ac_cv_struct_spwd=yes
23135else
23136  ac_cv_struct_spwd=no
23137fi
23138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23139
23140fi
23141
23142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_spwd" >&5
23143$as_echo "$ac_cv_struct_spwd" >&6; }
23144
23145if test "$ac_cv_struct_spwd" = "yes"; then
23146
23147$as_echo "#define HAVE_STRUCT_SPWD 1" >>confdefs.h
23148
23149fi
23150
23151
23152#
23153# Check if we want samba's socket wrapper
23154#
23155
23156
23157
23158# Check whether --enable-socket-wrapper was given.
23159if test "${enable_socket_wrapper+set}" = set; then :
23160  enableval=$enable_socket_wrapper;
23161fi
23162
23163
23164 if test "x$enable_socket_wrapper" = xyes; then
23165  have_socket_wrapper_TRUE=
23166  have_socket_wrapper_FALSE='#'
23167else
23168  have_socket_wrapper_TRUE='#'
23169  have_socket_wrapper_FALSE=
23170fi
23171
23172if test "x$enable_socket_wrapper" = xyes ; then
23173
23174$as_echo "#define SOCKET_WRAPPER_REPLACE 1" >>confdefs.h
23175
23176fi
23177
23178
23179
23180
23181LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
23182
23183
23184LIBADD_roken="$LIB_roken"
23185LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
23186
23187
23188# Check whether --enable-otp was given.
23189if test "${enable_otp+set}" = set; then :
23190  enableval=$enable_otp;
23191fi
23192
23193if test "$enable_otp" = yes -a "$db_type" = unknown; then
23194	as_fn_error "OTP requires a NDBM/DB compatible library" "$LINENO" 5
23195fi
23196if test "$enable_otp" != no; then
23197	if test "$db_type" != unknown; then
23198		enable_otp=yes
23199	else
23200		enable_otp=no
23201	fi
23202fi
23203if test "$enable_otp" = yes; then
23204
23205$as_echo "#define OTP 1" >>confdefs.h
23206
23207	LIB_otp='$(top_builddir)/lib/otp/libotp.la'
23208
23209fi
23210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OTP library" >&5
23211$as_echo_n "checking whether to enable OTP library... " >&6; }
23212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_otp" >&5
23213$as_echo "$enable_otp" >&6; }
23214 if test "$enable_otp" = yes; then
23215  OTP_TRUE=
23216  OTP_FALSE='#'
23217else
23218  OTP_TRUE='#'
23219  OTP_FALSE=
23220fi
23221
23222
23223
23224
23225for ac_header in dispatch/dispatch.h
23226do :
23227  ac_fn_c_check_header_mongrel "$LINENO" "dispatch/dispatch.h" "ac_cv_header_dispatch_dispatch_h" "$ac_includes_default"
23228if test "x$ac_cv_header_dispatch_dispatch_h" = x""yes; then :
23229  cat >>confdefs.h <<_ACEOF
23230#define HAVE_DISPATCH_DISPATCH_H 1
23231_ACEOF
23232
23233fi
23234
23235done
23236
23237
23238
23239
23240
23241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dispatch_async_f" >&5
23242$as_echo_n "checking for dispatch_async_f... " >&6; }
23243if test "${ac_cv_funclib_dispatch_async_f+set}" = set; then :
23244  $as_echo_n "(cached) " >&6
23245else
23246
23247if eval "test \"\$ac_cv_func_dispatch_async_f\" != yes" ; then
23248	ac_save_LIBS="$LIBS"
23249	for ac_lib in "" dispatch; do
23250		case "$ac_lib" in
23251		"") ;;
23252		yes) ac_lib="" ;;
23253		no) continue ;;
23254		-l*) ;;
23255		*) ac_lib="-l$ac_lib" ;;
23256		esac
23257		LIBS=" $ac_lib  $ac_save_LIBS"
23258		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259/* end confdefs.h.  */
23260#ifdef HAVE_DISPATCH_DISPATCH_H
23261#include <dispatch/dispatch.h>
23262#endif
23263int
23264main ()
23265{
23266dispatch_async_f(0,0,0)
23267  ;
23268  return 0;
23269}
23270_ACEOF
23271if ac_fn_c_try_link "$LINENO"; then :
23272  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dispatch_async_f=$ac_lib; else ac_cv_funclib_dispatch_async_f=yes; fi";break
23273fi
23274rm -f core conftest.err conftest.$ac_objext \
23275    conftest$ac_exeext conftest.$ac_ext
23276	done
23277	eval "ac_cv_funclib_dispatch_async_f=\${ac_cv_funclib_dispatch_async_f-no}"
23278	LIBS="$ac_save_LIBS"
23279fi
23280
23281fi
23282
23283
23284eval "ac_res=\$ac_cv_funclib_dispatch_async_f"
23285
23286if false; then
23287	for ac_func in dispatch_async_f
23288do :
23289  ac_fn_c_check_func "$LINENO" "dispatch_async_f" "ac_cv_func_dispatch_async_f"
23290if test "x$ac_cv_func_dispatch_async_f" = x""yes; then :
23291  cat >>confdefs.h <<_ACEOF
23292#define HAVE_DISPATCH_ASYNC_F 1
23293_ACEOF
23294
23295fi
23296done
23297
23298fi
23299# dispatch_async_f
23300eval "ac_tr_func=HAVE_`echo dispatch_async_f | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23301eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23302eval "LIB_dispatch_async_f=$ac_res"
23303
23304case "$ac_res" in
23305	yes)
23306	eval "ac_cv_func_dispatch_async_f=yes"
23307	eval "LIB_dispatch_async_f="
23308	cat >>confdefs.h <<_ACEOF
23309#define $ac_tr_func 1
23310_ACEOF
23311
23312	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23313$as_echo "yes" >&6; }
23314	;;
23315	no)
23316	eval "ac_cv_func_dispatch_async_f=no"
23317	eval "LIB_dispatch_async_f="
23318	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23319$as_echo "no" >&6; }
23320	;;
23321	*)
23322	eval "ac_cv_func_dispatch_async_f=yes"
23323	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23324	cat >>confdefs.h <<_ACEOF
23325#define $ac_tr_func 1
23326_ACEOF
23327
23328	cat >>confdefs.h <<_ACEOF
23329#define $ac_tr_lib 1
23330_ACEOF
23331
23332	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
23333$as_echo "yes, in $ac_res" >&6; }
23334	;;
23335esac
23336
23337
23338
23339if test "$ac_cv_func_dispatch_async_f" = yes ; then
23340
23341$as_echo "#define HAVE_GCD 1" >>confdefs.h
23342
23343    libdispatch=yes
23344else
23345    libdispatch=no
23346fi
23347
23348 if test "$libdispatch" = yes; then
23349  have_gcd_TRUE=
23350  have_gcd_FALSE='#'
23351else
23352  have_gcd_TRUE='#'
23353  have_gcd_FALSE=
23354fi
23355
23356
23357
23358
23359
23360# Check whether --enable-osfc2 was given.
23361if test "${enable_osfc2+set}" = set; then :
23362  enableval=$enable_osfc2;
23363fi
23364
23365LIB_security=
23366if test "$enable_osfc2" = yes; then
23367
23368$as_echo "#define HAVE_OSFC2 1" >>confdefs.h
23369
23370	LIB_security=-lsecurity
23371fi
23372
23373
23374
23375# Check whether --enable-mmap was given.
23376if test "${enable_mmap+set}" = set; then :
23377  enableval=$enable_mmap;
23378fi
23379
23380if test "$enable_mmap" = "no"; then
23381
23382$as_echo "#define NO_MMAP 1" >>confdefs.h
23383
23384fi
23385
23386# Check whether --enable-afs-string-to-key was given.
23387if test "${enable_afs_string_to_key+set}" = set; then :
23388  enableval=$enable_afs_string_to_key;
23389else
23390  enable_afs_string_to_key=yes
23391fi
23392
23393
23394if test "$enable_afs_string_to_key" = "yes"; then
23395
23396$as_echo "#define ENABLE_AFS_STRING_TO_KEY 1" >>confdefs.h
23397
23398fi
23399
23400
23401# Extract the first word of "nroff", so it can be a program name with args.
23402set dummy nroff; ac_word=$2
23403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23404$as_echo_n "checking for $ac_word... " >&6; }
23405if test "${ac_cv_path_NROFF+set}" = set; then :
23406  $as_echo_n "(cached) " >&6
23407else
23408  case $NROFF in
23409  [\\/]* | ?:[\\/]*)
23410  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
23411  ;;
23412  *)
23413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23414for as_dir in $PATH
23415do
23416  IFS=$as_save_IFS
23417  test -z "$as_dir" && as_dir=.
23418    for ac_exec_ext in '' $ac_executable_extensions; do
23419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23420    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
23421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23422    break 2
23423  fi
23424done
23425  done
23426IFS=$as_save_IFS
23427
23428  ;;
23429esac
23430fi
23431NROFF=$ac_cv_path_NROFF
23432if test -n "$NROFF"; then
23433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
23434$as_echo "$NROFF" >&6; }
23435else
23436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23437$as_echo "no" >&6; }
23438fi
23439
23440
23441# Extract the first word of "groff", so it can be a program name with args.
23442set dummy groff; ac_word=$2
23443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23444$as_echo_n "checking for $ac_word... " >&6; }
23445if test "${ac_cv_path_GROFF+set}" = set; then :
23446  $as_echo_n "(cached) " >&6
23447else
23448  case $GROFF in
23449  [\\/]* | ?:[\\/]*)
23450  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
23451  ;;
23452  *)
23453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23454for as_dir in $PATH
23455do
23456  IFS=$as_save_IFS
23457  test -z "$as_dir" && as_dir=.
23458    for ac_exec_ext in '' $ac_executable_extensions; do
23459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23460    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
23461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23462    break 2
23463  fi
23464done
23465  done
23466IFS=$as_save_IFS
23467
23468  ;;
23469esac
23470fi
23471GROFF=$ac_cv_path_GROFF
23472if test -n "$GROFF"; then
23473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
23474$as_echo "$GROFF" >&6; }
23475else
23476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23477$as_echo "no" >&6; }
23478fi
23479
23480
23481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to format man pages" >&5
23482$as_echo_n "checking how to format man pages... " >&6; }
23483if test "${ac_cv_sys_man_format+set}" = set; then :
23484  $as_echo_n "(cached) " >&6
23485else
23486  cat > conftest.1 << END
23487.Dd January 1, 1970
23488.Dt CONFTEST 1
23489.Sh NAME
23490.Nm conftest
23491.Nd foobar
23492END
23493
23494if test "$NROFF" ; then
23495	for i in "-mdoc" "-mandoc"; do
23496		if "$NROFF" $i conftest.1 2> /dev/null | \
23497			grep Jan > /dev/null 2>&1 ; then
23498			ac_cv_sys_man_format="$NROFF $i"
23499			break
23500		fi
23501	done
23502fi
23503if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
23504	for i in "-mdoc" "-mandoc"; do
23505		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
23506			grep Jan > /dev/null 2>&1 ; then
23507			ac_cv_sys_man_format="$GROFF -Tascii $i"
23508			break
23509		fi
23510	done
23511fi
23512if test "$ac_cv_sys_man_format"; then
23513	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
23514fi
23515
23516fi
23517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_man_format" >&5
23518$as_echo "$ac_cv_sys_man_format" >&6; }
23519if test "$ac_cv_sys_man_format"; then
23520	CATMAN="$ac_cv_sys_man_format"
23521
23522fi
23523 if test "$CATMAN"; then
23524  CATMAN_TRUE=
23525  CATMAN_FALSE='#'
23526else
23527  CATMAN_TRUE='#'
23528  CATMAN_FALSE=
23529fi
23530
23531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking extension of pre-formatted manual pages" >&5
23532$as_echo_n "checking extension of pre-formatted manual pages... " >&6; }
23533if test "${ac_cv_sys_catman_ext+set}" = set; then :
23534  $as_echo_n "(cached) " >&6
23535else
23536  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
23537	ac_cv_sys_catman_ext=0
23538else
23539	ac_cv_sys_catman_ext=number
23540fi
23541
23542fi
23543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_catman_ext" >&5
23544$as_echo "$ac_cv_sys_catman_ext" >&6; }
23545if test "$ac_cv_sys_catman_ext" = number; then
23546	CATMANEXT='$$section'
23547else
23548	CATMANEXT=0
23549fi
23550
23551
23552
23553
23554
23555# Check whether --with-readline was given.
23556if test "${with_readline+set}" = set; then :
23557  withval=$with_readline;
23558fi
23559
23560
23561# Check whether --with-readline-lib was given.
23562if test "${with_readline_lib+set}" = set; then :
23563  withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
23564  as_fn_error "No argument for --with-readline-lib" "$LINENO" 5
23565elif test "X$with_readline" = "X"; then
23566  with_readline=yes
23567fi
23568fi
23569
23570
23571# Check whether --with-readline-include was given.
23572if test "${with_readline_include+set}" = set; then :
23573  withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then
23574  as_fn_error "No argument for --with-readline-include" "$LINENO" 5
23575elif test "X$with_readline" = "X"; then
23576  with_readline=yes
23577fi
23578fi
23579
23580
23581# Check whether --with-readline-config was given.
23582if test "${with_readline_config+set}" = set; then :
23583  withval=$with_readline_config;
23584fi
23585
23586
23587
23588
23589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
23590$as_echo_n "checking for readline... " >&6; }
23591
23592case "$with_readline" in
23593yes|"") d='' ;;
23594no)	d= ;;
23595*)	d="$with_readline" ;;
23596esac
23597
23598header_dirs=
23599lib_dirs=
23600for i in $d; do
23601	if test "$with_readline_include" = ""; then
23602		if test -d "$i/include/readline"; then
23603			header_dirs="$header_dirs $i/include/readline"
23604		fi
23605		if test -d "$i/include"; then
23606			header_dirs="$header_dirs $i/include"
23607		fi
23608	fi
23609	if test "$with_readline_lib" = ""; then
23610		if test -d "$i/lib$abilibdirext"; then
23611			lib_dirs="$lib_dirs $i/lib$abilibdirext"
23612		fi
23613	fi
23614done
23615
23616if test "$with_readline_include"; then
23617	header_dirs="$with_readline_include $header_dirs"
23618fi
23619if test "$with_readline_lib"; then
23620	lib_dirs="$with_readline_lib $lib_dirs"
23621fi
23622
23623if test "$with_readline_config" = ""; then
23624	with_readline_config=''
23625fi
23626
23627readline_cflags=
23628readline_libs=
23629
23630case "$with_readline_config" in
23631yes|no|""|"")
23632	if test -f $with_readline/bin/ ; then
23633		with_readline_config=$with_readline/bin/
23634	fi
23635	;;
23636esac
23637
23638case "$with_readline_config" in
23639yes|no|"")
23640	;;
23641*)
23642	readline_cflags="`$with_readline_config --cflags 2>&1`"
23643	readline_libs="`$with_readline_config --libs 2>&1`"
23644	;;
23645esac
23646
23647found=no
23648if test "$with_readline" != no; then
23649	save_CFLAGS="$CFLAGS"
23650	save_LIBS="$LIBS"
23651	if test "$readline_cflags" -a "$readline_libs"; then
23652		CFLAGS="$readline_cflags $save_CFLAGS"
23653		LIBS="$readline_libs $save_LIBS"
23654		for ac_header in readline.h readline/readline.h
23655do :
23656  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23657ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23658eval as_val=\$$as_ac_Header
23659   if test "x$as_val" = x""yes; then :
23660  cat >>confdefs.h <<_ACEOF
23661#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23662_ACEOF
23663
23664fi
23665
23666done
23667
23668		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23669/* end confdefs.h.  */
23670#include <stdio.h>
23671#if defined(HAVE_READLINE_READLINE_H)
23672#include <readline/readline.h>
23673#elif defined(HAVE_READLINE_H)
23674#include <readline.h>
23675#endif
23676
23677int
23678main ()
23679{
23680
23681  ;
23682  return 0;
23683}
23684_ACEOF
23685if ac_fn_c_try_link "$LINENO"; then :
23686
23687			INCLUDE_readline="$readline_cflags"
23688			LIB_readline="$readline_libs"
23689			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_readline_config" >&5
23690$as_echo "from $with_readline_config" >&6; }
23691			found=yes
23692fi
23693rm -f core conftest.err conftest.$ac_objext \
23694    conftest$ac_exeext conftest.$ac_ext
23695	fi
23696	if test "$found" = no; then
23697		ires= lres=
23698		for i in $header_dirs; do
23699			CFLAGS="-I$i $save_CFLAGS"
23700			for ac_header in readline.h readline/readline.h
23701do :
23702  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23703ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23704eval as_val=\$$as_ac_Header
23705   if test "x$as_val" = x""yes; then :
23706  cat >>confdefs.h <<_ACEOF
23707#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23708_ACEOF
23709
23710fi
23711
23712done
23713
23714			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23715/* end confdefs.h.  */
23716#include <stdio.h>
23717#if defined(HAVE_READLINE_READLINE_H)
23718#include <readline/readline.h>
23719#elif defined(HAVE_READLINE_H)
23720#include <readline.h>
23721#endif
23722
23723int
23724main ()
23725{
23726
23727  ;
23728  return 0;
23729}
23730_ACEOF
23731if ac_fn_c_try_compile "$LINENO"; then :
23732  ires=$i;break
23733fi
23734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23735		done
23736		for i in $lib_dirs; do
23737			LIBS="-L$i -lreadline  $save_LIBS"
23738			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23739/* end confdefs.h.  */
23740#include <stdio.h>
23741#if defined(HAVE_READLINE_READLINE_H)
23742#include <readline/readline.h>
23743#elif defined(HAVE_READLINE_H)
23744#include <readline.h>
23745#endif
23746
23747int
23748main ()
23749{
23750
23751  ;
23752  return 0;
23753}
23754_ACEOF
23755if ac_fn_c_try_link "$LINENO"; then :
23756  lres=$i;break
23757fi
23758rm -f core conftest.err conftest.$ac_objext \
23759    conftest$ac_exeext conftest.$ac_ext
23760		done
23761		if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
23762			INCLUDE_readline="-I$ires"
23763			LIB_readline="-L$lres -lreadline "
23764			found=yes
23765			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
23766$as_echo "headers $ires, libraries $lres" >&6; }
23767		fi
23768	fi
23769	CFLAGS="$save_CFLAGS"
23770	LIBS="$save_LIBS"
23771fi
23772
23773if test "$found" = yes; then
23774
23775cat >>confdefs.h <<_ACEOF
23776#define READLINE 1
23777_ACEOF
23778
23779	with_readline=yes
23780else
23781	with_readline=no
23782	INCLUDE_readline=
23783	LIB_readline=
23784	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23785$as_echo "no" >&6; }
23786fi
23787
23788
23789
23790
23791
23792
23793
23794# Check whether --with-libedit was given.
23795if test "${with_libedit+set}" = set; then :
23796  withval=$with_libedit;
23797fi
23798
23799
23800# Check whether --with-libedit-lib was given.
23801if test "${with_libedit_lib+set}" = set; then :
23802  withval=$with_libedit_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
23803  as_fn_error "No argument for --with-libedit-lib" "$LINENO" 5
23804elif test "X$with_libedit" = "X"; then
23805  with_libedit=yes
23806fi
23807fi
23808
23809
23810# Check whether --with-libedit-include was given.
23811if test "${with_libedit_include+set}" = set; then :
23812  withval=$with_libedit_include; if test "$withval" = "yes" -o "$withval" = "no"; then
23813  as_fn_error "No argument for --with-libedit-include" "$LINENO" 5
23814elif test "X$with_libedit" = "X"; then
23815  with_libedit=yes
23816fi
23817fi
23818
23819
23820# Check whether --with-libedit-config was given.
23821if test "${with_libedit_config+set}" = set; then :
23822  withval=$with_libedit_config;
23823fi
23824
23825
23826
23827
23828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
23829$as_echo_n "checking for libedit... " >&6; }
23830
23831case "$with_libedit" in
23832yes|"") d='' ;;
23833no)	d= ;;
23834*)	d="$with_libedit" ;;
23835esac
23836
23837header_dirs=
23838lib_dirs=
23839for i in $d; do
23840	if test "$with_libedit_include" = ""; then
23841		if test -d "$i/include/libedit"; then
23842			header_dirs="$header_dirs $i/include/libedit"
23843		fi
23844		if test -d "$i/include"; then
23845			header_dirs="$header_dirs $i/include"
23846		fi
23847	fi
23848	if test "$with_libedit_lib" = ""; then
23849		if test -d "$i/lib$abilibdirext"; then
23850			lib_dirs="$lib_dirs $i/lib$abilibdirext"
23851		fi
23852	fi
23853done
23854
23855if test "$with_libedit_include"; then
23856	header_dirs="$with_libedit_include $header_dirs"
23857fi
23858if test "$with_libedit_lib"; then
23859	lib_dirs="$with_libedit_lib $lib_dirs"
23860fi
23861
23862if test "$with_libedit_config" = ""; then
23863	with_libedit_config=''
23864fi
23865
23866libedit_cflags=
23867libedit_libs=
23868
23869case "$with_libedit_config" in
23870yes|no|""|"")
23871	if test -f $with_libedit/bin/ ; then
23872		with_libedit_config=$with_libedit/bin/
23873	fi
23874	;;
23875esac
23876
23877case "$with_libedit_config" in
23878yes|no|"")
23879	;;
23880*)
23881	libedit_cflags="`$with_libedit_config --cflags 2>&1`"
23882	libedit_libs="`$with_libedit_config --libs 2>&1`"
23883	;;
23884esac
23885
23886found=no
23887if test "$with_libedit" != no; then
23888	save_CFLAGS="$CFLAGS"
23889	save_LIBS="$LIBS"
23890	if test "$libedit_cflags" -a "$libedit_libs"; then
23891		CFLAGS="$libedit_cflags $save_CFLAGS"
23892		LIBS="$libedit_libs $save_LIBS"
23893		for ac_header in readline.h readline/readline.h
23894do :
23895  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23896ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23897eval as_val=\$$as_ac_Header
23898   if test "x$as_val" = x""yes; then :
23899  cat >>confdefs.h <<_ACEOF
23900#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23901_ACEOF
23902
23903fi
23904
23905done
23906
23907		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23908/* end confdefs.h.  */
23909#include <stdio.h>
23910#if defined(HAVE_READLINE_READLINE_H)
23911#include <readline/readline.h>
23912#elif defined(HAVE_READLINE_H)
23913#include <readline.h>
23914#endif
23915
23916int
23917main ()
23918{
23919
23920  ;
23921  return 0;
23922}
23923_ACEOF
23924if ac_fn_c_try_link "$LINENO"; then :
23925
23926			INCLUDE_libedit="$libedit_cflags"
23927			LIB_libedit="$libedit_libs"
23928			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_libedit_config" >&5
23929$as_echo "from $with_libedit_config" >&6; }
23930			found=yes
23931fi
23932rm -f core conftest.err conftest.$ac_objext \
23933    conftest$ac_exeext conftest.$ac_ext
23934	fi
23935	if test "$found" = no; then
23936		ires= lres=
23937		for i in $header_dirs; do
23938			CFLAGS="-I$i $save_CFLAGS"
23939			for ac_header in readline.h readline/readline.h
23940do :
23941  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23942ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23943eval as_val=\$$as_ac_Header
23944   if test "x$as_val" = x""yes; then :
23945  cat >>confdefs.h <<_ACEOF
23946#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23947_ACEOF
23948
23949fi
23950
23951done
23952
23953			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23954/* end confdefs.h.  */
23955#include <stdio.h>
23956#if defined(HAVE_READLINE_READLINE_H)
23957#include <readline/readline.h>
23958#elif defined(HAVE_READLINE_H)
23959#include <readline.h>
23960#endif
23961
23962int
23963main ()
23964{
23965
23966  ;
23967  return 0;
23968}
23969_ACEOF
23970if ac_fn_c_try_compile "$LINENO"; then :
23971  ires=$i;break
23972fi
23973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23974		done
23975		for i in $lib_dirs; do
23976			LIBS="-L$i -ledit  $save_LIBS"
23977			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23978/* end confdefs.h.  */
23979#include <stdio.h>
23980#if defined(HAVE_READLINE_READLINE_H)
23981#include <readline/readline.h>
23982#elif defined(HAVE_READLINE_H)
23983#include <readline.h>
23984#endif
23985
23986int
23987main ()
23988{
23989
23990  ;
23991  return 0;
23992}
23993_ACEOF
23994if ac_fn_c_try_link "$LINENO"; then :
23995  lres=$i;break
23996fi
23997rm -f core conftest.err conftest.$ac_objext \
23998    conftest$ac_exeext conftest.$ac_ext
23999		done
24000		if test "$ires" -a "$lres" -a "$with_libedit" != "no"; then
24001			INCLUDE_libedit="-I$ires"
24002			LIB_libedit="-L$lres -ledit "
24003			found=yes
24004			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
24005$as_echo "headers $ires, libraries $lres" >&6; }
24006		fi
24007	fi
24008	CFLAGS="$save_CFLAGS"
24009	LIBS="$save_LIBS"
24010fi
24011
24012if test "$found" = yes; then
24013
24014cat >>confdefs.h <<_ACEOF
24015#define LIBEDIT 1
24016_ACEOF
24017
24018	with_libedit=yes
24019else
24020	with_libedit=no
24021	INCLUDE_libedit=
24022	LIB_libedit=
24023	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24024$as_echo "no" >&6; }
24025fi
24026
24027
24028
24029
24030
24031
24032
24033subdirs="$subdirs lib/libedit"
24034
24035
24036
24037
24038# Check whether --with-hesiod was given.
24039if test "${with_hesiod+set}" = set; then :
24040  withval=$with_hesiod;
24041fi
24042
24043
24044# Check whether --with-hesiod-lib was given.
24045if test "${with_hesiod_lib+set}" = set; then :
24046  withval=$with_hesiod_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
24047  as_fn_error "No argument for --with-hesiod-lib" "$LINENO" 5
24048elif test "X$with_hesiod" = "X"; then
24049  with_hesiod=yes
24050fi
24051fi
24052
24053
24054# Check whether --with-hesiod-include was given.
24055if test "${with_hesiod_include+set}" = set; then :
24056  withval=$with_hesiod_include; if test "$withval" = "yes" -o "$withval" = "no"; then
24057  as_fn_error "No argument for --with-hesiod-include" "$LINENO" 5
24058elif test "X$with_hesiod" = "X"; then
24059  with_hesiod=yes
24060fi
24061fi
24062
24063
24064# Check whether --with-hesiod-config was given.
24065if test "${with_hesiod_config+set}" = set; then :
24066  withval=$with_hesiod_config;
24067fi
24068
24069
24070
24071
24072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hesiod" >&5
24073$as_echo_n "checking for hesiod... " >&6; }
24074
24075case "$with_hesiod" in
24076yes|"") d='' ;;
24077no)	d= ;;
24078*)	d="$with_hesiod" ;;
24079esac
24080
24081header_dirs=
24082lib_dirs=
24083for i in $d; do
24084	if test "$with_hesiod_include" = ""; then
24085		if test -d "$i/include/hesiod"; then
24086			header_dirs="$header_dirs $i/include/hesiod"
24087		fi
24088		if test -d "$i/include"; then
24089			header_dirs="$header_dirs $i/include"
24090		fi
24091	fi
24092	if test "$with_hesiod_lib" = ""; then
24093		if test -d "$i/lib$abilibdirext"; then
24094			lib_dirs="$lib_dirs $i/lib$abilibdirext"
24095		fi
24096	fi
24097done
24098
24099if test "$with_hesiod_include"; then
24100	header_dirs="$with_hesiod_include $header_dirs"
24101fi
24102if test "$with_hesiod_lib"; then
24103	lib_dirs="$with_hesiod_lib $lib_dirs"
24104fi
24105
24106if test "$with_hesiod_config" = ""; then
24107	with_hesiod_config=''
24108fi
24109
24110hesiod_cflags=
24111hesiod_libs=
24112
24113case "$with_hesiod_config" in
24114yes|no|""|"")
24115	if test -f $with_hesiod/bin/ ; then
24116		with_hesiod_config=$with_hesiod/bin/
24117	fi
24118	;;
24119esac
24120
24121case "$with_hesiod_config" in
24122yes|no|"")
24123	;;
24124*)
24125	hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
24126	hesiod_libs="`$with_hesiod_config --libs 2>&1`"
24127	;;
24128esac
24129
24130found=no
24131if test "$with_hesiod" != no; then
24132	save_CFLAGS="$CFLAGS"
24133	save_LIBS="$LIBS"
24134	if test "$hesiod_cflags" -a "$hesiod_libs"; then
24135		CFLAGS="$hesiod_cflags $save_CFLAGS"
24136		LIBS="$hesiod_libs $save_LIBS"
24137
24138		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24139/* end confdefs.h.  */
24140#include <hesiod.h>
24141int
24142main ()
24143{
24144
24145  ;
24146  return 0;
24147}
24148_ACEOF
24149if ac_fn_c_try_link "$LINENO"; then :
24150
24151			INCLUDE_hesiod="$hesiod_cflags"
24152			LIB_hesiod="$hesiod_libs"
24153			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_hesiod_config" >&5
24154$as_echo "from $with_hesiod_config" >&6; }
24155			found=yes
24156fi
24157rm -f core conftest.err conftest.$ac_objext \
24158    conftest$ac_exeext conftest.$ac_ext
24159	fi
24160	if test "$found" = no; then
24161		ires= lres=
24162		for i in $header_dirs; do
24163			CFLAGS="-I$i $save_CFLAGS"
24164
24165			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24166/* end confdefs.h.  */
24167#include <hesiod.h>
24168int
24169main ()
24170{
24171
24172  ;
24173  return 0;
24174}
24175_ACEOF
24176if ac_fn_c_try_compile "$LINENO"; then :
24177  ires=$i;break
24178fi
24179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180		done
24181		for i in $lib_dirs; do
24182			LIBS="-L$i -lhesiod  $save_LIBS"
24183			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24184/* end confdefs.h.  */
24185#include <hesiod.h>
24186int
24187main ()
24188{
24189
24190  ;
24191  return 0;
24192}
24193_ACEOF
24194if ac_fn_c_try_link "$LINENO"; then :
24195  lres=$i;break
24196fi
24197rm -f core conftest.err conftest.$ac_objext \
24198    conftest$ac_exeext conftest.$ac_ext
24199		done
24200		if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
24201			INCLUDE_hesiod="-I$ires"
24202			LIB_hesiod="-L$lres -lhesiod "
24203			found=yes
24204			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
24205$as_echo "headers $ires, libraries $lres" >&6; }
24206		fi
24207	fi
24208	CFLAGS="$save_CFLAGS"
24209	LIBS="$save_LIBS"
24210fi
24211
24212if test "$found" = yes; then
24213
24214cat >>confdefs.h <<_ACEOF
24215#define HESIOD 1
24216_ACEOF
24217
24218	with_hesiod=yes
24219else
24220	with_hesiod=no
24221	INCLUDE_hesiod=
24222	LIB_hesiod=
24223	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24224$as_echo "no" >&6; }
24225fi
24226
24227
24228
24229
24230
24231
24232# Check whether --enable-bigendian was given.
24233if test "${enable_bigendian+set}" = set; then :
24234  enableval=$enable_bigendian; krb_cv_c_bigendian=yes
24235fi
24236
24237# Check whether --enable-littleendian was given.
24238if test "${enable_littleendian+set}" = set; then :
24239  enableval=$enable_littleendian; krb_cv_c_bigendian=no
24240fi
24241
24242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte order is known at compile time" >&5
24243$as_echo_n "checking whether byte order is known at compile time... " >&6; }
24244if test "${krb_cv_c_bigendian_compile+set}" = set; then :
24245  $as_echo_n "(cached) " >&6
24246else
24247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24248/* end confdefs.h.  */
24249
24250#include <sys/types.h>
24251#include <sys/param.h>
24252#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24253 bogus endian macros
24254#endif
24255_ACEOF
24256if ac_fn_c_try_compile "$LINENO"; then :
24257  krb_cv_c_bigendian_compile=yes
24258else
24259  krb_cv_c_bigendian_compile=no
24260fi
24261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24262fi
24263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian_compile" >&5
24264$as_echo "$krb_cv_c_bigendian_compile" >&6; }
24265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24266$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24267if test "${krb_cv_c_bigendian+set}" = set; then :
24268  $as_echo_n "(cached) " >&6
24269else
24270
24271  if test "$krb_cv_c_bigendian_compile" = "yes"; then
24272    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24273/* end confdefs.h.  */
24274
24275#include <sys/types.h>
24276#include <sys/param.h>
24277#if BYTE_ORDER != BIG_ENDIAN
24278  not big endian
24279#endif
24280_ACEOF
24281if ac_fn_c_try_compile "$LINENO"; then :
24282  krb_cv_c_bigendian=yes
24283else
24284  krb_cv_c_bigendian=no
24285fi
24286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24287  else
24288    if test "$cross_compiling" = yes; then :
24289  as_fn_error "specify either --enable-bigendian or --enable-littleendian" "$LINENO" 5
24290else
24291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24292/* end confdefs.h.  */
24293main (int argc, char **argv) {
24294      /* Are we little or big endian?  From Harbison&Steele.  */
24295      union
24296      {
24297	long l;
24298	char c[sizeof (long)];
24299    } u;
24300    u.l = 1;
24301    exit (u.c[sizeof (long) - 1] == 1);
24302  }
24303_ACEOF
24304if ac_fn_c_try_run "$LINENO"; then :
24305  krb_cv_c_bigendian=no
24306else
24307  krb_cv_c_bigendian=yes
24308fi
24309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24310  conftest.$ac_objext conftest.beam conftest.$ac_ext
24311fi
24312
24313  fi
24314
24315fi
24316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian" >&5
24317$as_echo "$krb_cv_c_bigendian" >&6; }
24318if test "$krb_cv_c_bigendian" = "yes"; then
24319
24320$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24321fi
24322if test "$krb_cv_c_bigendian_compile" = "yes"; then
24323
24324$as_echo "#define ENDIANESS_IN_SYS_PARAM_H 1" >>confdefs.h
24325fi
24326
24327
24328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24329$as_echo_n "checking for inline... " >&6; }
24330if test "${ac_cv_c_inline+set}" = set; then :
24331  $as_echo_n "(cached) " >&6
24332else
24333  ac_cv_c_inline=no
24334for ac_kw in inline __inline__ __inline; do
24335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24336/* end confdefs.h.  */
24337#ifndef __cplusplus
24338typedef int foo_t;
24339static $ac_kw foo_t static_foo () {return 0; }
24340$ac_kw foo_t foo () {return 0; }
24341#endif
24342
24343_ACEOF
24344if ac_fn_c_try_compile "$LINENO"; then :
24345  ac_cv_c_inline=$ac_kw
24346fi
24347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24348  test "$ac_cv_c_inline" != no && break
24349done
24350
24351fi
24352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24353$as_echo "$ac_cv_c_inline" >&6; }
24354
24355case $ac_cv_c_inline in
24356  inline | yes) ;;
24357  *)
24358    case $ac_cv_c_inline in
24359      no) ac_val=;;
24360      *) ac_val=$ac_cv_c_inline;;
24361    esac
24362    cat >>confdefs.h <<_ACEOF
24363#ifndef __cplusplus
24364#define inline $ac_val
24365#endif
24366_ACEOF
24367    ;;
24368esac
24369
24370
24371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24372$as_echo_n "checking for X... " >&6; }
24373
24374
24375# Check whether --with-x was given.
24376if test "${with_x+set}" = set; then :
24377  withval=$with_x;
24378fi
24379
24380# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24381if test "x$with_x" = xno; then
24382  # The user explicitly disabled X.
24383  have_x=disabled
24384else
24385  case $x_includes,$x_libraries in #(
24386    *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24387    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24388  $as_echo_n "(cached) " >&6
24389else
24390  # One or both of the vars are not set, and there is no cached value.
24391ac_x_includes=no ac_x_libraries=no
24392rm -f -r conftest.dir
24393if mkdir conftest.dir; then
24394  cd conftest.dir
24395  cat >Imakefile <<'_ACEOF'
24396incroot:
24397	@echo incroot='${INCROOT}'
24398usrlibdir:
24399	@echo usrlibdir='${USRLIBDIR}'
24400libdir:
24401	@echo libdir='${LIBDIR}'
24402_ACEOF
24403  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24404    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24405    for ac_var in incroot usrlibdir libdir; do
24406      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24407    done
24408    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24409    for ac_extension in a so sl dylib la dll; do
24410      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24411	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24412	ac_im_usrlibdir=$ac_im_libdir; break
24413      fi
24414    done
24415    # Screen out bogus values from the imake configuration.  They are
24416    # bogus both because they are the default anyway, and because
24417    # using them would break gcc on systems where it needs fixed includes.
24418    case $ac_im_incroot in
24419	/usr/include) ac_x_includes= ;;
24420	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24421    esac
24422    case $ac_im_usrlibdir in
24423	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
24424	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24425    esac
24426  fi
24427  cd ..
24428  rm -f -r conftest.dir
24429fi
24430
24431# Standard set of common directories for X headers.
24432# Check X11 before X11Rn because it is often a symlink to the current release.
24433ac_x_header_dirs='
24434/usr/X11/include
24435/usr/X11R7/include
24436/usr/X11R6/include
24437/usr/X11R5/include
24438/usr/X11R4/include
24439
24440/usr/include/X11
24441/usr/include/X11R7
24442/usr/include/X11R6
24443/usr/include/X11R5
24444/usr/include/X11R4
24445
24446/usr/local/X11/include
24447/usr/local/X11R7/include
24448/usr/local/X11R6/include
24449/usr/local/X11R5/include
24450/usr/local/X11R4/include
24451
24452/usr/local/include/X11
24453/usr/local/include/X11R7
24454/usr/local/include/X11R6
24455/usr/local/include/X11R5
24456/usr/local/include/X11R4
24457
24458/usr/X386/include
24459/usr/x386/include
24460/usr/XFree86/include/X11
24461
24462/usr/include
24463/usr/local/include
24464/usr/unsupported/include
24465/usr/athena/include
24466/usr/local/x11r5/include
24467/usr/lpp/Xamples/include
24468
24469/usr/openwin/include
24470/usr/openwin/share/include'
24471
24472if test "$ac_x_includes" = no; then
24473  # Guess where to find include files, by looking for Xlib.h.
24474  # First, try using that file with no special directory specified.
24475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24476/* end confdefs.h.  */
24477#include <X11/Xlib.h>
24478_ACEOF
24479if ac_fn_c_try_cpp "$LINENO"; then :
24480  # We can compile using X headers with no special include directory.
24481ac_x_includes=
24482else
24483  for ac_dir in $ac_x_header_dirs; do
24484  if test -r "$ac_dir/X11/Xlib.h"; then
24485    ac_x_includes=$ac_dir
24486    break
24487  fi
24488done
24489fi
24490rm -f conftest.err conftest.$ac_ext
24491fi # $ac_x_includes = no
24492
24493if test "$ac_x_libraries" = no; then
24494  # Check for the libraries.
24495  # See if we find them without any special options.
24496  # Don't add to $LIBS permanently.
24497  ac_save_LIBS=$LIBS
24498  LIBS="-lX11 $LIBS"
24499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24500/* end confdefs.h.  */
24501#include <X11/Xlib.h>
24502int
24503main ()
24504{
24505XrmInitialize ()
24506  ;
24507  return 0;
24508}
24509_ACEOF
24510if ac_fn_c_try_link "$LINENO"; then :
24511  LIBS=$ac_save_LIBS
24512# We can link X programs with no special library path.
24513ac_x_libraries=
24514else
24515  LIBS=$ac_save_LIBS
24516for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24517do
24518  # Don't even attempt the hair of trying to link an X program!
24519  for ac_extension in a so sl dylib la dll; do
24520    if test -r "$ac_dir/libX11.$ac_extension"; then
24521      ac_x_libraries=$ac_dir
24522      break 2
24523    fi
24524  done
24525done
24526fi
24527rm -f core conftest.err conftest.$ac_objext \
24528    conftest$ac_exeext conftest.$ac_ext
24529fi # $ac_x_libraries = no
24530
24531case $ac_x_includes,$ac_x_libraries in #(
24532  no,* | *,no | *\'*)
24533    # Didn't find X, or a directory has "'" in its name.
24534    ac_cv_have_x="have_x=no";; #(
24535  *)
24536    # Record where we found X for the cache.
24537    ac_cv_have_x="have_x=yes\
24538	ac_x_includes='$ac_x_includes'\
24539	ac_x_libraries='$ac_x_libraries'"
24540esac
24541fi
24542;; #(
24543    *) have_x=yes;;
24544  esac
24545  eval "$ac_cv_have_x"
24546fi # $with_x != no
24547
24548if test "$have_x" != yes; then
24549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24550$as_echo "$have_x" >&6; }
24551  no_x=yes
24552else
24553  # If each of the values was on the command line, it overrides each guess.
24554  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24555  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24556  # Update the cache value to reflect the command line values.
24557  ac_cv_have_x="have_x=yes\
24558	ac_x_includes='$x_includes'\
24559	ac_x_libraries='$x_libraries'"
24560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24561$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24562fi
24563
24564
24565if test "$no_x" = yes; then
24566  # Not all programs may use this symbol, but it does not hurt to define it.
24567
24568$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24569
24570  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24571else
24572  if test -n "$x_includes"; then
24573    X_CFLAGS="$X_CFLAGS -I$x_includes"
24574  fi
24575
24576  # It would also be nice to do this for all -L options, not just this one.
24577  if test -n "$x_libraries"; then
24578    X_LIBS="$X_LIBS -L$x_libraries"
24579    # For Solaris; some versions of Sun CC require a space after -R and
24580    # others require no space.  Words are not sufficient . . . .
24581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24582$as_echo_n "checking whether -R must be followed by a space... " >&6; }
24583    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24584    ac_xsave_c_werror_flag=$ac_c_werror_flag
24585    ac_c_werror_flag=yes
24586    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24587/* end confdefs.h.  */
24588
24589int
24590main ()
24591{
24592
24593  ;
24594  return 0;
24595}
24596_ACEOF
24597if ac_fn_c_try_link "$LINENO"; then :
24598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24599$as_echo "no" >&6; }
24600       X_LIBS="$X_LIBS -R$x_libraries"
24601else
24602  LIBS="$ac_xsave_LIBS -R $x_libraries"
24603       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24604/* end confdefs.h.  */
24605
24606int
24607main ()
24608{
24609
24610  ;
24611  return 0;
24612}
24613_ACEOF
24614if ac_fn_c_try_link "$LINENO"; then :
24615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24616$as_echo "yes" >&6; }
24617	  X_LIBS="$X_LIBS -R $x_libraries"
24618else
24619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24620$as_echo "neither works" >&6; }
24621fi
24622rm -f core conftest.err conftest.$ac_objext \
24623    conftest$ac_exeext conftest.$ac_ext
24624fi
24625rm -f core conftest.err conftest.$ac_objext \
24626    conftest$ac_exeext conftest.$ac_ext
24627    ac_c_werror_flag=$ac_xsave_c_werror_flag
24628    LIBS=$ac_xsave_LIBS
24629  fi
24630
24631  # Check for system-dependent libraries X programs must link with.
24632  # Do this before checking for the system-independent R6 libraries
24633  # (-lICE), since we may need -lsocket or whatever for X linking.
24634
24635  if test "$ISC" = yes; then
24636    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24637  else
24638    # Martyn Johnson says this is needed for Ultrix, if the X
24639    # libraries were built with DECnet support.  And Karl Berry says
24640    # the Alpha needs dnet_stub (dnet does not exist).
24641    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24642    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24643/* end confdefs.h.  */
24644
24645/* Override any GCC internal prototype to avoid an error.
24646   Use char because int might match the return type of a GCC
24647   builtin and then its argument prototype would still apply.  */
24648#ifdef __cplusplus
24649extern "C"
24650#endif
24651char XOpenDisplay ();
24652int
24653main ()
24654{
24655return XOpenDisplay ();
24656  ;
24657  return 0;
24658}
24659_ACEOF
24660if ac_fn_c_try_link "$LINENO"; then :
24661
24662else
24663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24664$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24665if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24666  $as_echo_n "(cached) " >&6
24667else
24668  ac_check_lib_save_LIBS=$LIBS
24669LIBS="-ldnet  $LIBS"
24670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671/* end confdefs.h.  */
24672
24673/* Override any GCC internal prototype to avoid an error.
24674   Use char because int might match the return type of a GCC
24675   builtin and then its argument prototype would still apply.  */
24676#ifdef __cplusplus
24677extern "C"
24678#endif
24679char dnet_ntoa ();
24680int
24681main ()
24682{
24683return dnet_ntoa ();
24684  ;
24685  return 0;
24686}
24687_ACEOF
24688if ac_fn_c_try_link "$LINENO"; then :
24689  ac_cv_lib_dnet_dnet_ntoa=yes
24690else
24691  ac_cv_lib_dnet_dnet_ntoa=no
24692fi
24693rm -f core conftest.err conftest.$ac_objext \
24694    conftest$ac_exeext conftest.$ac_ext
24695LIBS=$ac_check_lib_save_LIBS
24696fi
24697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24698$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24699if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24700  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24701fi
24702
24703    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24704      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24705$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24706if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24707  $as_echo_n "(cached) " >&6
24708else
24709  ac_check_lib_save_LIBS=$LIBS
24710LIBS="-ldnet_stub  $LIBS"
24711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24712/* end confdefs.h.  */
24713
24714/* Override any GCC internal prototype to avoid an error.
24715   Use char because int might match the return type of a GCC
24716   builtin and then its argument prototype would still apply.  */
24717#ifdef __cplusplus
24718extern "C"
24719#endif
24720char dnet_ntoa ();
24721int
24722main ()
24723{
24724return dnet_ntoa ();
24725  ;
24726  return 0;
24727}
24728_ACEOF
24729if ac_fn_c_try_link "$LINENO"; then :
24730  ac_cv_lib_dnet_stub_dnet_ntoa=yes
24731else
24732  ac_cv_lib_dnet_stub_dnet_ntoa=no
24733fi
24734rm -f core conftest.err conftest.$ac_objext \
24735    conftest$ac_exeext conftest.$ac_ext
24736LIBS=$ac_check_lib_save_LIBS
24737fi
24738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24739$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24740if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24741  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24742fi
24743
24744    fi
24745fi
24746rm -f core conftest.err conftest.$ac_objext \
24747    conftest$ac_exeext conftest.$ac_ext
24748    LIBS="$ac_xsave_LIBS"
24749
24750    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24751    # to get the SysV transport functions.
24752    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24753    # needs -lnsl.
24754    # The nsl library prevents programs from opening the X display
24755    # on Irix 5.2, according to T.E. Dickey.
24756    # The functions gethostbyname, getservbyname, and inet_addr are
24757    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24758    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24759if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24760
24761fi
24762
24763    if test $ac_cv_func_gethostbyname = no; then
24764      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24765$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24766if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24767  $as_echo_n "(cached) " >&6
24768else
24769  ac_check_lib_save_LIBS=$LIBS
24770LIBS="-lnsl  $LIBS"
24771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24772/* end confdefs.h.  */
24773
24774/* Override any GCC internal prototype to avoid an error.
24775   Use char because int might match the return type of a GCC
24776   builtin and then its argument prototype would still apply.  */
24777#ifdef __cplusplus
24778extern "C"
24779#endif
24780char gethostbyname ();
24781int
24782main ()
24783{
24784return gethostbyname ();
24785  ;
24786  return 0;
24787}
24788_ACEOF
24789if ac_fn_c_try_link "$LINENO"; then :
24790  ac_cv_lib_nsl_gethostbyname=yes
24791else
24792  ac_cv_lib_nsl_gethostbyname=no
24793fi
24794rm -f core conftest.err conftest.$ac_objext \
24795    conftest$ac_exeext conftest.$ac_ext
24796LIBS=$ac_check_lib_save_LIBS
24797fi
24798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24799$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24800if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24801  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24802fi
24803
24804      if test $ac_cv_lib_nsl_gethostbyname = no; then
24805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24806$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24807if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24808  $as_echo_n "(cached) " >&6
24809else
24810  ac_check_lib_save_LIBS=$LIBS
24811LIBS="-lbsd  $LIBS"
24812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24813/* end confdefs.h.  */
24814
24815/* Override any GCC internal prototype to avoid an error.
24816   Use char because int might match the return type of a GCC
24817   builtin and then its argument prototype would still apply.  */
24818#ifdef __cplusplus
24819extern "C"
24820#endif
24821char gethostbyname ();
24822int
24823main ()
24824{
24825return gethostbyname ();
24826  ;
24827  return 0;
24828}
24829_ACEOF
24830if ac_fn_c_try_link "$LINENO"; then :
24831  ac_cv_lib_bsd_gethostbyname=yes
24832else
24833  ac_cv_lib_bsd_gethostbyname=no
24834fi
24835rm -f core conftest.err conftest.$ac_objext \
24836    conftest$ac_exeext conftest.$ac_ext
24837LIBS=$ac_check_lib_save_LIBS
24838fi
24839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24840$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24841if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24842  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24843fi
24844
24845      fi
24846    fi
24847
24848    # lieder@skyler.mavd.honeywell.com says without -lsocket,
24849    # socket/setsockopt and other routines are undefined under SCO ODT
24850    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24851    # on later versions), says Simon Leinen: it contains gethostby*
24852    # variants that don't use the name server (or something).  -lsocket
24853    # must be given before -lnsl if both are needed.  We assume that
24854    # if connect needs -lnsl, so does gethostbyname.
24855    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24856if test "x$ac_cv_func_connect" = x""yes; then :
24857
24858fi
24859
24860    if test $ac_cv_func_connect = no; then
24861      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24862$as_echo_n "checking for connect in -lsocket... " >&6; }
24863if test "${ac_cv_lib_socket_connect+set}" = set; then :
24864  $as_echo_n "(cached) " >&6
24865else
24866  ac_check_lib_save_LIBS=$LIBS
24867LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869/* end confdefs.h.  */
24870
24871/* Override any GCC internal prototype to avoid an error.
24872   Use char because int might match the return type of a GCC
24873   builtin and then its argument prototype would still apply.  */
24874#ifdef __cplusplus
24875extern "C"
24876#endif
24877char connect ();
24878int
24879main ()
24880{
24881return connect ();
24882  ;
24883  return 0;
24884}
24885_ACEOF
24886if ac_fn_c_try_link "$LINENO"; then :
24887  ac_cv_lib_socket_connect=yes
24888else
24889  ac_cv_lib_socket_connect=no
24890fi
24891rm -f core conftest.err conftest.$ac_objext \
24892    conftest$ac_exeext conftest.$ac_ext
24893LIBS=$ac_check_lib_save_LIBS
24894fi
24895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24896$as_echo "$ac_cv_lib_socket_connect" >&6; }
24897if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24898  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24899fi
24900
24901    fi
24902
24903    # Guillermo Gomez says -lposix is necessary on A/UX.
24904    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24905if test "x$ac_cv_func_remove" = x""yes; then :
24906
24907fi
24908
24909    if test $ac_cv_func_remove = no; then
24910      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24911$as_echo_n "checking for remove in -lposix... " >&6; }
24912if test "${ac_cv_lib_posix_remove+set}" = set; then :
24913  $as_echo_n "(cached) " >&6
24914else
24915  ac_check_lib_save_LIBS=$LIBS
24916LIBS="-lposix  $LIBS"
24917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24918/* end confdefs.h.  */
24919
24920/* Override any GCC internal prototype to avoid an error.
24921   Use char because int might match the return type of a GCC
24922   builtin and then its argument prototype would still apply.  */
24923#ifdef __cplusplus
24924extern "C"
24925#endif
24926char remove ();
24927int
24928main ()
24929{
24930return remove ();
24931  ;
24932  return 0;
24933}
24934_ACEOF
24935if ac_fn_c_try_link "$LINENO"; then :
24936  ac_cv_lib_posix_remove=yes
24937else
24938  ac_cv_lib_posix_remove=no
24939fi
24940rm -f core conftest.err conftest.$ac_objext \
24941    conftest$ac_exeext conftest.$ac_ext
24942LIBS=$ac_check_lib_save_LIBS
24943fi
24944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24945$as_echo "$ac_cv_lib_posix_remove" >&6; }
24946if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24947  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24948fi
24949
24950    fi
24951
24952    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24953    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24954if test "x$ac_cv_func_shmat" = x""yes; then :
24955
24956fi
24957
24958    if test $ac_cv_func_shmat = no; then
24959      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24960$as_echo_n "checking for shmat in -lipc... " >&6; }
24961if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24962  $as_echo_n "(cached) " >&6
24963else
24964  ac_check_lib_save_LIBS=$LIBS
24965LIBS="-lipc  $LIBS"
24966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24967/* end confdefs.h.  */
24968
24969/* Override any GCC internal prototype to avoid an error.
24970   Use char because int might match the return type of a GCC
24971   builtin and then its argument prototype would still apply.  */
24972#ifdef __cplusplus
24973extern "C"
24974#endif
24975char shmat ();
24976int
24977main ()
24978{
24979return shmat ();
24980  ;
24981  return 0;
24982}
24983_ACEOF
24984if ac_fn_c_try_link "$LINENO"; then :
24985  ac_cv_lib_ipc_shmat=yes
24986else
24987  ac_cv_lib_ipc_shmat=no
24988fi
24989rm -f core conftest.err conftest.$ac_objext \
24990    conftest$ac_exeext conftest.$ac_ext
24991LIBS=$ac_check_lib_save_LIBS
24992fi
24993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24994$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24995if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24996  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24997fi
24998
24999    fi
25000  fi
25001
25002  # Check for libraries that X11R6 Xt/Xaw programs need.
25003  ac_save_LDFLAGS=$LDFLAGS
25004  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25005  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25006  # check for ICE first), but we must link in the order -lSM -lICE or
25007  # we get undefined symbols.  So assume we have SM if we have ICE.
25008  # These have to be linked with before -lX11, unlike the other
25009  # libraries we check for below, so use a different variable.
25010  # John Interrante, Karl Berry
25011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25012$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25013if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25014  $as_echo_n "(cached) " >&6
25015else
25016  ac_check_lib_save_LIBS=$LIBS
25017LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25019/* end confdefs.h.  */
25020
25021/* Override any GCC internal prototype to avoid an error.
25022   Use char because int might match the return type of a GCC
25023   builtin and then its argument prototype would still apply.  */
25024#ifdef __cplusplus
25025extern "C"
25026#endif
25027char IceConnectionNumber ();
25028int
25029main ()
25030{
25031return IceConnectionNumber ();
25032  ;
25033  return 0;
25034}
25035_ACEOF
25036if ac_fn_c_try_link "$LINENO"; then :
25037  ac_cv_lib_ICE_IceConnectionNumber=yes
25038else
25039  ac_cv_lib_ICE_IceConnectionNumber=no
25040fi
25041rm -f core conftest.err conftest.$ac_objext \
25042    conftest$ac_exeext conftest.$ac_ext
25043LIBS=$ac_check_lib_save_LIBS
25044fi
25045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25046$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25047if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25048  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25049fi
25050
25051  LDFLAGS=$ac_save_LDFLAGS
25052
25053fi
25054
25055
25056# try to figure out if we need any additional ld flags, like -R
25057# and yes, the autoconf X test is utterly broken
25058if test "$no_x" != yes; then
25059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special X linker flags" >&5
25060$as_echo_n "checking for special X linker flags... " >&6; }
25061if test "${krb_cv_sys_x_libs_rpath+set}" = set; then :
25062  $as_echo_n "(cached) " >&6
25063else
25064
25065	ac_save_libs="$LIBS"
25066	ac_save_cflags="$CFLAGS"
25067	CFLAGS="$CFLAGS $X_CFLAGS"
25068	krb_cv_sys_x_libs_rpath=""
25069	krb_cv_sys_x_libs=""
25070	for rflag in "" "-R" "-R " "-rpath "; do
25071		if test "$rflag" = ""; then
25072			foo="$X_LIBS"
25073		else
25074			foo=""
25075			for flag in $X_LIBS; do
25076			case $flag in
25077			-L*)
25078				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
25079				;;
25080			*)
25081				foo="$foo $flag"
25082				;;
25083			esac
25084			done
25085		fi
25086		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25087		if test "$cross_compiling" = yes; then :
25088  krb_cv_sys_x_libs_rpath="" ; krb_cv_sys_x_libs="" ; break
25089else
25090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25091/* end confdefs.h.  */
25092
25093		#include <X11/Xlib.h>
25094		foo(void)
25095		{
25096		XOpenDisplay(NULL);
25097		}
25098		main(int argc, char **argv)
25099		{
25100		return 0;
25101		}
25102
25103_ACEOF
25104if ac_fn_c_try_run "$LINENO"; then :
25105  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
25106else
25107  :
25108fi
25109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25110  conftest.$ac_objext conftest.beam conftest.$ac_ext
25111fi
25112
25113	done
25114	LIBS="$ac_save_libs"
25115	CFLAGS="$ac_save_cflags"
25116
25117fi
25118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_sys_x_libs_rpath" >&5
25119$as_echo "$krb_cv_sys_x_libs_rpath" >&6; }
25120	X_LIBS="$krb_cv_sys_x_libs"
25121fi
25122
25123
25124 if test "$no_x" != yes; then
25125  HAVE_X_TRUE=
25126  HAVE_X_FALSE='#'
25127else
25128  HAVE_X_TRUE='#'
25129  HAVE_X_FALSE=
25130fi
25131
25132
25133
25134save_CFLAGS="$CFLAGS"
25135CFLAGS="$X_CFLAGS $CFLAGS"
25136save_LIBS="$LIBS"
25137LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
25138save_LDFLAGS="$LDFLAGS"
25139LDFLAGS="$LDFLAGS $X_LIBS"
25140
25141## check for XauWriteAuth first, so we detect the case where
25142## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this
25143## could be done by checking for XauReadAuth in -lXau first, but this
25144## breaks in IRIX 6.5
25145
25146
25147
25148
25149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauWriteAuth" >&5
25150$as_echo_n "checking for XauWriteAuth... " >&6; }
25151if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then :
25152  $as_echo_n "(cached) " >&6
25153else
25154
25155if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
25156	ac_save_LIBS="$LIBS"
25157	for ac_lib in "" X11 Xau; do
25158		case "$ac_lib" in
25159		"") ;;
25160		yes) ac_lib="" ;;
25161		no) continue ;;
25162		-l*) ;;
25163		*) ac_lib="-l$ac_lib" ;;
25164		esac
25165		LIBS=" $ac_lib  $ac_save_LIBS"
25166		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25167/* end confdefs.h.  */
25168#include <X11/Xauth.h>
25169int
25170main ()
25171{
25172XauWriteAuth(0,0)
25173  ;
25174  return 0;
25175}
25176_ACEOF
25177if ac_fn_c_try_link "$LINENO"; then :
25178  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
25179fi
25180rm -f core conftest.err conftest.$ac_objext \
25181    conftest$ac_exeext conftest.$ac_ext
25182	done
25183	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
25184	LIBS="$ac_save_LIBS"
25185fi
25186
25187fi
25188
25189
25190eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
25191
25192if false; then
25193	for ac_func in XauWriteAuth
25194do :
25195  ac_fn_c_check_func "$LINENO" "XauWriteAuth" "ac_cv_func_XauWriteAuth"
25196if test "x$ac_cv_func_XauWriteAuth" = x""yes; then :
25197  cat >>confdefs.h <<_ACEOF
25198#define HAVE_XAUWRITEAUTH 1
25199_ACEOF
25200
25201fi
25202done
25203
25204fi
25205# XauWriteAuth
25206eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25207eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25208eval "LIB_XauWriteAuth=$ac_res"
25209
25210case "$ac_res" in
25211	yes)
25212	eval "ac_cv_func_XauWriteAuth=yes"
25213	eval "LIB_XauWriteAuth="
25214	cat >>confdefs.h <<_ACEOF
25215#define $ac_tr_func 1
25216_ACEOF
25217
25218	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25219$as_echo "yes" >&6; }
25220	;;
25221	no)
25222	eval "ac_cv_func_XauWriteAuth=no"
25223	eval "LIB_XauWriteAuth="
25224	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25225$as_echo "no" >&6; }
25226	;;
25227	*)
25228	eval "ac_cv_func_XauWriteAuth=yes"
25229	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25230	cat >>confdefs.h <<_ACEOF
25231#define $ac_tr_func 1
25232_ACEOF
25233
25234	cat >>confdefs.h <<_ACEOF
25235#define $ac_tr_lib 1
25236_ACEOF
25237
25238	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
25239$as_echo "yes, in $ac_res" >&6; }
25240	;;
25241esac
25242
25243
25244ac_xxx="$LIBS"
25245LIBS="$LIB_XauWriteAuth $LIBS"
25246
25247
25248
25249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauReadAuth" >&5
25250$as_echo_n "checking for XauReadAuth... " >&6; }
25251if test "${ac_cv_funclib_XauReadAuth+set}" = set; then :
25252  $as_echo_n "(cached) " >&6
25253else
25254
25255if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
25256	ac_save_LIBS="$LIBS"
25257	for ac_lib in "" X11 Xau; do
25258		case "$ac_lib" in
25259		"") ;;
25260		yes) ac_lib="" ;;
25261		no) continue ;;
25262		-l*) ;;
25263		*) ac_lib="-l$ac_lib" ;;
25264		esac
25265		LIBS=" $ac_lib  $ac_save_LIBS"
25266		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25267/* end confdefs.h.  */
25268#include <X11/Xauth.h>
25269int
25270main ()
25271{
25272XauReadAuth(0)
25273  ;
25274  return 0;
25275}
25276_ACEOF
25277if ac_fn_c_try_link "$LINENO"; then :
25278  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
25279fi
25280rm -f core conftest.err conftest.$ac_objext \
25281    conftest$ac_exeext conftest.$ac_ext
25282	done
25283	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
25284	LIBS="$ac_save_LIBS"
25285fi
25286
25287fi
25288
25289
25290eval "ac_res=\$ac_cv_funclib_XauReadAuth"
25291
25292if false; then
25293	for ac_func in XauReadAuth
25294do :
25295  ac_fn_c_check_func "$LINENO" "XauReadAuth" "ac_cv_func_XauReadAuth"
25296if test "x$ac_cv_func_XauReadAuth" = x""yes; then :
25297  cat >>confdefs.h <<_ACEOF
25298#define HAVE_XAUREADAUTH 1
25299_ACEOF
25300
25301fi
25302done
25303
25304fi
25305# XauReadAuth
25306eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25307eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25308eval "LIB_XauReadAuth=$ac_res"
25309
25310case "$ac_res" in
25311	yes)
25312	eval "ac_cv_func_XauReadAuth=yes"
25313	eval "LIB_XauReadAuth="
25314	cat >>confdefs.h <<_ACEOF
25315#define $ac_tr_func 1
25316_ACEOF
25317
25318	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25319$as_echo "yes" >&6; }
25320	;;
25321	no)
25322	eval "ac_cv_func_XauReadAuth=no"
25323	eval "LIB_XauReadAuth="
25324	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25325$as_echo "no" >&6; }
25326	;;
25327	*)
25328	eval "ac_cv_func_XauReadAuth=yes"
25329	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25330	cat >>confdefs.h <<_ACEOF
25331#define $ac_tr_func 1
25332_ACEOF
25333
25334	cat >>confdefs.h <<_ACEOF
25335#define $ac_tr_lib 1
25336_ACEOF
25337
25338	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
25339$as_echo "yes, in $ac_res" >&6; }
25340	;;
25341esac
25342
25343
25344LIBS="$LIB_XauReadAauth $LIBS"
25345
25346
25347
25348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauFileName" >&5
25349$as_echo_n "checking for XauFileName... " >&6; }
25350if test "${ac_cv_funclib_XauFileName+set}" = set; then :
25351  $as_echo_n "(cached) " >&6
25352else
25353
25354if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
25355	ac_save_LIBS="$LIBS"
25356	for ac_lib in "" X11 Xau; do
25357		case "$ac_lib" in
25358		"") ;;
25359		yes) ac_lib="" ;;
25360		no) continue ;;
25361		-l*) ;;
25362		*) ac_lib="-l$ac_lib" ;;
25363		esac
25364		LIBS=" $ac_lib  $ac_save_LIBS"
25365		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25366/* end confdefs.h.  */
25367#include <X11/Xauth.h>
25368int
25369main ()
25370{
25371XauFileName()
25372  ;
25373  return 0;
25374}
25375_ACEOF
25376if ac_fn_c_try_link "$LINENO"; then :
25377  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
25378fi
25379rm -f core conftest.err conftest.$ac_objext \
25380    conftest$ac_exeext conftest.$ac_ext
25381	done
25382	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
25383	LIBS="$ac_save_LIBS"
25384fi
25385
25386fi
25387
25388
25389eval "ac_res=\$ac_cv_funclib_XauFileName"
25390
25391if false; then
25392	for ac_func in XauFileName
25393do :
25394  ac_fn_c_check_func "$LINENO" "XauFileName" "ac_cv_func_XauFileName"
25395if test "x$ac_cv_func_XauFileName" = x""yes; then :
25396  cat >>confdefs.h <<_ACEOF
25397#define HAVE_XAUFILENAME 1
25398_ACEOF
25399
25400fi
25401done
25402
25403fi
25404# XauFileName
25405eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25406eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25407eval "LIB_XauFileName=$ac_res"
25408
25409case "$ac_res" in
25410	yes)
25411	eval "ac_cv_func_XauFileName=yes"
25412	eval "LIB_XauFileName="
25413	cat >>confdefs.h <<_ACEOF
25414#define $ac_tr_func 1
25415_ACEOF
25416
25417	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25418$as_echo "yes" >&6; }
25419	;;
25420	no)
25421	eval "ac_cv_func_XauFileName=no"
25422	eval "LIB_XauFileName="
25423	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25424$as_echo "no" >&6; }
25425	;;
25426	*)
25427	eval "ac_cv_func_XauFileName=yes"
25428	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25429	cat >>confdefs.h <<_ACEOF
25430#define $ac_tr_func 1
25431_ACEOF
25432
25433	cat >>confdefs.h <<_ACEOF
25434#define $ac_tr_lib 1
25435_ACEOF
25436
25437	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
25438$as_echo "yes, in $ac_res" >&6; }
25439	;;
25440esac
25441
25442
25443LIBS="$ac_xxx"
25444
25445## set LIB_XauReadAuth to union of these tests, since this is what the
25446## Makefiles are using
25447case "$ac_cv_funclib_XauWriteAuth" in
25448yes)	;;
25449no)	;;
25450*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
25451		if test "$ac_cv_funclib_XauFileName" = yes; then
25452			LIB_XauReadAuth="$LIB_XauWriteAuth"
25453		else
25454			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
25455		fi
25456	else
25457		if test "$ac_cv_funclib_XauFileName" = yes; then
25458			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
25459		else
25460			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
25461		fi
25462	fi
25463	;;
25464esac
25465
25466if test "$AUTOMAKE" != ""; then
25467	 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
25468  NEED_WRITEAUTH_TRUE=
25469  NEED_WRITEAUTH_FALSE='#'
25470else
25471  NEED_WRITEAUTH_TRUE='#'
25472  NEED_WRITEAUTH_FALSE=
25473fi
25474
25475else
25476
25477
25478	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
25479		NEED_WRITEAUTH_TRUE=
25480		NEED_WRITEAUTH_FALSE='#'
25481	else
25482		NEED_WRITEAUTH_TRUE='#'
25483		NEED_WRITEAUTH_FALSE=
25484	fi
25485fi
25486CFLAGS=$save_CFLAGS
25487LIBS=$save_LIBS
25488LDFLAGS=$save_LDFLAGS
25489
25490
25491
25492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25493$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25494if test "${ac_cv_c_const+set}" = set; then :
25495  $as_echo_n "(cached) " >&6
25496else
25497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498/* end confdefs.h.  */
25499
25500int
25501main ()
25502{
25503/* FIXME: Include the comments suggested by Paul. */
25504#ifndef __cplusplus
25505  /* Ultrix mips cc rejects this.  */
25506  typedef int charset[2];
25507  const charset cs;
25508  /* SunOS 4.1.1 cc rejects this.  */
25509  char const *const *pcpcc;
25510  char **ppc;
25511  /* NEC SVR4.0.2 mips cc rejects this.  */
25512  struct point {int x, y;};
25513  static struct point const zero = {0,0};
25514  /* AIX XL C 1.02.0.0 rejects this.
25515     It does not let you subtract one const X* pointer from another in
25516     an arm of an if-expression whose if-part is not a constant
25517     expression */
25518  const char *g = "string";
25519  pcpcc = &g + (g ? g-g : 0);
25520  /* HPUX 7.0 cc rejects these. */
25521  ++pcpcc;
25522  ppc = (char**) pcpcc;
25523  pcpcc = (char const *const *) ppc;
25524  { /* SCO 3.2v4 cc rejects this.  */
25525    char *t;
25526    char const *s = 0 ? (char *) 0 : (char const *) 0;
25527
25528    *t++ = 0;
25529    if (s) return 0;
25530  }
25531  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25532    int x[] = {25, 17};
25533    const int *foo = &x[0];
25534    ++foo;
25535  }
25536  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25537    typedef const int *iptr;
25538    iptr p = 0;
25539    ++p;
25540  }
25541  { /* AIX XL C 1.02.0.0 rejects this saying
25542       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25543    struct s { int j; const int *ap[3]; };
25544    struct s *b; b->j = 5;
25545  }
25546  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25547    const int foo = 10;
25548    if (!foo) return 0;
25549  }
25550  return !cs[0] && !zero.x;
25551#endif
25552
25553  ;
25554  return 0;
25555}
25556_ACEOF
25557if ac_fn_c_try_compile "$LINENO"; then :
25558  ac_cv_c_const=yes
25559else
25560  ac_cv_c_const=no
25561fi
25562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25563fi
25564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25565$as_echo "$ac_cv_c_const" >&6; }
25566if test $ac_cv_c_const = no; then
25567
25568$as_echo "#define const /**/" >>confdefs.h
25569
25570fi
25571
25572ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
25573if test "x$ac_cv_type_off_t" = x""yes; then :
25574
25575else
25576
25577cat >>confdefs.h <<_ACEOF
25578#define off_t long int
25579_ACEOF
25580
25581fi
25582
25583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
25584$as_echo_n "checking for mode_t... " >&6; }
25585if test "${ac_cv_type_mode_t+set}" = set; then :
25586  $as_echo_n "(cached) " >&6
25587else
25588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25589/* end confdefs.h.  */
25590#include <sys/types.h>
25591#if STDC_HEADERS
25592#include <stdlib.h>
25593#include <stddef.h>
25594#endif
25595
25596_ACEOF
25597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25598  $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
25599  ac_cv_type_mode_t=yes
25600else
25601  ac_cv_type_mode_t=no
25602fi
25603rm -f conftest*
25604
25605fi
25606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mode_t" >&5
25607$as_echo "$ac_cv_type_mode_t" >&6; }
25608if test $ac_cv_type_mode_t = no; then
25609
25610$as_echo "#define mode_t unsigned short" >>confdefs.h
25611
25612fi
25613
25614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
25615$as_echo_n "checking for sig_atomic_t... " >&6; }
25616if test "${ac_cv_type_sig_atomic_t+set}" = set; then :
25617  $as_echo_n "(cached) " >&6
25618else
25619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620/* end confdefs.h.  */
25621#include <sys/types.h>
25622#if STDC_HEADERS
25623#include <stdlib.h>
25624#include <stddef.h>
25625#endif
25626#include <signal.h>
25627_ACEOF
25628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25629  $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
25630  ac_cv_type_sig_atomic_t=yes
25631else
25632  ac_cv_type_sig_atomic_t=no
25633fi
25634rm -f conftest*
25635
25636fi
25637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
25638$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
25639if test $ac_cv_type_sig_atomic_t = no; then
25640
25641$as_echo "#define sig_atomic_t int" >>confdefs.h
25642
25643fi
25644
25645
25646
25647cv=`echo "long long" | sed 'y%./+- %__p__%'`
25648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
25649$as_echo_n "checking for long long... " >&6; }
25650if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
25651  $as_echo_n "(cached) " >&6
25652else
25653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25654/* end confdefs.h.  */
25655
25656#include <sys/types.h>
25657#if STDC_HEADERS
25658#include <stdlib.h>
25659#include <stddef.h>
25660#endif
25661
25662int
25663main ()
25664{
25665long long foo;
25666  ;
25667  return 0;
25668}
25669_ACEOF
25670if ac_fn_c_try_compile "$LINENO"; then :
25671  eval "ac_cv_type_$cv=yes"
25672else
25673  eval "ac_cv_type_$cv=no"
25674fi
25675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25676fi
25677ac_foo=`eval echo \\$ac_cv_type_$cv`
25678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
25679$as_echo "$ac_foo" >&6; }
25680if test "$ac_foo" = yes; then
25681  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
25682if false; then
25683	ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
25684if test "x$ac_cv_type_long_long" = x""yes; then :
25685
25686cat >>confdefs.h <<_ACEOF
25687#define HAVE_LONG_LONG 1
25688_ACEOF
25689
25690
25691fi
25692
25693fi
25694
25695cat >>confdefs.h <<_ACEOF
25696#define $ac_tr_hdr 1
25697_ACEOF
25698
25699fi
25700
25701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25702$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25703if test "${ac_cv_header_time+set}" = set; then :
25704  $as_echo_n "(cached) " >&6
25705else
25706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25707/* end confdefs.h.  */
25708#include <sys/types.h>
25709#include <sys/time.h>
25710#include <time.h>
25711
25712int
25713main ()
25714{
25715if ((struct tm *) 0)
25716return 0;
25717  ;
25718  return 0;
25719}
25720_ACEOF
25721if ac_fn_c_try_compile "$LINENO"; then :
25722  ac_cv_header_time=yes
25723else
25724  ac_cv_header_time=no
25725fi
25726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25727fi
25728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25729$as_echo "$ac_cv_header_time" >&6; }
25730if test $ac_cv_header_time = yes; then
25731
25732$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25733
25734fi
25735
25736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25737$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25738if test "${ac_cv_struct_tm+set}" = set; then :
25739  $as_echo_n "(cached) " >&6
25740else
25741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25742/* end confdefs.h.  */
25743#include <sys/types.h>
25744#include <time.h>
25745
25746int
25747main ()
25748{
25749struct tm tm;
25750				     int *p = &tm.tm_sec;
25751				     return !p;
25752  ;
25753  return 0;
25754}
25755_ACEOF
25756if ac_fn_c_try_compile "$LINENO"; then :
25757  ac_cv_struct_tm=time.h
25758else
25759  ac_cv_struct_tm=sys/time.h
25760fi
25761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25762fi
25763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25764$as_echo "$ac_cv_struct_tm" >&6; }
25765if test $ac_cv_struct_tm = sys/time.h; then
25766
25767$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25768
25769fi
25770
25771
25772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25773$as_echo_n "checking for ANSI C header files... " >&6; }
25774if test "${ac_cv_header_stdc+set}" = set; then :
25775  $as_echo_n "(cached) " >&6
25776else
25777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25778/* end confdefs.h.  */
25779#include <stdlib.h>
25780#include <stdarg.h>
25781#include <string.h>
25782#include <float.h>
25783
25784int
25785main ()
25786{
25787
25788  ;
25789  return 0;
25790}
25791_ACEOF
25792if ac_fn_c_try_compile "$LINENO"; then :
25793  ac_cv_header_stdc=yes
25794else
25795  ac_cv_header_stdc=no
25796fi
25797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25798
25799if test $ac_cv_header_stdc = yes; then
25800  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25802/* end confdefs.h.  */
25803#include <string.h>
25804
25805_ACEOF
25806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25807  $EGREP "memchr" >/dev/null 2>&1; then :
25808
25809else
25810  ac_cv_header_stdc=no
25811fi
25812rm -f conftest*
25813
25814fi
25815
25816if test $ac_cv_header_stdc = yes; then
25817  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25819/* end confdefs.h.  */
25820#include <stdlib.h>
25821
25822_ACEOF
25823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25824  $EGREP "free" >/dev/null 2>&1; then :
25825
25826else
25827  ac_cv_header_stdc=no
25828fi
25829rm -f conftest*
25830
25831fi
25832
25833if test $ac_cv_header_stdc = yes; then
25834  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25835  if test "$cross_compiling" = yes; then :
25836  :
25837else
25838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25839/* end confdefs.h.  */
25840#include <ctype.h>
25841#include <stdlib.h>
25842#if ((' ' & 0x0FF) == 0x020)
25843# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25844# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25845#else
25846# define ISLOWER(c) \
25847		   (('a' <= (c) && (c) <= 'i') \
25848		     || ('j' <= (c) && (c) <= 'r') \
25849		     || ('s' <= (c) && (c) <= 'z'))
25850# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25851#endif
25852
25853#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25854int
25855main ()
25856{
25857  int i;
25858  for (i = 0; i < 256; i++)
25859    if (XOR (islower (i), ISLOWER (i))
25860	|| toupper (i) != TOUPPER (i))
25861      return 2;
25862  return 0;
25863}
25864_ACEOF
25865if ac_fn_c_try_run "$LINENO"; then :
25866
25867else
25868  ac_cv_header_stdc=no
25869fi
25870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25871  conftest.$ac_objext conftest.beam conftest.$ac_ext
25872fi
25873
25874fi
25875fi
25876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25877$as_echo "$ac_cv_header_stdc" >&6; }
25878if test $ac_cv_header_stdc = yes; then
25879
25880$as_echo "#define STDC_HEADERS 1" >>confdefs.h
25881
25882fi
25883
25884
25885for ac_header in \
25886	CommonCrypto/CommonDigest.h		\
25887	CommonCrypto/CommonCryptor.h		\
25888	arpa/ftp.h				\
25889	arpa/telnet.h				\
25890	bind/bitypes.h				\
25891	bsdsetjmp.h				\
25892	curses.h				\
25893	dlfcn.h					\
25894	execinfo.h				\
25895	fnmatch.h				\
25896	inttypes.h				\
25897	io.h					\
25898	libutil.h				\
25899	limits.h				\
25900	maillock.h				\
25901	netgroup.h				\
25902	netinet/in6_machtypes.h			\
25903	pthread.h				\
25904	pty.h					\
25905	sac.h					\
25906	sgtty.h					\
25907	siad.h					\
25908	signal.h				\
25909	strings.h				\
25910	stropts.h				\
25911	sys/bitypes.h				\
25912	sys/category.h				\
25913	sys/file.h				\
25914	sys/filio.h				\
25915	sys/ioccom.h				\
25916	sys/mman.h				\
25917	sys/param.h				\
25918	sys/pty.h				\
25919	sys/ptyio.h				\
25920	sys/select.h				\
25921	sys/socket.h				\
25922	sys/str_tty.h				\
25923	sys/stream.h				\
25924	sys/stropts.h				\
25925	sys/syscall.h				\
25926	sys/termio.h				\
25927	sys/timeb.h				\
25928	sys/times.h				\
25929	sys/types.h				\
25930	sys/un.h				\
25931	locale.h				\
25932	termcap.h				\
25933	termio.h				\
25934	termios.h				\
25935	time.h					\
25936	tmpdir.h				\
25937	udb.h					\
25938	util.h					\
25939	utmp.h					\
25940	utmpx.h					\
25941
25942do :
25943  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25944ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25945eval as_val=\$$as_ac_Header
25946   if test "x$as_val" = x""yes; then :
25947  cat >>confdefs.h <<_ACEOF
25948#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25949_ACEOF
25950
25951fi
25952
25953done
25954
25955
25956for ac_header in term.h
25957do :
25958  ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
25959if test "x$ac_cv_header_term_h" = x""yes; then :
25960  cat >>confdefs.h <<_ACEOF
25961#define HAVE_TERM_H 1
25962_ACEOF
25963
25964fi
25965
25966done
25967
25968
25969for ac_header in asl.h
25970do :
25971  ac_fn_c_check_header_compile "$LINENO" "asl.h" "ac_cv_header_asl_h" "
25972#include <asl.h>
25973#ifndef ASL_STRING_EMERG
25974#error ASL_STRING_EMERG missing
25975#endif
25976"
25977if test "x$ac_cv_header_asl_h" = x""yes; then :
25978  cat >>confdefs.h <<_ACEOF
25979#define HAVE_ASL_H 1
25980_ACEOF
25981
25982fi
25983
25984done
25985
25986
25987for ac_header in net/if.h
25988do :
25989  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
25990#if HAVE_SYS_SOCKET_H
25991#include <sys/socket.h>
25992#endif
25993"
25994if test "x$ac_cv_header_net_if_h" = x""yes; then :
25995  cat >>confdefs.h <<_ACEOF
25996#define HAVE_NET_IF_H 1
25997_ACEOF
25998
25999fi
26000
26001done
26002
26003
26004for ac_header in sys/ptyvar.h
26005do :
26006  ac_fn_c_check_header_compile "$LINENO" "sys/ptyvar.h" "ac_cv_header_sys_ptyvar_h" "$ac_includes_default
26007#if HAVE_SYS_TTY_H
26008#include <sys/tty.h>
26009#endif
26010"
26011if test "x$ac_cv_header_sys_ptyvar_h" = x""yes; then :
26012  cat >>confdefs.h <<_ACEOF
26013#define HAVE_SYS_PTYVAR_H 1
26014_ACEOF
26015
26016fi
26017
26018done
26019
26020
26021for ac_header in sys/strtty.h
26022do :
26023  ac_fn_c_check_header_compile "$LINENO" "sys/strtty.h" "ac_cv_header_sys_strtty_h" "$ac_includes_default
26024#if HAVE_TERMIOS_H
26025#include <termios.h>
26026#endif
26027#if HAVE_SYS_STREAM_H
26028#include <sys/stream.h>
26029#endif
26030"
26031if test "x$ac_cv_header_sys_strtty_h" = x""yes; then :
26032  cat >>confdefs.h <<_ACEOF
26033#define HAVE_SYS_STRTTY_H 1
26034_ACEOF
26035
26036fi
26037
26038done
26039
26040
26041for ac_header in sys/ucred.h
26042do :
26043  ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
26044#if HAVE_SYS_TYPES_H
26045#include <sys/types.h>
26046#endif
26047#if HAVE_SYS_PARAM_H
26048#include <sys/param.h>
26049#endif
26050"
26051if test "x$ac_cv_header_sys_ucred_h" = x""yes; then :
26052  cat >>confdefs.h <<_ACEOF
26053#define HAVE_SYS_UCRED_H 1
26054_ACEOF
26055
26056fi
26057
26058done
26059
26060
26061for ac_header in security/pam_modules.h
26062do :
26063  ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "$ac_includes_default
26064#include <security/pam_appl.h>
26065
26066"
26067if test "x$ac_cv_header_security_pam_modules_h" = x""yes; then :
26068  cat >>confdefs.h <<_ACEOF
26069#define HAVE_SECURITY_PAM_MODULES_H 1
26070_ACEOF
26071
26072fi
26073
26074done
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logwtmp" >&5
26086$as_echo_n "checking for logwtmp... " >&6; }
26087if test "${ac_cv_funclib_logwtmp+set}" = set; then :
26088  $as_echo_n "(cached) " >&6
26089else
26090
26091if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
26092	ac_save_LIBS="$LIBS"
26093	for ac_lib in "" util; do
26094		case "$ac_lib" in
26095		"") ;;
26096		yes) ac_lib="" ;;
26097		no) continue ;;
26098		-l*) ;;
26099		*) ac_lib="-l$ac_lib" ;;
26100		esac
26101		LIBS=" $ac_lib  $ac_save_LIBS"
26102		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26103/* end confdefs.h.  */
26104
26105#ifdef HAVE_UTIL_H
26106#include <util.h>
26107#endif
26108
26109int
26110main ()
26111{
26112logwtmp(0,0,0)
26113  ;
26114  return 0;
26115}
26116_ACEOF
26117if ac_fn_c_try_link "$LINENO"; then :
26118  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
26119fi
26120rm -f core conftest.err conftest.$ac_objext \
26121    conftest$ac_exeext conftest.$ac_ext
26122	done
26123	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
26124	LIBS="$ac_save_LIBS"
26125fi
26126
26127fi
26128
26129
26130eval "ac_res=\$ac_cv_funclib_logwtmp"
26131
26132if false; then
26133	for ac_func in logwtmp
26134do :
26135  ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp"
26136if test "x$ac_cv_func_logwtmp" = x""yes; then :
26137  cat >>confdefs.h <<_ACEOF
26138#define HAVE_LOGWTMP 1
26139_ACEOF
26140
26141fi
26142done
26143
26144fi
26145# logwtmp
26146eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26147eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26148eval "LIB_logwtmp=$ac_res"
26149
26150case "$ac_res" in
26151	yes)
26152	eval "ac_cv_func_logwtmp=yes"
26153	eval "LIB_logwtmp="
26154	cat >>confdefs.h <<_ACEOF
26155#define $ac_tr_func 1
26156_ACEOF
26157
26158	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26159$as_echo "yes" >&6; }
26160	;;
26161	no)
26162	eval "ac_cv_func_logwtmp=no"
26163	eval "LIB_logwtmp="
26164	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26165$as_echo "no" >&6; }
26166	;;
26167	*)
26168	eval "ac_cv_func_logwtmp=yes"
26169	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26170	cat >>confdefs.h <<_ACEOF
26171#define $ac_tr_func 1
26172_ACEOF
26173
26174	cat >>confdefs.h <<_ACEOF
26175#define $ac_tr_lib 1
26176_ACEOF
26177
26178	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
26179$as_echo "yes, in $ac_res" >&6; }
26180	;;
26181esac
26182
26183
26184
26185
26186
26187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logout" >&5
26188$as_echo_n "checking for logout... " >&6; }
26189if test "${ac_cv_funclib_logout+set}" = set; then :
26190  $as_echo_n "(cached) " >&6
26191else
26192
26193if eval "test \"\$ac_cv_func_logout\" != yes" ; then
26194	ac_save_LIBS="$LIBS"
26195	for ac_lib in "" util; do
26196		case "$ac_lib" in
26197		"") ;;
26198		yes) ac_lib="" ;;
26199		no) continue ;;
26200		-l*) ;;
26201		*) ac_lib="-l$ac_lib" ;;
26202		esac
26203		LIBS=" $ac_lib  $ac_save_LIBS"
26204		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26205/* end confdefs.h.  */
26206
26207#ifdef HAVE_UTIL_H
26208#include <util.h>
26209#endif
26210
26211int
26212main ()
26213{
26214logout(0)
26215  ;
26216  return 0;
26217}
26218_ACEOF
26219if ac_fn_c_try_link "$LINENO"; then :
26220  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
26221fi
26222rm -f core conftest.err conftest.$ac_objext \
26223    conftest$ac_exeext conftest.$ac_ext
26224	done
26225	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
26226	LIBS="$ac_save_LIBS"
26227fi
26228
26229fi
26230
26231
26232eval "ac_res=\$ac_cv_funclib_logout"
26233
26234if false; then
26235	for ac_func in logout
26236do :
26237  ac_fn_c_check_func "$LINENO" "logout" "ac_cv_func_logout"
26238if test "x$ac_cv_func_logout" = x""yes; then :
26239  cat >>confdefs.h <<_ACEOF
26240#define HAVE_LOGOUT 1
26241_ACEOF
26242
26243fi
26244done
26245
26246fi
26247# logout
26248eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26249eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26250eval "LIB_logout=$ac_res"
26251
26252case "$ac_res" in
26253	yes)
26254	eval "ac_cv_func_logout=yes"
26255	eval "LIB_logout="
26256	cat >>confdefs.h <<_ACEOF
26257#define $ac_tr_func 1
26258_ACEOF
26259
26260	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26261$as_echo "yes" >&6; }
26262	;;
26263	no)
26264	eval "ac_cv_func_logout=no"
26265	eval "LIB_logout="
26266	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26267$as_echo "no" >&6; }
26268	;;
26269	*)
26270	eval "ac_cv_func_logout=yes"
26271	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26272	cat >>confdefs.h <<_ACEOF
26273#define $ac_tr_func 1
26274_ACEOF
26275
26276	cat >>confdefs.h <<_ACEOF
26277#define $ac_tr_lib 1
26278_ACEOF
26279
26280	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
26281$as_echo "yes, in $ac_res" >&6; }
26282	;;
26283esac
26284
26285
26286
26287
26288
26289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty" >&5
26290$as_echo_n "checking for openpty... " >&6; }
26291if test "${ac_cv_funclib_openpty+set}" = set; then :
26292  $as_echo_n "(cached) " >&6
26293else
26294
26295if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
26296	ac_save_LIBS="$LIBS"
26297	for ac_lib in "" util; do
26298		case "$ac_lib" in
26299		"") ;;
26300		yes) ac_lib="" ;;
26301		no) continue ;;
26302		-l*) ;;
26303		*) ac_lib="-l$ac_lib" ;;
26304		esac
26305		LIBS=" $ac_lib  $ac_save_LIBS"
26306		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26307/* end confdefs.h.  */
26308
26309#ifdef HAVE_UTIL_H
26310#include <util.h>
26311#endif
26312
26313int
26314main ()
26315{
26316openpty(0,0,0,0,0)
26317  ;
26318  return 0;
26319}
26320_ACEOF
26321if ac_fn_c_try_link "$LINENO"; then :
26322  eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
26323fi
26324rm -f core conftest.err conftest.$ac_objext \
26325    conftest$ac_exeext conftest.$ac_ext
26326	done
26327	eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
26328	LIBS="$ac_save_LIBS"
26329fi
26330
26331fi
26332
26333
26334eval "ac_res=\$ac_cv_funclib_openpty"
26335
26336if false; then
26337	for ac_func in openpty
26338do :
26339  ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
26340if test "x$ac_cv_func_openpty" = x""yes; then :
26341  cat >>confdefs.h <<_ACEOF
26342#define HAVE_OPENPTY 1
26343_ACEOF
26344
26345fi
26346done
26347
26348fi
26349# openpty
26350eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26351eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26352eval "LIB_openpty=$ac_res"
26353
26354case "$ac_res" in
26355	yes)
26356	eval "ac_cv_func_openpty=yes"
26357	eval "LIB_openpty="
26358	cat >>confdefs.h <<_ACEOF
26359#define $ac_tr_func 1
26360_ACEOF
26361
26362	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26363$as_echo "yes" >&6; }
26364	;;
26365	no)
26366	eval "ac_cv_func_openpty=no"
26367	eval "LIB_openpty="
26368	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26369$as_echo "no" >&6; }
26370	;;
26371	*)
26372	eval "ac_cv_func_openpty=yes"
26373	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26374	cat >>confdefs.h <<_ACEOF
26375#define $ac_tr_func 1
26376_ACEOF
26377
26378	cat >>confdefs.h <<_ACEOF
26379#define $ac_tr_lib 1
26380_ACEOF
26381
26382	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
26383$as_echo "yes, in $ac_res" >&6; }
26384	;;
26385esac
26386
26387
26388
26389
26390
26391
26392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent" >&5
26393$as_echo_n "checking for tgetent... " >&6; }
26394if test "${ac_cv_funclib_tgetent+set}" = set; then :
26395  $as_echo_n "(cached) " >&6
26396else
26397
26398if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
26399	ac_save_LIBS="$LIBS"
26400	for ac_lib in "" termcap ncurses curses; do
26401		case "$ac_lib" in
26402		"") ;;
26403		yes) ac_lib="" ;;
26404		no) continue ;;
26405		-l*) ;;
26406		*) ac_lib="-l$ac_lib" ;;
26407		esac
26408		LIBS=" $ac_lib  $ac_save_LIBS"
26409		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410/* end confdefs.h.  */
26411
26412#ifdef HAVE_TERMCAP_H
26413#include <termcap.h>
26414#endif
26415#ifdef HAVE_CURSES_H
26416#include <curses.h>
26417#endif
26418
26419int
26420main ()
26421{
26422tgetent(0,0)
26423  ;
26424  return 0;
26425}
26426_ACEOF
26427if ac_fn_c_try_link "$LINENO"; then :
26428  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
26429fi
26430rm -f core conftest.err conftest.$ac_objext \
26431    conftest$ac_exeext conftest.$ac_ext
26432	done
26433	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
26434	LIBS="$ac_save_LIBS"
26435fi
26436
26437fi
26438
26439
26440eval "ac_res=\$ac_cv_funclib_tgetent"
26441
26442if false; then
26443	for ac_func in tgetent
26444do :
26445  ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
26446if test "x$ac_cv_func_tgetent" = x""yes; then :
26447  cat >>confdefs.h <<_ACEOF
26448#define HAVE_TGETENT 1
26449_ACEOF
26450
26451fi
26452done
26453
26454fi
26455# tgetent
26456eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26457eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26458eval "LIB_tgetent=$ac_res"
26459
26460case "$ac_res" in
26461	yes)
26462	eval "ac_cv_func_tgetent=yes"
26463	eval "LIB_tgetent="
26464	cat >>confdefs.h <<_ACEOF
26465#define $ac_tr_func 1
26466_ACEOF
26467
26468	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26469$as_echo "yes" >&6; }
26470	;;
26471	no)
26472	eval "ac_cv_func_tgetent=no"
26473	eval "LIB_tgetent="
26474	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26475$as_echo "no" >&6; }
26476	;;
26477	*)
26478	eval "ac_cv_func_tgetent=yes"
26479	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26480	cat >>confdefs.h <<_ACEOF
26481#define $ac_tr_func 1
26482_ACEOF
26483
26484	cat >>confdefs.h <<_ACEOF
26485#define $ac_tr_lib 1
26486_ACEOF
26487
26488	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
26489$as_echo "yes, in $ac_res" >&6; }
26490	;;
26491esac
26492
26493
26494
26495
26496for ac_func in 				\
26497	_getpty					\
26498	_scrsize				\
26499	arc4random				\
26500	backtrace				\
26501	fcntl					\
26502	getpeereid				\
26503	getpeerucred				\
26504	grantpt					\
26505	mktime					\
26506	ptsname					\
26507	rand					\
26508	revoke					\
26509	select					\
26510	setitimer				\
26511	setpcred				\
26512	setpgid					\
26513	setproctitle				\
26514	setregid				\
26515	setresgid				\
26516	setresuid				\
26517	setreuid				\
26518	setsid					\
26519	setutent				\
26520	sigaction				\
26521	strstr					\
26522	ttyname					\
26523	ttyslot					\
26524	umask					\
26525	unlockpt				\
26526	vhangup					\
26527	yp_get_default_domain			\
26528
26529do :
26530  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26531ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26532eval as_val=\$$as_ac_var
26533   if test "x$as_val" = x""yes; then :
26534  cat >>confdefs.h <<_ACEOF
26535#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26536_ACEOF
26537
26538fi
26539done
26540
26541
26542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for __sync_add_and_fetch" >&5
26543$as_echo_n "checking checking for __sync_add_and_fetch... " >&6; }
26544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26545/* end confdefs.h.  */
26546#include <sys/types.h>
26547int
26548main ()
26549{
26550unsigned int foo; __sync_add_and_fetch(&foo, 1);
26551  ;
26552  return 0;
26553}
26554_ACEOF
26555if ac_fn_c_try_link "$LINENO"; then :
26556  ac_rk_have___sync_add_and_fetch=yes
26557else
26558  ac_rk_have___sync_add_and_fetch=no
26559fi
26560rm -f core conftest.err conftest.$ac_objext \
26561    conftest$ac_exeext conftest.$ac_ext
26562if test "$ac_rk_have___sync_add_and_fetch" = "yes" ; then
26563
26564cat >>confdefs.h <<_ACEOF
26565#define HAVE___SYNC_ADD_AND_FETCH 1
26566_ACEOF
26567
26568fi
26569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have___sync_add_and_fetch" >&5
26570$as_echo "$ac_rk_have___sync_add_and_fetch" >&6; }
26571
26572
26573for ac_func in getpagesize
26574do :
26575  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
26576if test "x$ac_cv_func_getpagesize" = x""yes; then :
26577  cat >>confdefs.h <<_ACEOF
26578#define HAVE_GETPAGESIZE 1
26579_ACEOF
26580
26581fi
26582done
26583
26584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
26585$as_echo_n "checking for working mmap... " >&6; }
26586if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
26587  $as_echo_n "(cached) " >&6
26588else
26589  if test "$cross_compiling" = yes; then :
26590  ac_cv_func_mmap_fixed_mapped=no
26591else
26592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26593/* end confdefs.h.  */
26594$ac_includes_default
26595/* malloc might have been renamed as rpl_malloc. */
26596#undef malloc
26597
26598/* Thanks to Mike Haertel and Jim Avera for this test.
26599   Here is a matrix of mmap possibilities:
26600	mmap private not fixed
26601	mmap private fixed at somewhere currently unmapped
26602	mmap private fixed at somewhere already mapped
26603	mmap shared not fixed
26604	mmap shared fixed at somewhere currently unmapped
26605	mmap shared fixed at somewhere already mapped
26606   For private mappings, we should verify that changes cannot be read()
26607   back from the file, nor mmap's back from the file at a different
26608   address.  (There have been systems where private was not correctly
26609   implemented like the infamous i386 svr4.0, and systems where the
26610   VM page cache was not coherent with the file system buffer cache
26611   like early versions of FreeBSD and possibly contemporary NetBSD.)
26612   For shared mappings, we should conversely verify that changes get
26613   propagated back to all the places they're supposed to be.
26614
26615   Grep wants private fixed already mapped.
26616   The main things grep needs to know about mmap are:
26617   * does it exist and is it safe to write into the mmap'd area
26618   * how to use it (BSD variants)  */
26619
26620#include <fcntl.h>
26621#include <sys/mman.h>
26622
26623#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
26624char *malloc ();
26625#endif
26626
26627/* This mess was copied from the GNU getpagesize.h.  */
26628#ifndef HAVE_GETPAGESIZE
26629# ifdef _SC_PAGESIZE
26630#  define getpagesize() sysconf(_SC_PAGESIZE)
26631# else /* no _SC_PAGESIZE */
26632#  ifdef HAVE_SYS_PARAM_H
26633#   include <sys/param.h>
26634#   ifdef EXEC_PAGESIZE
26635#    define getpagesize() EXEC_PAGESIZE
26636#   else /* no EXEC_PAGESIZE */
26637#    ifdef NBPG
26638#     define getpagesize() NBPG * CLSIZE
26639#     ifndef CLSIZE
26640#      define CLSIZE 1
26641#     endif /* no CLSIZE */
26642#    else /* no NBPG */
26643#     ifdef NBPC
26644#      define getpagesize() NBPC
26645#     else /* no NBPC */
26646#      ifdef PAGESIZE
26647#       define getpagesize() PAGESIZE
26648#      endif /* PAGESIZE */
26649#     endif /* no NBPC */
26650#    endif /* no NBPG */
26651#   endif /* no EXEC_PAGESIZE */
26652#  else /* no HAVE_SYS_PARAM_H */
26653#   define getpagesize() 8192	/* punt totally */
26654#  endif /* no HAVE_SYS_PARAM_H */
26655# endif /* no _SC_PAGESIZE */
26656
26657#endif /* no HAVE_GETPAGESIZE */
26658
26659int
26660main ()
26661{
26662  char *data, *data2, *data3;
26663  int i, pagesize;
26664  int fd, fd2;
26665
26666  pagesize = getpagesize ();
26667
26668  /* First, make a file with some known garbage in it. */
26669  data = (char *) malloc (pagesize);
26670  if (!data)
26671    return 1;
26672  for (i = 0; i < pagesize; ++i)
26673    *(data + i) = rand ();
26674  umask (0);
26675  fd = creat ("conftest.mmap", 0600);
26676  if (fd < 0)
26677    return 2;
26678  if (write (fd, data, pagesize) != pagesize)
26679    return 3;
26680  close (fd);
26681
26682  /* Next, check that the tail of a page is zero-filled.  File must have
26683     non-zero length, otherwise we risk SIGBUS for entire page.  */
26684  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
26685  if (fd2 < 0)
26686    return 4;
26687  data2 = "";
26688  if (write (fd2, data2, 1) != 1)
26689    return 5;
26690  data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
26691  if (data2 == MAP_FAILED)
26692    return 6;
26693  for (i = 0; i < pagesize; ++i)
26694    if (*(data2 + i))
26695      return 7;
26696  close (fd2);
26697  if (munmap (data2, pagesize))
26698    return 8;
26699
26700  /* Next, try to mmap the file at a fixed address which already has
26701     something else allocated at it.  If we can, also make sure that
26702     we see the same garbage.  */
26703  fd = open ("conftest.mmap", O_RDWR);
26704  if (fd < 0)
26705    return 9;
26706  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
26707		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
26708    return 10;
26709  for (i = 0; i < pagesize; ++i)
26710    if (*(data + i) != *(data2 + i))
26711      return 11;
26712
26713  /* Finally, make sure that changes to the mapped area do not
26714     percolate back to the file as seen by read().  (This is a bug on
26715     some variants of i386 svr4.0.)  */
26716  for (i = 0; i < pagesize; ++i)
26717    *(data2 + i) = *(data2 + i) + 1;
26718  data3 = (char *) malloc (pagesize);
26719  if (!data3)
26720    return 12;
26721  if (read (fd, data3, pagesize) != pagesize)
26722    return 13;
26723  for (i = 0; i < pagesize; ++i)
26724    if (*(data + i) != *(data3 + i))
26725      return 14;
26726  close (fd);
26727  return 0;
26728}
26729_ACEOF
26730if ac_fn_c_try_run "$LINENO"; then :
26731  ac_cv_func_mmap_fixed_mapped=yes
26732else
26733  ac_cv_func_mmap_fixed_mapped=no
26734fi
26735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26736  conftest.$ac_objext conftest.beam conftest.$ac_ext
26737fi
26738
26739fi
26740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
26741$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
26742if test $ac_cv_func_mmap_fixed_mapped = yes; then
26743
26744$as_echo "#define HAVE_MMAP 1" >>confdefs.h
26745
26746fi
26747rm -f conftest.mmap conftest.txt
26748
26749
26750
26751
26752for ac_header in capability.h sys/capability.h
26753do :
26754  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26755ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26756eval as_val=\$$as_ac_Header
26757   if test "x$as_val" = x""yes; then :
26758  cat >>confdefs.h <<_ACEOF
26759#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26760_ACEOF
26761
26762fi
26763
26764done
26765
26766
26767for ac_func in sgi_getcapabilitybyname cap_set_proc
26768do :
26769  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26770ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26771eval as_val=\$$as_ac_var
26772   if test "x$as_val" = x""yes; then :
26773  cat >>confdefs.h <<_ACEOF
26774#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26775_ACEOF
26776
26777fi
26778done
26779
26780
26781
26782
26783
26784
26785
26786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r" >&5
26787$as_echo_n "checking for getpwnam_r... " >&6; }
26788if test "${ac_cv_funclib_getpwnam_r+set}" = set; then :
26789  $as_echo_n "(cached) " >&6
26790else
26791
26792if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
26793	ac_save_LIBS="$LIBS"
26794	for ac_lib in "" c_r; do
26795		case "$ac_lib" in
26796		"") ;;
26797		yes) ac_lib="" ;;
26798		no) continue ;;
26799		-l*) ;;
26800		*) ac_lib="-l$ac_lib" ;;
26801		esac
26802		LIBS=" $ac_lib  $ac_save_LIBS"
26803		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26804/* end confdefs.h.  */
26805
26806int
26807main ()
26808{
26809getpwnam_r()
26810  ;
26811  return 0;
26812}
26813_ACEOF
26814if ac_fn_c_try_link "$LINENO"; then :
26815  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
26816fi
26817rm -f core conftest.err conftest.$ac_objext \
26818    conftest$ac_exeext conftest.$ac_ext
26819	done
26820	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
26821	LIBS="$ac_save_LIBS"
26822fi
26823
26824fi
26825
26826
26827eval "ac_res=\$ac_cv_funclib_getpwnam_r"
26828
26829if false; then
26830	for ac_func in getpwnam_r
26831do :
26832  ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
26833if test "x$ac_cv_func_getpwnam_r" = x""yes; then :
26834  cat >>confdefs.h <<_ACEOF
26835#define HAVE_GETPWNAM_R 1
26836_ACEOF
26837
26838fi
26839done
26840
26841fi
26842# getpwnam_r
26843eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26844eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26845eval "LIB_getpwnam_r=$ac_res"
26846
26847case "$ac_res" in
26848	yes)
26849	eval "ac_cv_func_getpwnam_r=yes"
26850	eval "LIB_getpwnam_r="
26851	cat >>confdefs.h <<_ACEOF
26852#define $ac_tr_func 1
26853_ACEOF
26854
26855	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26856$as_echo "yes" >&6; }
26857	;;
26858	no)
26859	eval "ac_cv_func_getpwnam_r=no"
26860	eval "LIB_getpwnam_r="
26861	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26862$as_echo "no" >&6; }
26863	;;
26864	*)
26865	eval "ac_cv_func_getpwnam_r=yes"
26866	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26867	cat >>confdefs.h <<_ACEOF
26868#define $ac_tr_func 1
26869_ACEOF
26870
26871	cat >>confdefs.h <<_ACEOF
26872#define $ac_tr_lib 1
26873_ACEOF
26874
26875	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
26876$as_echo "yes, in $ac_res" >&6; }
26877	;;
26878esac
26879
26880
26881if test "$ac_cv_func_getpwnam_r" = yes; then
26882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwnam_r is posix" >&5
26883$as_echo_n "checking if getpwnam_r is posix... " >&6; }
26884if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then :
26885  $as_echo_n "(cached) " >&6
26886else
26887  ac_libs="$LIBS"
26888	LIBS="$LIBS $LIB_getpwnam_r"
26889	if test "$cross_compiling" = yes; then :
26890  :
26891else
26892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26893/* end confdefs.h.  */
26894
26895#define _POSIX_PTHREAD_SEMANTICS
26896#include <pwd.h>
26897int main(int argc, char **argv)
26898{
26899	struct passwd pw, *pwd;
26900	return getpwnam_r("", &pw, 0, 0, &pwd) < 0;
26901}
26902
26903_ACEOF
26904if ac_fn_c_try_run "$LINENO"; then :
26905  ac_cv_func_getpwnam_r_posix=yes
26906else
26907  ac_cv_func_getpwnam_r_posix=no
26908fi
26909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26910  conftest.$ac_objext conftest.beam conftest.$ac_ext
26911fi
26912
26913LIBS="$ac_libs"
26914fi
26915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix" >&5
26916$as_echo "$ac_cv_func_getpwnam_r_posix" >&6; }
26917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _POSIX_PTHREAD_SEMANTICS is needed" >&5
26918$as_echo_n "checking if _POSIX_PTHREAD_SEMANTICS is needed... " >&6; }
26919if test "${ac_cv_func_getpwnam_r_posix_def+set}" = set; then :
26920  $as_echo_n "(cached) " >&6
26921else
26922  ac_libs="$LIBS"
26923	LIBS="$LIBS $LIB_getpwnam_r"
26924	if test "$cross_compiling" = yes; then :
26925  :
26926else
26927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26928/* end confdefs.h.  */
26929
26930#include <pwd.h>
26931int main(int argc, char **argv)
26932{
26933	struct passwd pw, *pwd;
26934	return getpwnam_r("", &pw, 0, 0, &pwd) < 0;
26935}
26936
26937_ACEOF
26938if ac_fn_c_try_run "$LINENO"; then :
26939  ac_cv_func_getpwnam_r_posix_def=no
26940else
26941  ac_cv_func_getpwnam_r_posix_def=yes
26942fi
26943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26944  conftest.$ac_objext conftest.beam conftest.$ac_ext
26945fi
26946
26947LIBS="$ac_libs"
26948fi
26949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix_def" >&5
26950$as_echo "$ac_cv_func_getpwnam_r_posix_def" >&6; }
26951if test "$ac_cv_func_getpwnam_r_posix" = yes; then
26952
26953$as_echo "#define POSIX_GETPWNAM_R 1" >>confdefs.h
26954
26955fi
26956if test "$ac_cv_func_getpwnam_r_posix" = yes -a "$ac_cv_func_getpwnam_r_posix_def" = yes; then
26957
26958$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
26959
26960fi
26961fi
26962
26963
26964if test "$enable_pthread_support" != no; then
26965   saved_LIBS="$LIBS"
26966   LIBS="$LIBS $PTHREADS_LIBS"
26967
26968
26969
26970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for door_create" >&5
26971$as_echo_n "checking for door_create... " >&6; }
26972if test "${ac_cv_funclib_door_create+set}" = set; then :
26973  $as_echo_n "(cached) " >&6
26974else
26975
26976if eval "test \"\$ac_cv_func_door_create\" != yes" ; then
26977	ac_save_LIBS="$LIBS"
26978	for ac_lib in "" door; do
26979		case "$ac_lib" in
26980		"") ;;
26981		yes) ac_lib="" ;;
26982		no) continue ;;
26983		-l*) ;;
26984		*) ac_lib="-l$ac_lib" ;;
26985		esac
26986		LIBS=" $ac_lib  $ac_save_LIBS"
26987		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26988/* end confdefs.h.  */
26989
26990int
26991main ()
26992{
26993door_create()
26994  ;
26995  return 0;
26996}
26997_ACEOF
26998if ac_fn_c_try_link "$LINENO"; then :
26999  eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break
27000fi
27001rm -f core conftest.err conftest.$ac_objext \
27002    conftest$ac_exeext conftest.$ac_ext
27003	done
27004	eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}"
27005	LIBS="$ac_save_LIBS"
27006fi
27007
27008fi
27009
27010
27011eval "ac_res=\$ac_cv_funclib_door_create"
27012
27013if false; then
27014	for ac_func in door_create
27015do :
27016  ac_fn_c_check_func "$LINENO" "door_create" "ac_cv_func_door_create"
27017if test "x$ac_cv_func_door_create" = x""yes; then :
27018  cat >>confdefs.h <<_ACEOF
27019#define HAVE_DOOR_CREATE 1
27020_ACEOF
27021
27022fi
27023done
27024
27025fi
27026# door_create
27027eval "ac_tr_func=HAVE_`echo door_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27028eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27029eval "LIB_door_create=$ac_res"
27030
27031case "$ac_res" in
27032	yes)
27033	eval "ac_cv_func_door_create=yes"
27034	eval "LIB_door_create="
27035	cat >>confdefs.h <<_ACEOF
27036#define $ac_tr_func 1
27037_ACEOF
27038
27039	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27040$as_echo "yes" >&6; }
27041	;;
27042	no)
27043	eval "ac_cv_func_door_create=no"
27044	eval "LIB_door_create="
27045	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27046$as_echo "no" >&6; }
27047	;;
27048	*)
27049	eval "ac_cv_func_door_create=yes"
27050	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27051	cat >>confdefs.h <<_ACEOF
27052#define $ac_tr_func 1
27053_ACEOF
27054
27055	cat >>confdefs.h <<_ACEOF
27056#define $ac_tr_lib 1
27057_ACEOF
27058
27059	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
27060$as_echo "yes, in $ac_res" >&6; }
27061	;;
27062esac
27063
27064
27065   LIBS="$saved_LIBS"
27066fi
27067
27068# Check whether --enable-kcm was given.
27069if test "${enable_kcm+set}" = set; then :
27070  enableval=$enable_kcm;
27071else
27072  enable_kcm=yes
27073fi
27074
27075
27076if test "$enable_kcm" = yes ; then
27077   if test  "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then
27078  	enable_kcm=no
27079   fi
27080fi
27081if test "$enable_kcm" = yes; then
27082
27083$as_echo "#define HAVE_KCM 1" >>confdefs.h
27084
27085fi
27086 if test "$enable_kcm" = yes; then
27087  KCM_TRUE=
27088  KCM_FALSE='#'
27089else
27090  KCM_TRUE='#'
27091  KCM_FALSE=
27092fi
27093
27094
27095
27096
27097for ac_func in getudbnam setlim
27098do :
27099  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27100ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27101eval as_val=\$$as_ac_var
27102   if test "x$as_val" = x""yes; then :
27103  cat >>confdefs.h <<_ACEOF
27104#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27105_ACEOF
27106
27107fi
27108done
27109
27110
27111
27112
27113
27114
27115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr in struct utmp" >&5
27116$as_echo_n "checking for ut_addr in struct utmp... " >&6; }
27117if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then :
27118  $as_echo_n "(cached) " >&6
27119else
27120
27121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27122/* end confdefs.h.  */
27123#include <utmp.h>
27124int
27125main ()
27126{
27127struct utmp x; memset(&x, 0, sizeof(x)); x.ut_addr
27128  ;
27129  return 0;
27130}
27131_ACEOF
27132if ac_fn_c_try_compile "$LINENO"; then :
27133  ac_cv_type_struct_utmp_ut_addr=yes
27134else
27135  ac_cv_type_struct_utmp_ut_addr=no
27136fi
27137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27138
27139fi
27140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_addr" >&5
27141$as_echo "$ac_cv_type_struct_utmp_ut_addr" >&6; }
27142if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
27143
27144
27145$as_echo "#define HAVE_STRUCT_UTMP_UT_ADDR 1" >>confdefs.h
27146
27147
27148fi
27149
27150
27151
27152
27153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmp" >&5
27154$as_echo_n "checking for ut_host in struct utmp... " >&6; }
27155if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then :
27156  $as_echo_n "(cached) " >&6
27157else
27158
27159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27160/* end confdefs.h.  */
27161#include <utmp.h>
27162int
27163main ()
27164{
27165struct utmp x; memset(&x, 0, sizeof(x)); x.ut_host
27166  ;
27167  return 0;
27168}
27169_ACEOF
27170if ac_fn_c_try_compile "$LINENO"; then :
27171  ac_cv_type_struct_utmp_ut_host=yes
27172else
27173  ac_cv_type_struct_utmp_ut_host=no
27174fi
27175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27176
27177fi
27178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_host" >&5
27179$as_echo "$ac_cv_type_struct_utmp_ut_host" >&6; }
27180if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
27181
27182
27183$as_echo "#define HAVE_STRUCT_UTMP_UT_HOST 1" >>confdefs.h
27184
27185
27186fi
27187
27188
27189
27190
27191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id in struct utmp" >&5
27192$as_echo_n "checking for ut_id in struct utmp... " >&6; }
27193if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then :
27194  $as_echo_n "(cached) " >&6
27195else
27196
27197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27198/* end confdefs.h.  */
27199#include <utmp.h>
27200int
27201main ()
27202{
27203struct utmp x; memset(&x, 0, sizeof(x)); x.ut_id
27204  ;
27205  return 0;
27206}
27207_ACEOF
27208if ac_fn_c_try_compile "$LINENO"; then :
27209  ac_cv_type_struct_utmp_ut_id=yes
27210else
27211  ac_cv_type_struct_utmp_ut_id=no
27212fi
27213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27214
27215fi
27216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_id" >&5
27217$as_echo "$ac_cv_type_struct_utmp_ut_id" >&6; }
27218if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
27219
27220
27221$as_echo "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h
27222
27223
27224fi
27225
27226
27227
27228
27229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in struct utmp" >&5
27230$as_echo_n "checking for ut_pid in struct utmp... " >&6; }
27231if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then :
27232  $as_echo_n "(cached) " >&6
27233else
27234
27235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27236/* end confdefs.h.  */
27237#include <utmp.h>
27238int
27239main ()
27240{
27241struct utmp x; memset(&x, 0, sizeof(x)); x.ut_pid
27242  ;
27243  return 0;
27244}
27245_ACEOF
27246if ac_fn_c_try_compile "$LINENO"; then :
27247  ac_cv_type_struct_utmp_ut_pid=yes
27248else
27249  ac_cv_type_struct_utmp_ut_pid=no
27250fi
27251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27252
27253fi
27254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_pid" >&5
27255$as_echo "$ac_cv_type_struct_utmp_ut_pid" >&6; }
27256if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
27257
27258
27259$as_echo "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h
27260
27261
27262fi
27263
27264
27265
27266
27267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type in struct utmp" >&5
27268$as_echo_n "checking for ut_type in struct utmp... " >&6; }
27269if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then :
27270  $as_echo_n "(cached) " >&6
27271else
27272
27273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27274/* end confdefs.h.  */
27275#include <utmp.h>
27276int
27277main ()
27278{
27279struct utmp x; memset(&x, 0, sizeof(x)); x.ut_type
27280  ;
27281  return 0;
27282}
27283_ACEOF
27284if ac_fn_c_try_compile "$LINENO"; then :
27285  ac_cv_type_struct_utmp_ut_type=yes
27286else
27287  ac_cv_type_struct_utmp_ut_type=no
27288fi
27289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27290
27291fi
27292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_type" >&5
27293$as_echo "$ac_cv_type_struct_utmp_ut_type" >&6; }
27294if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
27295
27296
27297$as_echo "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h
27298
27299
27300fi
27301
27302
27303
27304
27305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_user in struct utmp" >&5
27306$as_echo_n "checking for ut_user in struct utmp... " >&6; }
27307if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then :
27308  $as_echo_n "(cached) " >&6
27309else
27310
27311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27312/* end confdefs.h.  */
27313#include <utmp.h>
27314int
27315main ()
27316{
27317struct utmp x; memset(&x, 0, sizeof(x)); x.ut_user
27318  ;
27319  return 0;
27320}
27321_ACEOF
27322if ac_fn_c_try_compile "$LINENO"; then :
27323  ac_cv_type_struct_utmp_ut_user=yes
27324else
27325  ac_cv_type_struct_utmp_ut_user=no
27326fi
27327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27328
27329fi
27330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_user" >&5
27331$as_echo "$ac_cv_type_struct_utmp_ut_user" >&6; }
27332if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
27333
27334
27335$as_echo "#define HAVE_STRUCT_UTMP_UT_USER 1" >>confdefs.h
27336
27337
27338fi
27339
27340
27341
27342
27343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmpx" >&5
27344$as_echo_n "checking for ut_host in struct utmpx... " >&6; }
27345if test "${ac_cv_type_struct_utmpx_ut_host+set}" = set; then :
27346  $as_echo_n "(cached) " >&6
27347else
27348
27349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27350/* end confdefs.h.  */
27351#include <utmpx.h>
27352int
27353main ()
27354{
27355struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_host
27356  ;
27357  return 0;
27358}
27359_ACEOF
27360if ac_fn_c_try_compile "$LINENO"; then :
27361  ac_cv_type_struct_utmpx_ut_host=yes
27362else
27363  ac_cv_type_struct_utmpx_ut_host=no
27364fi
27365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27366
27367fi
27368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_host" >&5
27369$as_echo "$ac_cv_type_struct_utmpx_ut_host" >&6; }
27370if test "$ac_cv_type_struct_utmpx_ut_host" = yes; then
27371
27372
27373$as_echo "#define HAVE_STRUCT_UTMPX_UT_HOST 1" >>confdefs.h
27374
27375
27376fi
27377
27378
27379
27380
27381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id in struct utmpx" >&5
27382$as_echo_n "checking for ut_id in struct utmpx... " >&6; }
27383if test "${ac_cv_type_struct_utmpx_ut_id+set}" = set; then :
27384  $as_echo_n "(cached) " >&6
27385else
27386
27387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27388/* end confdefs.h.  */
27389#include <utmpx.h>
27390int
27391main ()
27392{
27393struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_id
27394  ;
27395  return 0;
27396}
27397_ACEOF
27398if ac_fn_c_try_compile "$LINENO"; then :
27399  ac_cv_type_struct_utmpx_ut_id=yes
27400else
27401  ac_cv_type_struct_utmpx_ut_id=no
27402fi
27403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27404
27405fi
27406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_id" >&5
27407$as_echo "$ac_cv_type_struct_utmpx_ut_id" >&6; }
27408if test "$ac_cv_type_struct_utmpx_ut_id" = yes; then
27409
27410
27411$as_echo "#define HAVE_STRUCT_UTMPX_UT_ID 1" >>confdefs.h
27412
27413
27414fi
27415
27416
27417
27418
27419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_line in struct utmpx" >&5
27420$as_echo_n "checking for ut_line in struct utmpx... " >&6; }
27421if test "${ac_cv_type_struct_utmpx_ut_line+set}" = set; then :
27422  $as_echo_n "(cached) " >&6
27423else
27424
27425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27426/* end confdefs.h.  */
27427#include <utmpx.h>
27428int
27429main ()
27430{
27431struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_line
27432  ;
27433  return 0;
27434}
27435_ACEOF
27436if ac_fn_c_try_compile "$LINENO"; then :
27437  ac_cv_type_struct_utmpx_ut_line=yes
27438else
27439  ac_cv_type_struct_utmpx_ut_line=no
27440fi
27441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27442
27443fi
27444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_line" >&5
27445$as_echo "$ac_cv_type_struct_utmpx_ut_line" >&6; }
27446if test "$ac_cv_type_struct_utmpx_ut_line" = yes; then
27447
27448
27449$as_echo "#define HAVE_STRUCT_UTMPX_UT_LINE 1" >>confdefs.h
27450
27451
27452fi
27453
27454
27455
27456
27457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in struct utmpx" >&5
27458$as_echo_n "checking for ut_pid in struct utmpx... " >&6; }
27459if test "${ac_cv_type_struct_utmpx_ut_pid+set}" = set; then :
27460  $as_echo_n "(cached) " >&6
27461else
27462
27463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27464/* end confdefs.h.  */
27465#include <utmpx.h>
27466int
27467main ()
27468{
27469struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_pid
27470  ;
27471  return 0;
27472}
27473_ACEOF
27474if ac_fn_c_try_compile "$LINENO"; then :
27475  ac_cv_type_struct_utmpx_ut_pid=yes
27476else
27477  ac_cv_type_struct_utmpx_ut_pid=no
27478fi
27479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27480
27481fi
27482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_pid" >&5
27483$as_echo "$ac_cv_type_struct_utmpx_ut_pid" >&6; }
27484if test "$ac_cv_type_struct_utmpx_ut_pid" = yes; then
27485
27486
27487$as_echo "#define HAVE_STRUCT_UTMPX_UT_PID 1" >>confdefs.h
27488
27489
27490fi
27491
27492
27493
27494
27495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv in struct utmpx" >&5
27496$as_echo_n "checking for ut_tv in struct utmpx... " >&6; }
27497if test "${ac_cv_type_struct_utmpx_ut_tv+set}" = set; then :
27498  $as_echo_n "(cached) " >&6
27499else
27500
27501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27502/* end confdefs.h.  */
27503#include <utmpx.h>
27504int
27505main ()
27506{
27507struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_tv
27508  ;
27509  return 0;
27510}
27511_ACEOF
27512if ac_fn_c_try_compile "$LINENO"; then :
27513  ac_cv_type_struct_utmpx_ut_tv=yes
27514else
27515  ac_cv_type_struct_utmpx_ut_tv=no
27516fi
27517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27518
27519fi
27520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_tv" >&5
27521$as_echo "$ac_cv_type_struct_utmpx_ut_tv" >&6; }
27522if test "$ac_cv_type_struct_utmpx_ut_tv" = yes; then
27523
27524
27525$as_echo "#define HAVE_STRUCT_UTMPX_UT_TV 1" >>confdefs.h
27526
27527
27528fi
27529
27530
27531
27532
27533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type in struct utmpx" >&5
27534$as_echo_n "checking for ut_type in struct utmpx... " >&6; }
27535if test "${ac_cv_type_struct_utmpx_ut_type+set}" = set; then :
27536  $as_echo_n "(cached) " >&6
27537else
27538
27539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27540/* end confdefs.h.  */
27541#include <utmpx.h>
27542int
27543main ()
27544{
27545struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_type
27546  ;
27547  return 0;
27548}
27549_ACEOF
27550if ac_fn_c_try_compile "$LINENO"; then :
27551  ac_cv_type_struct_utmpx_ut_type=yes
27552else
27553  ac_cv_type_struct_utmpx_ut_type=no
27554fi
27555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27556
27557fi
27558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_type" >&5
27559$as_echo "$ac_cv_type_struct_utmpx_ut_type" >&6; }
27560if test "$ac_cv_type_struct_utmpx_ut_type" = yes; then
27561
27562
27563$as_echo "#define HAVE_STRUCT_UTMPX_UT_TYPE 1" >>confdefs.h
27564
27565
27566fi
27567
27568
27569
27570
27571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_user in struct utmpx" >&5
27572$as_echo_n "checking for ut_user in struct utmpx... " >&6; }
27573if test "${ac_cv_type_struct_utmpx_ut_user+set}" = set; then :
27574  $as_echo_n "(cached) " >&6
27575else
27576
27577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27578/* end confdefs.h.  */
27579#include <utmpx.h>
27580int
27581main ()
27582{
27583struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_user
27584  ;
27585  return 0;
27586}
27587_ACEOF
27588if ac_fn_c_try_compile "$LINENO"; then :
27589  ac_cv_type_struct_utmpx_ut_user=yes
27590else
27591  ac_cv_type_struct_utmpx_ut_user=no
27592fi
27593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27594
27595fi
27596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_user" >&5
27597$as_echo "$ac_cv_type_struct_utmpx_ut_user" >&6; }
27598if test "$ac_cv_type_struct_utmpx_ut_user" = yes; then
27599
27600
27601$as_echo "#define HAVE_STRUCT_UTMPX_UT_USER 1" >>confdefs.h
27602
27603
27604fi
27605
27606
27607
27608
27609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit in struct utmpx" >&5
27610$as_echo_n "checking for ut_exit in struct utmpx... " >&6; }
27611if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then :
27612  $as_echo_n "(cached) " >&6
27613else
27614
27615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27616/* end confdefs.h.  */
27617#include <utmpx.h>
27618int
27619main ()
27620{
27621struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_exit
27622  ;
27623  return 0;
27624}
27625_ACEOF
27626if ac_fn_c_try_compile "$LINENO"; then :
27627  ac_cv_type_struct_utmpx_ut_exit=yes
27628else
27629  ac_cv_type_struct_utmpx_ut_exit=no
27630fi
27631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27632
27633fi
27634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
27635$as_echo "$ac_cv_type_struct_utmpx_ut_exit" >&6; }
27636if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
27637
27638
27639$as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
27640
27641
27642fi
27643
27644
27645
27646
27647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_syslen in struct utmpx" >&5
27648$as_echo_n "checking for ut_syslen in struct utmpx... " >&6; }
27649if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then :
27650  $as_echo_n "(cached) " >&6
27651else
27652
27653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27654/* end confdefs.h.  */
27655#include <utmpx.h>
27656int
27657main ()
27658{
27659struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_syslen
27660  ;
27661  return 0;
27662}
27663_ACEOF
27664if ac_fn_c_try_compile "$LINENO"; then :
27665  ac_cv_type_struct_utmpx_ut_syslen=yes
27666else
27667  ac_cv_type_struct_utmpx_ut_syslen=no
27668fi
27669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27670
27671fi
27672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
27673$as_echo "$ac_cv_type_struct_utmpx_ut_syslen" >&6; }
27674if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
27675
27676
27677$as_echo "#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1" >>confdefs.h
27678
27679
27680fi
27681
27682
27683
27684ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "
27685#ifdef HAVE_INTTYPES_H
27686#include <inttypes.h>
27687#endif
27688#ifdef HAVE_SYS_TYPES_H
27689#include <sys/types.h>
27690#endif
27691#ifdef HAVE_SYS_BITYPES_H
27692#include <sys/bitypes.h>
27693#endif
27694#ifdef HAVE_BIND_BITYPES_H
27695#include <bind/bitypes.h>
27696#endif
27697#ifdef HAVE_NETINET_IN6_MACHTYPES_H
27698#include <netinet/in6_machtypes.h>
27699#endif
27700
27701"
27702if test "x$ac_cv_type_int8_t" = x""yes; then :
27703
27704cat >>confdefs.h <<_ACEOF
27705#define HAVE_INT8_T 1
27706_ACEOF
27707
27708
27709fi
27710ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "
27711#ifdef HAVE_INTTYPES_H
27712#include <inttypes.h>
27713#endif
27714#ifdef HAVE_SYS_TYPES_H
27715#include <sys/types.h>
27716#endif
27717#ifdef HAVE_SYS_BITYPES_H
27718#include <sys/bitypes.h>
27719#endif
27720#ifdef HAVE_BIND_BITYPES_H
27721#include <bind/bitypes.h>
27722#endif
27723#ifdef HAVE_NETINET_IN6_MACHTYPES_H
27724#include <netinet/in6_machtypes.h>
27725#endif
27726
27727"
27728if test "x$ac_cv_type_int16_t" = x""yes; then :
27729
27730cat >>confdefs.h <<_ACEOF
27731#define HAVE_INT16_T 1
27732_ACEOF
27733
27734
27735fi
27736ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "
27737#ifdef HAVE_INTTYPES_H
27738#include <inttypes.h>
27739#endif
27740#ifdef HAVE_SYS_TYPES_H
27741#include <sys/types.h>
27742#endif
27743#ifdef HAVE_SYS_BITYPES_H
27744#include <sys/bitypes.h>
27745#endif
27746#ifdef HAVE_BIND_BITYPES_H
27747#include <bind/bitypes.h>
27748#endif
27749#ifdef HAVE_NETINET_IN6_MACHTYPES_H
27750#include <netinet/in6_machtypes.h>
27751#endif
27752
27753"
27754if test "x$ac_cv_type_int32_t" = x""yes; then :
27755
27756cat >>confdefs.h <<_ACEOF
27757#define HAVE_INT32_T 1
27758_ACEOF
27759
27760
27761fi
27762ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "
27763#ifdef HAVE_INTTYPES_H
27764#include <inttypes.h>
27765#endif
27766#ifdef HAVE_SYS_TYPES_H
27767#include <sys/types.h>
27768#endif
27769#ifdef HAVE_SYS_BITYPES_H
27770#include <sys/bitypes.h>
27771#endif
27772#ifdef HAVE_BIND_BITYPES_H
27773#include <bind/bitypes.h>
27774#endif
27775#ifdef HAVE_NETINET_IN6_MACHTYPES_H
27776#include <netinet/in6_machtypes.h>
27777#endif
27778
27779"
27780if test "x$ac_cv_type_int64_t" = x""yes; then :
27781
27782cat >>confdefs.h <<_ACEOF
27783#define HAVE_INT64_T 1
27784_ACEOF
27785
27786
27787fi
27788ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "
27789#ifdef HAVE_INTTYPES_H
27790#include <inttypes.h>
27791#endif
27792#ifdef HAVE_SYS_TYPES_H
27793#include <sys/types.h>
27794#endif
27795#ifdef HAVE_SYS_BITYPES_H
27796#include <sys/bitypes.h>
27797#endif
27798#ifdef HAVE_BIND_BITYPES_H
27799#include <bind/bitypes.h>
27800#endif
27801#ifdef HAVE_NETINET_IN6_MACHTYPES_H
27802#include <netinet/in6_machtypes.h>
27803#endif
27804
27805"
27806if test "x$ac_cv_type_u_int8_t" = x""yes; then :
27807
27808cat >>confdefs.h <<_ACEOF
27809#define HAVE_U_INT8_T 1
27810_ACEOF
27811
27812
27813fi
27814ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "
27815#ifdef HAVE_INTTYPES_H
27816#include <inttypes.h>
27817#endif
27818#ifdef HAVE_SYS_TYPES_H
27819#include <sys/types.h>
27820#endif
27821#ifdef HAVE_SYS_BITYPES_H
27822#include <sys/bitypes.h>
27823#endif
27824#ifdef HAVE_BIND_BITYPES_H
27825#include <bind/bitypes.h>
27826#endif
27827#ifdef HAVE_NETINET_IN6_MACHTYPES_H
27828#include <netinet/in6_machtypes.h>
27829#endif
27830
27831"
27832if test "x$ac_cv_type_u_int16_t" = x""yes; then :
27833
27834cat >>confdefs.h <<_ACEOF
27835#define HAVE_U_INT16_T 1
27836_ACEOF
27837
27838
27839fi
27840ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "
27841#ifdef HAVE_INTTYPES_H
27842#include <inttypes.h>
27843#endif
27844#ifdef HAVE_SYS_TYPES_H
27845#include <sys/types.h>
27846#endif
27847#ifdef HAVE_SYS_BITYPES_H
27848#include <sys/bitypes.h>
27849#endif
27850#ifdef HAVE_BIND_BITYPES_H
27851#include <bind/bitypes.h>
27852#endif
27853#ifdef HAVE_NETINET_IN6_MACHTYPES_H
27854#include <netinet/in6_machtypes.h>
27855#endif
27856
27857"
27858if test "x$ac_cv_type_u_int32_t" = x""yes; then :
27859
27860cat >>confdefs.h <<_ACEOF
27861#define HAVE_U_INT32_T 1
27862_ACEOF
27863
27864
27865fi
27866ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "
27867#ifdef HAVE_INTTYPES_H
27868#include <inttypes.h>
27869#endif
27870#ifdef HAVE_SYS_TYPES_H
27871#include <sys/types.h>
27872#endif
27873#ifdef HAVE_SYS_BITYPES_H
27874#include <sys/bitypes.h>
27875#endif
27876#ifdef HAVE_BIND_BITYPES_H
27877#include <bind/bitypes.h>
27878#endif
27879#ifdef HAVE_NETINET_IN6_MACHTYPES_H
27880#include <netinet/in6_machtypes.h>
27881#endif
27882
27883"
27884if test "x$ac_cv_type_u_int64_t" = x""yes; then :
27885
27886cat >>confdefs.h <<_ACEOF
27887#define HAVE_U_INT64_T 1
27888_ACEOF
27889
27890
27891fi
27892ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "
27893#ifdef HAVE_INTTYPES_H
27894#include <inttypes.h>
27895#endif
27896#ifdef HAVE_SYS_TYPES_H
27897#include <sys/types.h>
27898#endif
27899#ifdef HAVE_SYS_BITYPES_H
27900#include <sys/bitypes.h>
27901#endif
27902#ifdef HAVE_BIND_BITYPES_H
27903#include <bind/bitypes.h>
27904#endif
27905#ifdef HAVE_NETINET_IN6_MACHTYPES_H
27906#include <netinet/in6_machtypes.h>
27907#endif
27908
27909"
27910if test "x$ac_cv_type_uint8_t" = x""yes; then :
27911
27912cat >>confdefs.h <<_ACEOF
27913#define HAVE_UINT8_T 1
27914_ACEOF
27915
27916
27917fi
27918ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "
27919#ifdef HAVE_INTTYPES_H
27920#include <inttypes.h>
27921#endif
27922#ifdef HAVE_SYS_TYPES_H
27923#include <sys/types.h>
27924#endif
27925#ifdef HAVE_SYS_BITYPES_H
27926#include <sys/bitypes.h>
27927#endif
27928#ifdef HAVE_BIND_BITYPES_H
27929#include <bind/bitypes.h>
27930#endif
27931#ifdef HAVE_NETINET_IN6_MACHTYPES_H
27932#include <netinet/in6_machtypes.h>
27933#endif
27934
27935"
27936if test "x$ac_cv_type_uint16_t" = x""yes; then :
27937
27938cat >>confdefs.h <<_ACEOF
27939#define HAVE_UINT16_T 1
27940_ACEOF
27941
27942
27943fi
27944ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "
27945#ifdef HAVE_INTTYPES_H
27946#include <inttypes.h>
27947#endif
27948#ifdef HAVE_SYS_TYPES_H
27949#include <sys/types.h>
27950#endif
27951#ifdef HAVE_SYS_BITYPES_H
27952#include <sys/bitypes.h>
27953#endif
27954#ifdef HAVE_BIND_BITYPES_H
27955#include <bind/bitypes.h>
27956#endif
27957#ifdef HAVE_NETINET_IN6_MACHTYPES_H
27958#include <netinet/in6_machtypes.h>
27959#endif
27960
27961"
27962if test "x$ac_cv_type_uint32_t" = x""yes; then :
27963
27964cat >>confdefs.h <<_ACEOF
27965#define HAVE_UINT32_T 1
27966_ACEOF
27967
27968
27969fi
27970ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "
27971#ifdef HAVE_INTTYPES_H
27972#include <inttypes.h>
27973#endif
27974#ifdef HAVE_SYS_TYPES_H
27975#include <sys/types.h>
27976#endif
27977#ifdef HAVE_SYS_BITYPES_H
27978#include <sys/bitypes.h>
27979#endif
27980#ifdef HAVE_BIND_BITYPES_H
27981#include <bind/bitypes.h>
27982#endif
27983#ifdef HAVE_NETINET_IN6_MACHTYPES_H
27984#include <netinet/in6_machtypes.h>
27985#endif
27986
27987"
27988if test "x$ac_cv_type_uint64_t" = x""yes; then :
27989
27990cat >>confdefs.h <<_ACEOF
27991#define HAVE_UINT64_T 1
27992_ACEOF
27993
27994
27995fi
27996
27997
27998
27999
28000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework security" >&5
28001$as_echo_n "checking for framework security... " >&6; }
28002if test "${rk_cv_framework_security+set}" = set; then :
28003  $as_echo_n "(cached) " >&6
28004else
28005
28006if test "$rk_cv_framework_security" != yes; then
28007	ac_save_LIBS="$LIBS"
28008	LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation"
28009	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010/* end confdefs.h.  */
28011#include <Security/Security.h>
28012
28013int
28014main ()
28015{
28016SecKeychainSearchRef searchRef;
28017SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef);
28018CFRelease(&searchRef);
28019
28020  ;
28021  return 0;
28022}
28023_ACEOF
28024if ac_fn_c_try_link "$LINENO"; then :
28025  rk_cv_framework_security=yes
28026fi
28027rm -f core conftest.err conftest.$ac_objext \
28028    conftest$ac_exeext conftest.$ac_ext
28029	LIBS="$ac_save_LIBS"
28030fi
28031
28032fi
28033
28034
28035if test "$rk_cv_framework_security" = yes; then
28036
28037$as_echo "#define HAVE_FRAMEWORK_SECURITY 1" >>confdefs.h
28038
28039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28040$as_echo "yes" >&6; }
28041else
28042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28043$as_echo "no" >&6; }
28044fi
28045 if test "$rk_cv_framework_security" = yes; then
28046  FRAMEWORK_SECURITY_TRUE=
28047  FRAMEWORK_SECURITY_FALSE='#'
28048else
28049  FRAMEWORK_SECURITY_TRUE='#'
28050  FRAMEWORK_SECURITY_FALSE=
28051fi
28052
28053
28054if test "$rk_cv_framework_security" = yes; then
28055
28056if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then
28057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SecKeyGetCSPHandle needs a prototype" >&5
28058$as_echo_n "checking if SecKeyGetCSPHandle needs a prototype... " >&6; }
28059if test "${ac_cv_func_SecKeyGetCSPHandle_noproto+set}" = set; then :
28060  $as_echo_n "(cached) " >&6
28061else
28062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28063/* end confdefs.h.  */
28064#include <Security/Security.h>
28065struct foo { int foo; } xx;
28066extern int SecKeyGetCSPHandle (struct foo*);
28067int
28068main ()
28069{
28070SecKeyGetCSPHandle(&xx)
28071  ;
28072  return 0;
28073}
28074_ACEOF
28075if ac_fn_c_try_compile "$LINENO"; then :
28076  eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes"
28077else
28078  eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no"
28079fi
28080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28081fi
28082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5
28083$as_echo "$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; }
28084if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then
28085
28086$as_echo "#define NEED_SECKEYGETCSPHANDLE_PROTO 1" >>confdefs.h
28087
28088fi
28089fi
28090
28091fi
28092
28093
28094
28095
28096
28097
28098ac_foo=no
28099build_editline=no
28100if test "$with_readline" = yes; then
28101	:
28102elif test "$with_libedit" = yes; then
28103   	LIB_readline="${LIB_libedit}"
28104elif test "$ac_cv_func_readline" = yes; then
28105	:
28106else
28107	build_libedit=yes
28108	LIB_readline="\$(top_builddir)/lib/libedit/src/libheimedit.la \$(LIB_tgetent)"
28109fi
28110 if test "$build_libedit" = yes; then
28111  LIBEDIT_TRUE=
28112  LIBEDIT_FALSE='#'
28113else
28114  LIBEDIT_TRUE='#'
28115  LIBEDIT_FALSE=
28116fi
28117
28118
28119$as_echo "#define HAVE_READLINE 1" >>confdefs.h
28120
28121
28122
28123
28124
28125$as_echo "#define AUTHENTICATION 1" >>confdefs.h
28126
28127$as_echo "#define ENCRYPTION 1" >>confdefs.h
28128
28129$as_echo "#define DES_ENCRYPTION 1" >>confdefs.h
28130
28131$as_echo "#define DIAGNOSTICS 1" >>confdefs.h
28132
28133$as_echo "#define OLD_ENVIRON 1" >>confdefs.h
28134if false; then
28135
28136$as_echo "#define ENV_HACK 1" >>confdefs.h
28137
28138fi
28139
28140# Simple test for streamspty, based on the existance of getmsg(), alas
28141# this breaks on SunOS4 which have streams but BSD-like ptys
28142#
28143# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
28144
28145case "$host" in
28146*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
28147	;;
28148*)
28149	ac_fn_c_check_func "$LINENO" "getmsg" "ac_cv_func_getmsg"
28150if test "x$ac_cv_func_getmsg" = x""yes; then :
28151
28152fi
28153
28154	if test "$ac_cv_func_getmsg" = "yes"; then
28155		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getmsg works" >&5
28156$as_echo_n "checking if getmsg works... " >&6; }
28157if test "${ac_cv_func_getmsg_works+set}" = set; then :
28158  $as_echo_n "(cached) " >&6
28159else
28160  if test "$cross_compiling" = yes; then :
28161  ac_cv_func_getmsg_works=no
28162else
28163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28164/* end confdefs.h.  */
28165
28166			#include <stdio.h>
28167			#include <errno.h>
28168
28169			int main(int argc, char **argv)
28170			{
28171			  int ret;
28172			  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
28173			  if(ret < 0 && errno == ENOSYS)
28174			    return 1;
28175			  return 0;
28176			}
28177
28178_ACEOF
28179if ac_fn_c_try_run "$LINENO"; then :
28180  ac_cv_func_getmsg_works=yes
28181else
28182  ac_cv_func_getmsg_works=no
28183fi
28184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28185  conftest.$ac_objext conftest.beam conftest.$ac_ext
28186fi
28187
28188fi
28189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getmsg_works" >&5
28190$as_echo "$ac_cv_func_getmsg_works" >&6; }
28191		if test "$ac_cv_func_getmsg_works" = "yes"; then
28192
28193$as_echo "#define HAVE_GETMSG 1" >>confdefs.h
28194
28195
28196$as_echo "#define STREAMSPTY 1" >>confdefs.h
28197
28198		fi
28199	fi
28200	;;
28201esac
28202
28203
28204
28205
28206
28207
28208# Extract the first word of "compile_et", so it can be a program name with args.
28209set dummy compile_et; ac_word=$2
28210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28211$as_echo_n "checking for $ac_word... " >&6; }
28212if test "${ac_cv_prog_COMPILE_ET+set}" = set; then :
28213  $as_echo_n "(cached) " >&6
28214else
28215  if test -n "$COMPILE_ET"; then
28216  ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
28217else
28218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28219for as_dir in $PATH
28220do
28221  IFS=$as_save_IFS
28222  test -z "$as_dir" && as_dir=.
28223    for ac_exec_ext in '' $ac_executable_extensions; do
28224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28225    ac_cv_prog_COMPILE_ET="compile_et"
28226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28227    break 2
28228  fi
28229done
28230  done
28231IFS=$as_save_IFS
28232
28233fi
28234fi
28235COMPILE_ET=$ac_cv_prog_COMPILE_ET
28236if test -n "$COMPILE_ET"; then
28237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
28238$as_echo "$COMPILE_ET" >&6; }
28239else
28240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28241$as_echo "no" >&6; }
28242fi
28243
28244
28245
28246krb_cv_compile_et="no"
28247krb_cv_com_err_need_r=""
28248krb_cv_compile_et_cross=no
28249if test "${COMPILE_ET}" = "compile_et"; then
28250
28251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compile_et has the features we need" >&5
28252$as_echo_n "checking whether compile_et has the features we need... " >&6; }
28253cat > conftest_et.et <<'EOF'
28254error_table test conf
28255prefix CONFTEST
28256index 1
28257error_code CODE1, "CODE1"
28258index 128
28259error_code CODE2, "CODE2"
28260end
28261EOF
28262if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
28263    save_CPPFLAGS="${CPPFLAGS}"
28264  if test -d "/usr/include/et"; then
28265    CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
28266  fi
28267    if test "$cross_compiling" = yes; then :
28268  krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes
28269else
28270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28271/* end confdefs.h.  */
28272
28273#include <com_err.h>
28274#include <string.h>
28275#include "conftest_et.h"
28276int main(int argc, char **argv){
28277#ifndef ERROR_TABLE_BASE_conf
28278#error compile_et does not handle error_table N M
28279#endif
28280return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
28281
28282_ACEOF
28283if ac_fn_c_try_run "$LINENO"; then :
28284  krb_cv_compile_et="yes"
28285else
28286  CPPFLAGS="${save_CPPFLAGS}"
28287fi
28288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28289  conftest.$ac_objext conftest.beam conftest.$ac_ext
28290fi
28291
28292fi
28293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_compile_et}" >&5
28294$as_echo "${krb_cv_compile_et}" >&6; }
28295if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then
28296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if com_err generates a initialize_conf_error_table_r" >&5
28297$as_echo_n "checking for if com_err generates a initialize_conf_error_table_r... " >&6; }
28298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28299/* end confdefs.h.  */
28300#include "conftest_et.h"
28301_ACEOF
28302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28303  $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1; then :
28304  krb_cv_com_err_need_r="ok"
28305fi
28306rm -f conftest*
28307
28308  if test X"$krb_cv_com_err_need_r" = X ; then
28309    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28310$as_echo "no" >&6; }
28311    krb_cv_compile_et=no
28312  else
28313    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28314$as_echo "yes" >&6; }
28315  fi
28316fi
28317rm -fr conftest*
28318fi
28319
28320if test "${krb_cv_compile_et_cross}" = yes ; then
28321  krb_cv_com_err="cross"
28322elif test "${krb_cv_compile_et}" = "yes"; then
28323    krb_cv_save_LIBS="${LIBS}"
28324  LIBS="${LIBS} -lcom_err"
28325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err" >&5
28326$as_echo_n "checking for com_err... " >&6; }
28327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28328/* end confdefs.h.  */
28329#include <com_err.h>
28330int
28331main ()
28332{
28333
28334    const char *p;
28335    p = error_message(0);
28336    initialize_error_table_r(0,0,0,0);
28337    com_right_r(0, 0, 0, 0);
28338
28339  ;
28340  return 0;
28341}
28342_ACEOF
28343if ac_fn_c_try_link "$LINENO"; then :
28344  krb_cv_com_err="yes"
28345else
28346  krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
28347fi
28348rm -f core conftest.err conftest.$ac_objext \
28349    conftest$ac_exeext conftest.$ac_ext
28350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_com_err}" >&5
28351$as_echo "${krb_cv_com_err}" >&6; }
28352  LIBS="${krb_cv_save_LIBS}"
28353else
28354    krb_cv_com_err="no"
28355fi
28356
28357if test "${krb_cv_com_err}" = "yes"; then
28358    DIR_com_err=""
28359    LIB_com_err="-lcom_err"
28360    LIB_com_err_a=""
28361    LIB_com_err_so=""
28362    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the already-installed com_err" >&5
28363$as_echo "$as_me: Using the already-installed com_err" >&6;}
28364    COMPILE_ET="${ac_cv_prog_COMPILE_ET}"
28365    localcomerr=no
28366elif test "${krb_cv_com_err}" = "cross"; then
28367    DIR_com_err="com_err"
28368    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
28369    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
28370    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
28371    { $as_echo "$as_me:${as_lineno-$LINENO}: Using our own com_err with toolchain compile_et" >&5
28372$as_echo "$as_me: Using our own com_err with toolchain compile_et" >&6;}
28373    COMPILE_ET="${ac_cv_prog_COMPILE_ET}"
28374    localcomerr=yes
28375else
28376    COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
28377    DIR_com_err="com_err"
28378    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
28379    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
28380    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
28381    { $as_echo "$as_me:${as_lineno-$LINENO}: Using our own com_err" >&5
28382$as_echo "$as_me: Using our own com_err" >&6;}
28383    localcomerr=yes
28384fi
28385 if test "$localcomerr" = yes; then
28386  COM_ERR_TRUE=
28387  COM_ERR_FALSE='#'
28388else
28389  COM_ERR_TRUE='#'
28390  COM_ERR_FALSE=
28391fi
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which authentication modules should be built" >&5
28402$as_echo_n "checking which authentication modules should be built... " >&6; }
28403
28404z='sia afskauthlib'
28405LIB_AUTH_SUBDIRS=
28406for i in $z; do
28407case $i in
28408sia)
28409if test "$ac_cv_header_siad_h" = yes; then
28410	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
28411fi
28412;;
28413pam)
28414case "${host}" in
28415*-*-freebsd*)	ac_cv_want_pam_krb4=no ;;
28416*)		ac_cv_want_pam_krb4=yes ;;
28417esac
28418
28419if test "$ac_cv_want_pam_krb4" = yes -a \
28420    "$ac_cv_header_security_pam_modules_h" = yes -a \
28421    "$enable_shared" = yes; then
28422	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
28423fi
28424;;
28425afskauthlib)
28426case "${host}" in
28427*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
28428esac
28429;;
28430esac
28431done
28432if test "$LIB_AUTH_SUBDIRS"; then
28433	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIB_AUTH_SUBDIRS" >&5
28434$as_echo "$LIB_AUTH_SUBDIRS" >&6; }
28435else
28436	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
28437$as_echo "none" >&6; }
28438fi
28439
28440
28441
28442
28443# This is done by AC_OUTPUT but we need the result here.
28444test "x$prefix" = xNONE && prefix=$ac_default_prefix
28445test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28446
28447
28448	x="${bindir}"
28449	eval y="$x"
28450	while test "x$y" != "x$x"; do
28451		x="$y"
28452		eval y="$x"
28453	done
28454
28455cat >>confdefs.h <<_ACEOF
28456#define BINDIR "$x"
28457_ACEOF
28458
28459	x="${libdir}"
28460	eval y="$x"
28461	while test "x$y" != "x$x"; do
28462		x="$y"
28463		eval y="$x"
28464	done
28465
28466cat >>confdefs.h <<_ACEOF
28467#define LIBDIR "$x"
28468_ACEOF
28469
28470	x="${libexecdir}"
28471	eval y="$x"
28472	while test "x$y" != "x$x"; do
28473		x="$y"
28474		eval y="$x"
28475	done
28476
28477cat >>confdefs.h <<_ACEOF
28478#define LIBEXECDIR "$x"
28479_ACEOF
28480
28481	x="${localstatedir}"
28482	eval y="$x"
28483	while test "x$y" != "x$x"; do
28484		x="$y"
28485		eval y="$x"
28486	done
28487
28488cat >>confdefs.h <<_ACEOF
28489#define LOCALSTATEDIR "$x"
28490_ACEOF
28491
28492	x="${sbindir}"
28493	eval y="$x"
28494	while test "x$y" != "x$x"; do
28495		x="$y"
28496		eval y="$x"
28497	done
28498
28499cat >>confdefs.h <<_ACEOF
28500#define SBINDIR "$x"
28501_ACEOF
28502
28503	x="${sysconfdir}"
28504	eval y="$x"
28505	while test "x$y" != "x$x"; do
28506		x="$y"
28507		eval y="$x"
28508	done
28509
28510cat >>confdefs.h <<_ACEOF
28511#define SYSCONFDIR "$x"
28512_ACEOF
28513
28514
28515
28516
28517
28518# Check whether --enable-developer was given.
28519if test "${enable_developer+set}" = set; then :
28520  enableval=$enable_developer;
28521fi
28522
28523if test "X$enable_developer" = Xyes; then
28524    dwflags="-Werror"
28525fi
28526
28527WFLAGS_NOUNUSED=""
28528WFLAGS_NOIMPLICITINT=""
28529if test -z "$WFLAGS" -a "$GCC" = "yes"; then
28530  # -Wno-implicit-int for broken X11 headers
28531  # leave these out for now:
28532  #   -Wcast-align doesn't work well on alpha osf/1
28533  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
28534  #   -Wmissing-declarations -Wnested-externs
28535  #   -Wstrict-overflow=5
28536  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
28537  WFLAGS_NOUNUSED="-Wno-unused"
28538  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
28539fi
28540
28541
28542
28543
28544
28545
28546
28547# Check whether --enable-heimdal-documentation was given.
28548if test "${enable_heimdal_documentation+set}" = set; then :
28549  enableval=$enable_heimdal_documentation;
28550fi
28551
28552 if test "$enable_heimdal_documentation" != no; then
28553  HEIMDAL_DOCUMENTATION_TRUE=
28554  HEIMDAL_DOCUMENTATION_FALSE='#'
28555else
28556  HEIMDAL_DOCUMENTATION_TRUE='#'
28557  HEIMDAL_DOCUMENTATION_FALSE=
28558fi
28559
28560
28561ac_config_files="$ac_config_files Makefile etc/Makefile include/Makefile include/gssapi/Makefile include/hcrypto/Makefile include/kadm5/Makefile lib/Makefile base/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/hcrypto/Makefile lib/hx509/Makefile lib/gssapi/Makefile lib/ntlm/Makefile lib/hdb/Makefile lib/ipc/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/sqlite/Makefile lib/vers/Makefile lib/wind/Makefile po/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kcm/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/gssmask/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 tests/Makefile tests/bin/Makefile tests/can/Makefile tests/db/Makefile tests/kdc/Makefile tests/ldap/Makefile tests/gss/Makefile tests/java/Makefile tests/plugin/Makefile packages/Makefile packages/mac/Makefile doc/Makefile tools/Makefile"
28562
28563
28564cat >confcache <<\_ACEOF
28565# This file is a shell script that caches the results of configure
28566# tests run on this system so they can be shared between configure
28567# scripts and configure runs, see configure's option --config-cache.
28568# It is not useful on other systems.  If it contains results you don't
28569# want to keep, you may remove or edit it.
28570#
28571# config.status only pays attention to the cache file if you give it
28572# the --recheck option to rerun configure.
28573#
28574# `ac_cv_env_foo' variables (set or unset) will be overridden when
28575# loading this file, other *unset* `ac_cv_foo' will be assigned the
28576# following values.
28577
28578_ACEOF
28579
28580# The following way of writing the cache mishandles newlines in values,
28581# but we know of no workaround that is simple, portable, and efficient.
28582# So, we kill variables containing newlines.
28583# Ultrix sh set writes to stderr and can't be redirected directly,
28584# and sets the high bit in the cache file unless we assign to the vars.
28585(
28586  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28587    eval ac_val=\$$ac_var
28588    case $ac_val in #(
28589    *${as_nl}*)
28590      case $ac_var in #(
28591      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28592$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28593      esac
28594      case $ac_var in #(
28595      _ | IFS | as_nl) ;; #(
28596      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28597      *) { eval $ac_var=; unset $ac_var;} ;;
28598      esac ;;
28599    esac
28600  done
28601
28602  (set) 2>&1 |
28603    case $as_nl`(ac_space=' '; set) 2>&1` in #(
28604    *${as_nl}ac_space=\ *)
28605      # `set' does not quote correctly, so add quotes: double-quote
28606      # substitution turns \\\\ into \\, and sed turns \\ into \.
28607      sed -n \
28608	"s/'/'\\\\''/g;
28609	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28610      ;; #(
28611    *)
28612      # `set' quotes correctly as required by POSIX, so do not add quotes.
28613      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28614      ;;
28615    esac |
28616    sort
28617) |
28618  sed '
28619     /^ac_cv_env_/b end
28620     t clear
28621     :clear
28622     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28623     t end
28624     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28625     :end' >>confcache
28626if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28627  if test -w "$cache_file"; then
28628    test "x$cache_file" != "x/dev/null" &&
28629      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28630$as_echo "$as_me: updating cache $cache_file" >&6;}
28631    cat confcache >$cache_file
28632  else
28633    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28634$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28635  fi
28636fi
28637rm -f confcache
28638
28639test "x$prefix" = xNONE && prefix=$ac_default_prefix
28640# Let make expand exec_prefix.
28641test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28642
28643DEFS=-DHAVE_CONFIG_H
28644
28645ac_libobjs=
28646ac_ltlibobjs=
28647for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28648  # 1. Remove the extension, and $U if already installed.
28649  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28650  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28651  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28652  #    will be set to the directory where LIBOBJS objects are built.
28653  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28654  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28655done
28656LIBOBJS=$ac_libobjs
28657
28658LTLIBOBJS=$ac_ltlibobjs
28659
28660
28661 if test -n "$EXEEXT"; then
28662  am__EXEEXT_TRUE=
28663  am__EXEEXT_FALSE='#'
28664else
28665  am__EXEEXT_TRUE='#'
28666  am__EXEEXT_FALSE=
28667fi
28668
28669if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28670  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
28671Usually this means the macro was only invoked conditionally." "$LINENO" 5
28672fi
28673if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28674  as_fn_error "conditional \"AMDEP\" was never defined.
28675Usually this means the macro was only invoked conditionally." "$LINENO" 5
28676fi
28677if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28678  as_fn_error "conditional \"am__fastdepCC\" was never defined.
28679Usually this means the macro was only invoked conditionally." "$LINENO" 5
28680fi
28681if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
28682  as_fn_error "conditional \"AIX\" was never defined.
28683Usually this means the macro was only invoked conditionally." "$LINENO" 5
28684fi
28685if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
28686  as_fn_error "conditional \"AIX4\" was never defined.
28687Usually this means the macro was only invoked conditionally." "$LINENO" 5
28688fi
28689if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
28690  as_fn_error "conditional \"HAVE_DLOPEN\" was never defined.
28691Usually this means the macro was only invoked conditionally." "$LINENO" 5
28692fi
28693if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
28694  as_fn_error "conditional \"AIX_DYNAMIC_AFS\" was never defined.
28695Usually this means the macro was only invoked conditionally." "$LINENO" 5
28696fi
28697if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
28698  as_fn_error "conditional \"IRIX\" was never defined.
28699Usually this means the macro was only invoked conditionally." "$LINENO" 5
28700fi
28701if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28702  as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
28703Usually this means the macro was only invoked conditionally." "$LINENO" 5
28704fi
28705if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then
28706  as_fn_error "conditional \"versionscript\" was never defined.
28707Usually this means the macro was only invoked conditionally." "$LINENO" 5
28708fi
28709if test -z "${CROSS_COMPILE_TRUE}" && test -z "${CROSS_COMPILE_FALSE}"; then
28710  as_fn_error "conditional \"CROSS_COMPILE\" was never defined.
28711Usually this means the macro was only invoked conditionally." "$LINENO" 5
28712fi
28713if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then
28714  as_fn_error "conditional \"OPENLDAP_MODULE\" was never defined.
28715Usually this means the macro was only invoked conditionally." "$LINENO" 5
28716fi
28717if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then
28718  as_fn_error "conditional \"PKINIT\" was never defined.
28719Usually this means the macro was only invoked conditionally." "$LINENO" 5
28720fi
28721if test -z "${HAVE_CAPNG_TRUE}" && test -z "${HAVE_CAPNG_FALSE}"; then
28722  as_fn_error "conditional \"HAVE_CAPNG\" was never defined.
28723Usually this means the macro was only invoked conditionally." "$LINENO" 5
28724fi
28725if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
28726  as_fn_error "conditional \"SQLITE3\" was never defined.
28727Usually this means the macro was only invoked conditionally." "$LINENO" 5
28728fi
28729if test -z "${have_scc_TRUE}" && test -z "${have_scc_FALSE}"; then
28730  as_fn_error "conditional \"have_scc\" was never defined.
28731Usually this means the macro was only invoked conditionally." "$LINENO" 5
28732fi
28733if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
28734  as_fn_error "conditional \"KRB4\" was never defined.
28735Usually this means the macro was only invoked conditionally." "$LINENO" 5
28736fi
28737if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
28738  as_fn_error "conditional \"KRB5\" was never defined.
28739Usually this means the macro was only invoked conditionally." "$LINENO" 5
28740fi
28741if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
28742  as_fn_error "conditional \"do_roken_rename\" was never defined.
28743Usually this means the macro was only invoked conditionally." "$LINENO" 5
28744fi
28745if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
28746  as_fn_error "conditional \"HAVE_OPENSSL\" was never defined.
28747Usually this means the macro was only invoked conditionally." "$LINENO" 5
28748fi
28749if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
28750  as_fn_error "conditional \"DCE\" was never defined.
28751Usually this means the macro was only invoked conditionally." "$LINENO" 5
28752fi
28753if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
28754  as_fn_error "conditional \"HAVE_DB1\" was never defined.
28755Usually this means the macro was only invoked conditionally." "$LINENO" 5
28756fi
28757if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
28758  as_fn_error "conditional \"HAVE_DB3\" was never defined.
28759Usually this means the macro was only invoked conditionally." "$LINENO" 5
28760fi
28761if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
28762  as_fn_error "conditional \"HAVE_NDBM\" was never defined.
28763Usually this means the macro was only invoked conditionally." "$LINENO" 5
28764fi
28765if test -z "${HAVE_DBHEADER_TRUE}" && test -z "${HAVE_DBHEADER_FALSE}"; then
28766  as_fn_error "conditional \"HAVE_DBHEADER\" was never defined.
28767Usually this means the macro was only invoked conditionally." "$LINENO" 5
28768fi
28769if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
28770  as_fn_error "conditional \"have_err_h\" was never defined.
28771Usually this means the macro was only invoked conditionally." "$LINENO" 5
28772fi
28773if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
28774  as_fn_error "conditional \"have_ifaddrs_h\" was never defined.
28775Usually this means the macro was only invoked conditionally." "$LINENO" 5
28776fi
28777if test -z "${have_search_h_TRUE}" && test -z "${have_search_h_FALSE}"; then
28778  as_fn_error "conditional \"have_search_h\" was never defined.
28779Usually this means the macro was only invoked conditionally." "$LINENO" 5
28780fi
28781if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
28782  as_fn_error "conditional \"have_vis_h\" was never defined.
28783Usually this means the macro was only invoked conditionally." "$LINENO" 5
28784fi
28785if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
28786  as_fn_error "conditional \"have_glob_h\" was never defined.
28787Usually this means the macro was only invoked conditionally." "$LINENO" 5
28788fi
28789if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then
28790  as_fn_error "conditional \"have_cgetent\" was never defined.
28791Usually this means the macro was only invoked conditionally." "$LINENO" 5
28792fi
28793if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
28794  as_fn_error "conditional \"have_fnmatch_h\" was never defined.
28795Usually this means the macro was only invoked conditionally." "$LINENO" 5
28796fi
28797if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then
28798  as_fn_error "conditional \"have_socket_wrapper\" was never defined.
28799Usually this means the macro was only invoked conditionally." "$LINENO" 5
28800fi
28801if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
28802  as_fn_error "conditional \"OTP\" was never defined.
28803Usually this means the macro was only invoked conditionally." "$LINENO" 5
28804fi
28805if test -z "${have_gcd_TRUE}" && test -z "${have_gcd_FALSE}"; then
28806  as_fn_error "conditional \"have_gcd\" was never defined.
28807Usually this means the macro was only invoked conditionally." "$LINENO" 5
28808fi
28809if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
28810  as_fn_error "conditional \"CATMAN\" was never defined.
28811Usually this means the macro was only invoked conditionally." "$LINENO" 5
28812fi
28813if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
28814  as_fn_error "conditional \"HAVE_X\" was never defined.
28815Usually this means the macro was only invoked conditionally." "$LINENO" 5
28816fi
28817if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
28818  as_fn_error "conditional \"NEED_WRITEAUTH\" was never defined.
28819Usually this means the macro was only invoked conditionally." "$LINENO" 5
28820fi
28821if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then
28822  as_fn_error "conditional \"KCM\" was never defined.
28823Usually this means the macro was only invoked conditionally." "$LINENO" 5
28824fi
28825if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then
28826  as_fn_error "conditional \"FRAMEWORK_SECURITY\" was never defined.
28827Usually this means the macro was only invoked conditionally." "$LINENO" 5
28828fi
28829if test -z "${LIBEDIT_TRUE}" && test -z "${LIBEDIT_FALSE}"; then
28830  as_fn_error "conditional \"LIBEDIT\" was never defined.
28831Usually this means the macro was only invoked conditionally." "$LINENO" 5
28832fi
28833if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then
28834  as_fn_error "conditional \"COM_ERR\" was never defined.
28835Usually this means the macro was only invoked conditionally." "$LINENO" 5
28836fi
28837if test -z "${HEIMDAL_DOCUMENTATION_TRUE}" && test -z "${HEIMDAL_DOCUMENTATION_FALSE}"; then
28838  as_fn_error "conditional \"HEIMDAL_DOCUMENTATION\" was never defined.
28839Usually this means the macro was only invoked conditionally." "$LINENO" 5
28840fi
28841
28842: ${CONFIG_STATUS=./config.status}
28843ac_write_fail=0
28844ac_clean_files_save=$ac_clean_files
28845ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28846{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28847$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28848as_write_fail=0
28849cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28850#! $SHELL
28851# Generated by $as_me.
28852# Run this file to recreate the current configuration.
28853# Compiler output produced by configure, useful for debugging
28854# configure, is in config.log if it exists.
28855
28856debug=false
28857ac_cs_recheck=false
28858ac_cs_silent=false
28859
28860SHELL=\${CONFIG_SHELL-$SHELL}
28861export SHELL
28862_ASEOF
28863cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28864## -------------------- ##
28865## M4sh Initialization. ##
28866## -------------------- ##
28867
28868# Be more Bourne compatible
28869DUALCASE=1; export DUALCASE # for MKS sh
28870if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28871  emulate sh
28872  NULLCMD=:
28873  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28874  # is contrary to our usage.  Disable this feature.
28875  alias -g '${1+"$@"}'='"$@"'
28876  setopt NO_GLOB_SUBST
28877else
28878  case `(set -o) 2>/dev/null` in #(
28879  *posix*) :
28880    set -o posix ;; #(
28881  *) :
28882     ;;
28883esac
28884fi
28885
28886
28887as_nl='
28888'
28889export as_nl
28890# Printing a long string crashes Solaris 7 /usr/bin/printf.
28891as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28892as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28893as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28894# Prefer a ksh shell builtin over an external printf program on Solaris,
28895# but without wasting forks for bash or zsh.
28896if test -z "$BASH_VERSION$ZSH_VERSION" \
28897    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28898  as_echo='print -r --'
28899  as_echo_n='print -rn --'
28900elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28901  as_echo='printf %s\n'
28902  as_echo_n='printf %s'
28903else
28904  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28905    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28906    as_echo_n='/usr/ucb/echo -n'
28907  else
28908    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28909    as_echo_n_body='eval
28910      arg=$1;
28911      case $arg in #(
28912      *"$as_nl"*)
28913	expr "X$arg" : "X\\(.*\\)$as_nl";
28914	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28915      esac;
28916      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28917    '
28918    export as_echo_n_body
28919    as_echo_n='sh -c $as_echo_n_body as_echo'
28920  fi
28921  export as_echo_body
28922  as_echo='sh -c $as_echo_body as_echo'
28923fi
28924
28925# The user is always right.
28926if test "${PATH_SEPARATOR+set}" != set; then
28927  PATH_SEPARATOR=:
28928  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28929    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28930      PATH_SEPARATOR=';'
28931  }
28932fi
28933
28934
28935# IFS
28936# We need space, tab and new line, in precisely that order.  Quoting is
28937# there to prevent editors from complaining about space-tab.
28938# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28939# splitting by setting IFS to empty value.)
28940IFS=" ""	$as_nl"
28941
28942# Find who we are.  Look in the path if we contain no directory separator.
28943case $0 in #((
28944  *[\\/]* ) as_myself=$0 ;;
28945  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28946for as_dir in $PATH
28947do
28948  IFS=$as_save_IFS
28949  test -z "$as_dir" && as_dir=.
28950    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28951  done
28952IFS=$as_save_IFS
28953
28954     ;;
28955esac
28956# We did not find ourselves, most probably we were run as `sh COMMAND'
28957# in which case we are not to be found in the path.
28958if test "x$as_myself" = x; then
28959  as_myself=$0
28960fi
28961if test ! -f "$as_myself"; then
28962  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28963  exit 1
28964fi
28965
28966# Unset variables that we do not need and which cause bugs (e.g. in
28967# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28968# suppresses any "Segmentation fault" message there.  '((' could
28969# trigger a bug in pdksh 5.2.14.
28970for as_var in BASH_ENV ENV MAIL MAILPATH
28971do eval test x\${$as_var+set} = xset \
28972  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28973done
28974PS1='$ '
28975PS2='> '
28976PS4='+ '
28977
28978# NLS nuisances.
28979LC_ALL=C
28980export LC_ALL
28981LANGUAGE=C
28982export LANGUAGE
28983
28984# CDPATH.
28985(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28986
28987
28988# as_fn_error ERROR [LINENO LOG_FD]
28989# ---------------------------------
28990# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28991# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28992# script with status $?, using 1 if that was 0.
28993as_fn_error ()
28994{
28995  as_status=$?; test $as_status -eq 0 && as_status=1
28996  if test "$3"; then
28997    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28998    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28999  fi
29000  $as_echo "$as_me: error: $1" >&2
29001  as_fn_exit $as_status
29002} # as_fn_error
29003
29004
29005# as_fn_set_status STATUS
29006# -----------------------
29007# Set $? to STATUS, without forking.
29008as_fn_set_status ()
29009{
29010  return $1
29011} # as_fn_set_status
29012
29013# as_fn_exit STATUS
29014# -----------------
29015# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29016as_fn_exit ()
29017{
29018  set +e
29019  as_fn_set_status $1
29020  exit $1
29021} # as_fn_exit
29022
29023# as_fn_unset VAR
29024# ---------------
29025# Portably unset VAR.
29026as_fn_unset ()
29027{
29028  { eval $1=; unset $1;}
29029}
29030as_unset=as_fn_unset
29031# as_fn_append VAR VALUE
29032# ----------------------
29033# Append the text in VALUE to the end of the definition contained in VAR. Take
29034# advantage of any shell optimizations that allow amortized linear growth over
29035# repeated appends, instead of the typical quadratic growth present in naive
29036# implementations.
29037if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29038  eval 'as_fn_append ()
29039  {
29040    eval $1+=\$2
29041  }'
29042else
29043  as_fn_append ()
29044  {
29045    eval $1=\$$1\$2
29046  }
29047fi # as_fn_append
29048
29049# as_fn_arith ARG...
29050# ------------------
29051# Perform arithmetic evaluation on the ARGs, and store the result in the
29052# global $as_val. Take advantage of shells that can avoid forks. The arguments
29053# must be portable across $(()) and expr.
29054if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29055  eval 'as_fn_arith ()
29056  {
29057    as_val=$(( $* ))
29058  }'
29059else
29060  as_fn_arith ()
29061  {
29062    as_val=`expr "$@" || test $? -eq 1`
29063  }
29064fi # as_fn_arith
29065
29066
29067if expr a : '\(a\)' >/dev/null 2>&1 &&
29068   test "X`expr 00001 : '.*\(...\)'`" = X001; then
29069  as_expr=expr
29070else
29071  as_expr=false
29072fi
29073
29074if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29075  as_basename=basename
29076else
29077  as_basename=false
29078fi
29079
29080if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29081  as_dirname=dirname
29082else
29083  as_dirname=false
29084fi
29085
29086as_me=`$as_basename -- "$0" ||
29087$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29088	 X"$0" : 'X\(//\)$' \| \
29089	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29090$as_echo X/"$0" |
29091    sed '/^.*\/\([^/][^/]*\)\/*$/{
29092	    s//\1/
29093	    q
29094	  }
29095	  /^X\/\(\/\/\)$/{
29096	    s//\1/
29097	    q
29098	  }
29099	  /^X\/\(\/\).*/{
29100	    s//\1/
29101	    q
29102	  }
29103	  s/.*/./; q'`
29104
29105# Avoid depending upon Character Ranges.
29106as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29107as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29108as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29109as_cr_digits='0123456789'
29110as_cr_alnum=$as_cr_Letters$as_cr_digits
29111
29112ECHO_C= ECHO_N= ECHO_T=
29113case `echo -n x` in #(((((
29114-n*)
29115  case `echo 'xy\c'` in
29116  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
29117  xy)  ECHO_C='\c';;
29118  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29119       ECHO_T='	';;
29120  esac;;
29121*)
29122  ECHO_N='-n';;
29123esac
29124
29125rm -f conf$$ conf$$.exe conf$$.file
29126if test -d conf$$.dir; then
29127  rm -f conf$$.dir/conf$$.file
29128else
29129  rm -f conf$$.dir
29130  mkdir conf$$.dir 2>/dev/null
29131fi
29132if (echo >conf$$.file) 2>/dev/null; then
29133  if ln -s conf$$.file conf$$ 2>/dev/null; then
29134    as_ln_s='ln -s'
29135    # ... but there are two gotchas:
29136    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29137    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29138    # In both cases, we have to default to `cp -p'.
29139    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29140      as_ln_s='cp -p'
29141  elif ln conf$$.file conf$$ 2>/dev/null; then
29142    as_ln_s=ln
29143  else
29144    as_ln_s='cp -p'
29145  fi
29146else
29147  as_ln_s='cp -p'
29148fi
29149rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29150rmdir conf$$.dir 2>/dev/null
29151
29152
29153# as_fn_mkdir_p
29154# -------------
29155# Create "$as_dir" as a directory, including parents if necessary.
29156as_fn_mkdir_p ()
29157{
29158
29159  case $as_dir in #(
29160  -*) as_dir=./$as_dir;;
29161  esac
29162  test -d "$as_dir" || eval $as_mkdir_p || {
29163    as_dirs=
29164    while :; do
29165      case $as_dir in #(
29166      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29167      *) as_qdir=$as_dir;;
29168      esac
29169      as_dirs="'$as_qdir' $as_dirs"
29170      as_dir=`$as_dirname -- "$as_dir" ||
29171$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29172	 X"$as_dir" : 'X\(//\)[^/]' \| \
29173	 X"$as_dir" : 'X\(//\)$' \| \
29174	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29175$as_echo X"$as_dir" |
29176    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29177	    s//\1/
29178	    q
29179	  }
29180	  /^X\(\/\/\)[^/].*/{
29181	    s//\1/
29182	    q
29183	  }
29184	  /^X\(\/\/\)$/{
29185	    s//\1/
29186	    q
29187	  }
29188	  /^X\(\/\).*/{
29189	    s//\1/
29190	    q
29191	  }
29192	  s/.*/./; q'`
29193      test -d "$as_dir" && break
29194    done
29195    test -z "$as_dirs" || eval "mkdir $as_dirs"
29196  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29197
29198
29199} # as_fn_mkdir_p
29200if mkdir -p . 2>/dev/null; then
29201  as_mkdir_p='mkdir -p "$as_dir"'
29202else
29203  test -d ./-p && rmdir ./-p
29204  as_mkdir_p=false
29205fi
29206
29207if test -x / >/dev/null 2>&1; then
29208  as_test_x='test -x'
29209else
29210  if ls -dL / >/dev/null 2>&1; then
29211    as_ls_L_option=L
29212  else
29213    as_ls_L_option=
29214  fi
29215  as_test_x='
29216    eval sh -c '\''
29217      if test -d "$1"; then
29218	test -d "$1/.";
29219      else
29220	case $1 in #(
29221	-*)set "./$1";;
29222	esac;
29223	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29224	???[sx]*):;;*)false;;esac;fi
29225    '\'' sh
29226  '
29227fi
29228as_executable_p=$as_test_x
29229
29230# Sed expression to map a string onto a valid CPP name.
29231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29232
29233# Sed expression to map a string onto a valid variable name.
29234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29235
29236
29237exec 6>&1
29238## ----------------------------------- ##
29239## Main body of $CONFIG_STATUS script. ##
29240## ----------------------------------- ##
29241_ASEOF
29242test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29243
29244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29245# Save the log message, to keep $0 and so on meaningful, and to
29246# report actual input values of CONFIG_FILES etc. instead of their
29247# values after options handling.
29248ac_log="
29249This file was extended by Heimdal $as_me 1.5.2, which was
29250generated by GNU Autoconf 2.65.  Invocation command line was
29251
29252  CONFIG_FILES    = $CONFIG_FILES
29253  CONFIG_HEADERS  = $CONFIG_HEADERS
29254  CONFIG_LINKS    = $CONFIG_LINKS
29255  CONFIG_COMMANDS = $CONFIG_COMMANDS
29256  $ $0 $@
29257
29258on `(hostname || uname -n) 2>/dev/null | sed 1q`
29259"
29260
29261_ACEOF
29262
29263case $ac_config_files in *"
29264"*) set x $ac_config_files; shift; ac_config_files=$*;;
29265esac
29266
29267case $ac_config_headers in *"
29268"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29269esac
29270
29271
29272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29273# Files that config.status was made for.
29274config_files="$ac_config_files"
29275config_headers="$ac_config_headers"
29276config_commands="$ac_config_commands"
29277
29278_ACEOF
29279
29280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29281ac_cs_usage="\
29282\`$as_me' instantiates files and other configuration actions
29283from templates according to the current configuration.  Unless the files
29284and actions are specified as TAGs, all are instantiated by default.
29285
29286Usage: $0 [OPTION]... [TAG]...
29287
29288  -h, --help       print this help, then exit
29289  -V, --version    print version number and configuration settings, then exit
29290      --config     print configuration, then exit
29291  -q, --quiet, --silent
29292                   do not print progress messages
29293  -d, --debug      don't remove temporary files
29294      --recheck    update $as_me by reconfiguring in the same conditions
29295      --file=FILE[:TEMPLATE]
29296                   instantiate the configuration file FILE
29297      --header=FILE[:TEMPLATE]
29298                   instantiate the configuration header FILE
29299
29300Configuration files:
29301$config_files
29302
29303Configuration headers:
29304$config_headers
29305
29306Configuration commands:
29307$config_commands
29308
29309Report bugs to <heimdal-bugs@h5l.org>."
29310
29311_ACEOF
29312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29313ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29314ac_cs_version="\\
29315Heimdal config.status 1.5.2
29316configured by $0, generated by GNU Autoconf 2.65,
29317  with options \\"\$ac_cs_config\\"
29318
29319Copyright (C) 2009 Free Software Foundation, Inc.
29320This config.status script is free software; the Free Software Foundation
29321gives unlimited permission to copy, distribute and modify it."
29322
29323ac_pwd='$ac_pwd'
29324srcdir='$srcdir'
29325INSTALL='$INSTALL'
29326MKDIR_P='$MKDIR_P'
29327AWK='$AWK'
29328test -n "\$AWK" || AWK=awk
29329_ACEOF
29330
29331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29332# The default lists apply if the user does not specify any file.
29333ac_need_defaults=:
29334while test $# != 0
29335do
29336  case $1 in
29337  --*=*)
29338    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29339    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29340    ac_shift=:
29341    ;;
29342  *)
29343    ac_option=$1
29344    ac_optarg=$2
29345    ac_shift=shift
29346    ;;
29347  esac
29348
29349  case $ac_option in
29350  # Handling of the options.
29351  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29352    ac_cs_recheck=: ;;
29353  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29354    $as_echo "$ac_cs_version"; exit ;;
29355  --config | --confi | --conf | --con | --co | --c )
29356    $as_echo "$ac_cs_config"; exit ;;
29357  --debug | --debu | --deb | --de | --d | -d )
29358    debug=: ;;
29359  --file | --fil | --fi | --f )
29360    $ac_shift
29361    case $ac_optarg in
29362    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29363    esac
29364    as_fn_append CONFIG_FILES " '$ac_optarg'"
29365    ac_need_defaults=false;;
29366  --header | --heade | --head | --hea )
29367    $ac_shift
29368    case $ac_optarg in
29369    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29370    esac
29371    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29372    ac_need_defaults=false;;
29373  --he | --h)
29374    # Conflict between --help and --header
29375    as_fn_error "ambiguous option: \`$1'
29376Try \`$0 --help' for more information.";;
29377  --help | --hel | -h )
29378    $as_echo "$ac_cs_usage"; exit ;;
29379  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29380  | -silent | --silent | --silen | --sile | --sil | --si | --s)
29381    ac_cs_silent=: ;;
29382
29383  # This is an error.
29384  -*) as_fn_error "unrecognized option: \`$1'
29385Try \`$0 --help' for more information." ;;
29386
29387  *) as_fn_append ac_config_targets " $1"
29388     ac_need_defaults=false ;;
29389
29390  esac
29391  shift
29392done
29393
29394ac_configure_extra_args=
29395
29396if $ac_cs_silent; then
29397  exec 6>/dev/null
29398  ac_configure_extra_args="$ac_configure_extra_args --silent"
29399fi
29400
29401_ACEOF
29402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29403if \$ac_cs_recheck; then
29404  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29405  shift
29406  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29407  CONFIG_SHELL='$SHELL'
29408  export CONFIG_SHELL
29409  exec "\$@"
29410fi
29411
29412_ACEOF
29413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29414exec 5>>config.log
29415{
29416  echo
29417  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29418## Running $as_me. ##
29419_ASBOX
29420  $as_echo "$ac_log"
29421} >&5
29422
29423_ACEOF
29424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29425#
29426# INIT-COMMANDS
29427#
29428AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29429
29430
29431# The HP-UX ksh and POSIX shell print the target directory to stdout
29432# if CDPATH is set.
29433(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29434
29435sed_quote_subst='$sed_quote_subst'
29436double_quote_subst='$double_quote_subst'
29437delay_variable_subst='$delay_variable_subst'
29438macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29439macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29440enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29441enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29442pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29443enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29444SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29445ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29446host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29447host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29448host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29449build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29450build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29451build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29452SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29453Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29454GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29455EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29456FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29457LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29458NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29459LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29460max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29461ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29462exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29463lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29464lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29465lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29466lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29467lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29468reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29469reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29470OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29471deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29472file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29473file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29474want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29475DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29476sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29477AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29478AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29479archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29480STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29481RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29482old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29483old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29484old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29485lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29486CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29487CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29488compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29489GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29490lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29491lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29492lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29493lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
29494nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29495lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29496objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29497MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29498lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29499lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29500lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29501lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29502lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29503need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29504MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29505DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29506NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29507LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29508OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29509OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29510libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29511shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29512extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29513archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29514enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29515export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29516whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29517compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29518old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29519old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29520archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29521archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29522module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29523module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29524with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29525allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29526no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29527hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29528hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
29529hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29530hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29531hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29532hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29533hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29534hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29535inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29536link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29537always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29538export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29539exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29540include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29541prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29542postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29543file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29544variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29545need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29546need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29547version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29548runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29549shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29550shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29551libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29552library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29553soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29554install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29555postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29556postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29557finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29558finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29559hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29560sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29561sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29562hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29563enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29564enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29565enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29566old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29567striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29568
29569LTCC='$LTCC'
29570LTCFLAGS='$LTCFLAGS'
29571compiler='$compiler_DEFAULT'
29572
29573# A function that is used when there is no print builtin or printf.
29574func_fallback_echo ()
29575{
29576  eval 'cat <<_LTECHO_EOF
29577\$1
29578_LTECHO_EOF'
29579}
29580
29581# Quote evaled strings.
29582for var in SHELL \
29583ECHO \
29584SED \
29585GREP \
29586EGREP \
29587FGREP \
29588LD \
29589NM \
29590LN_S \
29591lt_SP2NL \
29592lt_NL2SP \
29593reload_flag \
29594OBJDUMP \
29595deplibs_check_method \
29596file_magic_cmd \
29597file_magic_glob \
29598want_nocaseglob \
29599DLLTOOL \
29600sharedlib_from_linklib_cmd \
29601AR \
29602AR_FLAGS \
29603archiver_list_spec \
29604STRIP \
29605RANLIB \
29606CC \
29607CFLAGS \
29608compiler \
29609lt_cv_sys_global_symbol_pipe \
29610lt_cv_sys_global_symbol_to_cdecl \
29611lt_cv_sys_global_symbol_to_c_name_address \
29612lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29613nm_file_list_spec \
29614lt_prog_compiler_no_builtin_flag \
29615lt_prog_compiler_pic \
29616lt_prog_compiler_wl \
29617lt_prog_compiler_static \
29618lt_cv_prog_compiler_c_o \
29619need_locks \
29620MANIFEST_TOOL \
29621DSYMUTIL \
29622NMEDIT \
29623LIPO \
29624OTOOL \
29625OTOOL64 \
29626shrext_cmds \
29627export_dynamic_flag_spec \
29628whole_archive_flag_spec \
29629compiler_needs_object \
29630with_gnu_ld \
29631allow_undefined_flag \
29632no_undefined_flag \
29633hardcode_libdir_flag_spec \
29634hardcode_libdir_flag_spec_ld \
29635hardcode_libdir_separator \
29636exclude_expsyms \
29637include_expsyms \
29638file_list_spec \
29639variables_saved_for_relink \
29640libname_spec \
29641library_names_spec \
29642soname_spec \
29643install_override_mode \
29644finish_eval \
29645old_striplib \
29646striplib; do
29647    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29648    *[\\\\\\\`\\"\\\$]*)
29649      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29650      ;;
29651    *)
29652      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29653      ;;
29654    esac
29655done
29656
29657# Double-quote double-evaled strings.
29658for var in reload_cmds \
29659old_postinstall_cmds \
29660old_postuninstall_cmds \
29661old_archive_cmds \
29662extract_expsyms_cmds \
29663old_archive_from_new_cmds \
29664old_archive_from_expsyms_cmds \
29665archive_cmds \
29666archive_expsym_cmds \
29667module_cmds \
29668module_expsym_cmds \
29669export_symbols_cmds \
29670prelink_cmds \
29671postlink_cmds \
29672postinstall_cmds \
29673postuninstall_cmds \
29674finish_cmds \
29675sys_lib_search_path_spec \
29676sys_lib_dlsearch_path_spec; do
29677    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29678    *[\\\\\\\`\\"\\\$]*)
29679      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29680      ;;
29681    *)
29682      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29683      ;;
29684    esac
29685done
29686
29687ac_aux_dir='$ac_aux_dir'
29688xsi_shell='$xsi_shell'
29689lt_shell_append='$lt_shell_append'
29690
29691# See if we are running on zsh, and set the options which allow our
29692# commands through without removal of \ escapes INIT.
29693if test -n "\${ZSH_VERSION+set}" ; then
29694   setopt NO_GLOB_SUBST
29695fi
29696
29697
29698    PACKAGE='$PACKAGE'
29699    VERSION='$VERSION'
29700    TIMESTAMP='$TIMESTAMP'
29701    RM='$RM'
29702    ofile='$ofile'
29703
29704
29705
29706
29707_ACEOF
29708
29709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29710
29711# Handling of arguments.
29712for ac_config_target in $ac_config_targets
29713do
29714  case $ac_config_target in
29715    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29716    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29717    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29718    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29719    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
29720    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29721    "include/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES include/gssapi/Makefile" ;;
29722    "include/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/hcrypto/Makefile" ;;
29723    "include/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
29724    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29725    "base/Makefile") CONFIG_FILES="$CONFIG_FILES base/Makefile" ;;
29726    "lib/asn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
29727    "lib/com_err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
29728    "lib/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hcrypto/Makefile" ;;
29729    "lib/hx509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hx509/Makefile" ;;
29730    "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
29731    "lib/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ntlm/Makefile" ;;
29732    "lib/hdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
29733    "lib/ipc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ipc/Makefile" ;;
29734    "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
29735    "lib/kafs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
29736    "lib/kdfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
29737    "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
29738    "lib/otp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
29739    "lib/roken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
29740    "lib/sl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
29741    "lib/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sqlite/Makefile" ;;
29742    "lib/vers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
29743    "lib/wind/Makefile") CONFIG_FILES="$CONFIG_FILES lib/wind/Makefile" ;;
29744    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
29745    "kuser/Makefile") CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
29746    "kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
29747    "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
29748    "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
29749    "kcm/Makefile") CONFIG_FILES="$CONFIG_FILES kcm/Makefile" ;;
29750    "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
29751    "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
29752    "appl/afsutil/Makefile") CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
29753    "appl/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
29754    "appl/ftp/common/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
29755    "appl/ftp/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
29756    "appl/ftp/ftpd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
29757    "appl/gssmask/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gssmask/Makefile" ;;
29758    "appl/kx/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
29759    "appl/login/Makefile") CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
29760    "appl/otp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
29761    "appl/popper/Makefile") CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
29762    "appl/push/Makefile") CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
29763    "appl/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
29764    "appl/rcp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
29765    "appl/su/Makefile") CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
29766    "appl/xnlock/Makefile") CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
29767    "appl/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
29768    "appl/telnet/libtelnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
29769    "appl/telnet/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
29770    "appl/telnet/telnetd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
29771    "appl/test/Makefile") CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
29772    "appl/kf/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
29773    "appl/dceutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
29774    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29775    "tests/bin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bin/Makefile" ;;
29776    "tests/can/Makefile") CONFIG_FILES="$CONFIG_FILES tests/can/Makefile" ;;
29777    "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;;
29778    "tests/kdc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kdc/Makefile" ;;
29779    "tests/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldap/Makefile" ;;
29780    "tests/gss/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss/Makefile" ;;
29781    "tests/java/Makefile") CONFIG_FILES="$CONFIG_FILES tests/java/Makefile" ;;
29782    "tests/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugin/Makefile" ;;
29783    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
29784    "packages/mac/Makefile") CONFIG_FILES="$CONFIG_FILES packages/mac/Makefile" ;;
29785    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29786    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29787
29788  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29789  esac
29790done
29791
29792
29793# If the user did not use the arguments to specify the items to instantiate,
29794# then the envvar interface is used.  Set only those that are not.
29795# We use the long form for the default assignment because of an extremely
29796# bizarre bug on SunOS 4.1.3.
29797if $ac_need_defaults; then
29798  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29799  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29800  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29801fi
29802
29803# Have a temporary directory for convenience.  Make it in the build tree
29804# simply because there is no reason against having it here, and in addition,
29805# creating and moving files from /tmp can sometimes cause problems.
29806# Hook for its removal unless debugging.
29807# Note that there is a small window in which the directory will not be cleaned:
29808# after its creation but before its name has been assigned to `$tmp'.
29809$debug ||
29810{
29811  tmp=
29812  trap 'exit_status=$?
29813  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29814' 0
29815  trap 'as_fn_exit 1' 1 2 13 15
29816}
29817# Create a (secure) tmp directory for tmp files.
29818
29819{
29820  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29821  test -n "$tmp" && test -d "$tmp"
29822}  ||
29823{
29824  tmp=./conf$$-$RANDOM
29825  (umask 077 && mkdir "$tmp")
29826} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29827
29828# Set up the scripts for CONFIG_FILES section.
29829# No need to generate them if there are no CONFIG_FILES.
29830# This happens for instance with `./config.status config.h'.
29831if test -n "$CONFIG_FILES"; then
29832
29833
29834ac_cr=`echo X | tr X '\015'`
29835# On cygwin, bash can eat \r inside `` if the user requested igncr.
29836# But we know of no other shell where ac_cr would be empty at this
29837# point, so we can use a bashism as a fallback.
29838if test "x$ac_cr" = x; then
29839  eval ac_cr=\$\'\\r\'
29840fi
29841ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29842if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29843  ac_cs_awk_cr='\r'
29844else
29845  ac_cs_awk_cr=$ac_cr
29846fi
29847
29848echo 'BEGIN {' >"$tmp/subs1.awk" &&
29849_ACEOF
29850
29851
29852{
29853  echo "cat >conf$$subs.awk <<_ACEOF" &&
29854  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29855  echo "_ACEOF"
29856} >conf$$subs.sh ||
29857  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29858ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29859ac_delim='%!_!# '
29860for ac_last_try in false false false false false :; do
29861  . ./conf$$subs.sh ||
29862    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29863
29864  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29865  if test $ac_delim_n = $ac_delim_num; then
29866    break
29867  elif $ac_last_try; then
29868    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29869  else
29870    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29871  fi
29872done
29873rm -f conf$$subs.sh
29874
29875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29876cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29877_ACEOF
29878sed -n '
29879h
29880s/^/S["/; s/!.*/"]=/
29881p
29882g
29883s/^[^!]*!//
29884:repl
29885t repl
29886s/'"$ac_delim"'$//
29887t delim
29888:nl
29889h
29890s/\(.\{148\}\)..*/\1/
29891t more1
29892s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29893p
29894n
29895b repl
29896:more1
29897s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29898p
29899g
29900s/.\{148\}//
29901t nl
29902:delim
29903h
29904s/\(.\{148\}\)..*/\1/
29905t more2
29906s/["\\]/\\&/g; s/^/"/; s/$/"/
29907p
29908b
29909:more2
29910s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29911p
29912g
29913s/.\{148\}//
29914t delim
29915' <conf$$subs.awk | sed '
29916/^[^""]/{
29917  N
29918  s/\n//
29919}
29920' >>$CONFIG_STATUS || ac_write_fail=1
29921rm -f conf$$subs.awk
29922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29923_ACAWK
29924cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29925  for (key in S) S_is_set[key] = 1
29926  FS = ""
29927
29928}
29929{
29930  line = $ 0
29931  nfields = split(line, field, "@")
29932  substed = 0
29933  len = length(field[1])
29934  for (i = 2; i < nfields; i++) {
29935    key = field[i]
29936    keylen = length(key)
29937    if (S_is_set[key]) {
29938      value = S[key]
29939      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29940      len += length(value) + length(field[++i])
29941      substed = 1
29942    } else
29943      len += 1 + keylen
29944  }
29945
29946  print line
29947}
29948
29949_ACAWK
29950_ACEOF
29951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29952if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29953  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29954else
29955  cat
29956fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29957  || as_fn_error "could not setup config files machinery" "$LINENO" 5
29958_ACEOF
29959
29960# VPATH may cause trouble with some makes, so we remove $(srcdir),
29961# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29962# trailing colons and then remove the whole line if VPATH becomes empty
29963# (actually we leave an empty line to preserve line numbers).
29964if test "x$srcdir" = x.; then
29965  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
29966s/:*\$(srcdir):*/:/
29967s/:*\${srcdir}:*/:/
29968s/:*@srcdir@:*/:/
29969s/^\([^=]*=[	 ]*\):*/\1/
29970s/:*$//
29971s/^[^=]*=[	 ]*$//
29972}'
29973fi
29974
29975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29976fi # test -n "$CONFIG_FILES"
29977
29978# Set up the scripts for CONFIG_HEADERS section.
29979# No need to generate them if there are no CONFIG_HEADERS.
29980# This happens for instance with `./config.status Makefile'.
29981if test -n "$CONFIG_HEADERS"; then
29982cat >"$tmp/defines.awk" <<\_ACAWK ||
29983BEGIN {
29984_ACEOF
29985
29986# Transform confdefs.h into an awk script `defines.awk', embedded as
29987# here-document in config.status, that substitutes the proper values into
29988# config.h.in to produce config.h.
29989
29990# Create a delimiter string that does not exist in confdefs.h, to ease
29991# handling of long lines.
29992ac_delim='%!_!# '
29993for ac_last_try in false false :; do
29994  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29995  if test -z "$ac_t"; then
29996    break
29997  elif $ac_last_try; then
29998    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29999  else
30000    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30001  fi
30002done
30003
30004# For the awk script, D is an array of macro values keyed by name,
30005# likewise P contains macro parameters if any.  Preserve backslash
30006# newline sequences.
30007
30008ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30009sed -n '
30010s/.\{148\}/&'"$ac_delim"'/g
30011t rset
30012:rset
30013s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
30014t def
30015d
30016:def
30017s/\\$//
30018t bsnl
30019s/["\\]/\\&/g
30020s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
30021D["\1"]=" \3"/p
30022s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
30023d
30024:bsnl
30025s/["\\]/\\&/g
30026s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
30027D["\1"]=" \3\\\\\\n"\\/p
30028t cont
30029s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30030t cont
30031d
30032:cont
30033n
30034s/.\{148\}/&'"$ac_delim"'/g
30035t clear
30036:clear
30037s/\\$//
30038t bsnlc
30039s/["\\]/\\&/g; s/^/"/; s/$/"/p
30040d
30041:bsnlc
30042s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30043b cont
30044' <confdefs.h | sed '
30045s/'"$ac_delim"'/"\\\
30046"/g' >>$CONFIG_STATUS || ac_write_fail=1
30047
30048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30049  for (key in D) D_is_set[key] = 1
30050  FS = ""
30051}
30052/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30053  line = \$ 0
30054  split(line, arg, " ")
30055  if (arg[1] == "#") {
30056    defundef = arg[2]
30057    mac1 = arg[3]
30058  } else {
30059    defundef = substr(arg[1], 2)
30060    mac1 = arg[2]
30061  }
30062  split(mac1, mac2, "(") #)
30063  macro = mac2[1]
30064  prefix = substr(line, 1, index(line, defundef) - 1)
30065  if (D_is_set[macro]) {
30066    # Preserve the white space surrounding the "#".
30067    print prefix "define", macro P[macro] D[macro]
30068    next
30069  } else {
30070    # Replace #undef with comments.  This is necessary, for example,
30071    # in the case of _POSIX_SOURCE, which is predefined and required
30072    # on some systems where configure will not decide to define it.
30073    if (defundef == "undef") {
30074      print "/*", prefix defundef, macro, "*/"
30075      next
30076    }
30077  }
30078}
30079{ print }
30080_ACAWK
30081_ACEOF
30082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30083  as_fn_error "could not setup config headers machinery" "$LINENO" 5
30084fi # test -n "$CONFIG_HEADERS"
30085
30086
30087eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
30088shift
30089for ac_tag
30090do
30091  case $ac_tag in
30092  :[FHLC]) ac_mode=$ac_tag; continue;;
30093  esac
30094  case $ac_mode$ac_tag in
30095  :[FHL]*:*);;
30096  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30097  :[FH]-) ac_tag=-:-;;
30098  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30099  esac
30100  ac_save_IFS=$IFS
30101  IFS=:
30102  set x $ac_tag
30103  IFS=$ac_save_IFS
30104  shift
30105  ac_file=$1
30106  shift
30107
30108  case $ac_mode in
30109  :L) ac_source=$1;;
30110  :[FH])
30111    ac_file_inputs=
30112    for ac_f
30113    do
30114      case $ac_f in
30115      -) ac_f="$tmp/stdin";;
30116      *) # Look for the file first in the build tree, then in the source tree
30117	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
30118	 # because $ac_f cannot contain `:'.
30119	 test -f "$ac_f" ||
30120	   case $ac_f in
30121	   [\\/$]*) false;;
30122	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30123	   esac ||
30124	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30125      esac
30126      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30127      as_fn_append ac_file_inputs " '$ac_f'"
30128    done
30129
30130    # Let's still pretend it is `configure' which instantiates (i.e., don't
30131    # use $as_me), people would be surprised to read:
30132    #    /* config.h.  Generated by config.status.  */
30133    configure_input='Generated from '`
30134	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30135	`' by configure.'
30136    if test x"$ac_file" != x-; then
30137      configure_input="$ac_file.  $configure_input"
30138      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30139$as_echo "$as_me: creating $ac_file" >&6;}
30140    fi
30141    # Neutralize special characters interpreted by sed in replacement strings.
30142    case $configure_input in #(
30143    *\&* | *\|* | *\\* )
30144       ac_sed_conf_input=`$as_echo "$configure_input" |
30145       sed 's/[\\\\&|]/\\\\&/g'`;; #(
30146    *) ac_sed_conf_input=$configure_input;;
30147    esac
30148
30149    case $ac_tag in
30150    *:-:* | *:-) cat >"$tmp/stdin" \
30151      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30152    esac
30153    ;;
30154  esac
30155
30156  ac_dir=`$as_dirname -- "$ac_file" ||
30157$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30158	 X"$ac_file" : 'X\(//\)[^/]' \| \
30159	 X"$ac_file" : 'X\(//\)$' \| \
30160	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30161$as_echo X"$ac_file" |
30162    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30163	    s//\1/
30164	    q
30165	  }
30166	  /^X\(\/\/\)[^/].*/{
30167	    s//\1/
30168	    q
30169	  }
30170	  /^X\(\/\/\)$/{
30171	    s//\1/
30172	    q
30173	  }
30174	  /^X\(\/\).*/{
30175	    s//\1/
30176	    q
30177	  }
30178	  s/.*/./; q'`
30179  as_dir="$ac_dir"; as_fn_mkdir_p
30180  ac_builddir=.
30181
30182case "$ac_dir" in
30183.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30184*)
30185  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30186  # A ".." for each directory in $ac_dir_suffix.
30187  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30188  case $ac_top_builddir_sub in
30189  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30190  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30191  esac ;;
30192esac
30193ac_abs_top_builddir=$ac_pwd
30194ac_abs_builddir=$ac_pwd$ac_dir_suffix
30195# for backward compatibility:
30196ac_top_builddir=$ac_top_build_prefix
30197
30198case $srcdir in
30199  .)  # We are building in place.
30200    ac_srcdir=.
30201    ac_top_srcdir=$ac_top_builddir_sub
30202    ac_abs_top_srcdir=$ac_pwd ;;
30203  [\\/]* | ?:[\\/]* )  # Absolute name.
30204    ac_srcdir=$srcdir$ac_dir_suffix;
30205    ac_top_srcdir=$srcdir
30206    ac_abs_top_srcdir=$srcdir ;;
30207  *) # Relative name.
30208    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30209    ac_top_srcdir=$ac_top_build_prefix$srcdir
30210    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30211esac
30212ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30213
30214
30215  case $ac_mode in
30216  :F)
30217  #
30218  # CONFIG_FILE
30219  #
30220
30221  case $INSTALL in
30222  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30223  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30224  esac
30225  ac_MKDIR_P=$MKDIR_P
30226  case $MKDIR_P in
30227  [\\/$]* | ?:[\\/]* ) ;;
30228  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30229  esac
30230_ACEOF
30231
30232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30233# If the template does not know about datarootdir, expand it.
30234# FIXME: This hack should be removed a few years after 2.60.
30235ac_datarootdir_hack=; ac_datarootdir_seen=
30236ac_sed_dataroot='
30237/datarootdir/ {
30238  p
30239  q
30240}
30241/@datadir@/p
30242/@docdir@/p
30243/@infodir@/p
30244/@localedir@/p
30245/@mandir@/p'
30246case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30247*datarootdir*) ac_datarootdir_seen=yes;;
30248*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30249  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30250$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30251_ACEOF
30252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30253  ac_datarootdir_hack='
30254  s&@datadir@&$datadir&g
30255  s&@docdir@&$docdir&g
30256  s&@infodir@&$infodir&g
30257  s&@localedir@&$localedir&g
30258  s&@mandir@&$mandir&g
30259  s&\\\${datarootdir}&$datarootdir&g' ;;
30260esac
30261_ACEOF
30262
30263# Neutralize VPATH when `$srcdir' = `.'.
30264# Shell code in configure.ac might set extrasub.
30265# FIXME: do we really want to maintain this feature?
30266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30267ac_sed_extra="$ac_vpsub
30268$extrasub
30269_ACEOF
30270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30271:t
30272/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30273s|@configure_input@|$ac_sed_conf_input|;t t
30274s&@top_builddir@&$ac_top_builddir_sub&;t t
30275s&@top_build_prefix@&$ac_top_build_prefix&;t t
30276s&@srcdir@&$ac_srcdir&;t t
30277s&@abs_srcdir@&$ac_abs_srcdir&;t t
30278s&@top_srcdir@&$ac_top_srcdir&;t t
30279s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30280s&@builddir@&$ac_builddir&;t t
30281s&@abs_builddir@&$ac_abs_builddir&;t t
30282s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30283s&@INSTALL@&$ac_INSTALL&;t t
30284s&@MKDIR_P@&$ac_MKDIR_P&;t t
30285$ac_datarootdir_hack
30286"
30287eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30288  || as_fn_error "could not create $ac_file" "$LINENO" 5
30289
30290test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30291  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30292  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30293  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30294which seems to be undefined.  Please make sure it is defined." >&5
30295$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30296which seems to be undefined.  Please make sure it is defined." >&2;}
30297
30298  rm -f "$tmp/stdin"
30299  case $ac_file in
30300  -) cat "$tmp/out" && rm -f "$tmp/out";;
30301  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30302  esac \
30303  || as_fn_error "could not create $ac_file" "$LINENO" 5
30304 ;;
30305  :H)
30306  #
30307  # CONFIG_HEADER
30308  #
30309  if test x"$ac_file" != x-; then
30310    {
30311      $as_echo "/* $configure_input  */" \
30312      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30313    } >"$tmp/config.h" \
30314      || as_fn_error "could not create $ac_file" "$LINENO" 5
30315    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30316      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30317$as_echo "$as_me: $ac_file is unchanged" >&6;}
30318    else
30319      rm -f "$ac_file"
30320      mv "$tmp/config.h" "$ac_file" \
30321	|| as_fn_error "could not create $ac_file" "$LINENO" 5
30322    fi
30323  else
30324    $as_echo "/* $configure_input  */" \
30325      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30326      || as_fn_error "could not create -" "$LINENO" 5
30327  fi
30328# Compute "$ac_file"'s index in $config_headers.
30329_am_arg="$ac_file"
30330_am_stamp_count=1
30331for _am_header in $config_headers :; do
30332  case $_am_header in
30333    $_am_arg | $_am_arg:* )
30334      break ;;
30335    * )
30336      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30337  esac
30338done
30339echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30340$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30341	 X"$_am_arg" : 'X\(//\)[^/]' \| \
30342	 X"$_am_arg" : 'X\(//\)$' \| \
30343	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30344$as_echo X"$_am_arg" |
30345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30346	    s//\1/
30347	    q
30348	  }
30349	  /^X\(\/\/\)[^/].*/{
30350	    s//\1/
30351	    q
30352	  }
30353	  /^X\(\/\/\)$/{
30354	    s//\1/
30355	    q
30356	  }
30357	  /^X\(\/\).*/{
30358	    s//\1/
30359	    q
30360	  }
30361	  s/.*/./; q'`/stamp-h$_am_stamp_count
30362 ;;
30363
30364  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30365$as_echo "$as_me: executing $ac_file commands" >&6;}
30366 ;;
30367  esac
30368
30369
30370  case $ac_file$ac_mode in
30371    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30372  # Autoconf 2.62 quotes --file arguments for eval, but not when files
30373  # are listed without --file.  Let's play safe and only enable the eval
30374  # if we detect the quoting.
30375  case $CONFIG_FILES in
30376  *\'*) eval set x "$CONFIG_FILES" ;;
30377  *)   set x $CONFIG_FILES ;;
30378  esac
30379  shift
30380  for mf
30381  do
30382    # Strip MF so we end up with the name of the file.
30383    mf=`echo "$mf" | sed -e 's/:.*$//'`
30384    # Check whether this is an Automake generated Makefile or not.
30385    # We used to match only the files named `Makefile.in', but
30386    # some people rename them; so instead we look at the file content.
30387    # Grep'ing the first line is not enough: some people post-process
30388    # each Makefile.in and add a new line on top of each file to say so.
30389    # Grep'ing the whole file is not good either: AIX grep has a line
30390    # limit of 2048, but all sed's we know have understand at least 4000.
30391    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30392      dirpart=`$as_dirname -- "$mf" ||
30393$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30394	 X"$mf" : 'X\(//\)[^/]' \| \
30395	 X"$mf" : 'X\(//\)$' \| \
30396	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30397$as_echo X"$mf" |
30398    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30399	    s//\1/
30400	    q
30401	  }
30402	  /^X\(\/\/\)[^/].*/{
30403	    s//\1/
30404	    q
30405	  }
30406	  /^X\(\/\/\)$/{
30407	    s//\1/
30408	    q
30409	  }
30410	  /^X\(\/\).*/{
30411	    s//\1/
30412	    q
30413	  }
30414	  s/.*/./; q'`
30415    else
30416      continue
30417    fi
30418    # Extract the definition of DEPDIR, am__include, and am__quote
30419    # from the Makefile without running `make'.
30420    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30421    test -z "$DEPDIR" && continue
30422    am__include=`sed -n 's/^am__include = //p' < "$mf"`
30423    test -z "am__include" && continue
30424    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30425    # When using ansi2knr, U may be empty or an underscore; expand it
30426    U=`sed -n 's/^U = //p' < "$mf"`
30427    # Find all dependency output files, they are included files with
30428    # $(DEPDIR) in their names.  We invoke sed twice because it is the
30429    # simplest approach to changing $(DEPDIR) to its actual value in the
30430    # expansion.
30431    for file in `sed -n "
30432      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30433	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30434      # Make sure the directory exists.
30435      test -f "$dirpart/$file" && continue
30436      fdir=`$as_dirname -- "$file" ||
30437$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30438	 X"$file" : 'X\(//\)[^/]' \| \
30439	 X"$file" : 'X\(//\)$' \| \
30440	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30441$as_echo X"$file" |
30442    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30443	    s//\1/
30444	    q
30445	  }
30446	  /^X\(\/\/\)[^/].*/{
30447	    s//\1/
30448	    q
30449	  }
30450	  /^X\(\/\/\)$/{
30451	    s//\1/
30452	    q
30453	  }
30454	  /^X\(\/\).*/{
30455	    s//\1/
30456	    q
30457	  }
30458	  s/.*/./; q'`
30459      as_dir=$dirpart/$fdir; as_fn_mkdir_p
30460      # echo "creating $dirpart/$file"
30461      echo '# dummy' > "$dirpart/$file"
30462    done
30463  done
30464}
30465 ;;
30466    "libtool":C)
30467
30468    # See if we are running on zsh, and set the options which allow our
30469    # commands through without removal of \ escapes.
30470    if test -n "${ZSH_VERSION+set}" ; then
30471      setopt NO_GLOB_SUBST
30472    fi
30473
30474    cfgfile="${ofile}T"
30475    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30476    $RM "$cfgfile"
30477
30478    cat <<_LT_EOF >> "$cfgfile"
30479#! $SHELL
30480
30481# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30482# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30483# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30484# NOTE: Changes made to this file will be lost: look at ltmain.sh.
30485#
30486#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30487#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
30488#                 Inc.
30489#   Written by Gordon Matzigkeit, 1996
30490#
30491#   This file is part of GNU Libtool.
30492#
30493# GNU Libtool is free software; you can redistribute it and/or
30494# modify it under the terms of the GNU General Public License as
30495# published by the Free Software Foundation; either version 2 of
30496# the License, or (at your option) any later version.
30497#
30498# As a special exception to the GNU General Public License,
30499# if you distribute this file as part of a program or library that
30500# is built using GNU Libtool, you may include this file under the
30501# same distribution terms that you use for the rest of that program.
30502#
30503# GNU Libtool is distributed in the hope that it will be useful,
30504# but WITHOUT ANY WARRANTY; without even the implied warranty of
30505# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30506# GNU General Public License for more details.
30507#
30508# You should have received a copy of the GNU General Public License
30509# along with GNU Libtool; see the file COPYING.  If not, a copy
30510# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30511# obtained by writing to the Free Software Foundation, Inc.,
30512# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30513
30514
30515# The names of the tagged configurations supported by this script.
30516available_tags=""
30517
30518# ### BEGIN LIBTOOL CONFIG
30519
30520# Which release of libtool.m4 was used?
30521macro_version=$macro_version
30522macro_revision=$macro_revision
30523
30524# Whether or not to build shared libraries.
30525build_libtool_libs=$enable_shared
30526
30527# Whether or not to build static libraries.
30528build_old_libs=$enable_static
30529
30530# What type of objects to build.
30531pic_mode=$pic_mode
30532
30533# Whether or not to optimize for fast installation.
30534fast_install=$enable_fast_install
30535
30536# Shell to use when invoking shell scripts.
30537SHELL=$lt_SHELL
30538
30539# An echo program that protects backslashes.
30540ECHO=$lt_ECHO
30541
30542# The host system.
30543host_alias=$host_alias
30544host=$host
30545host_os=$host_os
30546
30547# The build system.
30548build_alias=$build_alias
30549build=$build
30550build_os=$build_os
30551
30552# A sed program that does not truncate output.
30553SED=$lt_SED
30554
30555# Sed that helps us avoid accidentally triggering echo(1) options like -n.
30556Xsed="\$SED -e 1s/^X//"
30557
30558# A grep program that handles long lines.
30559GREP=$lt_GREP
30560
30561# An ERE matcher.
30562EGREP=$lt_EGREP
30563
30564# A literal string matcher.
30565FGREP=$lt_FGREP
30566
30567# A BSD- or MS-compatible name lister.
30568NM=$lt_NM
30569
30570# Whether we need soft or hard links.
30571LN_S=$lt_LN_S
30572
30573# What is the maximum length of a command?
30574max_cmd_len=$max_cmd_len
30575
30576# Object file suffix (normally "o").
30577objext=$ac_objext
30578
30579# Executable file suffix (normally "").
30580exeext=$exeext
30581
30582# whether the shell understands "unset".
30583lt_unset=$lt_unset
30584
30585# turn spaces into newlines.
30586SP2NL=$lt_lt_SP2NL
30587
30588# turn newlines into spaces.
30589NL2SP=$lt_lt_NL2SP
30590
30591# convert \$build file names to \$host format.
30592to_host_file_cmd=$lt_cv_to_host_file_cmd
30593
30594# convert \$build files to toolchain format.
30595to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30596
30597# An object symbol dumper.
30598OBJDUMP=$lt_OBJDUMP
30599
30600# Method to check whether dependent libraries are shared objects.
30601deplibs_check_method=$lt_deplibs_check_method
30602
30603# Command to use when deplibs_check_method = "file_magic".
30604file_magic_cmd=$lt_file_magic_cmd
30605
30606# How to find potential files when deplibs_check_method = "file_magic".
30607file_magic_glob=$lt_file_magic_glob
30608
30609# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30610want_nocaseglob=$lt_want_nocaseglob
30611
30612# DLL creation program.
30613DLLTOOL=$lt_DLLTOOL
30614
30615# Command to associate shared and link libraries.
30616sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30617
30618# The archiver.
30619AR=$lt_AR
30620
30621# Flags to create an archive.
30622AR_FLAGS=$lt_AR_FLAGS
30623
30624# How to feed a file listing to the archiver.
30625archiver_list_spec=$lt_archiver_list_spec
30626
30627# A symbol stripping program.
30628STRIP=$lt_STRIP
30629
30630# Commands used to install an old-style archive.
30631RANLIB=$lt_RANLIB
30632old_postinstall_cmds=$lt_old_postinstall_cmds
30633old_postuninstall_cmds=$lt_old_postuninstall_cmds
30634
30635# Whether to use a lock for old archive extraction.
30636lock_old_archive_extraction=$lock_old_archive_extraction
30637
30638# A C compiler.
30639LTCC=$lt_CC
30640
30641# LTCC compiler flags.
30642LTCFLAGS=$lt_CFLAGS
30643
30644# Take the output of nm and produce a listing of raw symbols and C names.
30645global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30646
30647# Transform the output of nm in a proper C declaration.
30648global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30649
30650# Transform the output of nm in a C name address pair.
30651global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30652
30653# Transform the output of nm in a C name address pair when lib prefix is needed.
30654global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30655
30656# Specify filename containing input files for \$NM.
30657nm_file_list_spec=$lt_nm_file_list_spec
30658
30659# The root where to search for dependent libraries,and in which our libraries should be installed.
30660lt_sysroot=$lt_sysroot
30661
30662# The name of the directory that contains temporary libtool files.
30663objdir=$objdir
30664
30665# Used to examine libraries when file_magic_cmd begins with "file".
30666MAGIC_CMD=$MAGIC_CMD
30667
30668# Must we lock files when doing compilation?
30669need_locks=$lt_need_locks
30670
30671# Manifest tool.
30672MANIFEST_TOOL=$lt_MANIFEST_TOOL
30673
30674# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30675DSYMUTIL=$lt_DSYMUTIL
30676
30677# Tool to change global to local symbols on Mac OS X.
30678NMEDIT=$lt_NMEDIT
30679
30680# Tool to manipulate fat objects and archives on Mac OS X.
30681LIPO=$lt_LIPO
30682
30683# ldd/readelf like tool for Mach-O binaries on Mac OS X.
30684OTOOL=$lt_OTOOL
30685
30686# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30687OTOOL64=$lt_OTOOL64
30688
30689# Old archive suffix (normally "a").
30690libext=$libext
30691
30692# Shared library suffix (normally ".so").
30693shrext_cmds=$lt_shrext_cmds
30694
30695# The commands to extract the exported symbol list from a shared archive.
30696extract_expsyms_cmds=$lt_extract_expsyms_cmds
30697
30698# Variables whose values should be saved in libtool wrapper scripts and
30699# restored at link time.
30700variables_saved_for_relink=$lt_variables_saved_for_relink
30701
30702# Do we need the "lib" prefix for modules?
30703need_lib_prefix=$need_lib_prefix
30704
30705# Do we need a version for libraries?
30706need_version=$need_version
30707
30708# Library versioning type.
30709version_type=$version_type
30710
30711# Shared library runtime path variable.
30712runpath_var=$runpath_var
30713
30714# Shared library path variable.
30715shlibpath_var=$shlibpath_var
30716
30717# Is shlibpath searched before the hard-coded library search path?
30718shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30719
30720# Format of library name prefix.
30721libname_spec=$lt_libname_spec
30722
30723# List of archive names.  First name is the real one, the rest are links.
30724# The last name is the one that the linker finds with -lNAME
30725library_names_spec=$lt_library_names_spec
30726
30727# The coded name of the library, if different from the real name.
30728soname_spec=$lt_soname_spec
30729
30730# Permission mode override for installation of shared libraries.
30731install_override_mode=$lt_install_override_mode
30732
30733# Command to use after installation of a shared archive.
30734postinstall_cmds=$lt_postinstall_cmds
30735
30736# Command to use after uninstallation of a shared archive.
30737postuninstall_cmds=$lt_postuninstall_cmds
30738
30739# Commands used to finish a libtool library installation in a directory.
30740finish_cmds=$lt_finish_cmds
30741
30742# As "finish_cmds", except a single script fragment to be evaled but
30743# not shown.
30744finish_eval=$lt_finish_eval
30745
30746# Whether we should hardcode library paths into libraries.
30747hardcode_into_libs=$hardcode_into_libs
30748
30749# Compile-time system search path for libraries.
30750sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30751
30752# Run-time system search path for libraries.
30753sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30754
30755# Whether dlopen is supported.
30756dlopen_support=$enable_dlopen
30757
30758# Whether dlopen of programs is supported.
30759dlopen_self=$enable_dlopen_self
30760
30761# Whether dlopen of statically linked programs is supported.
30762dlopen_self_static=$enable_dlopen_self_static
30763
30764# Commands to strip libraries.
30765old_striplib=$lt_old_striplib
30766striplib=$lt_striplib
30767
30768
30769# The linker used to build libraries.
30770LD=$lt_LD
30771
30772# How to create reloadable object files.
30773reload_flag=$lt_reload_flag
30774reload_cmds=$lt_reload_cmds
30775
30776# Commands used to build an old-style archive.
30777old_archive_cmds=$lt_old_archive_cmds
30778
30779# A language specific compiler.
30780CC=$lt_compiler
30781
30782# Is the compiler the GNU compiler?
30783with_gcc=$GCC
30784
30785# Compiler flag to turn off builtin functions.
30786no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30787
30788# Additional compiler flags for building library objects.
30789pic_flag=$lt_lt_prog_compiler_pic
30790
30791# How to pass a linker flag through the compiler.
30792wl=$lt_lt_prog_compiler_wl
30793
30794# Compiler flag to prevent dynamic linking.
30795link_static_flag=$lt_lt_prog_compiler_static
30796
30797# Does compiler simultaneously support -c and -o options?
30798compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30799
30800# Whether or not to add -lc for building shared libraries.
30801build_libtool_need_lc=$archive_cmds_need_lc
30802
30803# Whether or not to disallow shared libs when runtime libs are static.
30804allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30805
30806# Compiler flag to allow reflexive dlopens.
30807export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30808
30809# Compiler flag to generate shared objects directly from archives.
30810whole_archive_flag_spec=$lt_whole_archive_flag_spec
30811
30812# Whether the compiler copes with passing no objects directly.
30813compiler_needs_object=$lt_compiler_needs_object
30814
30815# Create an old-style archive from a shared archive.
30816old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30817
30818# Create a temporary old-style archive to link instead of a shared archive.
30819old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30820
30821# Commands used to build a shared archive.
30822archive_cmds=$lt_archive_cmds
30823archive_expsym_cmds=$lt_archive_expsym_cmds
30824
30825# Commands used to build a loadable module if different from building
30826# a shared archive.
30827module_cmds=$lt_module_cmds
30828module_expsym_cmds=$lt_module_expsym_cmds
30829
30830# Whether we are building with GNU ld or not.
30831with_gnu_ld=$lt_with_gnu_ld
30832
30833# Flag that allows shared libraries with undefined symbols to be built.
30834allow_undefined_flag=$lt_allow_undefined_flag
30835
30836# Flag that enforces no undefined symbols.
30837no_undefined_flag=$lt_no_undefined_flag
30838
30839# Flag to hardcode \$libdir into a binary during linking.
30840# This must work even if \$libdir does not exist
30841hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30842
30843# If ld is used when linking, flag to hardcode \$libdir into a binary
30844# during linking.  This must work even if \$libdir does not exist.
30845hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30846
30847# Whether we need a single "-rpath" flag with a separated argument.
30848hardcode_libdir_separator=$lt_hardcode_libdir_separator
30849
30850# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30851# DIR into the resulting binary.
30852hardcode_direct=$hardcode_direct
30853
30854# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30855# DIR into the resulting binary and the resulting library dependency is
30856# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30857# library is relocated.
30858hardcode_direct_absolute=$hardcode_direct_absolute
30859
30860# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30861# into the resulting binary.
30862hardcode_minus_L=$hardcode_minus_L
30863
30864# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30865# into the resulting binary.
30866hardcode_shlibpath_var=$hardcode_shlibpath_var
30867
30868# Set to "yes" if building a shared library automatically hardcodes DIR
30869# into the library and all subsequent libraries and executables linked
30870# against it.
30871hardcode_automatic=$hardcode_automatic
30872
30873# Set to yes if linker adds runtime paths of dependent libraries
30874# to runtime path list.
30875inherit_rpath=$inherit_rpath
30876
30877# Whether libtool must link a program against all its dependency libraries.
30878link_all_deplibs=$link_all_deplibs
30879
30880# Set to "yes" if exported symbols are required.
30881always_export_symbols=$always_export_symbols
30882
30883# The commands to list exported symbols.
30884export_symbols_cmds=$lt_export_symbols_cmds
30885
30886# Symbols that should not be listed in the preloaded symbols.
30887exclude_expsyms=$lt_exclude_expsyms
30888
30889# Symbols that must always be exported.
30890include_expsyms=$lt_include_expsyms
30891
30892# Commands necessary for linking programs (against libraries) with templates.
30893prelink_cmds=$lt_prelink_cmds
30894
30895# Commands necessary for finishing linking programs.
30896postlink_cmds=$lt_postlink_cmds
30897
30898# Specify filename containing input files.
30899file_list_spec=$lt_file_list_spec
30900
30901# How to hardcode a shared library path into an executable.
30902hardcode_action=$hardcode_action
30903
30904# ### END LIBTOOL CONFIG
30905
30906_LT_EOF
30907
30908  case $host_os in
30909  aix3*)
30910    cat <<\_LT_EOF >> "$cfgfile"
30911# AIX sometimes has problems with the GCC collect2 program.  For some
30912# reason, if we set the COLLECT_NAMES environment variable, the problems
30913# vanish in a puff of smoke.
30914if test "X${COLLECT_NAMES+set}" != Xset; then
30915  COLLECT_NAMES=
30916  export COLLECT_NAMES
30917fi
30918_LT_EOF
30919    ;;
30920  esac
30921
30922
30923ltmain="$ac_aux_dir/ltmain.sh"
30924
30925
30926  # We use sed instead of cat because bash on DJGPP gets confused if
30927  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30928  # text mode, it properly converts lines to CR/LF.  This bash problem
30929  # is reportedly fixed, but why not run on old versions too?
30930  sed '$q' "$ltmain" >> "$cfgfile" \
30931     || (rm -f "$cfgfile"; exit 1)
30932
30933  if test x"$xsi_shell" = xyes; then
30934  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
30935func_dirname ()\
30936{\
30937\    case ${1} in\
30938\      */*) func_dirname_result="${1%/*}${2}" ;;\
30939\      *  ) func_dirname_result="${3}" ;;\
30940\    esac\
30941} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
30942  && mv -f "$cfgfile.tmp" "$cfgfile" \
30943    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30944test 0 -eq $? || _lt_function_replace_fail=:
30945
30946
30947  sed -e '/^func_basename ()$/,/^} # func_basename /c\
30948func_basename ()\
30949{\
30950\    func_basename_result="${1##*/}"\
30951} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
30952  && mv -f "$cfgfile.tmp" "$cfgfile" \
30953    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30954test 0 -eq $? || _lt_function_replace_fail=:
30955
30956
30957  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
30958func_dirname_and_basename ()\
30959{\
30960\    case ${1} in\
30961\      */*) func_dirname_result="${1%/*}${2}" ;;\
30962\      *  ) func_dirname_result="${3}" ;;\
30963\    esac\
30964\    func_basename_result="${1##*/}"\
30965} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
30966  && mv -f "$cfgfile.tmp" "$cfgfile" \
30967    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30968test 0 -eq $? || _lt_function_replace_fail=:
30969
30970
30971  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
30972func_stripname ()\
30973{\
30974\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
30975\    # positional parameters, so assign one to ordinary parameter first.\
30976\    func_stripname_result=${3}\
30977\    func_stripname_result=${func_stripname_result#"${1}"}\
30978\    func_stripname_result=${func_stripname_result%"${2}"}\
30979} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
30980  && mv -f "$cfgfile.tmp" "$cfgfile" \
30981    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30982test 0 -eq $? || _lt_function_replace_fail=:
30983
30984
30985  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
30986func_split_long_opt ()\
30987{\
30988\    func_split_long_opt_name=${1%%=*}\
30989\    func_split_long_opt_arg=${1#*=}\
30990} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
30991  && mv -f "$cfgfile.tmp" "$cfgfile" \
30992    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30993test 0 -eq $? || _lt_function_replace_fail=:
30994
30995
30996  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
30997func_split_short_opt ()\
30998{\
30999\    func_split_short_opt_arg=${1#??}\
31000\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
31001} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
31002  && mv -f "$cfgfile.tmp" "$cfgfile" \
31003    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31004test 0 -eq $? || _lt_function_replace_fail=:
31005
31006
31007  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
31008func_lo2o ()\
31009{\
31010\    case ${1} in\
31011\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
31012\      *)    func_lo2o_result=${1} ;;\
31013\    esac\
31014} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
31015  && mv -f "$cfgfile.tmp" "$cfgfile" \
31016    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31017test 0 -eq $? || _lt_function_replace_fail=:
31018
31019
31020  sed -e '/^func_xform ()$/,/^} # func_xform /c\
31021func_xform ()\
31022{\
31023    func_xform_result=${1%.*}.lo\
31024} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
31025  && mv -f "$cfgfile.tmp" "$cfgfile" \
31026    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31027test 0 -eq $? || _lt_function_replace_fail=:
31028
31029
31030  sed -e '/^func_arith ()$/,/^} # func_arith /c\
31031func_arith ()\
31032{\
31033    func_arith_result=$(( $* ))\
31034} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
31035  && mv -f "$cfgfile.tmp" "$cfgfile" \
31036    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31037test 0 -eq $? || _lt_function_replace_fail=:
31038
31039
31040  sed -e '/^func_len ()$/,/^} # func_len /c\
31041func_len ()\
31042{\
31043    func_len_result=${#1}\
31044} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
31045  && mv -f "$cfgfile.tmp" "$cfgfile" \
31046    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31047test 0 -eq $? || _lt_function_replace_fail=:
31048
31049fi
31050
31051if test x"$lt_shell_append" = xyes; then
31052  sed -e '/^func_append ()$/,/^} # func_append /c\
31053func_append ()\
31054{\
31055    eval "${1}+=\\${2}"\
31056} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
31057  && mv -f "$cfgfile.tmp" "$cfgfile" \
31058    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31059test 0 -eq $? || _lt_function_replace_fail=:
31060
31061
31062  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
31063func_append_quoted ()\
31064{\
31065\    func_quote_for_eval "${2}"\
31066\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
31067} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
31068  && mv -f "$cfgfile.tmp" "$cfgfile" \
31069    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31070test 0 -eq $? || _lt_function_replace_fail=:
31071
31072
31073  # Save a `func_append' function call where possible by direct use of '+='
31074  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
31075    && mv -f "$cfgfile.tmp" "$cfgfile" \
31076      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31077  test 0 -eq $? || _lt_function_replace_fail=:
31078else
31079  # Save a `func_append' function call even when '+=' is not available
31080  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
31081    && mv -f "$cfgfile.tmp" "$cfgfile" \
31082      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31083  test 0 -eq $? || _lt_function_replace_fail=:
31084fi
31085
31086if test x"$_lt_function_replace_fail" = x":"; then
31087  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
31088$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
31089fi
31090
31091
31092   mv -f "$cfgfile" "$ofile" ||
31093    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31094  chmod +x "$ofile"
31095
31096 ;;
31097
31098  esac
31099done # for ac_tag
31100
31101
31102as_fn_exit 0
31103_ACEOF
31104ac_clean_files=$ac_clean_files_save
31105
31106test $ac_write_fail = 0 ||
31107  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31108
31109
31110# configure is writing to config.log, and then calls config.status.
31111# config.status does its own redirection, appending to config.log.
31112# Unfortunately, on DOS this fails, as config.log is still kept open
31113# by configure, so config.status won't be able to write to it; its
31114# output is simply discarded.  So we exec the FD to /dev/null,
31115# effectively closing config.log, so it can be properly (re)opened and
31116# appended to by config.status.  When coming back to configure, we
31117# need to make the FD available again.
31118if test "$no_create" != yes; then
31119  ac_cs_success=:
31120  ac_config_status_args=
31121  test "$silent" = yes &&
31122    ac_config_status_args="$ac_config_status_args --quiet"
31123  exec 5>/dev/null
31124  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31125  exec 5>>config.log
31126  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31127  # would make configure fail if this is the last instruction.
31128  $ac_cs_success || as_fn_exit $?
31129fi
31130
31131#
31132# CONFIG_SUBDIRS section.
31133#
31134if test "$no_recursion" != yes; then
31135
31136  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
31137  # so they do not pile up.
31138  ac_sub_configure_args=
31139  ac_prev=
31140  eval "set x $ac_configure_args"
31141  shift
31142  for ac_arg
31143  do
31144    if test -n "$ac_prev"; then
31145      ac_prev=
31146      continue
31147    fi
31148    case $ac_arg in
31149    -cache-file | --cache-file | --cache-fil | --cache-fi \
31150    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31151      ac_prev=cache_file ;;
31152    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31153    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31154    | --c=*)
31155      ;;
31156    --config-cache | -C)
31157      ;;
31158    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31159      ac_prev=srcdir ;;
31160    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31161      ;;
31162    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31163      ac_prev=prefix ;;
31164    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31165      ;;
31166    --disable-option-checking)
31167      ;;
31168    *)
31169      case $ac_arg in
31170      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31171      esac
31172      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
31173    esac
31174  done
31175
31176  # Always prepend --prefix to ensure using the same prefix
31177  # in subdir configurations.
31178  ac_arg="--prefix=$prefix"
31179  case $ac_arg in
31180  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31181  esac
31182  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
31183
31184  # Pass --silent
31185  if test "$silent" = yes; then
31186    ac_sub_configure_args="--silent $ac_sub_configure_args"
31187  fi
31188
31189  # Always prepend --disable-option-checking to silence warnings, since
31190  # different subdirs can have different --enable and --with options.
31191  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
31192
31193  ac_popdir=`pwd`
31194  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31195
31196    # Do not complain, so a configure script can configure whichever
31197    # parts of a large source tree are present.
31198    test -d "$srcdir/$ac_dir" || continue
31199
31200    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
31201    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
31202    $as_echo "$ac_msg" >&6
31203    as_dir="$ac_dir"; as_fn_mkdir_p
31204    ac_builddir=.
31205
31206case "$ac_dir" in
31207.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31208*)
31209  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31210  # A ".." for each directory in $ac_dir_suffix.
31211  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31212  case $ac_top_builddir_sub in
31213  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31214  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31215  esac ;;
31216esac
31217ac_abs_top_builddir=$ac_pwd
31218ac_abs_builddir=$ac_pwd$ac_dir_suffix
31219# for backward compatibility:
31220ac_top_builddir=$ac_top_build_prefix
31221
31222case $srcdir in
31223  .)  # We are building in place.
31224    ac_srcdir=.
31225    ac_top_srcdir=$ac_top_builddir_sub
31226    ac_abs_top_srcdir=$ac_pwd ;;
31227  [\\/]* | ?:[\\/]* )  # Absolute name.
31228    ac_srcdir=$srcdir$ac_dir_suffix;
31229    ac_top_srcdir=$srcdir
31230    ac_abs_top_srcdir=$srcdir ;;
31231  *) # Relative name.
31232    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31233    ac_top_srcdir=$ac_top_build_prefix$srcdir
31234    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31235esac
31236ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31237
31238
31239    cd "$ac_dir"
31240
31241    # Check for guested configure; otherwise get Cygnus style configure.
31242    if test -f "$ac_srcdir/configure.gnu"; then
31243      ac_sub_configure=$ac_srcdir/configure.gnu
31244    elif test -f "$ac_srcdir/configure"; then
31245      ac_sub_configure=$ac_srcdir/configure
31246    elif test -f "$ac_srcdir/configure.in"; then
31247      # This should be Cygnus configure.
31248      ac_sub_configure=$ac_aux_dir/configure
31249    else
31250      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
31251$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31252      ac_sub_configure=
31253    fi
31254
31255    # The recursion is here.
31256    if test -n "$ac_sub_configure"; then
31257      # Make the cache file name correct relative to the subdirectory.
31258      case $cache_file in
31259      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31260      *) # Relative name.
31261	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
31262      esac
31263
31264      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31265$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31266      # The eval makes quoting arguments work.
31267      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31268	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31269	as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
31270    fi
31271
31272    cd "$ac_popdir"
31273  done
31274fi
31275if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31276  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31277$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31278fi
31279
31280
31281
31282cat > include/newversion.h.in <<EOF
31283#ifndef VERSION_HIDDEN
31284#define VERSION_HIDDEN
31285#endif
31286VERSION_HIDDEN const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
31287VERSION_HIDDEN const char *heimdal_version = "Heimdal 1.5.2";
31288EOF
31289
31290if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
31291	echo "include/version.h is unchanged"
31292	rm -f include/newversion.h.in
31293else
31294 	echo "creating include/version.h"
31295 	User=${USER-${LOGNAME}}
31296 	Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
31297 	Date=`date`
31298	mv -f include/newversion.h.in include/version.h.in
31299	sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
31300fi
31301