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.3.99.
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
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	BASH_ENV=/dev/null
221	ENV=/dev/null
222	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223	export CONFIG_SHELL
224	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225fi
226
227    if test x$as_have_required = xno; then :
228  $as_echo "$0: This script requires a shell more modern than all"
229  $as_echo "$0: the shells that I found on your system."
230  if test x${ZSH_VERSION+set} = xset ; then
231    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233  else
234    $as_echo "$0: Please tell bug-autoconf@gnu.org and
235$0: heimdal-bugs@h5l.org about your system, including any
236$0: error possibly output before this message. Then install
237$0: a modern shell, or manually run the script under such a
238$0: shell if you do have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299	 X"$as_dir" : 'X\(//\)[^/]' \| \
300	 X"$as_dir" : 'X\(//\)$' \| \
301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)[^/].*/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\).*/{
316	    s//\1/
317	    q
318	  }
319	  s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400	 X"$0" : 'X\(//\)$' \| \
401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\/\)$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\).*/{
412	    s//\1/
413	    q
414	  }
415	  s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T='	';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514	test -d "$1/.";
515      else
516	case $1 in #(
517	-*)set "./$1";;
518	esac;
519	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520	???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617	   test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629	   test "X$echo_testing_string" = "X$echo_test_string"; then
630	  # Cool, printf works
631	  :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633	     test "X$echo_testing_string" = 'X\t' &&
634	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635	     test "X$echo_testing_string" = "X$echo_test_string"; then
636	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637	  export CONFIG_SHELL
638	  SHELL="$CONFIG_SHELL"
639	  export SHELL
640	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	     test "X$echo_testing_string" = 'X\t' &&
643	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	     test "X$echo_testing_string" = "X$echo_test_string"; then
645	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647	  # maybe with a smaller string...
648	  prev=:
649
650	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652	    then
653	      break
654	    fi
655	    prev="$cmd"
656	  done
657
658	  if test "$prev" != 'sed 50q "$0"'; then
659	    echo_test_string=`eval $prev`
660	    export echo_test_string
661	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662	  else
663	    # Oops.  We lost completely, so just stick with echo.
664	    ECHO=echo
665	  fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='Heimdal'
704PACKAGE_TARNAME='heimdal'
705PACKAGE_VERSION='1.3.99'
706PACKAGE_STRING='Heimdal 1.3.99'
707PACKAGE_BUGREPORT='heimdal-bugs@h5l.org'
708PACKAGE_URL=''
709
710ac_unique_file="kuser/kinit.c"
711# Factoring default headers for most tests.
712ac_includes_default="\
713#include <stdio.h>
714#ifdef HAVE_SYS_TYPES_H
715# include <sys/types.h>
716#endif
717#ifdef HAVE_SYS_STAT_H
718# include <sys/stat.h>
719#endif
720#ifdef STDC_HEADERS
721# include <stdlib.h>
722# include <stddef.h>
723#else
724# ifdef HAVE_STDLIB_H
725#  include <stdlib.h>
726# endif
727#endif
728#ifdef HAVE_STRING_H
729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730#  include <memory.h>
731# endif
732# include <string.h>
733#endif
734#ifdef HAVE_STRINGS_H
735# include <strings.h>
736#endif
737#ifdef HAVE_INTTYPES_H
738# include <inttypes.h>
739#endif
740#ifdef HAVE_STDINT_H
741# include <stdint.h>
742#endif
743#ifdef HAVE_UNISTD_H
744# include <unistd.h>
745#endif"
746
747ac_default_prefix=/usr/heimdal
748ac_header_list=
749ac_subst_vars='am__EXEEXT_FALSE
750am__EXEEXT_TRUE
751LTLIBOBJS
752LIB_AUTH_SUBDIRS
753LIB_com_err_so
754LIB_com_err_a
755LIB_com_err
756DIR_com_err
757COM_ERR_FALSE
758COM_ERR_TRUE
759COMPILE_ET
760el_compat_FALSE
761el_compat_TRUE
762EDITLINE_FALSE
763EDITLINE_TRUE
764LIB_el_init
765FRAMEWORK_SECURITY_FALSE
766FRAMEWORK_SECURITY_TRUE
767KCM_FALSE
768KCM_TRUE
769LIB_door_create
770LIB_getpwnam_r
771LIB_tgetent
772LIB_openpty
773LIB_logout
774LIB_logwtmp
775NEED_WRITEAUTH_FALSE
776NEED_WRITEAUTH_TRUE
777LIB_XauFileName
778LIB_XauReadAuth
779LIB_XauWriteAuth
780HAVE_X_FALSE
781HAVE_X_TRUE
782X_EXTRA_LIBS
783X_LIBS
784X_PRE_LIBS
785X_CFLAGS
786XMKMF
787LIB_hesiod
788INCLUDE_hesiod
789LIB_readline
790INCLUDE_readline
791CATMANEXT
792CATMAN_FALSE
793CATMAN_TRUE
794CATMAN
795GROFF
796NROFF
797LIB_security
798have_gcd_FALSE
799have_gcd_TRUE
800LIB_dispatch_async_f
801OTP_FALSE
802OTP_TRUE
803LIB_otp
804LIBADD_roken
805INCLUDES_roken
806LIB_roken
807DIR_roken
808have_socket_wrapper_FALSE
809have_socket_wrapper_TRUE
810LIB_crypt
811have_fnmatch_h_FALSE
812have_fnmatch_h_TRUE
813LIB_gai_strerror
814LIB_freeaddrinfo
815LIB_getnameinfo
816LIB_getaddrinfo
817LIB_pidfile
818LIB_bswap32
819LIB_bswap16
820LIB_hstrerror
821LIB_setsockopt
822LIB_getsockopt
823have_cgetent_FALSE
824have_cgetent_TRUE
825have_glob_h_FALSE
826have_glob_h_TRUE
827LIBOBJS
828LIB_dn_expand
829LIB_dns_search
830LIB_res_ndestroy
831LIB_res_nsearch
832LIB_res_search
833LIB_gethostbyname2
834LIB_syslog
835LIB_gethostbyname
836LIB_socket
837have_vis_h_FALSE
838have_vis_h_TRUE
839have_ifaddrs_h_FALSE
840have_ifaddrs_h_TRUE
841have_err_h_FALSE
842have_err_h_TRUE
843WFLAGS_NOIMPLICITINT
844WFLAGS_NOUNUSED
845WFLAGS
846LIB_NDBM
847DBLIB
848HAVE_NDBM_FALSE
849HAVE_NDBM_TRUE
850HAVE_DB3_FALSE
851HAVE_DB3_TRUE
852HAVE_DB1_FALSE
853HAVE_DB1_TRUE
854LIB_dbm_firstkey
855LIB_dbopen
856LIB_db_create
857NO_AFS
858dpagaix_ldflags
859dpagaix_ldadd
860dpagaix_cflags
861DCE_FALSE
862DCE_TRUE
863PTHREADS_LIBADD
864PTHREAD_LDADD
865PTHREADS_CFLAGS
866LIB_hcrypto_appl
867LIB_hcrypto_so
868LIB_hcrypto_a
869LIB_hcrypto
870INCLUDE_hcrypto
871DIR_hcrypto
872HAVE_OPENSSL_FALSE
873HAVE_OPENSSL_TRUE
874LIB_kdb
875do_roken_rename_FALSE
876do_roken_rename_TRUE
877KRB5_FALSE
878KRB5_TRUE
879KRB4_FALSE
880KRB4_TRUE
881LIB_krb4
882INCLUDE_krb4
883DIR_hdbdir
884LIB_libintl
885INCLUDE_libintl
886have_scc_FALSE
887have_scc_TRUE
888SQLITE3_FALSE
889SQLITE3_TRUE
890LIB_sqlite3
891INCLUDE_sqlite3
892HAVE_CAPNG_FALSE
893HAVE_CAPNG_TRUE
894CAPNG_LIBS
895CAPNG_CFLAGS
896PKG_CONFIG
897PKINIT_FALSE
898PKINIT_TRUE
899OPENLDAP_MODULE_FALSE
900OPENLDAP_MODULE_TRUE
901LIB_openldap
902INCLUDE_openldap
903SLC_DEP
904SLC
905ASN1_COMPILE_DEP
906ASN1_COMPILE
907CROSS_COMPILE_FALSE
908CROSS_COMPILE_TRUE
909LDFLAGS_VERSION_SCRIPT
910versionscript_FALSE
911versionscript_TRUE
912VERSIONING
913ENABLE_SHARED_FALSE
914ENABLE_SHARED_TRUE
915LEXLIB
916LEX_OUTPUT_ROOT
917LEX
918YFLAGS
919YACC
920IRIX_FALSE
921IRIX_TRUE
922AIX_EXTRA_KAFS
923AIX_DYNAMIC_AFS_FALSE
924AIX_DYNAMIC_AFS_TRUE
925LIB_loadquery
926HAVE_DLOPEN_FALSE
927HAVE_DLOPEN_TRUE
928LIB_dlopen
929AIX4_FALSE
930AIX4_TRUE
931AIX_FALSE
932AIX_TRUE
933CANONICAL_HOST
934OTOOL64
935OTOOL
936LIPO
937NMEDIT
938DSYMUTIL
939lt_ECHO
940RANLIB
941AR
942LN_S
943NM
944ac_ct_DUMPBIN
945DUMPBIN
946LD
947FGREP
948EGREP
949GREP
950SED
951host_os
952host_vendor
953host_cpu
954host
955build_os
956build_vendor
957build_cpu
958build
959LIBTOOL
960CPP
961am__fastdepCC_FALSE
962am__fastdepCC_TRUE
963CCDEPMODE
964AMDEPBACKSLASH
965AMDEP_FALSE
966AMDEP_TRUE
967am__quote
968am__include
969DEPDIR
970OBJEXT
971EXEEXT
972ac_ct_CC
973CPPFLAGS
974LDFLAGS
975CFLAGS
976CC
977MAINT
978MAINTAINER_MODE_FALSE
979MAINTAINER_MODE_TRUE
980am__untar
981am__tar
982AMTAR
983am__leading_dot
984SET_MAKE
985AWK
986mkdir_p
987MKDIR_P
988INSTALL_STRIP_PROGRAM
989STRIP
990install_sh
991MAKEINFO
992AUTOHEADER
993AUTOMAKE
994AUTOCONF
995ACLOCAL
996VERSION
997PACKAGE
998CYGPATH_W
999am__isrc
1000INSTALL_DATA
1001INSTALL_SCRIPT
1002INSTALL_PROGRAM
1003target_alias
1004host_alias
1005build_alias
1006LIBS
1007ECHO_T
1008ECHO_N
1009ECHO_C
1010DEFS
1011mandir
1012localedir
1013libdir
1014psdir
1015pdfdir
1016dvidir
1017htmldir
1018infodir
1019docdir
1020oldincludedir
1021includedir
1022localstatedir
1023sharedstatedir
1024sysconfdir
1025datadir
1026datarootdir
1027libexecdir
1028sbindir
1029bindir
1030program_transform_name
1031prefix
1032exec_prefix
1033PACKAGE_URL
1034PACKAGE_BUGREPORT
1035PACKAGE_STRING
1036PACKAGE_VERSION
1037PACKAGE_TARNAME
1038PACKAGE_NAME
1039PATH_SEPARATOR
1040SHELL'
1041ac_subst_files=''
1042ac_user_opts='
1043enable_option_checking
1044enable_maintainer_mode
1045enable_dependency_tracking
1046enable_shared
1047enable_static
1048with_pic
1049enable_fast_install
1050with_gnu_ld
1051enable_libtool_lock
1052enable_largefile
1053enable_dynamic_afs
1054with_mips_abi
1055with_cross_tools
1056with_openldap
1057with_openldap_lib
1058with_openldap_include
1059with_openldap_config
1060enable_hdb_openldap_module
1061enable_pk_init
1062enable_digest
1063enable_kx509
1064enable_krb4
1065with_capng
1066with_sqlite3
1067with_sqlite3_lib
1068with_sqlite3_include
1069with_sqlite3_config
1070enable_sqlite_cache
1071with_libintl
1072with_libintl_lib
1073with_libintl_include
1074with_libintl_config
1075with_hdbdir
1076with_openssl
1077with_openssl_lib
1078with_openssl_include
1079enable_pthread_support
1080enable_dce
1081enable_afs_support
1082enable_berkeley_db
1083enable_ndbm_db
1084enable_developer
1085with_ipv6
1086enable_socket_wrapper
1087enable_otp
1088enable_osfc2
1089enable_mmap
1090enable_afs_string_to_key
1091with_readline
1092with_readline_lib
1093with_readline_include
1094with_readline_config
1095with_hesiod
1096with_hesiod_lib
1097with_hesiod_include
1098with_hesiod_config
1099enable_bigendian
1100enable_littleendian
1101with_x
1102enable_kcm
1103'
1104      ac_precious_vars='build_alias
1105host_alias
1106target_alias
1107CC
1108CFLAGS
1109LDFLAGS
1110LIBS
1111CPPFLAGS
1112CPP
1113YACC
1114YFLAGS
1115PKG_CONFIG
1116CAPNG_CFLAGS
1117CAPNG_LIBS
1118XMKMF'
1119
1120
1121# Initialize some variables set by options.
1122ac_init_help=
1123ac_init_version=false
1124ac_unrecognized_opts=
1125ac_unrecognized_sep=
1126# The variables have the same names as the options, with
1127# dashes changed to underlines.
1128cache_file=/dev/null
1129exec_prefix=NONE
1130no_create=
1131no_recursion=
1132prefix=NONE
1133program_prefix=NONE
1134program_suffix=NONE
1135program_transform_name=s,x,x,
1136silent=
1137site=
1138srcdir=
1139verbose=
1140x_includes=NONE
1141x_libraries=NONE
1142
1143# Installation directory options.
1144# These are left unexpanded so users can "make install exec_prefix=/foo"
1145# and all the variables that are supposed to be based on exec_prefix
1146# by default will actually change.
1147# Use braces instead of parens because sh, perl, etc. also accept them.
1148# (The list follows the same order as the GNU Coding Standards.)
1149bindir='${exec_prefix}/bin'
1150sbindir='${exec_prefix}/sbin'
1151libexecdir='${exec_prefix}/libexec'
1152datarootdir='${prefix}/share'
1153datadir='${datarootdir}'
1154sysconfdir='${prefix}/etc'
1155sharedstatedir='${prefix}/com'
1156localstatedir='${prefix}/var'
1157includedir='${prefix}/include'
1158oldincludedir='/usr/include'
1159docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1160infodir='${datarootdir}/info'
1161htmldir='${docdir}'
1162dvidir='${docdir}'
1163pdfdir='${docdir}'
1164psdir='${docdir}'
1165libdir='${exec_prefix}/lib'
1166localedir='${datarootdir}/locale'
1167mandir='${datarootdir}/man'
1168
1169ac_prev=
1170ac_dashdash=
1171for ac_option
1172do
1173  # If the previous option needs an argument, assign it.
1174  if test -n "$ac_prev"; then
1175    eval $ac_prev=\$ac_option
1176    ac_prev=
1177    continue
1178  fi
1179
1180  case $ac_option in
1181  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1182  *)	ac_optarg=yes ;;
1183  esac
1184
1185  # Accept the important Cygnus configure options, so we can diagnose typos.
1186
1187  case $ac_dashdash$ac_option in
1188  --)
1189    ac_dashdash=yes ;;
1190
1191  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1192    ac_prev=bindir ;;
1193  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1194    bindir=$ac_optarg ;;
1195
1196  -build | --build | --buil | --bui | --bu)
1197    ac_prev=build_alias ;;
1198  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1199    build_alias=$ac_optarg ;;
1200
1201  -cache-file | --cache-file | --cache-fil | --cache-fi \
1202  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1203    ac_prev=cache_file ;;
1204  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1205  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1206    cache_file=$ac_optarg ;;
1207
1208  --config-cache | -C)
1209    cache_file=config.cache ;;
1210
1211  -datadir | --datadir | --datadi | --datad)
1212    ac_prev=datadir ;;
1213  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1214    datadir=$ac_optarg ;;
1215
1216  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1217  | --dataroo | --dataro | --datar)
1218    ac_prev=datarootdir ;;
1219  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1220  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1221    datarootdir=$ac_optarg ;;
1222
1223  -disable-* | --disable-*)
1224    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1225    # Reject names that are not valid shell variable names.
1226    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227      as_fn_error "invalid feature name: $ac_useropt"
1228    ac_useropt_orig=$ac_useropt
1229    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230    case $ac_user_opts in
1231      *"
1232"enable_$ac_useropt"
1233"*) ;;
1234      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1235	 ac_unrecognized_sep=', ';;
1236    esac
1237    eval enable_$ac_useropt=no ;;
1238
1239  -docdir | --docdir | --docdi | --doc | --do)
1240    ac_prev=docdir ;;
1241  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1242    docdir=$ac_optarg ;;
1243
1244  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1245    ac_prev=dvidir ;;
1246  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1247    dvidir=$ac_optarg ;;
1248
1249  -enable-* | --enable-*)
1250    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1251    # Reject names that are not valid shell variable names.
1252    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253      as_fn_error "invalid feature name: $ac_useropt"
1254    ac_useropt_orig=$ac_useropt
1255    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256    case $ac_user_opts in
1257      *"
1258"enable_$ac_useropt"
1259"*) ;;
1260      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1261	 ac_unrecognized_sep=', ';;
1262    esac
1263    eval enable_$ac_useropt=\$ac_optarg ;;
1264
1265  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1266  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1267  | --exec | --exe | --ex)
1268    ac_prev=exec_prefix ;;
1269  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1270  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1271  | --exec=* | --exe=* | --ex=*)
1272    exec_prefix=$ac_optarg ;;
1273
1274  -gas | --gas | --ga | --g)
1275    # Obsolete; use --with-gas.
1276    with_gas=yes ;;
1277
1278  -help | --help | --hel | --he | -h)
1279    ac_init_help=long ;;
1280  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1281    ac_init_help=recursive ;;
1282  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1283    ac_init_help=short ;;
1284
1285  -host | --host | --hos | --ho)
1286    ac_prev=host_alias ;;
1287  -host=* | --host=* | --hos=* | --ho=*)
1288    host_alias=$ac_optarg ;;
1289
1290  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1291    ac_prev=htmldir ;;
1292  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1293  | --ht=*)
1294    htmldir=$ac_optarg ;;
1295
1296  -includedir | --includedir | --includedi | --included | --include \
1297  | --includ | --inclu | --incl | --inc)
1298    ac_prev=includedir ;;
1299  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1300  | --includ=* | --inclu=* | --incl=* | --inc=*)
1301    includedir=$ac_optarg ;;
1302
1303  -infodir | --infodir | --infodi | --infod | --info | --inf)
1304    ac_prev=infodir ;;
1305  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1306    infodir=$ac_optarg ;;
1307
1308  -libdir | --libdir | --libdi | --libd)
1309    ac_prev=libdir ;;
1310  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1311    libdir=$ac_optarg ;;
1312
1313  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1314  | --libexe | --libex | --libe)
1315    ac_prev=libexecdir ;;
1316  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1317  | --libexe=* | --libex=* | --libe=*)
1318    libexecdir=$ac_optarg ;;
1319
1320  -localedir | --localedir | --localedi | --localed | --locale)
1321    ac_prev=localedir ;;
1322  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1323    localedir=$ac_optarg ;;
1324
1325  -localstatedir | --localstatedir | --localstatedi | --localstated \
1326  | --localstate | --localstat | --localsta | --localst | --locals)
1327    ac_prev=localstatedir ;;
1328  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1329  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1330    localstatedir=$ac_optarg ;;
1331
1332  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1333    ac_prev=mandir ;;
1334  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1335    mandir=$ac_optarg ;;
1336
1337  -nfp | --nfp | --nf)
1338    # Obsolete; use --without-fp.
1339    with_fp=no ;;
1340
1341  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1342  | --no-cr | --no-c | -n)
1343    no_create=yes ;;
1344
1345  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1346  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1347    no_recursion=yes ;;
1348
1349  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1350  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1351  | --oldin | --oldi | --old | --ol | --o)
1352    ac_prev=oldincludedir ;;
1353  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1354  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1355  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1356    oldincludedir=$ac_optarg ;;
1357
1358  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1359    ac_prev=prefix ;;
1360  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1361    prefix=$ac_optarg ;;
1362
1363  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1364  | --program-pre | --program-pr | --program-p)
1365    ac_prev=program_prefix ;;
1366  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1367  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1368    program_prefix=$ac_optarg ;;
1369
1370  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1371  | --program-suf | --program-su | --program-s)
1372    ac_prev=program_suffix ;;
1373  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1374  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1375    program_suffix=$ac_optarg ;;
1376
1377  -program-transform-name | --program-transform-name \
1378  | --program-transform-nam | --program-transform-na \
1379  | --program-transform-n | --program-transform- \
1380  | --program-transform | --program-transfor \
1381  | --program-transfo | --program-transf \
1382  | --program-trans | --program-tran \
1383  | --progr-tra | --program-tr | --program-t)
1384    ac_prev=program_transform_name ;;
1385  -program-transform-name=* | --program-transform-name=* \
1386  | --program-transform-nam=* | --program-transform-na=* \
1387  | --program-transform-n=* | --program-transform-=* \
1388  | --program-transform=* | --program-transfor=* \
1389  | --program-transfo=* | --program-transf=* \
1390  | --program-trans=* | --program-tran=* \
1391  | --progr-tra=* | --program-tr=* | --program-t=*)
1392    program_transform_name=$ac_optarg ;;
1393
1394  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1395    ac_prev=pdfdir ;;
1396  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1397    pdfdir=$ac_optarg ;;
1398
1399  -psdir | --psdir | --psdi | --psd | --ps)
1400    ac_prev=psdir ;;
1401  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1402    psdir=$ac_optarg ;;
1403
1404  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1405  | -silent | --silent | --silen | --sile | --sil)
1406    silent=yes ;;
1407
1408  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1409    ac_prev=sbindir ;;
1410  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1411  | --sbi=* | --sb=*)
1412    sbindir=$ac_optarg ;;
1413
1414  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1415  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1416  | --sharedst | --shareds | --shared | --share | --shar \
1417  | --sha | --sh)
1418    ac_prev=sharedstatedir ;;
1419  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1420  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1421  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1422  | --sha=* | --sh=*)
1423    sharedstatedir=$ac_optarg ;;
1424
1425  -site | --site | --sit)
1426    ac_prev=site ;;
1427  -site=* | --site=* | --sit=*)
1428    site=$ac_optarg ;;
1429
1430  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1431    ac_prev=srcdir ;;
1432  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1433    srcdir=$ac_optarg ;;
1434
1435  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1436  | --syscon | --sysco | --sysc | --sys | --sy)
1437    ac_prev=sysconfdir ;;
1438  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1439  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1440    sysconfdir=$ac_optarg ;;
1441
1442  -target | --target | --targe | --targ | --tar | --ta | --t)
1443    ac_prev=target_alias ;;
1444  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1445    target_alias=$ac_optarg ;;
1446
1447  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1448    verbose=yes ;;
1449
1450  -version | --version | --versio | --versi | --vers | -V)
1451    ac_init_version=: ;;
1452
1453  -with-* | --with-*)
1454    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1455    # Reject names that are not valid shell variable names.
1456    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1457      as_fn_error "invalid package name: $ac_useropt"
1458    ac_useropt_orig=$ac_useropt
1459    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1460    case $ac_user_opts in
1461      *"
1462"with_$ac_useropt"
1463"*) ;;
1464      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1465	 ac_unrecognized_sep=', ';;
1466    esac
1467    eval with_$ac_useropt=\$ac_optarg ;;
1468
1469  -without-* | --without-*)
1470    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1471    # Reject names that are not valid shell variable names.
1472    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1473      as_fn_error "invalid package name: $ac_useropt"
1474    ac_useropt_orig=$ac_useropt
1475    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1476    case $ac_user_opts in
1477      *"
1478"with_$ac_useropt"
1479"*) ;;
1480      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1481	 ac_unrecognized_sep=', ';;
1482    esac
1483    eval with_$ac_useropt=no ;;
1484
1485  --x)
1486    # Obsolete; use --with-x.
1487    with_x=yes ;;
1488
1489  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1490  | --x-incl | --x-inc | --x-in | --x-i)
1491    ac_prev=x_includes ;;
1492  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1493  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1494    x_includes=$ac_optarg ;;
1495
1496  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1497  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1498    ac_prev=x_libraries ;;
1499  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1500  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1501    x_libraries=$ac_optarg ;;
1502
1503  -*) as_fn_error "unrecognized option: \`$ac_option'
1504Try \`$0 --help' for more information."
1505    ;;
1506
1507  *=*)
1508    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1509    # Reject names that are not valid shell variable names.
1510    case $ac_envvar in #(
1511      '' | [0-9]* | *[!_$as_cr_alnum]* )
1512      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1513    esac
1514    eval $ac_envvar=\$ac_optarg
1515    export $ac_envvar ;;
1516
1517  *)
1518    # FIXME: should be removed in autoconf 3.0.
1519    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1520    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1521      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1522    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1523    ;;
1524
1525  esac
1526done
1527
1528if test -n "$ac_prev"; then
1529  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1530  as_fn_error "missing argument to $ac_option"
1531fi
1532
1533if test -n "$ac_unrecognized_opts"; then
1534  case $enable_option_checking in
1535    no) ;;
1536    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1537    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1538  esac
1539fi
1540
1541# Check all directory arguments for consistency.
1542for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1543		datadir sysconfdir sharedstatedir localstatedir includedir \
1544		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1545		libdir localedir mandir
1546do
1547  eval ac_val=\$$ac_var
1548  # Remove trailing slashes.
1549  case $ac_val in
1550    */ )
1551      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1552      eval $ac_var=\$ac_val;;
1553  esac
1554  # Be sure to have absolute directory names.
1555  case $ac_val in
1556    [\\/$]* | ?:[\\/]* )  continue;;
1557    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1558  esac
1559  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1560done
1561
1562# There might be people who depend on the old broken behavior: `$host'
1563# used to hold the argument of --host etc.
1564# FIXME: To remove some day.
1565build=$build_alias
1566host=$host_alias
1567target=$target_alias
1568
1569# FIXME: To remove some day.
1570if test "x$host_alias" != x; then
1571  if test "x$build_alias" = x; then
1572    cross_compiling=maybe
1573    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1574    If a cross compiler is detected then cross compile mode will be used." >&2
1575  elif test "x$build_alias" != "x$host_alias"; then
1576    cross_compiling=yes
1577  fi
1578fi
1579
1580ac_tool_prefix=
1581test -n "$host_alias" && ac_tool_prefix=$host_alias-
1582
1583test "$silent" = yes && exec 6>/dev/null
1584
1585
1586ac_pwd=`pwd` && test -n "$ac_pwd" &&
1587ac_ls_di=`ls -di .` &&
1588ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1589  as_fn_error "working directory cannot be determined"
1590test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1591  as_fn_error "pwd does not report name of working directory"
1592
1593
1594# Find the source files, if location was not specified.
1595if test -z "$srcdir"; then
1596  ac_srcdir_defaulted=yes
1597  # Try the directory containing this script, then the parent directory.
1598  ac_confdir=`$as_dirname -- "$as_myself" ||
1599$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1600	 X"$as_myself" : 'X\(//\)[^/]' \| \
1601	 X"$as_myself" : 'X\(//\)$' \| \
1602	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1603$as_echo X"$as_myself" |
1604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1605	    s//\1/
1606	    q
1607	  }
1608	  /^X\(\/\/\)[^/].*/{
1609	    s//\1/
1610	    q
1611	  }
1612	  /^X\(\/\/\)$/{
1613	    s//\1/
1614	    q
1615	  }
1616	  /^X\(\/\).*/{
1617	    s//\1/
1618	    q
1619	  }
1620	  s/.*/./; q'`
1621  srcdir=$ac_confdir
1622  if test ! -r "$srcdir/$ac_unique_file"; then
1623    srcdir=..
1624  fi
1625else
1626  ac_srcdir_defaulted=no
1627fi
1628if test ! -r "$srcdir/$ac_unique_file"; then
1629  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1630  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1631fi
1632ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1633ac_abs_confdir=`(
1634	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1635	pwd)`
1636# When building in place, set srcdir=.
1637if test "$ac_abs_confdir" = "$ac_pwd"; then
1638  srcdir=.
1639fi
1640# Remove unnecessary trailing slashes from srcdir.
1641# Double slashes in file names in object file debugging info
1642# mess up M-x gdb in Emacs.
1643case $srcdir in
1644*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1645esac
1646for ac_var in $ac_precious_vars; do
1647  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1648  eval ac_env_${ac_var}_value=\$${ac_var}
1649  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1650  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1651done
1652
1653#
1654# Report the --help message.
1655#
1656if test "$ac_init_help" = "long"; then
1657  # Omit some internal or obsolete options to make the list less imposing.
1658  # This message is too long to be a string in the A/UX 3.1 sh.
1659  cat <<_ACEOF
1660\`configure' configures Heimdal 1.3.99 to adapt to many kinds of systems.
1661
1662Usage: $0 [OPTION]... [VAR=VALUE]...
1663
1664To assign environment variables (e.g., CC, CFLAGS...), specify them as
1665VAR=VALUE.  See below for descriptions of some of the useful variables.
1666
1667Defaults for the options are specified in brackets.
1668
1669Configuration:
1670  -h, --help              display this help and exit
1671      --help=short        display options specific to this package
1672      --help=recursive    display the short help of all the included packages
1673  -V, --version           display version information and exit
1674  -q, --quiet, --silent   do not print \`checking...' messages
1675      --cache-file=FILE   cache test results in FILE [disabled]
1676  -C, --config-cache      alias for \`--cache-file=config.cache'
1677  -n, --no-create         do not create output files
1678      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1679
1680Installation directories:
1681  --prefix=PREFIX         install architecture-independent files in PREFIX
1682                          [$ac_default_prefix]
1683  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1684                          [PREFIX]
1685
1686By default, \`make install' will install all the files in
1687\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1688an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1689for instance \`--prefix=\$HOME'.
1690
1691For better control, use the options below.
1692
1693Fine tuning of the installation directories:
1694  --bindir=DIR            user executables [EPREFIX/bin]
1695  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1696  --libexecdir=DIR        program executables [EPREFIX/libexec]
1697  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1698  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1699  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1700  --libdir=DIR            object code libraries [EPREFIX/lib]
1701  --includedir=DIR        C header files [PREFIX/include]
1702  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1703  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1704  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1705  --infodir=DIR           info documentation [DATAROOTDIR/info]
1706  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1707  --mandir=DIR            man documentation [DATAROOTDIR/man]
1708  --docdir=DIR            documentation root [DATAROOTDIR/doc/heimdal]
1709  --htmldir=DIR           html documentation [DOCDIR]
1710  --dvidir=DIR            dvi documentation [DOCDIR]
1711  --pdfdir=DIR            pdf documentation [DOCDIR]
1712  --psdir=DIR             ps documentation [DOCDIR]
1713_ACEOF
1714
1715  cat <<\_ACEOF
1716
1717Program names:
1718  --program-prefix=PREFIX            prepend PREFIX to installed program names
1719  --program-suffix=SUFFIX            append SUFFIX to installed program names
1720  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1721
1722X features:
1723  --x-includes=DIR    X include files are in DIR
1724  --x-libraries=DIR   X library files are in DIR
1725
1726System types:
1727  --build=BUILD     configure for building on BUILD [guessed]
1728  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1729_ACEOF
1730fi
1731
1732if test -n "$ac_init_help"; then
1733  case $ac_init_help in
1734     short | recursive ) echo "Configuration of Heimdal 1.3.99:";;
1735   esac
1736  cat <<\_ACEOF
1737
1738Optional Features:
1739  --disable-option-checking  ignore unrecognized --enable/--with options
1740  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1741  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1742  --enable-maintainer-mode  enable make rules and dependencies not useful
1743			  (and sometimes confusing) to the casual installer
1744  --disable-dependency-tracking  speeds up one-time build
1745  --enable-dependency-tracking   do not reject slow dependency extractors
1746  --enable-shared[=PKGS]  build shared libraries [default=yes]
1747  --enable-static[=PKGS]  build static libraries [default=yes]
1748  --enable-fast-install[=PKGS]
1749                          optimize for fast installation [default=yes]
1750  --disable-libtool-lock  avoid locking (might break parallel builds)
1751  --disable-largefile     omit support for large files
1752  --disable-dynamic-afs   do not use loaded AFS library with AIX
1753  --enable-hdb-openldap-module
1754                          if you want support to build openldap hdb as shared
1755                          object
1756  --disable-pk-init       if you want disable to PK-INIT support
1757  --disable-digest        if you want disable to DIGEST support
1758  --disable-kx509         if you want disable to kx509 support
1759  --disable-krb4          if you want disable to krb4 support
1760  --disable-sqlite-cache  if you want support for cache in sqlite
1761  --enable-pthread-support
1762                          if you want thread safe libraries
1763  --enable-dce            if you want support for DCE/DFS PAG's
1764  --disable-afs-support   if you don't want support for AFS
1765  --disable-berkeley-db   if you don't want berkeley db
1766  --disable-ndbm-db       if you don't want ndbm db
1767  --enable-developer      enable developer warnings
1768  --enable-socket-wrapper use sambas socket-wrapper for testing
1769  --disable-otp           if you don't want OTP support
1770  --enable-osfc2          enable some OSF C2 support
1771  --disable-mmap          disable use of mmap
1772  --disable-afs-string-to-key
1773                          disable use of weak AFS string-to-key functions
1774  --enable-bigendian      the target is big endian
1775  --enable-littleendian   the target is little endian
1776  --enable-kcm            enable Kerberos Credentials Manager
1777
1778Optional Packages:
1779  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1780  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1781  --with-pic              try to use only PIC/non-PIC objects [default=use
1782                          both]
1783  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1784  --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
1785  --with-cross-tools=dir  use cross tools in dir
1786  --with-openldap=dir     use openldap in dir
1787  --with-openldap-lib=dir use openldap libraries in dir
1788  --with-openldap-include=dir
1789                          use openldap headers in dir
1790  --with-openldap-config=path
1791                          config program for openldap
1792  --with-capng            use libcap-ng to drop KDC privileges [default=check]
1793  --with-sqlite3=dir      use sqlite3 in dir
1794  --with-sqlite3-lib=dir  use sqlite3 libraries in dir
1795  --with-sqlite3-include=dir
1796                          use sqlite3 headers in dir
1797  --with-sqlite3-config=path
1798                          config program for sqlite3
1799  --with-libintl=dir      use libintl in dir
1800  --with-libintl-lib=dir  use libintl libraries in dir
1801  --with-libintl-include=dir
1802                          use libintl headers in dir
1803  --with-libintl-config=path
1804                          config program for libintl
1805  --with-hdbdir           Default location for KDC database
1806                          [default=/var/heimdal]
1807  --with-openssl=dir      use openssl in dir
1808  --with-openssl-lib=dir  use openssl libraries in dir
1809  --with-openssl-include=dir
1810                          use openssl headers in dir
1811  --without-ipv6          do not enable IPv6 support
1812  --with-readline=dir     use readline in dir
1813  --with-readline-lib=dir use readline libraries in dir
1814  --with-readline-include=dir
1815                          use readline headers in dir
1816  --with-readline-config=path
1817                          config program for readline
1818  --with-hesiod=dir       use hesiod in dir
1819  --with-hesiod-lib=dir   use hesiod libraries in dir
1820  --with-hesiod-include=dir
1821                          use hesiod headers in dir
1822  --with-hesiod-config=path
1823                          config program for hesiod
1824  --with-x                use the X Window System
1825
1826Some influential environment variables:
1827  CC          C compiler command
1828  CFLAGS      C compiler flags
1829  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1830              nonstandard directory <lib dir>
1831  LIBS        libraries to pass to the linker, e.g. -l<library>
1832  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1833              you have headers in a nonstandard directory <include dir>
1834  CPP         C preprocessor
1835  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1836              the first program found out of: `bison -y', `byacc', `yacc'.
1837  YFLAGS      The list of arguments that will be passed by default to $YACC.
1838              This script will default YFLAGS to the empty string to avoid a
1839              default value of `-d' given by some make applications.
1840  PKG_CONFIG  path to pkg-config utility
1841  CAPNG_CFLAGS
1842              C compiler flags for CAPNG, overriding pkg-config
1843  CAPNG_LIBS  linker flags for CAPNG, overriding pkg-config
1844  XMKMF       Path to xmkmf, Makefile generator for X Window System
1845
1846Use these variables to override the choices made by `configure' or to help
1847it to find libraries and programs with nonstandard names/locations.
1848
1849Report bugs to <heimdal-bugs@h5l.org>.
1850_ACEOF
1851ac_status=$?
1852fi
1853
1854if test "$ac_init_help" = "recursive"; then
1855  # If there are subdirs, report their specific --help.
1856  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1857    test -d "$ac_dir" ||
1858      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1859      continue
1860    ac_builddir=.
1861
1862case "$ac_dir" in
1863.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1864*)
1865  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1866  # A ".." for each directory in $ac_dir_suffix.
1867  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1868  case $ac_top_builddir_sub in
1869  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1870  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1871  esac ;;
1872esac
1873ac_abs_top_builddir=$ac_pwd
1874ac_abs_builddir=$ac_pwd$ac_dir_suffix
1875# for backward compatibility:
1876ac_top_builddir=$ac_top_build_prefix
1877
1878case $srcdir in
1879  .)  # We are building in place.
1880    ac_srcdir=.
1881    ac_top_srcdir=$ac_top_builddir_sub
1882    ac_abs_top_srcdir=$ac_pwd ;;
1883  [\\/]* | ?:[\\/]* )  # Absolute name.
1884    ac_srcdir=$srcdir$ac_dir_suffix;
1885    ac_top_srcdir=$srcdir
1886    ac_abs_top_srcdir=$srcdir ;;
1887  *) # Relative name.
1888    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1889    ac_top_srcdir=$ac_top_build_prefix$srcdir
1890    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1891esac
1892ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1893
1894    cd "$ac_dir" || { ac_status=$?; continue; }
1895    # Check for guested configure.
1896    if test -f "$ac_srcdir/configure.gnu"; then
1897      echo &&
1898      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1899    elif test -f "$ac_srcdir/configure"; then
1900      echo &&
1901      $SHELL "$ac_srcdir/configure" --help=recursive
1902    else
1903      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1904    fi || ac_status=$?
1905    cd "$ac_pwd" || { ac_status=$?; break; }
1906  done
1907fi
1908
1909test -n "$ac_init_help" && exit $ac_status
1910if $ac_init_version; then
1911  cat <<\_ACEOF
1912Heimdal configure 1.3.99
1913generated by GNU Autoconf 2.65
1914
1915Copyright (C) 2009 Free Software Foundation, Inc.
1916This configure script is free software; the Free Software Foundation
1917gives unlimited permission to copy, distribute and modify it.
1918_ACEOF
1919  exit
1920fi
1921
1922## ------------------------ ##
1923## Autoconf initialization. ##
1924## ------------------------ ##
1925
1926# ac_fn_c_try_compile LINENO
1927# --------------------------
1928# Try to compile conftest.$ac_ext, and return whether this succeeded.
1929ac_fn_c_try_compile ()
1930{
1931  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932  rm -f conftest.$ac_objext
1933  if { { ac_try="$ac_compile"
1934case "(($ac_try" in
1935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936  *) ac_try_echo=$ac_try;;
1937esac
1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939$as_echo "$ac_try_echo"; } >&5
1940  (eval "$ac_compile") 2>conftest.err
1941  ac_status=$?
1942  if test -s conftest.err; then
1943    grep -v '^ *+' conftest.err >conftest.er1
1944    cat conftest.er1 >&5
1945    mv -f conftest.er1 conftest.err
1946  fi
1947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948  test $ac_status = 0; } && {
1949	 test -z "$ac_c_werror_flag" ||
1950	 test ! -s conftest.err
1951       } && test -s conftest.$ac_objext; then :
1952  ac_retval=0
1953else
1954  $as_echo "$as_me: failed program was:" >&5
1955sed 's/^/| /' conftest.$ac_ext >&5
1956
1957	ac_retval=1
1958fi
1959  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960  as_fn_set_status $ac_retval
1961
1962} # ac_fn_c_try_compile
1963
1964# ac_fn_c_try_cpp LINENO
1965# ----------------------
1966# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1967ac_fn_c_try_cpp ()
1968{
1969  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970  if { { ac_try="$ac_cpp conftest.$ac_ext"
1971case "(($ac_try" in
1972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973  *) ac_try_echo=$ac_try;;
1974esac
1975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976$as_echo "$ac_try_echo"; } >&5
1977  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1978  ac_status=$?
1979  if test -s conftest.err; then
1980    grep -v '^ *+' conftest.err >conftest.er1
1981    cat conftest.er1 >&5
1982    mv -f conftest.er1 conftest.err
1983  fi
1984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985  test $ac_status = 0; } >/dev/null && {
1986	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1987	 test ! -s conftest.err
1988       }; then :
1989  ac_retval=0
1990else
1991  $as_echo "$as_me: failed program was:" >&5
1992sed 's/^/| /' conftest.$ac_ext >&5
1993
1994    ac_retval=1
1995fi
1996  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997  as_fn_set_status $ac_retval
1998
1999} # ac_fn_c_try_cpp
2000
2001# ac_fn_c_try_link LINENO
2002# -----------------------
2003# Try to link conftest.$ac_ext, and return whether this succeeded.
2004ac_fn_c_try_link ()
2005{
2006  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007  rm -f conftest.$ac_objext conftest$ac_exeext
2008  if { { ac_try="$ac_link"
2009case "(($ac_try" in
2010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011  *) ac_try_echo=$ac_try;;
2012esac
2013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014$as_echo "$ac_try_echo"; } >&5
2015  (eval "$ac_link") 2>conftest.err
2016  ac_status=$?
2017  if test -s conftest.err; then
2018    grep -v '^ *+' conftest.err >conftest.er1
2019    cat conftest.er1 >&5
2020    mv -f conftest.er1 conftest.err
2021  fi
2022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023  test $ac_status = 0; } && {
2024	 test -z "$ac_c_werror_flag" ||
2025	 test ! -s conftest.err
2026       } && test -s conftest$ac_exeext && {
2027	 test "$cross_compiling" = yes ||
2028	 $as_test_x conftest$ac_exeext
2029       }; then :
2030  ac_retval=0
2031else
2032  $as_echo "$as_me: failed program was:" >&5
2033sed 's/^/| /' conftest.$ac_ext >&5
2034
2035	ac_retval=1
2036fi
2037  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2038  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2039  # interfere with the next link command; also delete a directory that is
2040  # left behind by Apple's compiler.  We do this before executing the actions.
2041  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2042  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043  as_fn_set_status $ac_retval
2044
2045} # ac_fn_c_try_link
2046
2047# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2048# -------------------------------------------------------
2049# Tests whether HEADER exists and can be compiled using the include files in
2050# INCLUDES, setting the cache variable VAR accordingly.
2051ac_fn_c_check_header_compile ()
2052{
2053  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055$as_echo_n "checking for $2... " >&6; }
2056if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2057  $as_echo_n "(cached) " >&6
2058else
2059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h.  */
2061$4
2062#include <$2>
2063_ACEOF
2064if ac_fn_c_try_compile "$LINENO"; then :
2065  eval "$3=yes"
2066else
2067  eval "$3=no"
2068fi
2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070fi
2071eval ac_res=\$$3
2072	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073$as_echo "$ac_res" >&6; }
2074  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075
2076} # ac_fn_c_check_header_compile
2077
2078# ac_fn_c_try_run LINENO
2079# ----------------------
2080# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2081# that executables *can* be run.
2082ac_fn_c_try_run ()
2083{
2084  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085  if { { ac_try="$ac_link"
2086case "(($ac_try" in
2087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088  *) ac_try_echo=$ac_try;;
2089esac
2090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091$as_echo "$ac_try_echo"; } >&5
2092  (eval "$ac_link") 2>&5
2093  ac_status=$?
2094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2096  { { case "(($ac_try" in
2097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098  *) ac_try_echo=$ac_try;;
2099esac
2100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101$as_echo "$ac_try_echo"; } >&5
2102  (eval "$ac_try") 2>&5
2103  ac_status=$?
2104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105  test $ac_status = 0; }; }; then :
2106  ac_retval=0
2107else
2108  $as_echo "$as_me: program exited with status $ac_status" >&5
2109       $as_echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112       ac_retval=$ac_status
2113fi
2114  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2115  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116  as_fn_set_status $ac_retval
2117
2118} # ac_fn_c_try_run
2119
2120# ac_fn_c_check_func LINENO FUNC VAR
2121# ----------------------------------
2122# Tests whether FUNC exists, setting the cache variable VAR accordingly
2123ac_fn_c_check_func ()
2124{
2125  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127$as_echo_n "checking for $2... " >&6; }
2128if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2129  $as_echo_n "(cached) " >&6
2130else
2131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h.  */
2133/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2134   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2135#define $2 innocuous_$2
2136
2137/* System header to define __stub macros and hopefully few prototypes,
2138    which can conflict with char $2 (); below.
2139    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2140    <limits.h> exists even on freestanding compilers.  */
2141
2142#ifdef __STDC__
2143# include <limits.h>
2144#else
2145# include <assert.h>
2146#endif
2147
2148#undef $2
2149
2150/* Override any GCC internal prototype to avoid an error.
2151   Use char because int might match the return type of a GCC
2152   builtin and then its argument prototype would still apply.  */
2153#ifdef __cplusplus
2154extern "C"
2155#endif
2156char $2 ();
2157/* The GNU C library defines this for functions which it implements
2158    to always fail with ENOSYS.  Some functions are actually named
2159    something starting with __ and the normal name is an alias.  */
2160#if defined __stub_$2 || defined __stub___$2
2161choke me
2162#endif
2163
2164int
2165main ()
2166{
2167return $2 ();
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172if ac_fn_c_try_link "$LINENO"; then :
2173  eval "$3=yes"
2174else
2175  eval "$3=no"
2176fi
2177rm -f core conftest.err conftest.$ac_objext \
2178    conftest$ac_exeext conftest.$ac_ext
2179fi
2180eval ac_res=\$$3
2181	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182$as_echo "$ac_res" >&6; }
2183  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2184
2185} # ac_fn_c_check_func
2186
2187# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2188# -------------------------------------------------------
2189# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2190# the include files in INCLUDES and setting the cache variable VAR
2191# accordingly.
2192ac_fn_c_check_header_mongrel ()
2193{
2194  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2197$as_echo_n "checking for $2... " >&6; }
2198if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2199  $as_echo_n "(cached) " >&6
2200fi
2201eval ac_res=\$$3
2202	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203$as_echo "$ac_res" >&6; }
2204else
2205  # Is the header compilable?
2206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2207$as_echo_n "checking $2 usability... " >&6; }
2208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209/* end confdefs.h.  */
2210$4
2211#include <$2>
2212_ACEOF
2213if ac_fn_c_try_compile "$LINENO"; then :
2214  ac_header_compiler=yes
2215else
2216  ac_header_compiler=no
2217fi
2218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2220$as_echo "$ac_header_compiler" >&6; }
2221
2222# Is the header present?
2223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2224$as_echo_n "checking $2 presence... " >&6; }
2225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h.  */
2227#include <$2>
2228_ACEOF
2229if ac_fn_c_try_cpp "$LINENO"; then :
2230  ac_header_preproc=yes
2231else
2232  ac_header_preproc=no
2233fi
2234rm -f conftest.err conftest.$ac_ext
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2236$as_echo "$ac_header_preproc" >&6; }
2237
2238# So?  What about this header?
2239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2240  yes:no: )
2241    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2242$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2243    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2244$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2245    ;;
2246  no:yes:* )
2247    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2248$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2249    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2250$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2251    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2252$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2253    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2254$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2255    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2256$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2257( cat <<\_ASBOX
2258## ----------------------------------- ##
2259## Report this to heimdal-bugs@h5l.org ##
2260## ----------------------------------- ##
2261_ASBOX
2262     ) | sed "s/^/$as_me: WARNING:     /" >&2
2263    ;;
2264esac
2265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266$as_echo_n "checking for $2... " >&6; }
2267if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268  $as_echo_n "(cached) " >&6
2269else
2270  eval "$3=\$ac_header_compiler"
2271fi
2272eval ac_res=\$$3
2273	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274$as_echo "$ac_res" >&6; }
2275fi
2276  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277
2278} # ac_fn_c_check_header_mongrel
2279
2280# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2281# -------------------------------------------
2282# Tests whether TYPE exists after having included INCLUDES, setting cache
2283# variable VAR accordingly.
2284ac_fn_c_check_type ()
2285{
2286  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288$as_echo_n "checking for $2... " >&6; }
2289if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2290  $as_echo_n "(cached) " >&6
2291else
2292  eval "$3=no"
2293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h.  */
2295$4
2296int
2297main ()
2298{
2299if (sizeof ($2))
2300	 return 0;
2301  ;
2302  return 0;
2303}
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307/* end confdefs.h.  */
2308$4
2309int
2310main ()
2311{
2312if (sizeof (($2)))
2313	    return 0;
2314  ;
2315  return 0;
2316}
2317_ACEOF
2318if ac_fn_c_try_compile "$LINENO"; then :
2319
2320else
2321  eval "$3=yes"
2322fi
2323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324fi
2325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326fi
2327eval ac_res=\$$3
2328	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329$as_echo "$ac_res" >&6; }
2330  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331
2332} # ac_fn_c_check_type
2333
2334# ac_fn_c_check_header_preproc LINENO HEADER VAR
2335# ----------------------------------------------
2336# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2337ac_fn_c_check_header_preproc ()
2338{
2339  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341$as_echo_n "checking for $2... " >&6; }
2342if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2343  $as_echo_n "(cached) " >&6
2344else
2345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h.  */
2347#include <$2>
2348_ACEOF
2349if ac_fn_c_try_cpp "$LINENO"; then :
2350  eval "$3=yes"
2351else
2352  eval "$3=no"
2353fi
2354rm -f conftest.err conftest.$ac_ext
2355fi
2356eval ac_res=\$$3
2357	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358$as_echo "$ac_res" >&6; }
2359  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2360
2361} # ac_fn_c_check_header_preproc
2362cat >config.log <<_ACEOF
2363This file contains any messages produced by compilers while
2364running configure, to aid debugging if configure makes a mistake.
2365
2366It was created by Heimdal $as_me 1.3.99, which was
2367generated by GNU Autoconf 2.65.  Invocation command line was
2368
2369  $ $0 $@
2370
2371_ACEOF
2372exec 5>>config.log
2373{
2374cat <<_ASUNAME
2375## --------- ##
2376## Platform. ##
2377## --------- ##
2378
2379hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2380uname -m = `(uname -m) 2>/dev/null || echo unknown`
2381uname -r = `(uname -r) 2>/dev/null || echo unknown`
2382uname -s = `(uname -s) 2>/dev/null || echo unknown`
2383uname -v = `(uname -v) 2>/dev/null || echo unknown`
2384
2385/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2386/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2387
2388/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2389/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2390/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2391/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2392/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2393/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2394/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2395
2396_ASUNAME
2397
2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401  IFS=$as_save_IFS
2402  test -z "$as_dir" && as_dir=.
2403    $as_echo "PATH: $as_dir"
2404  done
2405IFS=$as_save_IFS
2406
2407} >&5
2408
2409cat >&5 <<_ACEOF
2410
2411
2412## ----------- ##
2413## Core tests. ##
2414## ----------- ##
2415
2416_ACEOF
2417
2418
2419# Keep a trace of the command line.
2420# Strip out --no-create and --no-recursion so they do not pile up.
2421# Strip out --silent because we don't want to record it for future runs.
2422# Also quote any args containing shell meta-characters.
2423# Make two passes to allow for proper duplicate-argument suppression.
2424ac_configure_args=
2425ac_configure_args0=
2426ac_configure_args1=
2427ac_must_keep_next=false
2428for ac_pass in 1 2
2429do
2430  for ac_arg
2431  do
2432    case $ac_arg in
2433    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2434    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2435    | -silent | --silent | --silen | --sile | --sil)
2436      continue ;;
2437    *\'*)
2438      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2439    esac
2440    case $ac_pass in
2441    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2442    2)
2443      as_fn_append ac_configure_args1 " '$ac_arg'"
2444      if test $ac_must_keep_next = true; then
2445	ac_must_keep_next=false # Got value, back to normal.
2446      else
2447	case $ac_arg in
2448	  *=* | --config-cache | -C | -disable-* | --disable-* \
2449	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2450	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2451	  | -with-* | --with-* | -without-* | --without-* | --x)
2452	    case "$ac_configure_args0 " in
2453	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2454	    esac
2455	    ;;
2456	  -* ) ac_must_keep_next=true ;;
2457	esac
2458      fi
2459      as_fn_append ac_configure_args " '$ac_arg'"
2460      ;;
2461    esac
2462  done
2463done
2464{ ac_configure_args0=; unset ac_configure_args0;}
2465{ ac_configure_args1=; unset ac_configure_args1;}
2466
2467# When interrupted or exit'd, cleanup temporary files, and complete
2468# config.log.  We remove comments because anyway the quotes in there
2469# would cause problems or look ugly.
2470# WARNING: Use '\'' to represent an apostrophe within the trap.
2471# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2472trap 'exit_status=$?
2473  # Save into config.log some information that might help in debugging.
2474  {
2475    echo
2476
2477    cat <<\_ASBOX
2478## ---------------- ##
2479## Cache variables. ##
2480## ---------------- ##
2481_ASBOX
2482    echo
2483    # The following way of writing the cache mishandles newlines in values,
2484(
2485  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2486    eval ac_val=\$$ac_var
2487    case $ac_val in #(
2488    *${as_nl}*)
2489      case $ac_var in #(
2490      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2491$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2492      esac
2493      case $ac_var in #(
2494      _ | IFS | as_nl) ;; #(
2495      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2496      *) { eval $ac_var=; unset $ac_var;} ;;
2497      esac ;;
2498    esac
2499  done
2500  (set) 2>&1 |
2501    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2502    *${as_nl}ac_space=\ *)
2503      sed -n \
2504	"s/'\''/'\''\\\\'\'''\''/g;
2505	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2506      ;; #(
2507    *)
2508      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2509      ;;
2510    esac |
2511    sort
2512)
2513    echo
2514
2515    cat <<\_ASBOX
2516## ----------------- ##
2517## Output variables. ##
2518## ----------------- ##
2519_ASBOX
2520    echo
2521    for ac_var in $ac_subst_vars
2522    do
2523      eval ac_val=\$$ac_var
2524      case $ac_val in
2525      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2526      esac
2527      $as_echo "$ac_var='\''$ac_val'\''"
2528    done | sort
2529    echo
2530
2531    if test -n "$ac_subst_files"; then
2532      cat <<\_ASBOX
2533## ------------------- ##
2534## File substitutions. ##
2535## ------------------- ##
2536_ASBOX
2537      echo
2538      for ac_var in $ac_subst_files
2539      do
2540	eval ac_val=\$$ac_var
2541	case $ac_val in
2542	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2543	esac
2544	$as_echo "$ac_var='\''$ac_val'\''"
2545      done | sort
2546      echo
2547    fi
2548
2549    if test -s confdefs.h; then
2550      cat <<\_ASBOX
2551## ----------- ##
2552## confdefs.h. ##
2553## ----------- ##
2554_ASBOX
2555      echo
2556      cat confdefs.h
2557      echo
2558    fi
2559    test "$ac_signal" != 0 &&
2560      $as_echo "$as_me: caught signal $ac_signal"
2561    $as_echo "$as_me: exit $exit_status"
2562  } >&5
2563  rm -f core *.core core.conftest.* &&
2564    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2565    exit $exit_status
2566' 0
2567for ac_signal in 1 2 13 15; do
2568  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2569done
2570ac_signal=0
2571
2572# confdefs.h avoids OS command line length limits that DEFS can exceed.
2573rm -f -r conftest* confdefs.h
2574
2575$as_echo "/* confdefs.h */" > confdefs.h
2576
2577# Predefined preprocessor variables.
2578
2579cat >>confdefs.h <<_ACEOF
2580#define PACKAGE_NAME "$PACKAGE_NAME"
2581_ACEOF
2582
2583cat >>confdefs.h <<_ACEOF
2584#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2585_ACEOF
2586
2587cat >>confdefs.h <<_ACEOF
2588#define PACKAGE_VERSION "$PACKAGE_VERSION"
2589_ACEOF
2590
2591cat >>confdefs.h <<_ACEOF
2592#define PACKAGE_STRING "$PACKAGE_STRING"
2593_ACEOF
2594
2595cat >>confdefs.h <<_ACEOF
2596#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2597_ACEOF
2598
2599cat >>confdefs.h <<_ACEOF
2600#define PACKAGE_URL "$PACKAGE_URL"
2601_ACEOF
2602
2603
2604# Let the site file select an alternate cache file if it wants to.
2605# Prefer an explicitly selected file to automatically selected ones.
2606ac_site_file1=NONE
2607ac_site_file2=NONE
2608if test -n "$CONFIG_SITE"; then
2609  ac_site_file1=$CONFIG_SITE
2610elif test "x$prefix" != xNONE; then
2611  ac_site_file1=$prefix/share/config.site
2612  ac_site_file2=$prefix/etc/config.site
2613else
2614  ac_site_file1=$ac_default_prefix/share/config.site
2615  ac_site_file2=$ac_default_prefix/etc/config.site
2616fi
2617for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2618do
2619  test "x$ac_site_file" = xNONE && continue
2620  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2621    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2622$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2623    sed 's/^/| /' "$ac_site_file" >&5
2624    . "$ac_site_file"
2625  fi
2626done
2627
2628if test -r "$cache_file"; then
2629  # Some versions of bash will fail to source /dev/null (special files
2630  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2631  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2632    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2633$as_echo "$as_me: loading cache $cache_file" >&6;}
2634    case $cache_file in
2635      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2636      *)                      . "./$cache_file";;
2637    esac
2638  fi
2639else
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2641$as_echo "$as_me: creating cache $cache_file" >&6;}
2642  >$cache_file
2643fi
2644
2645as_fn_append ac_header_list " stdlib.h"
2646as_fn_append ac_header_list " unistd.h"
2647as_fn_append ac_header_list " sys/param.h"
2648# Check that the precious variables saved in the cache have kept the same
2649# value.
2650ac_cache_corrupted=false
2651for ac_var in $ac_precious_vars; do
2652  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2653  eval ac_new_set=\$ac_env_${ac_var}_set
2654  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2655  eval ac_new_val=\$ac_env_${ac_var}_value
2656  case $ac_old_set,$ac_new_set in
2657    set,)
2658      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660      ac_cache_corrupted=: ;;
2661    ,set)
2662      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2664      ac_cache_corrupted=: ;;
2665    ,);;
2666    *)
2667      if test "x$ac_old_val" != "x$ac_new_val"; then
2668	# differences in whitespace do not lead to failure.
2669	ac_old_val_w=`echo x $ac_old_val`
2670	ac_new_val_w=`echo x $ac_new_val`
2671	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674	  ac_cache_corrupted=:
2675	else
2676	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678	  eval $ac_var=\$ac_old_val
2679	fi
2680	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2681$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2682	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2683$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2684      fi;;
2685  esac
2686  # Pass precious variables to config.status.
2687  if test "$ac_new_set" = set; then
2688    case $ac_new_val in
2689    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2690    *) ac_arg=$ac_var=$ac_new_val ;;
2691    esac
2692    case " $ac_configure_args " in
2693      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2694      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2695    esac
2696  fi
2697done
2698if $ac_cache_corrupted; then
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2704fi
2705## -------------------- ##
2706## Main body of script. ##
2707## -------------------- ##
2708
2709ac_ext=c
2710ac_cpp='$CPP $CPPFLAGS'
2711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714
2715
2716
2717ac_config_headers="$ac_config_headers include/config.h"
2718
2719
2720
2721am__api_version='1.11'
2722
2723ac_aux_dir=
2724for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2725  for ac_t in install-sh install.sh shtool; do
2726    if test -f "$ac_dir/$ac_t"; then
2727      ac_aux_dir=$ac_dir
2728      ac_install_sh="$ac_aux_dir/$ac_t -c"
2729      break 2
2730    fi
2731  done
2732done
2733if test -z "$ac_aux_dir"; then
2734  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2735fi
2736
2737# These three variables are undocumented and unsupported,
2738# and are intended to be withdrawn in a future Autoconf release.
2739# They can cause serious problems if a builder's source tree is in a directory
2740# whose full name contains unusual characters.
2741ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2742ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2743ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2744
2745
2746# Find a good install program.  We prefer a C program (faster),
2747# so one script is as good as another.  But avoid the broken or
2748# incompatible versions:
2749# SysV /etc/install, /usr/sbin/install
2750# SunOS /usr/etc/install
2751# IRIX /sbin/install
2752# AIX /bin/install
2753# AmigaOS /C/install, which installs bootblocks on floppy discs
2754# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2755# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2756# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2757# OS/2's system install, which has a completely different semantic
2758# ./install, which can be erroneously created by make from ./install.sh.
2759# Reject install programs that cannot install multiple files.
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2761$as_echo_n "checking for a BSD-compatible install... " >&6; }
2762if test -z "$INSTALL"; then
2763if test "${ac_cv_path_install+set}" = set; then :
2764  $as_echo_n "(cached) " >&6
2765else
2766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769  IFS=$as_save_IFS
2770  test -z "$as_dir" && as_dir=.
2771    # Account for people who put trailing slashes in PATH elements.
2772case $as_dir/ in #((
2773  ./ | .// | /[cC]/* | \
2774  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2775  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2776  /usr/ucb/* ) ;;
2777  *)
2778    # OSF1 and SCO ODT 3.0 have their own names for install.
2779    # Don't use installbsd from OSF since it installs stuff as root
2780    # by default.
2781    for ac_prog in ginstall scoinst install; do
2782      for ac_exec_ext in '' $ac_executable_extensions; do
2783	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2784	  if test $ac_prog = install &&
2785	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2786	    # AIX install.  It has an incompatible calling convention.
2787	    :
2788	  elif test $ac_prog = install &&
2789	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2790	    # program-specific install script used by HP pwplus--don't use.
2791	    :
2792	  else
2793	    rm -rf conftest.one conftest.two conftest.dir
2794	    echo one > conftest.one
2795	    echo two > conftest.two
2796	    mkdir conftest.dir
2797	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2798	      test -s conftest.one && test -s conftest.two &&
2799	      test -s conftest.dir/conftest.one &&
2800	      test -s conftest.dir/conftest.two
2801	    then
2802	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2803	      break 3
2804	    fi
2805	  fi
2806	fi
2807      done
2808    done
2809    ;;
2810esac
2811
2812  done
2813IFS=$as_save_IFS
2814
2815rm -rf conftest.one conftest.two conftest.dir
2816
2817fi
2818  if test "${ac_cv_path_install+set}" = set; then
2819    INSTALL=$ac_cv_path_install
2820  else
2821    # As a last resort, use the slow shell script.  Don't cache a
2822    # value for INSTALL within a source directory, because that will
2823    # break other packages using the cache if that directory is
2824    # removed, or if the value is a relative name.
2825    INSTALL=$ac_install_sh
2826  fi
2827fi
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2829$as_echo "$INSTALL" >&6; }
2830
2831# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2832# It thinks the first close brace ends the variable substitution.
2833test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2834
2835test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2836
2837test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2838
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2840$as_echo_n "checking whether build environment is sane... " >&6; }
2841# Just in case
2842sleep 1
2843echo timestamp > conftest.file
2844# Reject unsafe characters in $srcdir or the absolute working directory
2845# name.  Accept space and tab only in the latter.
2846am_lf='
2847'
2848case `pwd` in
2849  *[\\\"\#\$\&\'\`$am_lf]*)
2850    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2851esac
2852case $srcdir in
2853  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2854    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2855esac
2856
2857# Do `set' in a subshell so we don't clobber the current shell's
2858# arguments.  Must try -L first in case configure is actually a
2859# symlink; some systems play weird games with the mod time of symlinks
2860# (eg FreeBSD returns the mod time of the symlink's containing
2861# directory).
2862if (
2863   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2864   if test "$*" = "X"; then
2865      # -L didn't work.
2866      set X `ls -t "$srcdir/configure" conftest.file`
2867   fi
2868   rm -f conftest.file
2869   if test "$*" != "X $srcdir/configure conftest.file" \
2870      && test "$*" != "X conftest.file $srcdir/configure"; then
2871
2872      # If neither matched, then we have a broken ls.  This can happen
2873      # if, for instance, CONFIG_SHELL is bash and it inherits a
2874      # broken ls alias from the environment.  This has actually
2875      # happened.  Such a system could not be considered "sane".
2876      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2877alias in your environment" "$LINENO" 5
2878   fi
2879
2880   test "$2" = conftest.file
2881   )
2882then
2883   # Ok.
2884   :
2885else
2886   as_fn_error "newly created file is older than distributed files!
2887Check your system clock" "$LINENO" 5
2888fi
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890$as_echo "yes" >&6; }
2891test "$program_prefix" != NONE &&
2892  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2893# Use a double $ so make ignores it.
2894test "$program_suffix" != NONE &&
2895  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2896# Double any \ or $.
2897# By default was `s,x,x', remove it if useless.
2898ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2899program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2900
2901# expand $ac_aux_dir to an absolute path
2902am_aux_dir=`cd $ac_aux_dir && pwd`
2903
2904if test x"${MISSING+set}" != xset; then
2905  case $am_aux_dir in
2906  *\ * | *\	*)
2907    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2908  *)
2909    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2910  esac
2911fi
2912# Use eval to expand $SHELL
2913if eval "$MISSING --run true"; then
2914  am_missing_run="$MISSING --run "
2915else
2916  am_missing_run=
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2918$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2919fi
2920
2921if test x"${install_sh}" != xset; then
2922  case $am_aux_dir in
2923  *\ * | *\	*)
2924    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2925  *)
2926    install_sh="\${SHELL} $am_aux_dir/install-sh"
2927  esac
2928fi
2929
2930# Installed binaries are usually stripped using `strip' when the user
2931# run `make install-strip'.  However `strip' might not be the right
2932# tool to use in cross-compilation environments, therefore Automake
2933# will honor the `STRIP' environment variable to overrule this program.
2934if test "$cross_compiling" != no; then
2935  if test -n "$ac_tool_prefix"; then
2936  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2937set dummy ${ac_tool_prefix}strip; ac_word=$2
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939$as_echo_n "checking for $ac_word... " >&6; }
2940if test "${ac_cv_prog_STRIP+set}" = set; then :
2941  $as_echo_n "(cached) " >&6
2942else
2943  if test -n "$STRIP"; then
2944  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2945else
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949  IFS=$as_save_IFS
2950  test -z "$as_dir" && as_dir=.
2951    for ac_exec_ext in '' $ac_executable_extensions; do
2952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955    break 2
2956  fi
2957done
2958  done
2959IFS=$as_save_IFS
2960
2961fi
2962fi
2963STRIP=$ac_cv_prog_STRIP
2964if test -n "$STRIP"; then
2965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2966$as_echo "$STRIP" >&6; }
2967else
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969$as_echo "no" >&6; }
2970fi
2971
2972
2973fi
2974if test -z "$ac_cv_prog_STRIP"; then
2975  ac_ct_STRIP=$STRIP
2976  # Extract the first word of "strip", so it can be a program name with args.
2977set dummy strip; ac_word=$2
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979$as_echo_n "checking for $ac_word... " >&6; }
2980if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2981  $as_echo_n "(cached) " >&6
2982else
2983  if test -n "$ac_ct_STRIP"; then
2984  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2985else
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989  IFS=$as_save_IFS
2990  test -z "$as_dir" && as_dir=.
2991    for ac_exec_ext in '' $ac_executable_extensions; do
2992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993    ac_cv_prog_ac_ct_STRIP="strip"
2994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995    break 2
2996  fi
2997done
2998  done
2999IFS=$as_save_IFS
3000
3001fi
3002fi
3003ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3004if test -n "$ac_ct_STRIP"; then
3005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3006$as_echo "$ac_ct_STRIP" >&6; }
3007else
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009$as_echo "no" >&6; }
3010fi
3011
3012  if test "x$ac_ct_STRIP" = x; then
3013    STRIP=":"
3014  else
3015    case $cross_compiling:$ac_tool_warned in
3016yes:)
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3019ac_tool_warned=yes ;;
3020esac
3021    STRIP=$ac_ct_STRIP
3022  fi
3023else
3024  STRIP="$ac_cv_prog_STRIP"
3025fi
3026
3027fi
3028INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3029
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3031$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3032if test -z "$MKDIR_P"; then
3033  if test "${ac_cv_path_mkdir+set}" = set; then :
3034  $as_echo_n "(cached) " >&6
3035else
3036  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3038do
3039  IFS=$as_save_IFS
3040  test -z "$as_dir" && as_dir=.
3041    for ac_prog in mkdir gmkdir; do
3042	 for ac_exec_ext in '' $ac_executable_extensions; do
3043	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3044	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3045	     'mkdir (GNU coreutils) '* | \
3046	     'mkdir (coreutils) '* | \
3047	     'mkdir (fileutils) '4.1*)
3048	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3049	       break 3;;
3050	   esac
3051	 done
3052       done
3053  done
3054IFS=$as_save_IFS
3055
3056fi
3057
3058  test -d ./--version && rmdir ./--version
3059  if test "${ac_cv_path_mkdir+set}" = set; then
3060    MKDIR_P="$ac_cv_path_mkdir -p"
3061  else
3062    # As a last resort, use the slow shell script.  Don't cache a
3063    # value for MKDIR_P within a source directory, because that will
3064    # break other packages using the cache if that directory is
3065    # removed, or if the value is a relative name.
3066    MKDIR_P="$ac_install_sh -d"
3067  fi
3068fi
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3070$as_echo "$MKDIR_P" >&6; }
3071
3072mkdir_p="$MKDIR_P"
3073case $mkdir_p in
3074  [\\/$]* | ?:[\\/]*) ;;
3075  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3076esac
3077
3078for ac_prog in gawk mawk nawk awk
3079do
3080  # Extract the first word of "$ac_prog", so it can be a program name with args.
3081set dummy $ac_prog; ac_word=$2
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
3084if test "${ac_cv_prog_AWK+set}" = set; then :
3085  $as_echo_n "(cached) " >&6
3086else
3087  if test -n "$AWK"; then
3088  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093  IFS=$as_save_IFS
3094  test -z "$as_dir" && as_dir=.
3095    for ac_exec_ext in '' $ac_executable_extensions; do
3096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097    ac_cv_prog_AWK="$ac_prog"
3098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099    break 2
3100  fi
3101done
3102  done
3103IFS=$as_save_IFS
3104
3105fi
3106fi
3107AWK=$ac_cv_prog_AWK
3108if test -n "$AWK"; then
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3110$as_echo "$AWK" >&6; }
3111else
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113$as_echo "no" >&6; }
3114fi
3115
3116
3117  test -n "$AWK" && break
3118done
3119
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3121$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3122set x ${MAKE-make}
3123ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3124if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3125  $as_echo_n "(cached) " >&6
3126else
3127  cat >conftest.make <<\_ACEOF
3128SHELL = /bin/sh
3129all:
3130	@echo '@@@%%%=$(MAKE)=@@@%%%'
3131_ACEOF
3132# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3133case `${MAKE-make} -f conftest.make 2>/dev/null` in
3134  *@@@%%%=?*=@@@%%%*)
3135    eval ac_cv_prog_make_${ac_make}_set=yes;;
3136  *)
3137    eval ac_cv_prog_make_${ac_make}_set=no;;
3138esac
3139rm -f conftest.make
3140fi
3141if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3143$as_echo "yes" >&6; }
3144  SET_MAKE=
3145else
3146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147$as_echo "no" >&6; }
3148  SET_MAKE="MAKE=${MAKE-make}"
3149fi
3150
3151rm -rf .tst 2>/dev/null
3152mkdir .tst 2>/dev/null
3153if test -d .tst; then
3154  am__leading_dot=.
3155else
3156  am__leading_dot=_
3157fi
3158rmdir .tst 2>/dev/null
3159
3160if test "`cd $srcdir && pwd`" != "`pwd`"; then
3161  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3162  # is not polluted with repeated "-I."
3163  am__isrc=' -I$(srcdir)'
3164  # test to see if srcdir already configured
3165  if test -f $srcdir/config.status; then
3166    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3167  fi
3168fi
3169
3170# test whether we have cygpath
3171if test -z "$CYGPATH_W"; then
3172  if (cygpath --version) >/dev/null 2>/dev/null; then
3173    CYGPATH_W='cygpath -w'
3174  else
3175    CYGPATH_W=echo
3176  fi
3177fi
3178
3179
3180# Define the identity of the package.
3181 PACKAGE='heimdal'
3182 VERSION='1.3.99'
3183
3184
3185cat >>confdefs.h <<_ACEOF
3186#define PACKAGE "$PACKAGE"
3187_ACEOF
3188
3189
3190cat >>confdefs.h <<_ACEOF
3191#define VERSION "$VERSION"
3192_ACEOF
3193
3194# Some tools Automake needs.
3195
3196ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3197
3198
3199AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3200
3201
3202AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3203
3204
3205AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3206
3207
3208MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3209
3210# We need awk for the "check" target.  The system "awk" is bad on
3211# some platforms.
3212# Always define AMTAR for backward compatibility.
3213
3214AMTAR=${AMTAR-"${am_missing_run}tar"}
3215
3216am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3217
3218
3219
3220
3221
3222
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3224$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3225    # Check whether --enable-maintainer-mode was given.
3226if test "${enable_maintainer_mode+set}" = set; then :
3227  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3228else
3229  USE_MAINTAINER_MODE=no
3230fi
3231
3232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3233$as_echo "$USE_MAINTAINER_MODE" >&6; }
3234   if test $USE_MAINTAINER_MODE = yes; then
3235  MAINTAINER_MODE_TRUE=
3236  MAINTAINER_MODE_FALSE='#'
3237else
3238  MAINTAINER_MODE_TRUE='#'
3239  MAINTAINER_MODE_FALSE=
3240fi
3241
3242  MAINT=$MAINTAINER_MODE_TRUE
3243
3244
3245
3246ac_ext=c
3247ac_cpp='$CPP $CPPFLAGS'
3248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251if test -n "$ac_tool_prefix"; then
3252  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3253set dummy ${ac_tool_prefix}gcc; ac_word=$2
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255$as_echo_n "checking for $ac_word... " >&6; }
3256if test "${ac_cv_prog_CC+set}" = set; then :
3257  $as_echo_n "(cached) " >&6
3258else
3259  if test -n "$CC"; then
3260  ac_cv_prog_CC="$CC" # Let the user override the test.
3261else
3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263for as_dir in $PATH
3264do
3265  IFS=$as_save_IFS
3266  test -z "$as_dir" && as_dir=.
3267    for ac_exec_ext in '' $ac_executable_extensions; do
3268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3269    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271    break 2
3272  fi
3273done
3274  done
3275IFS=$as_save_IFS
3276
3277fi
3278fi
3279CC=$ac_cv_prog_CC
3280if test -n "$CC"; then
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282$as_echo "$CC" >&6; }
3283else
3284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285$as_echo "no" >&6; }
3286fi
3287
3288
3289fi
3290if test -z "$ac_cv_prog_CC"; then
3291  ac_ct_CC=$CC
3292  # Extract the first word of "gcc", so it can be a program name with args.
3293set dummy gcc; ac_word=$2
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295$as_echo_n "checking for $ac_word... " >&6; }
3296if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3297  $as_echo_n "(cached) " >&6
3298else
3299  if test -n "$ac_ct_CC"; then
3300  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305  IFS=$as_save_IFS
3306  test -z "$as_dir" && as_dir=.
3307    for ac_exec_ext in '' $ac_executable_extensions; do
3308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309    ac_cv_prog_ac_ct_CC="gcc"
3310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311    break 2
3312  fi
3313done
3314  done
3315IFS=$as_save_IFS
3316
3317fi
3318fi
3319ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320if test -n "$ac_ct_CC"; then
3321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3322$as_echo "$ac_ct_CC" >&6; }
3323else
3324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325$as_echo "no" >&6; }
3326fi
3327
3328  if test "x$ac_ct_CC" = x; then
3329    CC=""
3330  else
3331    case $cross_compiling:$ac_tool_warned in
3332yes:)
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3335ac_tool_warned=yes ;;
3336esac
3337    CC=$ac_ct_CC
3338  fi
3339else
3340  CC="$ac_cv_prog_CC"
3341fi
3342
3343if test -z "$CC"; then
3344          if test -n "$ac_tool_prefix"; then
3345    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3346set dummy ${ac_tool_prefix}cc; ac_word=$2
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348$as_echo_n "checking for $ac_word... " >&6; }
3349if test "${ac_cv_prog_CC+set}" = set; then :
3350  $as_echo_n "(cached) " >&6
3351else
3352  if test -n "$CC"; then
3353  ac_cv_prog_CC="$CC" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358  IFS=$as_save_IFS
3359  test -z "$as_dir" && as_dir=.
3360    for ac_exec_ext in '' $ac_executable_extensions; do
3361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362    ac_cv_prog_CC="${ac_tool_prefix}cc"
3363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364    break 2
3365  fi
3366done
3367  done
3368IFS=$as_save_IFS
3369
3370fi
3371fi
3372CC=$ac_cv_prog_CC
3373if test -n "$CC"; then
3374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375$as_echo "$CC" >&6; }
3376else
3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
3379fi
3380
3381
3382  fi
3383fi
3384if test -z "$CC"; then
3385  # Extract the first word of "cc", so it can be a program name with args.
3386set dummy cc; ac_word=$2
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388$as_echo_n "checking for $ac_word... " >&6; }
3389if test "${ac_cv_prog_CC+set}" = set; then :
3390  $as_echo_n "(cached) " >&6
3391else
3392  if test -n "$CC"; then
3393  ac_cv_prog_CC="$CC" # Let the user override the test.
3394else
3395  ac_prog_rejected=no
3396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397for as_dir in $PATH
3398do
3399  IFS=$as_save_IFS
3400  test -z "$as_dir" && as_dir=.
3401    for ac_exec_ext in '' $ac_executable_extensions; do
3402  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3404       ac_prog_rejected=yes
3405       continue
3406     fi
3407    ac_cv_prog_CC="cc"
3408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409    break 2
3410  fi
3411done
3412  done
3413IFS=$as_save_IFS
3414
3415if test $ac_prog_rejected = yes; then
3416  # We found a bogon in the path, so make sure we never use it.
3417  set dummy $ac_cv_prog_CC
3418  shift
3419  if test $# != 0; then
3420    # We chose a different compiler from the bogus one.
3421    # However, it has the same basename, so the bogon will be chosen
3422    # first if we set CC to just the basename; use the full file name.
3423    shift
3424    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3425  fi
3426fi
3427fi
3428fi
3429CC=$ac_cv_prog_CC
3430if test -n "$CC"; then
3431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432$as_echo "$CC" >&6; }
3433else
3434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435$as_echo "no" >&6; }
3436fi
3437
3438
3439fi
3440if test -z "$CC"; then
3441  if test -n "$ac_tool_prefix"; then
3442  for ac_prog in cl.exe
3443  do
3444    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3445set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447$as_echo_n "checking for $ac_word... " >&6; }
3448if test "${ac_cv_prog_CC+set}" = set; then :
3449  $as_echo_n "(cached) " >&6
3450else
3451  if test -n "$CC"; then
3452  ac_cv_prog_CC="$CC" # Let the user override the test.
3453else
3454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455for as_dir in $PATH
3456do
3457  IFS=$as_save_IFS
3458  test -z "$as_dir" && as_dir=.
3459    for ac_exec_ext in '' $ac_executable_extensions; do
3460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463    break 2
3464  fi
3465done
3466  done
3467IFS=$as_save_IFS
3468
3469fi
3470fi
3471CC=$ac_cv_prog_CC
3472if test -n "$CC"; then
3473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3474$as_echo "$CC" >&6; }
3475else
3476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477$as_echo "no" >&6; }
3478fi
3479
3480
3481    test -n "$CC" && break
3482  done
3483fi
3484if test -z "$CC"; then
3485  ac_ct_CC=$CC
3486  for ac_prog in cl.exe
3487do
3488  # Extract the first word of "$ac_prog", so it can be a program name with args.
3489set dummy $ac_prog; ac_word=$2
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491$as_echo_n "checking for $ac_word... " >&6; }
3492if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3493  $as_echo_n "(cached) " >&6
3494else
3495  if test -n "$ac_ct_CC"; then
3496  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3497else
3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH
3500do
3501  IFS=$as_save_IFS
3502  test -z "$as_dir" && as_dir=.
3503    for ac_exec_ext in '' $ac_executable_extensions; do
3504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505    ac_cv_prog_ac_ct_CC="$ac_prog"
3506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507    break 2
3508  fi
3509done
3510  done
3511IFS=$as_save_IFS
3512
3513fi
3514fi
3515ac_ct_CC=$ac_cv_prog_ac_ct_CC
3516if test -n "$ac_ct_CC"; then
3517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3518$as_echo "$ac_ct_CC" >&6; }
3519else
3520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521$as_echo "no" >&6; }
3522fi
3523
3524
3525  test -n "$ac_ct_CC" && break
3526done
3527
3528  if test "x$ac_ct_CC" = x; then
3529    CC=""
3530  else
3531    case $cross_compiling:$ac_tool_warned in
3532yes:)
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535ac_tool_warned=yes ;;
3536esac
3537    CC=$ac_ct_CC
3538  fi
3539fi
3540
3541fi
3542
3543
3544test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546as_fn_error "no acceptable C compiler found in \$PATH
3547See \`config.log' for more details." "$LINENO" 5; }
3548
3549# Provide some information about the compiler.
3550$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3551set X $ac_compile
3552ac_compiler=$2
3553for ac_option in --version -v -V -qversion; do
3554  { { ac_try="$ac_compiler $ac_option >&5"
3555case "(($ac_try" in
3556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557  *) ac_try_echo=$ac_try;;
3558esac
3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560$as_echo "$ac_try_echo"; } >&5
3561  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3562  ac_status=$?
3563  if test -s conftest.err; then
3564    sed '10a\
3565... rest of stderr output deleted ...
3566         10q' conftest.err >conftest.er1
3567    cat conftest.er1 >&5
3568  fi
3569  rm -f conftest.er1 conftest.err
3570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571  test $ac_status = 0; }
3572done
3573
3574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576
3577int
3578main ()
3579{
3580
3581  ;
3582  return 0;
3583}
3584_ACEOF
3585ac_clean_files_save=$ac_clean_files
3586ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3587# Try to create an executable without -o first, disregard a.out.
3588# It will help us diagnose broken compilers, and finding out an intuition
3589# of exeext.
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3591$as_echo_n "checking whether the C compiler works... " >&6; }
3592ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3593
3594# The possible output files:
3595ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3596
3597ac_rmfiles=
3598for ac_file in $ac_files
3599do
3600  case $ac_file in
3601    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3602    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3603  esac
3604done
3605rm -f $ac_rmfiles
3606
3607if { { ac_try="$ac_link_default"
3608case "(($ac_try" in
3609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610  *) ac_try_echo=$ac_try;;
3611esac
3612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613$as_echo "$ac_try_echo"; } >&5
3614  (eval "$ac_link_default") 2>&5
3615  ac_status=$?
3616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617  test $ac_status = 0; }; then :
3618  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3619# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3620# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3621# so that the user can short-circuit this test for compilers unknown to
3622# Autoconf.
3623for ac_file in $ac_files ''
3624do
3625  test -f "$ac_file" || continue
3626  case $ac_file in
3627    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3628	;;
3629    [ab].out )
3630	# We found the default executable, but exeext='' is most
3631	# certainly right.
3632	break;;
3633    *.* )
3634	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3635	then :; else
3636	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3637	fi
3638	# We set ac_cv_exeext here because the later test for it is not
3639	# safe: cross compilers may not add the suffix if given an `-o'
3640	# argument, so we may need to know it at that point already.
3641	# Even if this section looks crufty: it has the advantage of
3642	# actually working.
3643	break;;
3644    * )
3645	break;;
3646  esac
3647done
3648test "$ac_cv_exeext" = no && ac_cv_exeext=
3649
3650else
3651  ac_file=''
3652fi
3653if test -z "$ac_file"; then :
3654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655$as_echo "no" >&6; }
3656$as_echo "$as_me: failed program was:" >&5
3657sed 's/^/| /' conftest.$ac_ext >&5
3658
3659{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661{ as_fn_set_status 77
3662as_fn_error "C compiler cannot create executables
3663See \`config.log' for more details." "$LINENO" 5; }; }
3664else
3665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3666$as_echo "yes" >&6; }
3667fi
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3669$as_echo_n "checking for C compiler default output file name... " >&6; }
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3671$as_echo "$ac_file" >&6; }
3672ac_exeext=$ac_cv_exeext
3673
3674rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3675ac_clean_files=$ac_clean_files_save
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3677$as_echo_n "checking for suffix of executables... " >&6; }
3678if { { ac_try="$ac_link"
3679case "(($ac_try" in
3680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681  *) ac_try_echo=$ac_try;;
3682esac
3683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684$as_echo "$ac_try_echo"; } >&5
3685  (eval "$ac_link") 2>&5
3686  ac_status=$?
3687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688  test $ac_status = 0; }; then :
3689  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3690# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3691# work properly (i.e., refer to `conftest.exe'), while it won't with
3692# `rm'.
3693for ac_file in conftest.exe conftest conftest.*; do
3694  test -f "$ac_file" || continue
3695  case $ac_file in
3696    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3697    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3698	  break;;
3699    * ) break;;
3700  esac
3701done
3702else
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 executables: cannot compile and link
3706See \`config.log' for more details." "$LINENO" 5; }
3707fi
3708rm -f conftest conftest$ac_cv_exeext
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3710$as_echo "$ac_cv_exeext" >&6; }
3711
3712rm -f conftest.$ac_ext
3713EXEEXT=$ac_cv_exeext
3714ac_exeext=$EXEEXT
3715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716/* end confdefs.h.  */
3717#include <stdio.h>
3718int
3719main ()
3720{
3721FILE *f = fopen ("conftest.out", "w");
3722 return ferror (f) || fclose (f) != 0;
3723
3724  ;
3725  return 0;
3726}
3727_ACEOF
3728ac_clean_files="$ac_clean_files conftest.out"
3729# Check that the compiler produces executables we can run.  If not, either
3730# the compiler is broken, or we cross compile.
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3732$as_echo_n "checking whether we are cross compiling... " >&6; }
3733if test "$cross_compiling" != yes; then
3734  { { ac_try="$ac_link"
3735case "(($ac_try" in
3736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737  *) ac_try_echo=$ac_try;;
3738esac
3739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740$as_echo "$ac_try_echo"; } >&5
3741  (eval "$ac_link") 2>&5
3742  ac_status=$?
3743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744  test $ac_status = 0; }
3745  if { ac_try='./conftest$ac_cv_exeext'
3746  { { case "(($ac_try" in
3747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748  *) ac_try_echo=$ac_try;;
3749esac
3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751$as_echo "$ac_try_echo"; } >&5
3752  (eval "$ac_try") 2>&5
3753  ac_status=$?
3754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755  test $ac_status = 0; }; }; then
3756    cross_compiling=no
3757  else
3758    if test "$cross_compiling" = maybe; then
3759	cross_compiling=yes
3760    else
3761	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763as_fn_error "cannot run C compiled programs.
3764If you meant to cross compile, use \`--host'.
3765See \`config.log' for more details." "$LINENO" 5; }
3766    fi
3767  fi
3768fi
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3770$as_echo "$cross_compiling" >&6; }
3771
3772rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3773ac_clean_files=$ac_clean_files_save
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3775$as_echo_n "checking for suffix of object files... " >&6; }
3776if test "${ac_cv_objext+set}" = set; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h.  */
3781
3782int
3783main ()
3784{
3785
3786  ;
3787  return 0;
3788}
3789_ACEOF
3790rm -f conftest.o conftest.obj
3791if { { ac_try="$ac_compile"
3792case "(($ac_try" in
3793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794  *) ac_try_echo=$ac_try;;
3795esac
3796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797$as_echo "$ac_try_echo"; } >&5
3798  (eval "$ac_compile") 2>&5
3799  ac_status=$?
3800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801  test $ac_status = 0; }; then :
3802  for ac_file in conftest.o conftest.obj conftest.*; do
3803  test -f "$ac_file" || continue;
3804  case $ac_file in
3805    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3806    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3807       break;;
3808  esac
3809done
3810else
3811  $as_echo "$as_me: failed program was:" >&5
3812sed 's/^/| /' conftest.$ac_ext >&5
3813
3814{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3816as_fn_error "cannot compute suffix of object files: cannot compile
3817See \`config.log' for more details." "$LINENO" 5; }
3818fi
3819rm -f conftest.$ac_cv_objext conftest.$ac_ext
3820fi
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3822$as_echo "$ac_cv_objext" >&6; }
3823OBJEXT=$ac_cv_objext
3824ac_objext=$OBJEXT
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3826$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3827if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3828  $as_echo_n "(cached) " >&6
3829else
3830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831/* end confdefs.h.  */
3832
3833int
3834main ()
3835{
3836#ifndef __GNUC__
3837       choke me
3838#endif
3839
3840  ;
3841  return 0;
3842}
3843_ACEOF
3844if ac_fn_c_try_compile "$LINENO"; then :
3845  ac_compiler_gnu=yes
3846else
3847  ac_compiler_gnu=no
3848fi
3849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850ac_cv_c_compiler_gnu=$ac_compiler_gnu
3851
3852fi
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3854$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3855if test $ac_compiler_gnu = yes; then
3856  GCC=yes
3857else
3858  GCC=
3859fi
3860ac_test_CFLAGS=${CFLAGS+set}
3861ac_save_CFLAGS=$CFLAGS
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3863$as_echo_n "checking whether $CC accepts -g... " >&6; }
3864if test "${ac_cv_prog_cc_g+set}" = set; then :
3865  $as_echo_n "(cached) " >&6
3866else
3867  ac_save_c_werror_flag=$ac_c_werror_flag
3868   ac_c_werror_flag=yes
3869   ac_cv_prog_cc_g=no
3870   CFLAGS="-g"
3871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h.  */
3873
3874int
3875main ()
3876{
3877
3878  ;
3879  return 0;
3880}
3881_ACEOF
3882if ac_fn_c_try_compile "$LINENO"; then :
3883  ac_cv_prog_cc_g=yes
3884else
3885  CFLAGS=""
3886      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h.  */
3888
3889int
3890main ()
3891{
3892
3893  ;
3894  return 0;
3895}
3896_ACEOF
3897if ac_fn_c_try_compile "$LINENO"; then :
3898
3899else
3900  ac_c_werror_flag=$ac_save_c_werror_flag
3901	 CFLAGS="-g"
3902	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903/* end confdefs.h.  */
3904
3905int
3906main ()
3907{
3908
3909  ;
3910  return 0;
3911}
3912_ACEOF
3913if ac_fn_c_try_compile "$LINENO"; then :
3914  ac_cv_prog_cc_g=yes
3915fi
3916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917fi
3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919fi
3920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921   ac_c_werror_flag=$ac_save_c_werror_flag
3922fi
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3924$as_echo "$ac_cv_prog_cc_g" >&6; }
3925if test "$ac_test_CFLAGS" = set; then
3926  CFLAGS=$ac_save_CFLAGS
3927elif test $ac_cv_prog_cc_g = yes; then
3928  if test "$GCC" = yes; then
3929    CFLAGS="-g -O2"
3930  else
3931    CFLAGS="-g"
3932  fi
3933else
3934  if test "$GCC" = yes; then
3935    CFLAGS="-O2"
3936  else
3937    CFLAGS=
3938  fi
3939fi
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3941$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3942if test "${ac_cv_prog_cc_c89+set}" = set; then :
3943  $as_echo_n "(cached) " >&6
3944else
3945  ac_cv_prog_cc_c89=no
3946ac_save_CC=$CC
3947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948/* end confdefs.h.  */
3949#include <stdarg.h>
3950#include <stdio.h>
3951#include <sys/types.h>
3952#include <sys/stat.h>
3953/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3954struct buf { int x; };
3955FILE * (*rcsopen) (struct buf *, struct stat *, int);
3956static char *e (p, i)
3957     char **p;
3958     int i;
3959{
3960  return p[i];
3961}
3962static char *f (char * (*g) (char **, int), char **p, ...)
3963{
3964  char *s;
3965  va_list v;
3966  va_start (v,p);
3967  s = g (p, va_arg (v,int));
3968  va_end (v);
3969  return s;
3970}
3971
3972/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3973   function prototypes and stuff, but not '\xHH' hex character constants.
3974   These don't provoke an error unfortunately, instead are silently treated
3975   as 'x'.  The following induces an error, until -std is added to get
3976   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3977   array size at least.  It's necessary to write '\x00'==0 to get something
3978   that's true only with -std.  */
3979int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3980
3981/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3982   inside strings and character constants.  */
3983#define FOO(x) 'x'
3984int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3985
3986int test (int i, double x);
3987struct s1 {int (*f) (int a);};
3988struct s2 {int (*f) (double a);};
3989int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3990int argc;
3991char **argv;
3992int
3993main ()
3994{
3995return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3996  ;
3997  return 0;
3998}
3999_ACEOF
4000for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4001	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002do
4003  CC="$ac_save_CC $ac_arg"
4004  if ac_fn_c_try_compile "$LINENO"; then :
4005  ac_cv_prog_cc_c89=$ac_arg
4006fi
4007rm -f core conftest.err conftest.$ac_objext
4008  test "x$ac_cv_prog_cc_c89" != "xno" && break
4009done
4010rm -f conftest.$ac_ext
4011CC=$ac_save_CC
4012
4013fi
4014# AC_CACHE_VAL
4015case "x$ac_cv_prog_cc_c89" in
4016  x)
4017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4018$as_echo "none needed" >&6; } ;;
4019  xno)
4020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4021$as_echo "unsupported" >&6; } ;;
4022  *)
4023    CC="$CC $ac_cv_prog_cc_c89"
4024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4025$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4026esac
4027if test "x$ac_cv_prog_cc_c89" != xno; then :
4028
4029fi
4030
4031ac_ext=c
4032ac_cpp='$CPP $CPPFLAGS'
4033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036DEPDIR="${am__leading_dot}deps"
4037
4038ac_config_commands="$ac_config_commands depfiles"
4039
4040
4041am_make=${MAKE-make}
4042cat > confinc << 'END'
4043am__doit:
4044	@echo this is the am__doit target
4045.PHONY: am__doit
4046END
4047# If we don't find an include directive, just comment out the code.
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4049$as_echo_n "checking for style of include used by $am_make... " >&6; }
4050am__include="#"
4051am__quote=
4052_am_result=none
4053# First try GNU make style include.
4054echo "include confinc" > confmf
4055# Ignore all kinds of additional output from `make'.
4056case `$am_make -s -f confmf 2> /dev/null` in #(
4057*the\ am__doit\ target*)
4058  am__include=include
4059  am__quote=
4060  _am_result=GNU
4061  ;;
4062esac
4063# Now try BSD make style include.
4064if test "$am__include" = "#"; then
4065   echo '.include "confinc"' > confmf
4066   case `$am_make -s -f confmf 2> /dev/null` in #(
4067   *the\ am__doit\ target*)
4068     am__include=.include
4069     am__quote="\""
4070     _am_result=BSD
4071     ;;
4072   esac
4073fi
4074
4075
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4077$as_echo "$_am_result" >&6; }
4078rm -f confinc confmf
4079
4080# Check whether --enable-dependency-tracking was given.
4081if test "${enable_dependency_tracking+set}" = set; then :
4082  enableval=$enable_dependency_tracking;
4083fi
4084
4085if test "x$enable_dependency_tracking" != xno; then
4086  am_depcomp="$ac_aux_dir/depcomp"
4087  AMDEPBACKSLASH='\'
4088fi
4089 if test "x$enable_dependency_tracking" != xno; then
4090  AMDEP_TRUE=
4091  AMDEP_FALSE='#'
4092else
4093  AMDEP_TRUE='#'
4094  AMDEP_FALSE=
4095fi
4096
4097
4098
4099depcc="$CC"   am_compiler_list=
4100
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4102$as_echo_n "checking dependency style of $depcc... " >&6; }
4103if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4104  $as_echo_n "(cached) " >&6
4105else
4106  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4107  # We make a subdir and do the tests there.  Otherwise we can end up
4108  # making bogus files that we don't know about and never remove.  For
4109  # instance it was reported that on HP-UX the gcc test will end up
4110  # making a dummy file named `D' -- because `-MD' means `put the output
4111  # in D'.
4112  mkdir conftest.dir
4113  # Copy depcomp to subdir because otherwise we won't find it if we're
4114  # using a relative directory.
4115  cp "$am_depcomp" conftest.dir
4116  cd conftest.dir
4117  # We will build objects and dependencies in a subdirectory because
4118  # it helps to detect inapplicable dependency modes.  For instance
4119  # both Tru64's cc and ICC support -MD to output dependencies as a
4120  # side effect of compilation, but ICC will put the dependencies in
4121  # the current directory while Tru64 will put them in the object
4122  # directory.
4123  mkdir sub
4124
4125  am_cv_CC_dependencies_compiler_type=none
4126  if test "$am_compiler_list" = ""; then
4127     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4128  fi
4129  am__universal=false
4130  case " $depcc " in #(
4131     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4132     esac
4133
4134  for depmode in $am_compiler_list; do
4135    # Setup a source with many dependencies, because some compilers
4136    # like to wrap large dependency lists on column 80 (with \), and
4137    # we should not choose a depcomp mode which is confused by this.
4138    #
4139    # We need to recreate these files for each test, as the compiler may
4140    # overwrite some of them when testing with obscure command lines.
4141    # This happens at least with the AIX C compiler.
4142    : > sub/conftest.c
4143    for i in 1 2 3 4 5 6; do
4144      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4145      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4146      # Solaris 8's {/usr,}/bin/sh.
4147      touch sub/conftst$i.h
4148    done
4149    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4150
4151    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4152    # mode.  It turns out that the SunPro C++ compiler does not properly
4153    # handle `-M -o', and we need to detect this.  Also, some Intel
4154    # versions had trouble with output in subdirs
4155    am__obj=sub/conftest.${OBJEXT-o}
4156    am__minus_obj="-o $am__obj"
4157    case $depmode in
4158    gcc)
4159      # This depmode causes a compiler race in universal mode.
4160      test "$am__universal" = false || continue
4161      ;;
4162    nosideeffect)
4163      # after this tag, mechanisms are not by side-effect, so they'll
4164      # only be used when explicitly requested
4165      if test "x$enable_dependency_tracking" = xyes; then
4166	continue
4167      else
4168	break
4169      fi
4170      ;;
4171    msvisualcpp | msvcmsys)
4172      # This compiler won't grok `-c -o', but also, the minuso test has
4173      # not run yet.  These depmodes are late enough in the game, and
4174      # so weak that their functioning should not be impacted.
4175      am__obj=conftest.${OBJEXT-o}
4176      am__minus_obj=
4177      ;;
4178    none) break ;;
4179    esac
4180    if depmode=$depmode \
4181       source=sub/conftest.c object=$am__obj \
4182       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4183       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4184         >/dev/null 2>conftest.err &&
4185       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4186       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4187       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4188       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4189      # icc doesn't choke on unknown options, it will just issue warnings
4190      # or remarks (even with -Werror).  So we grep stderr for any message
4191      # that says an option was ignored or not supported.
4192      # When given -MP, icc 7.0 and 7.1 complain thusly:
4193      #   icc: Command line warning: ignoring option '-M'; no argument required
4194      # The diagnosis changed in icc 8.0:
4195      #   icc: Command line remark: option '-MP' not supported
4196      if (grep 'ignoring option' conftest.err ||
4197          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4198        am_cv_CC_dependencies_compiler_type=$depmode
4199        break
4200      fi
4201    fi
4202  done
4203
4204  cd ..
4205  rm -rf conftest.dir
4206else
4207  am_cv_CC_dependencies_compiler_type=none
4208fi
4209
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4212$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4213CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4214
4215 if
4216  test "x$enable_dependency_tracking" != xno \
4217  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4218  am__fastdepCC_TRUE=
4219  am__fastdepCC_FALSE='#'
4220else
4221  am__fastdepCC_TRUE='#'
4222  am__fastdepCC_FALSE=
4223fi
4224
4225
4226if test "x$CC" != xcc; then
4227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4228$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4229else
4230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4231$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4232fi
4233set dummy $CC; ac_cc=`$as_echo "$2" |
4234		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4235if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4236  $as_echo_n "(cached) " >&6
4237else
4238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h.  */
4240
4241int
4242main ()
4243{
4244
4245  ;
4246  return 0;
4247}
4248_ACEOF
4249# Make sure it works both with $CC and with simple cc.
4250# We do the test twice because some compilers refuse to overwrite an
4251# existing .o file with -o, though they will create one.
4252ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4253rm -f conftest2.*
4254if { { case "(($ac_try" in
4255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256  *) ac_try_echo=$ac_try;;
4257esac
4258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259$as_echo "$ac_try_echo"; } >&5
4260  (eval "$ac_try") 2>&5
4261  ac_status=$?
4262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263  test $ac_status = 0; } &&
4264   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266  *) ac_try_echo=$ac_try;;
4267esac
4268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269$as_echo "$ac_try_echo"; } >&5
4270  (eval "$ac_try") 2>&5
4271  ac_status=$?
4272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273  test $ac_status = 0; };
4274then
4275  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4276  if test "x$CC" != xcc; then
4277    # Test first that cc exists at all.
4278    if { ac_try='cc -c conftest.$ac_ext >&5'
4279  { { case "(($ac_try" in
4280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281  *) ac_try_echo=$ac_try;;
4282esac
4283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284$as_echo "$ac_try_echo"; } >&5
4285  (eval "$ac_try") 2>&5
4286  ac_status=$?
4287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288  test $ac_status = 0; }; }; then
4289      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4290      rm -f conftest2.*
4291      if { { case "(($ac_try" in
4292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293  *) ac_try_echo=$ac_try;;
4294esac
4295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296$as_echo "$ac_try_echo"; } >&5
4297  (eval "$ac_try") 2>&5
4298  ac_status=$?
4299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300  test $ac_status = 0; } &&
4301	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303  *) ac_try_echo=$ac_try;;
4304esac
4305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306$as_echo "$ac_try_echo"; } >&5
4307  (eval "$ac_try") 2>&5
4308  ac_status=$?
4309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310  test $ac_status = 0; };
4311      then
4312	# cc works too.
4313	:
4314      else
4315	# cc exists but doesn't like -o.
4316	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4317      fi
4318    fi
4319  fi
4320else
4321  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4322fi
4323rm -f core conftest*
4324
4325fi
4326if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4328$as_echo "yes" >&6; }
4329else
4330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331$as_echo "no" >&6; }
4332
4333$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4334
4335fi
4336
4337# FIXME: we rely on the cache variable name because
4338# there is no other way.
4339set dummy $CC
4340am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4341eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4342if test "$am_t" != yes; then
4343   # Losing compiler, so override with the script.
4344   # FIXME: It is wrong to rewrite CC.
4345   # But if we don't then we get into trouble of one sort or another.
4346   # A longer-term fix would be to have automake use am__CC in this case,
4347   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4348   CC="$am_aux_dir/compile $CC"
4349fi
4350
4351
4352ac_ext=c
4353ac_cpp='$CPP $CPPFLAGS'
4354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4358$as_echo_n "checking how to run the C preprocessor... " >&6; }
4359# On Suns, sometimes $CPP names a directory.
4360if test -n "$CPP" && test -d "$CPP"; then
4361  CPP=
4362fi
4363if test -z "$CPP"; then
4364  if test "${ac_cv_prog_CPP+set}" = set; then :
4365  $as_echo_n "(cached) " >&6
4366else
4367      # Double quotes because CPP needs to be expanded
4368    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4369    do
4370      ac_preproc_ok=false
4371for ac_c_preproc_warn_flag in '' yes
4372do
4373  # Use a header file that comes with gcc, so configuring glibc
4374  # with a fresh cross-compiler works.
4375  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4376  # <limits.h> exists even on freestanding compilers.
4377  # On the NeXT, cc -E runs the code through the compiler's parser,
4378  # not just through cpp. "Syntax error" is here to catch this case.
4379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380/* end confdefs.h.  */
4381#ifdef __STDC__
4382# include <limits.h>
4383#else
4384# include <assert.h>
4385#endif
4386		     Syntax error
4387_ACEOF
4388if ac_fn_c_try_cpp "$LINENO"; then :
4389
4390else
4391  # Broken: fails on valid input.
4392continue
4393fi
4394rm -f conftest.err conftest.$ac_ext
4395
4396  # OK, works on sane cases.  Now check whether nonexistent headers
4397  # can be detected and how.
4398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399/* end confdefs.h.  */
4400#include <ac_nonexistent.h>
4401_ACEOF
4402if ac_fn_c_try_cpp "$LINENO"; then :
4403  # Broken: success on invalid input.
4404continue
4405else
4406  # Passes both tests.
4407ac_preproc_ok=:
4408break
4409fi
4410rm -f conftest.err conftest.$ac_ext
4411
4412done
4413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4414rm -f conftest.err conftest.$ac_ext
4415if $ac_preproc_ok; then :
4416  break
4417fi
4418
4419    done
4420    ac_cv_prog_CPP=$CPP
4421
4422fi
4423  CPP=$ac_cv_prog_CPP
4424else
4425  ac_cv_prog_CPP=$CPP
4426fi
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4428$as_echo "$CPP" >&6; }
4429ac_preproc_ok=false
4430for ac_c_preproc_warn_flag in '' yes
4431do
4432  # Use a header file that comes with gcc, so configuring glibc
4433  # with a fresh cross-compiler works.
4434  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435  # <limits.h> exists even on freestanding compilers.
4436  # On the NeXT, cc -E runs the code through the compiler's parser,
4437  # not just through cpp. "Syntax error" is here to catch this case.
4438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h.  */
4440#ifdef __STDC__
4441# include <limits.h>
4442#else
4443# include <assert.h>
4444#endif
4445		     Syntax error
4446_ACEOF
4447if ac_fn_c_try_cpp "$LINENO"; then :
4448
4449else
4450  # Broken: fails on valid input.
4451continue
4452fi
4453rm -f conftest.err conftest.$ac_ext
4454
4455  # OK, works on sane cases.  Now check whether nonexistent headers
4456  # can be detected and how.
4457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458/* end confdefs.h.  */
4459#include <ac_nonexistent.h>
4460_ACEOF
4461if ac_fn_c_try_cpp "$LINENO"; then :
4462  # Broken: success on invalid input.
4463continue
4464else
4465  # Passes both tests.
4466ac_preproc_ok=:
4467break
4468fi
4469rm -f conftest.err conftest.$ac_ext
4470
4471done
4472# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4473rm -f conftest.err conftest.$ac_ext
4474if $ac_preproc_ok; then :
4475
4476else
4477  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4479as_fn_error "C preprocessor \"$CPP\" fails sanity check
4480See \`config.log' for more details." "$LINENO" 5; }
4481fi
4482
4483ac_ext=c
4484ac_cpp='$CPP $CPPFLAGS'
4485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488
4489case `pwd` in
4490  *\ * | *\	*)
4491    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4492$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4493esac
4494
4495
4496
4497macro_version='2.2.4'
4498macro_revision='1.2976'
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512ltmain="$ac_aux_dir/ltmain.sh"
4513
4514# Make sure we can run config.sub.
4515$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4516  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4519$as_echo_n "checking build system type... " >&6; }
4520if test "${ac_cv_build+set}" = set; then :
4521  $as_echo_n "(cached) " >&6
4522else
4523  ac_build_alias=$build_alias
4524test "x$ac_build_alias" = x &&
4525  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4526test "x$ac_build_alias" = x &&
4527  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4528ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4529  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4530
4531fi
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4533$as_echo "$ac_cv_build" >&6; }
4534case $ac_cv_build in
4535*-*-*) ;;
4536*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4537esac
4538build=$ac_cv_build
4539ac_save_IFS=$IFS; IFS='-'
4540set x $ac_cv_build
4541shift
4542build_cpu=$1
4543build_vendor=$2
4544shift; shift
4545# Remember, the first character of IFS is used to create $*,
4546# except with old shells:
4547build_os=$*
4548IFS=$ac_save_IFS
4549case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4550
4551
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4553$as_echo_n "checking host system type... " >&6; }
4554if test "${ac_cv_host+set}" = set; then :
4555  $as_echo_n "(cached) " >&6
4556else
4557  if test "x$host_alias" = x; then
4558  ac_cv_host=$ac_cv_build
4559else
4560  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4561    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4562fi
4563
4564fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4566$as_echo "$ac_cv_host" >&6; }
4567case $ac_cv_host in
4568*-*-*) ;;
4569*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4570esac
4571host=$ac_cv_host
4572ac_save_IFS=$IFS; IFS='-'
4573set x $ac_cv_host
4574shift
4575host_cpu=$1
4576host_vendor=$2
4577shift; shift
4578# Remember, the first character of IFS is used to create $*,
4579# except with old shells:
4580host_os=$*
4581IFS=$ac_save_IFS
4582case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4583
4584
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4586$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4587if test "${ac_cv_path_SED+set}" = set; then :
4588  $as_echo_n "(cached) " >&6
4589else
4590            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4591     for ac_i in 1 2 3 4 5 6 7; do
4592       ac_script="$ac_script$as_nl$ac_script"
4593     done
4594     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4595     { ac_script=; unset ac_script;}
4596     if test -z "$SED"; then
4597  ac_path_SED_found=false
4598  # Loop through the user's path and test for each of PROGNAME-LIST
4599  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602  IFS=$as_save_IFS
4603  test -z "$as_dir" && as_dir=.
4604    for ac_prog in sed gsed; do
4605    for ac_exec_ext in '' $ac_executable_extensions; do
4606      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4607      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4608# Check for GNU ac_path_SED and select it if it is found.
4609  # Check for GNU $ac_path_SED
4610case `"$ac_path_SED" --version 2>&1` in
4611*GNU*)
4612  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4613*)
4614  ac_count=0
4615  $as_echo_n 0123456789 >"conftest.in"
4616  while :
4617  do
4618    cat "conftest.in" "conftest.in" >"conftest.tmp"
4619    mv "conftest.tmp" "conftest.in"
4620    cp "conftest.in" "conftest.nl"
4621    $as_echo '' >> "conftest.nl"
4622    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624    as_fn_arith $ac_count + 1 && ac_count=$as_val
4625    if test $ac_count -gt ${ac_path_SED_max-0}; then
4626      # Best one so far, save it but keep looking for a better one
4627      ac_cv_path_SED="$ac_path_SED"
4628      ac_path_SED_max=$ac_count
4629    fi
4630    # 10*(2^10) chars as input seems more than enough
4631    test $ac_count -gt 10 && break
4632  done
4633  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634esac
4635
4636      $ac_path_SED_found && break 3
4637    done
4638  done
4639  done
4640IFS=$as_save_IFS
4641  if test -z "$ac_cv_path_SED"; then
4642    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4643  fi
4644else
4645  ac_cv_path_SED=$SED
4646fi
4647
4648fi
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4650$as_echo "$ac_cv_path_SED" >&6; }
4651 SED="$ac_cv_path_SED"
4652  rm -f conftest.sed
4653
4654test -z "$SED" && SED=sed
4655Xsed="$SED -e 1s/^X//"
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4668$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4669if test "${ac_cv_path_GREP+set}" = set; then :
4670  $as_echo_n "(cached) " >&6
4671else
4672  if test -z "$GREP"; then
4673  ac_path_GREP_found=false
4674  # Loop through the user's path and test for each of PROGNAME-LIST
4675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4677do
4678  IFS=$as_save_IFS
4679  test -z "$as_dir" && as_dir=.
4680    for ac_prog in grep ggrep; do
4681    for ac_exec_ext in '' $ac_executable_extensions; do
4682      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4683      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4684# Check for GNU ac_path_GREP and select it if it is found.
4685  # Check for GNU $ac_path_GREP
4686case `"$ac_path_GREP" --version 2>&1` in
4687*GNU*)
4688  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4689*)
4690  ac_count=0
4691  $as_echo_n 0123456789 >"conftest.in"
4692  while :
4693  do
4694    cat "conftest.in" "conftest.in" >"conftest.tmp"
4695    mv "conftest.tmp" "conftest.in"
4696    cp "conftest.in" "conftest.nl"
4697    $as_echo 'GREP' >> "conftest.nl"
4698    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4699    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4700    as_fn_arith $ac_count + 1 && ac_count=$as_val
4701    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4702      # Best one so far, save it but keep looking for a better one
4703      ac_cv_path_GREP="$ac_path_GREP"
4704      ac_path_GREP_max=$ac_count
4705    fi
4706    # 10*(2^10) chars as input seems more than enough
4707    test $ac_count -gt 10 && break
4708  done
4709  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4710esac
4711
4712      $ac_path_GREP_found && break 3
4713    done
4714  done
4715  done
4716IFS=$as_save_IFS
4717  if test -z "$ac_cv_path_GREP"; then
4718    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4719  fi
4720else
4721  ac_cv_path_GREP=$GREP
4722fi
4723
4724fi
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4726$as_echo "$ac_cv_path_GREP" >&6; }
4727 GREP="$ac_cv_path_GREP"
4728
4729
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4731$as_echo_n "checking for egrep... " >&6; }
4732if test "${ac_cv_path_EGREP+set}" = set; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4736   then ac_cv_path_EGREP="$GREP -E"
4737   else
4738     if test -z "$EGREP"; then
4739  ac_path_EGREP_found=false
4740  # Loop through the user's path and test for each of PROGNAME-LIST
4741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4743do
4744  IFS=$as_save_IFS
4745  test -z "$as_dir" && as_dir=.
4746    for ac_prog in egrep; do
4747    for ac_exec_ext in '' $ac_executable_extensions; do
4748      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4749      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4750# Check for GNU ac_path_EGREP and select it if it is found.
4751  # Check for GNU $ac_path_EGREP
4752case `"$ac_path_EGREP" --version 2>&1` in
4753*GNU*)
4754  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4755*)
4756  ac_count=0
4757  $as_echo_n 0123456789 >"conftest.in"
4758  while :
4759  do
4760    cat "conftest.in" "conftest.in" >"conftest.tmp"
4761    mv "conftest.tmp" "conftest.in"
4762    cp "conftest.in" "conftest.nl"
4763    $as_echo 'EGREP' >> "conftest.nl"
4764    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4765    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4766    as_fn_arith $ac_count + 1 && ac_count=$as_val
4767    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4768      # Best one so far, save it but keep looking for a better one
4769      ac_cv_path_EGREP="$ac_path_EGREP"
4770      ac_path_EGREP_max=$ac_count
4771    fi
4772    # 10*(2^10) chars as input seems more than enough
4773    test $ac_count -gt 10 && break
4774  done
4775  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4776esac
4777
4778      $ac_path_EGREP_found && break 3
4779    done
4780  done
4781  done
4782IFS=$as_save_IFS
4783  if test -z "$ac_cv_path_EGREP"; then
4784    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4785  fi
4786else
4787  ac_cv_path_EGREP=$EGREP
4788fi
4789
4790   fi
4791fi
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4793$as_echo "$ac_cv_path_EGREP" >&6; }
4794 EGREP="$ac_cv_path_EGREP"
4795
4796
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4798$as_echo_n "checking for fgrep... " >&6; }
4799if test "${ac_cv_path_FGREP+set}" = set; then :
4800  $as_echo_n "(cached) " >&6
4801else
4802  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4803   then ac_cv_path_FGREP="$GREP -F"
4804   else
4805     if test -z "$FGREP"; then
4806  ac_path_FGREP_found=false
4807  # Loop through the user's path and test for each of PROGNAME-LIST
4808  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4810do
4811  IFS=$as_save_IFS
4812  test -z "$as_dir" && as_dir=.
4813    for ac_prog in fgrep; do
4814    for ac_exec_ext in '' $ac_executable_extensions; do
4815      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4816      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4817# Check for GNU ac_path_FGREP and select it if it is found.
4818  # Check for GNU $ac_path_FGREP
4819case `"$ac_path_FGREP" --version 2>&1` in
4820*GNU*)
4821  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4822*)
4823  ac_count=0
4824  $as_echo_n 0123456789 >"conftest.in"
4825  while :
4826  do
4827    cat "conftest.in" "conftest.in" >"conftest.tmp"
4828    mv "conftest.tmp" "conftest.in"
4829    cp "conftest.in" "conftest.nl"
4830    $as_echo 'FGREP' >> "conftest.nl"
4831    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4832    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4833    as_fn_arith $ac_count + 1 && ac_count=$as_val
4834    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4835      # Best one so far, save it but keep looking for a better one
4836      ac_cv_path_FGREP="$ac_path_FGREP"
4837      ac_path_FGREP_max=$ac_count
4838    fi
4839    # 10*(2^10) chars as input seems more than enough
4840    test $ac_count -gt 10 && break
4841  done
4842  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4843esac
4844
4845      $ac_path_FGREP_found && break 3
4846    done
4847  done
4848  done
4849IFS=$as_save_IFS
4850  if test -z "$ac_cv_path_FGREP"; then
4851    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4852  fi
4853else
4854  ac_cv_path_FGREP=$FGREP
4855fi
4856
4857   fi
4858fi
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4860$as_echo "$ac_cv_path_FGREP" >&6; }
4861 FGREP="$ac_cv_path_FGREP"
4862
4863
4864test -z "$GREP" && GREP=grep
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884# Check whether --with-gnu-ld was given.
4885if test "${with_gnu_ld+set}" = set; then :
4886  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4887else
4888  with_gnu_ld=no
4889fi
4890
4891ac_prog=ld
4892if test "$GCC" = yes; then
4893  # Check if gcc -print-prog-name=ld gives a path.
4894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4895$as_echo_n "checking for ld used by $CC... " >&6; }
4896  case $host in
4897  *-*-mingw*)
4898    # gcc leaves a trailing carriage return which upsets mingw
4899    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4900  *)
4901    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4902  esac
4903  case $ac_prog in
4904    # Accept absolute paths.
4905    [\\/]* | ?:[\\/]*)
4906      re_direlt='/[^/][^/]*/\.\./'
4907      # Canonicalize the pathname of ld
4908      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4909      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4910	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4911      done
4912      test -z "$LD" && LD="$ac_prog"
4913      ;;
4914  "")
4915    # If it fails, then pretend we aren't using GCC.
4916    ac_prog=ld
4917    ;;
4918  *)
4919    # If it is relative, then search for the first ld in PATH.
4920    with_gnu_ld=unknown
4921    ;;
4922  esac
4923elif test "$with_gnu_ld" = yes; then
4924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4925$as_echo_n "checking for GNU ld... " >&6; }
4926else
4927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4928$as_echo_n "checking for non-GNU ld... " >&6; }
4929fi
4930if test "${lt_cv_path_LD+set}" = set; then :
4931  $as_echo_n "(cached) " >&6
4932else
4933  if test -z "$LD"; then
4934  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4935  for ac_dir in $PATH; do
4936    IFS="$lt_save_ifs"
4937    test -z "$ac_dir" && ac_dir=.
4938    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4939      lt_cv_path_LD="$ac_dir/$ac_prog"
4940      # Check to see if the program is GNU ld.  I'd rather use --version,
4941      # but apparently some variants of GNU ld only accept -v.
4942      # Break only if it was the GNU/non-GNU ld that we prefer.
4943      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4944      *GNU* | *'with BFD'*)
4945	test "$with_gnu_ld" != no && break
4946	;;
4947      *)
4948	test "$with_gnu_ld" != yes && break
4949	;;
4950      esac
4951    fi
4952  done
4953  IFS="$lt_save_ifs"
4954else
4955  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4956fi
4957fi
4958
4959LD="$lt_cv_path_LD"
4960if test -n "$LD"; then
4961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4962$as_echo "$LD" >&6; }
4963else
4964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965$as_echo "no" >&6; }
4966fi
4967test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4969$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4970if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4974case `$LD -v 2>&1 </dev/null` in
4975*GNU* | *'with BFD'*)
4976  lt_cv_prog_gnu_ld=yes
4977  ;;
4978*)
4979  lt_cv_prog_gnu_ld=no
4980  ;;
4981esac
4982fi
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4984$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4985with_gnu_ld=$lt_cv_prog_gnu_ld
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4996$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4997if test "${lt_cv_path_NM+set}" = set; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000  if test -n "$NM"; then
5001  # Let the user override the test.
5002  lt_cv_path_NM="$NM"
5003else
5004  lt_nm_to_check="${ac_tool_prefix}nm"
5005  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5006    lt_nm_to_check="$lt_nm_to_check nm"
5007  fi
5008  for lt_tmp_nm in $lt_nm_to_check; do
5009    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5010    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5011      IFS="$lt_save_ifs"
5012      test -z "$ac_dir" && ac_dir=.
5013      tmp_nm="$ac_dir/$lt_tmp_nm"
5014      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5015	# Check to see if the nm accepts a BSD-compat flag.
5016	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5017	#   nm: unknown option "B" ignored
5018	# Tru64's nm complains that /dev/null is an invalid object file
5019	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5020	*/dev/null* | *'Invalid file or object type'*)
5021	  lt_cv_path_NM="$tmp_nm -B"
5022	  break
5023	  ;;
5024	*)
5025	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5026	  */dev/null*)
5027	    lt_cv_path_NM="$tmp_nm -p"
5028	    break
5029	    ;;
5030	  *)
5031	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5032	    continue # so that we can try to find one that supports BSD flags
5033	    ;;
5034	  esac
5035	  ;;
5036	esac
5037      fi
5038    done
5039    IFS="$lt_save_ifs"
5040  done
5041  : ${lt_cv_path_NM=no}
5042fi
5043fi
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5045$as_echo "$lt_cv_path_NM" >&6; }
5046if test "$lt_cv_path_NM" != "no"; then
5047  NM="$lt_cv_path_NM"
5048else
5049  # Didn't find any BSD compatible name lister, look for dumpbin.
5050  if test -n "$ac_tool_prefix"; then
5051  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5052  do
5053    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5054set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056$as_echo_n "checking for $ac_word... " >&6; }
5057if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5058  $as_echo_n "(cached) " >&6
5059else
5060  if test -n "$DUMPBIN"; then
5061  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5062else
5063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH
5065do
5066  IFS=$as_save_IFS
5067  test -z "$as_dir" && as_dir=.
5068    for ac_exec_ext in '' $ac_executable_extensions; do
5069  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072    break 2
5073  fi
5074done
5075  done
5076IFS=$as_save_IFS
5077
5078fi
5079fi
5080DUMPBIN=$ac_cv_prog_DUMPBIN
5081if test -n "$DUMPBIN"; then
5082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5083$as_echo "$DUMPBIN" >&6; }
5084else
5085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086$as_echo "no" >&6; }
5087fi
5088
5089
5090    test -n "$DUMPBIN" && break
5091  done
5092fi
5093if test -z "$DUMPBIN"; then
5094  ac_ct_DUMPBIN=$DUMPBIN
5095  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5096do
5097  # Extract the first word of "$ac_prog", so it can be a program name with args.
5098set dummy $ac_prog; ac_word=$2
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100$as_echo_n "checking for $ac_word... " >&6; }
5101if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5102  $as_echo_n "(cached) " >&6
5103else
5104  if test -n "$ac_ct_DUMPBIN"; then
5105  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5106else
5107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH
5109do
5110  IFS=$as_save_IFS
5111  test -z "$as_dir" && as_dir=.
5112    for ac_exec_ext in '' $ac_executable_extensions; do
5113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5114    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116    break 2
5117  fi
5118done
5119  done
5120IFS=$as_save_IFS
5121
5122fi
5123fi
5124ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5125if test -n "$ac_ct_DUMPBIN"; then
5126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5127$as_echo "$ac_ct_DUMPBIN" >&6; }
5128else
5129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130$as_echo "no" >&6; }
5131fi
5132
5133
5134  test -n "$ac_ct_DUMPBIN" && break
5135done
5136
5137  if test "x$ac_ct_DUMPBIN" = x; then
5138    DUMPBIN=":"
5139  else
5140    case $cross_compiling:$ac_tool_warned in
5141yes:)
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5144ac_tool_warned=yes ;;
5145esac
5146    DUMPBIN=$ac_ct_DUMPBIN
5147  fi
5148fi
5149
5150
5151  if test "$DUMPBIN" != ":"; then
5152    NM="$DUMPBIN"
5153  fi
5154fi
5155test -z "$NM" && NM=nm
5156
5157
5158
5159
5160
5161
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5163$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5164if test "${lt_cv_nm_interface+set}" = set; then :
5165  $as_echo_n "(cached) " >&6
5166else
5167  lt_cv_nm_interface="BSD nm"
5168  echo "int some_variable = 0;" > conftest.$ac_ext
5169  (eval echo "\"\$as_me:5169: $ac_compile\"" >&5)
5170  (eval "$ac_compile" 2>conftest.err)
5171  cat conftest.err >&5
5172  (eval echo "\"\$as_me:5172: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5173  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5174  cat conftest.err >&5
5175  (eval echo "\"\$as_me:5175: output\"" >&5)
5176  cat conftest.out >&5
5177  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5178    lt_cv_nm_interface="MS dumpbin"
5179  fi
5180  rm -f conftest*
5181fi
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5183$as_echo "$lt_cv_nm_interface" >&6; }
5184
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5186$as_echo_n "checking whether ln -s works... " >&6; }
5187LN_S=$as_ln_s
5188if test "$LN_S" = "ln -s"; then
5189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5190$as_echo "yes" >&6; }
5191else
5192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5193$as_echo "no, using $LN_S" >&6; }
5194fi
5195
5196# find the maximum length of command line arguments
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5198$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5199if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202    i=0
5203  teststring="ABCD"
5204
5205  case $build_os in
5206  msdosdjgpp*)
5207    # On DJGPP, this test can blow up pretty badly due to problems in libc
5208    # (any single argument exceeding 2000 bytes causes a buffer overrun
5209    # during glob expansion).  Even if it were fixed, the result of this
5210    # check would be larger than it should be.
5211    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5212    ;;
5213
5214  gnu*)
5215    # Under GNU Hurd, this test is not required because there is
5216    # no limit to the length of command line arguments.
5217    # Libtool will interpret -1 as no limit whatsoever
5218    lt_cv_sys_max_cmd_len=-1;
5219    ;;
5220
5221  cygwin* | mingw*)
5222    # On Win9x/ME, this test blows up -- it succeeds, but takes
5223    # about 5 minutes as the teststring grows exponentially.
5224    # Worse, since 9x/ME are not pre-emptively multitasking,
5225    # you end up with a "frozen" computer, even though with patience
5226    # the test eventually succeeds (with a max line length of 256k).
5227    # Instead, let's just punt: use the minimum linelength reported by
5228    # all of the supported platforms: 8192 (on NT/2K/XP).
5229    lt_cv_sys_max_cmd_len=8192;
5230    ;;
5231
5232  amigaos*)
5233    # On AmigaOS with pdksh, this test takes hours, literally.
5234    # So we just punt and use a minimum line length of 8192.
5235    lt_cv_sys_max_cmd_len=8192;
5236    ;;
5237
5238  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5239    # This has been around since 386BSD, at least.  Likely further.
5240    if test -x /sbin/sysctl; then
5241      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5242    elif test -x /usr/sbin/sysctl; then
5243      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5244    else
5245      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5246    fi
5247    # And add a safety zone
5248    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5249    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5250    ;;
5251
5252  interix*)
5253    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5254    lt_cv_sys_max_cmd_len=196608
5255    ;;
5256
5257  osf*)
5258    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5259    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5260    # nice to cause kernel panics so lets avoid the loop below.
5261    # First set a reasonable default.
5262    lt_cv_sys_max_cmd_len=16384
5263    #
5264    if test -x /sbin/sysconfig; then
5265      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5266        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5267      esac
5268    fi
5269    ;;
5270  sco3.2v5*)
5271    lt_cv_sys_max_cmd_len=102400
5272    ;;
5273  sysv5* | sco5v6* | sysv4.2uw2*)
5274    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5275    if test -n "$kargmax"; then
5276      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5277    else
5278      lt_cv_sys_max_cmd_len=32768
5279    fi
5280    ;;
5281  *)
5282    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5283    if test -n "$lt_cv_sys_max_cmd_len"; then
5284      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5285      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5286    else
5287      # Make teststring a little bigger before we do anything with it.
5288      # a 1K string should be a reasonable start.
5289      for i in 1 2 3 4 5 6 7 8 ; do
5290        teststring=$teststring$teststring
5291      done
5292      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5293      # If test is not a shell built-in, we'll probably end up computing a
5294      # maximum length that is only half of the actual maximum length, but
5295      # we can't tell.
5296      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5297	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5298	      test $i != 17 # 1/2 MB should be enough
5299      do
5300        i=`expr $i + 1`
5301        teststring=$teststring$teststring
5302      done
5303      # Only check the string length outside the loop.
5304      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5305      teststring=
5306      # Add a significant safety factor because C++ compilers can tack on
5307      # massive amounts of additional arguments before passing them to the
5308      # linker.  It appears as though 1/2 is a usable value.
5309      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5310    fi
5311    ;;
5312  esac
5313
5314fi
5315
5316if test -n $lt_cv_sys_max_cmd_len ; then
5317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5318$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5319else
5320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5321$as_echo "none" >&6; }
5322fi
5323max_cmd_len=$lt_cv_sys_max_cmd_len
5324
5325
5326
5327
5328
5329
5330: ${CP="cp -f"}
5331: ${MV="mv -f"}
5332: ${RM="rm -f"}
5333
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5335$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5336# Try some XSI features
5337xsi_shell=no
5338( _lt_dummy="a/b/c"
5339  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5340      = c,a/b,, \
5341    && eval 'test $(( 1 + 1 )) -eq 2 \
5342    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5343  && xsi_shell=yes
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5345$as_echo "$xsi_shell" >&6; }
5346
5347
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5349$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5350lt_shell_append=no
5351( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5352    >/dev/null 2>&1 \
5353  && lt_shell_append=yes
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5355$as_echo "$lt_shell_append" >&6; }
5356
5357
5358if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5359  lt_unset=unset
5360else
5361  lt_unset=false
5362fi
5363
5364
5365
5366
5367
5368# test EBCDIC or ASCII
5369case `echo X|tr X '\101'` in
5370 A) # ASCII based system
5371    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5372  lt_SP2NL='tr \040 \012'
5373  lt_NL2SP='tr \015\012 \040\040'
5374  ;;
5375 *) # EBCDIC based system
5376  lt_SP2NL='tr \100 \n'
5377  lt_NL2SP='tr \r\n \100\100'
5378  ;;
5379esac
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5390$as_echo_n "checking for $LD option to reload object files... " >&6; }
5391if test "${lt_cv_ld_reload_flag+set}" = set; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  lt_cv_ld_reload_flag='-r'
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5397$as_echo "$lt_cv_ld_reload_flag" >&6; }
5398reload_flag=$lt_cv_ld_reload_flag
5399case $reload_flag in
5400"" | " "*) ;;
5401*) reload_flag=" $reload_flag" ;;
5402esac
5403reload_cmds='$LD$reload_flag -o $output$reload_objs'
5404case $host_os in
5405  darwin*)
5406    if test "$GCC" = yes; then
5407      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5408    else
5409      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5410    fi
5411    ;;
5412esac
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5424$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5425if test "${lt_cv_deplibs_check_method+set}" = set; then :
5426  $as_echo_n "(cached) " >&6
5427else
5428  lt_cv_file_magic_cmd='$MAGIC_CMD'
5429lt_cv_file_magic_test_file=
5430lt_cv_deplibs_check_method='unknown'
5431# Need to set the preceding variable on all platforms that support
5432# interlibrary dependencies.
5433# 'none' -- dependencies not supported.
5434# `unknown' -- same as none, but documents that we really don't know.
5435# 'pass_all' -- all dependencies passed with no checks.
5436# 'test_compile' -- check by making test program.
5437# 'file_magic [[regex]]' -- check by looking for files in library path
5438# which responds to the $file_magic_cmd with a given extended regex.
5439# If you have `file' or equivalent on your system and you're not sure
5440# whether `pass_all' will *always* work, you probably want this one.
5441
5442case $host_os in
5443aix[4-9]*)
5444  lt_cv_deplibs_check_method=pass_all
5445  ;;
5446
5447beos*)
5448  lt_cv_deplibs_check_method=pass_all
5449  ;;
5450
5451bsdi[45]*)
5452  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5453  lt_cv_file_magic_cmd='/usr/bin/file -L'
5454  lt_cv_file_magic_test_file=/shlib/libc.so
5455  ;;
5456
5457cygwin*)
5458  # func_win32_libid is a shell function defined in ltmain.sh
5459  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5460  lt_cv_file_magic_cmd='func_win32_libid'
5461  ;;
5462
5463mingw* | pw32*)
5464  # Base MSYS/MinGW do not provide the 'file' command needed by
5465  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5466  # unless we find 'file', for example because we are cross-compiling.
5467  if ( file / ) >/dev/null 2>&1; then
5468    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5469    lt_cv_file_magic_cmd='func_win32_libid'
5470  else
5471    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5472    lt_cv_file_magic_cmd='$OBJDUMP -f'
5473  fi
5474  ;;
5475
5476darwin* | rhapsody*)
5477  lt_cv_deplibs_check_method=pass_all
5478  ;;
5479
5480freebsd* | dragonfly*)
5481  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5482    case $host_cpu in
5483    i*86 )
5484      # Not sure whether the presence of OpenBSD here was a mistake.
5485      # Let's accept both of them until this is cleared up.
5486      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5487      lt_cv_file_magic_cmd=/usr/bin/file
5488      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5489      ;;
5490    esac
5491  else
5492    lt_cv_deplibs_check_method=pass_all
5493  fi
5494  ;;
5495
5496gnu*)
5497  lt_cv_deplibs_check_method=pass_all
5498  ;;
5499
5500hpux10.20* | hpux11*)
5501  lt_cv_file_magic_cmd=/usr/bin/file
5502  case $host_cpu in
5503  ia64*)
5504    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5505    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5506    ;;
5507  hppa*64*)
5508    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5509    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5510    ;;
5511  *)
5512    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5513    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5514    ;;
5515  esac
5516  ;;
5517
5518interix[3-9]*)
5519  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5520  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5521  ;;
5522
5523irix5* | irix6* | nonstopux*)
5524  case $LD in
5525  *-32|*"-32 ") libmagic=32-bit;;
5526  *-n32|*"-n32 ") libmagic=N32;;
5527  *-64|*"-64 ") libmagic=64-bit;;
5528  *) libmagic=never-match;;
5529  esac
5530  lt_cv_deplibs_check_method=pass_all
5531  ;;
5532
5533# This must be Linux ELF.
5534linux* | k*bsd*-gnu)
5535  lt_cv_deplibs_check_method=pass_all
5536  ;;
5537
5538netbsd*)
5539  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5540    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5541  else
5542    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5543  fi
5544  ;;
5545
5546newos6*)
5547  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5548  lt_cv_file_magic_cmd=/usr/bin/file
5549  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5550  ;;
5551
5552*nto* | *qnx*)
5553  lt_cv_deplibs_check_method=pass_all
5554  ;;
5555
5556openbsd*)
5557  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5558    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5559  else
5560    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5561  fi
5562  ;;
5563
5564osf3* | osf4* | osf5*)
5565  lt_cv_deplibs_check_method=pass_all
5566  ;;
5567
5568rdos*)
5569  lt_cv_deplibs_check_method=pass_all
5570  ;;
5571
5572solaris*)
5573  lt_cv_deplibs_check_method=pass_all
5574  ;;
5575
5576sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5577  lt_cv_deplibs_check_method=pass_all
5578  ;;
5579
5580sysv4 | sysv4.3*)
5581  case $host_vendor in
5582  motorola)
5583    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]'
5584    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5585    ;;
5586  ncr)
5587    lt_cv_deplibs_check_method=pass_all
5588    ;;
5589  sequent)
5590    lt_cv_file_magic_cmd='/bin/file'
5591    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5592    ;;
5593  sni)
5594    lt_cv_file_magic_cmd='/bin/file'
5595    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5596    lt_cv_file_magic_test_file=/lib/libc.so
5597    ;;
5598  siemens)
5599    lt_cv_deplibs_check_method=pass_all
5600    ;;
5601  pc)
5602    lt_cv_deplibs_check_method=pass_all
5603    ;;
5604  esac
5605  ;;
5606
5607tpf*)
5608  lt_cv_deplibs_check_method=pass_all
5609  ;;
5610esac
5611
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5614$as_echo "$lt_cv_deplibs_check_method" >&6; }
5615file_magic_cmd=$lt_cv_file_magic_cmd
5616deplibs_check_method=$lt_cv_deplibs_check_method
5617test -z "$deplibs_check_method" && deplibs_check_method=unknown
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630if test -n "$ac_tool_prefix"; then
5631  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5632set dummy ${ac_tool_prefix}ar; ac_word=$2
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634$as_echo_n "checking for $ac_word... " >&6; }
5635if test "${ac_cv_prog_AR+set}" = set; then :
5636  $as_echo_n "(cached) " >&6
5637else
5638  if test -n "$AR"; then
5639  ac_cv_prog_AR="$AR" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644  IFS=$as_save_IFS
5645  test -z "$as_dir" && as_dir=.
5646    for ac_exec_ext in '' $ac_executable_extensions; do
5647  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648    ac_cv_prog_AR="${ac_tool_prefix}ar"
5649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650    break 2
5651  fi
5652done
5653  done
5654IFS=$as_save_IFS
5655
5656fi
5657fi
5658AR=$ac_cv_prog_AR
5659if test -n "$AR"; then
5660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5661$as_echo "$AR" >&6; }
5662else
5663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664$as_echo "no" >&6; }
5665fi
5666
5667
5668fi
5669if test -z "$ac_cv_prog_AR"; then
5670  ac_ct_AR=$AR
5671  # Extract the first word of "ar", so it can be a program name with args.
5672set dummy ar; ac_word=$2
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674$as_echo_n "checking for $ac_word... " >&6; }
5675if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5676  $as_echo_n "(cached) " >&6
5677else
5678  if test -n "$ac_ct_AR"; then
5679  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5680else
5681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682for as_dir in $PATH
5683do
5684  IFS=$as_save_IFS
5685  test -z "$as_dir" && as_dir=.
5686    for ac_exec_ext in '' $ac_executable_extensions; do
5687  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688    ac_cv_prog_ac_ct_AR="ar"
5689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690    break 2
5691  fi
5692done
5693  done
5694IFS=$as_save_IFS
5695
5696fi
5697fi
5698ac_ct_AR=$ac_cv_prog_ac_ct_AR
5699if test -n "$ac_ct_AR"; then
5700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5701$as_echo "$ac_ct_AR" >&6; }
5702else
5703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704$as_echo "no" >&6; }
5705fi
5706
5707  if test "x$ac_ct_AR" = x; then
5708    AR="false"
5709  else
5710    case $cross_compiling:$ac_tool_warned in
5711yes:)
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714ac_tool_warned=yes ;;
5715esac
5716    AR=$ac_ct_AR
5717  fi
5718else
5719  AR="$ac_cv_prog_AR"
5720fi
5721
5722test -z "$AR" && AR=ar
5723test -z "$AR_FLAGS" && AR_FLAGS=cru
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735if test -n "$ac_tool_prefix"; then
5736  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5737set dummy ${ac_tool_prefix}strip; ac_word=$2
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739$as_echo_n "checking for $ac_word... " >&6; }
5740if test "${ac_cv_prog_STRIP+set}" = set; then :
5741  $as_echo_n "(cached) " >&6
5742else
5743  if test -n "$STRIP"; then
5744  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5745else
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749  IFS=$as_save_IFS
5750  test -z "$as_dir" && as_dir=.
5751    for ac_exec_ext in '' $ac_executable_extensions; do
5752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5753    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755    break 2
5756  fi
5757done
5758  done
5759IFS=$as_save_IFS
5760
5761fi
5762fi
5763STRIP=$ac_cv_prog_STRIP
5764if test -n "$STRIP"; then
5765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5766$as_echo "$STRIP" >&6; }
5767else
5768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769$as_echo "no" >&6; }
5770fi
5771
5772
5773fi
5774if test -z "$ac_cv_prog_STRIP"; then
5775  ac_ct_STRIP=$STRIP
5776  # Extract the first word of "strip", so it can be a program name with args.
5777set dummy strip; ac_word=$2
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779$as_echo_n "checking for $ac_word... " >&6; }
5780if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5781  $as_echo_n "(cached) " >&6
5782else
5783  if test -n "$ac_ct_STRIP"; then
5784  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5785else
5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787for as_dir in $PATH
5788do
5789  IFS=$as_save_IFS
5790  test -z "$as_dir" && as_dir=.
5791    for ac_exec_ext in '' $ac_executable_extensions; do
5792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5793    ac_cv_prog_ac_ct_STRIP="strip"
5794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795    break 2
5796  fi
5797done
5798  done
5799IFS=$as_save_IFS
5800
5801fi
5802fi
5803ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5804if test -n "$ac_ct_STRIP"; then
5805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5806$as_echo "$ac_ct_STRIP" >&6; }
5807else
5808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809$as_echo "no" >&6; }
5810fi
5811
5812  if test "x$ac_ct_STRIP" = x; then
5813    STRIP=":"
5814  else
5815    case $cross_compiling:$ac_tool_warned in
5816yes:)
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5819ac_tool_warned=yes ;;
5820esac
5821    STRIP=$ac_ct_STRIP
5822  fi
5823else
5824  STRIP="$ac_cv_prog_STRIP"
5825fi
5826
5827test -z "$STRIP" && STRIP=:
5828
5829
5830
5831
5832
5833
5834if test -n "$ac_tool_prefix"; then
5835  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5836set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838$as_echo_n "checking for $ac_word... " >&6; }
5839if test "${ac_cv_prog_RANLIB+set}" = set; then :
5840  $as_echo_n "(cached) " >&6
5841else
5842  if test -n "$RANLIB"; then
5843  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5844else
5845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848  IFS=$as_save_IFS
5849  test -z "$as_dir" && as_dir=.
5850    for ac_exec_ext in '' $ac_executable_extensions; do
5851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854    break 2
5855  fi
5856done
5857  done
5858IFS=$as_save_IFS
5859
5860fi
5861fi
5862RANLIB=$ac_cv_prog_RANLIB
5863if test -n "$RANLIB"; then
5864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5865$as_echo "$RANLIB" >&6; }
5866else
5867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868$as_echo "no" >&6; }
5869fi
5870
5871
5872fi
5873if test -z "$ac_cv_prog_RANLIB"; then
5874  ac_ct_RANLIB=$RANLIB
5875  # Extract the first word of "ranlib", so it can be a program name with args.
5876set dummy ranlib; ac_word=$2
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878$as_echo_n "checking for $ac_word... " >&6; }
5879if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5880  $as_echo_n "(cached) " >&6
5881else
5882  if test -n "$ac_ct_RANLIB"; then
5883  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5884else
5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888  IFS=$as_save_IFS
5889  test -z "$as_dir" && as_dir=.
5890    for ac_exec_ext in '' $ac_executable_extensions; do
5891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5892    ac_cv_prog_ac_ct_RANLIB="ranlib"
5893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894    break 2
5895  fi
5896done
5897  done
5898IFS=$as_save_IFS
5899
5900fi
5901fi
5902ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5903if test -n "$ac_ct_RANLIB"; then
5904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5905$as_echo "$ac_ct_RANLIB" >&6; }
5906else
5907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908$as_echo "no" >&6; }
5909fi
5910
5911  if test "x$ac_ct_RANLIB" = x; then
5912    RANLIB=":"
5913  else
5914    case $cross_compiling:$ac_tool_warned in
5915yes:)
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5918ac_tool_warned=yes ;;
5919esac
5920    RANLIB=$ac_ct_RANLIB
5921  fi
5922else
5923  RANLIB="$ac_cv_prog_RANLIB"
5924fi
5925
5926test -z "$RANLIB" && RANLIB=:
5927
5928
5929
5930
5931
5932
5933# Determine commands to create old-style static archives.
5934old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5935old_postinstall_cmds='chmod 644 $oldlib'
5936old_postuninstall_cmds=
5937
5938if test -n "$RANLIB"; then
5939  case $host_os in
5940  openbsd*)
5941    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5942    ;;
5943  *)
5944    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5945    ;;
5946  esac
5947  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5948fi
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983# If no C compiler was specified, use CC.
5984LTCC=${LTCC-"$CC"}
5985
5986# If no C compiler flags were specified, use CFLAGS.
5987LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5988
5989# Allow CC to be a program name with arguments.
5990compiler=$CC
5991
5992
5993# Check for command to grab the raw symbol name followed by C symbol from nm.
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5995$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5996if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5997  $as_echo_n "(cached) " >&6
5998else
5999
6000# These are sane defaults that work on at least a few old systems.
6001# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6002
6003# Character class describing NM global symbol codes.
6004symcode='[BCDEGRST]'
6005
6006# Regexp to match symbols that can be accessed directly from C.
6007sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6008
6009# Define system-specific variables.
6010case $host_os in
6011aix*)
6012  symcode='[BCDT]'
6013  ;;
6014cygwin* | mingw* | pw32*)
6015  symcode='[ABCDGISTW]'
6016  ;;
6017hpux*)
6018  if test "$host_cpu" = ia64; then
6019    symcode='[ABCDEGRST]'
6020  fi
6021  ;;
6022irix* | nonstopux*)
6023  symcode='[BCDEGRST]'
6024  ;;
6025osf*)
6026  symcode='[BCDEGQRST]'
6027  ;;
6028solaris*)
6029  symcode='[BDRT]'
6030  ;;
6031sco3.2v5*)
6032  symcode='[DT]'
6033  ;;
6034sysv4.2uw2*)
6035  symcode='[DT]'
6036  ;;
6037sysv5* | sco5v6* | unixware* | OpenUNIX*)
6038  symcode='[ABDT]'
6039  ;;
6040sysv4)
6041  symcode='[DFNSTU]'
6042  ;;
6043esac
6044
6045# If we're using GNU nm, then use its standard symbol codes.
6046case `$NM -V 2>&1` in
6047*GNU* | *'with BFD'*)
6048  symcode='[ABCDGIRSTW]' ;;
6049esac
6050
6051# Transform an extracted symbol line into a proper C declaration.
6052# Some systems (esp. on ia64) link data and code symbols differently,
6053# so use this general approach.
6054lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6055
6056# Transform an extracted symbol line into symbol name and symbol address
6057lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6058lt_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'"
6059
6060# Handle CRLF in mingw tool chain
6061opt_cr=
6062case $build_os in
6063mingw*)
6064  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6065  ;;
6066esac
6067
6068# Try without a prefix underscore, then with it.
6069for ac_symprfx in "" "_"; do
6070
6071  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6072  symxfrm="\\1 $ac_symprfx\\2 \\2"
6073
6074  # Write the raw and C identifiers.
6075  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6076    # Fake it for dumpbin and say T for any non-static function
6077    # and D for any global variable.
6078    # Also find C++ and __fastcall symbols from MSVC++,
6079    # which start with @ or ?.
6080    lt_cv_sys_global_symbol_pipe="$AWK '"\
6081"     {last_section=section; section=\$ 3};"\
6082"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6083"     \$ 0!~/External *\|/{next};"\
6084"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6085"     {if(hide[section]) next};"\
6086"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6087"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6088"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6089"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6090"     ' prfx=^$ac_symprfx"
6091  else
6092    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6093  fi
6094
6095  # Check to see that the pipe works correctly.
6096  pipe_works=no
6097
6098  rm -f conftest*
6099  cat > conftest.$ac_ext <<_LT_EOF
6100#ifdef __cplusplus
6101extern "C" {
6102#endif
6103char nm_test_var;
6104void nm_test_func(void);
6105void nm_test_func(void){}
6106#ifdef __cplusplus
6107}
6108#endif
6109int main(){nm_test_var='a';nm_test_func();return(0);}
6110_LT_EOF
6111
6112  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6113  (eval $ac_compile) 2>&5
6114  ac_status=$?
6115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116  test $ac_status = 0; }; then
6117    # Now try to grab the symbols.
6118    nlist=conftest.nm
6119    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6120  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6121  ac_status=$?
6122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6123  test $ac_status = 0; } && test -s "$nlist"; then
6124      # Try sorting and uniquifying the output.
6125      if sort "$nlist" | uniq > "$nlist"T; then
6126	mv -f "$nlist"T "$nlist"
6127      else
6128	rm -f "$nlist"T
6129      fi
6130
6131      # Make sure that we snagged all the symbols we need.
6132      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6133	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6134	  cat <<_LT_EOF > conftest.$ac_ext
6135#ifdef __cplusplus
6136extern "C" {
6137#endif
6138
6139_LT_EOF
6140	  # Now generate the symbol file.
6141	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6142
6143	  cat <<_LT_EOF >> conftest.$ac_ext
6144
6145/* The mapping between symbol names and symbols.  */
6146const struct {
6147  const char *name;
6148  void       *address;
6149}
6150lt__PROGRAM__LTX_preloaded_symbols[] =
6151{
6152  { "@PROGRAM@", (void *) 0 },
6153_LT_EOF
6154	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6155	  cat <<\_LT_EOF >> conftest.$ac_ext
6156  {0, (void *) 0}
6157};
6158
6159/* This works around a problem in FreeBSD linker */
6160#ifdef FREEBSD_WORKAROUND
6161static const void *lt_preloaded_setup() {
6162  return lt__PROGRAM__LTX_preloaded_symbols;
6163}
6164#endif
6165
6166#ifdef __cplusplus
6167}
6168#endif
6169_LT_EOF
6170	  # Now try linking the two files.
6171	  mv conftest.$ac_objext conftstm.$ac_objext
6172	  lt_save_LIBS="$LIBS"
6173	  lt_save_CFLAGS="$CFLAGS"
6174	  LIBS="conftstm.$ac_objext"
6175	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6176	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6177  (eval $ac_link) 2>&5
6178  ac_status=$?
6179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6181	    pipe_works=yes
6182	  fi
6183	  LIBS="$lt_save_LIBS"
6184	  CFLAGS="$lt_save_CFLAGS"
6185	else
6186	  echo "cannot find nm_test_func in $nlist" >&5
6187	fi
6188      else
6189	echo "cannot find nm_test_var in $nlist" >&5
6190      fi
6191    else
6192      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6193    fi
6194  else
6195    echo "$progname: failed program was:" >&5
6196    cat conftest.$ac_ext >&5
6197  fi
6198  rm -rf conftest* conftst*
6199
6200  # Do not use the global_symbol_pipe unless it works.
6201  if test "$pipe_works" = yes; then
6202    break
6203  else
6204    lt_cv_sys_global_symbol_pipe=
6205  fi
6206done
6207
6208fi
6209
6210if test -z "$lt_cv_sys_global_symbol_pipe"; then
6211  lt_cv_sys_global_symbol_to_cdecl=
6212fi
6213if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6215$as_echo "failed" >&6; }
6216else
6217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6218$as_echo "ok" >&6; }
6219fi
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243# Check whether --enable-libtool-lock was given.
6244if test "${enable_libtool_lock+set}" = set; then :
6245  enableval=$enable_libtool_lock;
6246fi
6247
6248test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6249
6250# Some flags need to be propagated to the compiler or linker for good
6251# libtool support.
6252case $host in
6253ia64-*-hpux*)
6254  # Find out which ABI we are using.
6255  echo 'int i;' > conftest.$ac_ext
6256  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6257  (eval $ac_compile) 2>&5
6258  ac_status=$?
6259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6260  test $ac_status = 0; }; then
6261    case `/usr/bin/file conftest.$ac_objext` in
6262      *ELF-32*)
6263	HPUX_IA64_MODE="32"
6264	;;
6265      *ELF-64*)
6266	HPUX_IA64_MODE="64"
6267	;;
6268    esac
6269  fi
6270  rm -rf conftest*
6271  ;;
6272*-*-irix6*)
6273  # Find out which ABI we are using.
6274  echo '#line 6274 "configure"' > conftest.$ac_ext
6275  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6276  (eval $ac_compile) 2>&5
6277  ac_status=$?
6278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6279  test $ac_status = 0; }; then
6280    if test "$lt_cv_prog_gnu_ld" = yes; then
6281      case `/usr/bin/file conftest.$ac_objext` in
6282	*32-bit*)
6283	  LD="${LD-ld} -melf32bsmip"
6284	  ;;
6285	*N32*)
6286	  LD="${LD-ld} -melf32bmipn32"
6287	  ;;
6288	*64-bit*)
6289	  LD="${LD-ld} -melf64bmip"
6290	;;
6291      esac
6292    else
6293      case `/usr/bin/file conftest.$ac_objext` in
6294	*32-bit*)
6295	  LD="${LD-ld} -32"
6296	  ;;
6297	*N32*)
6298	  LD="${LD-ld} -n32"
6299	  ;;
6300	*64-bit*)
6301	  LD="${LD-ld} -64"
6302	  ;;
6303      esac
6304    fi
6305  fi
6306  rm -rf conftest*
6307  ;;
6308
6309x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6310s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6311  # Find out which ABI we are using.
6312  echo 'int i;' > conftest.$ac_ext
6313  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6314  (eval $ac_compile) 2>&5
6315  ac_status=$?
6316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317  test $ac_status = 0; }; then
6318    case `/usr/bin/file conftest.o` in
6319      *32-bit*)
6320	case $host in
6321	  x86_64-*kfreebsd*-gnu)
6322	    LD="${LD-ld} -m elf_i386_fbsd"
6323	    ;;
6324	  x86_64-*linux*)
6325	    LD="${LD-ld} -m elf_i386"
6326	    ;;
6327	  ppc64-*linux*|powerpc64-*linux*)
6328	    LD="${LD-ld} -m elf32ppclinux"
6329	    ;;
6330	  s390x-*linux*)
6331	    LD="${LD-ld} -m elf_s390"
6332	    ;;
6333	  sparc64-*linux*)
6334	    LD="${LD-ld} -m elf32_sparc"
6335	    ;;
6336	esac
6337	;;
6338      *64-bit*)
6339	case $host in
6340	  x86_64-*kfreebsd*-gnu)
6341	    LD="${LD-ld} -m elf_x86_64_fbsd"
6342	    ;;
6343	  x86_64-*linux*)
6344	    LD="${LD-ld} -m elf_x86_64"
6345	    ;;
6346	  ppc*-*linux*|powerpc*-*linux*)
6347	    LD="${LD-ld} -m elf64ppc"
6348	    ;;
6349	  s390*-*linux*|s390*-*tpf*)
6350	    LD="${LD-ld} -m elf64_s390"
6351	    ;;
6352	  sparc*-*linux*)
6353	    LD="${LD-ld} -m elf64_sparc"
6354	    ;;
6355	esac
6356	;;
6357    esac
6358  fi
6359  rm -rf conftest*
6360  ;;
6361
6362*-*-sco3.2v5*)
6363  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6364  SAVE_CFLAGS="$CFLAGS"
6365  CFLAGS="$CFLAGS -belf"
6366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6367$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6368if test "${lt_cv_cc_needs_belf+set}" = set; then :
6369  $as_echo_n "(cached) " >&6
6370else
6371  ac_ext=c
6372ac_cpp='$CPP $CPPFLAGS'
6373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375ac_compiler_gnu=$ac_cv_c_compiler_gnu
6376
6377     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378/* end confdefs.h.  */
6379
6380int
6381main ()
6382{
6383
6384  ;
6385  return 0;
6386}
6387_ACEOF
6388if ac_fn_c_try_link "$LINENO"; then :
6389  lt_cv_cc_needs_belf=yes
6390else
6391  lt_cv_cc_needs_belf=no
6392fi
6393rm -f core conftest.err conftest.$ac_objext \
6394    conftest$ac_exeext conftest.$ac_ext
6395     ac_ext=c
6396ac_cpp='$CPP $CPPFLAGS'
6397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6399ac_compiler_gnu=$ac_cv_c_compiler_gnu
6400
6401fi
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6403$as_echo "$lt_cv_cc_needs_belf" >&6; }
6404  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6405    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6406    CFLAGS="$SAVE_CFLAGS"
6407  fi
6408  ;;
6409sparc*-*solaris*)
6410  # Find out which ABI we are using.
6411  echo 'int i;' > conftest.$ac_ext
6412  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6413  (eval $ac_compile) 2>&5
6414  ac_status=$?
6415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416  test $ac_status = 0; }; then
6417    case `/usr/bin/file conftest.o` in
6418    *64-bit*)
6419      case $lt_cv_prog_gnu_ld in
6420      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6421      *)
6422	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6423	  LD="${LD-ld} -64"
6424	fi
6425	;;
6426      esac
6427      ;;
6428    esac
6429  fi
6430  rm -rf conftest*
6431  ;;
6432esac
6433
6434need_locks="$enable_libtool_lock"
6435
6436
6437  case $host_os in
6438    rhapsody* | darwin*)
6439    if test -n "$ac_tool_prefix"; then
6440  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6441set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443$as_echo_n "checking for $ac_word... " >&6; }
6444if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6445  $as_echo_n "(cached) " >&6
6446else
6447  if test -n "$DSYMUTIL"; then
6448  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6449else
6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453  IFS=$as_save_IFS
6454  test -z "$as_dir" && as_dir=.
6455    for ac_exec_ext in '' $ac_executable_extensions; do
6456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459    break 2
6460  fi
6461done
6462  done
6463IFS=$as_save_IFS
6464
6465fi
6466fi
6467DSYMUTIL=$ac_cv_prog_DSYMUTIL
6468if test -n "$DSYMUTIL"; then
6469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6470$as_echo "$DSYMUTIL" >&6; }
6471else
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473$as_echo "no" >&6; }
6474fi
6475
6476
6477fi
6478if test -z "$ac_cv_prog_DSYMUTIL"; then
6479  ac_ct_DSYMUTIL=$DSYMUTIL
6480  # Extract the first word of "dsymutil", so it can be a program name with args.
6481set dummy dsymutil; ac_word=$2
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483$as_echo_n "checking for $ac_word... " >&6; }
6484if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487  if test -n "$ac_ct_DSYMUTIL"; then
6488  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6489else
6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493  IFS=$as_save_IFS
6494  test -z "$as_dir" && as_dir=.
6495    for ac_exec_ext in '' $ac_executable_extensions; do
6496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499    break 2
6500  fi
6501done
6502  done
6503IFS=$as_save_IFS
6504
6505fi
6506fi
6507ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6508if test -n "$ac_ct_DSYMUTIL"; then
6509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6510$as_echo "$ac_ct_DSYMUTIL" >&6; }
6511else
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513$as_echo "no" >&6; }
6514fi
6515
6516  if test "x$ac_ct_DSYMUTIL" = x; then
6517    DSYMUTIL=":"
6518  else
6519    case $cross_compiling:$ac_tool_warned in
6520yes:)
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523ac_tool_warned=yes ;;
6524esac
6525    DSYMUTIL=$ac_ct_DSYMUTIL
6526  fi
6527else
6528  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6529fi
6530
6531    if test -n "$ac_tool_prefix"; then
6532  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6533set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
6536if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6537  $as_echo_n "(cached) " >&6
6538else
6539  if test -n "$NMEDIT"; then
6540  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545  IFS=$as_save_IFS
6546  test -z "$as_dir" && as_dir=.
6547    for ac_exec_ext in '' $ac_executable_extensions; do
6548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551    break 2
6552  fi
6553done
6554  done
6555IFS=$as_save_IFS
6556
6557fi
6558fi
6559NMEDIT=$ac_cv_prog_NMEDIT
6560if test -n "$NMEDIT"; then
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6562$as_echo "$NMEDIT" >&6; }
6563else
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
6566fi
6567
6568
6569fi
6570if test -z "$ac_cv_prog_NMEDIT"; then
6571  ac_ct_NMEDIT=$NMEDIT
6572  # Extract the first word of "nmedit", so it can be a program name with args.
6573set dummy nmedit; ac_word=$2
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575$as_echo_n "checking for $ac_word... " >&6; }
6576if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6577  $as_echo_n "(cached) " >&6
6578else
6579  if test -n "$ac_ct_NMEDIT"; then
6580  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585  IFS=$as_save_IFS
6586  test -z "$as_dir" && as_dir=.
6587    for ac_exec_ext in '' $ac_executable_extensions; do
6588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594  done
6595IFS=$as_save_IFS
6596
6597fi
6598fi
6599ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6600if test -n "$ac_ct_NMEDIT"; then
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6602$as_echo "$ac_ct_NMEDIT" >&6; }
6603else
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }
6606fi
6607
6608  if test "x$ac_ct_NMEDIT" = x; then
6609    NMEDIT=":"
6610  else
6611    case $cross_compiling:$ac_tool_warned in
6612yes:)
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6615ac_tool_warned=yes ;;
6616esac
6617    NMEDIT=$ac_ct_NMEDIT
6618  fi
6619else
6620  NMEDIT="$ac_cv_prog_NMEDIT"
6621fi
6622
6623    if test -n "$ac_tool_prefix"; then
6624  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6625set dummy ${ac_tool_prefix}lipo; ac_word=$2
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627$as_echo_n "checking for $ac_word... " >&6; }
6628if test "${ac_cv_prog_LIPO+set}" = set; then :
6629  $as_echo_n "(cached) " >&6
6630else
6631  if test -n "$LIPO"; then
6632  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637  IFS=$as_save_IFS
6638  test -z "$as_dir" && as_dir=.
6639    for ac_exec_ext in '' $ac_executable_extensions; do
6640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643    break 2
6644  fi
6645done
6646  done
6647IFS=$as_save_IFS
6648
6649fi
6650fi
6651LIPO=$ac_cv_prog_LIPO
6652if test -n "$LIPO"; then
6653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6654$as_echo "$LIPO" >&6; }
6655else
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657$as_echo "no" >&6; }
6658fi
6659
6660
6661fi
6662if test -z "$ac_cv_prog_LIPO"; then
6663  ac_ct_LIPO=$LIPO
6664  # Extract the first word of "lipo", so it can be a program name with args.
6665set dummy lipo; ac_word=$2
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667$as_echo_n "checking for $ac_word... " >&6; }
6668if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6669  $as_echo_n "(cached) " >&6
6670else
6671  if test -n "$ac_ct_LIPO"; then
6672  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677  IFS=$as_save_IFS
6678  test -z "$as_dir" && as_dir=.
6679    for ac_exec_ext in '' $ac_executable_extensions; do
6680  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681    ac_cv_prog_ac_ct_LIPO="lipo"
6682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683    break 2
6684  fi
6685done
6686  done
6687IFS=$as_save_IFS
6688
6689fi
6690fi
6691ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6692if test -n "$ac_ct_LIPO"; then
6693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6694$as_echo "$ac_ct_LIPO" >&6; }
6695else
6696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697$as_echo "no" >&6; }
6698fi
6699
6700  if test "x$ac_ct_LIPO" = x; then
6701    LIPO=":"
6702  else
6703    case $cross_compiling:$ac_tool_warned in
6704yes:)
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707ac_tool_warned=yes ;;
6708esac
6709    LIPO=$ac_ct_LIPO
6710  fi
6711else
6712  LIPO="$ac_cv_prog_LIPO"
6713fi
6714
6715    if test -n "$ac_tool_prefix"; then
6716  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6717set dummy ${ac_tool_prefix}otool; ac_word=$2
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if test "${ac_cv_prog_OTOOL+set}" = set; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  if test -n "$OTOOL"; then
6724  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  test -z "$as_dir" && as_dir=.
6731    for ac_exec_ext in '' $ac_executable_extensions; do
6732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735    break 2
6736  fi
6737done
6738  done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743OTOOL=$ac_cv_prog_OTOOL
6744if test -n "$OTOOL"; then
6745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6746$as_echo "$OTOOL" >&6; }
6747else
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
6750fi
6751
6752
6753fi
6754if test -z "$ac_cv_prog_OTOOL"; then
6755  ac_ct_OTOOL=$OTOOL
6756  # Extract the first word of "otool", so it can be a program name with args.
6757set dummy otool; ac_word=$2
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759$as_echo_n "checking for $ac_word... " >&6; }
6760if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  if test -n "$ac_ct_OTOOL"; then
6764  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769  IFS=$as_save_IFS
6770  test -z "$as_dir" && as_dir=.
6771    for ac_exec_ext in '' $ac_executable_extensions; do
6772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773    ac_cv_prog_ac_ct_OTOOL="otool"
6774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775    break 2
6776  fi
6777done
6778  done
6779IFS=$as_save_IFS
6780
6781fi
6782fi
6783ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6784if test -n "$ac_ct_OTOOL"; then
6785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6786$as_echo "$ac_ct_OTOOL" >&6; }
6787else
6788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789$as_echo "no" >&6; }
6790fi
6791
6792  if test "x$ac_ct_OTOOL" = x; then
6793    OTOOL=":"
6794  else
6795    case $cross_compiling:$ac_tool_warned in
6796yes:)
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799ac_tool_warned=yes ;;
6800esac
6801    OTOOL=$ac_ct_OTOOL
6802  fi
6803else
6804  OTOOL="$ac_cv_prog_OTOOL"
6805fi
6806
6807    if test -n "$ac_tool_prefix"; then
6808  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6809set dummy ${ac_tool_prefix}otool64; ac_word=$2
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6813  $as_echo_n "(cached) " >&6
6814else
6815  if test -n "$OTOOL64"; then
6816  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821  IFS=$as_save_IFS
6822  test -z "$as_dir" && as_dir=.
6823    for ac_exec_ext in '' $ac_executable_extensions; do
6824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827    break 2
6828  fi
6829done
6830  done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835OTOOL64=$ac_cv_prog_OTOOL64
6836if test -n "$OTOOL64"; then
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6838$as_echo "$OTOOL64" >&6; }
6839else
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844
6845fi
6846if test -z "$ac_cv_prog_OTOOL64"; then
6847  ac_ct_OTOOL64=$OTOOL64
6848  # Extract the first word of "otool64", so it can be a program name with args.
6849set dummy otool64; ac_word=$2
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851$as_echo_n "checking for $ac_word... " >&6; }
6852if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  if test -n "$ac_ct_OTOOL64"; then
6856  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861  IFS=$as_save_IFS
6862  test -z "$as_dir" && as_dir=.
6863    for ac_exec_ext in '' $ac_executable_extensions; do
6864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6865    ac_cv_prog_ac_ct_OTOOL64="otool64"
6866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867    break 2
6868  fi
6869done
6870  done
6871IFS=$as_save_IFS
6872
6873fi
6874fi
6875ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6876if test -n "$ac_ct_OTOOL64"; then
6877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6878$as_echo "$ac_ct_OTOOL64" >&6; }
6879else
6880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881$as_echo "no" >&6; }
6882fi
6883
6884  if test "x$ac_ct_OTOOL64" = x; then
6885    OTOOL64=":"
6886  else
6887    case $cross_compiling:$ac_tool_warned in
6888yes:)
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891ac_tool_warned=yes ;;
6892esac
6893    OTOOL64=$ac_ct_OTOOL64
6894  fi
6895else
6896  OTOOL64="$ac_cv_prog_OTOOL64"
6897fi
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6926$as_echo_n "checking for -single_module linker flag... " >&6; }
6927if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6928  $as_echo_n "(cached) " >&6
6929else
6930  lt_cv_apple_cc_single_mod=no
6931      if test -z "${LT_MULTI_MODULE}"; then
6932	# By default we will add the -single_module flag. You can override
6933	# by either setting the environment variable LT_MULTI_MODULE
6934	# non-empty at configure time, or by adding -multi_module to the
6935	# link flags.
6936	rm -rf libconftest.dylib*
6937	echo "int foo(void){return 1;}" > conftest.c
6938	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6939-dynamiclib -Wl,-single_module conftest.c" >&5
6940	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6941	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6942        _lt_result=$?
6943	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6944	  lt_cv_apple_cc_single_mod=yes
6945	else
6946	  cat conftest.err >&5
6947	fi
6948	rm -rf libconftest.dylib*
6949	rm -f conftest.*
6950      fi
6951fi
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6953$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6955$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6956if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6957  $as_echo_n "(cached) " >&6
6958else
6959  lt_cv_ld_exported_symbols_list=no
6960      save_LDFLAGS=$LDFLAGS
6961      echo "_main" > conftest.sym
6962      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6963      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964/* end confdefs.h.  */
6965
6966int
6967main ()
6968{
6969
6970  ;
6971  return 0;
6972}
6973_ACEOF
6974if ac_fn_c_try_link "$LINENO"; then :
6975  lt_cv_ld_exported_symbols_list=yes
6976else
6977  lt_cv_ld_exported_symbols_list=no
6978fi
6979rm -f core conftest.err conftest.$ac_objext \
6980    conftest$ac_exeext conftest.$ac_ext
6981	LDFLAGS="$save_LDFLAGS"
6982
6983fi
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6985$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6986    case $host_os in
6987    rhapsody* | darwin1.[012])
6988      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6989    darwin1.*)
6990      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6991    darwin*) # darwin 5.x on
6992      # if running on 10.5 or later, the deployment target defaults
6993      # to the OS version, if on x86, and 10.4, the deployment
6994      # target defaults to 10.4. Don't you love it?
6995      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6996	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6997	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6998	10.[012]*)
6999	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7000	10.*)
7001	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7002      esac
7003    ;;
7004  esac
7005    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7006      _lt_dar_single_mod='$single_module'
7007    fi
7008    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7009      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7010    else
7011      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7012    fi
7013    if test "$DSYMUTIL" != ":"; then
7014      _lt_dsymutil='~$DSYMUTIL $lib || :'
7015    else
7016      _lt_dsymutil=
7017    fi
7018    ;;
7019  esac
7020
7021
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7023$as_echo_n "checking for ANSI C header files... " >&6; }
7024if test "${ac_cv_header_stdc+set}" = set; then :
7025  $as_echo_n "(cached) " >&6
7026else
7027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028/* end confdefs.h.  */
7029#include <stdlib.h>
7030#include <stdarg.h>
7031#include <string.h>
7032#include <float.h>
7033
7034int
7035main ()
7036{
7037
7038  ;
7039  return 0;
7040}
7041_ACEOF
7042if ac_fn_c_try_compile "$LINENO"; then :
7043  ac_cv_header_stdc=yes
7044else
7045  ac_cv_header_stdc=no
7046fi
7047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048
7049if test $ac_cv_header_stdc = yes; then
7050  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052/* end confdefs.h.  */
7053#include <string.h>
7054
7055_ACEOF
7056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7057  $EGREP "memchr" >/dev/null 2>&1; then :
7058
7059else
7060  ac_cv_header_stdc=no
7061fi
7062rm -f conftest*
7063
7064fi
7065
7066if test $ac_cv_header_stdc = yes; then
7067  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070#include <stdlib.h>
7071
7072_ACEOF
7073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7074  $EGREP "free" >/dev/null 2>&1; then :
7075
7076else
7077  ac_cv_header_stdc=no
7078fi
7079rm -f conftest*
7080
7081fi
7082
7083if test $ac_cv_header_stdc = yes; then
7084  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7085  if test "$cross_compiling" = yes; then :
7086  :
7087else
7088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089/* end confdefs.h.  */
7090#include <ctype.h>
7091#include <stdlib.h>
7092#if ((' ' & 0x0FF) == 0x020)
7093# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7094# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7095#else
7096# define ISLOWER(c) \
7097		   (('a' <= (c) && (c) <= 'i') \
7098		     || ('j' <= (c) && (c) <= 'r') \
7099		     || ('s' <= (c) && (c) <= 'z'))
7100# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7101#endif
7102
7103#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7104int
7105main ()
7106{
7107  int i;
7108  for (i = 0; i < 256; i++)
7109    if (XOR (islower (i), ISLOWER (i))
7110	|| toupper (i) != TOUPPER (i))
7111      return 2;
7112  return 0;
7113}
7114_ACEOF
7115if ac_fn_c_try_run "$LINENO"; then :
7116
7117else
7118  ac_cv_header_stdc=no
7119fi
7120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7121  conftest.$ac_objext conftest.beam conftest.$ac_ext
7122fi
7123
7124fi
7125fi
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7127$as_echo "$ac_cv_header_stdc" >&6; }
7128if test $ac_cv_header_stdc = yes; then
7129
7130$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7131
7132fi
7133
7134# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7135for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7136		  inttypes.h stdint.h unistd.h
7137do :
7138  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7140"
7141eval as_val=\$$as_ac_Header
7142   if test "x$as_val" = x""yes; then :
7143  cat >>confdefs.h <<_ACEOF
7144#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7145_ACEOF
7146
7147fi
7148
7149done
7150
7151
7152for ac_header in dlfcn.h
7153do :
7154  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7155"
7156if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7157  cat >>confdefs.h <<_ACEOF
7158#define HAVE_DLFCN_H 1
7159_ACEOF
7160
7161fi
7162
7163done
7164
7165
7166
7167# Set options
7168
7169
7170
7171        enable_dlopen=no
7172
7173
7174  enable_win32_dll=no
7175
7176
7177            # Check whether --enable-shared was given.
7178if test "${enable_shared+set}" = set; then :
7179  enableval=$enable_shared; p=${PACKAGE-default}
7180    case $enableval in
7181    yes) enable_shared=yes ;;
7182    no) enable_shared=no ;;
7183    *)
7184      enable_shared=no
7185      # Look at the argument we got.  We use all the common list separators.
7186      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7187      for pkg in $enableval; do
7188	IFS="$lt_save_ifs"
7189	if test "X$pkg" = "X$p"; then
7190	  enable_shared=yes
7191	fi
7192      done
7193      IFS="$lt_save_ifs"
7194      ;;
7195    esac
7196else
7197  enable_shared=yes
7198fi
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208  # Check whether --enable-static was given.
7209if test "${enable_static+set}" = set; then :
7210  enableval=$enable_static; p=${PACKAGE-default}
7211    case $enableval in
7212    yes) enable_static=yes ;;
7213    no) enable_static=no ;;
7214    *)
7215     enable_static=no
7216      # Look at the argument we got.  We use all the common list separators.
7217      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7218      for pkg in $enableval; do
7219	IFS="$lt_save_ifs"
7220	if test "X$pkg" = "X$p"; then
7221	  enable_static=yes
7222	fi
7223      done
7224      IFS="$lt_save_ifs"
7225      ;;
7226    esac
7227else
7228  enable_static=yes
7229fi
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240# Check whether --with-pic was given.
7241if test "${with_pic+set}" = set; then :
7242  withval=$with_pic; pic_mode="$withval"
7243else
7244  pic_mode=default
7245fi
7246
7247
7248test -z "$pic_mode" && pic_mode=default
7249
7250
7251
7252
7253
7254
7255
7256  # Check whether --enable-fast-install was given.
7257if test "${enable_fast_install+set}" = set; then :
7258  enableval=$enable_fast_install; p=${PACKAGE-default}
7259    case $enableval in
7260    yes) enable_fast_install=yes ;;
7261    no) enable_fast_install=no ;;
7262    *)
7263      enable_fast_install=no
7264      # Look at the argument we got.  We use all the common list separators.
7265      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7266      for pkg in $enableval; do
7267	IFS="$lt_save_ifs"
7268	if test "X$pkg" = "X$p"; then
7269	  enable_fast_install=yes
7270	fi
7271      done
7272      IFS="$lt_save_ifs"
7273      ;;
7274    esac
7275else
7276  enable_fast_install=yes
7277fi
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289# This can be used to rebuild libtool when needed
7290LIBTOOL_DEPS="$ltmain"
7291
7292# Always use our own libtool.
7293LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319test -z "$LN_S" && LN_S="ln -s"
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334if test -n "${ZSH_VERSION+set}" ; then
7335   setopt NO_GLOB_SUBST
7336fi
7337
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7339$as_echo_n "checking for objdir... " >&6; }
7340if test "${lt_cv_objdir+set}" = set; then :
7341  $as_echo_n "(cached) " >&6
7342else
7343  rm -f .libs 2>/dev/null
7344mkdir .libs 2>/dev/null
7345if test -d .libs; then
7346  lt_cv_objdir=.libs
7347else
7348  # MS-DOS does not allow filenames that begin with a dot.
7349  lt_cv_objdir=_libs
7350fi
7351rmdir .libs 2>/dev/null
7352fi
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7354$as_echo "$lt_cv_objdir" >&6; }
7355objdir=$lt_cv_objdir
7356
7357
7358
7359
7360
7361cat >>confdefs.h <<_ACEOF
7362#define LT_OBJDIR "$lt_cv_objdir/"
7363_ACEOF
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381case $host_os in
7382aix3*)
7383  # AIX sometimes has problems with the GCC collect2 program.  For some
7384  # reason, if we set the COLLECT_NAMES environment variable, the problems
7385  # vanish in a puff of smoke.
7386  if test "X${COLLECT_NAMES+set}" != Xset; then
7387    COLLECT_NAMES=
7388    export COLLECT_NAMES
7389  fi
7390  ;;
7391esac
7392
7393# Sed substitution that helps us do robust quoting.  It backslashifies
7394# metacharacters that are still active within double-quoted strings.
7395sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7396
7397# Same as above, but do not quote variable references.
7398double_quote_subst='s/\(["`\\]\)/\\\1/g'
7399
7400# Sed substitution to delay expansion of an escaped shell variable in a
7401# double_quote_subst'ed string.
7402delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7403
7404# Sed substitution to delay expansion of an escaped single quote.
7405delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7406
7407# Sed substitution to avoid accidental globbing in evaled expressions
7408no_glob_subst='s/\*/\\\*/g'
7409
7410# Global variables:
7411ofile=libtool
7412can_build_shared=yes
7413
7414# All known linkers require a `.a' archive for static linking (except MSVC,
7415# which needs '.lib').
7416libext=a
7417
7418with_gnu_ld="$lt_cv_prog_gnu_ld"
7419
7420old_CC="$CC"
7421old_CFLAGS="$CFLAGS"
7422
7423# Set sane defaults for various variables
7424test -z "$CC" && CC=cc
7425test -z "$LTCC" && LTCC=$CC
7426test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7427test -z "$LD" && LD=ld
7428test -z "$ac_objext" && ac_objext=o
7429
7430for cc_temp in $compiler""; do
7431  case $cc_temp in
7432    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7433    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7434    \-*) ;;
7435    *) break;;
7436  esac
7437done
7438cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7439
7440
7441# Only perform the check for file, if the check method requires it
7442test -z "$MAGIC_CMD" && MAGIC_CMD=file
7443case $deplibs_check_method in
7444file_magic*)
7445  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7446    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7447$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7448if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  case $MAGIC_CMD in
7452[\\/*] |  ?:[\\/]*)
7453  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7454  ;;
7455*)
7456  lt_save_MAGIC_CMD="$MAGIC_CMD"
7457  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7458  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7459  for ac_dir in $ac_dummy; do
7460    IFS="$lt_save_ifs"
7461    test -z "$ac_dir" && ac_dir=.
7462    if test -f $ac_dir/${ac_tool_prefix}file; then
7463      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7464      if test -n "$file_magic_test_file"; then
7465	case $deplibs_check_method in
7466	"file_magic "*)
7467	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7468	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7469	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7470	    $EGREP "$file_magic_regex" > /dev/null; then
7471	    :
7472	  else
7473	    cat <<_LT_EOF 1>&2
7474
7475*** Warning: the command libtool uses to detect shared libraries,
7476*** $file_magic_cmd, produces output that libtool cannot recognize.
7477*** The result is that libtool may fail to recognize shared libraries
7478*** as such.  This will affect the creation of libtool libraries that
7479*** depend on shared libraries, but programs linked with such libtool
7480*** libraries will work regardless of this problem.  Nevertheless, you
7481*** may want to report the problem to your system manager and/or to
7482*** bug-libtool@gnu.org
7483
7484_LT_EOF
7485	  fi ;;
7486	esac
7487      fi
7488      break
7489    fi
7490  done
7491  IFS="$lt_save_ifs"
7492  MAGIC_CMD="$lt_save_MAGIC_CMD"
7493  ;;
7494esac
7495fi
7496
7497MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7498if test -n "$MAGIC_CMD"; then
7499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7500$as_echo "$MAGIC_CMD" >&6; }
7501else
7502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503$as_echo "no" >&6; }
7504fi
7505
7506
7507
7508
7509
7510if test -z "$lt_cv_path_MAGIC_CMD"; then
7511  if test -n "$ac_tool_prefix"; then
7512    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7513$as_echo_n "checking for file... " >&6; }
7514if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517  case $MAGIC_CMD in
7518[\\/*] |  ?:[\\/]*)
7519  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7520  ;;
7521*)
7522  lt_save_MAGIC_CMD="$MAGIC_CMD"
7523  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7524  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7525  for ac_dir in $ac_dummy; do
7526    IFS="$lt_save_ifs"
7527    test -z "$ac_dir" && ac_dir=.
7528    if test -f $ac_dir/file; then
7529      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7530      if test -n "$file_magic_test_file"; then
7531	case $deplibs_check_method in
7532	"file_magic "*)
7533	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7534	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7535	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7536	    $EGREP "$file_magic_regex" > /dev/null; then
7537	    :
7538	  else
7539	    cat <<_LT_EOF 1>&2
7540
7541*** Warning: the command libtool uses to detect shared libraries,
7542*** $file_magic_cmd, produces output that libtool cannot recognize.
7543*** The result is that libtool may fail to recognize shared libraries
7544*** as such.  This will affect the creation of libtool libraries that
7545*** depend on shared libraries, but programs linked with such libtool
7546*** libraries will work regardless of this problem.  Nevertheless, you
7547*** may want to report the problem to your system manager and/or to
7548*** bug-libtool@gnu.org
7549
7550_LT_EOF
7551	  fi ;;
7552	esac
7553      fi
7554      break
7555    fi
7556  done
7557  IFS="$lt_save_ifs"
7558  MAGIC_CMD="$lt_save_MAGIC_CMD"
7559  ;;
7560esac
7561fi
7562
7563MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7564if test -n "$MAGIC_CMD"; then
7565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7566$as_echo "$MAGIC_CMD" >&6; }
7567else
7568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
7572
7573  else
7574    MAGIC_CMD=:
7575  fi
7576fi
7577
7578  fi
7579  ;;
7580esac
7581
7582# Use C for the default configuration in the libtool script
7583
7584lt_save_CC="$CC"
7585ac_ext=c
7586ac_cpp='$CPP $CPPFLAGS'
7587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7589ac_compiler_gnu=$ac_cv_c_compiler_gnu
7590
7591
7592# Source file extension for C test sources.
7593ac_ext=c
7594
7595# Object file extension for compiled C test sources.
7596objext=o
7597objext=$objext
7598
7599# Code to be used in simple compile tests
7600lt_simple_compile_test_code="int some_variable = 0;"
7601
7602# Code to be used in simple link tests
7603lt_simple_link_test_code='int main(){return(0);}'
7604
7605
7606
7607
7608
7609
7610
7611# If no C compiler was specified, use CC.
7612LTCC=${LTCC-"$CC"}
7613
7614# If no C compiler flags were specified, use CFLAGS.
7615LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7616
7617# Allow CC to be a program name with arguments.
7618compiler=$CC
7619
7620# Save the default compiler, since it gets overwritten when the other
7621# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7622compiler_DEFAULT=$CC
7623
7624# save warnings/boilerplate of simple test code
7625ac_outfile=conftest.$ac_objext
7626echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7627eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7628_lt_compiler_boilerplate=`cat conftest.err`
7629$RM conftest*
7630
7631ac_outfile=conftest.$ac_objext
7632echo "$lt_simple_link_test_code" >conftest.$ac_ext
7633eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7634_lt_linker_boilerplate=`cat conftest.err`
7635$RM -r conftest*
7636
7637
7638## CAVEAT EMPTOR:
7639## There is no encapsulation within the following macros, do not change
7640## the running order or otherwise move them around unless you know exactly
7641## what you are doing...
7642if test -n "$compiler"; then
7643
7644lt_prog_compiler_no_builtin_flag=
7645
7646if test "$GCC" = yes; then
7647  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7648
7649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7650$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7651if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7652  $as_echo_n "(cached) " >&6
7653else
7654  lt_cv_prog_compiler_rtti_exceptions=no
7655   ac_outfile=conftest.$ac_objext
7656   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7657   lt_compiler_flag="-fno-rtti -fno-exceptions"
7658   # Insert the option either (1) after the last *FLAGS variable, or
7659   # (2) before a word containing "conftest.", or (3) at the end.
7660   # Note that $ac_compile itself does not contain backslashes and begins
7661   # with a dollar sign (not a hyphen), so the echo should work correctly.
7662   # The option is referenced via a variable to avoid confusing sed.
7663   lt_compile=`echo "$ac_compile" | $SED \
7664   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7665   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7666   -e 's:$: $lt_compiler_flag:'`
7667   (eval echo "\"\$as_me:7667: $lt_compile\"" >&5)
7668   (eval "$lt_compile" 2>conftest.err)
7669   ac_status=$?
7670   cat conftest.err >&5
7671   echo "$as_me:7671: \$? = $ac_status" >&5
7672   if (exit $ac_status) && test -s "$ac_outfile"; then
7673     # The compiler can only warn and ignore the option if not recognized
7674     # So say no if there are warnings other than the usual output.
7675     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7676     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7677     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7678       lt_cv_prog_compiler_rtti_exceptions=yes
7679     fi
7680   fi
7681   $RM conftest*
7682
7683fi
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7685$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7686
7687if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7688    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7689else
7690    :
7691fi
7692
7693fi
7694
7695
7696
7697
7698
7699
7700  lt_prog_compiler_wl=
7701lt_prog_compiler_pic=
7702lt_prog_compiler_static=
7703
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7705$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7706
7707  if test "$GCC" = yes; then
7708    lt_prog_compiler_wl='-Wl,'
7709    lt_prog_compiler_static='-static'
7710
7711    case $host_os in
7712      aix*)
7713      # All AIX code is PIC.
7714      if test "$host_cpu" = ia64; then
7715	# AIX 5 now supports IA64 processor
7716	lt_prog_compiler_static='-Bstatic'
7717      fi
7718      ;;
7719
7720    amigaos*)
7721      case $host_cpu in
7722      powerpc)
7723            # see comment about AmigaOS4 .so support
7724            lt_prog_compiler_pic='-fPIC'
7725        ;;
7726      m68k)
7727            # FIXME: we need at least 68020 code to build shared libraries, but
7728            # adding the `-m68020' flag to GCC prevents building anything better,
7729            # like `-m68040'.
7730            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7731        ;;
7732      esac
7733      ;;
7734
7735    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7736      # PIC is the default for these OSes.
7737      ;;
7738
7739    mingw* | cygwin* | pw32* | os2*)
7740      # This hack is so that the source file can tell whether it is being
7741      # built for inclusion in a dll (and should export symbols for example).
7742      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7743      # (--disable-auto-import) libraries
7744      lt_prog_compiler_pic='-DDLL_EXPORT'
7745      ;;
7746
7747    darwin* | rhapsody*)
7748      # PIC is the default on this platform
7749      # Common symbols not allowed in MH_DYLIB files
7750      lt_prog_compiler_pic='-fno-common'
7751      ;;
7752
7753    hpux*)
7754      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7755      # not for PA HP-UX.
7756      case $host_cpu in
7757      hppa*64*|ia64*)
7758	# +Z the default
7759	;;
7760      *)
7761	lt_prog_compiler_pic='-fPIC'
7762	;;
7763      esac
7764      ;;
7765
7766    interix[3-9]*)
7767      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7768      # Instead, we relocate shared libraries at runtime.
7769      ;;
7770
7771    msdosdjgpp*)
7772      # Just because we use GCC doesn't mean we suddenly get shared libraries
7773      # on systems that don't support them.
7774      lt_prog_compiler_can_build_shared=no
7775      enable_shared=no
7776      ;;
7777
7778    *nto* | *qnx*)
7779      # QNX uses GNU C++, but need to define -shared option too, otherwise
7780      # it will coredump.
7781      lt_prog_compiler_pic='-fPIC -shared'
7782      ;;
7783
7784    sysv4*MP*)
7785      if test -d /usr/nec; then
7786	lt_prog_compiler_pic=-Kconform_pic
7787      fi
7788      ;;
7789
7790    *)
7791      lt_prog_compiler_pic='-fPIC'
7792      ;;
7793    esac
7794  else
7795    # PORTME Check for flag to pass linker flags through the system compiler.
7796    case $host_os in
7797    aix*)
7798      lt_prog_compiler_wl='-Wl,'
7799      if test "$host_cpu" = ia64; then
7800	# AIX 5 now supports IA64 processor
7801	lt_prog_compiler_static='-Bstatic'
7802      else
7803	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7804      fi
7805      ;;
7806
7807    mingw* | cygwin* | pw32* | os2*)
7808      # This hack is so that the source file can tell whether it is being
7809      # built for inclusion in a dll (and should export symbols for example).
7810      lt_prog_compiler_pic='-DDLL_EXPORT'
7811      ;;
7812
7813    hpux9* | hpux10* | hpux11*)
7814      lt_prog_compiler_wl='-Wl,'
7815      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7816      # not for PA HP-UX.
7817      case $host_cpu in
7818      hppa*64*|ia64*)
7819	# +Z the default
7820	;;
7821      *)
7822	lt_prog_compiler_pic='+Z'
7823	;;
7824      esac
7825      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7826      lt_prog_compiler_static='${wl}-a ${wl}archive'
7827      ;;
7828
7829    irix5* | irix6* | nonstopux*)
7830      lt_prog_compiler_wl='-Wl,'
7831      # PIC (with -KPIC) is the default.
7832      lt_prog_compiler_static='-non_shared'
7833      ;;
7834
7835    linux* | k*bsd*-gnu)
7836      case $cc_basename in
7837      icc* | ecc* | ifort*)
7838	lt_prog_compiler_wl='-Wl,'
7839	lt_prog_compiler_pic='-KPIC'
7840	lt_prog_compiler_static='-static'
7841        ;;
7842      pgcc* | pgf77* | pgf90* | pgf95*)
7843        # Portland Group compilers (*not* the Pentium gcc compiler,
7844	# which looks to be a dead project)
7845	lt_prog_compiler_wl='-Wl,'
7846	lt_prog_compiler_pic='-fpic'
7847	lt_prog_compiler_static='-Bstatic'
7848        ;;
7849      ccc*)
7850        lt_prog_compiler_wl='-Wl,'
7851        # All Alpha code is PIC.
7852        lt_prog_compiler_static='-non_shared'
7853        ;;
7854      xl*)
7855	# IBM XL C 8.0/Fortran 10.1 on PPC
7856	lt_prog_compiler_wl='-Wl,'
7857	lt_prog_compiler_pic='-qpic'
7858	lt_prog_compiler_static='-qstaticlink'
7859	;;
7860      *)
7861	case `$CC -V 2>&1 | sed 5q` in
7862	*Sun\ C*)
7863	  # Sun C 5.9
7864	  lt_prog_compiler_pic='-KPIC'
7865	  lt_prog_compiler_static='-Bstatic'
7866	  lt_prog_compiler_wl='-Wl,'
7867	  ;;
7868	*Sun\ F*)
7869	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7870	  lt_prog_compiler_pic='-KPIC'
7871	  lt_prog_compiler_static='-Bstatic'
7872	  lt_prog_compiler_wl=''
7873	  ;;
7874	esac
7875	;;
7876      esac
7877      ;;
7878
7879    newsos6)
7880      lt_prog_compiler_pic='-KPIC'
7881      lt_prog_compiler_static='-Bstatic'
7882      ;;
7883
7884    *nto* | *qnx*)
7885      # QNX uses GNU C++, but need to define -shared option too, otherwise
7886      # it will coredump.
7887      lt_prog_compiler_pic='-fPIC -shared'
7888      ;;
7889
7890    osf3* | osf4* | osf5*)
7891      lt_prog_compiler_wl='-Wl,'
7892      # All OSF/1 code is PIC.
7893      lt_prog_compiler_static='-non_shared'
7894      ;;
7895
7896    rdos*)
7897      lt_prog_compiler_static='-non_shared'
7898      ;;
7899
7900    solaris*)
7901      lt_prog_compiler_pic='-KPIC'
7902      lt_prog_compiler_static='-Bstatic'
7903      case $cc_basename in
7904      f77* | f90* | f95*)
7905	lt_prog_compiler_wl='-Qoption ld ';;
7906      *)
7907	lt_prog_compiler_wl='-Wl,';;
7908      esac
7909      ;;
7910
7911    sunos4*)
7912      lt_prog_compiler_wl='-Qoption ld '
7913      lt_prog_compiler_pic='-PIC'
7914      lt_prog_compiler_static='-Bstatic'
7915      ;;
7916
7917    sysv4 | sysv4.2uw2* | sysv4.3*)
7918      lt_prog_compiler_wl='-Wl,'
7919      lt_prog_compiler_pic='-KPIC'
7920      lt_prog_compiler_static='-Bstatic'
7921      ;;
7922
7923    sysv4*MP*)
7924      if test -d /usr/nec ;then
7925	lt_prog_compiler_pic='-Kconform_pic'
7926	lt_prog_compiler_static='-Bstatic'
7927      fi
7928      ;;
7929
7930    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7931      lt_prog_compiler_wl='-Wl,'
7932      lt_prog_compiler_pic='-KPIC'
7933      lt_prog_compiler_static='-Bstatic'
7934      ;;
7935
7936    unicos*)
7937      lt_prog_compiler_wl='-Wl,'
7938      lt_prog_compiler_can_build_shared=no
7939      ;;
7940
7941    uts4*)
7942      lt_prog_compiler_pic='-pic'
7943      lt_prog_compiler_static='-Bstatic'
7944      ;;
7945
7946    *)
7947      lt_prog_compiler_can_build_shared=no
7948      ;;
7949    esac
7950  fi
7951
7952case $host_os in
7953  # For platforms which do not support PIC, -DPIC is meaningless:
7954  *djgpp*)
7955    lt_prog_compiler_pic=
7956    ;;
7957  *)
7958    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7959    ;;
7960esac
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7962$as_echo "$lt_prog_compiler_pic" >&6; }
7963
7964
7965
7966
7967
7968
7969#
7970# Check to make sure the PIC flag actually works.
7971#
7972if test -n "$lt_prog_compiler_pic"; then
7973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7974$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7975if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7976  $as_echo_n "(cached) " >&6
7977else
7978  lt_cv_prog_compiler_pic_works=no
7979   ac_outfile=conftest.$ac_objext
7980   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7981   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7982   # Insert the option either (1) after the last *FLAGS variable, or
7983   # (2) before a word containing "conftest.", or (3) at the end.
7984   # Note that $ac_compile itself does not contain backslashes and begins
7985   # with a dollar sign (not a hyphen), so the echo should work correctly.
7986   # The option is referenced via a variable to avoid confusing sed.
7987   lt_compile=`echo "$ac_compile" | $SED \
7988   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7989   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7990   -e 's:$: $lt_compiler_flag:'`
7991   (eval echo "\"\$as_me:7991: $lt_compile\"" >&5)
7992   (eval "$lt_compile" 2>conftest.err)
7993   ac_status=$?
7994   cat conftest.err >&5
7995   echo "$as_me:7995: \$? = $ac_status" >&5
7996   if (exit $ac_status) && test -s "$ac_outfile"; then
7997     # The compiler can only warn and ignore the option if not recognized
7998     # So say no if there are warnings other than the usual output.
7999     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8000     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8001     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8002       lt_cv_prog_compiler_pic_works=yes
8003     fi
8004   fi
8005   $RM conftest*
8006
8007fi
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8009$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8010
8011if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8012    case $lt_prog_compiler_pic in
8013     "" | " "*) ;;
8014     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8015     esac
8016else
8017    lt_prog_compiler_pic=
8018     lt_prog_compiler_can_build_shared=no
8019fi
8020
8021fi
8022
8023
8024
8025
8026
8027
8028#
8029# Check to make sure the static flag actually works.
8030#
8031wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8033$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8034if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8035  $as_echo_n "(cached) " >&6
8036else
8037  lt_cv_prog_compiler_static_works=no
8038   save_LDFLAGS="$LDFLAGS"
8039   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8040   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8041   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8042     # The linker can only warn and ignore the option if not recognized
8043     # So say no if there are warnings
8044     if test -s conftest.err; then
8045       # Append any errors to the config.log.
8046       cat conftest.err 1>&5
8047       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8048       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8049       if diff conftest.exp conftest.er2 >/dev/null; then
8050         lt_cv_prog_compiler_static_works=yes
8051       fi
8052     else
8053       lt_cv_prog_compiler_static_works=yes
8054     fi
8055   fi
8056   $RM -r conftest*
8057   LDFLAGS="$save_LDFLAGS"
8058
8059fi
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8061$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8062
8063if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8064    :
8065else
8066    lt_prog_compiler_static=
8067fi
8068
8069
8070
8071
8072
8073
8074
8075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8076$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8077if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8078  $as_echo_n "(cached) " >&6
8079else
8080  lt_cv_prog_compiler_c_o=no
8081   $RM -r conftest 2>/dev/null
8082   mkdir conftest
8083   cd conftest
8084   mkdir out
8085   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8086
8087   lt_compiler_flag="-o out/conftest2.$ac_objext"
8088   # Insert the option either (1) after the last *FLAGS variable, or
8089   # (2) before a word containing "conftest.", or (3) at the end.
8090   # Note that $ac_compile itself does not contain backslashes and begins
8091   # with a dollar sign (not a hyphen), so the echo should work correctly.
8092   lt_compile=`echo "$ac_compile" | $SED \
8093   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8094   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8095   -e 's:$: $lt_compiler_flag:'`
8096   (eval echo "\"\$as_me:8096: $lt_compile\"" >&5)
8097   (eval "$lt_compile" 2>out/conftest.err)
8098   ac_status=$?
8099   cat out/conftest.err >&5
8100   echo "$as_me:8100: \$? = $ac_status" >&5
8101   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8102   then
8103     # The compiler can only warn and ignore the option if not recognized
8104     # So say no if there are warnings
8105     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8106     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8107     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8108       lt_cv_prog_compiler_c_o=yes
8109     fi
8110   fi
8111   chmod u+w . 2>&5
8112   $RM conftest*
8113   # SGI C++ compiler will create directory out/ii_files/ for
8114   # template instantiation
8115   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8116   $RM out/* && rmdir out
8117   cd ..
8118   $RM -r conftest
8119   $RM conftest*
8120
8121fi
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8123$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8124
8125
8126
8127
8128
8129
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8131$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8132if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  lt_cv_prog_compiler_c_o=no
8136   $RM -r conftest 2>/dev/null
8137   mkdir conftest
8138   cd conftest
8139   mkdir out
8140   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8141
8142   lt_compiler_flag="-o out/conftest2.$ac_objext"
8143   # Insert the option either (1) after the last *FLAGS variable, or
8144   # (2) before a word containing "conftest.", or (3) at the end.
8145   # Note that $ac_compile itself does not contain backslashes and begins
8146   # with a dollar sign (not a hyphen), so the echo should work correctly.
8147   lt_compile=`echo "$ac_compile" | $SED \
8148   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8149   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8150   -e 's:$: $lt_compiler_flag:'`
8151   (eval echo "\"\$as_me:8151: $lt_compile\"" >&5)
8152   (eval "$lt_compile" 2>out/conftest.err)
8153   ac_status=$?
8154   cat out/conftest.err >&5
8155   echo "$as_me:8155: \$? = $ac_status" >&5
8156   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8157   then
8158     # The compiler can only warn and ignore the option if not recognized
8159     # So say no if there are warnings
8160     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8161     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8162     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8163       lt_cv_prog_compiler_c_o=yes
8164     fi
8165   fi
8166   chmod u+w . 2>&5
8167   $RM conftest*
8168   # SGI C++ compiler will create directory out/ii_files/ for
8169   # template instantiation
8170   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8171   $RM out/* && rmdir out
8172   cd ..
8173   $RM -r conftest
8174   $RM conftest*
8175
8176fi
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8178$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8179
8180
8181
8182
8183hard_links="nottested"
8184if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8185  # do not overwrite the value of need_locks provided by the user
8186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8187$as_echo_n "checking if we can lock with hard links... " >&6; }
8188  hard_links=yes
8189  $RM conftest*
8190  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8191  touch conftest.a
8192  ln conftest.a conftest.b 2>&5 || hard_links=no
8193  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8195$as_echo "$hard_links" >&6; }
8196  if test "$hard_links" = no; then
8197    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8198$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8199    need_locks=warn
8200  fi
8201else
8202  need_locks=no
8203fi
8204
8205
8206
8207
8208
8209
8210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8211$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8212
8213  runpath_var=
8214  allow_undefined_flag=
8215  always_export_symbols=no
8216  archive_cmds=
8217  archive_expsym_cmds=
8218  compiler_needs_object=no
8219  enable_shared_with_static_runtimes=no
8220  export_dynamic_flag_spec=
8221  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8222  hardcode_automatic=no
8223  hardcode_direct=no
8224  hardcode_direct_absolute=no
8225  hardcode_libdir_flag_spec=
8226  hardcode_libdir_flag_spec_ld=
8227  hardcode_libdir_separator=
8228  hardcode_minus_L=no
8229  hardcode_shlibpath_var=unsupported
8230  inherit_rpath=no
8231  link_all_deplibs=unknown
8232  module_cmds=
8233  module_expsym_cmds=
8234  old_archive_from_new_cmds=
8235  old_archive_from_expsyms_cmds=
8236  thread_safe_flag_spec=
8237  whole_archive_flag_spec=
8238  # include_expsyms should be a list of space-separated symbols to be *always*
8239  # included in the symbol list
8240  include_expsyms=
8241  # exclude_expsyms can be an extended regexp of symbols to exclude
8242  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8243  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8244  # as well as any symbol that contains `d'.
8245  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8246  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8247  # platforms (ab)use it in PIC code, but their linkers get confused if
8248  # the symbol is explicitly referenced.  Since portable code cannot
8249  # rely on this symbol name, it's probably fine to never include it in
8250  # preloaded symbol tables.
8251  # Exclude shared library initialization/finalization symbols.
8252  extract_expsyms_cmds=
8253
8254  case $host_os in
8255  cygwin* | mingw* | pw32*)
8256    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8257    # When not using gcc, we currently assume that we are using
8258    # Microsoft Visual C++.
8259    if test "$GCC" != yes; then
8260      with_gnu_ld=no
8261    fi
8262    ;;
8263  interix*)
8264    # we just hope/assume this is gcc and not c89 (= MSVC++)
8265    with_gnu_ld=yes
8266    ;;
8267  openbsd*)
8268    with_gnu_ld=no
8269    ;;
8270  esac
8271
8272  ld_shlibs=yes
8273  if test "$with_gnu_ld" = yes; then
8274    # If archive_cmds runs LD, not CC, wlarc should be empty
8275    wlarc='${wl}'
8276
8277    # Set some defaults for GNU ld with shared library support. These
8278    # are reset later if shared libraries are not supported. Putting them
8279    # here allows them to be overridden if necessary.
8280    runpath_var=LD_RUN_PATH
8281    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8282    export_dynamic_flag_spec='${wl}--export-dynamic'
8283    # ancient GNU ld didn't support --whole-archive et. al.
8284    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8285      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8286    else
8287      whole_archive_flag_spec=
8288    fi
8289    supports_anon_versioning=no
8290    case `$LD -v 2>&1` in
8291      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8292      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8293      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8294      *\ 2.11.*) ;; # other 2.11 versions
8295      *) supports_anon_versioning=yes ;;
8296    esac
8297
8298    # See if GNU ld supports shared libraries.
8299    case $host_os in
8300    aix[3-9]*)
8301      # On AIX/PPC, the GNU linker is very broken
8302      if test "$host_cpu" != ia64; then
8303	ld_shlibs=no
8304	cat <<_LT_EOF 1>&2
8305
8306*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8307*** to be unable to reliably create shared libraries on AIX.
8308*** Therefore, libtool is disabling shared libraries support.  If you
8309*** really care for shared libraries, you may want to modify your PATH
8310*** so that a non-GNU linker is found, and then restart.
8311
8312_LT_EOF
8313      fi
8314      ;;
8315
8316    amigaos*)
8317      case $host_cpu in
8318      powerpc)
8319            # see comment about AmigaOS4 .so support
8320            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8321            archive_expsym_cmds=''
8322        ;;
8323      m68k)
8324            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)'
8325            hardcode_libdir_flag_spec='-L$libdir'
8326            hardcode_minus_L=yes
8327        ;;
8328      esac
8329      ;;
8330
8331    beos*)
8332      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8333	allow_undefined_flag=unsupported
8334	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8335	# support --undefined.  This deserves some investigation.  FIXME
8336	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8337      else
8338	ld_shlibs=no
8339      fi
8340      ;;
8341
8342    cygwin* | mingw* | pw32*)
8343      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8344      # as there is no search path for DLLs.
8345      hardcode_libdir_flag_spec='-L$libdir'
8346      allow_undefined_flag=unsupported
8347      always_export_symbols=no
8348      enable_shared_with_static_runtimes=yes
8349      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8350
8351      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8352        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8353	# If the export-symbols file already is a .def file (1st line
8354	# is EXPORTS), use it as is; otherwise, prepend...
8355	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8356	  cp $export_symbols $output_objdir/$soname.def;
8357	else
8358	  echo EXPORTS > $output_objdir/$soname.def;
8359	  cat $export_symbols >> $output_objdir/$soname.def;
8360	fi~
8361	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8362      else
8363	ld_shlibs=no
8364      fi
8365      ;;
8366
8367    interix[3-9]*)
8368      hardcode_direct=no
8369      hardcode_shlibpath_var=no
8370      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8371      export_dynamic_flag_spec='${wl}-E'
8372      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8373      # Instead, shared libraries are loaded at an image base (0x10000000 by
8374      # default) and relocated if they conflict, which is a slow very memory
8375      # consuming and fragmenting process.  To avoid this, we pick a random,
8376      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8377      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8378      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8379      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'
8380      ;;
8381
8382    gnu* | linux* | tpf* | k*bsd*-gnu)
8383      tmp_diet=no
8384      if test "$host_os" = linux-dietlibc; then
8385	case $cc_basename in
8386	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8387	esac
8388      fi
8389      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8390	 && test "$tmp_diet" = no
8391      then
8392	tmp_addflag=
8393	tmp_sharedflag='-shared'
8394	case $cc_basename,$host_cpu in
8395        pgcc*)				# Portland Group C compiler
8396	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8397	  tmp_addflag=' $pic_flag'
8398	  ;;
8399	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8400	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8401	  tmp_addflag=' $pic_flag -Mnomain' ;;
8402	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8403	  tmp_addflag=' -i_dynamic' ;;
8404	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8405	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8406	ifc* | ifort*)			# Intel Fortran compiler
8407	  tmp_addflag=' -nofor_main' ;;
8408	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8409	  tmp_sharedflag='-qmkshrobj'
8410	  tmp_addflag= ;;
8411	esac
8412	case `$CC -V 2>&1 | sed 5q` in
8413	*Sun\ C*)			# Sun C 5.9
8414	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8415	  compiler_needs_object=yes
8416	  tmp_sharedflag='-G' ;;
8417	*Sun\ F*)			# Sun Fortran 8.3
8418	  tmp_sharedflag='-G' ;;
8419	esac
8420	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421
8422        if test "x$supports_anon_versioning" = xyes; then
8423          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8424	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8425	    echo "local: *; };" >> $output_objdir/$libname.ver~
8426	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8427        fi
8428
8429	case $cc_basename in
8430	xlf*)
8431	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8432	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8433	  hardcode_libdir_flag_spec=
8434	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8435	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8436	  if test "x$supports_anon_versioning" = xyes; then
8437	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8438	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8439	      echo "local: *; };" >> $output_objdir/$libname.ver~
8440	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8441	  fi
8442	  ;;
8443	esac
8444      else
8445        ld_shlibs=no
8446      fi
8447      ;;
8448
8449    netbsd*)
8450      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8451	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8452	wlarc=
8453      else
8454	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8455	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8456      fi
8457      ;;
8458
8459    solaris*)
8460      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8461	ld_shlibs=no
8462	cat <<_LT_EOF 1>&2
8463
8464*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8465*** create shared libraries on Solaris systems.  Therefore, libtool
8466*** is disabling shared libraries support.  We urge you to upgrade GNU
8467*** binutils to release 2.9.1 or newer.  Another option is to modify
8468*** your PATH or compiler configuration so that the native linker is
8469*** used, and then restart.
8470
8471_LT_EOF
8472      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8473	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8474	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8475      else
8476	ld_shlibs=no
8477      fi
8478      ;;
8479
8480    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8481      case `$LD -v 2>&1` in
8482        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8483	ld_shlibs=no
8484	cat <<_LT_EOF 1>&2
8485
8486*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8487*** reliably create shared libraries on SCO systems.  Therefore, libtool
8488*** is disabling shared libraries support.  We urge you to upgrade GNU
8489*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8490*** your PATH or compiler configuration so that the native linker is
8491*** used, and then restart.
8492
8493_LT_EOF
8494	;;
8495	*)
8496	  # For security reasons, it is highly recommended that you always
8497	  # use absolute paths for naming shared libraries, and exclude the
8498	  # DT_RUNPATH tag from executables and libraries.  But doing so
8499	  # requires that you compile everything twice, which is a pain.
8500	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8501	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8502	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8503	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8504	  else
8505	    ld_shlibs=no
8506	  fi
8507	;;
8508      esac
8509      ;;
8510
8511    sunos4*)
8512      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8513      wlarc=
8514      hardcode_direct=yes
8515      hardcode_shlibpath_var=no
8516      ;;
8517
8518    *)
8519      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8520	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8521	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8522      else
8523	ld_shlibs=no
8524      fi
8525      ;;
8526    esac
8527
8528    if test "$ld_shlibs" = no; then
8529      runpath_var=
8530      hardcode_libdir_flag_spec=
8531      export_dynamic_flag_spec=
8532      whole_archive_flag_spec=
8533    fi
8534  else
8535    # PORTME fill in a description of your system's linker (not GNU ld)
8536    case $host_os in
8537    aix3*)
8538      allow_undefined_flag=unsupported
8539      always_export_symbols=yes
8540      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'
8541      # Note: this linker hardcodes the directories in LIBPATH if there
8542      # are no directories specified by -L.
8543      hardcode_minus_L=yes
8544      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8545	# Neither direct hardcoding nor static linking is supported with a
8546	# broken collect2.
8547	hardcode_direct=unsupported
8548      fi
8549      ;;
8550
8551    aix[4-9]*)
8552      if test "$host_cpu" = ia64; then
8553	# On IA64, the linker does run time linking by default, so we don't
8554	# have to do anything special.
8555	aix_use_runtimelinking=no
8556	exp_sym_flag='-Bexport'
8557	no_entry_flag=""
8558      else
8559	# If we're using GNU nm, then we don't want the "-C" option.
8560	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8561	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8562	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8563	else
8564	  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'
8565	fi
8566	aix_use_runtimelinking=no
8567
8568	# Test if we are trying to use run time linking or normal
8569	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8570	# need to do runtime linking.
8571	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8572	  for ld_flag in $LDFLAGS; do
8573	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8574	    aix_use_runtimelinking=yes
8575	    break
8576	  fi
8577	  done
8578	  ;;
8579	esac
8580
8581	exp_sym_flag='-bexport'
8582	no_entry_flag='-bnoentry'
8583      fi
8584
8585      # When large executables or shared objects are built, AIX ld can
8586      # have problems creating the table of contents.  If linking a library
8587      # or program results in "error TOC overflow" add -mminimal-toc to
8588      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8589      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8590
8591      archive_cmds=''
8592      hardcode_direct=yes
8593      hardcode_direct_absolute=yes
8594      hardcode_libdir_separator=':'
8595      link_all_deplibs=yes
8596      file_list_spec='${wl}-f,'
8597
8598      if test "$GCC" = yes; then
8599	case $host_os in aix4.[012]|aix4.[012].*)
8600	# We only want to do this on AIX 4.2 and lower, the check
8601	# below for broken collect2 doesn't work under 4.3+
8602	  collect2name=`${CC} -print-prog-name=collect2`
8603	  if test -f "$collect2name" &&
8604	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8605	  then
8606	  # We have reworked collect2
8607	  :
8608	  else
8609	  # We have old collect2
8610	  hardcode_direct=unsupported
8611	  # It fails to find uninstalled libraries when the uninstalled
8612	  # path is not listed in the libpath.  Setting hardcode_minus_L
8613	  # to unsupported forces relinking
8614	  hardcode_minus_L=yes
8615	  hardcode_libdir_flag_spec='-L$libdir'
8616	  hardcode_libdir_separator=
8617	  fi
8618	  ;;
8619	esac
8620	shared_flag='-shared'
8621	if test "$aix_use_runtimelinking" = yes; then
8622	  shared_flag="$shared_flag "'${wl}-G'
8623	fi
8624      else
8625	# not using gcc
8626	if test "$host_cpu" = ia64; then
8627	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8628	# chokes on -Wl,-G. The following line is correct:
8629	  shared_flag='-G'
8630	else
8631	  if test "$aix_use_runtimelinking" = yes; then
8632	    shared_flag='${wl}-G'
8633	  else
8634	    shared_flag='${wl}-bM:SRE'
8635	  fi
8636	fi
8637      fi
8638
8639      # It seems that -bexpall does not export symbols beginning with
8640      # underscore (_), so it is better to generate a list of symbols to export.
8641      always_export_symbols=yes
8642      if test "$aix_use_runtimelinking" = yes; then
8643	# Warning - without using the other runtime loading flags (-brtl),
8644	# -berok will link without error, but may produce a broken library.
8645	allow_undefined_flag='-berok'
8646        # Determine the default libpath from the value encoded in an
8647        # empty executable.
8648        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649/* end confdefs.h.  */
8650
8651int
8652main ()
8653{
8654
8655  ;
8656  return 0;
8657}
8658_ACEOF
8659if ac_fn_c_try_link "$LINENO"; then :
8660
8661lt_aix_libpath_sed='
8662    /Import File Strings/,/^$/ {
8663	/^0/ {
8664	    s/^0  *\(.*\)$/\1/
8665	    p
8666	}
8667    }'
8668aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8669# Check for a 64-bit object if we didn't find anything.
8670if test -z "$aix_libpath"; then
8671  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8672fi
8673fi
8674rm -f core conftest.err conftest.$ac_objext \
8675    conftest$ac_exeext conftest.$ac_ext
8676if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8677
8678        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8679        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8680      else
8681	if test "$host_cpu" = ia64; then
8682	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8683	  allow_undefined_flag="-z nodefs"
8684	  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"
8685	else
8686	 # Determine the default libpath from the value encoded in an
8687	 # empty executable.
8688	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690
8691int
8692main ()
8693{
8694
8695  ;
8696  return 0;
8697}
8698_ACEOF
8699if ac_fn_c_try_link "$LINENO"; then :
8700
8701lt_aix_libpath_sed='
8702    /Import File Strings/,/^$/ {
8703	/^0/ {
8704	    s/^0  *\(.*\)$/\1/
8705	    p
8706	}
8707    }'
8708aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8709# Check for a 64-bit object if we didn't find anything.
8710if test -z "$aix_libpath"; then
8711  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8712fi
8713fi
8714rm -f core conftest.err conftest.$ac_objext \
8715    conftest$ac_exeext conftest.$ac_ext
8716if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8717
8718	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8719	  # Warning - without using the other run time loading flags,
8720	  # -berok will link without error, but may produce a broken library.
8721	  no_undefined_flag=' ${wl}-bernotok'
8722	  allow_undefined_flag=' ${wl}-berok'
8723	  # Exported symbols can be pulled into shared objects from archives
8724	  whole_archive_flag_spec='$convenience'
8725	  archive_cmds_need_lc=yes
8726	  # This is similar to how AIX traditionally builds its shared libraries.
8727	  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'
8728	fi
8729      fi
8730      ;;
8731
8732    amigaos*)
8733      case $host_cpu in
8734      powerpc)
8735            # see comment about AmigaOS4 .so support
8736            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737            archive_expsym_cmds=''
8738        ;;
8739      m68k)
8740            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)'
8741            hardcode_libdir_flag_spec='-L$libdir'
8742            hardcode_minus_L=yes
8743        ;;
8744      esac
8745      ;;
8746
8747    bsdi[45]*)
8748      export_dynamic_flag_spec=-rdynamic
8749      ;;
8750
8751    cygwin* | mingw* | pw32*)
8752      # When not using gcc, we currently assume that we are using
8753      # Microsoft Visual C++.
8754      # hardcode_libdir_flag_spec is actually meaningless, as there is
8755      # no search path for DLLs.
8756      hardcode_libdir_flag_spec=' '
8757      allow_undefined_flag=unsupported
8758      # Tell ltmain to make .lib files, not .a files.
8759      libext=lib
8760      # Tell ltmain to make .dll files, not .so files.
8761      shrext_cmds=".dll"
8762      # FIXME: Setting linknames here is a bad hack.
8763      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8764      # The linker will automatically build a .lib file if we build a DLL.
8765      old_archive_from_new_cmds='true'
8766      # FIXME: Should let the user specify the lib program.
8767      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8768      fix_srcfile_path='`cygpath -w "$srcfile"`'
8769      enable_shared_with_static_runtimes=yes
8770      ;;
8771
8772    darwin* | rhapsody*)
8773
8774
8775  archive_cmds_need_lc=no
8776  hardcode_direct=no
8777  hardcode_automatic=yes
8778  hardcode_shlibpath_var=unsupported
8779  whole_archive_flag_spec=''
8780  link_all_deplibs=yes
8781  allow_undefined_flag="$_lt_dar_allow_undefined"
8782  if test "$GCC" = "yes"; then
8783    output_verbose_link_cmd=echo
8784    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8785    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8786    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}"
8787    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}"
8788
8789  else
8790  ld_shlibs=no
8791  fi
8792
8793      ;;
8794
8795    dgux*)
8796      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797      hardcode_libdir_flag_spec='-L$libdir'
8798      hardcode_shlibpath_var=no
8799      ;;
8800
8801    freebsd1*)
8802      ld_shlibs=no
8803      ;;
8804
8805    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8806    # support.  Future versions do this automatically, but an explicit c++rt0.o
8807    # does not break anything, and helps significantly (at the cost of a little
8808    # extra space).
8809    freebsd2.2*)
8810      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8811      hardcode_libdir_flag_spec='-R$libdir'
8812      hardcode_direct=yes
8813      hardcode_shlibpath_var=no
8814      ;;
8815
8816    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8817    freebsd2*)
8818      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8819      hardcode_direct=yes
8820      hardcode_minus_L=yes
8821      hardcode_shlibpath_var=no
8822      ;;
8823
8824    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8825    freebsd* | dragonfly*)
8826      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8827      hardcode_libdir_flag_spec='-R$libdir'
8828      hardcode_direct=yes
8829      hardcode_shlibpath_var=no
8830      ;;
8831
8832    hpux9*)
8833      if test "$GCC" = yes; then
8834	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8835      else
8836	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'
8837      fi
8838      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8839      hardcode_libdir_separator=:
8840      hardcode_direct=yes
8841
8842      # hardcode_minus_L: Not really in the search PATH,
8843      # but as the default location of the library.
8844      hardcode_minus_L=yes
8845      export_dynamic_flag_spec='${wl}-E'
8846      ;;
8847
8848    hpux10*)
8849      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8850	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8851      else
8852	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8853      fi
8854      if test "$with_gnu_ld" = no; then
8855	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8856	hardcode_libdir_flag_spec_ld='+b $libdir'
8857	hardcode_libdir_separator=:
8858	hardcode_direct=yes
8859	hardcode_direct_absolute=yes
8860	export_dynamic_flag_spec='${wl}-E'
8861	# hardcode_minus_L: Not really in the search PATH,
8862	# but as the default location of the library.
8863	hardcode_minus_L=yes
8864      fi
8865      ;;
8866
8867    hpux11*)
8868      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8869	case $host_cpu in
8870	hppa*64*)
8871	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8872	  ;;
8873	ia64*)
8874	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8875	  ;;
8876	*)
8877	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8878	  ;;
8879	esac
8880      else
8881	case $host_cpu in
8882	hppa*64*)
8883	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8884	  ;;
8885	ia64*)
8886	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8887	  ;;
8888	*)
8889	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8890	  ;;
8891	esac
8892      fi
8893      if test "$with_gnu_ld" = no; then
8894	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8895	hardcode_libdir_separator=:
8896
8897	case $host_cpu in
8898	hppa*64*|ia64*)
8899	  hardcode_direct=no
8900	  hardcode_shlibpath_var=no
8901	  ;;
8902	*)
8903	  hardcode_direct=yes
8904	  hardcode_direct_absolute=yes
8905	  export_dynamic_flag_spec='${wl}-E'
8906
8907	  # hardcode_minus_L: Not really in the search PATH,
8908	  # but as the default location of the library.
8909	  hardcode_minus_L=yes
8910	  ;;
8911	esac
8912      fi
8913      ;;
8914
8915    irix5* | irix6* | nonstopux*)
8916      if test "$GCC" = yes; then
8917	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8918	# Try to use the -exported_symbol ld option, if it does not
8919	# work, assume that -exports_file does not work either and
8920	# implicitly export all symbols.
8921        save_LDFLAGS="$LDFLAGS"
8922        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8923        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924/* end confdefs.h.  */
8925int foo(void) {}
8926_ACEOF
8927if ac_fn_c_try_link "$LINENO"; then :
8928  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8929
8930fi
8931rm -f core conftest.err conftest.$ac_objext \
8932    conftest$ac_exeext conftest.$ac_ext
8933        LDFLAGS="$save_LDFLAGS"
8934      else
8935	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8936	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8937      fi
8938      archive_cmds_need_lc='no'
8939      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940      hardcode_libdir_separator=:
8941      inherit_rpath=yes
8942      link_all_deplibs=yes
8943      ;;
8944
8945    netbsd*)
8946      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8947	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8948      else
8949	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8950      fi
8951      hardcode_libdir_flag_spec='-R$libdir'
8952      hardcode_direct=yes
8953      hardcode_shlibpath_var=no
8954      ;;
8955
8956    newsos6)
8957      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958      hardcode_direct=yes
8959      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8960      hardcode_libdir_separator=:
8961      hardcode_shlibpath_var=no
8962      ;;
8963
8964    *nto* | *qnx*)
8965      ;;
8966
8967    openbsd*)
8968      if test -f /usr/libexec/ld.so; then
8969	hardcode_direct=yes
8970	hardcode_shlibpath_var=no
8971	hardcode_direct_absolute=yes
8972	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8973	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8974	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8975	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8976	  export_dynamic_flag_spec='${wl}-E'
8977	else
8978	  case $host_os in
8979	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8980	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8981	     hardcode_libdir_flag_spec='-R$libdir'
8982	     ;;
8983	   *)
8984	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8985	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8986	     ;;
8987	  esac
8988	fi
8989      else
8990	ld_shlibs=no
8991      fi
8992      ;;
8993
8994    os2*)
8995      hardcode_libdir_flag_spec='-L$libdir'
8996      hardcode_minus_L=yes
8997      allow_undefined_flag=unsupported
8998      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'
8999      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9000      ;;
9001
9002    osf3*)
9003      if test "$GCC" = yes; then
9004	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9005	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9006      else
9007	allow_undefined_flag=' -expect_unresolved \*'
9008	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9009      fi
9010      archive_cmds_need_lc='no'
9011      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9012      hardcode_libdir_separator=:
9013      ;;
9014
9015    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9016      if test "$GCC" = yes; then
9017	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9018	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9019	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9020      else
9021	allow_undefined_flag=' -expect_unresolved \*'
9022	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9023	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~
9024	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9025
9026	# Both c and cxx compiler support -rpath directly
9027	hardcode_libdir_flag_spec='-rpath $libdir'
9028      fi
9029      archive_cmds_need_lc='no'
9030      hardcode_libdir_separator=:
9031      ;;
9032
9033    solaris*)
9034      no_undefined_flag=' -z defs'
9035      if test "$GCC" = yes; then
9036	wlarc='${wl}'
9037	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9038	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9039	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9040      else
9041	case `$CC -V 2>&1` in
9042	*"Compilers 5.0"*)
9043	  wlarc=''
9044	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9045	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9046	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9047	  ;;
9048	*)
9049	  wlarc='${wl}'
9050	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9051	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9052	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9053	  ;;
9054	esac
9055      fi
9056      hardcode_libdir_flag_spec='-R$libdir'
9057      hardcode_shlibpath_var=no
9058      case $host_os in
9059      solaris2.[0-5] | solaris2.[0-5].*) ;;
9060      *)
9061	# The compiler driver will combine and reorder linker options,
9062	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9063	# but is careful enough not to reorder.
9064	# Supported since Solaris 2.6 (maybe 2.5.1?)
9065	if test "$GCC" = yes; then
9066	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9067	else
9068	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9069	fi
9070	;;
9071      esac
9072      link_all_deplibs=yes
9073      ;;
9074
9075    sunos4*)
9076      if test "x$host_vendor" = xsequent; then
9077	# Use $CC to link under sequent, because it throws in some extra .o
9078	# files that make .init and .fini sections work.
9079	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9080      else
9081	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9082      fi
9083      hardcode_libdir_flag_spec='-L$libdir'
9084      hardcode_direct=yes
9085      hardcode_minus_L=yes
9086      hardcode_shlibpath_var=no
9087      ;;
9088
9089    sysv4)
9090      case $host_vendor in
9091	sni)
9092	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9093	  hardcode_direct=yes # is this really true???
9094	;;
9095	siemens)
9096	  ## LD is ld it makes a PLAMLIB
9097	  ## CC just makes a GrossModule.
9098	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9099	  reload_cmds='$CC -r -o $output$reload_objs'
9100	  hardcode_direct=no
9101        ;;
9102	motorola)
9103	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9105	;;
9106      esac
9107      runpath_var='LD_RUN_PATH'
9108      hardcode_shlibpath_var=no
9109      ;;
9110
9111    sysv4.3*)
9112      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9113      hardcode_shlibpath_var=no
9114      export_dynamic_flag_spec='-Bexport'
9115      ;;
9116
9117    sysv4*MP*)
9118      if test -d /usr/nec; then
9119	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120	hardcode_shlibpath_var=no
9121	runpath_var=LD_RUN_PATH
9122	hardcode_runpath_var=yes
9123	ld_shlibs=yes
9124      fi
9125      ;;
9126
9127    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9128      no_undefined_flag='${wl}-z,text'
9129      archive_cmds_need_lc=no
9130      hardcode_shlibpath_var=no
9131      runpath_var='LD_RUN_PATH'
9132
9133      if test "$GCC" = yes; then
9134	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9135	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9136      else
9137	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9138	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9139      fi
9140      ;;
9141
9142    sysv5* | sco3.2v5* | sco5v6*)
9143      # Note: We can NOT use -z defs as we might desire, because we do not
9144      # link with -lc, and that would cause any symbols used from libc to
9145      # always be unresolved, which means just about no library would
9146      # ever link correctly.  If we're not using GNU ld we use -z text
9147      # though, which does catch some bad symbols but isn't as heavy-handed
9148      # as -z defs.
9149      no_undefined_flag='${wl}-z,text'
9150      allow_undefined_flag='${wl}-z,nodefs'
9151      archive_cmds_need_lc=no
9152      hardcode_shlibpath_var=no
9153      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9154      hardcode_libdir_separator=':'
9155      link_all_deplibs=yes
9156      export_dynamic_flag_spec='${wl}-Bexport'
9157      runpath_var='LD_RUN_PATH'
9158
9159      if test "$GCC" = yes; then
9160	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9161	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9162      else
9163	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9164	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9165      fi
9166      ;;
9167
9168    uts4*)
9169      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9170      hardcode_libdir_flag_spec='-L$libdir'
9171      hardcode_shlibpath_var=no
9172      ;;
9173
9174    *)
9175      ld_shlibs=no
9176      ;;
9177    esac
9178
9179    if test x$host_vendor = xsni; then
9180      case $host in
9181      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9182	export_dynamic_flag_spec='${wl}-Blargedynsym'
9183	;;
9184      esac
9185    fi
9186  fi
9187
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9189$as_echo "$ld_shlibs" >&6; }
9190test "$ld_shlibs" = no && can_build_shared=no
9191
9192with_gnu_ld=$with_gnu_ld
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208#
9209# Do we need to explicitly link libc?
9210#
9211case "x$archive_cmds_need_lc" in
9212x|xyes)
9213  # Assume -lc should be added
9214  archive_cmds_need_lc=yes
9215
9216  if test "$enable_shared" = yes && test "$GCC" = yes; then
9217    case $archive_cmds in
9218    *'~'*)
9219      # FIXME: we may have to deal with multi-command sequences.
9220      ;;
9221    '$CC '*)
9222      # Test whether the compiler implicitly links with -lc since on some
9223      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9224      # to ld, don't add -lc before -lgcc.
9225      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9226$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9227      $RM conftest*
9228      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9229
9230      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9231  (eval $ac_compile) 2>&5
9232  ac_status=$?
9233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9234  test $ac_status = 0; } 2>conftest.err; then
9235        soname=conftest
9236        lib=conftest
9237        libobjs=conftest.$ac_objext
9238        deplibs=
9239        wl=$lt_prog_compiler_wl
9240	pic_flag=$lt_prog_compiler_pic
9241        compiler_flags=-v
9242        linker_flags=-v
9243        verstring=
9244        output_objdir=.
9245        libname=conftest
9246        lt_save_allow_undefined_flag=$allow_undefined_flag
9247        allow_undefined_flag=
9248        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9249  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9250  ac_status=$?
9251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9252  test $ac_status = 0; }
9253        then
9254	  archive_cmds_need_lc=no
9255        else
9256	  archive_cmds_need_lc=yes
9257        fi
9258        allow_undefined_flag=$lt_save_allow_undefined_flag
9259      else
9260        cat conftest.err 1>&5
9261      fi
9262      $RM conftest*
9263      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9264$as_echo "$archive_cmds_need_lc" >&6; }
9265      ;;
9266    esac
9267  fi
9268  ;;
9269esac
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9428$as_echo_n "checking dynamic linker characteristics... " >&6; }
9429
9430if test "$GCC" = yes; then
9431  case $host_os in
9432    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9433    *) lt_awk_arg="/^libraries:/" ;;
9434  esac
9435  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9436  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9437    # if the path contains ";" then we assume it to be the separator
9438    # otherwise default to the standard path separator (i.e. ":") - it is
9439    # assumed that no part of a normal pathname contains ";" but that should
9440    # okay in the real world where ";" in dirpaths is itself problematic.
9441    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9442  else
9443    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9444  fi
9445  # Ok, now we have the path, separated by spaces, we can step through it
9446  # and add multilib dir if necessary.
9447  lt_tmp_lt_search_path_spec=
9448  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9449  for lt_sys_path in $lt_search_path_spec; do
9450    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9451      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9452    else
9453      test -d "$lt_sys_path" && \
9454	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9455    fi
9456  done
9457  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9458BEGIN {RS=" "; FS="/|\n";} {
9459  lt_foo="";
9460  lt_count=0;
9461  for (lt_i = NF; lt_i > 0; lt_i--) {
9462    if ($lt_i != "" && $lt_i != ".") {
9463      if ($lt_i == "..") {
9464        lt_count++;
9465      } else {
9466        if (lt_count == 0) {
9467          lt_foo="/" $lt_i lt_foo;
9468        } else {
9469          lt_count--;
9470        }
9471      }
9472    }
9473  }
9474  if (lt_foo != "") { lt_freq[lt_foo]++; }
9475  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9476}'`
9477  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9478else
9479  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9480fi
9481library_names_spec=
9482libname_spec='lib$name'
9483soname_spec=
9484shrext_cmds=".so"
9485postinstall_cmds=
9486postuninstall_cmds=
9487finish_cmds=
9488finish_eval=
9489shlibpath_var=
9490shlibpath_overrides_runpath=unknown
9491version_type=none
9492dynamic_linker="$host_os ld.so"
9493sys_lib_dlsearch_path_spec="/lib /usr/lib"
9494need_lib_prefix=unknown
9495hardcode_into_libs=no
9496
9497# when you set need_version to no, make sure it does not cause -set_version
9498# flags to be left without arguments
9499need_version=unknown
9500
9501case $host_os in
9502aix3*)
9503  version_type=linux
9504  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9505  shlibpath_var=LIBPATH
9506
9507  # AIX 3 has no versioning support, so we append a major version to the name.
9508  soname_spec='${libname}${release}${shared_ext}$major'
9509  ;;
9510
9511aix[4-9]*)
9512  version_type=linux
9513  need_lib_prefix=no
9514  need_version=no
9515  hardcode_into_libs=yes
9516  if test "$host_cpu" = ia64; then
9517    # AIX 5 supports IA64
9518    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9519    shlibpath_var=LD_LIBRARY_PATH
9520  else
9521    # With GCC up to 2.95.x, collect2 would create an import file
9522    # for dependence libraries.  The import file would start with
9523    # the line `#! .'.  This would cause the generated library to
9524    # depend on `.', always an invalid library.  This was fixed in
9525    # development snapshots of GCC prior to 3.0.
9526    case $host_os in
9527      aix4 | aix4.[01] | aix4.[01].*)
9528      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9529	   echo ' yes '
9530	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9531	:
9532      else
9533	can_build_shared=no
9534      fi
9535      ;;
9536    esac
9537    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9538    # soname into executable. Probably we can add versioning support to
9539    # collect2, so additional links can be useful in future.
9540    if test "$aix_use_runtimelinking" = yes; then
9541      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9542      # instead of lib<name>.a to let people know that these are not
9543      # typical AIX shared libraries.
9544      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545    else
9546      # We preserve .a as extension for shared libraries through AIX4.2
9547      # and later when we are not doing run time linking.
9548      library_names_spec='${libname}${release}.a $libname.a'
9549      soname_spec='${libname}${release}${shared_ext}$major'
9550    fi
9551    shlibpath_var=LIBPATH
9552  fi
9553  ;;
9554
9555amigaos*)
9556  case $host_cpu in
9557  powerpc)
9558    # Since July 2007 AmigaOS4 officially supports .so libraries.
9559    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9560    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561    ;;
9562  m68k)
9563    library_names_spec='$libname.ixlibrary $libname.a'
9564    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9565    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9566    ;;
9567  esac
9568  ;;
9569
9570beos*)
9571  library_names_spec='${libname}${shared_ext}'
9572  dynamic_linker="$host_os ld.so"
9573  shlibpath_var=LIBRARY_PATH
9574  ;;
9575
9576bsdi[45]*)
9577  version_type=linux
9578  need_version=no
9579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580  soname_spec='${libname}${release}${shared_ext}$major'
9581  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9582  shlibpath_var=LD_LIBRARY_PATH
9583  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9584  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9585  # the default ld.so.conf also contains /usr/contrib/lib and
9586  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9587  # libtool to hard-code these into programs
9588  ;;
9589
9590cygwin* | mingw* | pw32*)
9591  version_type=windows
9592  shrext_cmds=".dll"
9593  need_version=no
9594  need_lib_prefix=no
9595
9596  case $GCC,$host_os in
9597  yes,cygwin* | yes,mingw* | yes,pw32*)
9598    library_names_spec='$libname.dll.a'
9599    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9600    postinstall_cmds='base_file=`basename \${file}`~
9601      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9602      dldir=$destdir/`dirname \$dlpath`~
9603      test -d \$dldir || mkdir -p \$dldir~
9604      $install_prog $dir/$dlname \$dldir/$dlname~
9605      chmod a+x \$dldir/$dlname~
9606      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9607        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9608      fi'
9609    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9610      dlpath=$dir/\$dldll~
9611       $RM \$dlpath'
9612    shlibpath_overrides_runpath=yes
9613
9614    case $host_os in
9615    cygwin*)
9616      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9617      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9618      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9619      ;;
9620    mingw*)
9621      # MinGW DLLs use traditional 'lib' prefix
9622      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9623      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9624      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9625        # It is most probably a Windows format PATH printed by
9626        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9627        # path with ; separators, and with drive letters. We can handle the
9628        # drive letters (cygwin fileutils understands them), so leave them,
9629        # especially as we might pass files found there to a mingw objdump,
9630        # which wouldn't understand a cygwinified path. Ahh.
9631        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9632      else
9633        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9634      fi
9635      ;;
9636    pw32*)
9637      # pw32 DLLs use 'pw' prefix rather than 'lib'
9638      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9639      ;;
9640    esac
9641    ;;
9642
9643  *)
9644    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9645    ;;
9646  esac
9647  dynamic_linker='Win32 ld.exe'
9648  # FIXME: first we should search . and the directory the executable is in
9649  shlibpath_var=PATH
9650  ;;
9651
9652darwin* | rhapsody*)
9653  dynamic_linker="$host_os dyld"
9654  version_type=darwin
9655  need_lib_prefix=no
9656  need_version=no
9657  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9658  soname_spec='${libname}${release}${major}$shared_ext'
9659  shlibpath_overrides_runpath=yes
9660  shlibpath_var=DYLD_LIBRARY_PATH
9661  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9662
9663  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9664  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9665  ;;
9666
9667dgux*)
9668  version_type=linux
9669  need_lib_prefix=no
9670  need_version=no
9671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9672  soname_spec='${libname}${release}${shared_ext}$major'
9673  shlibpath_var=LD_LIBRARY_PATH
9674  ;;
9675
9676freebsd1*)
9677  dynamic_linker=no
9678  ;;
9679
9680freebsd* | dragonfly*)
9681  # DragonFly does not have aout.  When/if they implement a new
9682  # versioning mechanism, adjust this.
9683  if test -x /usr/bin/objformat; then
9684    objformat=`/usr/bin/objformat`
9685  else
9686    case $host_os in
9687    freebsd[123]*) objformat=aout ;;
9688    *) objformat=elf ;;
9689    esac
9690  fi
9691  version_type=freebsd-$objformat
9692  case $version_type in
9693    freebsd-elf*)
9694      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9695      need_version=no
9696      need_lib_prefix=no
9697      ;;
9698    freebsd-*)
9699      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9700      need_version=yes
9701      ;;
9702  esac
9703  shlibpath_var=LD_LIBRARY_PATH
9704  case $host_os in
9705  freebsd2*)
9706    shlibpath_overrides_runpath=yes
9707    ;;
9708  freebsd3.[01]* | freebsdelf3.[01]*)
9709    shlibpath_overrides_runpath=yes
9710    hardcode_into_libs=yes
9711    ;;
9712  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9713  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9714    shlibpath_overrides_runpath=no
9715    hardcode_into_libs=yes
9716    ;;
9717  *) # from 4.6 on, and DragonFly
9718    shlibpath_overrides_runpath=yes
9719    hardcode_into_libs=yes
9720    ;;
9721  esac
9722  ;;
9723
9724gnu*)
9725  version_type=linux
9726  need_lib_prefix=no
9727  need_version=no
9728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9729  soname_spec='${libname}${release}${shared_ext}$major'
9730  shlibpath_var=LD_LIBRARY_PATH
9731  hardcode_into_libs=yes
9732  ;;
9733
9734hpux9* | hpux10* | hpux11*)
9735  # Give a soname corresponding to the major version so that dld.sl refuses to
9736  # link against other versions.
9737  version_type=sunos
9738  need_lib_prefix=no
9739  need_version=no
9740  case $host_cpu in
9741  ia64*)
9742    shrext_cmds='.so'
9743    hardcode_into_libs=yes
9744    dynamic_linker="$host_os dld.so"
9745    shlibpath_var=LD_LIBRARY_PATH
9746    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9747    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9748    soname_spec='${libname}${release}${shared_ext}$major'
9749    if test "X$HPUX_IA64_MODE" = X32; then
9750      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9751    else
9752      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9753    fi
9754    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9755    ;;
9756  hppa*64*)
9757    shrext_cmds='.sl'
9758    hardcode_into_libs=yes
9759    dynamic_linker="$host_os dld.sl"
9760    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9761    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9762    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763    soname_spec='${libname}${release}${shared_ext}$major'
9764    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9765    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9766    ;;
9767  *)
9768    shrext_cmds='.sl'
9769    dynamic_linker="$host_os dld.sl"
9770    shlibpath_var=SHLIB_PATH
9771    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9772    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773    soname_spec='${libname}${release}${shared_ext}$major'
9774    ;;
9775  esac
9776  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9777  postinstall_cmds='chmod 555 $lib'
9778  ;;
9779
9780interix[3-9]*)
9781  version_type=linux
9782  need_lib_prefix=no
9783  need_version=no
9784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9785  soname_spec='${libname}${release}${shared_ext}$major'
9786  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9787  shlibpath_var=LD_LIBRARY_PATH
9788  shlibpath_overrides_runpath=no
9789  hardcode_into_libs=yes
9790  ;;
9791
9792irix5* | irix6* | nonstopux*)
9793  case $host_os in
9794    nonstopux*) version_type=nonstopux ;;
9795    *)
9796	if test "$lt_cv_prog_gnu_ld" = yes; then
9797		version_type=linux
9798	else
9799		version_type=irix
9800	fi ;;
9801  esac
9802  need_lib_prefix=no
9803  need_version=no
9804  soname_spec='${libname}${release}${shared_ext}$major'
9805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9806  case $host_os in
9807  irix5* | nonstopux*)
9808    libsuff= shlibsuff=
9809    ;;
9810  *)
9811    case $LD in # libtool.m4 will add one of these switches to LD
9812    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9813      libsuff= shlibsuff= libmagic=32-bit;;
9814    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9815      libsuff=32 shlibsuff=N32 libmagic=N32;;
9816    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9817      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9818    *) libsuff= shlibsuff= libmagic=never-match;;
9819    esac
9820    ;;
9821  esac
9822  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9823  shlibpath_overrides_runpath=no
9824  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9825  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9826  hardcode_into_libs=yes
9827  ;;
9828
9829# No shared lib support for Linux oldld, aout, or coff.
9830linux*oldld* | linux*aout* | linux*coff*)
9831  dynamic_linker=no
9832  ;;
9833
9834# This must be Linux ELF.
9835linux* | k*bsd*-gnu)
9836  version_type=linux
9837  need_lib_prefix=no
9838  need_version=no
9839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840  soname_spec='${libname}${release}${shared_ext}$major'
9841  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9842  shlibpath_var=LD_LIBRARY_PATH
9843  shlibpath_overrides_runpath=no
9844  # Some binutils ld are patched to set DT_RUNPATH
9845  save_LDFLAGS=$LDFLAGS
9846  save_libdir=$libdir
9847  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9848       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850/* end confdefs.h.  */
9851
9852int
9853main ()
9854{
9855
9856  ;
9857  return 0;
9858}
9859_ACEOF
9860if ac_fn_c_try_link "$LINENO"; then :
9861  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9862  shlibpath_overrides_runpath=yes
9863fi
9864fi
9865rm -f core conftest.err conftest.$ac_objext \
9866    conftest$ac_exeext conftest.$ac_ext
9867  LDFLAGS=$save_LDFLAGS
9868  libdir=$save_libdir
9869
9870  # This implies no fast_install, which is unacceptable.
9871  # Some rework will be needed to allow for fast_install
9872  # before this can be enabled.
9873  hardcode_into_libs=yes
9874
9875  # Append ld.so.conf contents to the search path
9876  if test -f /etc/ld.so.conf; then
9877    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;/^$/d' | tr '\n' ' '`
9878    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9879  fi
9880
9881  # We used to test for /lib/ld.so.1 and disable shared libraries on
9882  # powerpc, because MkLinux only supported shared libraries with the
9883  # GNU dynamic linker.  Since this was broken with cross compilers,
9884  # most powerpc-linux boxes support dynamic linking these days and
9885  # people can always --disable-shared, the test was removed, and we
9886  # assume the GNU/Linux dynamic linker is in use.
9887  dynamic_linker='GNU/Linux ld.so'
9888  ;;
9889
9890netbsd*)
9891  version_type=sunos
9892  need_lib_prefix=no
9893  need_version=no
9894  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9895    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9896    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9897    dynamic_linker='NetBSD (a.out) ld.so'
9898  else
9899    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9900    soname_spec='${libname}${release}${shared_ext}$major'
9901    dynamic_linker='NetBSD ld.elf_so'
9902  fi
9903  shlibpath_var=LD_LIBRARY_PATH
9904  shlibpath_overrides_runpath=yes
9905  hardcode_into_libs=yes
9906  ;;
9907
9908newsos6)
9909  version_type=linux
9910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9911  shlibpath_var=LD_LIBRARY_PATH
9912  shlibpath_overrides_runpath=yes
9913  ;;
9914
9915*nto* | *qnx*)
9916  version_type=qnx
9917  need_lib_prefix=no
9918  need_version=no
9919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920  soname_spec='${libname}${release}${shared_ext}$major'
9921  shlibpath_var=LD_LIBRARY_PATH
9922  shlibpath_overrides_runpath=no
9923  hardcode_into_libs=yes
9924  dynamic_linker='ldqnx.so'
9925  ;;
9926
9927openbsd*)
9928  version_type=sunos
9929  sys_lib_dlsearch_path_spec="/usr/lib"
9930  need_lib_prefix=no
9931  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9932  case $host_os in
9933    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9934    *)				need_version=no  ;;
9935  esac
9936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9937  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9938  shlibpath_var=LD_LIBRARY_PATH
9939  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9940    case $host_os in
9941      openbsd2.[89] | openbsd2.[89].*)
9942	shlibpath_overrides_runpath=no
9943	;;
9944      *)
9945	shlibpath_overrides_runpath=yes
9946	;;
9947      esac
9948  else
9949    shlibpath_overrides_runpath=yes
9950  fi
9951  ;;
9952
9953os2*)
9954  libname_spec='$name'
9955  shrext_cmds=".dll"
9956  need_lib_prefix=no
9957  library_names_spec='$libname${shared_ext} $libname.a'
9958  dynamic_linker='OS/2 ld.exe'
9959  shlibpath_var=LIBPATH
9960  ;;
9961
9962osf3* | osf4* | osf5*)
9963  version_type=osf
9964  need_lib_prefix=no
9965  need_version=no
9966  soname_spec='${libname}${release}${shared_ext}$major'
9967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9968  shlibpath_var=LD_LIBRARY_PATH
9969  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9970  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9971  ;;
9972
9973rdos*)
9974  dynamic_linker=no
9975  ;;
9976
9977solaris*)
9978  version_type=linux
9979  need_lib_prefix=no
9980  need_version=no
9981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982  soname_spec='${libname}${release}${shared_ext}$major'
9983  shlibpath_var=LD_LIBRARY_PATH
9984  shlibpath_overrides_runpath=yes
9985  hardcode_into_libs=yes
9986  # ldd complains unless libraries are executable
9987  postinstall_cmds='chmod +x $lib'
9988  ;;
9989
9990sunos4*)
9991  version_type=sunos
9992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9993  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9994  shlibpath_var=LD_LIBRARY_PATH
9995  shlibpath_overrides_runpath=yes
9996  if test "$with_gnu_ld" = yes; then
9997    need_lib_prefix=no
9998  fi
9999  need_version=yes
10000  ;;
10001
10002sysv4 | sysv4.3*)
10003  version_type=linux
10004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005  soname_spec='${libname}${release}${shared_ext}$major'
10006  shlibpath_var=LD_LIBRARY_PATH
10007  case $host_vendor in
10008    sni)
10009      shlibpath_overrides_runpath=no
10010      need_lib_prefix=no
10011      runpath_var=LD_RUN_PATH
10012      ;;
10013    siemens)
10014      need_lib_prefix=no
10015      ;;
10016    motorola)
10017      need_lib_prefix=no
10018      need_version=no
10019      shlibpath_overrides_runpath=no
10020      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10021      ;;
10022  esac
10023  ;;
10024
10025sysv4*MP*)
10026  if test -d /usr/nec ;then
10027    version_type=linux
10028    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10029    soname_spec='$libname${shared_ext}.$major'
10030    shlibpath_var=LD_LIBRARY_PATH
10031  fi
10032  ;;
10033
10034sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10035  version_type=freebsd-elf
10036  need_lib_prefix=no
10037  need_version=no
10038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10039  soname_spec='${libname}${release}${shared_ext}$major'
10040  shlibpath_var=LD_LIBRARY_PATH
10041  shlibpath_overrides_runpath=yes
10042  hardcode_into_libs=yes
10043  if test "$with_gnu_ld" = yes; then
10044    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10045  else
10046    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10047    case $host_os in
10048      sco3.2v5*)
10049        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10050	;;
10051    esac
10052  fi
10053  sys_lib_dlsearch_path_spec='/usr/lib'
10054  ;;
10055
10056tpf*)
10057  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10058  version_type=linux
10059  need_lib_prefix=no
10060  need_version=no
10061  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10062  shlibpath_var=LD_LIBRARY_PATH
10063  shlibpath_overrides_runpath=no
10064  hardcode_into_libs=yes
10065  ;;
10066
10067uts4*)
10068  version_type=linux
10069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070  soname_spec='${libname}${release}${shared_ext}$major'
10071  shlibpath_var=LD_LIBRARY_PATH
10072  ;;
10073
10074*)
10075  dynamic_linker=no
10076  ;;
10077esac
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10079$as_echo "$dynamic_linker" >&6; }
10080test "$dynamic_linker" = no && can_build_shared=no
10081
10082variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10083if test "$GCC" = yes; then
10084  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10085fi
10086
10087if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10088  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10089fi
10090if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10091  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10092fi
10093
10094
10095
10096
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10181$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10182hardcode_action=
10183if test -n "$hardcode_libdir_flag_spec" ||
10184   test -n "$runpath_var" ||
10185   test "X$hardcode_automatic" = "Xyes" ; then
10186
10187  # We can hardcode non-existent directories.
10188  if test "$hardcode_direct" != no &&
10189     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10190     # have to relink, otherwise we might link with an installed library
10191     # when we should be linking with a yet-to-be-installed one
10192     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10193     test "$hardcode_minus_L" != no; then
10194    # Linking always hardcodes the temporary library directory.
10195    hardcode_action=relink
10196  else
10197    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10198    hardcode_action=immediate
10199  fi
10200else
10201  # We cannot hardcode anything, or else we can only hardcode existing
10202  # directories.
10203  hardcode_action=unsupported
10204fi
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10206$as_echo "$hardcode_action" >&6; }
10207
10208if test "$hardcode_action" = relink ||
10209   test "$inherit_rpath" = yes; then
10210  # Fast installation is not supported
10211  enable_fast_install=no
10212elif test "$shlibpath_overrides_runpath" = yes ||
10213     test "$enable_shared" = no; then
10214  # Fast installation is not necessary
10215  enable_fast_install=needless
10216fi
10217
10218
10219
10220
10221
10222
10223  if test "x$enable_dlopen" != xyes; then
10224  enable_dlopen=unknown
10225  enable_dlopen_self=unknown
10226  enable_dlopen_self_static=unknown
10227else
10228  lt_cv_dlopen=no
10229  lt_cv_dlopen_libs=
10230
10231  case $host_os in
10232  beos*)
10233    lt_cv_dlopen="load_add_on"
10234    lt_cv_dlopen_libs=
10235    lt_cv_dlopen_self=yes
10236    ;;
10237
10238  mingw* | pw32*)
10239    lt_cv_dlopen="LoadLibrary"
10240    lt_cv_dlopen_libs=
10241    ;;
10242
10243  cygwin*)
10244    lt_cv_dlopen="dlopen"
10245    lt_cv_dlopen_libs=
10246    ;;
10247
10248  darwin*)
10249  # if libdl is installed we need to link against it
10250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10251$as_echo_n "checking for dlopen in -ldl... " >&6; }
10252if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10253  $as_echo_n "(cached) " >&6
10254else
10255  ac_check_lib_save_LIBS=$LIBS
10256LIBS="-ldl  $LIBS"
10257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258/* end confdefs.h.  */
10259
10260/* Override any GCC internal prototype to avoid an error.
10261   Use char because int might match the return type of a GCC
10262   builtin and then its argument prototype would still apply.  */
10263#ifdef __cplusplus
10264extern "C"
10265#endif
10266char dlopen ();
10267int
10268main ()
10269{
10270return dlopen ();
10271  ;
10272  return 0;
10273}
10274_ACEOF
10275if ac_fn_c_try_link "$LINENO"; then :
10276  ac_cv_lib_dl_dlopen=yes
10277else
10278  ac_cv_lib_dl_dlopen=no
10279fi
10280rm -f core conftest.err conftest.$ac_objext \
10281    conftest$ac_exeext conftest.$ac_ext
10282LIBS=$ac_check_lib_save_LIBS
10283fi
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10285$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10286if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10287  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10288else
10289
10290    lt_cv_dlopen="dyld"
10291    lt_cv_dlopen_libs=
10292    lt_cv_dlopen_self=yes
10293
10294fi
10295
10296    ;;
10297
10298  *)
10299    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10300if test "x$ac_cv_func_shl_load" = x""yes; then :
10301  lt_cv_dlopen="shl_load"
10302else
10303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10304$as_echo_n "checking for shl_load in -ldld... " >&6; }
10305if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10306  $as_echo_n "(cached) " >&6
10307else
10308  ac_check_lib_save_LIBS=$LIBS
10309LIBS="-ldld  $LIBS"
10310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311/* end confdefs.h.  */
10312
10313/* Override any GCC internal prototype to avoid an error.
10314   Use char because int might match the return type of a GCC
10315   builtin and then its argument prototype would still apply.  */
10316#ifdef __cplusplus
10317extern "C"
10318#endif
10319char shl_load ();
10320int
10321main ()
10322{
10323return shl_load ();
10324  ;
10325  return 0;
10326}
10327_ACEOF
10328if ac_fn_c_try_link "$LINENO"; then :
10329  ac_cv_lib_dld_shl_load=yes
10330else
10331  ac_cv_lib_dld_shl_load=no
10332fi
10333rm -f core conftest.err conftest.$ac_objext \
10334    conftest$ac_exeext conftest.$ac_ext
10335LIBS=$ac_check_lib_save_LIBS
10336fi
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10338$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10339if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10340  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10341else
10342  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10343if test "x$ac_cv_func_dlopen" = x""yes; then :
10344  lt_cv_dlopen="dlopen"
10345else
10346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10347$as_echo_n "checking for dlopen in -ldl... " >&6; }
10348if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10349  $as_echo_n "(cached) " >&6
10350else
10351  ac_check_lib_save_LIBS=$LIBS
10352LIBS="-ldl  $LIBS"
10353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354/* end confdefs.h.  */
10355
10356/* Override any GCC internal prototype to avoid an error.
10357   Use char because int might match the return type of a GCC
10358   builtin and then its argument prototype would still apply.  */
10359#ifdef __cplusplus
10360extern "C"
10361#endif
10362char dlopen ();
10363int
10364main ()
10365{
10366return dlopen ();
10367  ;
10368  return 0;
10369}
10370_ACEOF
10371if ac_fn_c_try_link "$LINENO"; then :
10372  ac_cv_lib_dl_dlopen=yes
10373else
10374  ac_cv_lib_dl_dlopen=no
10375fi
10376rm -f core conftest.err conftest.$ac_objext \
10377    conftest$ac_exeext conftest.$ac_ext
10378LIBS=$ac_check_lib_save_LIBS
10379fi
10380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10381$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10382if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10383  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10384else
10385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10386$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10387if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10388  $as_echo_n "(cached) " >&6
10389else
10390  ac_check_lib_save_LIBS=$LIBS
10391LIBS="-lsvld  $LIBS"
10392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h.  */
10394
10395/* Override any GCC internal prototype to avoid an error.
10396   Use char because int might match the return type of a GCC
10397   builtin and then its argument prototype would still apply.  */
10398#ifdef __cplusplus
10399extern "C"
10400#endif
10401char dlopen ();
10402int
10403main ()
10404{
10405return dlopen ();
10406  ;
10407  return 0;
10408}
10409_ACEOF
10410if ac_fn_c_try_link "$LINENO"; then :
10411  ac_cv_lib_svld_dlopen=yes
10412else
10413  ac_cv_lib_svld_dlopen=no
10414fi
10415rm -f core conftest.err conftest.$ac_objext \
10416    conftest$ac_exeext conftest.$ac_ext
10417LIBS=$ac_check_lib_save_LIBS
10418fi
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10420$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10421if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10422  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10423else
10424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10425$as_echo_n "checking for dld_link in -ldld... " >&6; }
10426if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10427  $as_echo_n "(cached) " >&6
10428else
10429  ac_check_lib_save_LIBS=$LIBS
10430LIBS="-ldld  $LIBS"
10431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432/* end confdefs.h.  */
10433
10434/* Override any GCC internal prototype to avoid an error.
10435   Use char because int might match the return type of a GCC
10436   builtin and then its argument prototype would still apply.  */
10437#ifdef __cplusplus
10438extern "C"
10439#endif
10440char dld_link ();
10441int
10442main ()
10443{
10444return dld_link ();
10445  ;
10446  return 0;
10447}
10448_ACEOF
10449if ac_fn_c_try_link "$LINENO"; then :
10450  ac_cv_lib_dld_dld_link=yes
10451else
10452  ac_cv_lib_dld_dld_link=no
10453fi
10454rm -f core conftest.err conftest.$ac_objext \
10455    conftest$ac_exeext conftest.$ac_ext
10456LIBS=$ac_check_lib_save_LIBS
10457fi
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10459$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10460if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10461  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10462fi
10463
10464
10465fi
10466
10467
10468fi
10469
10470
10471fi
10472
10473
10474fi
10475
10476
10477fi
10478
10479    ;;
10480  esac
10481
10482  if test "x$lt_cv_dlopen" != xno; then
10483    enable_dlopen=yes
10484  else
10485    enable_dlopen=no
10486  fi
10487
10488  case $lt_cv_dlopen in
10489  dlopen)
10490    save_CPPFLAGS="$CPPFLAGS"
10491    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10492
10493    save_LDFLAGS="$LDFLAGS"
10494    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10495
10496    save_LIBS="$LIBS"
10497    LIBS="$lt_cv_dlopen_libs $LIBS"
10498
10499    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10500$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10501if test "${lt_cv_dlopen_self+set}" = set; then :
10502  $as_echo_n "(cached) " >&6
10503else
10504  	  if test "$cross_compiling" = yes; then :
10505  lt_cv_dlopen_self=cross
10506else
10507  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10508  lt_status=$lt_dlunknown
10509  cat > conftest.$ac_ext <<_LT_EOF
10510#line 10510 "configure"
10511#include "confdefs.h"
10512
10513#if HAVE_DLFCN_H
10514#include <dlfcn.h>
10515#endif
10516
10517#include <stdio.h>
10518
10519#ifdef RTLD_GLOBAL
10520#  define LT_DLGLOBAL		RTLD_GLOBAL
10521#else
10522#  ifdef DL_GLOBAL
10523#    define LT_DLGLOBAL		DL_GLOBAL
10524#  else
10525#    define LT_DLGLOBAL		0
10526#  endif
10527#endif
10528
10529/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10530   find out it does not work in some platform. */
10531#ifndef LT_DLLAZY_OR_NOW
10532#  ifdef RTLD_LAZY
10533#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10534#  else
10535#    ifdef DL_LAZY
10536#      define LT_DLLAZY_OR_NOW		DL_LAZY
10537#    else
10538#      ifdef RTLD_NOW
10539#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10540#      else
10541#        ifdef DL_NOW
10542#          define LT_DLLAZY_OR_NOW	DL_NOW
10543#        else
10544#          define LT_DLLAZY_OR_NOW	0
10545#        endif
10546#      endif
10547#    endif
10548#  endif
10549#endif
10550
10551#ifdef __cplusplus
10552extern "C" void exit (int);
10553#endif
10554
10555void fnord() { int i=42;}
10556int main ()
10557{
10558  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10559  int status = $lt_dlunknown;
10560
10561  if (self)
10562    {
10563      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10564      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10565      /* dlclose (self); */
10566    }
10567  else
10568    puts (dlerror ());
10569
10570    exit (status);
10571}
10572_LT_EOF
10573  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10574  (eval $ac_link) 2>&5
10575  ac_status=$?
10576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10577  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10578    (./conftest; exit; ) >&5 2>/dev/null
10579    lt_status=$?
10580    case x$lt_status in
10581      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10582      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10583      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10584    esac
10585  else :
10586    # compilation failed
10587    lt_cv_dlopen_self=no
10588  fi
10589fi
10590rm -fr conftest*
10591
10592
10593fi
10594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10595$as_echo "$lt_cv_dlopen_self" >&6; }
10596
10597    if test "x$lt_cv_dlopen_self" = xyes; then
10598      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10599      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10600$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10601if test "${lt_cv_dlopen_self_static+set}" = set; then :
10602  $as_echo_n "(cached) " >&6
10603else
10604  	  if test "$cross_compiling" = yes; then :
10605  lt_cv_dlopen_self_static=cross
10606else
10607  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10608  lt_status=$lt_dlunknown
10609  cat > conftest.$ac_ext <<_LT_EOF
10610#line 10610 "configure"
10611#include "confdefs.h"
10612
10613#if HAVE_DLFCN_H
10614#include <dlfcn.h>
10615#endif
10616
10617#include <stdio.h>
10618
10619#ifdef RTLD_GLOBAL
10620#  define LT_DLGLOBAL		RTLD_GLOBAL
10621#else
10622#  ifdef DL_GLOBAL
10623#    define LT_DLGLOBAL		DL_GLOBAL
10624#  else
10625#    define LT_DLGLOBAL		0
10626#  endif
10627#endif
10628
10629/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10630   find out it does not work in some platform. */
10631#ifndef LT_DLLAZY_OR_NOW
10632#  ifdef RTLD_LAZY
10633#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10634#  else
10635#    ifdef DL_LAZY
10636#      define LT_DLLAZY_OR_NOW		DL_LAZY
10637#    else
10638#      ifdef RTLD_NOW
10639#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10640#      else
10641#        ifdef DL_NOW
10642#          define LT_DLLAZY_OR_NOW	DL_NOW
10643#        else
10644#          define LT_DLLAZY_OR_NOW	0
10645#        endif
10646#      endif
10647#    endif
10648#  endif
10649#endif
10650
10651#ifdef __cplusplus
10652extern "C" void exit (int);
10653#endif
10654
10655void fnord() { int i=42;}
10656int main ()
10657{
10658  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10659  int status = $lt_dlunknown;
10660
10661  if (self)
10662    {
10663      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10664      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10665      /* dlclose (self); */
10666    }
10667  else
10668    puts (dlerror ());
10669
10670    exit (status);
10671}
10672_LT_EOF
10673  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10674  (eval $ac_link) 2>&5
10675  ac_status=$?
10676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10677  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10678    (./conftest; exit; ) >&5 2>/dev/null
10679    lt_status=$?
10680    case x$lt_status in
10681      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10682      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10683      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10684    esac
10685  else :
10686    # compilation failed
10687    lt_cv_dlopen_self_static=no
10688  fi
10689fi
10690rm -fr conftest*
10691
10692
10693fi
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10695$as_echo "$lt_cv_dlopen_self_static" >&6; }
10696    fi
10697
10698    CPPFLAGS="$save_CPPFLAGS"
10699    LDFLAGS="$save_LDFLAGS"
10700    LIBS="$save_LIBS"
10701    ;;
10702  esac
10703
10704  case $lt_cv_dlopen_self in
10705  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10706  *) enable_dlopen_self=unknown ;;
10707  esac
10708
10709  case $lt_cv_dlopen_self_static in
10710  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10711  *) enable_dlopen_self_static=unknown ;;
10712  esac
10713fi
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731striplib=
10732old_striplib=
10733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10734$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10735if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10736  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10737  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10739$as_echo "yes" >&6; }
10740else
10741# FIXME - insert some real tests, host_os isn't really good enough
10742  case $host_os in
10743  darwin*)
10744    if test -n "$STRIP" ; then
10745      striplib="$STRIP -x"
10746      old_striplib="$STRIP -S"
10747      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10748$as_echo "yes" >&6; }
10749    else
10750      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751$as_echo "no" >&6; }
10752    fi
10753    ;;
10754  *)
10755    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10756$as_echo "no" >&6; }
10757    ;;
10758  esac
10759fi
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772  # Report which library types will actually be built
10773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10774$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10776$as_echo "$can_build_shared" >&6; }
10777
10778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10779$as_echo_n "checking whether to build shared libraries... " >&6; }
10780  test "$can_build_shared" = "no" && enable_shared=no
10781
10782  # On AIX, shared libraries and static libraries use the same namespace, and
10783  # are all built from PIC.
10784  case $host_os in
10785  aix3*)
10786    test "$enable_shared" = yes && enable_static=no
10787    if test -n "$RANLIB"; then
10788      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10789      postinstall_cmds='$RANLIB $lib'
10790    fi
10791    ;;
10792
10793  aix[4-9]*)
10794    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10795      test "$enable_shared" = yes && enable_static=no
10796    fi
10797    ;;
10798  esac
10799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10800$as_echo "$enable_shared" >&6; }
10801
10802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10803$as_echo_n "checking whether to build static libraries... " >&6; }
10804  # Make sure either enable_shared or enable_static is yes.
10805  test "$enable_shared" = yes || enable_static=yes
10806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10807$as_echo "$enable_static" >&6; }
10808
10809
10810
10811
10812fi
10813ac_ext=c
10814ac_cpp='$CPP $CPPFLAGS'
10815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10817ac_compiler_gnu=$ac_cv_c_compiler_gnu
10818
10819CC="$lt_save_CC"
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833        ac_config_commands="$ac_config_commands libtool"
10834
10835
10836
10837
10838# Only expand once:
10839
10840
10841
10842
10843
10844test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
10845test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
10846
10847
10848CANONICAL_HOST=$host
10849
10850
10851# Check whether --enable-largefile was given.
10852if test "${enable_largefile+set}" = set; then :
10853  enableval=$enable_largefile;
10854fi
10855
10856if test "$enable_largefile" != no; then
10857
10858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10859$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10860if test "${ac_cv_sys_largefile_CC+set}" = set; then :
10861  $as_echo_n "(cached) " >&6
10862else
10863  ac_cv_sys_largefile_CC=no
10864     if test "$GCC" != yes; then
10865       ac_save_CC=$CC
10866       while :; do
10867	 # IRIX 6.2 and later do not support large files by default,
10868	 # so use the C compiler's -n32 option if that helps.
10869	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870/* end confdefs.h.  */
10871#include <sys/types.h>
10872 /* Check that off_t can represent 2**63 - 1 correctly.
10873    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10874    since some C++ compilers masquerading as C compilers
10875    incorrectly reject 9223372036854775807.  */
10876#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10877  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10878		       && LARGE_OFF_T % 2147483647 == 1)
10879		      ? 1 : -1];
10880int
10881main ()
10882{
10883
10884  ;
10885  return 0;
10886}
10887_ACEOF
10888	 if ac_fn_c_try_compile "$LINENO"; then :
10889  break
10890fi
10891rm -f core conftest.err conftest.$ac_objext
10892	 CC="$CC -n32"
10893	 if ac_fn_c_try_compile "$LINENO"; then :
10894  ac_cv_sys_largefile_CC=' -n32'; break
10895fi
10896rm -f core conftest.err conftest.$ac_objext
10897	 break
10898       done
10899       CC=$ac_save_CC
10900       rm -f conftest.$ac_ext
10901    fi
10902fi
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10904$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10905  if test "$ac_cv_sys_largefile_CC" != no; then
10906    CC=$CC$ac_cv_sys_largefile_CC
10907  fi
10908
10909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10910$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10911if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
10912  $as_echo_n "(cached) " >&6
10913else
10914  while :; do
10915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916/* end confdefs.h.  */
10917#include <sys/types.h>
10918 /* Check that off_t can represent 2**63 - 1 correctly.
10919    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10920    since some C++ compilers masquerading as C compilers
10921    incorrectly reject 9223372036854775807.  */
10922#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10923  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10924		       && LARGE_OFF_T % 2147483647 == 1)
10925		      ? 1 : -1];
10926int
10927main ()
10928{
10929
10930  ;
10931  return 0;
10932}
10933_ACEOF
10934if ac_fn_c_try_compile "$LINENO"; then :
10935  ac_cv_sys_file_offset_bits=no; break
10936fi
10937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h.  */
10940#define _FILE_OFFSET_BITS 64
10941#include <sys/types.h>
10942 /* Check that off_t can represent 2**63 - 1 correctly.
10943    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10944    since some C++ compilers masquerading as C compilers
10945    incorrectly reject 9223372036854775807.  */
10946#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10947  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10948		       && LARGE_OFF_T % 2147483647 == 1)
10949		      ? 1 : -1];
10950int
10951main ()
10952{
10953
10954  ;
10955  return 0;
10956}
10957_ACEOF
10958if ac_fn_c_try_compile "$LINENO"; then :
10959  ac_cv_sys_file_offset_bits=64; break
10960fi
10961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962  ac_cv_sys_file_offset_bits=unknown
10963  break
10964done
10965fi
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10967$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10968case $ac_cv_sys_file_offset_bits in #(
10969  no | unknown) ;;
10970  *)
10971cat >>confdefs.h <<_ACEOF
10972#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10973_ACEOF
10974;;
10975esac
10976rm -rf conftest*
10977  if test $ac_cv_sys_file_offset_bits = unknown; then
10978    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10979$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10980if test "${ac_cv_sys_large_files+set}" = set; then :
10981  $as_echo_n "(cached) " >&6
10982else
10983  while :; do
10984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985/* end confdefs.h.  */
10986#include <sys/types.h>
10987 /* Check that off_t can represent 2**63 - 1 correctly.
10988    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10989    since some C++ compilers masquerading as C compilers
10990    incorrectly reject 9223372036854775807.  */
10991#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10992  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10993		       && LARGE_OFF_T % 2147483647 == 1)
10994		      ? 1 : -1];
10995int
10996main ()
10997{
10998
10999  ;
11000  return 0;
11001}
11002_ACEOF
11003if ac_fn_c_try_compile "$LINENO"; then :
11004  ac_cv_sys_large_files=no; break
11005fi
11006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008/* end confdefs.h.  */
11009#define _LARGE_FILES 1
11010#include <sys/types.h>
11011 /* Check that off_t can represent 2**63 - 1 correctly.
11012    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11013    since some C++ compilers masquerading as C compilers
11014    incorrectly reject 9223372036854775807.  */
11015#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11016  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11017		       && LARGE_OFF_T % 2147483647 == 1)
11018		      ? 1 : -1];
11019int
11020main ()
11021{
11022
11023  ;
11024  return 0;
11025}
11026_ACEOF
11027if ac_fn_c_try_compile "$LINENO"; then :
11028  ac_cv_sys_large_files=1; break
11029fi
11030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11031  ac_cv_sys_large_files=unknown
11032  break
11033done
11034fi
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11036$as_echo "$ac_cv_sys_large_files" >&6; }
11037case $ac_cv_sys_large_files in #(
11038  no | unknown) ;;
11039  *)
11040cat >>confdefs.h <<_ACEOF
11041#define _LARGE_FILES $ac_cv_sys_large_files
11042_ACEOF
11043;;
11044esac
11045rm -rf conftest*
11046  fi
11047fi
11048
11049
11050if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
11051	CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
11052fi
11053if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then
11054	CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11055fi
11056
11057
11058
11059
11060
11061
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
11063$as_echo_n "checking for dlopen... " >&6; }
11064if test "${ac_cv_funclib_dlopen+set}" = set; then :
11065  $as_echo_n "(cached) " >&6
11066else
11067
11068if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
11069	ac_save_LIBS="$LIBS"
11070	for ac_lib in "" dl; do
11071		case "$ac_lib" in
11072		"") ;;
11073		yes) ac_lib="" ;;
11074		no) continue ;;
11075		-l*) ;;
11076		*) ac_lib="-l$ac_lib" ;;
11077		esac
11078		LIBS=" $ac_lib  $ac_save_LIBS"
11079		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080/* end confdefs.h.  */
11081
11082#ifdef HAVE_DLFCN_H
11083#include <dlfcn.h>
11084#endif
11085int
11086main ()
11087{
11088dlopen(0,0)
11089  ;
11090  return 0;
11091}
11092_ACEOF
11093if ac_fn_c_try_link "$LINENO"; then :
11094  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
11095fi
11096rm -f core conftest.err conftest.$ac_objext \
11097    conftest$ac_exeext conftest.$ac_ext
11098	done
11099	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
11100	LIBS="$ac_save_LIBS"
11101fi
11102
11103fi
11104
11105
11106eval "ac_res=\$ac_cv_funclib_dlopen"
11107
11108if false; then
11109	for ac_func in dlopen
11110do :
11111  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11112if test "x$ac_cv_func_dlopen" = x""yes; then :
11113  cat >>confdefs.h <<_ACEOF
11114#define HAVE_DLOPEN 1
11115_ACEOF
11116
11117fi
11118done
11119
11120fi
11121# dlopen
11122eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11123eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11124eval "LIB_dlopen=$ac_res"
11125
11126case "$ac_res" in
11127	yes)
11128	eval "ac_cv_func_dlopen=yes"
11129	eval "LIB_dlopen="
11130	cat >>confdefs.h <<_ACEOF
11131#define $ac_tr_func 1
11132_ACEOF
11133
11134	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11135$as_echo "yes" >&6; }
11136	;;
11137	no)
11138	eval "ac_cv_func_dlopen=no"
11139	eval "LIB_dlopen="
11140	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141$as_echo "no" >&6; }
11142	;;
11143	*)
11144	eval "ac_cv_func_dlopen=yes"
11145	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11146	cat >>confdefs.h <<_ACEOF
11147#define $ac_tr_func 1
11148_ACEOF
11149
11150	cat >>confdefs.h <<_ACEOF
11151#define $ac_tr_lib 1
11152_ACEOF
11153
11154	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
11155$as_echo "yes, in $ac_res" >&6; }
11156	;;
11157esac
11158
11159
11160	 if test "$ac_cv_funclib_dlopen" != no; then
11161  HAVE_DLOPEN_TRUE=
11162  HAVE_DLOPEN_FALSE='#'
11163else
11164  HAVE_DLOPEN_TRUE='#'
11165  HAVE_DLOPEN_FALSE=
11166fi
11167
11168
11169
11170
11171aix=no
11172case "$host" in
11173*-*-aix3*)
11174	aix=3
11175	;;
11176*-*-aix[4-9]*)
11177	aix=4
11178	;;
11179esac
11180
11181 if test "$aix" != no; then
11182  AIX_TRUE=
11183  AIX_FALSE='#'
11184else
11185  AIX_TRUE='#'
11186  AIX_FALSE=
11187fi
11188 if test "$aix" = 4; then
11189  AIX4_TRUE=
11190  AIX4_FALSE='#'
11191else
11192  AIX4_TRUE='#'
11193  AIX4_FALSE=
11194fi
11195
11196# Check whether --enable-dynamic-afs was given.
11197if test "${enable_dynamic_afs+set}" = set; then :
11198  enableval=$enable_dynamic_afs;
11199fi
11200
11201
11202if test "$aix" != no; then
11203
11204
11205$as_echo "#define NEED_QSORT 1" >>confdefs.h
11206
11207
11208	if test "$enable_dynamic_afs" != no; then
11209
11210		if test "$ac_cv_func_dlopen" = no; then
11211
11212
11213
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for loadquery" >&5
11215$as_echo_n "checking for loadquery... " >&6; }
11216if test "${ac_cv_funclib_loadquery+set}" = set; then :
11217  $as_echo_n "(cached) " >&6
11218else
11219
11220if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
11221	ac_save_LIBS="$LIBS"
11222	for ac_lib in "" ld; do
11223		case "$ac_lib" in
11224		"") ;;
11225		yes) ac_lib="" ;;
11226		no) continue ;;
11227		-l*) ;;
11228		*) ac_lib="-l$ac_lib" ;;
11229		esac
11230		LIBS=" $ac_lib  $ac_save_LIBS"
11231		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232/* end confdefs.h.  */
11233
11234int
11235main ()
11236{
11237loadquery()
11238  ;
11239  return 0;
11240}
11241_ACEOF
11242if ac_fn_c_try_link "$LINENO"; then :
11243  eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
11244fi
11245rm -f core conftest.err conftest.$ac_objext \
11246    conftest$ac_exeext conftest.$ac_ext
11247	done
11248	eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
11249	LIBS="$ac_save_LIBS"
11250fi
11251
11252fi
11253
11254
11255eval "ac_res=\$ac_cv_funclib_loadquery"
11256
11257if false; then
11258	for ac_func in loadquery
11259do :
11260  ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
11261if test "x$ac_cv_func_loadquery" = x""yes; then :
11262  cat >>confdefs.h <<_ACEOF
11263#define HAVE_LOADQUERY 1
11264_ACEOF
11265
11266fi
11267done
11268
11269fi
11270# loadquery
11271eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11272eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11273eval "LIB_loadquery=$ac_res"
11274
11275case "$ac_res" in
11276	yes)
11277	eval "ac_cv_func_loadquery=yes"
11278	eval "LIB_loadquery="
11279	cat >>confdefs.h <<_ACEOF
11280#define $ac_tr_func 1
11281_ACEOF
11282
11283	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11284$as_echo "yes" >&6; }
11285	;;
11286	no)
11287	eval "ac_cv_func_loadquery=no"
11288	eval "LIB_loadquery="
11289	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290$as_echo "no" >&6; }
11291	;;
11292	*)
11293	eval "ac_cv_func_loadquery=yes"
11294	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11295	cat >>confdefs.h <<_ACEOF
11296#define $ac_tr_func 1
11297_ACEOF
11298
11299	cat >>confdefs.h <<_ACEOF
11300#define $ac_tr_lib 1
11301_ACEOF
11302
11303	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
11304$as_echo "yes, in $ac_res" >&6; }
11305	;;
11306esac
11307
11308
11309		fi
11310		if test "$ac_cv_func_dlopen" != no; then
11311			AIX_EXTRA_KAFS='$(LIB_dlopen)'
11312		elif test "$ac_cv_func_loadquery" != no; then
11313			AIX_EXTRA_KAFS='$(LIB_loadquery)'
11314		else
11315			{ $as_echo "$as_me:${as_lineno-$LINENO}: not using dynloaded AFS library" >&5
11316$as_echo "$as_me: not using dynloaded AFS library" >&6;}
11317			AIX_EXTRA_KAFS=
11318			enable_dynamic_afs=no
11319		fi
11320	else
11321		AIX_EXTRA_KAFS=
11322	fi
11323fi
11324
11325 if test "$enable_dynamic_afs" != no; then
11326  AIX_DYNAMIC_AFS_TRUE=
11327  AIX_DYNAMIC_AFS_FALSE='#'
11328else
11329  AIX_DYNAMIC_AFS_TRUE='#'
11330  AIX_DYNAMIC_AFS_FALSE=
11331fi
11332
11333if test "$aix" != no; then
11334
11335$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
11336
11337fi
11338
11339
11340
11341
11342
11343irix=no
11344case "$host" in
11345*-*-irix*)
11346	irix=yes
11347	;;
11348esac
11349 if test "$irix" != no; then
11350  IRIX_TRUE=
11351  IRIX_FALSE='#'
11352else
11353  IRIX_TRUE='#'
11354  IRIX_FALSE=
11355fi
11356
11357
11358
11359sunos=no
11360case "$host" in
11361*-*-solaris2.7)
11362	sunos=57
11363	;;
11364*-*-solaris2.[89] | *-*-solaris2.1[0-9])
11365	sunos=58
11366	;;
11367*-*-solaris2*)
11368	sunos=50
11369	;;
11370esac
11371if test "$sunos" != no; then
11372
11373cat >>confdefs.h <<_ACEOF
11374#define SunOS $sunos
11375_ACEOF
11376
11377fi
11378
11379
11380
11381$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
11382
11383
11384
11385
11386
11387for ac_prog in 'bison -y' byacc
11388do
11389  # Extract the first word of "$ac_prog", so it can be a program name with args.
11390set dummy $ac_prog; ac_word=$2
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392$as_echo_n "checking for $ac_word... " >&6; }
11393if test "${ac_cv_prog_YACC+set}" = set; then :
11394  $as_echo_n "(cached) " >&6
11395else
11396  if test -n "$YACC"; then
11397  ac_cv_prog_YACC="$YACC" # Let the user override the test.
11398else
11399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400for as_dir in $PATH
11401do
11402  IFS=$as_save_IFS
11403  test -z "$as_dir" && as_dir=.
11404    for ac_exec_ext in '' $ac_executable_extensions; do
11405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11406    ac_cv_prog_YACC="$ac_prog"
11407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408    break 2
11409  fi
11410done
11411  done
11412IFS=$as_save_IFS
11413
11414fi
11415fi
11416YACC=$ac_cv_prog_YACC
11417if test -n "$YACC"; then
11418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11419$as_echo "$YACC" >&6; }
11420else
11421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422$as_echo "no" >&6; }
11423fi
11424
11425
11426  test -n "$YACC" && break
11427done
11428test -n "$YACC" || YACC="yacc"
11429
11430for ac_prog in flex lex
11431do
11432  # Extract the first word of "$ac_prog", so it can be a program name with args.
11433set dummy $ac_prog; ac_word=$2
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435$as_echo_n "checking for $ac_word... " >&6; }
11436if test "${ac_cv_prog_LEX+set}" = set; then :
11437  $as_echo_n "(cached) " >&6
11438else
11439  if test -n "$LEX"; then
11440  ac_cv_prog_LEX="$LEX" # Let the user override the test.
11441else
11442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443for as_dir in $PATH
11444do
11445  IFS=$as_save_IFS
11446  test -z "$as_dir" && as_dir=.
11447    for ac_exec_ext in '' $ac_executable_extensions; do
11448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11449    ac_cv_prog_LEX="$ac_prog"
11450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451    break 2
11452  fi
11453done
11454  done
11455IFS=$as_save_IFS
11456
11457fi
11458fi
11459LEX=$ac_cv_prog_LEX
11460if test -n "$LEX"; then
11461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11462$as_echo "$LEX" >&6; }
11463else
11464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465$as_echo "no" >&6; }
11466fi
11467
11468
11469  test -n "$LEX" && break
11470done
11471test -n "$LEX" || LEX=":"
11472
11473if test "x$LEX" != "x:"; then
11474  cat >conftest.l <<_ACEOF
11475%%
11476a { ECHO; }
11477b { REJECT; }
11478c { yymore (); }
11479d { yyless (1); }
11480e { yyless (input () != 0); }
11481f { unput (yytext[0]); }
11482. { BEGIN INITIAL; }
11483%%
11484#ifdef YYTEXT_POINTER
11485extern char *yytext;
11486#endif
11487int
11488main (void)
11489{
11490  return ! yylex () + ! yywrap ();
11491}
11492_ACEOF
11493{ { ac_try="$LEX conftest.l"
11494case "(($ac_try" in
11495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496  *) ac_try_echo=$ac_try;;
11497esac
11498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11499$as_echo "$ac_try_echo"; } >&5
11500  (eval "$LEX conftest.l") 2>&5
11501  ac_status=$?
11502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11503  test $ac_status = 0; }
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11505$as_echo_n "checking lex output file root... " >&6; }
11506if test "${ac_cv_prog_lex_root+set}" = set; then :
11507  $as_echo_n "(cached) " >&6
11508else
11509
11510if test -f lex.yy.c; then
11511  ac_cv_prog_lex_root=lex.yy
11512elif test -f lexyy.c; then
11513  ac_cv_prog_lex_root=lexyy
11514else
11515  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
11516fi
11517fi
11518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11519$as_echo "$ac_cv_prog_lex_root" >&6; }
11520LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11521
11522if test -z "${LEXLIB+set}"; then
11523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11524$as_echo_n "checking lex library... " >&6; }
11525if test "${ac_cv_lib_lex+set}" = set; then :
11526  $as_echo_n "(cached) " >&6
11527else
11528
11529    ac_save_LIBS=$LIBS
11530    ac_cv_lib_lex='none needed'
11531    for ac_lib in '' -lfl -ll; do
11532      LIBS="$ac_lib $ac_save_LIBS"
11533      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h.  */
11535`cat $LEX_OUTPUT_ROOT.c`
11536_ACEOF
11537if ac_fn_c_try_link "$LINENO"; then :
11538  ac_cv_lib_lex=$ac_lib
11539fi
11540rm -f core conftest.err conftest.$ac_objext \
11541    conftest$ac_exeext conftest.$ac_ext
11542      test "$ac_cv_lib_lex" != 'none needed' && break
11543    done
11544    LIBS=$ac_save_LIBS
11545
11546fi
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11548$as_echo "$ac_cv_lib_lex" >&6; }
11549  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
11550fi
11551
11552
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11554$as_echo_n "checking whether yytext is a pointer... " >&6; }
11555if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
11556  $as_echo_n "(cached) " >&6
11557else
11558  # POSIX says lex can declare yytext either as a pointer or an array; the
11559# default is implementation-dependent.  Figure out which it is, since
11560# not all implementations provide the %pointer and %array declarations.
11561ac_cv_prog_lex_yytext_pointer=no
11562ac_save_LIBS=$LIBS
11563LIBS="$LEXLIB $ac_save_LIBS"
11564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565/* end confdefs.h.  */
11566#define YYTEXT_POINTER 1
11567`cat $LEX_OUTPUT_ROOT.c`
11568_ACEOF
11569if ac_fn_c_try_link "$LINENO"; then :
11570  ac_cv_prog_lex_yytext_pointer=yes
11571fi
11572rm -f core conftest.err conftest.$ac_objext \
11573    conftest$ac_exeext conftest.$ac_ext
11574LIBS=$ac_save_LIBS
11575
11576fi
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11578$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
11579if test $ac_cv_prog_lex_yytext_pointer = yes; then
11580
11581$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
11582
11583fi
11584rm -f conftest.l $LEX_OUTPUT_ROOT.c
11585
11586fi
11587if test "$LEX" = :; then
11588  LEX=${am_missing_run}flex
11589fi
11590for ac_prog in gawk mawk nawk awk
11591do
11592  # Extract the first word of "$ac_prog", so it can be a program name with args.
11593set dummy $ac_prog; ac_word=$2
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595$as_echo_n "checking for $ac_word... " >&6; }
11596if test "${ac_cv_prog_AWK+set}" = set; then :
11597  $as_echo_n "(cached) " >&6
11598else
11599  if test -n "$AWK"; then
11600  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11601else
11602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603for as_dir in $PATH
11604do
11605  IFS=$as_save_IFS
11606  test -z "$as_dir" && as_dir=.
11607    for ac_exec_ext in '' $ac_executable_extensions; do
11608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11609    ac_cv_prog_AWK="$ac_prog"
11610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11611    break 2
11612  fi
11613done
11614  done
11615IFS=$as_save_IFS
11616
11617fi
11618fi
11619AWK=$ac_cv_prog_AWK
11620if test -n "$AWK"; then
11621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11622$as_echo "$AWK" >&6; }
11623else
11624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11625$as_echo "no" >&6; }
11626fi
11627
11628
11629  test -n "$AWK" && break
11630done
11631
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ln -s or something else" >&5
11633$as_echo_n "checking for ln -s or something else... " >&6; }
11634if test "${ac_cv_prog_LN_S+set}" = set; then :
11635  $as_echo_n "(cached) " >&6
11636else
11637  rm -f conftestdata
11638if ln -s X conftestdata 2>/dev/null
11639then
11640  rm -f conftestdata
11641  ac_cv_prog_LN_S="ln -s"
11642else
11643  touch conftestdata1
11644  if ln conftestdata1 conftestdata2; then
11645    rm -f conftestdata*
11646    ac_cv_prog_LN_S=ln
11647  else
11648    ac_cv_prog_LN_S=cp
11649  fi
11650fi
11651fi
11652LN_S="$ac_cv_prog_LN_S"
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_LN_S" >&5
11654$as_echo "$ac_cv_prog_LN_S" >&6; }
11655
11656
11657
11658
11659# Check whether --with-mips_abi was given.
11660if test "${with_mips_abi+set}" = set; then :
11661  withval=$with_mips_abi;
11662fi
11663
11664
11665case "$host_os" in
11666irix*)
11667with_mips_abi="${with_mips_abi:-yes}"
11668if test -n "$GCC"; then
11669
11670# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
11671# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
11672#
11673# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
11674# GCC and revert back to O32. The same goes if O32 is asked for - old
11675# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
11676#
11677# Don't you just love *all* the different SGI ABIs?
11678
11679case "${with_mips_abi}" in
11680        32|o32) abi='-mabi=32';  abilibdirext=''     ;;
11681       n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
11682        64) abi='-mabi=64';  abilibdirext='64'   ;;
11683	no) abi=''; abilibdirext='';;
11684         *) as_fn_error "\"Invalid ABI specified\"" "$LINENO" 5 ;;
11685esac
11686if test -n "$abi" ; then
11687ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the $abi option" >&5
11689$as_echo_n "checking if $CC supports the $abi option... " >&6; }
11690if { as_var=$ac_foo; eval "test \"\${$as_var+set}\" = set"; }; then :
11691  $as_echo_n "(cached) " >&6
11692else
11693
11694save_CFLAGS="$CFLAGS"
11695CFLAGS="$CFLAGS $abi"
11696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697/* end confdefs.h.  */
11698
11699int
11700main ()
11701{
11702int x;
11703  ;
11704  return 0;
11705}
11706_ACEOF
11707if ac_fn_c_try_compile "$LINENO"; then :
11708  eval $ac_foo=yes
11709else
11710  eval $ac_foo=no
11711fi
11712rm -f core conftest.err conftest.$ac_objext conftest.$ac_extCFLAGS="$save_CFLAGS"
11713
11714fi
11715
11716ac_res=`eval echo \\\$$ac_foo`
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11718$as_echo "$ac_res" >&6; }
11719if test $ac_res = no; then
11720# Try to figure out why that failed...
11721case $abi in
11722	-mabi=32)
11723	save_CFLAGS="$CFLAGS"
11724	CFLAGS="$CFLAGS -mabi=n32"
11725	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726/* end confdefs.h.  */
11727
11728int
11729main ()
11730{
11731int x;
11732  ;
11733  return 0;
11734}
11735_ACEOF
11736if ac_fn_c_try_compile "$LINENO"; then :
11737  ac_res=yes
11738else
11739  ac_res=no
11740fi
11741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext	CLAGS="$save_CFLAGS"
11742	if test $ac_res = yes; then
11743		# New GCC
11744		as_fn_error "$CC does not support the $with_mips_abi ABI" "$LINENO" 5
11745	fi
11746	# Old GCC
11747	abi=''
11748	abilibdirext=''
11749	;;
11750	-mabi=n32|-mabi=64)
11751		if test $with_mips_abi = yes; then
11752			# Old GCC, default to O32
11753			abi=''
11754			abilibdirext=''
11755		else
11756			# Some broken GCC
11757			as_fn_error "$CC does not support the $with_mips_abi ABI" "$LINENO" 5
11758		fi
11759	;;
11760esac
11761fi #if test $ac_res = no; then
11762fi #if test -n "$abi" ; then
11763else
11764case "${with_mips_abi}" in
11765        32|o32) abi='-32'; abilibdirext=''     ;;
11766       n32|yes) abi='-n32'; abilibdirext='32'  ;;
11767        64) abi='-64'; abilibdirext='64'   ;;
11768	no) abi=''; abilibdirext='';;
11769         *) as_fn_error "\"Invalid ABI specified\"" "$LINENO" 5 ;;
11770esac
11771fi #if test -n "$GCC"; then
11772;;
11773esac
11774
11775CC="$CC $abi"
11776libdir="$libdir$abilibdirext"
11777
11778
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
11780$as_echo_n "checking for __attribute__... " >&6; }
11781if test "${ac_cv___attribute__+set}" = set; then :
11782  $as_echo_n "(cached) " >&6
11783else
11784
11785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786/* end confdefs.h.  */
11787#include <stdlib.h>
11788static void foo(void) __attribute__ ((noreturn));
11789
11790static void
11791foo(void)
11792{
11793  exit(1);
11794}
11795
11796_ACEOF
11797if ac_fn_c_try_compile "$LINENO"; then :
11798  ac_cv___attribute__=yes
11799else
11800  ac_cv___attribute__=no
11801fi
11802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803fi
11804
11805if test "$ac_cv___attribute__" = "yes"; then
11806
11807$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
11808
11809fi
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
11811$as_echo "$ac_cv___attribute__" >&6; }
11812
11813
11814
11815
11816
11817 if test "$enable_shared" = "yes"; then
11818  ENABLE_SHARED_TRUE=
11819  ENABLE_SHARED_FALSE='#'
11820else
11821  ENABLE_SHARED_TRUE='#'
11822  ENABLE_SHARED_FALSE=
11823fi
11824
11825
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
11827$as_echo_n "checking for ld --version-script... " >&6; }
11828if test "${rk_cv_version_script+set}" = set; then :
11829  $as_echo_n "(cached) " >&6
11830else
11831
11832  rk_cv_version_script=no
11833
11834  cat > conftest.map <<EOF
11835HEIM_GSS_V1 {
11836        global: gss*;
11837};
11838HEIM_GSS_V1_1 {
11839        global: gss_init_creds;
11840} HEIM_GSS_V1;
11841EOF
11842cat > conftest.c <<EOF
11843int gss_init_creds(int foo) { return 0; }
11844EOF
11845
11846  if { ac_try='${CC-cc} -c $CFLAGS -fPIC conftest.c'
11847  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11848  (eval $ac_try) 2>&5
11849  ac_status=$?
11850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11851  test $ac_status = 0; }; }  &&
11852     { ac_try='${CC-cc} -shared -Wl,--version-script,conftest.map $CFLAGS $LDFLAGS -o libconftestlib.so conftest.o'
11853  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11854  (eval $ac_try) 2>&5
11855  ac_status=$?
11856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11857  test $ac_status = 0; }; };
11858  then
11859    rk_cv_version_script=yes
11860  fi
11861rm -rf conftest* libconftest* .libs
11862
11863fi
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_version_script" >&5
11865$as_echo "$rk_cv_version_script" >&6; }
11866
11867if test $rk_cv_version_script = yes ; then
11868  doversioning=yes
11869  LDFLAGS_VERSION_SCRIPT="-Wl,--version-script,"
11870else
11871  doversioning=no
11872  LDFLAGS_VERSION_SCRIPT=
11873fi
11874
11875
11876 if test $doversioning = yes; then
11877  versionscript_TRUE=
11878  versionscript_FALSE='#'
11879else
11880  versionscript_TRUE='#'
11881  versionscript_FALSE=
11882fi
11883
11884
11885
11886
11887
11888
11889
11890
11891 if test "${cross_compiling}" = yes; then
11892  CROSS_COMPILE_TRUE=
11893  CROSS_COMPILE_FALSE='#'
11894else
11895  CROSS_COMPILE_TRUE='#'
11896  CROSS_COMPILE_FALSE=
11897fi
11898
11899
11900
11901# Check whether --with-cross-tools was given.
11902if test "${with_cross_tools+set}" = set; then :
11903  withval=$with_cross_tools; if test "$withval" = "yes"; then
11904		as_fn_error "Need path to cross tools" "$LINENO" 5
11905	fi
11906	with_cross_tools="${with_cross_tools}/"
11907
11908fi
11909
11910
11911if test "${cross_compiling}" != yes ; then
11912
11913   ASN1_COMPILE="\$(top_builddir)/lib/asn1/asn1_compile\$(EXEEXT)"
11914   SLC="\$(top_builddir)/lib/sl/slc"
11915
11916   ASN1_COMPILE_DEP="\$(ASN1_COMPILE)"
11917   SLC_DEP="\$(SLC)"
11918else
11919   ASN1_COMPILE="${with_cross_tools}asn1_compile"
11920   SLC="${with_cross_tools}slc"
11921
11922   ASN1_COMPILE_DEP=
11923   SLC_DEP=
11924fi
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934$as_echo "#define HEIM_WEAK_CRYPTO 1" >>confdefs.h
11935
11936
11937
11938
11939# Check whether --with-openldap was given.
11940if test "${with_openldap+set}" = set; then :
11941  withval=$with_openldap;
11942fi
11943
11944
11945# Check whether --with-openldap-lib was given.
11946if test "${with_openldap_lib+set}" = set; then :
11947  withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
11948  as_fn_error "No argument for --with-openldap-lib" "$LINENO" 5
11949elif test "X$with_openldap" = "X"; then
11950  with_openldap=yes
11951fi
11952fi
11953
11954
11955# Check whether --with-openldap-include was given.
11956if test "${with_openldap_include+set}" = set; then :
11957  withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then
11958  as_fn_error "No argument for --with-openldap-include" "$LINENO" 5
11959elif test "X$with_openldap" = "X"; then
11960  with_openldap=yes
11961fi
11962fi
11963
11964
11965# Check whether --with-openldap-config was given.
11966if test "${with_openldap_config+set}" = set; then :
11967  withval=$with_openldap_config;
11968fi
11969
11970
11971
11972
11973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openldap" >&5
11974$as_echo_n "checking for openldap... " >&6; }
11975
11976case "$with_openldap" in
11977yes|"") d='' ;;
11978no)	d= ;;
11979*)	d="$with_openldap" ;;
11980esac
11981
11982header_dirs=
11983lib_dirs=
11984for i in $d; do
11985	if test "$with_openldap_include" = ""; then
11986		if test -d "$i/include/openldap"; then
11987			header_dirs="$header_dirs $i/include/openldap"
11988		fi
11989		if test -d "$i/include"; then
11990			header_dirs="$header_dirs $i/include"
11991		fi
11992	fi
11993	if test "$with_openldap_lib" = ""; then
11994		if test -d "$i/lib$abilibdirext"; then
11995			lib_dirs="$lib_dirs $i/lib$abilibdirext"
11996		fi
11997	fi
11998done
11999
12000if test "$with_openldap_include"; then
12001	header_dirs="$with_openldap_include $header_dirs"
12002fi
12003if test "$with_openldap_lib"; then
12004	lib_dirs="$with_openldap_lib $lib_dirs"
12005fi
12006
12007if test "$with_openldap_config" = ""; then
12008	with_openldap_config=''
12009fi
12010
12011openldap_cflags=
12012openldap_libs=
12013
12014case "$with_openldap_config" in
12015yes|no|""|"")
12016	if test -f $with_openldap/bin/ ; then
12017		with_openldap_config=$with_openldap/bin/
12018	fi
12019	;;
12020esac
12021
12022case "$with_openldap_config" in
12023yes|no|"")
12024	;;
12025*)
12026	openldap_cflags="`$with_openldap_config --cflags 2>&1`"
12027	openldap_libs="`$with_openldap_config --libs 2>&1`"
12028	;;
12029esac
12030
12031found=no
12032if test "$with_openldap" != no; then
12033	save_CFLAGS="$CFLAGS"
12034	save_LIBS="$LIBS"
12035	if test "$openldap_cflags" -a "$openldap_libs"; then
12036		CFLAGS="$openldap_cflags $save_CFLAGS"
12037		LIBS="$openldap_libs $save_LIBS"
12038		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039/* end confdefs.h.  */
12040#include <lber.h>
12041#include <ldap.h>
12042int
12043main ()
12044{
12045
12046  ;
12047  return 0;
12048}
12049_ACEOF
12050if ac_fn_c_try_link "$LINENO"; then :
12051
12052			INCLUDE_openldap="$openldap_cflags"
12053			LIB_openldap="$openldap_libs"
12054			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_openldap_config" >&5
12055$as_echo "from $with_openldap_config" >&6; }
12056			found=yes
12057fi
12058rm -f core conftest.err conftest.$ac_objext \
12059    conftest$ac_exeext conftest.$ac_ext
12060	fi
12061	if test "$found" = no; then
12062		ires= lres=
12063		for i in $header_dirs; do
12064			CFLAGS="-I$i $save_CFLAGS"
12065			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066/* end confdefs.h.  */
12067#include <lber.h>
12068#include <ldap.h>
12069int
12070main ()
12071{
12072
12073  ;
12074  return 0;
12075}
12076_ACEOF
12077if ac_fn_c_try_compile "$LINENO"; then :
12078  ires=$i;break
12079fi
12080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081		done
12082		for i in $lib_dirs; do
12083			LIBS="-L$i -lldap -llber  $save_LIBS"
12084			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085/* end confdefs.h.  */
12086#include <lber.h>
12087#include <ldap.h>
12088int
12089main ()
12090{
12091
12092  ;
12093  return 0;
12094}
12095_ACEOF
12096if ac_fn_c_try_link "$LINENO"; then :
12097  lres=$i;break
12098fi
12099rm -f core conftest.err conftest.$ac_objext \
12100    conftest$ac_exeext conftest.$ac_ext
12101		done
12102		if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
12103			INCLUDE_openldap="-I$ires"
12104			LIB_openldap="-L$lres -lldap -llber "
12105			found=yes
12106			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
12107$as_echo "headers $ires, libraries $lres" >&6; }
12108		fi
12109	fi
12110	CFLAGS="$save_CFLAGS"
12111	LIBS="$save_LIBS"
12112fi
12113
12114if test "$found" = yes; then
12115
12116cat >>confdefs.h <<_ACEOF
12117#define OPENLDAP 1
12118_ACEOF
12119
12120	with_openldap=yes
12121else
12122	with_openldap=no
12123	INCLUDE_openldap=
12124	LIB_openldap=
12125	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126$as_echo "no" >&6; }
12127fi
12128
12129
12130
12131
12132
12133# Check whether --enable-hdb-openldap-module was given.
12134if test "${enable_hdb_openldap_module+set}" = set; then :
12135  enableval=$enable_hdb_openldap_module;
12136fi
12137
12138if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
12139
12140$as_echo "#define OPENLDAP_MODULE 1" >>confdefs.h
12141
12142fi
12143 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
12144  OPENLDAP_MODULE_TRUE=
12145  OPENLDAP_MODULE_FALSE='#'
12146else
12147  OPENLDAP_MODULE_TRUE='#'
12148  OPENLDAP_MODULE_FALSE=
12149fi
12150
12151
12152
12153# Check whether --enable-pk-init was given.
12154if test "${enable_pk_init+set}" = set; then :
12155  enableval=$enable_pk_init;
12156fi
12157
12158if test "$enable_pk_init" != no ;then
12159
12160$as_echo "#define PKINIT 1" >>confdefs.h
12161
12162fi
12163 if test "$enable_pk_init" != no; then
12164  PKINIT_TRUE=
12165  PKINIT_FALSE='#'
12166else
12167  PKINIT_TRUE='#'
12168  PKINIT_FALSE=
12169fi
12170
12171
12172# Check whether --enable-digest was given.
12173if test "${enable_digest+set}" = set; then :
12174  enableval=$enable_digest;
12175fi
12176
12177if test "$enable_digest" != no ;then
12178
12179$as_echo "#define DIGEST 1" >>confdefs.h
12180
12181fi
12182
12183# Check whether --enable-kx509 was given.
12184if test "${enable_kx509+set}" = set; then :
12185  enableval=$enable_kx509;
12186fi
12187
12188if test "$enable_kx509" != no ;then
12189
12190$as_echo "#define KX509 1" >>confdefs.h
12191
12192fi
12193
12194# Check whether --enable-krb4 was given.
12195if test "${enable_krb4+set}" = set; then :
12196  enableval=$enable_krb4;
12197fi
12198
12199if test "$enable_krb4" != no ;then
12200
12201$as_echo "#define KRB4 1" >>confdefs.h
12202
12203fi
12204
12205
12206
12207if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12208	if test -n "$ac_tool_prefix"; then
12209  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12210set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212$as_echo_n "checking for $ac_word... " >&6; }
12213if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12214  $as_echo_n "(cached) " >&6
12215else
12216  case $PKG_CONFIG in
12217  [\\/]* | ?:[\\/]*)
12218  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12219  ;;
12220  *)
12221  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222for as_dir in $PATH
12223do
12224  IFS=$as_save_IFS
12225  test -z "$as_dir" && as_dir=.
12226    for ac_exec_ext in '' $ac_executable_extensions; do
12227  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12228    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12230    break 2
12231  fi
12232done
12233  done
12234IFS=$as_save_IFS
12235
12236  ;;
12237esac
12238fi
12239PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12240if test -n "$PKG_CONFIG"; then
12241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12242$as_echo "$PKG_CONFIG" >&6; }
12243else
12244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245$as_echo "no" >&6; }
12246fi
12247
12248
12249fi
12250if test -z "$ac_cv_path_PKG_CONFIG"; then
12251  ac_pt_PKG_CONFIG=$PKG_CONFIG
12252  # Extract the first word of "pkg-config", so it can be a program name with args.
12253set dummy pkg-config; ac_word=$2
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255$as_echo_n "checking for $ac_word... " >&6; }
12256if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12257  $as_echo_n "(cached) " >&6
12258else
12259  case $ac_pt_PKG_CONFIG in
12260  [\\/]* | ?:[\\/]*)
12261  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12262  ;;
12263  *)
12264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265for as_dir in $PATH
12266do
12267  IFS=$as_save_IFS
12268  test -z "$as_dir" && as_dir=.
12269    for ac_exec_ext in '' $ac_executable_extensions; do
12270  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273    break 2
12274  fi
12275done
12276  done
12277IFS=$as_save_IFS
12278
12279  ;;
12280esac
12281fi
12282ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12283if test -n "$ac_pt_PKG_CONFIG"; then
12284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12285$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12286else
12287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288$as_echo "no" >&6; }
12289fi
12290
12291  if test "x$ac_pt_PKG_CONFIG" = x; then
12292    PKG_CONFIG=""
12293  else
12294    case $cross_compiling:$ac_tool_warned in
12295yes:)
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12298ac_tool_warned=yes ;;
12299esac
12300    PKG_CONFIG=$ac_pt_PKG_CONFIG
12301  fi
12302else
12303  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12304fi
12305
12306fi
12307if test -n "$PKG_CONFIG"; then
12308	_pkg_min_version=0.9.0
12309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12310$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12311	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12312		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313$as_echo "yes" >&6; }
12314	else
12315		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316$as_echo "no" >&6; }
12317		PKG_CONFIG=""
12318	fi
12319
12320fi
12321
12322
12323# Check whether --with-capng was given.
12324if test "${with_capng+set}" = set; then :
12325  withval=$with_capng;
12326else
12327  with_capng=check
12328fi
12329
12330if test "$with_capng" != "no"; then
12331
12332pkg_failed=no
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAPNG" >&5
12334$as_echo_n "checking for CAPNG... " >&6; }
12335
12336if test -n "$PKG_CONFIG"; then
12337    if test -n "$CAPNG_CFLAGS"; then
12338        pkg_cv_CAPNG_CFLAGS="$CAPNG_CFLAGS"
12339    else
12340        if test -n "$PKG_CONFIG" && \
12341    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5
12342  ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5
12343  ac_status=$?
12344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12345  test $ac_status = 0; }; then
12346  pkg_cv_CAPNG_CFLAGS=`$PKG_CONFIG --cflags "libcap-ng >= 0.4.0" 2>/dev/null`
12347else
12348  pkg_failed=yes
12349fi
12350    fi
12351else
12352	pkg_failed=untried
12353fi
12354if test -n "$PKG_CONFIG"; then
12355    if test -n "$CAPNG_LIBS"; then
12356        pkg_cv_CAPNG_LIBS="$CAPNG_LIBS"
12357    else
12358        if test -n "$PKG_CONFIG" && \
12359    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5
12360  ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5
12361  ac_status=$?
12362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12363  test $ac_status = 0; }; then
12364  pkg_cv_CAPNG_LIBS=`$PKG_CONFIG --libs "libcap-ng >= 0.4.0" 2>/dev/null`
12365else
12366  pkg_failed=yes
12367fi
12368    fi
12369else
12370	pkg_failed=untried
12371fi
12372
12373
12374
12375if test $pkg_failed = yes; then
12376
12377if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12378        _pkg_short_errors_supported=yes
12379else
12380        _pkg_short_errors_supported=no
12381fi
12382        if test $_pkg_short_errors_supported = yes; then
12383	        CAPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"`
12384        else
12385	        CAPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"`
12386        fi
12387	# Put the nasty error message in config.log where it belongs
12388	echo "$CAPNG_PKG_ERRORS" >&5
12389
12390	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391$as_echo "no" >&6; }
12392                with_capng=no
12393elif test $pkg_failed = untried; then
12394	with_capng=no
12395else
12396	CAPNG_CFLAGS=$pkg_cv_CAPNG_CFLAGS
12397	CAPNG_LIBS=$pkg_cv_CAPNG_LIBS
12398        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12399$as_echo "yes" >&6; }
12400	with_capng=yes
12401fi
12402fi
12403if test "$with_capng" = "yes"; then
12404
12405cat >>confdefs.h <<_ACEOF
12406#define HAVE_CAPNG 1
12407_ACEOF
12408
12409fi
12410 if test "$with_capng" != "no"; then
12411  HAVE_CAPNG_TRUE=
12412  HAVE_CAPNG_FALSE='#'
12413else
12414  HAVE_CAPNG_TRUE='#'
12415  HAVE_CAPNG_FALSE=
12416fi
12417
12418
12419
12420
12421
12422
12423# Check whether --with-sqlite3 was given.
12424if test "${with_sqlite3+set}" = set; then :
12425  withval=$with_sqlite3;
12426fi
12427
12428
12429# Check whether --with-sqlite3-lib was given.
12430if test "${with_sqlite3_lib+set}" = set; then :
12431  withval=$with_sqlite3_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
12432  as_fn_error "No argument for --with-sqlite3-lib" "$LINENO" 5
12433elif test "X$with_sqlite3" = "X"; then
12434  with_sqlite3=yes
12435fi
12436fi
12437
12438
12439# Check whether --with-sqlite3-include was given.
12440if test "${with_sqlite3_include+set}" = set; then :
12441  withval=$with_sqlite3_include; if test "$withval" = "yes" -o "$withval" = "no"; then
12442  as_fn_error "No argument for --with-sqlite3-include" "$LINENO" 5
12443elif test "X$with_sqlite3" = "X"; then
12444  with_sqlite3=yes
12445fi
12446fi
12447
12448
12449# Check whether --with-sqlite3-config was given.
12450if test "${with_sqlite3_config+set}" = set; then :
12451  withval=$with_sqlite3_config;
12452fi
12453
12454
12455
12456
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
12458$as_echo_n "checking for sqlite3... " >&6; }
12459
12460case "$with_sqlite3" in
12461yes|"") d='' ;;
12462no)	d= ;;
12463*)	d="$with_sqlite3" ;;
12464esac
12465
12466header_dirs=
12467lib_dirs=
12468for i in $d; do
12469	if test "$with_sqlite3_include" = ""; then
12470		if test -d "$i/include/sqlite3"; then
12471			header_dirs="$header_dirs $i/include/sqlite3"
12472		fi
12473		if test -d "$i/include"; then
12474			header_dirs="$header_dirs $i/include"
12475		fi
12476	fi
12477	if test "$with_sqlite3_lib" = ""; then
12478		if test -d "$i/lib$abilibdirext"; then
12479			lib_dirs="$lib_dirs $i/lib$abilibdirext"
12480		fi
12481	fi
12482done
12483
12484if test "$with_sqlite3_include"; then
12485	header_dirs="$with_sqlite3_include $header_dirs"
12486fi
12487if test "$with_sqlite3_lib"; then
12488	lib_dirs="$with_sqlite3_lib $lib_dirs"
12489fi
12490
12491if test "$with_sqlite3_config" = ""; then
12492	with_sqlite3_config=''
12493fi
12494
12495sqlite3_cflags=
12496sqlite3_libs=
12497
12498case "$with_sqlite3_config" in
12499yes|no|""|"")
12500	if test -f $with_sqlite3/bin/ ; then
12501		with_sqlite3_config=$with_sqlite3/bin/
12502	fi
12503	;;
12504esac
12505
12506case "$with_sqlite3_config" in
12507yes|no|"")
12508	;;
12509*)
12510	sqlite3_cflags="`$with_sqlite3_config --cflags 2>&1`"
12511	sqlite3_libs="`$with_sqlite3_config --libs 2>&1`"
12512	;;
12513esac
12514
12515found=no
12516if test "$with_sqlite3" != no; then
12517	save_CFLAGS="$CFLAGS"
12518	save_LIBS="$LIBS"
12519	if test "$sqlite3_cflags" -a "$sqlite3_libs"; then
12520		CFLAGS="$sqlite3_cflags $save_CFLAGS"
12521		LIBS="$sqlite3_libs $save_LIBS"
12522		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523/* end confdefs.h.  */
12524#include <sqlite3.h>
12525#ifndef SQLITE_OPEN_CREATE
12526#error "old version"
12527#endif
12528int
12529main ()
12530{
12531
12532  ;
12533  return 0;
12534}
12535_ACEOF
12536if ac_fn_c_try_link "$LINENO"; then :
12537
12538			INCLUDE_sqlite3="$sqlite3_cflags"
12539			LIB_sqlite3="$sqlite3_libs"
12540			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_sqlite3_config" >&5
12541$as_echo "from $with_sqlite3_config" >&6; }
12542			found=yes
12543fi
12544rm -f core conftest.err conftest.$ac_objext \
12545    conftest$ac_exeext conftest.$ac_ext
12546	fi
12547	if test "$found" = no; then
12548		ires= lres=
12549		for i in $header_dirs; do
12550			CFLAGS="-I$i $save_CFLAGS"
12551			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552/* end confdefs.h.  */
12553#include <sqlite3.h>
12554#ifndef SQLITE_OPEN_CREATE
12555#error "old version"
12556#endif
12557int
12558main ()
12559{
12560
12561  ;
12562  return 0;
12563}
12564_ACEOF
12565if ac_fn_c_try_compile "$LINENO"; then :
12566  ires=$i;break
12567fi
12568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12569		done
12570		for i in $lib_dirs; do
12571			LIBS="-L$i -lsqlite3  $save_LIBS"
12572			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573/* end confdefs.h.  */
12574#include <sqlite3.h>
12575#ifndef SQLITE_OPEN_CREATE
12576#error "old version"
12577#endif
12578int
12579main ()
12580{
12581
12582  ;
12583  return 0;
12584}
12585_ACEOF
12586if ac_fn_c_try_link "$LINENO"; then :
12587  lres=$i;break
12588fi
12589rm -f core conftest.err conftest.$ac_objext \
12590    conftest$ac_exeext conftest.$ac_ext
12591		done
12592		if test "$ires" -a "$lres" -a "$with_sqlite3" != "no"; then
12593			INCLUDE_sqlite3="-I$ires"
12594			LIB_sqlite3="-L$lres -lsqlite3 "
12595			found=yes
12596			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
12597$as_echo "headers $ires, libraries $lres" >&6; }
12598		fi
12599	fi
12600	CFLAGS="$save_CFLAGS"
12601	LIBS="$save_LIBS"
12602fi
12603
12604if test "$found" = yes; then
12605
12606cat >>confdefs.h <<_ACEOF
12607#define SQLITE3 1
12608_ACEOF
12609
12610	with_sqlite3=yes
12611else
12612	with_sqlite3=no
12613	INCLUDE_sqlite3=
12614	LIB_sqlite3=
12615	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616$as_echo "no" >&6; }
12617fi
12618
12619
12620
12621
12622
12623if test "X$with_sqlite3" != Xyes ; then
12624   INCLUDE_sqlite3="-I\$(top_srcdir)/lib/sqlite"
12625   LIB_sqlite3="\$(top_builddir)/lib/sqlite/libheimsqlite.la"
12626fi
12627 if test "X$with_sqlite3" = Xyes; then
12628  SQLITE3_TRUE=
12629  SQLITE3_FALSE='#'
12630else
12631  SQLITE3_TRUE='#'
12632  SQLITE3_FALSE=
12633fi
12634
12635
12636# Check whether --enable-sqlite-cache was given.
12637if test "${enable_sqlite_cache+set}" = set; then :
12638  enableval=$enable_sqlite_cache;
12639fi
12640
12641if test "$enable_sqlite_cache" != no; then
12642
12643$as_echo "#define HAVE_SCC 1" >>confdefs.h
12644
12645fi
12646 if test "$enable_sqlite_cache" != no; then
12647  have_scc_TRUE=
12648  have_scc_FALSE='#'
12649else
12650  have_scc_TRUE='#'
12651  have_scc_FALSE=
12652fi
12653
12654
12655
12656
12657
12658# Check whether --with-libintl was given.
12659if test "${with_libintl+set}" = set; then :
12660  withval=$with_libintl;
12661fi
12662
12663
12664# Check whether --with-libintl-lib was given.
12665if test "${with_libintl_lib+set}" = set; then :
12666  withval=$with_libintl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
12667  as_fn_error "No argument for --with-libintl-lib" "$LINENO" 5
12668elif test "X$with_libintl" = "X"; then
12669  with_libintl=yes
12670fi
12671fi
12672
12673
12674# Check whether --with-libintl-include was given.
12675if test "${with_libintl_include+set}" = set; then :
12676  withval=$with_libintl_include; if test "$withval" = "yes" -o "$withval" = "no"; then
12677  as_fn_error "No argument for --with-libintl-include" "$LINENO" 5
12678elif test "X$with_libintl" = "X"; then
12679  with_libintl=yes
12680fi
12681fi
12682
12683
12684# Check whether --with-libintl-config was given.
12685if test "${with_libintl_config+set}" = set; then :
12686  withval=$with_libintl_config;
12687fi
12688
12689
12690
12691
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl" >&5
12693$as_echo_n "checking for libintl... " >&6; }
12694
12695case "$with_libintl" in
12696yes|"") d='' ;;
12697no)	d= ;;
12698*)	d="$with_libintl" ;;
12699esac
12700
12701header_dirs=
12702lib_dirs=
12703for i in $d; do
12704	if test "$with_libintl_include" = ""; then
12705		if test -d "$i/include/libintl"; then
12706			header_dirs="$header_dirs $i/include/libintl"
12707		fi
12708		if test -d "$i/include"; then
12709			header_dirs="$header_dirs $i/include"
12710		fi
12711	fi
12712	if test "$with_libintl_lib" = ""; then
12713		if test -d "$i/lib$abilibdirext"; then
12714			lib_dirs="$lib_dirs $i/lib$abilibdirext"
12715		fi
12716	fi
12717done
12718
12719if test "$with_libintl_include"; then
12720	header_dirs="$with_libintl_include $header_dirs"
12721fi
12722if test "$with_libintl_lib"; then
12723	lib_dirs="$with_libintl_lib $lib_dirs"
12724fi
12725
12726if test "$with_libintl_config" = ""; then
12727	with_libintl_config=''
12728fi
12729
12730libintl_cflags=
12731libintl_libs=
12732
12733case "$with_libintl_config" in
12734yes|no|""|"")
12735	if test -f $with_libintl/bin/ ; then
12736		with_libintl_config=$with_libintl/bin/
12737	fi
12738	;;
12739esac
12740
12741case "$with_libintl_config" in
12742yes|no|"")
12743	;;
12744*)
12745	libintl_cflags="`$with_libintl_config --cflags 2>&1`"
12746	libintl_libs="`$with_libintl_config --libs 2>&1`"
12747	;;
12748esac
12749
12750found=no
12751if test "$with_libintl" != no; then
12752	save_CFLAGS="$CFLAGS"
12753	save_LIBS="$LIBS"
12754	if test "$libintl_cflags" -a "$libintl_libs"; then
12755		CFLAGS="$libintl_cflags $save_CFLAGS"
12756		LIBS="$libintl_libs $save_LIBS"
12757		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758/* end confdefs.h.  */
12759#include <libintl.h>
12760int
12761main ()
12762{
12763
12764  ;
12765  return 0;
12766}
12767_ACEOF
12768if ac_fn_c_try_link "$LINENO"; then :
12769
12770			INCLUDE_libintl="$libintl_cflags"
12771			LIB_libintl="$libintl_libs"
12772			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_libintl_config" >&5
12773$as_echo "from $with_libintl_config" >&6; }
12774			found=yes
12775fi
12776rm -f core conftest.err conftest.$ac_objext \
12777    conftest$ac_exeext conftest.$ac_ext
12778	fi
12779	if test "$found" = no; then
12780		ires= lres=
12781		for i in $header_dirs; do
12782			CFLAGS="-I$i $save_CFLAGS"
12783			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784/* end confdefs.h.  */
12785#include <libintl.h>
12786int
12787main ()
12788{
12789
12790  ;
12791  return 0;
12792}
12793_ACEOF
12794if ac_fn_c_try_compile "$LINENO"; then :
12795  ires=$i;break
12796fi
12797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798		done
12799		for i in $lib_dirs; do
12800			LIBS="-L$i -lintl  $save_LIBS"
12801			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802/* end confdefs.h.  */
12803#include <libintl.h>
12804int
12805main ()
12806{
12807
12808  ;
12809  return 0;
12810}
12811_ACEOF
12812if ac_fn_c_try_link "$LINENO"; then :
12813  lres=$i;break
12814fi
12815rm -f core conftest.err conftest.$ac_objext \
12816    conftest$ac_exeext conftest.$ac_ext
12817		done
12818		if test "$ires" -a "$lres" -a "$with_libintl" != "no"; then
12819			INCLUDE_libintl="-I$ires"
12820			LIB_libintl="-L$lres -lintl "
12821			found=yes
12822			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
12823$as_echo "headers $ires, libraries $lres" >&6; }
12824		fi
12825	fi
12826	CFLAGS="$save_CFLAGS"
12827	LIBS="$save_LIBS"
12828fi
12829
12830if test "$found" = yes; then
12831
12832cat >>confdefs.h <<_ACEOF
12833#define LIBINTL 1
12834_ACEOF
12835
12836	with_libintl=yes
12837else
12838	with_libintl=no
12839	INCLUDE_libintl=
12840	LIB_libintl=
12841	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842$as_echo "no" >&6; }
12843fi
12844
12845
12846
12847
12848
12849
12850# Check whether --with-hdbdir was given.
12851if test "${with_hdbdir+set}" = set; then :
12852  withval=$with_hdbdir;
12853else
12854  with_hdbdir=/var/heimdal
12855fi
12856
12857DIR_hdbdir="$with_hdbdir"
12858
12859
12860
12861with_krb4=no
12862
12863
12864 if false; then
12865  KRB4_TRUE=
12866  KRB4_FALSE='#'
12867else
12868  KRB4_TRUE='#'
12869  KRB4_FALSE=
12870fi
12871
12872
12873 if true; then
12874  KRB5_TRUE=
12875  KRB5_FALSE='#'
12876else
12877  KRB5_TRUE='#'
12878  KRB5_FALSE=
12879fi
12880
12881 if true; then
12882  do_roken_rename_TRUE=
12883  do_roken_rename_FALSE='#'
12884else
12885  do_roken_rename_TRUE='#'
12886  do_roken_rename_FALSE=
12887fi
12888
12889
12890
12891$as_echo "#define SUPPORT_INETD 1" >>confdefs.h
12892
12893
12894
12895$as_echo "#define KRB5 1" >>confdefs.h
12896
12897
12898crypto_lib=unknown
12899
12900
12901# Check whether --with-openssl was given.
12902if test "${with_openssl+set}" = set; then :
12903  withval=$with_openssl;
12904fi
12905
12906
12907
12908# Check whether --with-openssl-lib was given.
12909if test "${with_openssl_lib+set}" = set; then :
12910  withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
12911  as_fn_error "No argument for --with-openssl-lib" "$LINENO" 5
12912elif test "X$with_openssl" = "X"; then
12913  with_openssl=yes
12914fi
12915fi
12916
12917
12918
12919# Check whether --with-openssl-include was given.
12920if test "${with_openssl_include+set}" = set; then :
12921  withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then
12922  as_fn_error "No argument for --with-openssl-include" "$LINENO" 5
12923elif test "X$with_openssl" = "X"; then
12924  with_openssl=yes
12925fi
12926fi
12927
12928
12929case "$with_openssl" in
12930yes)	;;
12931no)	;;
12932"")	;;
12933*)	if test "$with_openssl_include" = ""; then
12934		with_openssl_include="$with_openssl/include"
12935	fi
12936	if test "$with_openssl_lib" = ""; then
12937		with_openssl_lib="$with_openssl/lib$abilibdirext"
12938	fi
12939	;;
12940esac
12941
12942
12943DIR_hcrypto=
12944
12945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library" >&5
12946$as_echo_n "checking for crypto library... " >&6; }
12947
12948openssl=no
12949
12950if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
12951	save_CPPFLAGS="$CPPFLAGS"
12952	save_LIBS="$LIBS"
12953
12954	cdirs= clibs=
12955	for i in $LIB_krb4; do
12956		case "$i" in
12957		-L*) cdirs="$cdirs $i";;
12958		-l*) clibs="$clibs $i";;
12959		esac
12960	done
12961
12962	ires=
12963	for i in $INCLUDE_krb4; do
12964		CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
12965		for j in $cdirs; do
12966			for k in $clibs; do
12967				LIBS="$j $k $save_LIBS"
12968				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969/* end confdefs.h.  */
12970
12971		#undef KRB5 /* makes md4.h et al unhappy */
12972		#ifdef HAVE_OPENSSL
12973		#ifdef HAVE_SYS_TYPES_H
12974		#include <sys/types.h>
12975		#endif
12976		#include <openssl/evp.h>
12977		#include <openssl/md4.h>
12978		#include <openssl/md5.h>
12979		#include <openssl/sha.h>
12980		#include <openssl/des.h>
12981		#include <openssl/rc4.h>
12982		#include <openssl/aes.h>
12983		#include <openssl/ec.h>
12984		#include <openssl/engine.h>
12985		#include <openssl/ui.h>
12986		#include <openssl/rand.h>
12987		#include <openssl/hmac.h>
12988		#include <openssl/pkcs12.h>
12989		#else
12990		#include <hcrypto/evp.h>
12991		#include <hcrypto/md4.h>
12992		#include <hcrypto/md5.h>
12993		#include <hcrypto/sha.h>
12994		#include <hcrypto/des.h>
12995		#include <hcrypto/rc4.h>
12996		#include <hcrypto/aes.h>
12997		#include <hcrypto/engine.h>
12998		#include <hcrypto/hmac.h>
12999		#include <hcrypto/pkcs12.h>
13000		#endif
13001
13002int
13003main ()
13004{
13005
13006		void *schedule = 0;
13007		EVP_MD_CTX mdctx;
13008
13009		EVP_md4();
13010		EVP_md5();
13011		EVP_sha1();
13012		EVP_sha256();
13013
13014		EVP_MD_CTX_init(&mdctx);
13015		EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0);
13016		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
13017		UI_UTIL_read_pw_string(0,0,0,0);
13018		RAND_status();
13019		#ifdef HAVE_OPENSSL
13020		EC_KEY_new();
13021		#endif
13022
13023		OpenSSL_add_all_algorithms();
13024		AES_encrypt(0,0,0);
13025		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
13026		RC4(0, 0, 0, 0);
13027  ;
13028  return 0;
13029}
13030_ACEOF
13031if ac_fn_c_try_link "$LINENO"; then :
13032  openssl=yes ires="$i" lres="$j $k"; break 3
13033fi
13034rm -f core conftest.err conftest.$ac_objext \
13035    conftest$ac_exeext conftest.$ac_ext
13036			done
13037		done
13038		CFLAGS="$i $save_CFLAGS"
13039		for j in $cdirs; do
13040			for k in $clibs; do
13041				LIBS="$j $k $save_LIBS"
13042				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043/* end confdefs.h.  */
13044
13045		#undef KRB5 /* makes md4.h et al unhappy */
13046		#ifdef HAVE_OPENSSL
13047		#ifdef HAVE_SYS_TYPES_H
13048		#include <sys/types.h>
13049		#endif
13050		#include <openssl/evp.h>
13051		#include <openssl/md4.h>
13052		#include <openssl/md5.h>
13053		#include <openssl/sha.h>
13054		#include <openssl/des.h>
13055		#include <openssl/rc4.h>
13056		#include <openssl/aes.h>
13057		#include <openssl/ec.h>
13058		#include <openssl/engine.h>
13059		#include <openssl/ui.h>
13060		#include <openssl/rand.h>
13061		#include <openssl/hmac.h>
13062		#include <openssl/pkcs12.h>
13063		#else
13064		#include <hcrypto/evp.h>
13065		#include <hcrypto/md4.h>
13066		#include <hcrypto/md5.h>
13067		#include <hcrypto/sha.h>
13068		#include <hcrypto/des.h>
13069		#include <hcrypto/rc4.h>
13070		#include <hcrypto/aes.h>
13071		#include <hcrypto/engine.h>
13072		#include <hcrypto/hmac.h>
13073		#include <hcrypto/pkcs12.h>
13074		#endif
13075
13076int
13077main ()
13078{
13079
13080		void *schedule = 0;
13081		EVP_MD_CTX mdctx;
13082
13083		EVP_md4();
13084		EVP_md5();
13085		EVP_sha1();
13086		EVP_sha256();
13087
13088		EVP_MD_CTX_init(&mdctx);
13089		EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0);
13090		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
13091		UI_UTIL_read_pw_string(0,0,0,0);
13092		RAND_status();
13093		#ifdef HAVE_OPENSSL
13094		EC_KEY_new();
13095		#endif
13096
13097		OpenSSL_add_all_algorithms();
13098		AES_encrypt(0,0,0);
13099		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
13100		RC4(0, 0, 0, 0);
13101  ;
13102  return 0;
13103}
13104_ACEOF
13105if ac_fn_c_try_link "$LINENO"; then :
13106  openssl=no ires="$i" lres="$j $k"; break 3
13107fi
13108rm -f core conftest.err conftest.$ac_objext \
13109    conftest$ac_exeext conftest.$ac_ext
13110			done
13111		done
13112	done
13113
13114	CFLAGS="$save_CFLAGS"
13115	LIBS="$save_LIBS"
13116	if test "$ires" -a "$lres"; then
13117		INCLUDE_hcrypto="$ires"
13118		LIB_hcrypto="$lres"
13119		crypto_lib=krb4
13120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: same as krb4" >&5
13121$as_echo "same as krb4" >&6; }
13122		LIB_hcrypto_a='$(LIB_hcrypto)'
13123		LIB_hcrypto_so='$(LIB_hcrypto)'
13124		LIB_hcrypto_appl='$(LIB_hcrypto)'
13125	fi
13126fi
13127
13128if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
13129	save_CFLAGS="$CFLAGS"
13130	save_LIBS="$LIBS"
13131	INCLUDE_hcrypto=
13132	LIB_hcrypto=
13133	if test "$with_openssl_include" != ""; then
13134		INCLUDE_hcrypto="-I${with_openssl_include}"
13135	fi
13136	if test "$with_openssl_lib" != ""; then
13137		LIB_hcrypto="-L${with_openssl_lib}"
13138	fi
13139	CFLAGS="-DHAVE_OPENSSL ${INCLUDE_hcrypto} ${CFLAGS}"
13140	saved_LIB_hcrypto="$LIB_hcrypto"
13141	for lres in "" "-ldl" "-lnsl -lsocket" "-lnsl -lsocket -ldl"; do
13142		LIB_hcrypto="${saved_LIB_hcrypto} -lcrypto $lres"
13143		LIB_hcrypto_a="$LIB_hcrypto"
13144		LIB_hcrypto_so="$LIB_hcrypto"
13145		LIB_hcrypto_appl="$LIB_hcrypto"
13146		LIBS="${LIBS} ${LIB_hcrypto}"
13147		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148/* end confdefs.h.  */
13149
13150		#undef KRB5 /* makes md4.h et al unhappy */
13151		#ifdef HAVE_OPENSSL
13152		#ifdef HAVE_SYS_TYPES_H
13153		#include <sys/types.h>
13154		#endif
13155		#include <openssl/evp.h>
13156		#include <openssl/md4.h>
13157		#include <openssl/md5.h>
13158		#include <openssl/sha.h>
13159		#include <openssl/des.h>
13160		#include <openssl/rc4.h>
13161		#include <openssl/aes.h>
13162		#include <openssl/ec.h>
13163		#include <openssl/engine.h>
13164		#include <openssl/ui.h>
13165		#include <openssl/rand.h>
13166		#include <openssl/hmac.h>
13167		#include <openssl/pkcs12.h>
13168		#else
13169		#include <hcrypto/evp.h>
13170		#include <hcrypto/md4.h>
13171		#include <hcrypto/md5.h>
13172		#include <hcrypto/sha.h>
13173		#include <hcrypto/des.h>
13174		#include <hcrypto/rc4.h>
13175		#include <hcrypto/aes.h>
13176		#include <hcrypto/engine.h>
13177		#include <hcrypto/hmac.h>
13178		#include <hcrypto/pkcs12.h>
13179		#endif
13180
13181int
13182main ()
13183{
13184
13185		void *schedule = 0;
13186		EVP_MD_CTX mdctx;
13187
13188		EVP_md4();
13189		EVP_md5();
13190		EVP_sha1();
13191		EVP_sha256();
13192
13193		EVP_MD_CTX_init(&mdctx);
13194		EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0);
13195		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
13196		UI_UTIL_read_pw_string(0,0,0,0);
13197		RAND_status();
13198		#ifdef HAVE_OPENSSL
13199		EC_KEY_new();
13200		#endif
13201
13202		OpenSSL_add_all_algorithms();
13203		AES_encrypt(0,0,0);
13204		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
13205		RC4(0, 0, 0, 0);
13206  ;
13207  return 0;
13208}
13209_ACEOF
13210if ac_fn_c_try_link "$LINENO"; then :
13211
13212			crypto_lib=libcrypto openssl=yes
13213			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libcrypto" >&5
13214$as_echo "libcrypto" >&6; }
13215
13216fi
13217rm -f core conftest.err conftest.$ac_objext \
13218    conftest$ac_exeext conftest.$ac_ext
13219		if test "$crypto_lib" = libcrypto ; then
13220			break;
13221		fi
13222	done
13223	CFLAGS="$save_CFLAGS"
13224	LIBS="$save_LIBS"
13225fi
13226
13227if test "$crypto_lib" = "unknown"; then
13228
13229  DIR_hcrypto='hcrypto'
13230  LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la'
13231  LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a'
13232  LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so'
13233  LIB_hcrypto_appl="-lhcrypto"
13234
13235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: included libhcrypto" >&5
13236$as_echo "included libhcrypto" >&6; }
13237
13238fi
13239
13240if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
13241	as_fn_error "the crypto library used by krb4 lacks features
13242required by Kerberos 5; to continue, you need to install a newer
13243Kerberos 4 or configure --without-krb4" "$LINENO" 5
13244fi
13245
13246if test "$openssl" = "yes"; then
13247
13248$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13249
13250fi
13251 if test "$openssl" = yes; then
13252  HAVE_OPENSSL_TRUE=
13253  HAVE_OPENSSL_FALSE='#'
13254else
13255  HAVE_OPENSSL_TRUE='#'
13256  HAVE_OPENSSL_FALSE=
13257fi
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling threadsafe libraries" >&5
13269$as_echo_n "checking if compiling threadsafe libraries... " >&6; }
13270
13271# Check whether --enable-pthread-support was given.
13272if test "${enable_pthread_support+set}" = set; then :
13273  enableval=$enable_pthread_support;
13274else
13275  enable_pthread_support=maybe
13276fi
13277
13278
13279case "$host" in
13280*-*-solaris2*)
13281	native_pthread_support=yes
13282	if test "$GCC" = yes; then
13283		PTHREADS_CFLAGS=-pthreads
13284		PTHREAD_LIBADD=-pthreads
13285	else
13286		PTHREADS_CFLAGS=-mt
13287		PTHREAD_LDADD=-mt
13288		PTHREAD_LIBADD=-mt
13289	fi
13290	;;
13291*-*-netbsd[12]*)
13292	native_pthread_support="if running netbsd 1.6T or newer"
13293		PTHREAD_LIBADD="-lpthread"
13294	;;
13295*-*-netbsd[3456789]*)
13296	native_pthread_support="netbsd 3 uses explict pthread"
13297		PTHREAD_LIBADD="-lpthread"
13298	;;
13299*-*-freebsd[56]*)
13300	native_pthread_support=yes
13301	;;
13302*-*-freebsd[789]*)
13303	native_pthread_support=yes
13304	PTHREADS_LIBADD="-lpthread"
13305	;;
13306*-*-openbsd*)
13307	native_pthread_support=yes
13308	PTHREADS_CFLAGS=-pthread
13309	PTHREAD_LIBADD=-pthread
13310	;;
13311*-*-linux* | *-*-linux-gnu)
13312	case `uname -r` in
13313	2.*)
13314		native_pthread_support=yes
13315		PTHREADS_CFLAGS=-pthread
13316		PTHREAD_LIBADD=-pthread
13317		;;
13318	esac
13319	;;
13320*-*-kfreebsd*-gnu*)
13321	native_pthread_support=yes
13322	PTHREADS_CFLAGS=-pthread
13323	PTHREAD_LIBADD=-pthread
13324	;;
13325*-*-aix*)
13326	        	native_pthread_support=no
13327	;;
13328mips-sgi-irix6.[5-9])  # maybe works for earlier versions too
13329	native_pthread_support=yes
13330	PTHREAD_LIBADD="-lpthread"
13331	;;
13332*-*-darwin*)
13333	native_pthread_support=yes
13334	;;
13335*)
13336	native_pthread_support=no
13337	;;
13338esac
13339
13340if test "$enable_pthread_support" = maybe ; then
13341	enable_pthread_support="$native_pthread_support"
13342fi
13343
13344if test "$enable_pthread_support" != no; then
13345
13346$as_echo "#define ENABLE_PTHREAD_SUPPORT 1" >>confdefs.h
13347
13348            LIBS="$PTHREAD_LIBADD $LIBS"
13349else
13350  PTHREADS_CFLAGS=""
13351  PTHREAD_LIBADD=""
13352  PTHREADS_LIBADD=""
13353fi
13354
13355
13356
13357
13358
13359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pthread_support" >&5
13360$as_echo "$enable_pthread_support" >&6; }
13361
13362
13363# Check whether --enable-dce was given.
13364if test "${enable_dce+set}" = set; then :
13365  enableval=$enable_dce;
13366fi
13367
13368if test "$enable_dce" = yes; then
13369
13370$as_echo "#define DCE 1" >>confdefs.h
13371
13372fi
13373 if test "$enable_dce" = yes; then
13374  DCE_TRUE=
13375  DCE_FALSE='#'
13376else
13377  DCE_TRUE='#'
13378  DCE_FALSE=
13379fi
13380
13381
13382## XXX quite horrible:
13383if test -f /etc/ibmcxx.cfg; then
13384	dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
13385	dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
13386	dpagaix_ldflags=
13387else
13388	dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
13389	dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
13390	dpagaix_ldflags="-Wl,-bI:dfspag.exp"
13391fi
13392
13393
13394
13395
13396# Check whether --enable-afs-support was given.
13397if test "${enable_afs_support+set}" = set; then :
13398  enableval=$enable_afs_support;
13399fi
13400
13401if test "$enable_afs_support" = no; then
13402
13403$as_echo "#define NO_AFS 1" >>confdefs.h
13404
13405fi
13406
13407
13408# Check whether --enable-berkeley-db was given.
13409if test "${enable_berkeley_db+set}" = set; then :
13410  enableval=$enable_berkeley_db;
13411
13412fi
13413
13414
13415# Check whether --enable-ndbm-db was given.
13416if test "${enable_ndbm_db+set}" = set; then :
13417  enableval=$enable_ndbm_db;
13418
13419fi
13420
13421
13422have_ndbm=no
13423db_type=unknown
13424
13425if test "$enable_berkeley_db" != no; then
13426
13427  for ac_header in 				\
13428	db4/db.h				\
13429	db3/db.h				\
13430	db.h					\
13431	db_185.h				\
13432
13433do :
13434  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13435ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13436eval as_val=\$$as_ac_Header
13437   if test "x$as_val" = x""yes; then :
13438  cat >>confdefs.h <<_ACEOF
13439#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13440_ACEOF
13441
13442fi
13443
13444done
13445
13446
13447
13448
13449
13450
13451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create" >&5
13452$as_echo_n "checking for db_create... " >&6; }
13453if test "${ac_cv_funclib_db_create+set}" = set; then :
13454  $as_echo_n "(cached) " >&6
13455else
13456
13457if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
13458	ac_save_LIBS="$LIBS"
13459	for ac_lib in "" db4 db3 db; do
13460		case "$ac_lib" in
13461		"") ;;
13462		yes) ac_lib="" ;;
13463		no) continue ;;
13464		-l*) ;;
13465		*) ac_lib="-l$ac_lib" ;;
13466		esac
13467		LIBS=" $ac_lib  $ac_save_LIBS"
13468		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469/* end confdefs.h.  */
13470
13471  #include <stdio.h>
13472  #ifdef HAVE_DB4_DB_H
13473  #include <db4/db.h>
13474  #elif defined(HAVE_DB3_DB_H)
13475  #include <db3/db.h>
13476  #else
13477  #include <db.h>
13478  #endif
13479
13480int
13481main ()
13482{
13483db_create(NULL, NULL, 0)
13484  ;
13485  return 0;
13486}
13487_ACEOF
13488if ac_fn_c_try_link "$LINENO"; then :
13489  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
13490fi
13491rm -f core conftest.err conftest.$ac_objext \
13492    conftest$ac_exeext conftest.$ac_ext
13493	done
13494	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
13495	LIBS="$ac_save_LIBS"
13496fi
13497
13498fi
13499
13500
13501eval "ac_res=\$ac_cv_funclib_db_create"
13502
13503if false; then
13504	for ac_func in db_create
13505do :
13506  ac_fn_c_check_func "$LINENO" "db_create" "ac_cv_func_db_create"
13507if test "x$ac_cv_func_db_create" = x""yes; then :
13508  cat >>confdefs.h <<_ACEOF
13509#define HAVE_DB_CREATE 1
13510_ACEOF
13511
13512fi
13513done
13514
13515fi
13516# db_create
13517eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13518eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13519eval "LIB_db_create=$ac_res"
13520
13521case "$ac_res" in
13522	yes)
13523	eval "ac_cv_func_db_create=yes"
13524	eval "LIB_db_create="
13525	cat >>confdefs.h <<_ACEOF
13526#define $ac_tr_func 1
13527_ACEOF
13528
13529	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13530$as_echo "yes" >&6; }
13531	;;
13532	no)
13533	eval "ac_cv_func_db_create=no"
13534	eval "LIB_db_create="
13535	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536$as_echo "no" >&6; }
13537	;;
13538	*)
13539	eval "ac_cv_func_db_create=yes"
13540	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13541	cat >>confdefs.h <<_ACEOF
13542#define $ac_tr_func 1
13543_ACEOF
13544
13545	cat >>confdefs.h <<_ACEOF
13546#define $ac_tr_lib 1
13547_ACEOF
13548
13549	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
13550$as_echo "yes, in $ac_res" >&6; }
13551	;;
13552esac
13553
13554
13555
13556  if test "$ac_cv_func_db_create" = "yes"; then
13557    db_type=db3
13558    if test "$ac_cv_funclib_db_create" != "yes"; then
13559      DBLIB="$ac_cv_funclib_db_create"
13560    else
13561      DBLIB=""
13562    fi
13563
13564$as_echo "#define HAVE_DB3 1" >>confdefs.h
13565
13566  else
13567
13568
13569
13570
13571
13572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen" >&5
13573$as_echo_n "checking for dbopen... " >&6; }
13574if test "${ac_cv_funclib_dbopen+set}" = set; then :
13575  $as_echo_n "(cached) " >&6
13576else
13577
13578if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
13579	ac_save_LIBS="$LIBS"
13580	for ac_lib in "" db2 db; do
13581		case "$ac_lib" in
13582		"") ;;
13583		yes) ac_lib="" ;;
13584		no) continue ;;
13585		-l*) ;;
13586		*) ac_lib="-l$ac_lib" ;;
13587		esac
13588		LIBS=" $ac_lib  $ac_save_LIBS"
13589		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590/* end confdefs.h.  */
13591
13592    #include <stdio.h>
13593    #if defined(HAVE_DB2_DB_H)
13594    #include <db2/db.h>
13595    #elif defined(HAVE_DB_185_H)
13596    #include <db_185.h>
13597    #elif defined(HAVE_DB_H)
13598    #include <db.h>
13599    #else
13600    #error no db.h
13601    #endif
13602
13603int
13604main ()
13605{
13606dbopen(NULL, 0, 0, 0, NULL)
13607  ;
13608  return 0;
13609}
13610_ACEOF
13611if ac_fn_c_try_link "$LINENO"; then :
13612  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
13613fi
13614rm -f core conftest.err conftest.$ac_objext \
13615    conftest$ac_exeext conftest.$ac_ext
13616	done
13617	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
13618	LIBS="$ac_save_LIBS"
13619fi
13620
13621fi
13622
13623
13624eval "ac_res=\$ac_cv_funclib_dbopen"
13625
13626if false; then
13627	for ac_func in dbopen
13628do :
13629  ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen"
13630if test "x$ac_cv_func_dbopen" = x""yes; then :
13631  cat >>confdefs.h <<_ACEOF
13632#define HAVE_DBOPEN 1
13633_ACEOF
13634
13635fi
13636done
13637
13638fi
13639# dbopen
13640eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13641eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13642eval "LIB_dbopen=$ac_res"
13643
13644case "$ac_res" in
13645	yes)
13646	eval "ac_cv_func_dbopen=yes"
13647	eval "LIB_dbopen="
13648	cat >>confdefs.h <<_ACEOF
13649#define $ac_tr_func 1
13650_ACEOF
13651
13652	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13653$as_echo "yes" >&6; }
13654	;;
13655	no)
13656	eval "ac_cv_func_dbopen=no"
13657	eval "LIB_dbopen="
13658	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659$as_echo "no" >&6; }
13660	;;
13661	*)
13662	eval "ac_cv_func_dbopen=yes"
13663	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13664	cat >>confdefs.h <<_ACEOF
13665#define $ac_tr_func 1
13666_ACEOF
13667
13668	cat >>confdefs.h <<_ACEOF
13669#define $ac_tr_lib 1
13670_ACEOF
13671
13672	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
13673$as_echo "yes, in $ac_res" >&6; }
13674	;;
13675esac
13676
13677
13678
13679    if test "$ac_cv_func_dbopen" = "yes"; then
13680      db_type=db1
13681      if test "$ac_cv_funclib_dbopen" != "yes"; then
13682        DBLIB="$ac_cv_funclib_dbopen"
13683      else
13684        DBLIB=""
13685      fi
13686
13687$as_echo "#define HAVE_DB1 1" >>confdefs.h
13688
13689    fi
13690  fi
13691
13692
13693  if test "$ac_cv_func_dbm_firstkey" != yes; then
13694
13695
13696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5
13697$as_echo_n "checking for dbm_firstkey... " >&6; }
13698if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then :
13699  $as_echo_n "(cached) " >&6
13700else
13701
13702if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
13703	ac_save_LIBS="$LIBS"
13704	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
13705		case "$ac_lib" in
13706		"") ;;
13707		yes) ac_lib="" ;;
13708		no) continue ;;
13709		-l*) ;;
13710		*) ac_lib="-l$ac_lib" ;;
13711		esac
13712		LIBS=" $ac_lib  $ac_save_LIBS"
13713		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714/* end confdefs.h.  */
13715
13716    #include <stdio.h>
13717    #define DB_DBM_HSEARCH 1
13718    #include <db.h>
13719    DBM *dbm;
13720
13721int
13722main ()
13723{
13724dbm_firstkey(NULL)
13725  ;
13726  return 0;
13727}
13728_ACEOF
13729if ac_fn_c_try_link "$LINENO"; then :
13730  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
13731fi
13732rm -f core conftest.err conftest.$ac_objext \
13733    conftest$ac_exeext conftest.$ac_ext
13734	done
13735	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
13736	LIBS="$ac_save_LIBS"
13737fi
13738
13739fi
13740
13741
13742eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
13743
13744if false; then
13745	for ac_func in dbm_firstkey
13746do :
13747  ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey"
13748if test "x$ac_cv_func_dbm_firstkey" = x""yes; then :
13749  cat >>confdefs.h <<_ACEOF
13750#define HAVE_DBM_FIRSTKEY 1
13751_ACEOF
13752
13753fi
13754done
13755
13756fi
13757# dbm_firstkey
13758eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13759eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13760eval "LIB_dbm_firstkey=$ac_res"
13761
13762case "$ac_res" in
13763	yes)
13764	eval "ac_cv_func_dbm_firstkey=yes"
13765	eval "LIB_dbm_firstkey="
13766	cat >>confdefs.h <<_ACEOF
13767#define $ac_tr_func 1
13768_ACEOF
13769
13770	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13771$as_echo "yes" >&6; }
13772	;;
13773	no)
13774	eval "ac_cv_func_dbm_firstkey=no"
13775	eval "LIB_dbm_firstkey="
13776	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777$as_echo "no" >&6; }
13778	;;
13779	*)
13780	eval "ac_cv_func_dbm_firstkey=yes"
13781	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13782	cat >>confdefs.h <<_ACEOF
13783#define $ac_tr_func 1
13784_ACEOF
13785
13786	cat >>confdefs.h <<_ACEOF
13787#define $ac_tr_lib 1
13788_ACEOF
13789
13790	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
13791$as_echo "yes, in $ac_res" >&6; }
13792	;;
13793esac
13794
13795
13796
13797    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
13798      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
13799        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
13800      else
13801        LIB_NDBM=""
13802      fi
13803
13804$as_echo "#define HAVE_DB_NDBM 1" >>confdefs.h
13805
13806
13807$as_echo "#define HAVE_NEW_DB 1" >>confdefs.h
13808
13809    else
13810      $as_unset ac_cv_func_dbm_firstkey
13811      $as_unset ac_cv_funclib_dbm_firstkey
13812    fi
13813  fi
13814
13815fi # berkeley db
13816
13817if test "$enable_ndbm_db" != "no"; then
13818
13819  if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
13820
13821    for ac_header in 				\
13822  	dbm.h					\
13823  	ndbm.h					\
13824
13825do :
13826  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13827ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13828eval as_val=\$$as_ac_Header
13829   if test "x$as_val" = x""yes; then :
13830  cat >>confdefs.h <<_ACEOF
13831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13832_ACEOF
13833
13834fi
13835
13836done
13837
13838
13839
13840
13841
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5
13843$as_echo_n "checking for dbm_firstkey... " >&6; }
13844if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then :
13845  $as_echo_n "(cached) " >&6
13846else
13847
13848if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
13849	ac_save_LIBS="$LIBS"
13850	for ac_lib in "" ndbm; do
13851		case "$ac_lib" in
13852		"") ;;
13853		yes) ac_lib="" ;;
13854		no) continue ;;
13855		-l*) ;;
13856		*) ac_lib="-l$ac_lib" ;;
13857		esac
13858		LIBS=" $ac_lib  $ac_save_LIBS"
13859		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860/* end confdefs.h.  */
13861
13862    #include <stdio.h>
13863    #if defined(HAVE_NDBM_H)
13864    #include <ndbm.h>
13865    #elif defined(HAVE_DBM_H)
13866    #include <dbm.h>
13867    #endif
13868    DBM *dbm;
13869
13870int
13871main ()
13872{
13873dbm_firstkey(NULL)
13874  ;
13875  return 0;
13876}
13877_ACEOF
13878if ac_fn_c_try_link "$LINENO"; then :
13879  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
13880fi
13881rm -f core conftest.err conftest.$ac_objext \
13882    conftest$ac_exeext conftest.$ac_ext
13883	done
13884	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
13885	LIBS="$ac_save_LIBS"
13886fi
13887
13888fi
13889
13890
13891eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
13892
13893if false; then
13894	for ac_func in dbm_firstkey
13895do :
13896  ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey"
13897if test "x$ac_cv_func_dbm_firstkey" = x""yes; then :
13898  cat >>confdefs.h <<_ACEOF
13899#define HAVE_DBM_FIRSTKEY 1
13900_ACEOF
13901
13902fi
13903done
13904
13905fi
13906# dbm_firstkey
13907eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13908eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13909eval "LIB_dbm_firstkey=$ac_res"
13910
13911case "$ac_res" in
13912	yes)
13913	eval "ac_cv_func_dbm_firstkey=yes"
13914	eval "LIB_dbm_firstkey="
13915	cat >>confdefs.h <<_ACEOF
13916#define $ac_tr_func 1
13917_ACEOF
13918
13919	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13920$as_echo "yes" >&6; }
13921	;;
13922	no)
13923	eval "ac_cv_func_dbm_firstkey=no"
13924	eval "LIB_dbm_firstkey="
13925	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926$as_echo "no" >&6; }
13927	;;
13928	*)
13929	eval "ac_cv_func_dbm_firstkey=yes"
13930	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13931	cat >>confdefs.h <<_ACEOF
13932#define $ac_tr_func 1
13933_ACEOF
13934
13935	cat >>confdefs.h <<_ACEOF
13936#define $ac_tr_lib 1
13937_ACEOF
13938
13939	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
13940$as_echo "yes, in $ac_res" >&6; }
13941	;;
13942esac
13943
13944
13945
13946    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
13947      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
13948        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
13949      else
13950        LIB_NDBM=""
13951      fi
13952
13953$as_echo "#define HAVE_NDBM 1" >>confdefs.h
13954      have_ndbm=yes
13955      if test "$db_type" = "unknown"; then
13956        db_type=ndbm
13957        DBLIB="$LIB_NDBM"
13958      fi
13959    else
13960
13961      $as_unset ac_cv_func_dbm_firstkey
13962      $as_unset ac_cv_funclib_dbm_firstkey
13963
13964      for ac_header in 				\
13965  	  gdbm/ndbm.h				\
13966
13967do :
13968  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13969ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13970eval as_val=\$$as_ac_Header
13971   if test "x$as_val" = x""yes; then :
13972  cat >>confdefs.h <<_ACEOF
13973#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13974_ACEOF
13975
13976fi
13977
13978done
13979
13980
13981
13982
13983
13984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5
13985$as_echo_n "checking for dbm_firstkey... " >&6; }
13986if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then :
13987  $as_echo_n "(cached) " >&6
13988else
13989
13990if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
13991	ac_save_LIBS="$LIBS"
13992	for ac_lib in "" gdbm; do
13993		case "$ac_lib" in
13994		"") ;;
13995		yes) ac_lib="" ;;
13996		no) continue ;;
13997		-l*) ;;
13998		*) ac_lib="-l$ac_lib" ;;
13999		esac
14000		LIBS=" $ac_lib  $ac_save_LIBS"
14001		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002/* end confdefs.h.  */
14003
14004      #include <stdio.h>
14005      #include <gdbm/ndbm.h>
14006      DBM *dbm;
14007
14008int
14009main ()
14010{
14011dbm_firstkey(NULL)
14012  ;
14013  return 0;
14014}
14015_ACEOF
14016if ac_fn_c_try_link "$LINENO"; then :
14017  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
14018fi
14019rm -f core conftest.err conftest.$ac_objext \
14020    conftest$ac_exeext conftest.$ac_ext
14021	done
14022	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
14023	LIBS="$ac_save_LIBS"
14024fi
14025
14026fi
14027
14028
14029eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
14030
14031if false; then
14032	for ac_func in dbm_firstkey
14033do :
14034  ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey"
14035if test "x$ac_cv_func_dbm_firstkey" = x""yes; then :
14036  cat >>confdefs.h <<_ACEOF
14037#define HAVE_DBM_FIRSTKEY 1
14038_ACEOF
14039
14040fi
14041done
14042
14043fi
14044# dbm_firstkey
14045eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14046eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14047eval "LIB_dbm_firstkey=$ac_res"
14048
14049case "$ac_res" in
14050	yes)
14051	eval "ac_cv_func_dbm_firstkey=yes"
14052	eval "LIB_dbm_firstkey="
14053	cat >>confdefs.h <<_ACEOF
14054#define $ac_tr_func 1
14055_ACEOF
14056
14057	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14058$as_echo "yes" >&6; }
14059	;;
14060	no)
14061	eval "ac_cv_func_dbm_firstkey=no"
14062	eval "LIB_dbm_firstkey="
14063	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064$as_echo "no" >&6; }
14065	;;
14066	*)
14067	eval "ac_cv_func_dbm_firstkey=yes"
14068	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14069	cat >>confdefs.h <<_ACEOF
14070#define $ac_tr_func 1
14071_ACEOF
14072
14073	cat >>confdefs.h <<_ACEOF
14074#define $ac_tr_lib 1
14075_ACEOF
14076
14077	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
14078$as_echo "yes, in $ac_res" >&6; }
14079	;;
14080esac
14081
14082
14083
14084      if test "$ac_cv_func_dbm_firstkey" = "yes"; then
14085        if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
14086  	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
14087        else
14088  	LIB_NDBM=""
14089        fi
14090
14091$as_echo "#define HAVE_NDBM 1" >>confdefs.h
14092        have_ndbm=yes
14093        if test "$db_type" = "unknown"; then
14094  	db_type=ndbm
14095  	DBLIB="$LIB_NDBM"
14096        fi
14097      fi
14098    fi
14099  fi #enable_ndbm_db
14100fi # unknown
14101
14102if test "$have_ndbm" = "yes"; then
14103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ndbm is implemented with db" >&5
14104$as_echo_n "checking if ndbm is implemented with db... " >&6; }
14105  if test "$cross_compiling" = yes; then :
14106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no-cross" >&5
14107$as_echo "no-cross" >&6; }
14108else
14109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110/* end confdefs.h.  */
14111
14112#include <unistd.h>
14113#include <fcntl.h>
14114#if defined(HAVE_GDBM_NDBM_H)
14115#include <gdbm/ndbm.h>
14116#elif defined(HAVE_NDBM_H)
14117#include <ndbm.h>
14118#elif defined(HAVE_DBM_H)
14119#include <dbm.h>
14120#endif
14121int main(int argc, char **argv)
14122{
14123  DBM *d;
14124
14125  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
14126  if (d == NULL)
14127    return 1;
14128  dbm_close(d);
14129  return 0;
14130}
14131_ACEOF
14132if ac_fn_c_try_run "$LINENO"; then :
14133
14134    if test -f conftest.db; then
14135      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14136$as_echo "yes" >&6; }
14137
14138$as_echo "#define HAVE_NEW_DB 1" >>confdefs.h
14139
14140    else
14141      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142$as_echo "no" >&6; }
14143    fi
14144else
14145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146$as_echo "no" >&6; }
14147fi
14148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14149  conftest.$ac_objext conftest.beam conftest.$ac_ext
14150fi
14151
14152fi
14153
14154 if test "$db_type" = db1; then
14155  HAVE_DB1_TRUE=
14156  HAVE_DB1_FALSE='#'
14157else
14158  HAVE_DB1_TRUE='#'
14159  HAVE_DB1_FALSE=
14160fi
14161 if test "$db_type" = db3; then
14162  HAVE_DB3_TRUE=
14163  HAVE_DB3_FALSE='#'
14164else
14165  HAVE_DB3_TRUE='#'
14166  HAVE_DB3_FALSE=
14167fi
14168 if test "$db_type" = ndbm; then
14169  HAVE_NDBM_TRUE=
14170  HAVE_NDBM_FALSE='#'
14171else
14172  HAVE_NDBM_TRUE='#'
14173  HAVE_NDBM_FALSE=
14174fi
14175
14176## it's probably not correct to include LDFLAGS here, but we might
14177## need it, for now just add any possible -L
14178z=""
14179for i in $LDFLAGS; do
14180	case "$i" in
14181	-L*) z="$z $i";;
14182	esac
14183done
14184DBLIB="$z $DBLIB"
14185
14186
14187
14188
14189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14190$as_echo_n "checking for inline... " >&6; }
14191if test "${ac_cv_c_inline+set}" = set; then :
14192  $as_echo_n "(cached) " >&6
14193else
14194  ac_cv_c_inline=no
14195for ac_kw in inline __inline__ __inline; do
14196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197/* end confdefs.h.  */
14198#ifndef __cplusplus
14199typedef int foo_t;
14200static $ac_kw foo_t static_foo () {return 0; }
14201$ac_kw foo_t foo () {return 0; }
14202#endif
14203
14204_ACEOF
14205if ac_fn_c_try_compile "$LINENO"; then :
14206  ac_cv_c_inline=$ac_kw
14207fi
14208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209  test "$ac_cv_c_inline" != no && break
14210done
14211
14212fi
14213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14214$as_echo "$ac_cv_c_inline" >&6; }
14215
14216case $ac_cv_c_inline in
14217  inline | yes) ;;
14218  *)
14219    case $ac_cv_c_inline in
14220      no) ac_val=;;
14221      *) ac_val=$ac_cv_c_inline;;
14222    esac
14223    cat >>confdefs.h <<_ACEOF
14224#ifndef __cplusplus
14225#define inline $ac_val
14226#endif
14227_ACEOF
14228    ;;
14229esac
14230
14231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14232$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14233if test "${ac_cv_c_const+set}" = set; then :
14234  $as_echo_n "(cached) " >&6
14235else
14236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237/* end confdefs.h.  */
14238
14239int
14240main ()
14241{
14242/* FIXME: Include the comments suggested by Paul. */
14243#ifndef __cplusplus
14244  /* Ultrix mips cc rejects this.  */
14245  typedef int charset[2];
14246  const charset cs;
14247  /* SunOS 4.1.1 cc rejects this.  */
14248  char const *const *pcpcc;
14249  char **ppc;
14250  /* NEC SVR4.0.2 mips cc rejects this.  */
14251  struct point {int x, y;};
14252  static struct point const zero = {0,0};
14253  /* AIX XL C 1.02.0.0 rejects this.
14254     It does not let you subtract one const X* pointer from another in
14255     an arm of an if-expression whose if-part is not a constant
14256     expression */
14257  const char *g = "string";
14258  pcpcc = &g + (g ? g-g : 0);
14259  /* HPUX 7.0 cc rejects these. */
14260  ++pcpcc;
14261  ppc = (char**) pcpcc;
14262  pcpcc = (char const *const *) ppc;
14263  { /* SCO 3.2v4 cc rejects this.  */
14264    char *t;
14265    char const *s = 0 ? (char *) 0 : (char const *) 0;
14266
14267    *t++ = 0;
14268    if (s) return 0;
14269  }
14270  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14271    int x[] = {25, 17};
14272    const int *foo = &x[0];
14273    ++foo;
14274  }
14275  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14276    typedef const int *iptr;
14277    iptr p = 0;
14278    ++p;
14279  }
14280  { /* AIX XL C 1.02.0.0 rejects this saying
14281       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14282    struct s { int j; const int *ap[3]; };
14283    struct s *b; b->j = 5;
14284  }
14285  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14286    const int foo = 10;
14287    if (!foo) return 0;
14288  }
14289  return !cs[0] && !zero.x;
14290#endif
14291
14292  ;
14293  return 0;
14294}
14295_ACEOF
14296if ac_fn_c_try_compile "$LINENO"; then :
14297  ac_cv_c_const=yes
14298else
14299  ac_cv_c_const=no
14300fi
14301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302fi
14303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14304$as_echo "$ac_cv_c_const" >&6; }
14305if test $ac_cv_c_const = no; then
14306
14307$as_echo "#define const /**/" >>confdefs.h
14308
14309fi
14310
14311ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14312if test "x$ac_cv_type_size_t" = x""yes; then :
14313
14314else
14315
14316cat >>confdefs.h <<_ACEOF
14317#define size_t unsigned int
14318_ACEOF
14319
14320fi
14321
14322ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14323if test "x$ac_cv_type_pid_t" = x""yes; then :
14324
14325else
14326
14327cat >>confdefs.h <<_ACEOF
14328#define pid_t int
14329_ACEOF
14330
14331fi
14332
14333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14334$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14335if test "${ac_cv_type_uid_t+set}" = set; then :
14336  $as_echo_n "(cached) " >&6
14337else
14338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339/* end confdefs.h.  */
14340#include <sys/types.h>
14341
14342_ACEOF
14343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14344  $EGREP "uid_t" >/dev/null 2>&1; then :
14345  ac_cv_type_uid_t=yes
14346else
14347  ac_cv_type_uid_t=no
14348fi
14349rm -f conftest*
14350
14351fi
14352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14353$as_echo "$ac_cv_type_uid_t" >&6; }
14354if test $ac_cv_type_uid_t = no; then
14355
14356$as_echo "#define uid_t int" >>confdefs.h
14357
14358
14359$as_echo "#define gid_t int" >>confdefs.h
14360
14361fi
14362
14363
14364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14365$as_echo_n "checking return type of signal handlers... " >&6; }
14366if test "${ac_cv_type_signal+set}" = set; then :
14367  $as_echo_n "(cached) " >&6
14368else
14369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370/* end confdefs.h.  */
14371#include <sys/types.h>
14372#include <signal.h>
14373
14374int
14375main ()
14376{
14377return *(signal (0, 0)) (0) == 1;
14378  ;
14379  return 0;
14380}
14381_ACEOF
14382if ac_fn_c_try_compile "$LINENO"; then :
14383  ac_cv_type_signal=int
14384else
14385  ac_cv_type_signal=void
14386fi
14387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14388fi
14389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14390$as_echo "$ac_cv_type_signal" >&6; }
14391
14392cat >>confdefs.h <<_ACEOF
14393#define RETSIGTYPE $ac_cv_type_signal
14394_ACEOF
14395
14396
14397if test "$ac_cv_type_signal" = "void" ; then
14398
14399$as_echo "#define VOID_RETSIGTYPE 1" >>confdefs.h
14400
14401fi
14402
14403
14404
14405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14406$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14407if test "${ac_cv_header_time+set}" = set; then :
14408  $as_echo_n "(cached) " >&6
14409else
14410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411/* end confdefs.h.  */
14412#include <sys/types.h>
14413#include <sys/time.h>
14414#include <time.h>
14415
14416int
14417main ()
14418{
14419if ((struct tm *) 0)
14420return 0;
14421  ;
14422  return 0;
14423}
14424_ACEOF
14425if ac_fn_c_try_compile "$LINENO"; then :
14426  ac_cv_header_time=yes
14427else
14428  ac_cv_header_time=no
14429fi
14430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431fi
14432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14433$as_echo "$ac_cv_header_time" >&6; }
14434if test $ac_cv_header_time = yes; then
14435
14436$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14437
14438fi
14439
14440
14441for ac_header in standards.h
14442do :
14443  ac_fn_c_check_header_mongrel "$LINENO" "standards.h" "ac_cv_header_standards_h" "$ac_includes_default"
14444if test "x$ac_cv_header_standards_h" = x""yes; then :
14445  cat >>confdefs.h <<_ACEOF
14446#define HAVE_STANDARDS_H 1
14447_ACEOF
14448
14449fi
14450
14451done
14452
14453for i in netinet/ip.h netinet/tcp.h; do
14454
14455cv=`echo "$i" | sed 'y%./+-%__p_%'`
14456
14457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $i" >&5
14458$as_echo_n "checking for $i... " >&6; }
14459if { as_var=ac_cv_header_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
14460  $as_echo_n "(cached) " >&6
14461else
14462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463/* end confdefs.h.  */
14464
14465#ifdef HAVE_STANDARDS_H
14466#include <standards.h>
14467#endif
14468#include <$i>
14469
14470_ACEOF
14471if ac_fn_c_try_cpp "$LINENO"; then :
14472  eval "ac_cv_header_$cv=yes"
14473else
14474  eval "ac_cv_header_$cv=no"
14475fi
14476rm -f conftest.err conftest.$ac_ext
14477fi
14478eval ac_res=\$ac_cv_header_$cv
14479	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14480$as_echo "$ac_res" >&6; }
14481ac_res=`eval echo \\$ac_cv_header_$cv`
14482if test "$ac_res" = yes; then
14483	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14484	cat >>confdefs.h <<_ACEOF
14485#define $ac_tr_hdr 1
14486_ACEOF
14487
14488fi
14489done
14490if false;then
14491	for ac_header in netinet/ip.h netinet/tcp.h
14492do :
14493  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14494ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14495eval as_val=\$$as_ac_Header
14496   if test "x$as_val" = x""yes; then :
14497  cat >>confdefs.h <<_ACEOF
14498#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14499_ACEOF
14500
14501fi
14502
14503done
14504
14505fi
14506
14507
14508for ac_func in getlogin setlogin
14509do :
14510  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14511ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14512eval as_val=\$$as_ac_var
14513   if test "x$as_val" = x""yes; then :
14514  cat >>confdefs.h <<_ACEOF
14515#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14516_ACEOF
14517
14518fi
14519done
14520
14521if test "$ac_cv_func_getlogin" = yes; then
14522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getlogin is posix" >&5
14523$as_echo_n "checking if getlogin is posix... " >&6; }
14524if test "${ac_cv_func_getlogin_posix+set}" = set; then :
14525  $as_echo_n "(cached) " >&6
14526else
14527
14528if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
14529	ac_cv_func_getlogin_posix=no
14530else
14531	ac_cv_func_getlogin_posix=yes
14532fi
14533
14534fi
14535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getlogin_posix" >&5
14536$as_echo "$ac_cv_func_getlogin_posix" >&6; }
14537if test "$ac_cv_func_getlogin_posix" = yes; then
14538
14539$as_echo "#define POSIX_GETLOGIN 1" >>confdefs.h
14540
14541fi
14542fi
14543
14544
14545
14546
14547  for ac_header in $ac_header_list
14548do :
14549  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14550ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14551"
14552eval as_val=\$$as_ac_Header
14553   if test "x$as_val" = x""yes; then :
14554  cat >>confdefs.h <<_ACEOF
14555#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14556_ACEOF
14557
14558fi
14559
14560done
14561
14562
14563
14564
14565
14566
14567
14568
14569for ac_func in getpagesize
14570do :
14571  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14572if test "x$ac_cv_func_getpagesize" = x""yes; then :
14573  cat >>confdefs.h <<_ACEOF
14574#define HAVE_GETPAGESIZE 1
14575_ACEOF
14576
14577fi
14578done
14579
14580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14581$as_echo_n "checking for working mmap... " >&6; }
14582if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
14583  $as_echo_n "(cached) " >&6
14584else
14585  if test "$cross_compiling" = yes; then :
14586  ac_cv_func_mmap_fixed_mapped=no
14587else
14588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589/* end confdefs.h.  */
14590$ac_includes_default
14591/* malloc might have been renamed as rpl_malloc. */
14592#undef malloc
14593
14594/* Thanks to Mike Haertel and Jim Avera for this test.
14595   Here is a matrix of mmap possibilities:
14596	mmap private not fixed
14597	mmap private fixed at somewhere currently unmapped
14598	mmap private fixed at somewhere already mapped
14599	mmap shared not fixed
14600	mmap shared fixed at somewhere currently unmapped
14601	mmap shared fixed at somewhere already mapped
14602   For private mappings, we should verify that changes cannot be read()
14603   back from the file, nor mmap's back from the file at a different
14604   address.  (There have been systems where private was not correctly
14605   implemented like the infamous i386 svr4.0, and systems where the
14606   VM page cache was not coherent with the file system buffer cache
14607   like early versions of FreeBSD and possibly contemporary NetBSD.)
14608   For shared mappings, we should conversely verify that changes get
14609   propagated back to all the places they're supposed to be.
14610
14611   Grep wants private fixed already mapped.
14612   The main things grep needs to know about mmap are:
14613   * does it exist and is it safe to write into the mmap'd area
14614   * how to use it (BSD variants)  */
14615
14616#include <fcntl.h>
14617#include <sys/mman.h>
14618
14619#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14620char *malloc ();
14621#endif
14622
14623/* This mess was copied from the GNU getpagesize.h.  */
14624#ifndef HAVE_GETPAGESIZE
14625# ifdef _SC_PAGESIZE
14626#  define getpagesize() sysconf(_SC_PAGESIZE)
14627# else /* no _SC_PAGESIZE */
14628#  ifdef HAVE_SYS_PARAM_H
14629#   include <sys/param.h>
14630#   ifdef EXEC_PAGESIZE
14631#    define getpagesize() EXEC_PAGESIZE
14632#   else /* no EXEC_PAGESIZE */
14633#    ifdef NBPG
14634#     define getpagesize() NBPG * CLSIZE
14635#     ifndef CLSIZE
14636#      define CLSIZE 1
14637#     endif /* no CLSIZE */
14638#    else /* no NBPG */
14639#     ifdef NBPC
14640#      define getpagesize() NBPC
14641#     else /* no NBPC */
14642#      ifdef PAGESIZE
14643#       define getpagesize() PAGESIZE
14644#      endif /* PAGESIZE */
14645#     endif /* no NBPC */
14646#    endif /* no NBPG */
14647#   endif /* no EXEC_PAGESIZE */
14648#  else /* no HAVE_SYS_PARAM_H */
14649#   define getpagesize() 8192	/* punt totally */
14650#  endif /* no HAVE_SYS_PARAM_H */
14651# endif /* no _SC_PAGESIZE */
14652
14653#endif /* no HAVE_GETPAGESIZE */
14654
14655int
14656main ()
14657{
14658  char *data, *data2, *data3;
14659  int i, pagesize;
14660  int fd, fd2;
14661
14662  pagesize = getpagesize ();
14663
14664  /* First, make a file with some known garbage in it. */
14665  data = (char *) malloc (pagesize);
14666  if (!data)
14667    return 1;
14668  for (i = 0; i < pagesize; ++i)
14669    *(data + i) = rand ();
14670  umask (0);
14671  fd = creat ("conftest.mmap", 0600);
14672  if (fd < 0)
14673    return 2;
14674  if (write (fd, data, pagesize) != pagesize)
14675    return 3;
14676  close (fd);
14677
14678  /* Next, check that the tail of a page is zero-filled.  File must have
14679     non-zero length, otherwise we risk SIGBUS for entire page.  */
14680  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14681  if (fd2 < 0)
14682    return 4;
14683  data2 = "";
14684  if (write (fd2, data2, 1) != 1)
14685    return 5;
14686  data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14687  if (data2 == MAP_FAILED)
14688    return 6;
14689  for (i = 0; i < pagesize; ++i)
14690    if (*(data2 + i))
14691      return 7;
14692  close (fd2);
14693  if (munmap (data2, pagesize))
14694    return 8;
14695
14696  /* Next, try to mmap the file at a fixed address which already has
14697     something else allocated at it.  If we can, also make sure that
14698     we see the same garbage.  */
14699  fd = open ("conftest.mmap", O_RDWR);
14700  if (fd < 0)
14701    return 9;
14702  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14703		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
14704    return 10;
14705  for (i = 0; i < pagesize; ++i)
14706    if (*(data + i) != *(data2 + i))
14707      return 11;
14708
14709  /* Finally, make sure that changes to the mapped area do not
14710     percolate back to the file as seen by read().  (This is a bug on
14711     some variants of i386 svr4.0.)  */
14712  for (i = 0; i < pagesize; ++i)
14713    *(data2 + i) = *(data2 + i) + 1;
14714  data3 = (char *) malloc (pagesize);
14715  if (!data3)
14716    return 12;
14717  if (read (fd, data3, pagesize) != pagesize)
14718    return 13;
14719  for (i = 0; i < pagesize; ++i)
14720    if (*(data + i) != *(data3 + i))
14721      return 14;
14722  close (fd);
14723  return 0;
14724}
14725_ACEOF
14726if ac_fn_c_try_run "$LINENO"; then :
14727  ac_cv_func_mmap_fixed_mapped=yes
14728else
14729  ac_cv_func_mmap_fixed_mapped=no
14730fi
14731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14732  conftest.$ac_objext conftest.beam conftest.$ac_ext
14733fi
14734
14735fi
14736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14737$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14738if test $ac_cv_func_mmap_fixed_mapped = yes; then
14739
14740$as_echo "#define HAVE_MMAP 1" >>confdefs.h
14741
14742fi
14743rm -f conftest.mmap conftest.txt
14744
14745
14746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if realloc if broken" >&5
14747$as_echo_n "checking if realloc if broken... " >&6; }
14748if test "${ac_cv_func_realloc_broken+set}" = set; then :
14749  $as_echo_n "(cached) " >&6
14750else
14751
14752ac_cv_func_realloc_broken=no
14753if test "$cross_compiling" = yes; then :
14754  :
14755else
14756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757/* end confdefs.h.  */
14758
14759#include <stddef.h>
14760#include <stdlib.h>
14761
14762int main(int argc, char **argv)
14763{
14764	return realloc(NULL, 17) == NULL;
14765}
14766
14767_ACEOF
14768if ac_fn_c_try_run "$LINENO"; then :
14769  :
14770else
14771  ac_cv_func_realloc_broken=yes
14772fi
14773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14774  conftest.$ac_objext conftest.beam conftest.$ac_ext
14775fi
14776
14777
14778fi
14779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_broken" >&5
14780$as_echo "$ac_cv_func_realloc_broken" >&6; }
14781if test "$ac_cv_func_realloc_broken" = yes ; then
14782
14783$as_echo "#define BROKEN_REALLOC 1" >>confdefs.h
14784
14785fi
14786
14787
14788
14789
14790
14791
14792DIR_roken=roken
14793LIB_roken='$(top_builddir)/lib/roken/libroken.la'
14794INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805$as_echo "#define rk_PATH_DELIM '/'" >>confdefs.h
14806
14807
14808
14809
14810
14811
14812
14813
14814# Check whether --enable-developer was given.
14815if test "${enable_developer+set}" = set; then :
14816  enableval=$enable_developer;
14817fi
14818
14819if test "X$enable_developer" = Xyes; then
14820    dwflags="-Werror"
14821fi
14822
14823WFLAGS_NOUNUSED=""
14824WFLAGS_NOIMPLICITINT=""
14825if test -z "$WFLAGS" -a "$GCC" = "yes"; then
14826  # -Wno-implicit-int for broken X11 headers
14827  # leave these out for now:
14828  #   -Wcast-align doesn't work well on alpha osf/1
14829  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
14830  #   -Wmissing-declarations -Wnested-externs
14831  #   -Wstrict-overflow=5
14832  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
14833  WFLAGS_NOUNUSED="-Wno-unused"
14834  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
14835fi
14836
14837
14838
14839
14840
14841
14842
14843
14844cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
14845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14846$as_echo_n "checking for ssize_t... " >&6; }
14847if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
14848  $as_echo_n "(cached) " >&6
14849else
14850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851/* end confdefs.h.  */
14852
14853#include <sys/types.h>
14854#if STDC_HEADERS
14855#include <stdlib.h>
14856#include <stddef.h>
14857#endif
14858#include <unistd.h>
14859int
14860main ()
14861{
14862ssize_t foo;
14863  ;
14864  return 0;
14865}
14866_ACEOF
14867if ac_fn_c_try_compile "$LINENO"; then :
14868  eval "ac_cv_type_$cv=yes"
14869else
14870  eval "ac_cv_type_$cv=no"
14871fi
14872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14873fi
14874ac_foo=`eval echo \\$ac_cv_type_$cv`
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
14876$as_echo "$ac_foo" >&6; }
14877if test "$ac_foo" = yes; then
14878  ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
14879if false; then
14880	ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14881if test "x$ac_cv_type_ssize_t" = x""yes; then :
14882
14883cat >>confdefs.h <<_ACEOF
14884#define HAVE_SSIZE_T 1
14885_ACEOF
14886
14887
14888fi
14889
14890fi
14891
14892cat >>confdefs.h <<_ACEOF
14893#define $ac_tr_hdr 1
14894_ACEOF
14895
14896fi
14897
14898
14899
14900
14901
14902cv=`echo "long long" | sed 'y%./+- %__p__%'`
14903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
14904$as_echo_n "checking for long long... " >&6; }
14905if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
14906  $as_echo_n "(cached) " >&6
14907else
14908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909/* end confdefs.h.  */
14910
14911#include <sys/types.h>
14912#if STDC_HEADERS
14913#include <stdlib.h>
14914#include <stddef.h>
14915#endif
14916
14917int
14918main ()
14919{
14920long long foo;
14921  ;
14922  return 0;
14923}
14924_ACEOF
14925if ac_fn_c_try_compile "$LINENO"; then :
14926  eval "ac_cv_type_$cv=yes"
14927else
14928  eval "ac_cv_type_$cv=no"
14929fi
14930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931fi
14932ac_foo=`eval echo \\$ac_cv_type_$cv`
14933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
14934$as_echo "$ac_foo" >&6; }
14935if test "$ac_foo" = yes; then
14936  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
14937if false; then
14938	ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14939if test "x$ac_cv_type_long_long" = x""yes; then :
14940
14941cat >>confdefs.h <<_ACEOF
14942#define HAVE_LONG_LONG 1
14943_ACEOF
14944
14945
14946fi
14947
14948fi
14949
14950cat >>confdefs.h <<_ACEOF
14951#define $ac_tr_hdr 1
14952_ACEOF
14953
14954fi
14955
14956
14957
14958
14959
14960
14961
14962for ac_header in \
14963	arpa/inet.h				\
14964	config.h				\
14965	crypt.h					\
14966	dirent.h				\
14967	errno.h					\
14968	err.h					\
14969	fcntl.h					\
14970	fnmatch.h				\
14971	grp.h					\
14972	ifaddrs.h				\
14973	netinet/in.h				\
14974	netinet/in6.h				\
14975	netinet/in_systm.h			\
14976	netinet6/in6.h				\
14977	paths.h					\
14978	poll.h					\
14979	pwd.h					\
14980	rpcsvc/ypclnt.h				\
14981	shadow.h				\
14982	stdint.h				\
14983	sys/bswap.h				\
14984	sys/ioctl.h				\
14985	sys/mman.h				\
14986	sys/param.h				\
14987	sys/resource.h				\
14988	sys/sockio.h				\
14989	sys/stat.h				\
14990	sys/time.h				\
14991	sys/tty.h				\
14992	sys/types.h				\
14993	sys/uio.h				\
14994	sys/utsname.h				\
14995	sys/wait.h				\
14996	syslog.h				\
14997	termios.h				\
14998	winsock2.h				\
14999	ws2tcpip.h				\
15000	unistd.h				\
15001	userconf.h				\
15002	usersec.h				\
15003	util.h					\
15004
15005do :
15006  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15007ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15008eval as_val=\$$as_ac_Header
15009   if test "x$as_val" = x""yes; then :
15010  cat >>confdefs.h <<_ACEOF
15011#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15012_ACEOF
15013
15014fi
15015
15016done
15017
15018
15019
15020
15021cv=`echo "uintptr_t" | sed 'y%./+- %__p__%'`
15022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5
15023$as_echo_n "checking for uintptr_t... " >&6; }
15024if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
15025  $as_echo_n "(cached) " >&6
15026else
15027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028/* end confdefs.h.  */
15029
15030#include <sys/types.h>
15031#if STDC_HEADERS
15032#include <stdlib.h>
15033#include <stddef.h>
15034#endif
15035#ifdef HAVE_STDINT_H
15036#include <stdint.h>
15037#endif
15038int
15039main ()
15040{
15041uintptr_t foo;
15042  ;
15043  return 0;
15044}
15045_ACEOF
15046if ac_fn_c_try_compile "$LINENO"; then :
15047  eval "ac_cv_type_$cv=yes"
15048else
15049  eval "ac_cv_type_$cv=no"
15050fi
15051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052fi
15053ac_foo=`eval echo \\$ac_cv_type_$cv`
15054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
15055$as_echo "$ac_foo" >&6; }
15056if test "$ac_foo" = yes; then
15057  ac_tr_hdr=HAVE_`echo uintptr_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
15058if false; then
15059	ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15060if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15061
15062cat >>confdefs.h <<_ACEOF
15063#define HAVE_UINTPTR_T 1
15064_ACEOF
15065
15066
15067fi
15068
15069fi
15070
15071cat >>confdefs.h <<_ACEOF
15072#define $ac_tr_hdr 1
15073_ACEOF
15074
15075fi
15076
15077
15078for ac_header in vis.h
15079do :
15080  ac_fn_c_check_header_compile "$LINENO" "vis.h" "ac_cv_header_vis_h" "
15081#include <vis.h>
15082#ifndef VIS_SP
15083#error invis
15084#endif
15085"
15086if test "x$ac_cv_header_vis_h" = x""yes; then :
15087  cat >>confdefs.h <<_ACEOF
15088#define HAVE_VIS_H 1
15089_ACEOF
15090
15091fi
15092
15093done
15094
15095
15096for ac_header in netdb.h
15097do :
15098  ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default
15099#ifdef HAVE_SYS_TYPES_H
15100#include <sys/types.h>
15101#endif
15102
15103"
15104if test "x$ac_cv_header_netdb_h" = x""yes; then :
15105  cat >>confdefs.h <<_ACEOF
15106#define HAVE_NETDB_H 1
15107_ACEOF
15108
15109fi
15110
15111done
15112
15113
15114for ac_header in sys/socket.h
15115do :
15116  ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
15117#ifdef HAVE_SYS_TYPES_H
15118#include <sys/types.h>
15119#endif
15120
15121"
15122if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
15123  cat >>confdefs.h <<_ACEOF
15124#define HAVE_SYS_SOCKET_H 1
15125_ACEOF
15126
15127fi
15128
15129done
15130
15131
15132for ac_header in net/if.h
15133do :
15134  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
15135#ifdef HAVE_SYS_TYPES_H
15136#include <sys/types.h>
15137#endif
15138#if HAVE_SYS_SOCKET_H
15139#include <sys/socket.h>
15140#endif
15141"
15142if test "x$ac_cv_header_net_if_h" = x""yes; then :
15143  cat >>confdefs.h <<_ACEOF
15144#define HAVE_NET_IF_H 1
15145_ACEOF
15146
15147fi
15148
15149done
15150
15151
15152for ac_header in netinet6/in6_var.h
15153do :
15154  ac_fn_c_check_header_compile "$LINENO" "netinet6/in6_var.h" "ac_cv_header_netinet6_in6_var_h" "$ac_includes_default
15155#ifdef HAVE_SYS_TYPES_H
15156#include <sys/types.h>
15157#endif
15158#if HAVE_SYS_SOCKET_H
15159#include <sys/socket.h>
15160#endif
15161#ifdef HAVE_NETINET6_IN6_H
15162#include <netinet6/in6.h>
15163#endif
15164
15165"
15166if test "x$ac_cv_header_netinet6_in6_var_h" = x""yes; then :
15167  cat >>confdefs.h <<_ACEOF
15168#define HAVE_NETINET6_IN6_VAR_H 1
15169_ACEOF
15170
15171fi
15172
15173done
15174
15175
15176for ac_header in sys/sysctl.h
15177do :
15178  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
15179#ifdef HAVE_SYS_PARAM_H
15180#include <sys/param.h>
15181#endif
15182
15183"
15184if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
15185  cat >>confdefs.h <<_ACEOF
15186#define HAVE_SYS_SYSCTL_H 1
15187_ACEOF
15188
15189fi
15190
15191done
15192
15193
15194for ac_header in sys/proc.h
15195do :
15196  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "$ac_includes_default
15197#ifdef HAVE_SYS_PARAM_H
15198#include <sys/param.h>
15199#endif
15200
15201"
15202if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
15203  cat >>confdefs.h <<_ACEOF
15204#define HAVE_SYS_PROC_H 1
15205_ACEOF
15206
15207fi
15208
15209done
15210
15211
15212
15213
15214 if test "$ac_cv_header_err_h" = yes; then
15215  have_err_h_TRUE=
15216  have_err_h_FALSE='#'
15217else
15218  have_err_h_TRUE='#'
15219  have_err_h_FALSE=
15220fi
15221
15222 if test "$ac_cv_header_ifaddrs_h" = yes; then
15223  have_ifaddrs_h_TRUE=
15224  have_ifaddrs_h_FALSE='#'
15225else
15226  have_ifaddrs_h_TRUE='#'
15227  have_ifaddrs_h_FALSE=
15228fi
15229
15230 if test "$ac_cv_header_vis_h" = yes; then
15231  have_vis_h_TRUE=
15232  have_vis_h_FALSE='#'
15233else
15234  have_vis_h_TRUE='#'
15235  have_vis_h_FALSE=
15236fi
15237
15238
15239
15240
15241
15242
15243
15244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket" >&5
15245$as_echo_n "checking for socket... " >&6; }
15246if test "${ac_cv_funclib_socket+set}" = set; then :
15247  $as_echo_n "(cached) " >&6
15248else
15249
15250if eval "test \"\$ac_cv_func_socket\" != yes" ; then
15251	ac_save_LIBS="$LIBS"
15252	for ac_lib in "" socket; do
15253		case "$ac_lib" in
15254		"") ;;
15255		yes) ac_lib="" ;;
15256		no) continue ;;
15257		-l*) ;;
15258		*) ac_lib="-l$ac_lib" ;;
15259		esac
15260		LIBS=" $ac_lib  $ac_save_LIBS"
15261		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262/* end confdefs.h.  */
15263
15264int
15265main ()
15266{
15267socket()
15268  ;
15269  return 0;
15270}
15271_ACEOF
15272if ac_fn_c_try_link "$LINENO"; then :
15273  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
15274fi
15275rm -f core conftest.err conftest.$ac_objext \
15276    conftest$ac_exeext conftest.$ac_ext
15277	done
15278	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
15279	LIBS="$ac_save_LIBS"
15280fi
15281
15282fi
15283
15284
15285eval "ac_res=\$ac_cv_funclib_socket"
15286
15287if false; then
15288	for ac_func in socket
15289do :
15290  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15291if test "x$ac_cv_func_socket" = x""yes; then :
15292  cat >>confdefs.h <<_ACEOF
15293#define HAVE_SOCKET 1
15294_ACEOF
15295
15296fi
15297done
15298
15299fi
15300# socket
15301eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15302eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15303eval "LIB_socket=$ac_res"
15304
15305case "$ac_res" in
15306	yes)
15307	eval "ac_cv_func_socket=yes"
15308	eval "LIB_socket="
15309	cat >>confdefs.h <<_ACEOF
15310#define $ac_tr_func 1
15311_ACEOF
15312
15313	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15314$as_echo "yes" >&6; }
15315	;;
15316	no)
15317	eval "ac_cv_func_socket=no"
15318	eval "LIB_socket="
15319	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15320$as_echo "no" >&6; }
15321	;;
15322	*)
15323	eval "ac_cv_func_socket=yes"
15324	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15325	cat >>confdefs.h <<_ACEOF
15326#define $ac_tr_func 1
15327_ACEOF
15328
15329	cat >>confdefs.h <<_ACEOF
15330#define $ac_tr_lib 1
15331_ACEOF
15332
15333	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
15334$as_echo "yes, in $ac_res" >&6; }
15335	;;
15336esac
15337
15338
15339if test -n "$LIB_socket"; then
15340	LIBS="$LIB_socket $LIBS"
15341fi
15342
15343
15344
15345
15346
15347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5
15348$as_echo_n "checking for gethostbyname... " >&6; }
15349if test "${ac_cv_funclib_gethostbyname+set}" = set; then :
15350  $as_echo_n "(cached) " >&6
15351else
15352
15353if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
15354	ac_save_LIBS="$LIBS"
15355	for ac_lib in "" nsl; do
15356		case "$ac_lib" in
15357		"") ;;
15358		yes) ac_lib="" ;;
15359		no) continue ;;
15360		-l*) ;;
15361		*) ac_lib="-l$ac_lib" ;;
15362		esac
15363		LIBS=" $ac_lib  $ac_save_LIBS"
15364		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365/* end confdefs.h.  */
15366
15367int
15368main ()
15369{
15370gethostbyname()
15371  ;
15372  return 0;
15373}
15374_ACEOF
15375if ac_fn_c_try_link "$LINENO"; then :
15376  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
15377fi
15378rm -f core conftest.err conftest.$ac_objext \
15379    conftest$ac_exeext conftest.$ac_ext
15380	done
15381	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
15382	LIBS="$ac_save_LIBS"
15383fi
15384
15385fi
15386
15387
15388eval "ac_res=\$ac_cv_funclib_gethostbyname"
15389
15390if false; then
15391	for ac_func in gethostbyname
15392do :
15393  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15394if test "x$ac_cv_func_gethostbyname" = x""yes; then :
15395  cat >>confdefs.h <<_ACEOF
15396#define HAVE_GETHOSTBYNAME 1
15397_ACEOF
15398
15399fi
15400done
15401
15402fi
15403# gethostbyname
15404eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15405eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15406eval "LIB_gethostbyname=$ac_res"
15407
15408case "$ac_res" in
15409	yes)
15410	eval "ac_cv_func_gethostbyname=yes"
15411	eval "LIB_gethostbyname="
15412	cat >>confdefs.h <<_ACEOF
15413#define $ac_tr_func 1
15414_ACEOF
15415
15416	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15417$as_echo "yes" >&6; }
15418	;;
15419	no)
15420	eval "ac_cv_func_gethostbyname=no"
15421	eval "LIB_gethostbyname="
15422	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15423$as_echo "no" >&6; }
15424	;;
15425	*)
15426	eval "ac_cv_func_gethostbyname=yes"
15427	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15428	cat >>confdefs.h <<_ACEOF
15429#define $ac_tr_func 1
15430_ACEOF
15431
15432	cat >>confdefs.h <<_ACEOF
15433#define $ac_tr_lib 1
15434_ACEOF
15435
15436	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
15437$as_echo "yes, in $ac_res" >&6; }
15438	;;
15439esac
15440
15441
15442if test -n "$LIB_gethostbyname"; then
15443	LIBS="$LIB_gethostbyname $LIBS"
15444fi
15445
15446
15447
15448
15449
15450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog" >&5
15451$as_echo_n "checking for syslog... " >&6; }
15452if test "${ac_cv_funclib_syslog+set}" = set; then :
15453  $as_echo_n "(cached) " >&6
15454else
15455
15456if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
15457	ac_save_LIBS="$LIBS"
15458	for ac_lib in "" syslog; do
15459		case "$ac_lib" in
15460		"") ;;
15461		yes) ac_lib="" ;;
15462		no) continue ;;
15463		-l*) ;;
15464		*) ac_lib="-l$ac_lib" ;;
15465		esac
15466		LIBS=" $ac_lib  $ac_save_LIBS"
15467		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468/* end confdefs.h.  */
15469
15470int
15471main ()
15472{
15473syslog()
15474  ;
15475  return 0;
15476}
15477_ACEOF
15478if ac_fn_c_try_link "$LINENO"; then :
15479  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
15480fi
15481rm -f core conftest.err conftest.$ac_objext \
15482    conftest$ac_exeext conftest.$ac_ext
15483	done
15484	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
15485	LIBS="$ac_save_LIBS"
15486fi
15487
15488fi
15489
15490
15491eval "ac_res=\$ac_cv_funclib_syslog"
15492
15493if false; then
15494	for ac_func in syslog
15495do :
15496  ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
15497if test "x$ac_cv_func_syslog" = x""yes; then :
15498  cat >>confdefs.h <<_ACEOF
15499#define HAVE_SYSLOG 1
15500_ACEOF
15501
15502fi
15503done
15504
15505fi
15506# syslog
15507eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15508eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15509eval "LIB_syslog=$ac_res"
15510
15511case "$ac_res" in
15512	yes)
15513	eval "ac_cv_func_syslog=yes"
15514	eval "LIB_syslog="
15515	cat >>confdefs.h <<_ACEOF
15516#define $ac_tr_func 1
15517_ACEOF
15518
15519	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15520$as_echo "yes" >&6; }
15521	;;
15522	no)
15523	eval "ac_cv_func_syslog=no"
15524	eval "LIB_syslog="
15525	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15526$as_echo "no" >&6; }
15527	;;
15528	*)
15529	eval "ac_cv_func_syslog=yes"
15530	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15531	cat >>confdefs.h <<_ACEOF
15532#define $ac_tr_func 1
15533_ACEOF
15534
15535	cat >>confdefs.h <<_ACEOF
15536#define $ac_tr_lib 1
15537_ACEOF
15538
15539	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
15540$as_echo "yes, in $ac_res" >&6; }
15541	;;
15542esac
15543
15544
15545if test -n "$LIB_syslog"; then
15546	LIBS="$LIB_syslog $LIBS"
15547fi
15548
15549
15550
15551
15552# Check whether --with-ipv6 was given.
15553if test "${with_ipv6+set}" = set; then :
15554  withval=$with_ipv6;
15555        ac_cv_lib_ipv6="$withval"
15556
15557fi
15558
15559save_CFLAGS="${CFLAGS}"
15560
15561if test "X$ac_cv_lib_ipv6" != "Xno"; then
15562
15563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 stack type" >&5
15564$as_echo_n "checking for IPv6 stack type... " >&6; }
15565if test "${rk_cv_v6type+set}" = set; then :
15566  $as_echo_n "(cached) " >&6
15567else
15568  	v6type=unknown
15569	v6lib=none
15570
15571	for i in v6d toshiba kame inria zeta linux; do
15572		case $i in
15573		v6d)
15574			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575/* end confdefs.h.  */
15576
15577#include </usr/local/v6/include/sys/types.h>
15578#ifdef __V6D__
15579yes
15580#endif
15581_ACEOF
15582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15583  $EGREP "yes" >/dev/null 2>&1; then :
15584  v6type=$i; v6lib=v6;
15585				v6libdir=/usr/local/v6/lib;
15586				CFLAGS="-I/usr/local/v6/include $CFLAGS"
15587fi
15588rm -f conftest*
15589
15590			;;
15591		toshiba)
15592			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593/* end confdefs.h.  */
15594
15595#include <sys/param.h>
15596#ifdef _TOSHIBA_INET6
15597yes
15598#endif
15599_ACEOF
15600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15601  $EGREP "yes" >/dev/null 2>&1; then :
15602  v6type=$i; v6lib=inet6;
15603				v6libdir=/usr/local/v6/lib;
15604				CFLAGS="-DINET6 $CFLAGS"
15605fi
15606rm -f conftest*
15607
15608			;;
15609		kame)
15610			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611/* end confdefs.h.  */
15612
15613#include <netinet/in.h>
15614#ifdef __KAME__
15615yes
15616#endif
15617_ACEOF
15618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15619  $EGREP "yes" >/dev/null 2>&1; then :
15620  v6type=$i; v6lib=inet6;
15621				v6libdir=/usr/local/v6/lib;
15622				CFLAGS="-DINET6 $CFLAGS"
15623fi
15624rm -f conftest*
15625
15626			;;
15627		inria)
15628			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629/* end confdefs.h.  */
15630
15631#include <netinet/in.h>
15632#ifdef IPV6_INRIA_VERSION
15633yes
15634#endif
15635_ACEOF
15636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15637  $EGREP "yes" >/dev/null 2>&1; then :
15638  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
15639fi
15640rm -f conftest*
15641
15642			;;
15643		zeta)
15644			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645/* end confdefs.h.  */
15646
15647#include <sys/param.h>
15648#ifdef _ZETA_MINAMI_INET6
15649yes
15650#endif
15651_ACEOF
15652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15653  $EGREP "yes" >/dev/null 2>&1; then :
15654  v6type=$i; v6lib=inet6;
15655				v6libdir=/usr/local/v6/lib;
15656				CFLAGS="-DINET6 $CFLAGS"
15657fi
15658rm -f conftest*
15659
15660			;;
15661		linux)
15662			if test -d /usr/inet6; then
15663				v6type=$i
15664				v6lib=inet6
15665				v6libdir=/usr/inet6
15666				CFLAGS="-DINET6 $CFLAGS"
15667			fi
15668			;;
15669		esac
15670		if test "$v6type" != "unknown"; then
15671			break
15672		fi
15673	done
15674
15675	if test "$v6lib" != "none"; then
15676		for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
15677			if test -d $dir -a -f $dir/lib$v6lib.a; then
15678				LIBS="-L$dir -l$v6lib $LIBS"
15679				break
15680			fi
15681		done
15682	fi
15683fi
15684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_v6type" >&5
15685$as_echo "$rk_cv_v6type" >&6; }
15686
15687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5
15688$as_echo_n "checking for IPv6... " >&6; }
15689if test "${rk_cv_lib_ipv6+set}" = set; then :
15690  $as_echo_n "(cached) " >&6
15691else
15692
15693	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694/* end confdefs.h.  */
15695
15696#ifdef HAVE_SYS_TYPES_H
15697#include <sys/types.h>
15698#endif
15699#ifdef HAVE_SYS_SOCKET_H
15700#include <sys/socket.h>
15701#endif
15702#ifdef HAVE_NETINET_IN_H
15703#include <netinet/in.h>
15704#endif
15705#ifdef HAVE_NETINET_IN6_H
15706#include <netinet/in6.h>
15707#endif
15708
15709int
15710main ()
15711{
15712
15713 struct sockaddr_in6 sin6;
15714 int s;
15715
15716 s = socket(AF_INET6, SOCK_DGRAM, 0);
15717
15718 sin6.sin6_family = AF_INET6;
15719 sin6.sin6_port = htons(17);
15720 sin6.sin6_addr = in6addr_any;
15721 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
15722
15723  ;
15724  return 0;
15725}
15726_ACEOF
15727if ac_fn_c_try_link "$LINENO"; then :
15728  ac_cv_lib_ipv6=yes
15729else
15730  ac_cv_lib_ipv6=no
15731fi
15732rm -f core conftest.err conftest.$ac_objext \
15733    conftest$ac_exeext conftest.$ac_ext
15734fi
15735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_lib_ipv6" >&5
15736$as_echo "$rk_cv_lib_ipv6" >&6; }
15737fi
15738
15739if test "$ac_cv_lib_ipv6" = yes; then
15740
15741$as_echo "#define HAVE_IPV6 1" >>confdefs.h
15742
15743else
15744  CFLAGS="${save_CFLAGS}"
15745fi
15746
15747## test for AIX missing in6addr_loopback
15748if test "$ac_cv_lib_ipv6" = yes; then
15749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5
15750$as_echo_n "checking for in6addr_loopback... " >&6; }
15751if test "${rk_cv_var_in6addr_loopback+set}" = set; then :
15752  $as_echo_n "(cached) " >&6
15753else
15754
15755	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756/* end confdefs.h.  */
15757
15758#ifdef HAVE_SYS_TYPES_H
15759#include <sys/types.h>
15760#endif
15761#ifdef HAVE_SYS_SOCKET_H
15762#include <sys/socket.h>
15763#endif
15764#ifdef HAVE_NETINET_IN_H
15765#include <netinet/in.h>
15766#endif
15767#ifdef HAVE_NETINET_IN6_H
15768#include <netinet/in6.h>
15769#endif
15770int
15771main ()
15772{
15773
15774struct sockaddr_in6 sin6;
15775sin6.sin6_addr = in6addr_loopback;
15776
15777  ;
15778  return 0;
15779}
15780_ACEOF
15781if ac_fn_c_try_link "$LINENO"; then :
15782  ac_cv_var_in6addr_loopback=yes
15783else
15784  ac_cv_var_in6addr_loopback=no
15785fi
15786rm -f core conftest.err conftest.$ac_objext \
15787    conftest$ac_exeext conftest.$ac_ext
15788fi
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_var_in6addr_loopback" >&5
15790$as_echo "$rk_cv_var_in6addr_loopback" >&6; }
15791	if test "$ac_cv_var_in6addr_loopback" = yes; then
15792
15793$as_echo "#define HAVE_IN6ADDR_LOOPBACK 1" >>confdefs.h
15794
15795	fi
15796fi
15797
15798
15799
15800
15801
15802
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2" >&5
15804$as_echo_n "checking for gethostbyname2... " >&6; }
15805if test "${ac_cv_funclib_gethostbyname2+set}" = set; then :
15806  $as_echo_n "(cached) " >&6
15807else
15808
15809if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
15810	ac_save_LIBS="$LIBS"
15811	for ac_lib in "" inet6 ip6; do
15812		case "$ac_lib" in
15813		"") ;;
15814		yes) ac_lib="" ;;
15815		no) continue ;;
15816		-l*) ;;
15817		*) ac_lib="-l$ac_lib" ;;
15818		esac
15819		LIBS=" $ac_lib  $ac_save_LIBS"
15820		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15821/* end confdefs.h.  */
15822
15823int
15824main ()
15825{
15826gethostbyname2()
15827  ;
15828  return 0;
15829}
15830_ACEOF
15831if ac_fn_c_try_link "$LINENO"; then :
15832  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
15833fi
15834rm -f core conftest.err conftest.$ac_objext \
15835    conftest$ac_exeext conftest.$ac_ext
15836	done
15837	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
15838	LIBS="$ac_save_LIBS"
15839fi
15840
15841fi
15842
15843
15844eval "ac_res=\$ac_cv_funclib_gethostbyname2"
15845
15846if false; then
15847	for ac_func in gethostbyname2
15848do :
15849  ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
15850if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
15851  cat >>confdefs.h <<_ACEOF
15852#define HAVE_GETHOSTBYNAME2 1
15853_ACEOF
15854
15855fi
15856done
15857
15858fi
15859# gethostbyname2
15860eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15861eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15862eval "LIB_gethostbyname2=$ac_res"
15863
15864case "$ac_res" in
15865	yes)
15866	eval "ac_cv_func_gethostbyname2=yes"
15867	eval "LIB_gethostbyname2="
15868	cat >>confdefs.h <<_ACEOF
15869#define $ac_tr_func 1
15870_ACEOF
15871
15872	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15873$as_echo "yes" >&6; }
15874	;;
15875	no)
15876	eval "ac_cv_func_gethostbyname2=no"
15877	eval "LIB_gethostbyname2="
15878	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15879$as_echo "no" >&6; }
15880	;;
15881	*)
15882	eval "ac_cv_func_gethostbyname2=yes"
15883	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15884	cat >>confdefs.h <<_ACEOF
15885#define $ac_tr_func 1
15886_ACEOF
15887
15888	cat >>confdefs.h <<_ACEOF
15889#define $ac_tr_lib 1
15890_ACEOF
15891
15892	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
15893$as_echo "yes, in $ac_res" >&6; }
15894	;;
15895esac
15896
15897
15898if test -n "$LIB_gethostbyname2"; then
15899	LIBS="$LIB_gethostbyname2 $LIBS"
15900fi
15901
15902
15903
15904
15905for ac_header in arpa/nameser.h dns.h
15906do :
15907  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15908ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15909eval as_val=\$$as_ac_Header
15910   if test "x$as_val" = x""yes; then :
15911  cat >>confdefs.h <<_ACEOF
15912#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15913_ACEOF
15914
15915fi
15916
15917done
15918
15919
15920for ac_header in resolv.h
15921do :
15922  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
15923#ifdef HAVE_SYS_TYPES_H
15924#include <sys/types.h>
15925#endif
15926#ifdef HAVE_NETINET_IN_H
15927#include <netinet/in.h>
15928#endif
15929#ifdef HAVE_ARPA_NAMESER_H
15930#include <arpa/nameser.h>
15931#endif
15932
15933"
15934if test "x$ac_cv_header_resolv_h" = x""yes; then :
15935  cat >>confdefs.h <<_ACEOF
15936#define HAVE_RESOLV_H 1
15937_ACEOF
15938
15939fi
15940
15941done
15942
15943
15944
15945
15946
15947
15948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search" >&5
15949$as_echo_n "checking for res_search... " >&6; }
15950if test "${ac_cv_funclib_res_search+set}" = set; then :
15951  $as_echo_n "(cached) " >&6
15952else
15953
15954if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
15955	ac_save_LIBS="$LIBS"
15956	for ac_lib in "" resolv; do
15957		case "$ac_lib" in
15958		"") ;;
15959		yes) ac_lib="" ;;
15960		no) continue ;;
15961		-l*) ;;
15962		*) ac_lib="-l$ac_lib" ;;
15963		esac
15964		LIBS=" $ac_lib  $ac_save_LIBS"
15965		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966/* end confdefs.h.  */
15967
15968#include <stdio.h>
15969#ifdef HAVE_SYS_TYPES_H
15970#include <sys/types.h>
15971#endif
15972#ifdef HAVE_NETINET_IN_H
15973#include <netinet/in.h>
15974#endif
15975#ifdef HAVE_ARPA_NAMESER_H
15976#include <arpa/nameser.h>
15977#endif
15978#ifdef HAVE_RESOLV_H
15979#include <resolv.h>
15980#endif
15981
15982int
15983main ()
15984{
15985res_search(0,0,0,0,0)
15986  ;
15987  return 0;
15988}
15989_ACEOF
15990if ac_fn_c_try_link "$LINENO"; then :
15991  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
15992fi
15993rm -f core conftest.err conftest.$ac_objext \
15994    conftest$ac_exeext conftest.$ac_ext
15995	done
15996	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
15997	LIBS="$ac_save_LIBS"
15998fi
15999
16000fi
16001
16002
16003eval "ac_res=\$ac_cv_funclib_res_search"
16004
16005if false; then
16006	for ac_func in res_search
16007do :
16008  ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
16009if test "x$ac_cv_func_res_search" = x""yes; then :
16010  cat >>confdefs.h <<_ACEOF
16011#define HAVE_RES_SEARCH 1
16012_ACEOF
16013
16014fi
16015done
16016
16017fi
16018# res_search
16019eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16020eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16021eval "LIB_res_search=$ac_res"
16022
16023case "$ac_res" in
16024	yes)
16025	eval "ac_cv_func_res_search=yes"
16026	eval "LIB_res_search="
16027	cat >>confdefs.h <<_ACEOF
16028#define $ac_tr_func 1
16029_ACEOF
16030
16031	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16032$as_echo "yes" >&6; }
16033	;;
16034	no)
16035	eval "ac_cv_func_res_search=no"
16036	eval "LIB_res_search="
16037	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16038$as_echo "no" >&6; }
16039	;;
16040	*)
16041	eval "ac_cv_func_res_search=yes"
16042	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16043	cat >>confdefs.h <<_ACEOF
16044#define $ac_tr_func 1
16045_ACEOF
16046
16047	cat >>confdefs.h <<_ACEOF
16048#define $ac_tr_lib 1
16049_ACEOF
16050
16051	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16052$as_echo "yes, in $ac_res" >&6; }
16053	;;
16054esac
16055
16056
16057if test -n "$LIB_res_search"; then
16058	LIBS="$LIB_res_search $LIBS"
16059fi
16060
16061
16062
16063
16064
16065
16066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch" >&5
16067$as_echo_n "checking for res_nsearch... " >&6; }
16068if test "${ac_cv_funclib_res_nsearch+set}" = set; then :
16069  $as_echo_n "(cached) " >&6
16070else
16071
16072if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
16073	ac_save_LIBS="$LIBS"
16074	for ac_lib in "" resolv; do
16075		case "$ac_lib" in
16076		"") ;;
16077		yes) ac_lib="" ;;
16078		no) continue ;;
16079		-l*) ;;
16080		*) ac_lib="-l$ac_lib" ;;
16081		esac
16082		LIBS=" $ac_lib  $ac_save_LIBS"
16083		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084/* end confdefs.h.  */
16085
16086#include <stdio.h>
16087#ifdef HAVE_SYS_TYPES_H
16088#include <sys/types.h>
16089#endif
16090#ifdef HAVE_NETINET_IN_H
16091#include <netinet/in.h>
16092#endif
16093#ifdef HAVE_ARPA_NAMESER_H
16094#include <arpa/nameser.h>
16095#endif
16096#ifdef HAVE_RESOLV_H
16097#include <resolv.h>
16098#endif
16099
16100int
16101main ()
16102{
16103res_nsearch(0,0,0,0,0,0)
16104  ;
16105  return 0;
16106}
16107_ACEOF
16108if ac_fn_c_try_link "$LINENO"; then :
16109  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
16110fi
16111rm -f core conftest.err conftest.$ac_objext \
16112    conftest$ac_exeext conftest.$ac_ext
16113	done
16114	eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
16115	LIBS="$ac_save_LIBS"
16116fi
16117
16118fi
16119
16120
16121eval "ac_res=\$ac_cv_funclib_res_nsearch"
16122
16123if false; then
16124	for ac_func in res_nsearch
16125do :
16126  ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch"
16127if test "x$ac_cv_func_res_nsearch" = x""yes; then :
16128  cat >>confdefs.h <<_ACEOF
16129#define HAVE_RES_NSEARCH 1
16130_ACEOF
16131
16132fi
16133done
16134
16135fi
16136# res_nsearch
16137eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16138eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16139eval "LIB_res_nsearch=$ac_res"
16140
16141case "$ac_res" in
16142	yes)
16143	eval "ac_cv_func_res_nsearch=yes"
16144	eval "LIB_res_nsearch="
16145	cat >>confdefs.h <<_ACEOF
16146#define $ac_tr_func 1
16147_ACEOF
16148
16149	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16150$as_echo "yes" >&6; }
16151	;;
16152	no)
16153	eval "ac_cv_func_res_nsearch=no"
16154	eval "LIB_res_nsearch="
16155	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16156$as_echo "no" >&6; }
16157	;;
16158	*)
16159	eval "ac_cv_func_res_nsearch=yes"
16160	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16161	cat >>confdefs.h <<_ACEOF
16162#define $ac_tr_func 1
16163_ACEOF
16164
16165	cat >>confdefs.h <<_ACEOF
16166#define $ac_tr_lib 1
16167_ACEOF
16168
16169	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16170$as_echo "yes, in $ac_res" >&6; }
16171	;;
16172esac
16173
16174
16175if test -n "$LIB_res_nsearch"; then
16176	LIBS="$LIB_res_nsearch $LIBS"
16177fi
16178
16179
16180
16181
16182
16183
16184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5
16185$as_echo_n "checking for res_ndestroy... " >&6; }
16186if test "${ac_cv_funclib_res_ndestroy+set}" = set; then :
16187  $as_echo_n "(cached) " >&6
16188else
16189
16190if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then
16191	ac_save_LIBS="$LIBS"
16192	for ac_lib in "" resolv; do
16193		case "$ac_lib" in
16194		"") ;;
16195		yes) ac_lib="" ;;
16196		no) continue ;;
16197		-l*) ;;
16198		*) ac_lib="-l$ac_lib" ;;
16199		esac
16200		LIBS=" $ac_lib  $ac_save_LIBS"
16201		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202/* end confdefs.h.  */
16203
16204#include <stdio.h>
16205#ifdef HAVE_SYS_TYPES_H
16206#include <sys/types.h>
16207#endif
16208#ifdef HAVE_NETINET_IN_H
16209#include <netinet/in.h>
16210#endif
16211#ifdef HAVE_ARPA_NAMESER_H
16212#include <arpa/nameser.h>
16213#endif
16214#ifdef HAVE_RESOLV_H
16215#include <resolv.h>
16216#endif
16217
16218int
16219main ()
16220{
16221res_ndestroy(0)
16222  ;
16223  return 0;
16224}
16225_ACEOF
16226if ac_fn_c_try_link "$LINENO"; then :
16227  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break
16228fi
16229rm -f core conftest.err conftest.$ac_objext \
16230    conftest$ac_exeext conftest.$ac_ext
16231	done
16232	eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}"
16233	LIBS="$ac_save_LIBS"
16234fi
16235
16236fi
16237
16238
16239eval "ac_res=\$ac_cv_funclib_res_ndestroy"
16240
16241if false; then
16242	for ac_func in res_ndestroy
16243do :
16244  ac_fn_c_check_func "$LINENO" "res_ndestroy" "ac_cv_func_res_ndestroy"
16245if test "x$ac_cv_func_res_ndestroy" = x""yes; then :
16246  cat >>confdefs.h <<_ACEOF
16247#define HAVE_RES_NDESTROY 1
16248_ACEOF
16249
16250fi
16251done
16252
16253fi
16254# res_ndestroy
16255eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16256eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16257eval "LIB_res_ndestroy=$ac_res"
16258
16259case "$ac_res" in
16260	yes)
16261	eval "ac_cv_func_res_ndestroy=yes"
16262	eval "LIB_res_ndestroy="
16263	cat >>confdefs.h <<_ACEOF
16264#define $ac_tr_func 1
16265_ACEOF
16266
16267	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16268$as_echo "yes" >&6; }
16269	;;
16270	no)
16271	eval "ac_cv_func_res_ndestroy=no"
16272	eval "LIB_res_ndestroy="
16273	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16274$as_echo "no" >&6; }
16275	;;
16276	*)
16277	eval "ac_cv_func_res_ndestroy=yes"
16278	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16279	cat >>confdefs.h <<_ACEOF
16280#define $ac_tr_func 1
16281_ACEOF
16282
16283	cat >>confdefs.h <<_ACEOF
16284#define $ac_tr_lib 1
16285_ACEOF
16286
16287	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16288$as_echo "yes, in $ac_res" >&6; }
16289	;;
16290esac
16291
16292
16293if test -n "$LIB_res_ndestroy"; then
16294	LIBS="$LIB_res_ndestroy $LIBS"
16295fi
16296
16297
16298
16299
16300
16301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search" >&5
16302$as_echo_n "checking for dns_search... " >&6; }
16303if test "${ac_cv_funclib_dns_search+set}" = set; then :
16304  $as_echo_n "(cached) " >&6
16305else
16306
16307if eval "test \"\$ac_cv_func_dns_search\" != yes" ; then
16308	ac_save_LIBS="$LIBS"
16309	for ac_lib in "" ; do
16310		case "$ac_lib" in
16311		"") ;;
16312		yes) ac_lib="" ;;
16313		no) continue ;;
16314		-l*) ;;
16315		*) ac_lib="-l$ac_lib" ;;
16316		esac
16317		LIBS=" $ac_lib  $ac_save_LIBS"
16318		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16319/* end confdefs.h.  */
16320
16321#ifdef HAVE_DNS_H
16322#include <dns.h>
16323#endif
16324
16325int
16326main ()
16327{
16328dns_search(0,0,0,0,0,0,0,0)
16329  ;
16330  return 0;
16331}
16332_ACEOF
16333if ac_fn_c_try_link "$LINENO"; then :
16334  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dns_search=$ac_lib; else ac_cv_funclib_dns_search=yes; fi";break
16335fi
16336rm -f core conftest.err conftest.$ac_objext \
16337    conftest$ac_exeext conftest.$ac_ext
16338	done
16339	eval "ac_cv_funclib_dns_search=\${ac_cv_funclib_dns_search-no}"
16340	LIBS="$ac_save_LIBS"
16341fi
16342
16343fi
16344
16345
16346eval "ac_res=\$ac_cv_funclib_dns_search"
16347
16348if false; then
16349	for ac_func in dns_search
16350do :
16351  ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search"
16352if test "x$ac_cv_func_dns_search" = x""yes; then :
16353  cat >>confdefs.h <<_ACEOF
16354#define HAVE_DNS_SEARCH 1
16355_ACEOF
16356
16357fi
16358done
16359
16360fi
16361# dns_search
16362eval "ac_tr_func=HAVE_`echo dns_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16363eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16364eval "LIB_dns_search=$ac_res"
16365
16366case "$ac_res" in
16367	yes)
16368	eval "ac_cv_func_dns_search=yes"
16369	eval "LIB_dns_search="
16370	cat >>confdefs.h <<_ACEOF
16371#define $ac_tr_func 1
16372_ACEOF
16373
16374	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16375$as_echo "yes" >&6; }
16376	;;
16377	no)
16378	eval "ac_cv_func_dns_search=no"
16379	eval "LIB_dns_search="
16380	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16381$as_echo "no" >&6; }
16382	;;
16383	*)
16384	eval "ac_cv_func_dns_search=yes"
16385	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16386	cat >>confdefs.h <<_ACEOF
16387#define $ac_tr_func 1
16388_ACEOF
16389
16390	cat >>confdefs.h <<_ACEOF
16391#define $ac_tr_lib 1
16392_ACEOF
16393
16394	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16395$as_echo "yes, in $ac_res" >&6; }
16396	;;
16397esac
16398
16399
16400
16401
16402
16403
16404
16405
16406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand" >&5
16407$as_echo_n "checking for dn_expand... " >&6; }
16408if test "${ac_cv_funclib_dn_expand+set}" = set; then :
16409  $as_echo_n "(cached) " >&6
16410else
16411
16412if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
16413	ac_save_LIBS="$LIBS"
16414	for ac_lib in "" resolv; do
16415		case "$ac_lib" in
16416		"") ;;
16417		yes) ac_lib="" ;;
16418		no) continue ;;
16419		-l*) ;;
16420		*) ac_lib="-l$ac_lib" ;;
16421		esac
16422		LIBS=" $ac_lib  $ac_save_LIBS"
16423		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16424/* end confdefs.h.  */
16425
16426#include <stdio.h>
16427#ifdef HAVE_SYS_TYPES_H
16428#include <sys/types.h>
16429#endif
16430#ifdef HAVE_NETINET_IN_H
16431#include <netinet/in.h>
16432#endif
16433#ifdef HAVE_ARPA_NAMESER_H
16434#include <arpa/nameser.h>
16435#endif
16436#ifdef HAVE_RESOLV_H
16437#include <resolv.h>
16438#endif
16439
16440int
16441main ()
16442{
16443dn_expand(0,0,0,0,0)
16444  ;
16445  return 0;
16446}
16447_ACEOF
16448if ac_fn_c_try_link "$LINENO"; then :
16449  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
16450fi
16451rm -f core conftest.err conftest.$ac_objext \
16452    conftest$ac_exeext conftest.$ac_ext
16453	done
16454	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
16455	LIBS="$ac_save_LIBS"
16456fi
16457
16458fi
16459
16460
16461eval "ac_res=\$ac_cv_funclib_dn_expand"
16462
16463if false; then
16464	for ac_func in dn_expand
16465do :
16466  ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand"
16467if test "x$ac_cv_func_dn_expand" = x""yes; then :
16468  cat >>confdefs.h <<_ACEOF
16469#define HAVE_DN_EXPAND 1
16470_ACEOF
16471
16472fi
16473done
16474
16475fi
16476# dn_expand
16477eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16478eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16479eval "LIB_dn_expand=$ac_res"
16480
16481case "$ac_res" in
16482	yes)
16483	eval "ac_cv_func_dn_expand=yes"
16484	eval "LIB_dn_expand="
16485	cat >>confdefs.h <<_ACEOF
16486#define $ac_tr_func 1
16487_ACEOF
16488
16489	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16490$as_echo "yes" >&6; }
16491	;;
16492	no)
16493	eval "ac_cv_func_dn_expand=no"
16494	eval "LIB_dn_expand="
16495	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16496$as_echo "no" >&6; }
16497	;;
16498	*)
16499	eval "ac_cv_func_dn_expand=yes"
16500	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16501	cat >>confdefs.h <<_ACEOF
16502#define $ac_tr_func 1
16503_ACEOF
16504
16505	cat >>confdefs.h <<_ACEOF
16506#define $ac_tr_lib 1
16507_ACEOF
16508
16509	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
16510$as_echo "yes, in $ac_res" >&6; }
16511	;;
16512esac
16513
16514
16515if test -n "$LIB_dn_expand"; then
16516	LIBS="$LIB_dn_expand $LIBS"
16517fi
16518
16519
16520
16521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _res" >&5
16522$as_echo_n "checking for _res... " >&6; }
16523if test "${ac_cv_var__res+set}" = set; then :
16524  $as_echo_n "(cached) " >&6
16525else
16526
16527
16528	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529/* end confdefs.h.  */
16530#include <stdio.h>
16531#ifdef HAVE_SYS_TYPES_H
16532#include <sys/types.h>
16533#endif
16534#ifdef HAVE_NETINET_IN_H
16535#include <netinet/in.h>
16536#endif
16537#ifdef HAVE_ARPA_NAMESER_H
16538#include <arpa/nameser.h>
16539#endif
16540#ifdef HAVE_RESOLV_H
16541#include <resolv.h>
16542#endif
16543	void * foo(void) { return &_res; }
16544int
16545main ()
16546{
16547foo()
16548  ;
16549  return 0;
16550}
16551_ACEOF
16552if ac_fn_c_try_link "$LINENO"; then :
16553  ac_cv_var__res=yes
16554else
16555  ac_cv_var__res=no
16556fi
16557rm -f core conftest.err conftest.$ac_objext \
16558    conftest$ac_exeext conftest.$ac_ext
16559if test "$ac_cv_var__res" != yes ; then
16560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561/* end confdefs.h.  */
16562#include <stdio.h>
16563#ifdef HAVE_SYS_TYPES_H
16564#include <sys/types.h>
16565#endif
16566#ifdef HAVE_NETINET_IN_H
16567#include <netinet/in.h>
16568#endif
16569#ifdef HAVE_ARPA_NAMESER_H
16570#include <arpa/nameser.h>
16571#endif
16572#ifdef HAVE_RESOLV_H
16573#include <resolv.h>
16574#endif
16575extern int _res;
16576int foo(void) { return _res; }
16577int
16578main ()
16579{
16580foo()
16581  ;
16582  return 0;
16583}
16584_ACEOF
16585if ac_fn_c_try_link "$LINENO"; then :
16586  ac_cv_var__res=yes
16587else
16588  ac_cv_var__res=no
16589fi
16590rm -f core conftest.err conftest.$ac_objext \
16591    conftest$ac_exeext conftest.$ac_ext
16592fi
16593
16594fi
16595
16596ac_foo=`eval echo \\$ac_cv_var__res`
16597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
16598$as_echo "$ac_foo" >&6; }
16599if test "$ac_foo" = yes; then
16600
16601cat >>confdefs.h <<_ACEOF
16602#define HAVE__RES 1
16603_ACEOF
16604
16605
16606# ac_fn_c_check_decl LINENO SYMBOL VAR
16607# ------------------------------------
16608# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
16609ac_fn_c_check_decl ()
16610{
16611  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
16613$as_echo_n "checking whether $2 is declared... " >&6; }
16614if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
16615  $as_echo_n "(cached) " >&6
16616else
16617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618/* end confdefs.h.  */
16619$4
16620int
16621main ()
16622{
16623#ifndef $2
16624  (void) $2;
16625#endif
16626
16627  ;
16628  return 0;
16629}
16630_ACEOF
16631if ac_fn_c_try_compile "$LINENO"; then :
16632  eval "$3=yes"
16633else
16634  eval "$3=no"
16635fi
16636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637fi
16638eval ac_res=\$$3
16639	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16640$as_echo "$ac_res" >&6; }
16641  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
16642
16643} # ac_fn_c_check_decl
16644ac_fn_c_check_decl "$LINENO" "_res" "ac_cv_have_decl__res" "#include <stdio.h>
16645#ifdef HAVE_SYS_TYPES_H
16646#include <sys/types.h>
16647#endif
16648#ifdef HAVE_NETINET_IN_H
16649#include <netinet/in.h>
16650#endif
16651#ifdef HAVE_ARPA_NAMESER_H
16652#include <arpa/nameser.h>
16653#endif
16654#ifdef HAVE_RESOLV_H
16655#include <resolv.h>
16656#endif
16657"
16658if test "x$ac_cv_have_decl__res" = x""yes; then :
16659  ac_have_decl=1
16660else
16661  ac_have_decl=0
16662fi
16663
16664cat >>confdefs.h <<_ACEOF
16665#define HAVE_DECL__RES $ac_have_decl
16666_ACEOF
16667
16668fi
16669
16670
16671
16672
16673
16674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
16675$as_echo_n "checking for working snprintf... " >&6; }
16676if test "${ac_cv_func_snprintf_working+set}" = set; then :
16677  $as_echo_n "(cached) " >&6
16678else
16679  ac_cv_func_snprintf_working=yes
16680if test "$cross_compiling" = yes; then :
16681  :
16682else
16683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684/* end confdefs.h.  */
16685
16686#include <stdio.h>
16687#include <string.h>
16688int main(int argc, char **argv)
16689{
16690	char foo[3];
16691	snprintf(foo, 2, "12");
16692	return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2;
16693}
16694_ACEOF
16695if ac_fn_c_try_run "$LINENO"; then :
16696  :
16697else
16698  ac_cv_func_snprintf_working=no
16699fi
16700rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16701  conftest.$ac_objext conftest.beam conftest.$ac_ext
16702fi
16703
16704fi
16705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_working" >&5
16706$as_echo "$ac_cv_func_snprintf_working" >&6; }
16707
16708if test "$ac_cv_func_snprintf_working" = yes; then
16709
16710cat >>confdefs.h <<_ACEOF
16711#define HAVE_SNPRINTF 1
16712_ACEOF
16713
16714fi
16715if test "$ac_cv_func_snprintf_working" = yes; then
16716
16717if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
16718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if snprintf needs a prototype" >&5
16719$as_echo_n "checking if snprintf needs a prototype... " >&6; }
16720if test "${ac_cv_func_snprintf_noproto+set}" = set; then :
16721  $as_echo_n "(cached) " >&6
16722else
16723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724/* end confdefs.h.  */
16725#include <stdio.h>
16726struct foo { int foo; } xx;
16727extern int snprintf (struct foo*);
16728int
16729main ()
16730{
16731snprintf(&xx)
16732  ;
16733  return 0;
16734}
16735_ACEOF
16736if ac_fn_c_try_compile "$LINENO"; then :
16737  eval "ac_cv_func_snprintf_noproto=yes"
16738else
16739  eval "ac_cv_func_snprintf_noproto=no"
16740fi
16741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16742fi
16743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_noproto" >&5
16744$as_echo "$ac_cv_func_snprintf_noproto" >&6; }
16745if test "$ac_cv_func_snprintf_noproto" = yes; then
16746
16747$as_echo "#define NEED_SNPRINTF_PROTO 1" >>confdefs.h
16748
16749fi
16750fi
16751
16752fi
16753
16754
16755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5
16756$as_echo_n "checking for working vsnprintf... " >&6; }
16757if test "${ac_cv_func_vsnprintf_working+set}" = set; then :
16758  $as_echo_n "(cached) " >&6
16759else
16760  ac_cv_func_vsnprintf_working=yes
16761if test "$cross_compiling" = yes; then :
16762  :
16763else
16764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765/* end confdefs.h.  */
16766
16767#include <stdio.h>
16768#include <string.h>
16769#include <stdarg.h>
16770
16771int foo(int num, ...)
16772{
16773	char bar[3];
16774	va_list arg;
16775	va_start(arg, num);
16776	vsnprintf(bar, 2, "%s", arg);
16777	va_end(arg);
16778	return strcmp(bar, "1");
16779}
16780
16781int bar(int num, int len, ...)
16782{
16783	int r;
16784	va_list arg;
16785	va_start(arg, len);
16786	r = vsnprintf(NULL, 0, "%s", arg);
16787	va_end(arg);
16788	return r != len;
16789}
16790
16791int main(int argc, char **argv)
16792{
16793	return foo(0, "12") || bar(0, 2, "12");
16794}
16795_ACEOF
16796if ac_fn_c_try_run "$LINENO"; then :
16797  :
16798else
16799  ac_cv_func_vsnprintf_working=no
16800fi
16801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16802  conftest.$ac_objext conftest.beam conftest.$ac_ext
16803fi
16804
16805fi
16806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_working" >&5
16807$as_echo "$ac_cv_func_vsnprintf_working" >&6; }
16808
16809if test "$ac_cv_func_vsnprintf_working" = yes; then
16810
16811cat >>confdefs.h <<_ACEOF
16812#define HAVE_VSNPRINTF 1
16813_ACEOF
16814
16815fi
16816if test "$ac_cv_func_vsnprintf_working" = yes; then
16817
16818if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
16819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf needs a prototype" >&5
16820$as_echo_n "checking if vsnprintf needs a prototype... " >&6; }
16821if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then :
16822  $as_echo_n "(cached) " >&6
16823else
16824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825/* end confdefs.h.  */
16826#include <stdio.h>
16827struct foo { int foo; } xx;
16828extern int vsnprintf (struct foo*);
16829int
16830main ()
16831{
16832vsnprintf(&xx)
16833  ;
16834  return 0;
16835}
16836_ACEOF
16837if ac_fn_c_try_compile "$LINENO"; then :
16838  eval "ac_cv_func_vsnprintf_noproto=yes"
16839else
16840  eval "ac_cv_func_vsnprintf_noproto=no"
16841fi
16842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843fi
16844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_noproto" >&5
16845$as_echo "$ac_cv_func_vsnprintf_noproto" >&6; }
16846if test "$ac_cv_func_vsnprintf_noproto" = yes; then
16847
16848$as_echo "#define NEED_VSNPRINTF_PROTO 1" >>confdefs.h
16849
16850fi
16851fi
16852
16853fi
16854
16855
16856
16857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working glob" >&5
16858$as_echo_n "checking for working glob... " >&6; }
16859if test "${ac_cv_func_glob_working+set}" = set; then :
16860  $as_echo_n "(cached) " >&6
16861else
16862  ac_cv_func_glob_working=yes
16863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864/* end confdefs.h.  */
16865
16866#include <stdio.h>
16867#include <glob.h>
16868int
16869main ()
16870{
16871
16872glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
16873#ifdef GLOB_MAXPATH
16874GLOB_MAXPATH
16875#else
16876GLOB_LIMIT
16877#endif
16878,
16879NULL, NULL);
16880
16881  ;
16882  return 0;
16883}
16884_ACEOF
16885if ac_fn_c_try_link "$LINENO"; then :
16886  :
16887else
16888  ac_cv_func_glob_working=no
16889fi
16890rm -f core conftest.err conftest.$ac_objext \
16891    conftest$ac_exeext conftest.$ac_ext
16892fi
16893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_working" >&5
16894$as_echo "$ac_cv_func_glob_working" >&6; }
16895
16896if test "$ac_cv_func_glob_working" = yes; then
16897
16898$as_echo "#define HAVE_GLOB 1" >>confdefs.h
16899
16900fi
16901if test "$ac_cv_func_glob_working" = yes; then
16902
16903if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
16904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if glob needs a prototype" >&5
16905$as_echo_n "checking if glob needs a prototype... " >&6; }
16906if test "${ac_cv_func_glob_noproto+set}" = set; then :
16907  $as_echo_n "(cached) " >&6
16908else
16909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910/* end confdefs.h.  */
16911#include <stdio.h>
16912#include <glob.h>
16913struct foo { int foo; } xx;
16914extern int glob (struct foo*);
16915int
16916main ()
16917{
16918glob(&xx)
16919  ;
16920  return 0;
16921}
16922_ACEOF
16923if ac_fn_c_try_compile "$LINENO"; then :
16924  eval "ac_cv_func_glob_noproto=yes"
16925else
16926  eval "ac_cv_func_glob_noproto=no"
16927fi
16928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16929fi
16930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_noproto" >&5
16931$as_echo "$ac_cv_func_glob_noproto" >&6; }
16932if test "$ac_cv_func_glob_noproto" = yes; then
16933
16934$as_echo "#define NEED_GLOB_PROTO 1" >>confdefs.h
16935
16936fi
16937fi
16938
16939fi
16940
16941if test "$ac_cv_func_glob_working" != yes; then
16942	case " $LIBOBJS " in
16943  *" glob.$ac_objext "* ) ;;
16944  *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16945 ;;
16946esac
16947
16948fi
16949 if test "$ac_cv_func_glob_working" = yes; then
16950  have_glob_h_TRUE=
16951  have_glob_h_FALSE='#'
16952else
16953  have_glob_h_TRUE='#'
16954  have_glob_h_FALSE=
16955fi
16956
16957
16958
16959for ac_func in 				\
16960	asnprintf				\
16961	asprintf				\
16962	atexit					\
16963	cgetent					\
16964	getconfattr				\
16965	getprogname				\
16966	getrlimit				\
16967	getspnam				\
16968	initstate				\
16969	issetugid				\
16970	on_exit					\
16971	poll					\
16972	random					\
16973	setprogname				\
16974	setstate				\
16975	strsvis					\
16976	strsvisx				\
16977	strunvis				\
16978	strvis					\
16979	strvisx					\
16980	svis					\
16981	sysconf					\
16982	sysctl					\
16983	uname					\
16984	unvis					\
16985	vasnprintf				\
16986	vasprintf				\
16987	vis					\
16988
16989do :
16990  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16991ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16992eval as_val=\$$as_ac_var
16993   if test "x$as_val" = x""yes; then :
16994  cat >>confdefs.h <<_ACEOF
16995#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16996_ACEOF
16997
16998fi
16999done
17000
17001
17002if test "$ac_cv_func_cgetent" = no; then
17003	case " $LIBOBJS " in
17004  *" getcap.$ac_objext "* ) ;;
17005  *) LIBOBJS="$LIBOBJS getcap.$ac_objext"
17006 ;;
17007esac
17008
17009fi
17010 if test "$ac_cv_func_cgetent" = yes; then
17011  have_cgetent_TRUE=
17012  have_cgetent_FALSE='#'
17013else
17014  have_cgetent_TRUE='#'
17015  have_cgetent_FALSE=
17016fi
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt" >&5
17027$as_echo_n "checking for getsockopt... " >&6; }
17028if test "${ac_cv_funclib_getsockopt+set}" = set; then :
17029  $as_echo_n "(cached) " >&6
17030else
17031
17032if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
17033	ac_save_LIBS="$LIBS"
17034	for ac_lib in "" ; do
17035		case "$ac_lib" in
17036		"") ;;
17037		yes) ac_lib="" ;;
17038		no) continue ;;
17039		-l*) ;;
17040		*) ac_lib="-l$ac_lib" ;;
17041		esac
17042		LIBS=" $ac_lib  $ac_save_LIBS"
17043		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17044/* end confdefs.h.  */
17045#ifdef HAVE_SYS_TYPES_H
17046#include <sys/types.h>
17047#endif
17048#ifdef HAVE_SYS_SOCKET_H
17049#include <sys/socket.h>
17050#endif
17051int
17052main ()
17053{
17054getsockopt(0,0,0,0,0)
17055  ;
17056  return 0;
17057}
17058_ACEOF
17059if ac_fn_c_try_link "$LINENO"; then :
17060  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
17061fi
17062rm -f core conftest.err conftest.$ac_objext \
17063    conftest$ac_exeext conftest.$ac_ext
17064	done
17065	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
17066	LIBS="$ac_save_LIBS"
17067fi
17068
17069fi
17070
17071
17072eval "ac_res=\$ac_cv_funclib_getsockopt"
17073
17074if false; then
17075	for ac_func in getsockopt
17076do :
17077  ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
17078if test "x$ac_cv_func_getsockopt" = x""yes; then :
17079  cat >>confdefs.h <<_ACEOF
17080#define HAVE_GETSOCKOPT 1
17081_ACEOF
17082
17083fi
17084done
17085
17086fi
17087# getsockopt
17088eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17089eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17090eval "LIB_getsockopt=$ac_res"
17091
17092case "$ac_res" in
17093	yes)
17094	eval "ac_cv_func_getsockopt=yes"
17095	eval "LIB_getsockopt="
17096	cat >>confdefs.h <<_ACEOF
17097#define $ac_tr_func 1
17098_ACEOF
17099
17100	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17101$as_echo "yes" >&6; }
17102	;;
17103	no)
17104	eval "ac_cv_func_getsockopt=no"
17105	eval "LIB_getsockopt="
17106	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17107$as_echo "no" >&6; }
17108	;;
17109	*)
17110	eval "ac_cv_func_getsockopt=yes"
17111	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17112	cat >>confdefs.h <<_ACEOF
17113#define $ac_tr_func 1
17114_ACEOF
17115
17116	cat >>confdefs.h <<_ACEOF
17117#define $ac_tr_lib 1
17118_ACEOF
17119
17120	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17121$as_echo "yes, in $ac_res" >&6; }
17122	;;
17123esac
17124
17125
17126
17127
17128
17129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5
17130$as_echo_n "checking for setsockopt... " >&6; }
17131if test "${ac_cv_funclib_setsockopt+set}" = set; then :
17132  $as_echo_n "(cached) " >&6
17133else
17134
17135if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
17136	ac_save_LIBS="$LIBS"
17137	for ac_lib in "" ; do
17138		case "$ac_lib" in
17139		"") ;;
17140		yes) ac_lib="" ;;
17141		no) continue ;;
17142		-l*) ;;
17143		*) ac_lib="-l$ac_lib" ;;
17144		esac
17145		LIBS=" $ac_lib  $ac_save_LIBS"
17146		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147/* end confdefs.h.  */
17148#ifdef HAVE_SYS_TYPES_H
17149#include <sys/types.h>
17150#endif
17151#ifdef HAVE_SYS_SOCKET_H
17152#include <sys/socket.h>
17153#endif
17154int
17155main ()
17156{
17157setsockopt(0,0,0,0,0)
17158  ;
17159  return 0;
17160}
17161_ACEOF
17162if ac_fn_c_try_link "$LINENO"; then :
17163  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
17164fi
17165rm -f core conftest.err conftest.$ac_objext \
17166    conftest$ac_exeext conftest.$ac_ext
17167	done
17168	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
17169	LIBS="$ac_save_LIBS"
17170fi
17171
17172fi
17173
17174
17175eval "ac_res=\$ac_cv_funclib_setsockopt"
17176
17177if false; then
17178	for ac_func in setsockopt
17179do :
17180  ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
17181if test "x$ac_cv_func_setsockopt" = x""yes; then :
17182  cat >>confdefs.h <<_ACEOF
17183#define HAVE_SETSOCKOPT 1
17184_ACEOF
17185
17186fi
17187done
17188
17189fi
17190# setsockopt
17191eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17192eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17193eval "LIB_setsockopt=$ac_res"
17194
17195case "$ac_res" in
17196	yes)
17197	eval "ac_cv_func_setsockopt=yes"
17198	eval "LIB_setsockopt="
17199	cat >>confdefs.h <<_ACEOF
17200#define $ac_tr_func 1
17201_ACEOF
17202
17203	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17204$as_echo "yes" >&6; }
17205	;;
17206	no)
17207	eval "ac_cv_func_setsockopt=no"
17208	eval "LIB_setsockopt="
17209	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17210$as_echo "no" >&6; }
17211	;;
17212	*)
17213	eval "ac_cv_func_setsockopt=yes"
17214	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17215	cat >>confdefs.h <<_ACEOF
17216#define $ac_tr_func 1
17217_ACEOF
17218
17219	cat >>confdefs.h <<_ACEOF
17220#define $ac_tr_lib 1
17221_ACEOF
17222
17223	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17224$as_echo "yes, in $ac_res" >&6; }
17225	;;
17226esac
17227
17228
17229
17230
17231
17232
17233
17234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
17235$as_echo_n "checking for hstrerror... " >&6; }
17236if test "${ac_cv_funclib_hstrerror+set}" = set; then :
17237  $as_echo_n "(cached) " >&6
17238else
17239
17240if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
17241	ac_save_LIBS="$LIBS"
17242	for ac_lib in "" resolv; do
17243		case "$ac_lib" in
17244		"") ;;
17245		yes) ac_lib="" ;;
17246		no) continue ;;
17247		-l*) ;;
17248		*) ac_lib="-l$ac_lib" ;;
17249		esac
17250		LIBS=" $ac_lib  $ac_save_LIBS"
17251		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252/* end confdefs.h.  */
17253#ifdef HAVE_NETDB_H
17254#include <netdb.h>
17255#endif
17256int
17257main ()
17258{
17259hstrerror(17)
17260  ;
17261  return 0;
17262}
17263_ACEOF
17264if ac_fn_c_try_link "$LINENO"; then :
17265  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
17266fi
17267rm -f core conftest.err conftest.$ac_objext \
17268    conftest$ac_exeext conftest.$ac_ext
17269	done
17270	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
17271	LIBS="$ac_save_LIBS"
17272fi
17273
17274fi
17275
17276
17277eval "ac_res=\$ac_cv_funclib_hstrerror"
17278
17279if false; then
17280	for ac_func in hstrerror
17281do :
17282  ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
17283if test "x$ac_cv_func_hstrerror" = x""yes; then :
17284  cat >>confdefs.h <<_ACEOF
17285#define HAVE_HSTRERROR 1
17286_ACEOF
17287
17288fi
17289done
17290
17291fi
17292# hstrerror
17293eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17294eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17295eval "LIB_hstrerror=$ac_res"
17296
17297case "$ac_res" in
17298	yes)
17299	eval "ac_cv_func_hstrerror=yes"
17300	eval "LIB_hstrerror="
17301	cat >>confdefs.h <<_ACEOF
17302#define $ac_tr_func 1
17303_ACEOF
17304
17305	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17306$as_echo "yes" >&6; }
17307	;;
17308	no)
17309	eval "ac_cv_func_hstrerror=no"
17310	eval "LIB_hstrerror="
17311	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17312$as_echo "no" >&6; }
17313	;;
17314	*)
17315	eval "ac_cv_func_hstrerror=yes"
17316	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17317	cat >>confdefs.h <<_ACEOF
17318#define $ac_tr_func 1
17319_ACEOF
17320
17321	cat >>confdefs.h <<_ACEOF
17322#define $ac_tr_lib 1
17323_ACEOF
17324
17325	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17326$as_echo "yes, in $ac_res" >&6; }
17327	;;
17328esac
17329
17330
17331if test -n "$LIB_hstrerror"; then
17332	LIBS="$LIB_hstrerror $LIBS"
17333fi
17334
17335if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
17336	case " $LIBOBJS " in
17337  *" hstrerror.$ac_objext "* ) ;;
17338  *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
17339 ;;
17340esac
17341
17342fi
17343
17344
17345if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
17346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if hstrerror needs a prototype" >&5
17347$as_echo_n "checking if hstrerror needs a prototype... " >&6; }
17348if test "${ac_cv_func_hstrerror_noproto+set}" = set; then :
17349  $as_echo_n "(cached) " >&6
17350else
17351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352/* end confdefs.h.  */
17353
17354#ifdef HAVE_NETDB_H
17355#include <netdb.h>
17356#endif
17357struct foo { int foo; } xx;
17358extern int hstrerror (struct foo*);
17359int
17360main ()
17361{
17362hstrerror(&xx)
17363  ;
17364  return 0;
17365}
17366_ACEOF
17367if ac_fn_c_try_compile "$LINENO"; then :
17368  eval "ac_cv_func_hstrerror_noproto=yes"
17369else
17370  eval "ac_cv_func_hstrerror_noproto=no"
17371fi
17372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17373fi
17374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror_noproto" >&5
17375$as_echo "$ac_cv_func_hstrerror_noproto" >&6; }
17376if test "$ac_cv_func_hstrerror_noproto" = yes; then
17377
17378$as_echo "#define NEED_HSTRERROR_PROTO 1" >>confdefs.h
17379
17380fi
17381fi
17382
17383
17384
17385if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
17386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asprintf needs a prototype" >&5
17387$as_echo_n "checking if asprintf needs a prototype... " >&6; }
17388if test "${ac_cv_func_asprintf_noproto+set}" = set; then :
17389  $as_echo_n "(cached) " >&6
17390else
17391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392/* end confdefs.h.  */
17393
17394	#include <stdio.h>
17395	#include <string.h>
17396struct foo { int foo; } xx;
17397extern int asprintf (struct foo*);
17398int
17399main ()
17400{
17401asprintf(&xx)
17402  ;
17403  return 0;
17404}
17405_ACEOF
17406if ac_fn_c_try_compile "$LINENO"; then :
17407  eval "ac_cv_func_asprintf_noproto=yes"
17408else
17409  eval "ac_cv_func_asprintf_noproto=no"
17410fi
17411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412fi
17413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asprintf_noproto" >&5
17414$as_echo "$ac_cv_func_asprintf_noproto" >&6; }
17415if test "$ac_cv_func_asprintf_noproto" = yes; then
17416
17417$as_echo "#define NEED_ASPRINTF_PROTO 1" >>confdefs.h
17418
17419fi
17420fi
17421
17422if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
17423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasprintf needs a prototype" >&5
17424$as_echo_n "checking if vasprintf needs a prototype... " >&6; }
17425if test "${ac_cv_func_vasprintf_noproto+set}" = set; then :
17426  $as_echo_n "(cached) " >&6
17427else
17428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429/* end confdefs.h.  */
17430
17431	#include <stdio.h>
17432	#include <string.h>
17433struct foo { int foo; } xx;
17434extern int vasprintf (struct foo*);
17435int
17436main ()
17437{
17438vasprintf(&xx)
17439  ;
17440  return 0;
17441}
17442_ACEOF
17443if ac_fn_c_try_compile "$LINENO"; then :
17444  eval "ac_cv_func_vasprintf_noproto=yes"
17445else
17446  eval "ac_cv_func_vasprintf_noproto=no"
17447fi
17448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449fi
17450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasprintf_noproto" >&5
17451$as_echo "$ac_cv_func_vasprintf_noproto" >&6; }
17452if test "$ac_cv_func_vasprintf_noproto" = yes; then
17453
17454$as_echo "#define NEED_VASPRINTF_PROTO 1" >>confdefs.h
17455
17456fi
17457fi
17458
17459if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
17460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asnprintf needs a prototype" >&5
17461$as_echo_n "checking if asnprintf needs a prototype... " >&6; }
17462if test "${ac_cv_func_asnprintf_noproto+set}" = set; then :
17463  $as_echo_n "(cached) " >&6
17464else
17465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466/* end confdefs.h.  */
17467
17468	#include <stdio.h>
17469	#include <string.h>
17470struct foo { int foo; } xx;
17471extern int asnprintf (struct foo*);
17472int
17473main ()
17474{
17475asnprintf(&xx)
17476  ;
17477  return 0;
17478}
17479_ACEOF
17480if ac_fn_c_try_compile "$LINENO"; then :
17481  eval "ac_cv_func_asnprintf_noproto=yes"
17482else
17483  eval "ac_cv_func_asnprintf_noproto=no"
17484fi
17485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17486fi
17487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asnprintf_noproto" >&5
17488$as_echo "$ac_cv_func_asnprintf_noproto" >&6; }
17489if test "$ac_cv_func_asnprintf_noproto" = yes; then
17490
17491$as_echo "#define NEED_ASNPRINTF_PROTO 1" >>confdefs.h
17492
17493fi
17494fi
17495
17496if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
17497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasnprintf needs a prototype" >&5
17498$as_echo_n "checking if vasnprintf needs a prototype... " >&6; }
17499if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then :
17500  $as_echo_n "(cached) " >&6
17501else
17502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17503/* end confdefs.h.  */
17504
17505	#include <stdio.h>
17506	#include <string.h>
17507struct foo { int foo; } xx;
17508extern int vasnprintf (struct foo*);
17509int
17510main ()
17511{
17512vasnprintf(&xx)
17513  ;
17514  return 0;
17515}
17516_ACEOF
17517if ac_fn_c_try_compile "$LINENO"; then :
17518  eval "ac_cv_func_vasnprintf_noproto=yes"
17519else
17520  eval "ac_cv_func_vasnprintf_noproto=no"
17521fi
17522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523fi
17524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasnprintf_noproto" >&5
17525$as_echo "$ac_cv_func_vasnprintf_noproto" >&6; }
17526if test "$ac_cv_func_vasnprintf_noproto" = yes; then
17527
17528$as_echo "#define NEED_VASNPRINTF_PROTO 1" >>confdefs.h
17529
17530fi
17531fi
17532
17533
17534
17535
17536
17537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16" >&5
17538$as_echo_n "checking for bswap16... " >&6; }
17539if test "${ac_cv_funclib_bswap16+set}" = set; then :
17540  $as_echo_n "(cached) " >&6
17541else
17542
17543if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
17544	ac_save_LIBS="$LIBS"
17545	for ac_lib in "" ; do
17546		case "$ac_lib" in
17547		"") ;;
17548		yes) ac_lib="" ;;
17549		no) continue ;;
17550		-l*) ;;
17551		*) ac_lib="-l$ac_lib" ;;
17552		esac
17553		LIBS=" $ac_lib  $ac_save_LIBS"
17554		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555/* end confdefs.h.  */
17556#ifdef HAVE_SYS_TYPES_H
17557#include <sys/types.h>
17558#endif
17559#ifdef HAVE_SYS_BSWAP_H
17560#include <sys/bswap.h>
17561#endif
17562int
17563main ()
17564{
17565bswap16(0)
17566  ;
17567  return 0;
17568}
17569_ACEOF
17570if ac_fn_c_try_link "$LINENO"; then :
17571  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
17572fi
17573rm -f core conftest.err conftest.$ac_objext \
17574    conftest$ac_exeext conftest.$ac_ext
17575	done
17576	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
17577	LIBS="$ac_save_LIBS"
17578fi
17579
17580fi
17581
17582
17583eval "ac_res=\$ac_cv_funclib_bswap16"
17584
17585if false; then
17586	for ac_func in bswap16
17587do :
17588  ac_fn_c_check_func "$LINENO" "bswap16" "ac_cv_func_bswap16"
17589if test "x$ac_cv_func_bswap16" = x""yes; then :
17590  cat >>confdefs.h <<_ACEOF
17591#define HAVE_BSWAP16 1
17592_ACEOF
17593
17594fi
17595done
17596
17597fi
17598# bswap16
17599eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17600eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17601eval "LIB_bswap16=$ac_res"
17602
17603case "$ac_res" in
17604	yes)
17605	eval "ac_cv_func_bswap16=yes"
17606	eval "LIB_bswap16="
17607	cat >>confdefs.h <<_ACEOF
17608#define $ac_tr_func 1
17609_ACEOF
17610
17611	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17612$as_echo "yes" >&6; }
17613	;;
17614	no)
17615	eval "ac_cv_func_bswap16=no"
17616	eval "LIB_bswap16="
17617	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17618$as_echo "no" >&6; }
17619	;;
17620	*)
17621	eval "ac_cv_func_bswap16=yes"
17622	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17623	cat >>confdefs.h <<_ACEOF
17624#define $ac_tr_func 1
17625_ACEOF
17626
17627	cat >>confdefs.h <<_ACEOF
17628#define $ac_tr_lib 1
17629_ACEOF
17630
17631	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17632$as_echo "yes, in $ac_res" >&6; }
17633	;;
17634esac
17635
17636
17637
17638
17639
17640
17641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32" >&5
17642$as_echo_n "checking for bswap32... " >&6; }
17643if test "${ac_cv_funclib_bswap32+set}" = set; then :
17644  $as_echo_n "(cached) " >&6
17645else
17646
17647if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
17648	ac_save_LIBS="$LIBS"
17649	for ac_lib in "" ; do
17650		case "$ac_lib" in
17651		"") ;;
17652		yes) ac_lib="" ;;
17653		no) continue ;;
17654		-l*) ;;
17655		*) ac_lib="-l$ac_lib" ;;
17656		esac
17657		LIBS=" $ac_lib  $ac_save_LIBS"
17658		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659/* end confdefs.h.  */
17660#ifdef HAVE_SYS_TYPES_H
17661#include <sys/types.h>
17662#endif
17663#ifdef HAVE_SYS_BSWAP_H
17664#include <sys/bswap.h>
17665#endif
17666int
17667main ()
17668{
17669bswap32(0)
17670  ;
17671  return 0;
17672}
17673_ACEOF
17674if ac_fn_c_try_link "$LINENO"; then :
17675  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
17676fi
17677rm -f core conftest.err conftest.$ac_objext \
17678    conftest$ac_exeext conftest.$ac_ext
17679	done
17680	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
17681	LIBS="$ac_save_LIBS"
17682fi
17683
17684fi
17685
17686
17687eval "ac_res=\$ac_cv_funclib_bswap32"
17688
17689if false; then
17690	for ac_func in bswap32
17691do :
17692  ac_fn_c_check_func "$LINENO" "bswap32" "ac_cv_func_bswap32"
17693if test "x$ac_cv_func_bswap32" = x""yes; then :
17694  cat >>confdefs.h <<_ACEOF
17695#define HAVE_BSWAP32 1
17696_ACEOF
17697
17698fi
17699done
17700
17701fi
17702# bswap32
17703eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17704eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17705eval "LIB_bswap32=$ac_res"
17706
17707case "$ac_res" in
17708	yes)
17709	eval "ac_cv_func_bswap32=yes"
17710	eval "LIB_bswap32="
17711	cat >>confdefs.h <<_ACEOF
17712#define $ac_tr_func 1
17713_ACEOF
17714
17715	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17716$as_echo "yes" >&6; }
17717	;;
17718	no)
17719	eval "ac_cv_func_bswap32=no"
17720	eval "LIB_bswap32="
17721	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17722$as_echo "no" >&6; }
17723	;;
17724	*)
17725	eval "ac_cv_func_bswap32=yes"
17726	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17727	cat >>confdefs.h <<_ACEOF
17728#define $ac_tr_func 1
17729_ACEOF
17730
17731	cat >>confdefs.h <<_ACEOF
17732#define $ac_tr_lib 1
17733_ACEOF
17734
17735	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17736$as_echo "yes, in $ac_res" >&6; }
17737	;;
17738esac
17739
17740
17741
17742
17743
17744
17745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pidfile" >&5
17746$as_echo_n "checking for pidfile... " >&6; }
17747if test "${ac_cv_funclib_pidfile+set}" = set; then :
17748  $as_echo_n "(cached) " >&6
17749else
17750
17751if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
17752	ac_save_LIBS="$LIBS"
17753	for ac_lib in "" util; do
17754		case "$ac_lib" in
17755		"") ;;
17756		yes) ac_lib="" ;;
17757		no) continue ;;
17758		-l*) ;;
17759		*) ac_lib="-l$ac_lib" ;;
17760		esac
17761		LIBS=" $ac_lib  $ac_save_LIBS"
17762		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17763/* end confdefs.h.  */
17764#ifdef HAVE_UTIL_H
17765#include <util.h>
17766#endif
17767int
17768main ()
17769{
17770pidfile(0)
17771  ;
17772  return 0;
17773}
17774_ACEOF
17775if ac_fn_c_try_link "$LINENO"; then :
17776  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
17777fi
17778rm -f core conftest.err conftest.$ac_objext \
17779    conftest$ac_exeext conftest.$ac_ext
17780	done
17781	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
17782	LIBS="$ac_save_LIBS"
17783fi
17784
17785fi
17786
17787
17788eval "ac_res=\$ac_cv_funclib_pidfile"
17789
17790if false; then
17791	for ac_func in pidfile
17792do :
17793  ac_fn_c_check_func "$LINENO" "pidfile" "ac_cv_func_pidfile"
17794if test "x$ac_cv_func_pidfile" = x""yes; then :
17795  cat >>confdefs.h <<_ACEOF
17796#define HAVE_PIDFILE 1
17797_ACEOF
17798
17799fi
17800done
17801
17802fi
17803# pidfile
17804eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17805eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17806eval "LIB_pidfile=$ac_res"
17807
17808case "$ac_res" in
17809	yes)
17810	eval "ac_cv_func_pidfile=yes"
17811	eval "LIB_pidfile="
17812	cat >>confdefs.h <<_ACEOF
17813#define $ac_tr_func 1
17814_ACEOF
17815
17816	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17817$as_echo "yes" >&6; }
17818	;;
17819	no)
17820	eval "ac_cv_func_pidfile=no"
17821	eval "LIB_pidfile="
17822	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17823$as_echo "no" >&6; }
17824	;;
17825	*)
17826	eval "ac_cv_func_pidfile=yes"
17827	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17828	cat >>confdefs.h <<_ACEOF
17829#define $ac_tr_func 1
17830_ACEOF
17831
17832	cat >>confdefs.h <<_ACEOF
17833#define $ac_tr_lib 1
17834_ACEOF
17835
17836	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17837$as_echo "yes, in $ac_res" >&6; }
17838	;;
17839esac
17840
17841
17842
17843
17844
17845
17846
17847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17848$as_echo_n "checking for getaddrinfo... " >&6; }
17849if test "${ac_cv_funclib_getaddrinfo+set}" = set; then :
17850  $as_echo_n "(cached) " >&6
17851else
17852
17853if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
17854	ac_save_LIBS="$LIBS"
17855	for ac_lib in "" ; do
17856		case "$ac_lib" in
17857		"") ;;
17858		yes) ac_lib="" ;;
17859		no) continue ;;
17860		-l*) ;;
17861		*) ac_lib="-l$ac_lib" ;;
17862		esac
17863		LIBS=" $ac_lib  $ac_save_LIBS"
17864		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865/* end confdefs.h.  */
17866#ifdef HAVE_NETDB_H
17867#include <netdb.h>
17868#endif
17869#ifdef HAVE_WS2TCPIP_H
17870#include <ws2tcpip.h>
17871#endif
17872int
17873main ()
17874{
17875getaddrinfo(0,0,0,0)
17876  ;
17877  return 0;
17878}
17879_ACEOF
17880if ac_fn_c_try_link "$LINENO"; then :
17881  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
17882fi
17883rm -f core conftest.err conftest.$ac_objext \
17884    conftest$ac_exeext conftest.$ac_ext
17885	done
17886	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
17887	LIBS="$ac_save_LIBS"
17888fi
17889
17890fi
17891
17892
17893eval "ac_res=\$ac_cv_funclib_getaddrinfo"
17894
17895if false; then
17896	for ac_func in getaddrinfo
17897do :
17898  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17899if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
17900  cat >>confdefs.h <<_ACEOF
17901#define HAVE_GETADDRINFO 1
17902_ACEOF
17903
17904fi
17905done
17906
17907fi
17908# getaddrinfo
17909eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17910eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17911eval "LIB_getaddrinfo=$ac_res"
17912
17913case "$ac_res" in
17914	yes)
17915	eval "ac_cv_func_getaddrinfo=yes"
17916	eval "LIB_getaddrinfo="
17917	cat >>confdefs.h <<_ACEOF
17918#define $ac_tr_func 1
17919_ACEOF
17920
17921	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17922$as_echo "yes" >&6; }
17923	;;
17924	no)
17925	eval "ac_cv_func_getaddrinfo=no"
17926	eval "LIB_getaddrinfo="
17927	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17928$as_echo "no" >&6; }
17929	;;
17930	*)
17931	eval "ac_cv_func_getaddrinfo=yes"
17932	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17933	cat >>confdefs.h <<_ACEOF
17934#define $ac_tr_func 1
17935_ACEOF
17936
17937	cat >>confdefs.h <<_ACEOF
17938#define $ac_tr_lib 1
17939_ACEOF
17940
17941	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
17942$as_echo "yes, in $ac_res" >&6; }
17943	;;
17944esac
17945
17946
17947if test -n "$LIB_getaddrinfo"; then
17948	LIBS="$LIB_getaddrinfo $LIBS"
17949fi
17950
17951if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
17952	case " $LIBOBJS " in
17953  *" getaddrinfo.$ac_objext "* ) ;;
17954  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17955 ;;
17956esac
17957
17958fi
17959
17960
17961
17962
17963
17964
17965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
17966$as_echo_n "checking for getnameinfo... " >&6; }
17967if test "${ac_cv_funclib_getnameinfo+set}" = set; then :
17968  $as_echo_n "(cached) " >&6
17969else
17970
17971if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
17972	ac_save_LIBS="$LIBS"
17973	for ac_lib in "" ; do
17974		case "$ac_lib" in
17975		"") ;;
17976		yes) ac_lib="" ;;
17977		no) continue ;;
17978		-l*) ;;
17979		*) ac_lib="-l$ac_lib" ;;
17980		esac
17981		LIBS=" $ac_lib  $ac_save_LIBS"
17982		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17983/* end confdefs.h.  */
17984#ifdef HAVE_NETDB_H
17985#include <netdb.h>
17986#endif
17987#ifdef HAVE_WS2TCPIP_H
17988#include <ws2tcpip.h>
17989#endif
17990int
17991main ()
17992{
17993getnameinfo(0,0,0,0,0,0,0)
17994  ;
17995  return 0;
17996}
17997_ACEOF
17998if ac_fn_c_try_link "$LINENO"; then :
17999  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
18000fi
18001rm -f core conftest.err conftest.$ac_objext \
18002    conftest$ac_exeext conftest.$ac_ext
18003	done
18004	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
18005	LIBS="$ac_save_LIBS"
18006fi
18007
18008fi
18009
18010
18011eval "ac_res=\$ac_cv_funclib_getnameinfo"
18012
18013if false; then
18014	for ac_func in getnameinfo
18015do :
18016  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
18017if test "x$ac_cv_func_getnameinfo" = x""yes; then :
18018  cat >>confdefs.h <<_ACEOF
18019#define HAVE_GETNAMEINFO 1
18020_ACEOF
18021
18022fi
18023done
18024
18025fi
18026# getnameinfo
18027eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18028eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18029eval "LIB_getnameinfo=$ac_res"
18030
18031case "$ac_res" in
18032	yes)
18033	eval "ac_cv_func_getnameinfo=yes"
18034	eval "LIB_getnameinfo="
18035	cat >>confdefs.h <<_ACEOF
18036#define $ac_tr_func 1
18037_ACEOF
18038
18039	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18040$as_echo "yes" >&6; }
18041	;;
18042	no)
18043	eval "ac_cv_func_getnameinfo=no"
18044	eval "LIB_getnameinfo="
18045	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18046$as_echo "no" >&6; }
18047	;;
18048	*)
18049	eval "ac_cv_func_getnameinfo=yes"
18050	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18051	cat >>confdefs.h <<_ACEOF
18052#define $ac_tr_func 1
18053_ACEOF
18054
18055	cat >>confdefs.h <<_ACEOF
18056#define $ac_tr_lib 1
18057_ACEOF
18058
18059	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18060$as_echo "yes, in $ac_res" >&6; }
18061	;;
18062esac
18063
18064
18065if test -n "$LIB_getnameinfo"; then
18066	LIBS="$LIB_getnameinfo $LIBS"
18067fi
18068
18069if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
18070	case " $LIBOBJS " in
18071  *" getnameinfo.$ac_objext "* ) ;;
18072  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
18073 ;;
18074esac
18075
18076fi
18077
18078
18079
18080
18081
18082
18083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freeaddrinfo" >&5
18084$as_echo_n "checking for freeaddrinfo... " >&6; }
18085if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then :
18086  $as_echo_n "(cached) " >&6
18087else
18088
18089if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
18090	ac_save_LIBS="$LIBS"
18091	for ac_lib in "" ; do
18092		case "$ac_lib" in
18093		"") ;;
18094		yes) ac_lib="" ;;
18095		no) continue ;;
18096		-l*) ;;
18097		*) ac_lib="-l$ac_lib" ;;
18098		esac
18099		LIBS=" $ac_lib  $ac_save_LIBS"
18100		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18101/* end confdefs.h.  */
18102#ifdef HAVE_NETDB_H
18103#include <netdb.h>
18104#endif
18105#ifdef HAVE_WS2TCPIP_H
18106#include <ws2tcpip.h>
18107#endif
18108int
18109main ()
18110{
18111freeaddrinfo(0)
18112  ;
18113  return 0;
18114}
18115_ACEOF
18116if ac_fn_c_try_link "$LINENO"; then :
18117  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
18118fi
18119rm -f core conftest.err conftest.$ac_objext \
18120    conftest$ac_exeext conftest.$ac_ext
18121	done
18122	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
18123	LIBS="$ac_save_LIBS"
18124fi
18125
18126fi
18127
18128
18129eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
18130
18131if false; then
18132	for ac_func in freeaddrinfo
18133do :
18134  ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo"
18135if test "x$ac_cv_func_freeaddrinfo" = x""yes; then :
18136  cat >>confdefs.h <<_ACEOF
18137#define HAVE_FREEADDRINFO 1
18138_ACEOF
18139
18140fi
18141done
18142
18143fi
18144# freeaddrinfo
18145eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18146eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18147eval "LIB_freeaddrinfo=$ac_res"
18148
18149case "$ac_res" in
18150	yes)
18151	eval "ac_cv_func_freeaddrinfo=yes"
18152	eval "LIB_freeaddrinfo="
18153	cat >>confdefs.h <<_ACEOF
18154#define $ac_tr_func 1
18155_ACEOF
18156
18157	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18158$as_echo "yes" >&6; }
18159	;;
18160	no)
18161	eval "ac_cv_func_freeaddrinfo=no"
18162	eval "LIB_freeaddrinfo="
18163	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18164$as_echo "no" >&6; }
18165	;;
18166	*)
18167	eval "ac_cv_func_freeaddrinfo=yes"
18168	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18169	cat >>confdefs.h <<_ACEOF
18170#define $ac_tr_func 1
18171_ACEOF
18172
18173	cat >>confdefs.h <<_ACEOF
18174#define $ac_tr_lib 1
18175_ACEOF
18176
18177	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18178$as_echo "yes, in $ac_res" >&6; }
18179	;;
18180esac
18181
18182
18183if test -n "$LIB_freeaddrinfo"; then
18184	LIBS="$LIB_freeaddrinfo $LIBS"
18185fi
18186
18187if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
18188	case " $LIBOBJS " in
18189  *" freeaddrinfo.$ac_objext "* ) ;;
18190  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
18191 ;;
18192esac
18193
18194fi
18195
18196
18197
18198
18199
18200
18201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror" >&5
18202$as_echo_n "checking for gai_strerror... " >&6; }
18203if test "${ac_cv_funclib_gai_strerror+set}" = set; then :
18204  $as_echo_n "(cached) " >&6
18205else
18206
18207if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
18208	ac_save_LIBS="$LIBS"
18209	for ac_lib in "" ; do
18210		case "$ac_lib" in
18211		"") ;;
18212		yes) ac_lib="" ;;
18213		no) continue ;;
18214		-l*) ;;
18215		*) ac_lib="-l$ac_lib" ;;
18216		esac
18217		LIBS=" $ac_lib  $ac_save_LIBS"
18218		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219/* end confdefs.h.  */
18220#ifdef HAVE_NETDB_H
18221#include <netdb.h>
18222#endif
18223#ifdef HAVE_WS2TCPIP_H
18224#include <ws2tcpip.h>
18225#endif
18226int
18227main ()
18228{
18229gai_strerror(0)
18230  ;
18231  return 0;
18232}
18233_ACEOF
18234if ac_fn_c_try_link "$LINENO"; then :
18235  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
18236fi
18237rm -f core conftest.err conftest.$ac_objext \
18238    conftest$ac_exeext conftest.$ac_ext
18239	done
18240	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
18241	LIBS="$ac_save_LIBS"
18242fi
18243
18244fi
18245
18246
18247eval "ac_res=\$ac_cv_funclib_gai_strerror"
18248
18249if false; then
18250	for ac_func in gai_strerror
18251do :
18252  ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
18253if test "x$ac_cv_func_gai_strerror" = x""yes; then :
18254  cat >>confdefs.h <<_ACEOF
18255#define HAVE_GAI_STRERROR 1
18256_ACEOF
18257
18258fi
18259done
18260
18261fi
18262# gai_strerror
18263eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18264eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18265eval "LIB_gai_strerror=$ac_res"
18266
18267case "$ac_res" in
18268	yes)
18269	eval "ac_cv_func_gai_strerror=yes"
18270	eval "LIB_gai_strerror="
18271	cat >>confdefs.h <<_ACEOF
18272#define $ac_tr_func 1
18273_ACEOF
18274
18275	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18276$as_echo "yes" >&6; }
18277	;;
18278	no)
18279	eval "ac_cv_func_gai_strerror=no"
18280	eval "LIB_gai_strerror="
18281	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18282$as_echo "no" >&6; }
18283	;;
18284	*)
18285	eval "ac_cv_func_gai_strerror=yes"
18286	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18287	cat >>confdefs.h <<_ACEOF
18288#define $ac_tr_func 1
18289_ACEOF
18290
18291	cat >>confdefs.h <<_ACEOF
18292#define $ac_tr_lib 1
18293_ACEOF
18294
18295	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
18296$as_echo "yes, in $ac_res" >&6; }
18297	;;
18298esac
18299
18300
18301if test -n "$LIB_gai_strerror"; then
18302	LIBS="$LIB_gai_strerror $LIBS"
18303fi
18304
18305if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
18306	case " $LIBOBJS " in
18307  *" gai_strerror.$ac_objext "* ) ;;
18308  *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
18309 ;;
18310esac
18311
18312fi
18313
18314
18315case "$host_os" in
18316	darwin*)
18317		;;
18318	*)
18319
18320$as_echo "#define SUPPORT_DETACH 1" >>confdefs.h
18321
18322		ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
18323if test "x$ac_cv_func_daemon" = x""yes; then :
18324
18325cat >>confdefs.h <<_ACEOF
18326#define HAVE_DAEMON 1
18327_ACEOF
18328
18329else
18330  case " $LIBOBJS " in
18331  *" daemon.$ac_objext "* ) ;;
18332  *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
18333 ;;
18334esac
18335
18336fi
18337 ;;
18338esac
18339
18340ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
18341if test "x$ac_cv_func_chown" = x""yes; then :
18342
18343cat >>confdefs.h <<_ACEOF
18344#define HAVE_CHOWN 1
18345_ACEOF
18346
18347else
18348  case " $LIBOBJS " in
18349  *" chown.$ac_objext "* ) ;;
18350  *) LIBOBJS="$LIBOBJS chown.$ac_objext"
18351 ;;
18352esac
18353
18354fi
18355ac_fn_c_check_func "$LINENO" "copyhostent" "ac_cv_func_copyhostent"
18356if test "x$ac_cv_func_copyhostent" = x""yes; then :
18357
18358cat >>confdefs.h <<_ACEOF
18359#define HAVE_COPYHOSTENT 1
18360_ACEOF
18361
18362else
18363  case " $LIBOBJS " in
18364  *" copyhostent.$ac_objext "* ) ;;
18365  *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
18366 ;;
18367esac
18368
18369fi
18370ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
18371if test "x$ac_cv_func_closefrom" = x""yes; then :
18372
18373cat >>confdefs.h <<_ACEOF
18374#define HAVE_CLOSEFROM 1
18375_ACEOF
18376
18377else
18378  case " $LIBOBJS " in
18379  *" closefrom.$ac_objext "* ) ;;
18380  *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
18381 ;;
18382esac
18383
18384fi
18385ac_fn_c_check_func "$LINENO" "ecalloc" "ac_cv_func_ecalloc"
18386if test "x$ac_cv_func_ecalloc" = x""yes; then :
18387
18388cat >>confdefs.h <<_ACEOF
18389#define HAVE_ECALLOC 1
18390_ACEOF
18391
18392else
18393  case " $LIBOBJS " in
18394  *" ecalloc.$ac_objext "* ) ;;
18395  *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
18396 ;;
18397esac
18398
18399fi
18400ac_fn_c_check_func "$LINENO" "emalloc" "ac_cv_func_emalloc"
18401if test "x$ac_cv_func_emalloc" = x""yes; then :
18402
18403cat >>confdefs.h <<_ACEOF
18404#define HAVE_EMALLOC 1
18405_ACEOF
18406
18407else
18408  case " $LIBOBJS " in
18409  *" emalloc.$ac_objext "* ) ;;
18410  *) LIBOBJS="$LIBOBJS emalloc.$ac_objext"
18411 ;;
18412esac
18413
18414fi
18415ac_fn_c_check_func "$LINENO" "erealloc" "ac_cv_func_erealloc"
18416if test "x$ac_cv_func_erealloc" = x""yes; then :
18417
18418cat >>confdefs.h <<_ACEOF
18419#define HAVE_EREALLOC 1
18420_ACEOF
18421
18422else
18423  case " $LIBOBJS " in
18424  *" erealloc.$ac_objext "* ) ;;
18425  *) LIBOBJS="$LIBOBJS erealloc.$ac_objext"
18426 ;;
18427esac
18428
18429fi
18430ac_fn_c_check_func "$LINENO" "estrdup" "ac_cv_func_estrdup"
18431if test "x$ac_cv_func_estrdup" = x""yes; then :
18432
18433cat >>confdefs.h <<_ACEOF
18434#define HAVE_ESTRDUP 1
18435_ACEOF
18436
18437else
18438  case " $LIBOBJS " in
18439  *" estrdup.$ac_objext "* ) ;;
18440  *) LIBOBJS="$LIBOBJS estrdup.$ac_objext"
18441 ;;
18442esac
18443
18444fi
18445ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
18446if test "x$ac_cv_func_err" = x""yes; then :
18447
18448cat >>confdefs.h <<_ACEOF
18449#define HAVE_ERR 1
18450_ACEOF
18451
18452else
18453  case " $LIBOBJS " in
18454  *" err.$ac_objext "* ) ;;
18455  *) LIBOBJS="$LIBOBJS err.$ac_objext"
18456 ;;
18457esac
18458
18459fi
18460ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx"
18461if test "x$ac_cv_func_errx" = x""yes; then :
18462
18463cat >>confdefs.h <<_ACEOF
18464#define HAVE_ERRX 1
18465_ACEOF
18466
18467else
18468  case " $LIBOBJS " in
18469  *" errx.$ac_objext "* ) ;;
18470  *) LIBOBJS="$LIBOBJS errx.$ac_objext"
18471 ;;
18472esac
18473
18474fi
18475ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
18476if test "x$ac_cv_func_fchown" = x""yes; then :
18477
18478cat >>confdefs.h <<_ACEOF
18479#define HAVE_FCHOWN 1
18480_ACEOF
18481
18482else
18483  case " $LIBOBJS " in
18484  *" fchown.$ac_objext "* ) ;;
18485  *) LIBOBJS="$LIBOBJS fchown.$ac_objext"
18486 ;;
18487esac
18488
18489fi
18490ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
18491if test "x$ac_cv_func_flock" = x""yes; then :
18492
18493cat >>confdefs.h <<_ACEOF
18494#define HAVE_FLOCK 1
18495_ACEOF
18496
18497else
18498  case " $LIBOBJS " in
18499  *" flock.$ac_objext "* ) ;;
18500  *) LIBOBJS="$LIBOBJS flock.$ac_objext"
18501 ;;
18502esac
18503
18504fi
18505ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
18506if test "x$ac_cv_func_fnmatch" = x""yes; then :
18507
18508cat >>confdefs.h <<_ACEOF
18509#define HAVE_FNMATCH 1
18510_ACEOF
18511
18512else
18513  case " $LIBOBJS " in
18514  *" fnmatch.$ac_objext "* ) ;;
18515  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
18516 ;;
18517esac
18518
18519fi
18520ac_fn_c_check_func "$LINENO" "freehostent" "ac_cv_func_freehostent"
18521if test "x$ac_cv_func_freehostent" = x""yes; then :
18522
18523cat >>confdefs.h <<_ACEOF
18524#define HAVE_FREEHOSTENT 1
18525_ACEOF
18526
18527else
18528  case " $LIBOBJS " in
18529  *" freehostent.$ac_objext "* ) ;;
18530  *) LIBOBJS="$LIBOBJS freehostent.$ac_objext"
18531 ;;
18532esac
18533
18534fi
18535ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
18536if test "x$ac_cv_func_getcwd" = x""yes; then :
18537
18538cat >>confdefs.h <<_ACEOF
18539#define HAVE_GETCWD 1
18540_ACEOF
18541
18542else
18543  case " $LIBOBJS " in
18544  *" getcwd.$ac_objext "* ) ;;
18545  *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
18546 ;;
18547esac
18548
18549fi
18550ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
18551if test "x$ac_cv_func_getdtablesize" = x""yes; then :
18552
18553cat >>confdefs.h <<_ACEOF
18554#define HAVE_GETDTABLESIZE 1
18555_ACEOF
18556
18557else
18558  case " $LIBOBJS " in
18559  *" getdtablesize.$ac_objext "* ) ;;
18560  *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
18561 ;;
18562esac
18563
18564fi
18565ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
18566if test "x$ac_cv_func_getegid" = x""yes; then :
18567
18568cat >>confdefs.h <<_ACEOF
18569#define HAVE_GETEGID 1
18570_ACEOF
18571
18572else
18573  case " $LIBOBJS " in
18574  *" getegid.$ac_objext "* ) ;;
18575  *) LIBOBJS="$LIBOBJS getegid.$ac_objext"
18576 ;;
18577esac
18578
18579fi
18580ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
18581if test "x$ac_cv_func_geteuid" = x""yes; then :
18582
18583cat >>confdefs.h <<_ACEOF
18584#define HAVE_GETEUID 1
18585_ACEOF
18586
18587else
18588  case " $LIBOBJS " in
18589  *" geteuid.$ac_objext "* ) ;;
18590  *) LIBOBJS="$LIBOBJS geteuid.$ac_objext"
18591 ;;
18592esac
18593
18594fi
18595ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
18596if test "x$ac_cv_func_getgid" = x""yes; then :
18597
18598cat >>confdefs.h <<_ACEOF
18599#define HAVE_GETGID 1
18600_ACEOF
18601
18602else
18603  case " $LIBOBJS " in
18604  *" getgid.$ac_objext "* ) ;;
18605  *) LIBOBJS="$LIBOBJS getgid.$ac_objext"
18606 ;;
18607esac
18608
18609fi
18610ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
18611if test "x$ac_cv_func_gethostname" = x""yes; then :
18612
18613cat >>confdefs.h <<_ACEOF
18614#define HAVE_GETHOSTNAME 1
18615_ACEOF
18616
18617else
18618  case " $LIBOBJS " in
18619  *" gethostname.$ac_objext "* ) ;;
18620  *) LIBOBJS="$LIBOBJS gethostname.$ac_objext"
18621 ;;
18622esac
18623
18624fi
18625ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
18626if test "x$ac_cv_func_getifaddrs" = x""yes; then :
18627
18628cat >>confdefs.h <<_ACEOF
18629#define HAVE_GETIFADDRS 1
18630_ACEOF
18631
18632else
18633  case " $LIBOBJS " in
18634  *" getifaddrs.$ac_objext "* ) ;;
18635  *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
18636 ;;
18637esac
18638
18639fi
18640ac_fn_c_check_func "$LINENO" "getipnodebyaddr" "ac_cv_func_getipnodebyaddr"
18641if test "x$ac_cv_func_getipnodebyaddr" = x""yes; then :
18642
18643cat >>confdefs.h <<_ACEOF
18644#define HAVE_GETIPNODEBYADDR 1
18645_ACEOF
18646
18647else
18648  case " $LIBOBJS " in
18649  *" getipnodebyaddr.$ac_objext "* ) ;;
18650  *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
18651 ;;
18652esac
18653
18654fi
18655ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname"
18656if test "x$ac_cv_func_getipnodebyname" = x""yes; then :
18657
18658cat >>confdefs.h <<_ACEOF
18659#define HAVE_GETIPNODEBYNAME 1
18660_ACEOF
18661
18662else
18663  case " $LIBOBJS " in
18664  *" getipnodebyname.$ac_objext "* ) ;;
18665  *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
18666 ;;
18667esac
18668
18669fi
18670ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
18671if test "x$ac_cv_func_getopt" = x""yes; then :
18672
18673cat >>confdefs.h <<_ACEOF
18674#define HAVE_GETOPT 1
18675_ACEOF
18676
18677else
18678  case " $LIBOBJS " in
18679  *" getopt.$ac_objext "* ) ;;
18680  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
18681 ;;
18682esac
18683
18684fi
18685ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18686if test "x$ac_cv_func_gettimeofday" = x""yes; then :
18687
18688cat >>confdefs.h <<_ACEOF
18689#define HAVE_GETTIMEOFDAY 1
18690_ACEOF
18691
18692else
18693  case " $LIBOBJS " in
18694  *" gettimeofday.$ac_objext "* ) ;;
18695  *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
18696 ;;
18697esac
18698
18699fi
18700ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
18701if test "x$ac_cv_func_getuid" = x""yes; then :
18702
18703cat >>confdefs.h <<_ACEOF
18704#define HAVE_GETUID 1
18705_ACEOF
18706
18707else
18708  case " $LIBOBJS " in
18709  *" getuid.$ac_objext "* ) ;;
18710  *) LIBOBJS="$LIBOBJS getuid.$ac_objext"
18711 ;;
18712esac
18713
18714fi
18715ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell"
18716if test "x$ac_cv_func_getusershell" = x""yes; then :
18717
18718cat >>confdefs.h <<_ACEOF
18719#define HAVE_GETUSERSHELL 1
18720_ACEOF
18721
18722else
18723  case " $LIBOBJS " in
18724  *" getusershell.$ac_objext "* ) ;;
18725  *) LIBOBJS="$LIBOBJS getusershell.$ac_objext"
18726 ;;
18727esac
18728
18729fi
18730ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
18731if test "x$ac_cv_func_initgroups" = x""yes; then :
18732
18733cat >>confdefs.h <<_ACEOF
18734#define HAVE_INITGROUPS 1
18735_ACEOF
18736
18737else
18738  case " $LIBOBJS " in
18739  *" initgroups.$ac_objext "* ) ;;
18740  *) LIBOBJS="$LIBOBJS initgroups.$ac_objext"
18741 ;;
18742esac
18743
18744fi
18745ac_fn_c_check_func "$LINENO" "innetgr" "ac_cv_func_innetgr"
18746if test "x$ac_cv_func_innetgr" = x""yes; then :
18747
18748cat >>confdefs.h <<_ACEOF
18749#define HAVE_INNETGR 1
18750_ACEOF
18751
18752else
18753  case " $LIBOBJS " in
18754  *" innetgr.$ac_objext "* ) ;;
18755  *) LIBOBJS="$LIBOBJS innetgr.$ac_objext"
18756 ;;
18757esac
18758
18759fi
18760ac_fn_c_check_func "$LINENO" "iruserok" "ac_cv_func_iruserok"
18761if test "x$ac_cv_func_iruserok" = x""yes; then :
18762
18763cat >>confdefs.h <<_ACEOF
18764#define HAVE_IRUSEROK 1
18765_ACEOF
18766
18767else
18768  case " $LIBOBJS " in
18769  *" iruserok.$ac_objext "* ) ;;
18770  *) LIBOBJS="$LIBOBJS iruserok.$ac_objext"
18771 ;;
18772esac
18773
18774fi
18775ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
18776if test "x$ac_cv_func_localtime_r" = x""yes; then :
18777
18778cat >>confdefs.h <<_ACEOF
18779#define HAVE_LOCALTIME_R 1
18780_ACEOF
18781
18782else
18783  case " $LIBOBJS " in
18784  *" localtime_r.$ac_objext "* ) ;;
18785  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
18786 ;;
18787esac
18788
18789fi
18790ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
18791if test "x$ac_cv_func_lstat" = x""yes; then :
18792
18793cat >>confdefs.h <<_ACEOF
18794#define HAVE_LSTAT 1
18795_ACEOF
18796
18797else
18798  case " $LIBOBJS " in
18799  *" lstat.$ac_objext "* ) ;;
18800  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
18801 ;;
18802esac
18803
18804fi
18805ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18806if test "x$ac_cv_func_memmove" = x""yes; then :
18807
18808cat >>confdefs.h <<_ACEOF
18809#define HAVE_MEMMOVE 1
18810_ACEOF
18811
18812else
18813  case " $LIBOBJS " in
18814  *" memmove.$ac_objext "* ) ;;
18815  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
18816 ;;
18817esac
18818
18819fi
18820ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
18821if test "x$ac_cv_func_mkstemp" = x""yes; then :
18822
18823cat >>confdefs.h <<_ACEOF
18824#define HAVE_MKSTEMP 1
18825_ACEOF
18826
18827else
18828  case " $LIBOBJS " in
18829  *" mkstemp.$ac_objext "* ) ;;
18830  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
18831 ;;
18832esac
18833
18834fi
18835ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
18836if test "x$ac_cv_func_putenv" = x""yes; then :
18837
18838cat >>confdefs.h <<_ACEOF
18839#define HAVE_PUTENV 1
18840_ACEOF
18841
18842else
18843  case " $LIBOBJS " in
18844  *" putenv.$ac_objext "* ) ;;
18845  *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
18846 ;;
18847esac
18848
18849fi
18850ac_fn_c_check_func "$LINENO" "rcmd" "ac_cv_func_rcmd"
18851if test "x$ac_cv_func_rcmd" = x""yes; then :
18852
18853cat >>confdefs.h <<_ACEOF
18854#define HAVE_RCMD 1
18855_ACEOF
18856
18857else
18858  case " $LIBOBJS " in
18859  *" rcmd.$ac_objext "* ) ;;
18860  *) LIBOBJS="$LIBOBJS rcmd.$ac_objext"
18861 ;;
18862esac
18863
18864fi
18865ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv"
18866if test "x$ac_cv_func_readv" = x""yes; then :
18867
18868cat >>confdefs.h <<_ACEOF
18869#define HAVE_READV 1
18870_ACEOF
18871
18872else
18873  case " $LIBOBJS " in
18874  *" readv.$ac_objext "* ) ;;
18875  *) LIBOBJS="$LIBOBJS readv.$ac_objext"
18876 ;;
18877esac
18878
18879fi
18880ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
18881if test "x$ac_cv_func_recvmsg" = x""yes; then :
18882
18883cat >>confdefs.h <<_ACEOF
18884#define HAVE_RECVMSG 1
18885_ACEOF
18886
18887else
18888  case " $LIBOBJS " in
18889  *" recvmsg.$ac_objext "* ) ;;
18890  *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
18891 ;;
18892esac
18893
18894fi
18895ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg"
18896if test "x$ac_cv_func_sendmsg" = x""yes; then :
18897
18898cat >>confdefs.h <<_ACEOF
18899#define HAVE_SENDMSG 1
18900_ACEOF
18901
18902else
18903  case " $LIBOBJS " in
18904  *" sendmsg.$ac_objext "* ) ;;
18905  *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
18906 ;;
18907esac
18908
18909fi
18910ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
18911if test "x$ac_cv_func_setegid" = x""yes; then :
18912
18913cat >>confdefs.h <<_ACEOF
18914#define HAVE_SETEGID 1
18915_ACEOF
18916
18917else
18918  case " $LIBOBJS " in
18919  *" setegid.$ac_objext "* ) ;;
18920  *) LIBOBJS="$LIBOBJS setegid.$ac_objext"
18921 ;;
18922esac
18923
18924fi
18925ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
18926if test "x$ac_cv_func_setenv" = x""yes; then :
18927
18928cat >>confdefs.h <<_ACEOF
18929#define HAVE_SETENV 1
18930_ACEOF
18931
18932else
18933  case " $LIBOBJS " in
18934  *" setenv.$ac_objext "* ) ;;
18935  *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
18936 ;;
18937esac
18938
18939fi
18940ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
18941if test "x$ac_cv_func_seteuid" = x""yes; then :
18942
18943cat >>confdefs.h <<_ACEOF
18944#define HAVE_SETEUID 1
18945_ACEOF
18946
18947else
18948  case " $LIBOBJS " in
18949  *" seteuid.$ac_objext "* ) ;;
18950  *) LIBOBJS="$LIBOBJS seteuid.$ac_objext"
18951 ;;
18952esac
18953
18954fi
18955ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
18956if test "x$ac_cv_func_strcasecmp" = x""yes; then :
18957
18958cat >>confdefs.h <<_ACEOF
18959#define HAVE_STRCASECMP 1
18960_ACEOF
18961
18962else
18963  case " $LIBOBJS " in
18964  *" strcasecmp.$ac_objext "* ) ;;
18965  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
18966 ;;
18967esac
18968
18969fi
18970ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
18971if test "x$ac_cv_func_strdup" = x""yes; then :
18972
18973cat >>confdefs.h <<_ACEOF
18974#define HAVE_STRDUP 1
18975_ACEOF
18976
18977else
18978  case " $LIBOBJS " in
18979  *" strdup.$ac_objext "* ) ;;
18980  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
18981 ;;
18982esac
18983
18984fi
18985ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
18986if test "x$ac_cv_func_strerror" = x""yes; then :
18987
18988cat >>confdefs.h <<_ACEOF
18989#define HAVE_STRERROR 1
18990_ACEOF
18991
18992else
18993  case " $LIBOBJS " in
18994  *" strerror.$ac_objext "* ) ;;
18995  *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
18996 ;;
18997esac
18998
18999fi
19000ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
19001if test "x$ac_cv_func_strftime" = x""yes; then :
19002
19003cat >>confdefs.h <<_ACEOF
19004#define HAVE_STRFTIME 1
19005_ACEOF
19006
19007else
19008  case " $LIBOBJS " in
19009  *" strftime.$ac_objext "* ) ;;
19010  *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
19011 ;;
19012esac
19013
19014fi
19015ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19016if test "x$ac_cv_func_strlcat" = x""yes; then :
19017
19018cat >>confdefs.h <<_ACEOF
19019#define HAVE_STRLCAT 1
19020_ACEOF
19021
19022else
19023  case " $LIBOBJS " in
19024  *" strlcat.$ac_objext "* ) ;;
19025  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
19026 ;;
19027esac
19028
19029fi
19030ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
19031if test "x$ac_cv_func_strlcpy" = x""yes; then :
19032
19033cat >>confdefs.h <<_ACEOF
19034#define HAVE_STRLCPY 1
19035_ACEOF
19036
19037else
19038  case " $LIBOBJS " in
19039  *" strlcpy.$ac_objext "* ) ;;
19040  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
19041 ;;
19042esac
19043
19044fi
19045ac_fn_c_check_func "$LINENO" "strlwr" "ac_cv_func_strlwr"
19046if test "x$ac_cv_func_strlwr" = x""yes; then :
19047
19048cat >>confdefs.h <<_ACEOF
19049#define HAVE_STRLWR 1
19050_ACEOF
19051
19052else
19053  case " $LIBOBJS " in
19054  *" strlwr.$ac_objext "* ) ;;
19055  *) LIBOBJS="$LIBOBJS strlwr.$ac_objext"
19056 ;;
19057esac
19058
19059fi
19060ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
19061if test "x$ac_cv_func_strncasecmp" = x""yes; then :
19062
19063cat >>confdefs.h <<_ACEOF
19064#define HAVE_STRNCASECMP 1
19065_ACEOF
19066
19067else
19068  case " $LIBOBJS " in
19069  *" strncasecmp.$ac_objext "* ) ;;
19070  *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
19071 ;;
19072esac
19073
19074fi
19075ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
19076if test "x$ac_cv_func_strndup" = x""yes; then :
19077
19078cat >>confdefs.h <<_ACEOF
19079#define HAVE_STRNDUP 1
19080_ACEOF
19081
19082else
19083  case " $LIBOBJS " in
19084  *" strndup.$ac_objext "* ) ;;
19085  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
19086 ;;
19087esac
19088
19089fi
19090ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
19091if test "x$ac_cv_func_strnlen" = x""yes; then :
19092
19093cat >>confdefs.h <<_ACEOF
19094#define HAVE_STRNLEN 1
19095_ACEOF
19096
19097else
19098  case " $LIBOBJS " in
19099  *" strnlen.$ac_objext "* ) ;;
19100  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
19101 ;;
19102esac
19103
19104fi
19105ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
19106if test "x$ac_cv_func_strptime" = x""yes; then :
19107
19108cat >>confdefs.h <<_ACEOF
19109#define HAVE_STRPTIME 1
19110_ACEOF
19111
19112else
19113  case " $LIBOBJS " in
19114  *" strptime.$ac_objext "* ) ;;
19115  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
19116 ;;
19117esac
19118
19119fi
19120ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
19121if test "x$ac_cv_func_strsep" = x""yes; then :
19122
19123cat >>confdefs.h <<_ACEOF
19124#define HAVE_STRSEP 1
19125_ACEOF
19126
19127else
19128  case " $LIBOBJS " in
19129  *" strsep.$ac_objext "* ) ;;
19130  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
19131 ;;
19132esac
19133
19134fi
19135ac_fn_c_check_func "$LINENO" "strsep_copy" "ac_cv_func_strsep_copy"
19136if test "x$ac_cv_func_strsep_copy" = x""yes; then :
19137
19138cat >>confdefs.h <<_ACEOF
19139#define HAVE_STRSEP_COPY 1
19140_ACEOF
19141
19142else
19143  case " $LIBOBJS " in
19144  *" strsep_copy.$ac_objext "* ) ;;
19145  *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
19146 ;;
19147esac
19148
19149fi
19150ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
19151if test "x$ac_cv_func_strtok_r" = x""yes; then :
19152
19153cat >>confdefs.h <<_ACEOF
19154#define HAVE_STRTOK_R 1
19155_ACEOF
19156
19157else
19158  case " $LIBOBJS " in
19159  *" strtok_r.$ac_objext "* ) ;;
19160  *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
19161 ;;
19162esac
19163
19164fi
19165ac_fn_c_check_func "$LINENO" "strupr" "ac_cv_func_strupr"
19166if test "x$ac_cv_func_strupr" = x""yes; then :
19167
19168cat >>confdefs.h <<_ACEOF
19169#define HAVE_STRUPR 1
19170_ACEOF
19171
19172else
19173  case " $LIBOBJS " in
19174  *" strupr.$ac_objext "* ) ;;
19175  *) LIBOBJS="$LIBOBJS strupr.$ac_objext"
19176 ;;
19177esac
19178
19179fi
19180ac_fn_c_check_func "$LINENO" "swab" "ac_cv_func_swab"
19181if test "x$ac_cv_func_swab" = x""yes; then :
19182
19183cat >>confdefs.h <<_ACEOF
19184#define HAVE_SWAB 1
19185_ACEOF
19186
19187else
19188  case " $LIBOBJS " in
19189  *" swab.$ac_objext "* ) ;;
19190  *) LIBOBJS="$LIBOBJS swab.$ac_objext"
19191 ;;
19192esac
19193
19194fi
19195ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
19196if test "x$ac_cv_func_timegm" = x""yes; then :
19197
19198cat >>confdefs.h <<_ACEOF
19199#define HAVE_TIMEGM 1
19200_ACEOF
19201
19202else
19203  case " $LIBOBJS " in
19204  *" timegm.$ac_objext "* ) ;;
19205  *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
19206 ;;
19207esac
19208
19209fi
19210ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
19211if test "x$ac_cv_func_unsetenv" = x""yes; then :
19212
19213cat >>confdefs.h <<_ACEOF
19214#define HAVE_UNSETENV 1
19215_ACEOF
19216
19217else
19218  case " $LIBOBJS " in
19219  *" unsetenv.$ac_objext "* ) ;;
19220  *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
19221 ;;
19222esac
19223
19224fi
19225ac_fn_c_check_func "$LINENO" "verr" "ac_cv_func_verr"
19226if test "x$ac_cv_func_verr" = x""yes; then :
19227
19228cat >>confdefs.h <<_ACEOF
19229#define HAVE_VERR 1
19230_ACEOF
19231
19232else
19233  case " $LIBOBJS " in
19234  *" verr.$ac_objext "* ) ;;
19235  *) LIBOBJS="$LIBOBJS verr.$ac_objext"
19236 ;;
19237esac
19238
19239fi
19240ac_fn_c_check_func "$LINENO" "verrx" "ac_cv_func_verrx"
19241if test "x$ac_cv_func_verrx" = x""yes; then :
19242
19243cat >>confdefs.h <<_ACEOF
19244#define HAVE_VERRX 1
19245_ACEOF
19246
19247else
19248  case " $LIBOBJS " in
19249  *" verrx.$ac_objext "* ) ;;
19250  *) LIBOBJS="$LIBOBJS verrx.$ac_objext"
19251 ;;
19252esac
19253
19254fi
19255ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
19256if test "x$ac_cv_func_vsyslog" = x""yes; then :
19257
19258cat >>confdefs.h <<_ACEOF
19259#define HAVE_VSYSLOG 1
19260_ACEOF
19261
19262else
19263  case " $LIBOBJS " in
19264  *" vsyslog.$ac_objext "* ) ;;
19265  *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
19266 ;;
19267esac
19268
19269fi
19270ac_fn_c_check_func "$LINENO" "vwarn" "ac_cv_func_vwarn"
19271if test "x$ac_cv_func_vwarn" = x""yes; then :
19272
19273cat >>confdefs.h <<_ACEOF
19274#define HAVE_VWARN 1
19275_ACEOF
19276
19277else
19278  case " $LIBOBJS " in
19279  *" vwarn.$ac_objext "* ) ;;
19280  *) LIBOBJS="$LIBOBJS vwarn.$ac_objext"
19281 ;;
19282esac
19283
19284fi
19285ac_fn_c_check_func "$LINENO" "vwarnx" "ac_cv_func_vwarnx"
19286if test "x$ac_cv_func_vwarnx" = x""yes; then :
19287
19288cat >>confdefs.h <<_ACEOF
19289#define HAVE_VWARNX 1
19290_ACEOF
19291
19292else
19293  case " $LIBOBJS " in
19294  *" vwarnx.$ac_objext "* ) ;;
19295  *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
19296 ;;
19297esac
19298
19299fi
19300ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
19301if test "x$ac_cv_func_warn" = x""yes; then :
19302
19303cat >>confdefs.h <<_ACEOF
19304#define HAVE_WARN 1
19305_ACEOF
19306
19307else
19308  case " $LIBOBJS " in
19309  *" warn.$ac_objext "* ) ;;
19310  *) LIBOBJS="$LIBOBJS warn.$ac_objext"
19311 ;;
19312esac
19313
19314fi
19315ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx"
19316if test "x$ac_cv_func_warnx" = x""yes; then :
19317
19318cat >>confdefs.h <<_ACEOF
19319#define HAVE_WARNX 1
19320_ACEOF
19321
19322else
19323  case " $LIBOBJS " in
19324  *" warnx.$ac_objext "* ) ;;
19325  *) LIBOBJS="$LIBOBJS warnx.$ac_objext"
19326 ;;
19327esac
19328
19329fi
19330ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
19331if test "x$ac_cv_func_writev" = x""yes; then :
19332
19333cat >>confdefs.h <<_ACEOF
19334#define HAVE_WRITEV 1
19335_ACEOF
19336
19337else
19338  case " $LIBOBJS " in
19339  *" writev.$ac_objext "* ) ;;
19340  *) LIBOBJS="$LIBOBJS writev.$ac_objext"
19341 ;;
19342esac
19343
19344fi
19345
19346
19347 if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then
19348  have_fnmatch_h_TRUE=
19349  have_fnmatch_h_FALSE='#'
19350else
19351  have_fnmatch_h_TRUE='#'
19352  have_fnmatch_h_FALSE=
19353fi
19354
19355
19356
19357if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
19358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strndup needs a prototype" >&5
19359$as_echo_n "checking if strndup needs a prototype... " >&6; }
19360if test "${ac_cv_func_strndup_noproto+set}" = set; then :
19361  $as_echo_n "(cached) " >&6
19362else
19363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364/* end confdefs.h.  */
19365#include <string.h>
19366struct foo { int foo; } xx;
19367extern int strndup (struct foo*);
19368int
19369main ()
19370{
19371strndup(&xx)
19372  ;
19373  return 0;
19374}
19375_ACEOF
19376if ac_fn_c_try_compile "$LINENO"; then :
19377  eval "ac_cv_func_strndup_noproto=yes"
19378else
19379  eval "ac_cv_func_strndup_noproto=no"
19380fi
19381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19382fi
19383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strndup_noproto" >&5
19384$as_echo "$ac_cv_func_strndup_noproto" >&6; }
19385if test "$ac_cv_func_strndup_noproto" = yes; then
19386
19387$as_echo "#define NEED_STRNDUP_PROTO 1" >>confdefs.h
19388
19389fi
19390fi
19391
19392if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
19393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsep needs a prototype" >&5
19394$as_echo_n "checking if strsep needs a prototype... " >&6; }
19395if test "${ac_cv_func_strsep_noproto+set}" = set; then :
19396  $as_echo_n "(cached) " >&6
19397else
19398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399/* end confdefs.h.  */
19400#include <string.h>
19401struct foo { int foo; } xx;
19402extern int strsep (struct foo*);
19403int
19404main ()
19405{
19406strsep(&xx)
19407  ;
19408  return 0;
19409}
19410_ACEOF
19411if ac_fn_c_try_compile "$LINENO"; then :
19412  eval "ac_cv_func_strsep_noproto=yes"
19413else
19414  eval "ac_cv_func_strsep_noproto=no"
19415fi
19416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417fi
19418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsep_noproto" >&5
19419$as_echo "$ac_cv_func_strsep_noproto" >&6; }
19420if test "$ac_cv_func_strsep_noproto" = yes; then
19421
19422$as_echo "#define NEED_STRSEP_PROTO 1" >>confdefs.h
19423
19424fi
19425fi
19426
19427if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
19428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r needs a prototype" >&5
19429$as_echo_n "checking if strtok_r needs a prototype... " >&6; }
19430if test "${ac_cv_func_strtok_r_noproto+set}" = set; then :
19431  $as_echo_n "(cached) " >&6
19432else
19433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19434/* end confdefs.h.  */
19435#include <string.h>
19436struct foo { int foo; } xx;
19437extern int strtok_r (struct foo*);
19438int
19439main ()
19440{
19441strtok_r(&xx)
19442  ;
19443  return 0;
19444}
19445_ACEOF
19446if ac_fn_c_try_compile "$LINENO"; then :
19447  eval "ac_cv_func_strtok_r_noproto=yes"
19448else
19449  eval "ac_cv_func_strtok_r_noproto=no"
19450fi
19451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19452fi
19453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtok_r_noproto" >&5
19454$as_echo "$ac_cv_func_strtok_r_noproto" >&6; }
19455if test "$ac_cv_func_strtok_r_noproto" = yes; then
19456
19457$as_echo "#define NEED_STRTOK_R_PROTO 1" >>confdefs.h
19458
19459fi
19460fi
19461
19462
19463
19464if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
19465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsvis needs a prototype" >&5
19466$as_echo_n "checking if strsvis needs a prototype... " >&6; }
19467if test "${ac_cv_func_strsvis_noproto+set}" = set; then :
19468  $as_echo_n "(cached) " >&6
19469else
19470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19471/* end confdefs.h.  */
19472#ifdef HAVE_VIS_H
19473#include <vis.h>
19474#endif
19475struct foo { int foo; } xx;
19476extern int strsvis (struct foo*);
19477int
19478main ()
19479{
19480strsvis(&xx)
19481  ;
19482  return 0;
19483}
19484_ACEOF
19485if ac_fn_c_try_compile "$LINENO"; then :
19486  eval "ac_cv_func_strsvis_noproto=yes"
19487else
19488  eval "ac_cv_func_strsvis_noproto=no"
19489fi
19490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491fi
19492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvis_noproto" >&5
19493$as_echo "$ac_cv_func_strsvis_noproto" >&6; }
19494if test "$ac_cv_func_strsvis_noproto" = yes; then
19495
19496$as_echo "#define NEED_STRSVIS_PROTO 1" >>confdefs.h
19497
19498fi
19499fi
19500
19501if test "$ac_cv_func_strsvisx+set" != set -o "$ac_cv_func_strsvisx" = yes; then
19502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsvisx needs a prototype" >&5
19503$as_echo_n "checking if strsvisx needs a prototype... " >&6; }
19504if test "${ac_cv_func_strsvisx_noproto+set}" = set; then :
19505  $as_echo_n "(cached) " >&6
19506else
19507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19508/* end confdefs.h.  */
19509#ifdef HAVE_VIS_H
19510#include <vis.h>
19511#endif
19512struct foo { int foo; } xx;
19513extern int strsvisx (struct foo*);
19514int
19515main ()
19516{
19517strsvisx(&xx)
19518  ;
19519  return 0;
19520}
19521_ACEOF
19522if ac_fn_c_try_compile "$LINENO"; then :
19523  eval "ac_cv_func_strsvisx_noproto=yes"
19524else
19525  eval "ac_cv_func_strsvisx_noproto=no"
19526fi
19527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19528fi
19529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvisx_noproto" >&5
19530$as_echo "$ac_cv_func_strsvisx_noproto" >&6; }
19531if test "$ac_cv_func_strsvisx_noproto" = yes; then
19532
19533$as_echo "#define NEED_STRSVISX_PROTO 1" >>confdefs.h
19534
19535fi
19536fi
19537
19538if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
19539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strunvis needs a prototype" >&5
19540$as_echo_n "checking if strunvis needs a prototype... " >&6; }
19541if test "${ac_cv_func_strunvis_noproto+set}" = set; then :
19542  $as_echo_n "(cached) " >&6
19543else
19544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545/* end confdefs.h.  */
19546#ifdef HAVE_VIS_H
19547#include <vis.h>
19548#endif
19549struct foo { int foo; } xx;
19550extern int strunvis (struct foo*);
19551int
19552main ()
19553{
19554strunvis(&xx)
19555  ;
19556  return 0;
19557}
19558_ACEOF
19559if ac_fn_c_try_compile "$LINENO"; then :
19560  eval "ac_cv_func_strunvis_noproto=yes"
19561else
19562  eval "ac_cv_func_strunvis_noproto=no"
19563fi
19564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19565fi
19566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strunvis_noproto" >&5
19567$as_echo "$ac_cv_func_strunvis_noproto" >&6; }
19568if test "$ac_cv_func_strunvis_noproto" = yes; then
19569
19570$as_echo "#define NEED_STRUNVIS_PROTO 1" >>confdefs.h
19571
19572fi
19573fi
19574
19575if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
19576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strvis needs a prototype" >&5
19577$as_echo_n "checking if strvis needs a prototype... " >&6; }
19578if test "${ac_cv_func_strvis_noproto+set}" = set; then :
19579  $as_echo_n "(cached) " >&6
19580else
19581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19582/* end confdefs.h.  */
19583#ifdef HAVE_VIS_H
19584#include <vis.h>
19585#endif
19586struct foo { int foo; } xx;
19587extern int strvis (struct foo*);
19588int
19589main ()
19590{
19591strvis(&xx)
19592  ;
19593  return 0;
19594}
19595_ACEOF
19596if ac_fn_c_try_compile "$LINENO"; then :
19597  eval "ac_cv_func_strvis_noproto=yes"
19598else
19599  eval "ac_cv_func_strvis_noproto=no"
19600fi
19601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19602fi
19603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvis_noproto" >&5
19604$as_echo "$ac_cv_func_strvis_noproto" >&6; }
19605if test "$ac_cv_func_strvis_noproto" = yes; then
19606
19607$as_echo "#define NEED_STRVIS_PROTO 1" >>confdefs.h
19608
19609fi
19610fi
19611
19612if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
19613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strvisx needs a prototype" >&5
19614$as_echo_n "checking if strvisx needs a prototype... " >&6; }
19615if test "${ac_cv_func_strvisx_noproto+set}" = set; then :
19616  $as_echo_n "(cached) " >&6
19617else
19618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619/* end confdefs.h.  */
19620#ifdef HAVE_VIS_H
19621#include <vis.h>
19622#endif
19623struct foo { int foo; } xx;
19624extern int strvisx (struct foo*);
19625int
19626main ()
19627{
19628strvisx(&xx)
19629  ;
19630  return 0;
19631}
19632_ACEOF
19633if ac_fn_c_try_compile "$LINENO"; then :
19634  eval "ac_cv_func_strvisx_noproto=yes"
19635else
19636  eval "ac_cv_func_strvisx_noproto=no"
19637fi
19638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19639fi
19640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvisx_noproto" >&5
19641$as_echo "$ac_cv_func_strvisx_noproto" >&6; }
19642if test "$ac_cv_func_strvisx_noproto" = yes; then
19643
19644$as_echo "#define NEED_STRVISX_PROTO 1" >>confdefs.h
19645
19646fi
19647fi
19648
19649if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
19650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if svis needs a prototype" >&5
19651$as_echo_n "checking if svis needs a prototype... " >&6; }
19652if test "${ac_cv_func_svis_noproto+set}" = set; then :
19653  $as_echo_n "(cached) " >&6
19654else
19655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19656/* end confdefs.h.  */
19657#ifdef HAVE_VIS_H
19658#include <vis.h>
19659#endif
19660struct foo { int foo; } xx;
19661extern int svis (struct foo*);
19662int
19663main ()
19664{
19665svis(&xx)
19666  ;
19667  return 0;
19668}
19669_ACEOF
19670if ac_fn_c_try_compile "$LINENO"; then :
19671  eval "ac_cv_func_svis_noproto=yes"
19672else
19673  eval "ac_cv_func_svis_noproto=no"
19674fi
19675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19676fi
19677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_svis_noproto" >&5
19678$as_echo "$ac_cv_func_svis_noproto" >&6; }
19679if test "$ac_cv_func_svis_noproto" = yes; then
19680
19681$as_echo "#define NEED_SVIS_PROTO 1" >>confdefs.h
19682
19683fi
19684fi
19685
19686if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
19687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unvis needs a prototype" >&5
19688$as_echo_n "checking if unvis needs a prototype... " >&6; }
19689if test "${ac_cv_func_unvis_noproto+set}" = set; then :
19690  $as_echo_n "(cached) " >&6
19691else
19692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693/* end confdefs.h.  */
19694#ifdef HAVE_VIS_H
19695#include <vis.h>
19696#endif
19697struct foo { int foo; } xx;
19698extern int unvis (struct foo*);
19699int
19700main ()
19701{
19702unvis(&xx)
19703  ;
19704  return 0;
19705}
19706_ACEOF
19707if ac_fn_c_try_compile "$LINENO"; then :
19708  eval "ac_cv_func_unvis_noproto=yes"
19709else
19710  eval "ac_cv_func_unvis_noproto=no"
19711fi
19712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19713fi
19714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unvis_noproto" >&5
19715$as_echo "$ac_cv_func_unvis_noproto" >&6; }
19716if test "$ac_cv_func_unvis_noproto" = yes; then
19717
19718$as_echo "#define NEED_UNVIS_PROTO 1" >>confdefs.h
19719
19720fi
19721fi
19722
19723if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
19724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vis needs a prototype" >&5
19725$as_echo_n "checking if vis needs a prototype... " >&6; }
19726if test "${ac_cv_func_vis_noproto+set}" = set; then :
19727  $as_echo_n "(cached) " >&6
19728else
19729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730/* end confdefs.h.  */
19731#ifdef HAVE_VIS_H
19732#include <vis.h>
19733#endif
19734struct foo { int foo; } xx;
19735extern int vis (struct foo*);
19736int
19737main ()
19738{
19739vis(&xx)
19740  ;
19741  return 0;
19742}
19743_ACEOF
19744if ac_fn_c_try_compile "$LINENO"; then :
19745  eval "ac_cv_func_vis_noproto=yes"
19746else
19747  eval "ac_cv_func_vis_noproto=no"
19748fi
19749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750fi
19751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vis_noproto" >&5
19752$as_echo "$ac_cv_func_vis_noproto" >&6; }
19753if test "$ac_cv_func_vis_noproto" = yes; then
19754
19755$as_echo "#define NEED_VIS_PROTO 1" >>confdefs.h
19756
19757fi
19758fi
19759
19760
19761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for dirfd" >&5
19762$as_echo_n "checking checking for dirfd... " >&6; }
19763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19764/* end confdefs.h.  */
19765#include <sys/types.h>
19766#ifdef HAVE_DIRENT_H
19767#include <dirent.h>
19768#endif
19769
19770int
19771main ()
19772{
19773DIR *d = 0; dirfd(d);
19774  ;
19775  return 0;
19776}
19777_ACEOF
19778if ac_fn_c_try_link "$LINENO"; then :
19779  ac_rk_have_dirfd=yes
19780else
19781  ac_rk_have_dirfd=no
19782fi
19783rm -f core conftest.err conftest.$ac_objext \
19784    conftest$ac_exeext conftest.$ac_ext
19785if test "$ac_rk_have_dirfd" = "yes" ; then
19786
19787cat >>confdefs.h <<_ACEOF
19788#define HAVE_DIRFD 1
19789_ACEOF
19790
19791fi
19792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have_dirfd" >&5
19793$as_echo "$ac_rk_have_dirfd" >&6; }
19794
19795
19796
19797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dd_fd in DIR" >&5
19798$as_echo_n "checking for dd_fd in DIR... " >&6; }
19799if test "${ac_cv_type_dir_dd_fd+set}" = set; then :
19800  $as_echo_n "(cached) " >&6
19801else
19802
19803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19804/* end confdefs.h.  */
19805#include <sys/types.h>
19806#ifdef HAVE_DIRENT_H
19807#include <dirent.h>
19808#endif
19809int
19810main ()
19811{
19812DIR x; memset(&x, 0, sizeof(x)); x.dd_fd
19813  ;
19814  return 0;
19815}
19816_ACEOF
19817if ac_fn_c_try_compile "$LINENO"; then :
19818  ac_cv_type_dir_dd_fd=yes
19819else
19820  ac_cv_type_dir_dd_fd=no
19821fi
19822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19823
19824fi
19825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_dir_dd_fd" >&5
19826$as_echo "$ac_cv_type_dir_dd_fd" >&6; }
19827if test "$ac_cv_type_dir_dd_fd" = yes; then
19828
19829
19830$as_echo "#define HAVE_DIR_DD_FD 1" >>confdefs.h
19831
19832
19833fi
19834
19835
19836
19837
19838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
19839$as_echo_n "checking for inet_aton... " >&6; }
19840if test "${ac_cv_func_inet_aton+set}" = set; then :
19841  $as_echo_n "(cached) " >&6
19842else
19843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844/* end confdefs.h.  */
19845#ifdef HAVE_SYS_TYPES_H
19846#include <sys/types.h>
19847#endif
19848#ifdef HAVE_SYS_SOCKET_H
19849#include <sys/socket.h>
19850#endif
19851#ifdef HAVE_NETINET_IN_H
19852#include <netinet/in.h>
19853#endif
19854#ifdef HAVE_ARPA_INET_H
19855#include <arpa/inet.h>
19856#endif
19857int
19858main ()
19859{
19860
19861/* The GNU C library defines this for functions which it implements
19862    to always fail with ENOSYS.  Some functions are actually named
19863    something starting with __ and the normal name is an alias.  */
19864#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
19865choke me
19866#else
19867inet_aton(0,0);
19868#endif
19869
19870  ;
19871  return 0;
19872}
19873_ACEOF
19874if ac_fn_c_try_link "$LINENO"; then :
19875  eval "ac_cv_func_inet_aton=yes"
19876else
19877  eval "ac_cv_func_inet_aton=no"
19878fi
19879rm -f core conftest.err conftest.$ac_objext \
19880    conftest$ac_exeext conftest.$ac_ext
19881fi
19882
19883if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
19884
19885cat >>confdefs.h <<_ACEOF
19886#define HAVE_INET_ATON 1
19887_ACEOF
19888
19889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19890$as_echo "yes" >&6; }
19891else
19892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19893$as_echo "no" >&6; }
19894  case " $LIBOBJS " in
19895  *" inet_aton.$ac_objext "* ) ;;
19896  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19897 ;;
19898esac
19899
19900fi
19901
19902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5
19903$as_echo_n "checking for inet_ntop... " >&6; }
19904if test "${ac_cv_func_inet_ntop+set}" = set; then :
19905  $as_echo_n "(cached) " >&6
19906else
19907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19908/* end confdefs.h.  */
19909#ifdef HAVE_SYS_TYPES_H
19910#include <sys/types.h>
19911#endif
19912#ifdef HAVE_SYS_SOCKET_H
19913#include <sys/socket.h>
19914#endif
19915#ifdef HAVE_NETINET_IN_H
19916#include <netinet/in.h>
19917#endif
19918#ifdef HAVE_ARPA_INET_H
19919#include <arpa/inet.h>
19920#endif
19921int
19922main ()
19923{
19924
19925/* The GNU C library defines this for functions which it implements
19926    to always fail with ENOSYS.  Some functions are actually named
19927    something starting with __ and the normal name is an alias.  */
19928#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
19929choke me
19930#else
19931inet_ntop(0, 0, 0, 0);
19932#endif
19933
19934  ;
19935  return 0;
19936}
19937_ACEOF
19938if ac_fn_c_try_link "$LINENO"; then :
19939  eval "ac_cv_func_inet_ntop=yes"
19940else
19941  eval "ac_cv_func_inet_ntop=no"
19942fi
19943rm -f core conftest.err conftest.$ac_objext \
19944    conftest$ac_exeext conftest.$ac_ext
19945fi
19946
19947if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
19948
19949cat >>confdefs.h <<_ACEOF
19950#define HAVE_INET_NTOP 1
19951_ACEOF
19952
19953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19954$as_echo "yes" >&6; }
19955else
19956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19957$as_echo "no" >&6; }
19958  case " $LIBOBJS " in
19959  *" inet_ntop.$ac_objext "* ) ;;
19960  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
19961 ;;
19962esac
19963
19964fi
19965
19966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
19967$as_echo_n "checking for inet_pton... " >&6; }
19968if test "${ac_cv_func_inet_pton+set}" = set; then :
19969  $as_echo_n "(cached) " >&6
19970else
19971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19972/* end confdefs.h.  */
19973#ifdef HAVE_SYS_TYPES_H
19974#include <sys/types.h>
19975#endif
19976#ifdef HAVE_SYS_SOCKET_H
19977#include <sys/socket.h>
19978#endif
19979#ifdef HAVE_NETINET_IN_H
19980#include <netinet/in.h>
19981#endif
19982#ifdef HAVE_ARPA_INET_H
19983#include <arpa/inet.h>
19984#endif
19985int
19986main ()
19987{
19988
19989/* The GNU C library defines this for functions which it implements
19990    to always fail with ENOSYS.  Some functions are actually named
19991    something starting with __ and the normal name is an alias.  */
19992#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
19993choke me
19994#else
19995inet_pton(0,0,0);
19996#endif
19997
19998  ;
19999  return 0;
20000}
20001_ACEOF
20002if ac_fn_c_try_link "$LINENO"; then :
20003  eval "ac_cv_func_inet_pton=yes"
20004else
20005  eval "ac_cv_func_inet_pton=no"
20006fi
20007rm -f core conftest.err conftest.$ac_objext \
20008    conftest$ac_exeext conftest.$ac_ext
20009fi
20010
20011if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
20012
20013cat >>confdefs.h <<_ACEOF
20014#define HAVE_INET_PTON 1
20015_ACEOF
20016
20017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20018$as_echo "yes" >&6; }
20019else
20020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20021$as_echo "no" >&6; }
20022  case " $LIBOBJS " in
20023  *" inet_pton.$ac_objext "* ) ;;
20024  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20025 ;;
20026esac
20027
20028fi
20029
20030
20031
20032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5
20033$as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
20034if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then :
20035  $as_echo_n "(cached) " >&6
20036else
20037
20038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039/* end confdefs.h.  */
20040#include <sys/types.h>
20041#include <sys/socket.h>
20042int
20043main ()
20044{
20045struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len
20046  ;
20047  return 0;
20048}
20049_ACEOF
20050if ac_fn_c_try_compile "$LINENO"; then :
20051  ac_cv_type_struct_sockaddr_sa_len=yes
20052else
20053  ac_cv_type_struct_sockaddr_sa_len=no
20054fi
20055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20056
20057fi
20058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
20059$as_echo "$ac_cv_type_struct_sockaddr_sa_len" >&6; }
20060if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
20061
20062
20063$as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
20064
20065
20066fi
20067
20068
20069
20070if test "$ac_cv_func_getaddrinfo" = "yes"; then
20071
20072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo handles numeric services" >&5
20073$as_echo_n "checking if getaddrinfo handles numeric services... " >&6; }
20074if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then :
20075  $as_echo_n "(cached) " >&6
20076else
20077  if test "$cross_compiling" = yes; then :
20078  ac_cv_func_getaddrinfo_numserv=yes
20079else
20080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20081/* end confdefs.h.  */
20082#include <stdio.h>
20083#include <sys/types.h>
20084#include <sys/socket.h>
20085#include <netdb.h>
20086
20087int
20088main(int argc, char **argv)
20089{
20090	struct addrinfo hints, *ai;
20091	memset(&hints, 0, sizeof(hints));
20092	hints.ai_flags = AI_PASSIVE;
20093	hints.ai_socktype = SOCK_STREAM;
20094	hints.ai_family = PF_UNSPEC;
20095	if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
20096		return 1;
20097	if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
20098		return 1;
20099	return 0;
20100}
20101
20102_ACEOF
20103if ac_fn_c_try_run "$LINENO"; then :
20104  ac_cv_func_getaddrinfo_numserv=yes
20105else
20106  ac_cv_func_getaddrinfo_numserv=no
20107fi
20108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20109  conftest.$ac_objext conftest.beam conftest.$ac_ext
20110fi
20111
20112fi
20113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo_numserv" >&5
20114$as_echo "$ac_cv_func_getaddrinfo_numserv" >&6; }
20115  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
20116	case " $LIBOBJS " in
20117  *" getaddrinfo.$ac_objext "* ) ;;
20118  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20119 ;;
20120esac
20121
20122	case " $LIBOBJS " in
20123  *" freeaddrinfo.$ac_objext "* ) ;;
20124  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
20125 ;;
20126esac
20127
20128  fi
20129fi
20130
20131
20132if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
20133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setenv needs a prototype" >&5
20134$as_echo_n "checking if setenv needs a prototype... " >&6; }
20135if test "${ac_cv_func_setenv_noproto+set}" = set; then :
20136  $as_echo_n "(cached) " >&6
20137else
20138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20139/* end confdefs.h.  */
20140#include <stdlib.h>
20141struct foo { int foo; } xx;
20142extern int setenv (struct foo*);
20143int
20144main ()
20145{
20146setenv(&xx)
20147  ;
20148  return 0;
20149}
20150_ACEOF
20151if ac_fn_c_try_compile "$LINENO"; then :
20152  eval "ac_cv_func_setenv_noproto=yes"
20153else
20154  eval "ac_cv_func_setenv_noproto=no"
20155fi
20156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157fi
20158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setenv_noproto" >&5
20159$as_echo "$ac_cv_func_setenv_noproto" >&6; }
20160if test "$ac_cv_func_setenv_noproto" = yes; then
20161
20162$as_echo "#define NEED_SETENV_PROTO 1" >>confdefs.h
20163
20164fi
20165fi
20166
20167
20168if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
20169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unsetenv needs a prototype" >&5
20170$as_echo_n "checking if unsetenv needs a prototype... " >&6; }
20171if test "${ac_cv_func_unsetenv_noproto+set}" = set; then :
20172  $as_echo_n "(cached) " >&6
20173else
20174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175/* end confdefs.h.  */
20176#include <stdlib.h>
20177struct foo { int foo; } xx;
20178extern int unsetenv (struct foo*);
20179int
20180main ()
20181{
20182unsetenv(&xx)
20183  ;
20184  return 0;
20185}
20186_ACEOF
20187if ac_fn_c_try_compile "$LINENO"; then :
20188  eval "ac_cv_func_unsetenv_noproto=yes"
20189else
20190  eval "ac_cv_func_unsetenv_noproto=no"
20191fi
20192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193fi
20194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unsetenv_noproto" >&5
20195$as_echo "$ac_cv_func_unsetenv_noproto" >&6; }
20196if test "$ac_cv_func_unsetenv_noproto" = yes; then
20197
20198$as_echo "#define NEED_UNSETENV_PROTO 1" >>confdefs.h
20199
20200fi
20201fi
20202
20203
20204if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
20205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname needs a prototype" >&5
20206$as_echo_n "checking if gethostname needs a prototype... " >&6; }
20207if test "${ac_cv_func_gethostname_noproto+set}" = set; then :
20208  $as_echo_n "(cached) " >&6
20209else
20210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20211/* end confdefs.h.  */
20212#include <unistd.h>
20213struct foo { int foo; } xx;
20214extern int gethostname (struct foo*);
20215int
20216main ()
20217{
20218gethostname(&xx)
20219  ;
20220  return 0;
20221}
20222_ACEOF
20223if ac_fn_c_try_compile "$LINENO"; then :
20224  eval "ac_cv_func_gethostname_noproto=yes"
20225else
20226  eval "ac_cv_func_gethostname_noproto=no"
20227fi
20228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20229fi
20230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostname_noproto" >&5
20231$as_echo "$ac_cv_func_gethostname_noproto" >&6; }
20232if test "$ac_cv_func_gethostname_noproto" = yes; then
20233
20234$as_echo "#define NEED_GETHOSTNAME_PROTO 1" >>confdefs.h
20235
20236fi
20237fi
20238
20239
20240if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
20241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkstemp needs a prototype" >&5
20242$as_echo_n "checking if mkstemp needs a prototype... " >&6; }
20243if test "${ac_cv_func_mkstemp_noproto+set}" = set; then :
20244  $as_echo_n "(cached) " >&6
20245else
20246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20247/* end confdefs.h.  */
20248#include <unistd.h>
20249struct foo { int foo; } xx;
20250extern int mkstemp (struct foo*);
20251int
20252main ()
20253{
20254mkstemp(&xx)
20255  ;
20256  return 0;
20257}
20258_ACEOF
20259if ac_fn_c_try_compile "$LINENO"; then :
20260  eval "ac_cv_func_mkstemp_noproto=yes"
20261else
20262  eval "ac_cv_func_mkstemp_noproto=no"
20263fi
20264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20265fi
20266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mkstemp_noproto" >&5
20267$as_echo "$ac_cv_func_mkstemp_noproto" >&6; }
20268if test "$ac_cv_func_mkstemp_noproto" = yes; then
20269
20270$as_echo "#define NEED_MKSTEMP_PROTO 1" >>confdefs.h
20271
20272fi
20273fi
20274
20275
20276if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
20277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getusershell needs a prototype" >&5
20278$as_echo_n "checking if getusershell needs a prototype... " >&6; }
20279if test "${ac_cv_func_getusershell_noproto+set}" = set; then :
20280  $as_echo_n "(cached) " >&6
20281else
20282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283/* end confdefs.h.  */
20284#include <unistd.h>
20285struct foo { int foo; } xx;
20286extern int getusershell (struct foo*);
20287int
20288main ()
20289{
20290getusershell(&xx)
20291  ;
20292  return 0;
20293}
20294_ACEOF
20295if ac_fn_c_try_compile "$LINENO"; then :
20296  eval "ac_cv_func_getusershell_noproto=yes"
20297else
20298  eval "ac_cv_func_getusershell_noproto=no"
20299fi
20300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20301fi
20302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getusershell_noproto" >&5
20303$as_echo "$ac_cv_func_getusershell_noproto" >&6; }
20304if test "$ac_cv_func_getusershell_noproto" = yes; then
20305
20306$as_echo "#define NEED_GETUSERSHELL_PROTO 1" >>confdefs.h
20307
20308fi
20309fi
20310
20311
20312if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then
20313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon needs a prototype" >&5
20314$as_echo_n "checking if daemon needs a prototype... " >&6; }
20315if test "${ac_cv_func_daemon_noproto+set}" = set; then :
20316  $as_echo_n "(cached) " >&6
20317else
20318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20319/* end confdefs.h.  */
20320#include <unistd.h>
20321struct foo { int foo; } xx;
20322extern int daemon (struct foo*);
20323int
20324main ()
20325{
20326daemon(&xx)
20327  ;
20328  return 0;
20329}
20330_ACEOF
20331if ac_fn_c_try_compile "$LINENO"; then :
20332  eval "ac_cv_func_daemon_noproto=yes"
20333else
20334  eval "ac_cv_func_daemon_noproto=no"
20335fi
20336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20337fi
20338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_daemon_noproto" >&5
20339$as_echo "$ac_cv_func_daemon_noproto" >&6; }
20340if test "$ac_cv_func_daemon_noproto" = yes; then
20341
20342$as_echo "#define NEED_DAEMON_PROTO 1" >>confdefs.h
20343
20344fi
20345fi
20346
20347
20348if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then
20349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if iruserok needs a prototype" >&5
20350$as_echo_n "checking if iruserok needs a prototype... " >&6; }
20351if test "${ac_cv_func_iruserok_noproto+set}" = set; then :
20352  $as_echo_n "(cached) " >&6
20353else
20354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355/* end confdefs.h.  */
20356
20357#ifdef HAVE_SYS_TYPES_H
20358#include <sys/types.h>
20359#endif
20360#ifdef HAVE_SYS_SOCKET_H
20361#include <sys/socket.h>
20362#endif
20363#ifdef HAVE_NETINET_IN_H
20364#include <netinet/in.h>
20365#endif
20366#ifdef HAVE_ARPA_INET_H
20367#include <arpa/inet.h>
20368#endif
20369#ifdef HAVE_NETDB_H
20370#include <netdb.h>
20371#endif
20372#ifdef HAVE_UNISTD_H
20373#include <unistd.h>
20374#endif
20375struct foo { int foo; } xx;
20376extern int iruserok (struct foo*);
20377int
20378main ()
20379{
20380iruserok(&xx)
20381  ;
20382  return 0;
20383}
20384_ACEOF
20385if ac_fn_c_try_compile "$LINENO"; then :
20386  eval "ac_cv_func_iruserok_noproto=yes"
20387else
20388  eval "ac_cv_func_iruserok_noproto=no"
20389fi
20390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20391fi
20392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_iruserok_noproto" >&5
20393$as_echo "$ac_cv_func_iruserok_noproto" >&6; }
20394if test "$ac_cv_func_iruserok_noproto" = yes; then
20395
20396$as_echo "#define NEED_IRUSEROK_PROTO 1" >>confdefs.h
20397
20398fi
20399fi
20400
20401
20402
20403if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
20404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton needs a prototype" >&5
20405$as_echo_n "checking if inet_aton needs a prototype... " >&6; }
20406if test "${ac_cv_func_inet_aton_noproto+set}" = set; then :
20407  $as_echo_n "(cached) " >&6
20408else
20409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20410/* end confdefs.h.  */
20411
20412#ifdef HAVE_SYS_TYPES_H
20413#include <sys/types.h>
20414#endif
20415#ifdef HAVE_SYS_SOCKET_H
20416#include <sys/socket.h>
20417#endif
20418#ifdef HAVE_NETINET_IN_H
20419#include <netinet/in.h>
20420#endif
20421#ifdef HAVE_ARPA_INET_H
20422#include <arpa/inet.h>
20423#endif
20424struct foo { int foo; } xx;
20425extern int inet_aton (struct foo*);
20426int
20427main ()
20428{
20429inet_aton(&xx)
20430  ;
20431  return 0;
20432}
20433_ACEOF
20434if ac_fn_c_try_compile "$LINENO"; then :
20435  eval "ac_cv_func_inet_aton_noproto=yes"
20436else
20437  eval "ac_cv_func_inet_aton_noproto=no"
20438fi
20439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440fi
20441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton_noproto" >&5
20442$as_echo "$ac_cv_func_inet_aton_noproto" >&6; }
20443if test "$ac_cv_func_inet_aton_noproto" = yes; then
20444
20445$as_echo "#define NEED_INET_ATON_PROTO 1" >>confdefs.h
20446
20447fi
20448fi
20449
20450
20451
20452
20453
20454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt" >&5
20455$as_echo_n "checking for crypt... " >&6; }
20456if test "${ac_cv_funclib_crypt+set}" = set; then :
20457  $as_echo_n "(cached) " >&6
20458else
20459
20460if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
20461	ac_save_LIBS="$LIBS"
20462	for ac_lib in "" crypt; do
20463		case "$ac_lib" in
20464		"") ;;
20465		yes) ac_lib="" ;;
20466		no) continue ;;
20467		-l*) ;;
20468		*) ac_lib="-l$ac_lib" ;;
20469		esac
20470		LIBS=" $ac_lib  $ac_save_LIBS"
20471		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20472/* end confdefs.h.  */
20473
20474int
20475main ()
20476{
20477crypt()
20478  ;
20479  return 0;
20480}
20481_ACEOF
20482if ac_fn_c_try_link "$LINENO"; then :
20483  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
20484fi
20485rm -f core conftest.err conftest.$ac_objext \
20486    conftest$ac_exeext conftest.$ac_ext
20487	done
20488	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
20489	LIBS="$ac_save_LIBS"
20490fi
20491
20492fi
20493
20494
20495eval "ac_res=\$ac_cv_funclib_crypt"
20496
20497if false; then
20498	for ac_func in crypt
20499do :
20500  ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
20501if test "x$ac_cv_func_crypt" = x""yes; then :
20502  cat >>confdefs.h <<_ACEOF
20503#define HAVE_CRYPT 1
20504_ACEOF
20505
20506fi
20507done
20508
20509fi
20510# crypt
20511eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
20512eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
20513eval "LIB_crypt=$ac_res"
20514
20515case "$ac_res" in
20516	yes)
20517	eval "ac_cv_func_crypt=yes"
20518	eval "LIB_crypt="
20519	cat >>confdefs.h <<_ACEOF
20520#define $ac_tr_func 1
20521_ACEOF
20522
20523	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20524$as_echo "yes" >&6; }
20525	;;
20526	no)
20527	eval "ac_cv_func_crypt=no"
20528	eval "LIB_crypt="
20529	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20530$as_echo "no" >&6; }
20531	;;
20532	*)
20533	eval "ac_cv_func_crypt=yes"
20534	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
20535	cat >>confdefs.h <<_ACEOF
20536#define $ac_tr_func 1
20537_ACEOF
20538
20539	cat >>confdefs.h <<_ACEOF
20540#define $ac_tr_lib 1
20541_ACEOF
20542
20543	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
20544$as_echo "yes, in $ac_res" >&6; }
20545	;;
20546esac
20547
20548
20549
20550
20551
20552
20553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compatible with system prototype" >&5
20554$as_echo_n "checking if strerror_r is compatible with system prototype... " >&6; }
20555if test "${ac_cv_func_strerror_r_proto_compat+set}" = set; then :
20556  $as_echo_n "(cached) " >&6
20557else
20558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20559/* end confdefs.h.  */
20560
20561#include <stdio.h>
20562#include <string.h>
20563
20564int
20565main ()
20566{
20567int strerror_r(int, char *, size_t)
20568  ;
20569  return 0;
20570}
20571_ACEOF
20572if ac_fn_c_try_compile "$LINENO"; then :
20573  eval "ac_cv_func_strerror_r_proto_compat=yes"
20574else
20575  eval "ac_cv_func_strerror_r_proto_compat=no"
20576fi
20577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20578fi
20579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_proto_compat" >&5
20580$as_echo "$ac_cv_func_strerror_r_proto_compat" >&6; }
20581
20582if test "$ac_cv_func_strerror_r_proto_compat" = yes; then
20583
20584$as_echo "#define STRERROR_R_PROTO_COMPATIBLE 1" >>confdefs.h
20585
20586fi
20587
20588
20589
20590ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
20591if test "x$ac_cv_func_strerror_r" = x""yes; then :
20592
20593cat >>confdefs.h <<_ACEOF
20594#define HAVE_STRERROR_R 1
20595_ACEOF
20596
20597fi
20598
20599
20600
20601
20602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compatible with system prototype" >&5
20603$as_echo_n "checking if gethostbyname is compatible with system prototype... " >&6; }
20604if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then :
20605  $as_echo_n "(cached) " >&6
20606else
20607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20608/* end confdefs.h.  */
20609
20610#ifdef HAVE_SYS_TYPES_H
20611#include <sys/types.h>
20612#endif
20613#ifdef HAVE_SYS_SOCKET_H
20614#include <sys/socket.h>
20615#endif
20616#ifdef HAVE_NETINET_IN_H
20617#include <netinet/in.h>
20618#endif
20619#ifdef HAVE_ARPA_INET_H
20620#include <arpa/inet.h>
20621#endif
20622#ifdef HAVE_NETDB_H
20623#include <netdb.h>
20624#endif
20625
20626int
20627main ()
20628{
20629struct hostent *gethostbyname(const char *)
20630  ;
20631  return 0;
20632}
20633_ACEOF
20634if ac_fn_c_try_compile "$LINENO"; then :
20635  eval "ac_cv_func_gethostbyname_proto_compat=yes"
20636else
20637  eval "ac_cv_func_gethostbyname_proto_compat=no"
20638fi
20639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640fi
20641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname_proto_compat" >&5
20642$as_echo "$ac_cv_func_gethostbyname_proto_compat" >&6; }
20643
20644if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
20645
20646$as_echo "#define GETHOSTBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h
20647
20648fi
20649
20650
20651
20652
20653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compatible with system prototype" >&5
20654$as_echo_n "checking if gethostbyaddr is compatible with system prototype... " >&6; }
20655if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then :
20656  $as_echo_n "(cached) " >&6
20657else
20658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659/* end confdefs.h.  */
20660
20661#ifdef HAVE_SYS_TYPES_H
20662#include <sys/types.h>
20663#endif
20664#ifdef HAVE_SYS_SOCKET_H
20665#include <sys/socket.h>
20666#endif
20667#ifdef HAVE_NETINET_IN_H
20668#include <netinet/in.h>
20669#endif
20670#ifdef HAVE_ARPA_INET_H
20671#include <arpa/inet.h>
20672#endif
20673#ifdef HAVE_NETDB_H
20674#include <netdb.h>
20675#endif
20676
20677int
20678main ()
20679{
20680struct hostent *gethostbyaddr(const void *, size_t, int)
20681  ;
20682  return 0;
20683}
20684_ACEOF
20685if ac_fn_c_try_compile "$LINENO"; then :
20686  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
20687else
20688  eval "ac_cv_func_gethostbyaddr_proto_compat=no"
20689fi
20690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20691fi
20692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
20693$as_echo "$ac_cv_func_gethostbyaddr_proto_compat" >&6; }
20694
20695if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
20696
20697$as_echo "#define GETHOSTBYADDR_PROTO_COMPATIBLE 1" >>confdefs.h
20698
20699fi
20700
20701
20702
20703
20704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyname is compatible with system prototype" >&5
20705$as_echo_n "checking if getservbyname is compatible with system prototype... " >&6; }
20706if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then :
20707  $as_echo_n "(cached) " >&6
20708else
20709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20710/* end confdefs.h.  */
20711
20712#ifdef HAVE_SYS_TYPES_H
20713#include <sys/types.h>
20714#endif
20715#ifdef HAVE_SYS_SOCKET_H
20716#include <sys/socket.h>
20717#endif
20718#ifdef HAVE_NETINET_IN_H
20719#include <netinet/in.h>
20720#endif
20721#ifdef HAVE_ARPA_INET_H
20722#include <arpa/inet.h>
20723#endif
20724#ifdef HAVE_NETDB_H
20725#include <netdb.h>
20726#endif
20727
20728int
20729main ()
20730{
20731struct servent *getservbyname(const char *, const char *)
20732  ;
20733  return 0;
20734}
20735_ACEOF
20736if ac_fn_c_try_compile "$LINENO"; then :
20737  eval "ac_cv_func_getservbyname_proto_compat=yes"
20738else
20739  eval "ac_cv_func_getservbyname_proto_compat=no"
20740fi
20741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742fi
20743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname_proto_compat" >&5
20744$as_echo "$ac_cv_func_getservbyname_proto_compat" >&6; }
20745
20746if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
20747
20748$as_echo "#define GETSERVBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h
20749
20750fi
20751
20752
20753
20754
20755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is compatible with system prototype" >&5
20756$as_echo_n "checking if getsockname is compatible with system prototype... " >&6; }
20757if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then :
20758  $as_echo_n "(cached) " >&6
20759else
20760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20761/* end confdefs.h.  */
20762
20763#ifdef HAVE_SYS_TYPES_H
20764#include <sys/types.h>
20765#endif
20766#ifdef HAVE_SYS_SOCKET_H
20767#include <sys/socket.h>
20768#endif
20769
20770int
20771main ()
20772{
20773int getsockname(int, struct sockaddr*, socklen_t*)
20774  ;
20775  return 0;
20776}
20777_ACEOF
20778if ac_fn_c_try_compile "$LINENO"; then :
20779  eval "ac_cv_func_getsockname_proto_compat=yes"
20780else
20781  eval "ac_cv_func_getsockname_proto_compat=no"
20782fi
20783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20784fi
20785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_proto_compat" >&5
20786$as_echo "$ac_cv_func_getsockname_proto_compat" >&6; }
20787
20788if test "$ac_cv_func_getsockname_proto_compat" = yes; then
20789
20790$as_echo "#define GETSOCKNAME_PROTO_COMPATIBLE 1" >>confdefs.h
20791
20792fi
20793
20794
20795
20796
20797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if openlog is compatible with system prototype" >&5
20798$as_echo_n "checking if openlog is compatible with system prototype... " >&6; }
20799if test "${ac_cv_func_openlog_proto_compat+set}" = set; then :
20800  $as_echo_n "(cached) " >&6
20801else
20802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20803/* end confdefs.h.  */
20804
20805#ifdef HAVE_SYSLOG_H
20806#include <syslog.h>
20807#endif
20808
20809int
20810main ()
20811{
20812void openlog(const char *, int, int)
20813  ;
20814  return 0;
20815}
20816_ACEOF
20817if ac_fn_c_try_compile "$LINENO"; then :
20818  eval "ac_cv_func_openlog_proto_compat=yes"
20819else
20820  eval "ac_cv_func_openlog_proto_compat=no"
20821fi
20822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823fi
20824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_openlog_proto_compat" >&5
20825$as_echo "$ac_cv_func_openlog_proto_compat" >&6; }
20826
20827if test "$ac_cv_func_openlog_proto_compat" = yes; then
20828
20829$as_echo "#define OPENLOG_PROTO_COMPATIBLE 1" >>confdefs.h
20830
20831fi
20832
20833
20834
20835
20836if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
20837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if crypt needs a prototype" >&5
20838$as_echo_n "checking if crypt needs a prototype... " >&6; }
20839if test "${ac_cv_func_crypt_noproto+set}" = set; then :
20840  $as_echo_n "(cached) " >&6
20841else
20842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20843/* end confdefs.h.  */
20844
20845#ifdef HAVE_CRYPT_H
20846#include <crypt.h>
20847#endif
20848#ifdef HAVE_UNISTD_H
20849#include <unistd.h>
20850#endif
20851
20852struct foo { int foo; } xx;
20853extern int crypt (struct foo*);
20854int
20855main ()
20856{
20857crypt(&xx)
20858  ;
20859  return 0;
20860}
20861_ACEOF
20862if ac_fn_c_try_compile "$LINENO"; then :
20863  eval "ac_cv_func_crypt_noproto=yes"
20864else
20865  eval "ac_cv_func_crypt_noproto=no"
20866fi
20867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868fi
20869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_crypt_noproto" >&5
20870$as_echo "$ac_cv_func_crypt_noproto" >&6; }
20871if test "$ac_cv_func_crypt_noproto" = yes; then
20872
20873$as_echo "#define NEED_CRYPT_PROTO 1" >>confdefs.h
20874
20875fi
20876fi
20877
20878
20879
20880
20881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5
20882$as_echo_n "checking for h_errno... " >&6; }
20883if test "${ac_cv_var_h_errno+set}" = set; then :
20884  $as_echo_n "(cached) " >&6
20885else
20886
20887
20888	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20889/* end confdefs.h.  */
20890#ifdef HAVE_SYS_TYPES_H
20891#include <sys/types.h>
20892#endif
20893#ifdef HAVE_NETDB_H
20894#include <netdb.h>
20895#endif
20896#ifdef HAVE_WS2TCPIP_H
20897#include <ws2tcpip.h>
20898#endif
20899
20900	void * foo(void) { return &h_errno; }
20901int
20902main ()
20903{
20904foo()
20905  ;
20906  return 0;
20907}
20908_ACEOF
20909if ac_fn_c_try_link "$LINENO"; then :
20910  ac_cv_var_h_errno=yes
20911else
20912  ac_cv_var_h_errno=no
20913fi
20914rm -f core conftest.err conftest.$ac_objext \
20915    conftest$ac_exeext conftest.$ac_ext
20916if test "$ac_cv_var_h_errno" != yes ; then
20917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20918/* end confdefs.h.  */
20919#ifdef HAVE_SYS_TYPES_H
20920#include <sys/types.h>
20921#endif
20922#ifdef HAVE_NETDB_H
20923#include <netdb.h>
20924#endif
20925#ifdef HAVE_WS2TCPIP_H
20926#include <ws2tcpip.h>
20927#endif
20928
20929extern int h_errno;
20930int foo(void) { return h_errno; }
20931int
20932main ()
20933{
20934foo()
20935  ;
20936  return 0;
20937}
20938_ACEOF
20939if ac_fn_c_try_link "$LINENO"; then :
20940  ac_cv_var_h_errno=yes
20941else
20942  ac_cv_var_h_errno=no
20943fi
20944rm -f core conftest.err conftest.$ac_objext \
20945    conftest$ac_exeext conftest.$ac_ext
20946fi
20947
20948fi
20949
20950ac_foo=`eval echo \\$ac_cv_var_h_errno`
20951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
20952$as_echo "$ac_foo" >&6; }
20953if test "$ac_foo" = yes; then
20954
20955cat >>confdefs.h <<_ACEOF
20956#define HAVE_H_ERRNO 1
20957_ACEOF
20958
20959	ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#ifdef HAVE_SYS_TYPES_H
20960#include <sys/types.h>
20961#endif
20962#ifdef HAVE_NETDB_H
20963#include <netdb.h>
20964#endif
20965#ifdef HAVE_WS2TCPIP_H
20966#include <ws2tcpip.h>
20967#endif
20968
20969"
20970if test "x$ac_cv_have_decl_h_errno" = x""yes; then :
20971  ac_have_decl=1
20972else
20973  ac_have_decl=0
20974fi
20975
20976cat >>confdefs.h <<_ACEOF
20977#define HAVE_DECL_H_ERRNO $ac_have_decl
20978_ACEOF
20979
20980fi
20981
20982
20983
20984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errlist" >&5
20985$as_echo_n "checking for h_errlist... " >&6; }
20986if test "${ac_cv_var_h_errlist+set}" = set; then :
20987  $as_echo_n "(cached) " >&6
20988else
20989
20990
20991	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20992/* end confdefs.h.  */
20993#ifdef HAVE_NETDB_H
20994#include <netdb.h>
20995#endif
20996#ifdef HAVE_WS2TCPIP_H
20997#include <ws2tcpip.h>
20998#endif
20999	void * foo(void) { return &h_errlist; }
21000int
21001main ()
21002{
21003foo()
21004  ;
21005  return 0;
21006}
21007_ACEOF
21008if ac_fn_c_try_link "$LINENO"; then :
21009  ac_cv_var_h_errlist=yes
21010else
21011  ac_cv_var_h_errlist=no
21012fi
21013rm -f core conftest.err conftest.$ac_objext \
21014    conftest$ac_exeext conftest.$ac_ext
21015if test "$ac_cv_var_h_errlist" != yes ; then
21016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21017/* end confdefs.h.  */
21018#ifdef HAVE_NETDB_H
21019#include <netdb.h>
21020#endif
21021#ifdef HAVE_WS2TCPIP_H
21022#include <ws2tcpip.h>
21023#endif
21024extern int h_errlist;
21025int foo(void) { return h_errlist; }
21026int
21027main ()
21028{
21029foo()
21030  ;
21031  return 0;
21032}
21033_ACEOF
21034if ac_fn_c_try_link "$LINENO"; then :
21035  ac_cv_var_h_errlist=yes
21036else
21037  ac_cv_var_h_errlist=no
21038fi
21039rm -f core conftest.err conftest.$ac_objext \
21040    conftest$ac_exeext conftest.$ac_ext
21041fi
21042
21043fi
21044
21045ac_foo=`eval echo \\$ac_cv_var_h_errlist`
21046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21047$as_echo "$ac_foo" >&6; }
21048if test "$ac_foo" = yes; then
21049
21050cat >>confdefs.h <<_ACEOF
21051#define HAVE_H_ERRLIST 1
21052_ACEOF
21053
21054	ac_fn_c_check_decl "$LINENO" "h_errlist" "ac_cv_have_decl_h_errlist" "#ifdef HAVE_NETDB_H
21055#include <netdb.h>
21056#endif
21057#ifdef HAVE_WS2TCPIP_H
21058#include <ws2tcpip.h>
21059#endif
21060"
21061if test "x$ac_cv_have_decl_h_errlist" = x""yes; then :
21062  ac_have_decl=1
21063else
21064  ac_have_decl=0
21065fi
21066
21067cat >>confdefs.h <<_ACEOF
21068#define HAVE_DECL_H_ERRLIST $ac_have_decl
21069_ACEOF
21070
21071fi
21072
21073
21074
21075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_nerr" >&5
21076$as_echo_n "checking for h_nerr... " >&6; }
21077if test "${ac_cv_var_h_nerr+set}" = set; then :
21078  $as_echo_n "(cached) " >&6
21079else
21080
21081
21082	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21083/* end confdefs.h.  */
21084#ifdef HAVE_NETDB_H
21085#include <netdb.h>
21086#endif
21087#ifdef HAVE_WS2TCPIP_H
21088#include <ws2tcpip.h>
21089#endif
21090	void * foo(void) { return &h_nerr; }
21091int
21092main ()
21093{
21094foo()
21095  ;
21096  return 0;
21097}
21098_ACEOF
21099if ac_fn_c_try_link "$LINENO"; then :
21100  ac_cv_var_h_nerr=yes
21101else
21102  ac_cv_var_h_nerr=no
21103fi
21104rm -f core conftest.err conftest.$ac_objext \
21105    conftest$ac_exeext conftest.$ac_ext
21106if test "$ac_cv_var_h_nerr" != yes ; then
21107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21108/* end confdefs.h.  */
21109#ifdef HAVE_NETDB_H
21110#include <netdb.h>
21111#endif
21112#ifdef HAVE_WS2TCPIP_H
21113#include <ws2tcpip.h>
21114#endif
21115extern int h_nerr;
21116int foo(void) { return h_nerr; }
21117int
21118main ()
21119{
21120foo()
21121  ;
21122  return 0;
21123}
21124_ACEOF
21125if ac_fn_c_try_link "$LINENO"; then :
21126  ac_cv_var_h_nerr=yes
21127else
21128  ac_cv_var_h_nerr=no
21129fi
21130rm -f core conftest.err conftest.$ac_objext \
21131    conftest$ac_exeext conftest.$ac_ext
21132fi
21133
21134fi
21135
21136ac_foo=`eval echo \\$ac_cv_var_h_nerr`
21137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21138$as_echo "$ac_foo" >&6; }
21139if test "$ac_foo" = yes; then
21140
21141cat >>confdefs.h <<_ACEOF
21142#define HAVE_H_NERR 1
21143_ACEOF
21144
21145	ac_fn_c_check_decl "$LINENO" "h_nerr" "ac_cv_have_decl_h_nerr" "#ifdef HAVE_NETDB_H
21146#include <netdb.h>
21147#endif
21148#ifdef HAVE_WS2TCPIP_H
21149#include <ws2tcpip.h>
21150#endif
21151"
21152if test "x$ac_cv_have_decl_h_nerr" = x""yes; then :
21153  ac_have_decl=1
21154else
21155  ac_have_decl=0
21156fi
21157
21158cat >>confdefs.h <<_ACEOF
21159#define HAVE_DECL_H_NERR $ac_have_decl
21160_ACEOF
21161
21162fi
21163
21164
21165
21166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
21167$as_echo_n "checking for __progname... " >&6; }
21168if test "${ac_cv_var___progname+set}" = set; then :
21169  $as_echo_n "(cached) " >&6
21170else
21171
21172
21173	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21174/* end confdefs.h.  */
21175#ifdef HAVE_ERR_H
21176#include <err.h>
21177#endif
21178	void * foo(void) { return &__progname; }
21179int
21180main ()
21181{
21182foo()
21183  ;
21184  return 0;
21185}
21186_ACEOF
21187if ac_fn_c_try_link "$LINENO"; then :
21188  ac_cv_var___progname=yes
21189else
21190  ac_cv_var___progname=no
21191fi
21192rm -f core conftest.err conftest.$ac_objext \
21193    conftest$ac_exeext conftest.$ac_ext
21194if test "$ac_cv_var___progname" != yes ; then
21195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196/* end confdefs.h.  */
21197#ifdef HAVE_ERR_H
21198#include <err.h>
21199#endif
21200extern int __progname;
21201int foo(void) { return __progname; }
21202int
21203main ()
21204{
21205foo()
21206  ;
21207  return 0;
21208}
21209_ACEOF
21210if ac_fn_c_try_link "$LINENO"; then :
21211  ac_cv_var___progname=yes
21212else
21213  ac_cv_var___progname=no
21214fi
21215rm -f core conftest.err conftest.$ac_objext \
21216    conftest$ac_exeext conftest.$ac_ext
21217fi
21218
21219fi
21220
21221ac_foo=`eval echo \\$ac_cv_var___progname`
21222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21223$as_echo "$ac_foo" >&6; }
21224if test "$ac_foo" = yes; then
21225
21226cat >>confdefs.h <<_ACEOF
21227#define HAVE___PROGNAME 1
21228_ACEOF
21229
21230	ac_fn_c_check_decl "$LINENO" "__progname" "ac_cv_have_decl___progname" "#ifdef HAVE_ERR_H
21231#include <err.h>
21232#endif
21233"
21234if test "x$ac_cv_have_decl___progname" = x""yes; then :
21235  ac_have_decl=1
21236else
21237  ac_have_decl=0
21238fi
21239
21240cat >>confdefs.h <<_ACEOF
21241#define HAVE_DECL___PROGNAME $ac_have_decl
21242_ACEOF
21243
21244fi
21245
21246
21247ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "
21248#include <stdlib.h>
21249#ifdef HAVE_UNISTD_H
21250#include <unistd.h>
21251#endif
21252"
21253if test "x$ac_cv_have_decl_optarg" = x""yes; then :
21254  ac_have_decl=1
21255else
21256  ac_have_decl=0
21257fi
21258
21259cat >>confdefs.h <<_ACEOF
21260#define HAVE_DECL_OPTARG $ac_have_decl
21261_ACEOF
21262ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
21263#include <stdlib.h>
21264#ifdef HAVE_UNISTD_H
21265#include <unistd.h>
21266#endif
21267"
21268if test "x$ac_cv_have_decl_optind" = x""yes; then :
21269  ac_have_decl=1
21270else
21271  ac_have_decl=0
21272fi
21273
21274cat >>confdefs.h <<_ACEOF
21275#define HAVE_DECL_OPTIND $ac_have_decl
21276_ACEOF
21277ac_fn_c_check_decl "$LINENO" "opterr" "ac_cv_have_decl_opterr" "
21278#include <stdlib.h>
21279#ifdef HAVE_UNISTD_H
21280#include <unistd.h>
21281#endif
21282"
21283if test "x$ac_cv_have_decl_opterr" = x""yes; then :
21284  ac_have_decl=1
21285else
21286  ac_have_decl=0
21287fi
21288
21289cat >>confdefs.h <<_ACEOF
21290#define HAVE_DECL_OPTERR $ac_have_decl
21291_ACEOF
21292ac_fn_c_check_decl "$LINENO" "optopt" "ac_cv_have_decl_optopt" "
21293#include <stdlib.h>
21294#ifdef HAVE_UNISTD_H
21295#include <unistd.h>
21296#endif
21297"
21298if test "x$ac_cv_have_decl_optopt" = x""yes; then :
21299  ac_have_decl=1
21300else
21301  ac_have_decl=0
21302fi
21303
21304cat >>confdefs.h <<_ACEOF
21305#define HAVE_DECL_OPTOPT $ac_have_decl
21306_ACEOF
21307ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "
21308#include <stdlib.h>
21309#ifdef HAVE_UNISTD_H
21310#include <unistd.h>
21311#endif
21312"
21313if test "x$ac_cv_have_decl_environ" = x""yes; then :
21314  ac_have_decl=1
21315else
21316  ac_have_decl=0
21317fi
21318
21319cat >>confdefs.h <<_ACEOF
21320#define HAVE_DECL_ENVIRON $ac_have_decl
21321_ACEOF
21322
21323
21324
21325
21326
21327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
21328$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
21329if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then :
21330  $as_echo_n "(cached) " >&6
21331else
21332
21333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21334/* end confdefs.h.  */
21335#include <time.h>
21336int
21337main ()
21338{
21339struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff
21340  ;
21341  return 0;
21342}
21343_ACEOF
21344if ac_fn_c_try_compile "$LINENO"; then :
21345  ac_cv_type_struct_tm_tm_gmtoff=yes
21346else
21347  ac_cv_type_struct_tm_tm_gmtoff=no
21348fi
21349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350
21351fi
21352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
21353$as_echo "$ac_cv_type_struct_tm_tm_gmtoff" >&6; }
21354if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
21355
21356
21357$as_echo "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
21358
21359
21360fi
21361
21362
21363
21364
21365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
21366$as_echo_n "checking for tm_zone in struct tm... " >&6; }
21367if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then :
21368  $as_echo_n "(cached) " >&6
21369else
21370
21371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21372/* end confdefs.h.  */
21373#include <time.h>
21374int
21375main ()
21376{
21377struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone
21378  ;
21379  return 0;
21380}
21381_ACEOF
21382if ac_fn_c_try_compile "$LINENO"; then :
21383  ac_cv_type_struct_tm_tm_zone=yes
21384else
21385  ac_cv_type_struct_tm_tm_zone=no
21386fi
21387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388
21389fi
21390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_zone" >&5
21391$as_echo "$ac_cv_type_struct_tm_tm_zone" >&6; }
21392if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
21393
21394
21395$as_echo "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
21396
21397
21398fi
21399
21400
21401
21402
21403
21404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
21405$as_echo_n "checking for timezone... " >&6; }
21406if test "${ac_cv_var_timezone+set}" = set; then :
21407  $as_echo_n "(cached) " >&6
21408else
21409
21410
21411	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21412/* end confdefs.h.  */
21413#include <time.h>
21414	void * foo(void) { return &timezone; }
21415int
21416main ()
21417{
21418foo()
21419  ;
21420  return 0;
21421}
21422_ACEOF
21423if ac_fn_c_try_link "$LINENO"; then :
21424  ac_cv_var_timezone=yes
21425else
21426  ac_cv_var_timezone=no
21427fi
21428rm -f core conftest.err conftest.$ac_objext \
21429    conftest$ac_exeext conftest.$ac_ext
21430if test "$ac_cv_var_timezone" != yes ; then
21431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21432/* end confdefs.h.  */
21433#include <time.h>
21434extern int timezone;
21435int foo(void) { return timezone; }
21436int
21437main ()
21438{
21439foo()
21440  ;
21441  return 0;
21442}
21443_ACEOF
21444if ac_fn_c_try_link "$LINENO"; then :
21445  ac_cv_var_timezone=yes
21446else
21447  ac_cv_var_timezone=no
21448fi
21449rm -f core conftest.err conftest.$ac_objext \
21450    conftest$ac_exeext conftest.$ac_ext
21451fi
21452
21453fi
21454
21455ac_foo=`eval echo \\$ac_cv_var_timezone`
21456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21457$as_echo "$ac_foo" >&6; }
21458if test "$ac_foo" = yes; then
21459
21460cat >>confdefs.h <<_ACEOF
21461#define HAVE_TIMEZONE 1
21462_ACEOF
21463
21464	ac_fn_c_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" "#include <time.h>
21465"
21466if test "x$ac_cv_have_decl_timezone" = x""yes; then :
21467  ac_have_decl=1
21468else
21469  ac_have_decl=0
21470fi
21471
21472cat >>confdefs.h <<_ACEOF
21473#define HAVE_DECL_TIMEZONE $ac_have_decl
21474_ACEOF
21475
21476fi
21477
21478
21479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone" >&5
21480$as_echo_n "checking for altzone... " >&6; }
21481if test "${ac_cv_var_altzone+set}" = set; then :
21482  $as_echo_n "(cached) " >&6
21483else
21484
21485
21486	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21487/* end confdefs.h.  */
21488#include <time.h>
21489	void * foo(void) { return &altzone; }
21490int
21491main ()
21492{
21493foo()
21494  ;
21495  return 0;
21496}
21497_ACEOF
21498if ac_fn_c_try_link "$LINENO"; then :
21499  ac_cv_var_altzone=yes
21500else
21501  ac_cv_var_altzone=no
21502fi
21503rm -f core conftest.err conftest.$ac_objext \
21504    conftest$ac_exeext conftest.$ac_ext
21505if test "$ac_cv_var_altzone" != yes ; then
21506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21507/* end confdefs.h.  */
21508#include <time.h>
21509extern int altzone;
21510int foo(void) { return altzone; }
21511int
21512main ()
21513{
21514foo()
21515  ;
21516  return 0;
21517}
21518_ACEOF
21519if ac_fn_c_try_link "$LINENO"; then :
21520  ac_cv_var_altzone=yes
21521else
21522  ac_cv_var_altzone=no
21523fi
21524rm -f core conftest.err conftest.$ac_objext \
21525    conftest$ac_exeext conftest.$ac_ext
21526fi
21527
21528fi
21529
21530ac_foo=`eval echo \\$ac_cv_var_altzone`
21531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21532$as_echo "$ac_foo" >&6; }
21533if test "$ac_foo" = yes; then
21534
21535cat >>confdefs.h <<_ACEOF
21536#define HAVE_ALTZONE 1
21537_ACEOF
21538
21539	ac_fn_c_check_decl "$LINENO" "altzone" "ac_cv_have_decl_altzone" "#include <time.h>
21540"
21541if test "x$ac_cv_have_decl_altzone" = x""yes; then :
21542  ac_have_decl=1
21543else
21544  ac_have_decl=0
21545fi
21546
21547cat >>confdefs.h <<_ACEOF
21548#define HAVE_DECL_ALTZONE $ac_have_decl
21549_ACEOF
21550
21551fi
21552
21553
21554
21555
21556cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
21557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
21558$as_echo_n "checking for sa_family_t... " >&6; }
21559if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
21560  $as_echo_n "(cached) " >&6
21561else
21562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21563/* end confdefs.h.  */
21564
21565#include <sys/types.h>
21566#if STDC_HEADERS
21567#include <stdlib.h>
21568#include <stddef.h>
21569#endif
21570
21571#include <sys/types.h>
21572#ifdef HAVE_SYS_SOCKET_H
21573#include <sys/socket.h>
21574#endif
21575#ifdef HAVE_WS2TCPIP_H
21576#include <ws2tcpip.h>
21577#endif
21578int
21579main ()
21580{
21581sa_family_t foo;
21582  ;
21583  return 0;
21584}
21585_ACEOF
21586if ac_fn_c_try_compile "$LINENO"; then :
21587  eval "ac_cv_type_$cv=yes"
21588else
21589  eval "ac_cv_type_$cv=no"
21590fi
21591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21592fi
21593ac_foo=`eval echo \\$ac_cv_type_$cv`
21594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21595$as_echo "$ac_foo" >&6; }
21596if test "$ac_foo" = yes; then
21597  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
21598if false; then
21599	ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "$ac_includes_default"
21600if test "x$ac_cv_type_sa_family_t" = x""yes; then :
21601
21602cat >>confdefs.h <<_ACEOF
21603#define HAVE_SA_FAMILY_T 1
21604_ACEOF
21605
21606
21607fi
21608
21609fi
21610
21611cat >>confdefs.h <<_ACEOF
21612#define $ac_tr_hdr 1
21613_ACEOF
21614
21615fi
21616
21617
21618
21619cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
21620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21621$as_echo_n "checking for socklen_t... " >&6; }
21622if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
21623  $as_echo_n "(cached) " >&6
21624else
21625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21626/* end confdefs.h.  */
21627
21628#include <sys/types.h>
21629#if STDC_HEADERS
21630#include <stdlib.h>
21631#include <stddef.h>
21632#endif
21633
21634#include <sys/types.h>
21635#ifdef HAVE_SYS_SOCKET_H
21636#include <sys/socket.h>
21637#endif
21638#ifdef HAVE_WS2TCPIP_H
21639#include <ws2tcpip.h>
21640#endif
21641int
21642main ()
21643{
21644socklen_t foo;
21645  ;
21646  return 0;
21647}
21648_ACEOF
21649if ac_fn_c_try_compile "$LINENO"; then :
21650  eval "ac_cv_type_$cv=yes"
21651else
21652  eval "ac_cv_type_$cv=no"
21653fi
21654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655fi
21656ac_foo=`eval echo \\$ac_cv_type_$cv`
21657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21658$as_echo "$ac_foo" >&6; }
21659if test "$ac_foo" = yes; then
21660  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
21661if false; then
21662	ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default"
21663if test "x$ac_cv_type_socklen_t" = x""yes; then :
21664
21665cat >>confdefs.h <<_ACEOF
21666#define HAVE_SOCKLEN_T 1
21667_ACEOF
21668
21669
21670fi
21671
21672fi
21673
21674cat >>confdefs.h <<_ACEOF
21675#define $ac_tr_hdr 1
21676_ACEOF
21677
21678fi
21679
21680
21681
21682cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
21683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr" >&5
21684$as_echo_n "checking for struct sockaddr... " >&6; }
21685if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
21686  $as_echo_n "(cached) " >&6
21687else
21688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21689/* end confdefs.h.  */
21690
21691#include <sys/types.h>
21692#if STDC_HEADERS
21693#include <stdlib.h>
21694#include <stddef.h>
21695#endif
21696
21697#include <sys/types.h>
21698#ifdef HAVE_SYS_SOCKET_H
21699#include <sys/socket.h>
21700#endif
21701#ifdef HAVE_WS2TCPIP_H
21702#include <ws2tcpip.h>
21703#endif
21704int
21705main ()
21706{
21707struct sockaddr foo;
21708  ;
21709  return 0;
21710}
21711_ACEOF
21712if ac_fn_c_try_compile "$LINENO"; then :
21713  eval "ac_cv_type_$cv=yes"
21714else
21715  eval "ac_cv_type_$cv=no"
21716fi
21717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21718fi
21719ac_foo=`eval echo \\$ac_cv_type_$cv`
21720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21721$as_echo "$ac_foo" >&6; }
21722if test "$ac_foo" = yes; then
21723  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
21724if false; then
21725	ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "$ac_includes_default"
21726if test "x$ac_cv_type_struct_sockaddr" = x""yes; then :
21727
21728cat >>confdefs.h <<_ACEOF
21729#define HAVE_STRUCT_SOCKADDR 1
21730_ACEOF
21731
21732
21733fi
21734
21735fi
21736
21737cat >>confdefs.h <<_ACEOF
21738#define $ac_tr_hdr 1
21739_ACEOF
21740
21741fi
21742
21743
21744
21745cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
21746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
21747$as_echo_n "checking for struct sockaddr_storage... " >&6; }
21748if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
21749  $as_echo_n "(cached) " >&6
21750else
21751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21752/* end confdefs.h.  */
21753
21754#include <sys/types.h>
21755#if STDC_HEADERS
21756#include <stdlib.h>
21757#include <stddef.h>
21758#endif
21759
21760#include <sys/types.h>
21761#ifdef HAVE_SYS_SOCKET_H
21762#include <sys/socket.h>
21763#endif
21764#ifdef HAVE_WS2TCPIP_H
21765#include <ws2tcpip.h>
21766#endif
21767int
21768main ()
21769{
21770struct sockaddr_storage foo;
21771  ;
21772  return 0;
21773}
21774_ACEOF
21775if ac_fn_c_try_compile "$LINENO"; then :
21776  eval "ac_cv_type_$cv=yes"
21777else
21778  eval "ac_cv_type_$cv=no"
21779fi
21780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21781fi
21782ac_foo=`eval echo \\$ac_cv_type_$cv`
21783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21784$as_echo "$ac_foo" >&6; }
21785if test "$ac_foo" = yes; then
21786  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
21787if false; then
21788	ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
21789if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
21790
21791cat >>confdefs.h <<_ACEOF
21792#define HAVE_STRUCT_SOCKADDR_STORAGE 1
21793_ACEOF
21794
21795
21796fi
21797
21798fi
21799
21800cat >>confdefs.h <<_ACEOF
21801#define $ac_tr_hdr 1
21802_ACEOF
21803
21804fi
21805
21806
21807
21808cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
21809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
21810$as_echo_n "checking for struct addrinfo... " >&6; }
21811if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
21812  $as_echo_n "(cached) " >&6
21813else
21814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21815/* end confdefs.h.  */
21816
21817#include <sys/types.h>
21818#if STDC_HEADERS
21819#include <stdlib.h>
21820#include <stddef.h>
21821#endif
21822
21823#include <sys/types.h>
21824#ifdef HAVE_NETDB_H
21825#include <netdb.h>
21826#endif
21827#ifdef HAVE_WS2TCPIP_H
21828#include <ws2tcpip.h>
21829#endif
21830int
21831main ()
21832{
21833struct addrinfo foo;
21834  ;
21835  return 0;
21836}
21837_ACEOF
21838if ac_fn_c_try_compile "$LINENO"; then :
21839  eval "ac_cv_type_$cv=yes"
21840else
21841  eval "ac_cv_type_$cv=no"
21842fi
21843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21844fi
21845ac_foo=`eval echo \\$ac_cv_type_$cv`
21846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21847$as_echo "$ac_foo" >&6; }
21848if test "$ac_foo" = yes; then
21849  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
21850if false; then
21851	ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default"
21852if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
21853
21854cat >>confdefs.h <<_ACEOF
21855#define HAVE_STRUCT_ADDRINFO 1
21856_ACEOF
21857
21858
21859fi
21860
21861fi
21862
21863cat >>confdefs.h <<_ACEOF
21864#define $ac_tr_hdr 1
21865_ACEOF
21866
21867fi
21868
21869
21870
21871cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
21872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ifaddrs" >&5
21873$as_echo_n "checking for struct ifaddrs... " >&6; }
21874if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
21875  $as_echo_n "(cached) " >&6
21876else
21877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21878/* end confdefs.h.  */
21879
21880#include <sys/types.h>
21881#if STDC_HEADERS
21882#include <stdlib.h>
21883#include <stddef.h>
21884#endif
21885#include <ifaddrs.h>
21886int
21887main ()
21888{
21889struct ifaddrs foo;
21890  ;
21891  return 0;
21892}
21893_ACEOF
21894if ac_fn_c_try_compile "$LINENO"; then :
21895  eval "ac_cv_type_$cv=yes"
21896else
21897  eval "ac_cv_type_$cv=no"
21898fi
21899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900fi
21901ac_foo=`eval echo \\$ac_cv_type_$cv`
21902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21903$as_echo "$ac_foo" >&6; }
21904if test "$ac_foo" = yes; then
21905  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
21906if false; then
21907	ac_fn_c_check_type "$LINENO" "struct ifaddrs" "ac_cv_type_struct_ifaddrs" "$ac_includes_default"
21908if test "x$ac_cv_type_struct_ifaddrs" = x""yes; then :
21909
21910cat >>confdefs.h <<_ACEOF
21911#define HAVE_STRUCT_IFADDRS 1
21912_ACEOF
21913
21914
21915fi
21916
21917fi
21918
21919cat >>confdefs.h <<_ACEOF
21920#define $ac_tr_hdr 1
21921_ACEOF
21922
21923fi
21924
21925
21926
21927cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
21928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct iovec" >&5
21929$as_echo_n "checking for struct iovec... " >&6; }
21930if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
21931  $as_echo_n "(cached) " >&6
21932else
21933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21934/* end confdefs.h.  */
21935
21936#include <sys/types.h>
21937#if STDC_HEADERS
21938#include <stdlib.h>
21939#include <stddef.h>
21940#endif
21941
21942#include <sys/types.h>
21943#include <sys/uio.h>
21944
21945int
21946main ()
21947{
21948struct iovec foo;
21949  ;
21950  return 0;
21951}
21952_ACEOF
21953if ac_fn_c_try_compile "$LINENO"; then :
21954  eval "ac_cv_type_$cv=yes"
21955else
21956  eval "ac_cv_type_$cv=no"
21957fi
21958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21959fi
21960ac_foo=`eval echo \\$ac_cv_type_$cv`
21961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
21962$as_echo "$ac_foo" >&6; }
21963if test "$ac_foo" = yes; then
21964  ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
21965if false; then
21966	ac_fn_c_check_type "$LINENO" "struct iovec" "ac_cv_type_struct_iovec" "$ac_includes_default"
21967if test "x$ac_cv_type_struct_iovec" = x""yes; then :
21968
21969cat >>confdefs.h <<_ACEOF
21970#define HAVE_STRUCT_IOVEC 1
21971_ACEOF
21972
21973
21974fi
21975
21976fi
21977
21978cat >>confdefs.h <<_ACEOF
21979#define $ac_tr_hdr 1
21980_ACEOF
21981
21982fi
21983
21984
21985
21986cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
21987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr" >&5
21988$as_echo_n "checking for struct msghdr... " >&6; }
21989if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
21990  $as_echo_n "(cached) " >&6
21991else
21992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21993/* end confdefs.h.  */
21994
21995#include <sys/types.h>
21996#if STDC_HEADERS
21997#include <stdlib.h>
21998#include <stddef.h>
21999#endif
22000
22001#include <sys/types.h>
22002#ifdef HAVE_SYS_SOCKET_H
22003#include <sys/socket.h>
22004#endif
22005#ifdef HAVE_WS2TCPIP_H
22006#include <ws2tcpip.h>
22007#endif
22008int
22009main ()
22010{
22011struct msghdr foo;
22012  ;
22013  return 0;
22014}
22015_ACEOF
22016if ac_fn_c_try_compile "$LINENO"; then :
22017  eval "ac_cv_type_$cv=yes"
22018else
22019  eval "ac_cv_type_$cv=no"
22020fi
22021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022fi
22023ac_foo=`eval echo \\$ac_cv_type_$cv`
22024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
22025$as_echo "$ac_foo" >&6; }
22026if test "$ac_foo" = yes; then
22027  ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
22028if false; then
22029	ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "$ac_includes_default"
22030if test "x$ac_cv_type_struct_msghdr" = x""yes; then :
22031
22032cat >>confdefs.h <<_ACEOF
22033#define HAVE_STRUCT_MSGHDR 1
22034_ACEOF
22035
22036
22037fi
22038
22039fi
22040
22041cat >>confdefs.h <<_ACEOF
22042#define $ac_tr_hdr 1
22043_ACEOF
22044
22045fi
22046
22047
22048
22049
22050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize" >&5
22051$as_echo_n "checking for struct winsize... " >&6; }
22052if test "${ac_cv_struct_winsize+set}" = set; then :
22053  $as_echo_n "(cached) " >&6
22054else
22055
22056ac_cv_struct_winsize=no
22057for i in sys/termios.h sys/ioctl.h; do
22058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22059/* end confdefs.h.  */
22060#include <$i>
22061
22062_ACEOF
22063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22064  $EGREP "struct[ 	]*winsize" >/dev/null 2>&1; then :
22065  ac_cv_struct_winsize=yes; break
22066fi
22067rm -f conftest*
22068done
22069
22070fi
22071
22072if test "$ac_cv_struct_winsize" = "yes"; then
22073
22074$as_echo "#define HAVE_STRUCT_WINSIZE 1" >>confdefs.h
22075
22076fi
22077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_winsize" >&5
22078$as_echo "$ac_cv_struct_winsize" >&6; }
22079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22080/* end confdefs.h.  */
22081#include <termios.h>
22082
22083_ACEOF
22084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22085  $EGREP "ws_xpixel" >/dev/null 2>&1; then :
22086
22087$as_echo "#define HAVE_WS_XPIXEL 1" >>confdefs.h
22088
22089fi
22090rm -f conftest*
22091
22092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22093/* end confdefs.h.  */
22094#include <termios.h>
22095
22096_ACEOF
22097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22098  $EGREP "ws_ypixel" >/dev/null 2>&1; then :
22099
22100$as_echo "#define HAVE_WS_YPIXEL 1" >>confdefs.h
22101
22102fi
22103rm -f conftest*
22104
22105
22106
22107
22108
22109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct spwd" >&5
22110$as_echo_n "checking for struct spwd... " >&6; }
22111if test "${ac_cv_struct_spwd+set}" = set; then :
22112  $as_echo_n "(cached) " >&6
22113else
22114
22115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22116/* end confdefs.h.  */
22117
22118#include <pwd.h>
22119#ifdef HAVE_SHADOW_H
22120#include <shadow.h>
22121#endif
22122int
22123main ()
22124{
22125struct spwd foo;
22126  ;
22127  return 0;
22128}
22129_ACEOF
22130if ac_fn_c_try_compile "$LINENO"; then :
22131  ac_cv_struct_spwd=yes
22132else
22133  ac_cv_struct_spwd=no
22134fi
22135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136
22137fi
22138
22139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_spwd" >&5
22140$as_echo "$ac_cv_struct_spwd" >&6; }
22141
22142if test "$ac_cv_struct_spwd" = "yes"; then
22143
22144$as_echo "#define HAVE_STRUCT_SPWD 1" >>confdefs.h
22145
22146fi
22147
22148
22149#
22150# Check if we want samba's socket wrapper
22151#
22152
22153
22154
22155# Check whether --enable-socket-wrapper was given.
22156if test "${enable_socket_wrapper+set}" = set; then :
22157  enableval=$enable_socket_wrapper;
22158fi
22159
22160
22161 if test "x$enable_socket_wrapper" = xyes; then
22162  have_socket_wrapper_TRUE=
22163  have_socket_wrapper_FALSE='#'
22164else
22165  have_socket_wrapper_TRUE='#'
22166  have_socket_wrapper_FALSE=
22167fi
22168
22169if test "x$enable_socket_wrapper" = xyes ; then
22170
22171$as_echo "#define SOCKET_WRAPPER_REPLACE 1" >>confdefs.h
22172
22173fi
22174
22175
22176
22177
22178LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
22179
22180
22181LIBADD_roken="$LIB_roken"
22182LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
22183
22184
22185# Check whether --enable-otp was given.
22186if test "${enable_otp+set}" = set; then :
22187  enableval=$enable_otp;
22188fi
22189
22190if test "$enable_otp" = yes -a "$db_type" = unknown; then
22191	as_fn_error "OTP requires a NDBM/DB compatible library" "$LINENO" 5
22192fi
22193if test "$enable_otp" != no; then
22194	if test "$db_type" != unknown; then
22195		enable_otp=yes
22196	else
22197		enable_otp=no
22198	fi
22199fi
22200if test "$enable_otp" = yes; then
22201
22202$as_echo "#define OTP 1" >>confdefs.h
22203
22204	LIB_otp='$(top_builddir)/lib/otp/libotp.la'
22205
22206fi
22207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OTP library" >&5
22208$as_echo_n "checking whether to enable OTP library... " >&6; }
22209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_otp" >&5
22210$as_echo "$enable_otp" >&6; }
22211 if test "$enable_otp" = yes; then
22212  OTP_TRUE=
22213  OTP_FALSE='#'
22214else
22215  OTP_TRUE='#'
22216  OTP_FALSE=
22217fi
22218
22219
22220
22221
22222for ac_header in dispatch/dispatch.h
22223do :
22224  ac_fn_c_check_header_mongrel "$LINENO" "dispatch/dispatch.h" "ac_cv_header_dispatch_dispatch_h" "$ac_includes_default"
22225if test "x$ac_cv_header_dispatch_dispatch_h" = x""yes; then :
22226  cat >>confdefs.h <<_ACEOF
22227#define HAVE_DISPATCH_DISPATCH_H 1
22228_ACEOF
22229
22230fi
22231
22232done
22233
22234
22235
22236
22237
22238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dispatch_async_f" >&5
22239$as_echo_n "checking for dispatch_async_f... " >&6; }
22240if test "${ac_cv_funclib_dispatch_async_f+set}" = set; then :
22241  $as_echo_n "(cached) " >&6
22242else
22243
22244if eval "test \"\$ac_cv_func_dispatch_async_f\" != yes" ; then
22245	ac_save_LIBS="$LIBS"
22246	for ac_lib in "" dispatch; do
22247		case "$ac_lib" in
22248		"") ;;
22249		yes) ac_lib="" ;;
22250		no) continue ;;
22251		-l*) ;;
22252		*) ac_lib="-l$ac_lib" ;;
22253		esac
22254		LIBS=" $ac_lib  $ac_save_LIBS"
22255		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22256/* end confdefs.h.  */
22257#ifdef HAVE_DISPATCH_DISPATCH_H
22258#include <dispatch/dispatch.h>
22259#endif
22260int
22261main ()
22262{
22263dispatch_async_f(0,0,0)
22264  ;
22265  return 0;
22266}
22267_ACEOF
22268if ac_fn_c_try_link "$LINENO"; then :
22269  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
22270fi
22271rm -f core conftest.err conftest.$ac_objext \
22272    conftest$ac_exeext conftest.$ac_ext
22273	done
22274	eval "ac_cv_funclib_dispatch_async_f=\${ac_cv_funclib_dispatch_async_f-no}"
22275	LIBS="$ac_save_LIBS"
22276fi
22277
22278fi
22279
22280
22281eval "ac_res=\$ac_cv_funclib_dispatch_async_f"
22282
22283if false; then
22284	for ac_func in dispatch_async_f
22285do :
22286  ac_fn_c_check_func "$LINENO" "dispatch_async_f" "ac_cv_func_dispatch_async_f"
22287if test "x$ac_cv_func_dispatch_async_f" = x""yes; then :
22288  cat >>confdefs.h <<_ACEOF
22289#define HAVE_DISPATCH_ASYNC_F 1
22290_ACEOF
22291
22292fi
22293done
22294
22295fi
22296# dispatch_async_f
22297eval "ac_tr_func=HAVE_`echo dispatch_async_f | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22298eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22299eval "LIB_dispatch_async_f=$ac_res"
22300
22301case "$ac_res" in
22302	yes)
22303	eval "ac_cv_func_dispatch_async_f=yes"
22304	eval "LIB_dispatch_async_f="
22305	cat >>confdefs.h <<_ACEOF
22306#define $ac_tr_func 1
22307_ACEOF
22308
22309	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22310$as_echo "yes" >&6; }
22311	;;
22312	no)
22313	eval "ac_cv_func_dispatch_async_f=no"
22314	eval "LIB_dispatch_async_f="
22315	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22316$as_echo "no" >&6; }
22317	;;
22318	*)
22319	eval "ac_cv_func_dispatch_async_f=yes"
22320	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
22321	cat >>confdefs.h <<_ACEOF
22322#define $ac_tr_func 1
22323_ACEOF
22324
22325	cat >>confdefs.h <<_ACEOF
22326#define $ac_tr_lib 1
22327_ACEOF
22328
22329	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
22330$as_echo "yes, in $ac_res" >&6; }
22331	;;
22332esac
22333
22334
22335
22336if test "$ac_cv_func_dispatch_async_f" = yes ; then
22337
22338$as_echo "#define HAVE_GCD 1" >>confdefs.h
22339
22340    libdispatch=yes
22341else
22342    libdispatch=no
22343fi
22344
22345 if test "$libdispatch" = yes; then
22346  have_gcd_TRUE=
22347  have_gcd_FALSE='#'
22348else
22349  have_gcd_TRUE='#'
22350  have_gcd_FALSE=
22351fi
22352
22353
22354
22355
22356
22357# Check whether --enable-osfc2 was given.
22358if test "${enable_osfc2+set}" = set; then :
22359  enableval=$enable_osfc2;
22360fi
22361
22362LIB_security=
22363if test "$enable_osfc2" = yes; then
22364
22365$as_echo "#define HAVE_OSFC2 1" >>confdefs.h
22366
22367	LIB_security=-lsecurity
22368fi
22369
22370
22371
22372# Check whether --enable-mmap was given.
22373if test "${enable_mmap+set}" = set; then :
22374  enableval=$enable_mmap;
22375fi
22376
22377if test "$enable_mmap" = "no"; then
22378
22379$as_echo "#define NO_MMAP 1" >>confdefs.h
22380
22381fi
22382
22383# Check whether --enable-afs-string-to-key was given.
22384if test "${enable_afs_string_to_key+set}" = set; then :
22385  enableval=$enable_afs_string_to_key;
22386else
22387  enable_afs_string_to_key=yes
22388fi
22389
22390
22391if test "$enable_afs_string_to_key" = "yes"; then
22392
22393$as_echo "#define ENABLE_AFS_STRING_TO_KEY 1" >>confdefs.h
22394
22395fi
22396
22397
22398# Extract the first word of "nroff", so it can be a program name with args.
22399set dummy nroff; ac_word=$2
22400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22401$as_echo_n "checking for $ac_word... " >&6; }
22402if test "${ac_cv_path_NROFF+set}" = set; then :
22403  $as_echo_n "(cached) " >&6
22404else
22405  case $NROFF in
22406  [\\/]* | ?:[\\/]*)
22407  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
22408  ;;
22409  *)
22410  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22411for as_dir in $PATH
22412do
22413  IFS=$as_save_IFS
22414  test -z "$as_dir" && as_dir=.
22415    for ac_exec_ext in '' $ac_executable_extensions; do
22416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22417    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
22418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22419    break 2
22420  fi
22421done
22422  done
22423IFS=$as_save_IFS
22424
22425  ;;
22426esac
22427fi
22428NROFF=$ac_cv_path_NROFF
22429if test -n "$NROFF"; then
22430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
22431$as_echo "$NROFF" >&6; }
22432else
22433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22434$as_echo "no" >&6; }
22435fi
22436
22437
22438# Extract the first word of "groff", so it can be a program name with args.
22439set dummy groff; ac_word=$2
22440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22441$as_echo_n "checking for $ac_word... " >&6; }
22442if test "${ac_cv_path_GROFF+set}" = set; then :
22443  $as_echo_n "(cached) " >&6
22444else
22445  case $GROFF in
22446  [\\/]* | ?:[\\/]*)
22447  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
22448  ;;
22449  *)
22450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22451for as_dir in $PATH
22452do
22453  IFS=$as_save_IFS
22454  test -z "$as_dir" && as_dir=.
22455    for ac_exec_ext in '' $ac_executable_extensions; do
22456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22457    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
22458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22459    break 2
22460  fi
22461done
22462  done
22463IFS=$as_save_IFS
22464
22465  ;;
22466esac
22467fi
22468GROFF=$ac_cv_path_GROFF
22469if test -n "$GROFF"; then
22470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
22471$as_echo "$GROFF" >&6; }
22472else
22473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22474$as_echo "no" >&6; }
22475fi
22476
22477
22478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to format man pages" >&5
22479$as_echo_n "checking how to format man pages... " >&6; }
22480if test "${ac_cv_sys_man_format+set}" = set; then :
22481  $as_echo_n "(cached) " >&6
22482else
22483  cat > conftest.1 << END
22484.Dd January 1, 1970
22485.Dt CONFTEST 1
22486.Sh NAME
22487.Nm conftest
22488.Nd
22489foobar
22490END
22491
22492if test "$NROFF" ; then
22493	for i in "-mdoc" "-mandoc"; do
22494		if "$NROFF" $i conftest.1 2> /dev/null | \
22495			grep Jan > /dev/null 2>&1 ; then
22496			ac_cv_sys_man_format="$NROFF $i"
22497			break
22498		fi
22499	done
22500fi
22501if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
22502	for i in "-mdoc" "-mandoc"; do
22503		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
22504			grep Jan > /dev/null 2>&1 ; then
22505			ac_cv_sys_man_format="$GROFF -Tascii $i"
22506			break
22507		fi
22508	done
22509fi
22510if test "$ac_cv_sys_man_format"; then
22511	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
22512fi
22513
22514fi
22515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_man_format" >&5
22516$as_echo "$ac_cv_sys_man_format" >&6; }
22517if test "$ac_cv_sys_man_format"; then
22518	CATMAN="$ac_cv_sys_man_format"
22519
22520fi
22521 if test "$CATMAN"; then
22522  CATMAN_TRUE=
22523  CATMAN_FALSE='#'
22524else
22525  CATMAN_TRUE='#'
22526  CATMAN_FALSE=
22527fi
22528
22529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking extension of pre-formatted manual pages" >&5
22530$as_echo_n "checking extension of pre-formatted manual pages... " >&6; }
22531if test "${ac_cv_sys_catman_ext+set}" = set; then :
22532  $as_echo_n "(cached) " >&6
22533else
22534  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
22535	ac_cv_sys_catman_ext=0
22536else
22537	ac_cv_sys_catman_ext=number
22538fi
22539
22540fi
22541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_catman_ext" >&5
22542$as_echo "$ac_cv_sys_catman_ext" >&6; }
22543if test "$ac_cv_sys_catman_ext" = number; then
22544	CATMANEXT='$$section'
22545else
22546	CATMANEXT=0
22547fi
22548
22549
22550
22551
22552
22553# Check whether --with-readline was given.
22554if test "${with_readline+set}" = set; then :
22555  withval=$with_readline;
22556fi
22557
22558
22559# Check whether --with-readline-lib was given.
22560if test "${with_readline_lib+set}" = set; then :
22561  withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
22562  as_fn_error "No argument for --with-readline-lib" "$LINENO" 5
22563elif test "X$with_readline" = "X"; then
22564  with_readline=yes
22565fi
22566fi
22567
22568
22569# Check whether --with-readline-include was given.
22570if test "${with_readline_include+set}" = set; then :
22571  withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then
22572  as_fn_error "No argument for --with-readline-include" "$LINENO" 5
22573elif test "X$with_readline" = "X"; then
22574  with_readline=yes
22575fi
22576fi
22577
22578
22579# Check whether --with-readline-config was given.
22580if test "${with_readline_config+set}" = set; then :
22581  withval=$with_readline_config;
22582fi
22583
22584
22585
22586
22587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
22588$as_echo_n "checking for readline... " >&6; }
22589
22590case "$with_readline" in
22591yes|"") d='' ;;
22592no)	d= ;;
22593*)	d="$with_readline" ;;
22594esac
22595
22596header_dirs=
22597lib_dirs=
22598for i in $d; do
22599	if test "$with_readline_include" = ""; then
22600		if test -d "$i/include/readline"; then
22601			header_dirs="$header_dirs $i/include/readline"
22602		fi
22603		if test -d "$i/include"; then
22604			header_dirs="$header_dirs $i/include"
22605		fi
22606	fi
22607	if test "$with_readline_lib" = ""; then
22608		if test -d "$i/lib$abilibdirext"; then
22609			lib_dirs="$lib_dirs $i/lib$abilibdirext"
22610		fi
22611	fi
22612done
22613
22614if test "$with_readline_include"; then
22615	header_dirs="$with_readline_include $header_dirs"
22616fi
22617if test "$with_readline_lib"; then
22618	lib_dirs="$with_readline_lib $lib_dirs"
22619fi
22620
22621if test "$with_readline_config" = ""; then
22622	with_readline_config=''
22623fi
22624
22625readline_cflags=
22626readline_libs=
22627
22628case "$with_readline_config" in
22629yes|no|""|"")
22630	if test -f $with_readline/bin/ ; then
22631		with_readline_config=$with_readline/bin/
22632	fi
22633	;;
22634esac
22635
22636case "$with_readline_config" in
22637yes|no|"")
22638	;;
22639*)
22640	readline_cflags="`$with_readline_config --cflags 2>&1`"
22641	readline_libs="`$with_readline_config --libs 2>&1`"
22642	;;
22643esac
22644
22645found=no
22646if test "$with_readline" != no; then
22647	save_CFLAGS="$CFLAGS"
22648	save_LIBS="$LIBS"
22649	if test "$readline_cflags" -a "$readline_libs"; then
22650		CFLAGS="$readline_cflags $save_CFLAGS"
22651		LIBS="$readline_libs $save_LIBS"
22652		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22653/* end confdefs.h.  */
22654#include <stdio.h>
22655 #include <readline.h>
22656int
22657main ()
22658{
22659
22660  ;
22661  return 0;
22662}
22663_ACEOF
22664if ac_fn_c_try_link "$LINENO"; then :
22665
22666			INCLUDE_readline="$readline_cflags"
22667			LIB_readline="$readline_libs"
22668			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_readline_config" >&5
22669$as_echo "from $with_readline_config" >&6; }
22670			found=yes
22671fi
22672rm -f core conftest.err conftest.$ac_objext \
22673    conftest$ac_exeext conftest.$ac_ext
22674	fi
22675	if test "$found" = no; then
22676		ires= lres=
22677		for i in $header_dirs; do
22678			CFLAGS="-I$i $save_CFLAGS"
22679			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680/* end confdefs.h.  */
22681#include <stdio.h>
22682 #include <readline.h>
22683int
22684main ()
22685{
22686
22687  ;
22688  return 0;
22689}
22690_ACEOF
22691if ac_fn_c_try_compile "$LINENO"; then :
22692  ires=$i;break
22693fi
22694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22695		done
22696		for i in $lib_dirs; do
22697			LIBS="-L$i -lreadline  $save_LIBS"
22698			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22699/* end confdefs.h.  */
22700#include <stdio.h>
22701 #include <readline.h>
22702int
22703main ()
22704{
22705
22706  ;
22707  return 0;
22708}
22709_ACEOF
22710if ac_fn_c_try_link "$LINENO"; then :
22711  lres=$i;break
22712fi
22713rm -f core conftest.err conftest.$ac_objext \
22714    conftest$ac_exeext conftest.$ac_ext
22715		done
22716		if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
22717			INCLUDE_readline="-I$ires"
22718			LIB_readline="-L$lres -lreadline "
22719			found=yes
22720			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
22721$as_echo "headers $ires, libraries $lres" >&6; }
22722		fi
22723	fi
22724	CFLAGS="$save_CFLAGS"
22725	LIBS="$save_LIBS"
22726fi
22727
22728if test "$found" = yes; then
22729
22730cat >>confdefs.h <<_ACEOF
22731#define READLINE 1
22732_ACEOF
22733
22734	with_readline=yes
22735else
22736	with_readline=no
22737	INCLUDE_readline=
22738	LIB_readline=
22739	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22740$as_echo "no" >&6; }
22741fi
22742
22743
22744
22745
22746
22747
22748
22749# Check whether --with-hesiod was given.
22750if test "${with_hesiod+set}" = set; then :
22751  withval=$with_hesiod;
22752fi
22753
22754
22755# Check whether --with-hesiod-lib was given.
22756if test "${with_hesiod_lib+set}" = set; then :
22757  withval=$with_hesiod_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
22758  as_fn_error "No argument for --with-hesiod-lib" "$LINENO" 5
22759elif test "X$with_hesiod" = "X"; then
22760  with_hesiod=yes
22761fi
22762fi
22763
22764
22765# Check whether --with-hesiod-include was given.
22766if test "${with_hesiod_include+set}" = set; then :
22767  withval=$with_hesiod_include; if test "$withval" = "yes" -o "$withval" = "no"; then
22768  as_fn_error "No argument for --with-hesiod-include" "$LINENO" 5
22769elif test "X$with_hesiod" = "X"; then
22770  with_hesiod=yes
22771fi
22772fi
22773
22774
22775# Check whether --with-hesiod-config was given.
22776if test "${with_hesiod_config+set}" = set; then :
22777  withval=$with_hesiod_config;
22778fi
22779
22780
22781
22782
22783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hesiod" >&5
22784$as_echo_n "checking for hesiod... " >&6; }
22785
22786case "$with_hesiod" in
22787yes|"") d='' ;;
22788no)	d= ;;
22789*)	d="$with_hesiod" ;;
22790esac
22791
22792header_dirs=
22793lib_dirs=
22794for i in $d; do
22795	if test "$with_hesiod_include" = ""; then
22796		if test -d "$i/include/hesiod"; then
22797			header_dirs="$header_dirs $i/include/hesiod"
22798		fi
22799		if test -d "$i/include"; then
22800			header_dirs="$header_dirs $i/include"
22801		fi
22802	fi
22803	if test "$with_hesiod_lib" = ""; then
22804		if test -d "$i/lib$abilibdirext"; then
22805			lib_dirs="$lib_dirs $i/lib$abilibdirext"
22806		fi
22807	fi
22808done
22809
22810if test "$with_hesiod_include"; then
22811	header_dirs="$with_hesiod_include $header_dirs"
22812fi
22813if test "$with_hesiod_lib"; then
22814	lib_dirs="$with_hesiod_lib $lib_dirs"
22815fi
22816
22817if test "$with_hesiod_config" = ""; then
22818	with_hesiod_config=''
22819fi
22820
22821hesiod_cflags=
22822hesiod_libs=
22823
22824case "$with_hesiod_config" in
22825yes|no|""|"")
22826	if test -f $with_hesiod/bin/ ; then
22827		with_hesiod_config=$with_hesiod/bin/
22828	fi
22829	;;
22830esac
22831
22832case "$with_hesiod_config" in
22833yes|no|"")
22834	;;
22835*)
22836	hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
22837	hesiod_libs="`$with_hesiod_config --libs 2>&1`"
22838	;;
22839esac
22840
22841found=no
22842if test "$with_hesiod" != no; then
22843	save_CFLAGS="$CFLAGS"
22844	save_LIBS="$LIBS"
22845	if test "$hesiod_cflags" -a "$hesiod_libs"; then
22846		CFLAGS="$hesiod_cflags $save_CFLAGS"
22847		LIBS="$hesiod_libs $save_LIBS"
22848		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849/* end confdefs.h.  */
22850#include <hesiod.h>
22851int
22852main ()
22853{
22854
22855  ;
22856  return 0;
22857}
22858_ACEOF
22859if ac_fn_c_try_link "$LINENO"; then :
22860
22861			INCLUDE_hesiod="$hesiod_cflags"
22862			LIB_hesiod="$hesiod_libs"
22863			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_hesiod_config" >&5
22864$as_echo "from $with_hesiod_config" >&6; }
22865			found=yes
22866fi
22867rm -f core conftest.err conftest.$ac_objext \
22868    conftest$ac_exeext conftest.$ac_ext
22869	fi
22870	if test "$found" = no; then
22871		ires= lres=
22872		for i in $header_dirs; do
22873			CFLAGS="-I$i $save_CFLAGS"
22874			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22875/* end confdefs.h.  */
22876#include <hesiod.h>
22877int
22878main ()
22879{
22880
22881  ;
22882  return 0;
22883}
22884_ACEOF
22885if ac_fn_c_try_compile "$LINENO"; then :
22886  ires=$i;break
22887fi
22888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22889		done
22890		for i in $lib_dirs; do
22891			LIBS="-L$i -lhesiod  $save_LIBS"
22892			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22893/* end confdefs.h.  */
22894#include <hesiod.h>
22895int
22896main ()
22897{
22898
22899  ;
22900  return 0;
22901}
22902_ACEOF
22903if ac_fn_c_try_link "$LINENO"; then :
22904  lres=$i;break
22905fi
22906rm -f core conftest.err conftest.$ac_objext \
22907    conftest$ac_exeext conftest.$ac_ext
22908		done
22909		if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
22910			INCLUDE_hesiod="-I$ires"
22911			LIB_hesiod="-L$lres -lhesiod "
22912			found=yes
22913			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
22914$as_echo "headers $ires, libraries $lres" >&6; }
22915		fi
22916	fi
22917	CFLAGS="$save_CFLAGS"
22918	LIBS="$save_LIBS"
22919fi
22920
22921if test "$found" = yes; then
22922
22923cat >>confdefs.h <<_ACEOF
22924#define HESIOD 1
22925_ACEOF
22926
22927	with_hesiod=yes
22928else
22929	with_hesiod=no
22930	INCLUDE_hesiod=
22931	LIB_hesiod=
22932	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22933$as_echo "no" >&6; }
22934fi
22935
22936
22937
22938
22939
22940
22941# Check whether --enable-bigendian was given.
22942if test "${enable_bigendian+set}" = set; then :
22943  enableval=$enable_bigendian; krb_cv_c_bigendian=yes
22944fi
22945
22946# Check whether --enable-littleendian was given.
22947if test "${enable_littleendian+set}" = set; then :
22948  enableval=$enable_littleendian; krb_cv_c_bigendian=no
22949fi
22950
22951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte order is known at compile time" >&5
22952$as_echo_n "checking whether byte order is known at compile time... " >&6; }
22953if test "${krb_cv_c_bigendian_compile+set}" = set; then :
22954  $as_echo_n "(cached) " >&6
22955else
22956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22957/* end confdefs.h.  */
22958
22959#include <sys/types.h>
22960#include <sys/param.h>
22961#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22962 bogus endian macros
22963#endif
22964_ACEOF
22965if ac_fn_c_try_compile "$LINENO"; then :
22966  krb_cv_c_bigendian_compile=yes
22967else
22968  krb_cv_c_bigendian_compile=no
22969fi
22970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971fi
22972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian_compile" >&5
22973$as_echo "$krb_cv_c_bigendian_compile" >&6; }
22974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22975$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22976if test "${krb_cv_c_bigendian+set}" = set; then :
22977  $as_echo_n "(cached) " >&6
22978else
22979
22980  if test "$krb_cv_c_bigendian_compile" = "yes"; then
22981    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22982/* end confdefs.h.  */
22983
22984#include <sys/types.h>
22985#include <sys/param.h>
22986#if BYTE_ORDER != BIG_ENDIAN
22987  not big endian
22988#endif
22989_ACEOF
22990if ac_fn_c_try_compile "$LINENO"; then :
22991  krb_cv_c_bigendian=yes
22992else
22993  krb_cv_c_bigendian=no
22994fi
22995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22996  else
22997    if test "$cross_compiling" = yes; then :
22998  as_fn_error "specify either --enable-bigendian or --enable-littleendian" "$LINENO" 5
22999else
23000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001/* end confdefs.h.  */
23002main (int argc, char **argv) {
23003      /* Are we little or big endian?  From Harbison&Steele.  */
23004      union
23005      {
23006	long l;
23007	char c[sizeof (long)];
23008    } u;
23009    u.l = 1;
23010    exit (u.c[sizeof (long) - 1] == 1);
23011  }
23012_ACEOF
23013if ac_fn_c_try_run "$LINENO"; then :
23014  krb_cv_c_bigendian=no
23015else
23016  krb_cv_c_bigendian=yes
23017fi
23018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23019  conftest.$ac_objext conftest.beam conftest.$ac_ext
23020fi
23021
23022  fi
23023
23024fi
23025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian" >&5
23026$as_echo "$krb_cv_c_bigendian" >&6; }
23027if test "$krb_cv_c_bigendian" = "yes"; then
23028
23029$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23030fi
23031if test "$krb_cv_c_bigendian_compile" = "yes"; then
23032
23033$as_echo "#define ENDIANESS_IN_SYS_PARAM_H 1" >>confdefs.h
23034fi
23035
23036
23037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
23038$as_echo_n "checking for inline... " >&6; }
23039if test "${ac_cv_c_inline+set}" = set; then :
23040  $as_echo_n "(cached) " >&6
23041else
23042  ac_cv_c_inline=no
23043for ac_kw in inline __inline__ __inline; do
23044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23045/* end confdefs.h.  */
23046#ifndef __cplusplus
23047typedef int foo_t;
23048static $ac_kw foo_t static_foo () {return 0; }
23049$ac_kw foo_t foo () {return 0; }
23050#endif
23051
23052_ACEOF
23053if ac_fn_c_try_compile "$LINENO"; then :
23054  ac_cv_c_inline=$ac_kw
23055fi
23056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23057  test "$ac_cv_c_inline" != no && break
23058done
23059
23060fi
23061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23062$as_echo "$ac_cv_c_inline" >&6; }
23063
23064case $ac_cv_c_inline in
23065  inline | yes) ;;
23066  *)
23067    case $ac_cv_c_inline in
23068      no) ac_val=;;
23069      *) ac_val=$ac_cv_c_inline;;
23070    esac
23071    cat >>confdefs.h <<_ACEOF
23072#ifndef __cplusplus
23073#define inline $ac_val
23074#endif
23075_ACEOF
23076    ;;
23077esac
23078
23079
23080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
23081$as_echo_n "checking for X... " >&6; }
23082
23083
23084# Check whether --with-x was given.
23085if test "${with_x+set}" = set; then :
23086  withval=$with_x;
23087fi
23088
23089# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23090if test "x$with_x" = xno; then
23091  # The user explicitly disabled X.
23092  have_x=disabled
23093else
23094  case $x_includes,$x_libraries in #(
23095    *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23096    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
23097  $as_echo_n "(cached) " >&6
23098else
23099  # One or both of the vars are not set, and there is no cached value.
23100ac_x_includes=no ac_x_libraries=no
23101rm -f -r conftest.dir
23102if mkdir conftest.dir; then
23103  cd conftest.dir
23104  cat >Imakefile <<'_ACEOF'
23105incroot:
23106	@echo incroot='${INCROOT}'
23107usrlibdir:
23108	@echo usrlibdir='${USRLIBDIR}'
23109libdir:
23110	@echo libdir='${LIBDIR}'
23111_ACEOF
23112  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23113    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23114    for ac_var in incroot usrlibdir libdir; do
23115      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23116    done
23117    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23118    for ac_extension in a so sl dylib la dll; do
23119      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23120	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23121	ac_im_usrlibdir=$ac_im_libdir; break
23122      fi
23123    done
23124    # Screen out bogus values from the imake configuration.  They are
23125    # bogus both because they are the default anyway, and because
23126    # using them would break gcc on systems where it needs fixed includes.
23127    case $ac_im_incroot in
23128	/usr/include) ac_x_includes= ;;
23129	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23130    esac
23131    case $ac_im_usrlibdir in
23132	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
23133	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23134    esac
23135  fi
23136  cd ..
23137  rm -f -r conftest.dir
23138fi
23139
23140# Standard set of common directories for X headers.
23141# Check X11 before X11Rn because it is often a symlink to the current release.
23142ac_x_header_dirs='
23143/usr/X11/include
23144/usr/X11R7/include
23145/usr/X11R6/include
23146/usr/X11R5/include
23147/usr/X11R4/include
23148
23149/usr/include/X11
23150/usr/include/X11R7
23151/usr/include/X11R6
23152/usr/include/X11R5
23153/usr/include/X11R4
23154
23155/usr/local/X11/include
23156/usr/local/X11R7/include
23157/usr/local/X11R6/include
23158/usr/local/X11R5/include
23159/usr/local/X11R4/include
23160
23161/usr/local/include/X11
23162/usr/local/include/X11R7
23163/usr/local/include/X11R6
23164/usr/local/include/X11R5
23165/usr/local/include/X11R4
23166
23167/usr/X386/include
23168/usr/x386/include
23169/usr/XFree86/include/X11
23170
23171/usr/include
23172/usr/local/include
23173/usr/unsupported/include
23174/usr/athena/include
23175/usr/local/x11r5/include
23176/usr/lpp/Xamples/include
23177
23178/usr/openwin/include
23179/usr/openwin/share/include'
23180
23181if test "$ac_x_includes" = no; then
23182  # Guess where to find include files, by looking for Xlib.h.
23183  # First, try using that file with no special directory specified.
23184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23185/* end confdefs.h.  */
23186#include <X11/Xlib.h>
23187_ACEOF
23188if ac_fn_c_try_cpp "$LINENO"; then :
23189  # We can compile using X headers with no special include directory.
23190ac_x_includes=
23191else
23192  for ac_dir in $ac_x_header_dirs; do
23193  if test -r "$ac_dir/X11/Xlib.h"; then
23194    ac_x_includes=$ac_dir
23195    break
23196  fi
23197done
23198fi
23199rm -f conftest.err conftest.$ac_ext
23200fi # $ac_x_includes = no
23201
23202if test "$ac_x_libraries" = no; then
23203  # Check for the libraries.
23204  # See if we find them without any special options.
23205  # Don't add to $LIBS permanently.
23206  ac_save_LIBS=$LIBS
23207  LIBS="-lX11 $LIBS"
23208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23209/* end confdefs.h.  */
23210#include <X11/Xlib.h>
23211int
23212main ()
23213{
23214XrmInitialize ()
23215  ;
23216  return 0;
23217}
23218_ACEOF
23219if ac_fn_c_try_link "$LINENO"; then :
23220  LIBS=$ac_save_LIBS
23221# We can link X programs with no special library path.
23222ac_x_libraries=
23223else
23224  LIBS=$ac_save_LIBS
23225for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23226do
23227  # Don't even attempt the hair of trying to link an X program!
23228  for ac_extension in a so sl dylib la dll; do
23229    if test -r "$ac_dir/libX11.$ac_extension"; then
23230      ac_x_libraries=$ac_dir
23231      break 2
23232    fi
23233  done
23234done
23235fi
23236rm -f core conftest.err conftest.$ac_objext \
23237    conftest$ac_exeext conftest.$ac_ext
23238fi # $ac_x_libraries = no
23239
23240case $ac_x_includes,$ac_x_libraries in #(
23241  no,* | *,no | *\'*)
23242    # Didn't find X, or a directory has "'" in its name.
23243    ac_cv_have_x="have_x=no";; #(
23244  *)
23245    # Record where we found X for the cache.
23246    ac_cv_have_x="have_x=yes\
23247	ac_x_includes='$ac_x_includes'\
23248	ac_x_libraries='$ac_x_libraries'"
23249esac
23250fi
23251;; #(
23252    *) have_x=yes;;
23253  esac
23254  eval "$ac_cv_have_x"
23255fi # $with_x != no
23256
23257if test "$have_x" != yes; then
23258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
23259$as_echo "$have_x" >&6; }
23260  no_x=yes
23261else
23262  # If each of the values was on the command line, it overrides each guess.
23263  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23264  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23265  # Update the cache value to reflect the command line values.
23266  ac_cv_have_x="have_x=yes\
23267	ac_x_includes='$x_includes'\
23268	ac_x_libraries='$x_libraries'"
23269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
23270$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23271fi
23272
23273
23274if test "$no_x" = yes; then
23275  # Not all programs may use this symbol, but it does not hurt to define it.
23276
23277$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
23278
23279  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23280else
23281  if test -n "$x_includes"; then
23282    X_CFLAGS="$X_CFLAGS -I$x_includes"
23283  fi
23284
23285  # It would also be nice to do this for all -L options, not just this one.
23286  if test -n "$x_libraries"; then
23287    X_LIBS="$X_LIBS -L$x_libraries"
23288    # For Solaris; some versions of Sun CC require a space after -R and
23289    # others require no space.  Words are not sufficient . . . .
23290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
23291$as_echo_n "checking whether -R must be followed by a space... " >&6; }
23292    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23293    ac_xsave_c_werror_flag=$ac_c_werror_flag
23294    ac_c_werror_flag=yes
23295    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23296/* end confdefs.h.  */
23297
23298int
23299main ()
23300{
23301
23302  ;
23303  return 0;
23304}
23305_ACEOF
23306if ac_fn_c_try_link "$LINENO"; then :
23307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23308$as_echo "no" >&6; }
23309       X_LIBS="$X_LIBS -R$x_libraries"
23310else
23311  LIBS="$ac_xsave_LIBS -R $x_libraries"
23312       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23313/* end confdefs.h.  */
23314
23315int
23316main ()
23317{
23318
23319  ;
23320  return 0;
23321}
23322_ACEOF
23323if ac_fn_c_try_link "$LINENO"; then :
23324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23325$as_echo "yes" >&6; }
23326	  X_LIBS="$X_LIBS -R $x_libraries"
23327else
23328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
23329$as_echo "neither works" >&6; }
23330fi
23331rm -f core conftest.err conftest.$ac_objext \
23332    conftest$ac_exeext conftest.$ac_ext
23333fi
23334rm -f core conftest.err conftest.$ac_objext \
23335    conftest$ac_exeext conftest.$ac_ext
23336    ac_c_werror_flag=$ac_xsave_c_werror_flag
23337    LIBS=$ac_xsave_LIBS
23338  fi
23339
23340  # Check for system-dependent libraries X programs must link with.
23341  # Do this before checking for the system-independent R6 libraries
23342  # (-lICE), since we may need -lsocket or whatever for X linking.
23343
23344  if test "$ISC" = yes; then
23345    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23346  else
23347    # Martyn Johnson says this is needed for Ultrix, if the X
23348    # libraries were built with DECnet support.  And Karl Berry says
23349    # the Alpha needs dnet_stub (dnet does not exist).
23350    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23351    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23352/* end confdefs.h.  */
23353
23354/* Override any GCC internal prototype to avoid an error.
23355   Use char because int might match the return type of a GCC
23356   builtin and then its argument prototype would still apply.  */
23357#ifdef __cplusplus
23358extern "C"
23359#endif
23360char XOpenDisplay ();
23361int
23362main ()
23363{
23364return XOpenDisplay ();
23365  ;
23366  return 0;
23367}
23368_ACEOF
23369if ac_fn_c_try_link "$LINENO"; then :
23370
23371else
23372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
23373$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
23374if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
23375  $as_echo_n "(cached) " >&6
23376else
23377  ac_check_lib_save_LIBS=$LIBS
23378LIBS="-ldnet  $LIBS"
23379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23380/* end confdefs.h.  */
23381
23382/* Override any GCC internal prototype to avoid an error.
23383   Use char because int might match the return type of a GCC
23384   builtin and then its argument prototype would still apply.  */
23385#ifdef __cplusplus
23386extern "C"
23387#endif
23388char dnet_ntoa ();
23389int
23390main ()
23391{
23392return dnet_ntoa ();
23393  ;
23394  return 0;
23395}
23396_ACEOF
23397if ac_fn_c_try_link "$LINENO"; then :
23398  ac_cv_lib_dnet_dnet_ntoa=yes
23399else
23400  ac_cv_lib_dnet_dnet_ntoa=no
23401fi
23402rm -f core conftest.err conftest.$ac_objext \
23403    conftest$ac_exeext conftest.$ac_ext
23404LIBS=$ac_check_lib_save_LIBS
23405fi
23406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23407$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23408if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
23409  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23410fi
23411
23412    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23413      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
23414$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
23415if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
23416  $as_echo_n "(cached) " >&6
23417else
23418  ac_check_lib_save_LIBS=$LIBS
23419LIBS="-ldnet_stub  $LIBS"
23420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23421/* end confdefs.h.  */
23422
23423/* Override any GCC internal prototype to avoid an error.
23424   Use char because int might match the return type of a GCC
23425   builtin and then its argument prototype would still apply.  */
23426#ifdef __cplusplus
23427extern "C"
23428#endif
23429char dnet_ntoa ();
23430int
23431main ()
23432{
23433return dnet_ntoa ();
23434  ;
23435  return 0;
23436}
23437_ACEOF
23438if ac_fn_c_try_link "$LINENO"; then :
23439  ac_cv_lib_dnet_stub_dnet_ntoa=yes
23440else
23441  ac_cv_lib_dnet_stub_dnet_ntoa=no
23442fi
23443rm -f core conftest.err conftest.$ac_objext \
23444    conftest$ac_exeext conftest.$ac_ext
23445LIBS=$ac_check_lib_save_LIBS
23446fi
23447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23448$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23449if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
23450  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23451fi
23452
23453    fi
23454fi
23455rm -f core conftest.err conftest.$ac_objext \
23456    conftest$ac_exeext conftest.$ac_ext
23457    LIBS="$ac_xsave_LIBS"
23458
23459    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23460    # to get the SysV transport functions.
23461    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23462    # needs -lnsl.
23463    # The nsl library prevents programs from opening the X display
23464    # on Irix 5.2, according to T.E. Dickey.
23465    # The functions gethostbyname, getservbyname, and inet_addr are
23466    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23467    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23468if test "x$ac_cv_func_gethostbyname" = x""yes; then :
23469
23470fi
23471
23472    if test $ac_cv_func_gethostbyname = no; then
23473      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
23474$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
23475if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
23476  $as_echo_n "(cached) " >&6
23477else
23478  ac_check_lib_save_LIBS=$LIBS
23479LIBS="-lnsl  $LIBS"
23480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23481/* end confdefs.h.  */
23482
23483/* Override any GCC internal prototype to avoid an error.
23484   Use char because int might match the return type of a GCC
23485   builtin and then its argument prototype would still apply.  */
23486#ifdef __cplusplus
23487extern "C"
23488#endif
23489char gethostbyname ();
23490int
23491main ()
23492{
23493return gethostbyname ();
23494  ;
23495  return 0;
23496}
23497_ACEOF
23498if ac_fn_c_try_link "$LINENO"; then :
23499  ac_cv_lib_nsl_gethostbyname=yes
23500else
23501  ac_cv_lib_nsl_gethostbyname=no
23502fi
23503rm -f core conftest.err conftest.$ac_objext \
23504    conftest$ac_exeext conftest.$ac_ext
23505LIBS=$ac_check_lib_save_LIBS
23506fi
23507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
23508$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
23509if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
23510  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23511fi
23512
23513      if test $ac_cv_lib_nsl_gethostbyname = no; then
23514	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
23515$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
23516if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
23517  $as_echo_n "(cached) " >&6
23518else
23519  ac_check_lib_save_LIBS=$LIBS
23520LIBS="-lbsd  $LIBS"
23521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23522/* end confdefs.h.  */
23523
23524/* Override any GCC internal prototype to avoid an error.
23525   Use char because int might match the return type of a GCC
23526   builtin and then its argument prototype would still apply.  */
23527#ifdef __cplusplus
23528extern "C"
23529#endif
23530char gethostbyname ();
23531int
23532main ()
23533{
23534return gethostbyname ();
23535  ;
23536  return 0;
23537}
23538_ACEOF
23539if ac_fn_c_try_link "$LINENO"; then :
23540  ac_cv_lib_bsd_gethostbyname=yes
23541else
23542  ac_cv_lib_bsd_gethostbyname=no
23543fi
23544rm -f core conftest.err conftest.$ac_objext \
23545    conftest$ac_exeext conftest.$ac_ext
23546LIBS=$ac_check_lib_save_LIBS
23547fi
23548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
23549$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
23550if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
23551  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23552fi
23553
23554      fi
23555    fi
23556
23557    # lieder@skyler.mavd.honeywell.com says without -lsocket,
23558    # socket/setsockopt and other routines are undefined under SCO ODT
23559    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
23560    # on later versions), says Simon Leinen: it contains gethostby*
23561    # variants that don't use the name server (or something).  -lsocket
23562    # must be given before -lnsl if both are needed.  We assume that
23563    # if connect needs -lnsl, so does gethostbyname.
23564    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
23565if test "x$ac_cv_func_connect" = x""yes; then :
23566
23567fi
23568
23569    if test $ac_cv_func_connect = no; then
23570      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
23571$as_echo_n "checking for connect in -lsocket... " >&6; }
23572if test "${ac_cv_lib_socket_connect+set}" = set; then :
23573  $as_echo_n "(cached) " >&6
23574else
23575  ac_check_lib_save_LIBS=$LIBS
23576LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23578/* end confdefs.h.  */
23579
23580/* Override any GCC internal prototype to avoid an error.
23581   Use char because int might match the return type of a GCC
23582   builtin and then its argument prototype would still apply.  */
23583#ifdef __cplusplus
23584extern "C"
23585#endif
23586char connect ();
23587int
23588main ()
23589{
23590return connect ();
23591  ;
23592  return 0;
23593}
23594_ACEOF
23595if ac_fn_c_try_link "$LINENO"; then :
23596  ac_cv_lib_socket_connect=yes
23597else
23598  ac_cv_lib_socket_connect=no
23599fi
23600rm -f core conftest.err conftest.$ac_objext \
23601    conftest$ac_exeext conftest.$ac_ext
23602LIBS=$ac_check_lib_save_LIBS
23603fi
23604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
23605$as_echo "$ac_cv_lib_socket_connect" >&6; }
23606if test "x$ac_cv_lib_socket_connect" = x""yes; then :
23607  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23608fi
23609
23610    fi
23611
23612    # Guillermo Gomez says -lposix is necessary on A/UX.
23613    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
23614if test "x$ac_cv_func_remove" = x""yes; then :
23615
23616fi
23617
23618    if test $ac_cv_func_remove = no; then
23619      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
23620$as_echo_n "checking for remove in -lposix... " >&6; }
23621if test "${ac_cv_lib_posix_remove+set}" = set; then :
23622  $as_echo_n "(cached) " >&6
23623else
23624  ac_check_lib_save_LIBS=$LIBS
23625LIBS="-lposix  $LIBS"
23626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23627/* end confdefs.h.  */
23628
23629/* Override any GCC internal prototype to avoid an error.
23630   Use char because int might match the return type of a GCC
23631   builtin and then its argument prototype would still apply.  */
23632#ifdef __cplusplus
23633extern "C"
23634#endif
23635char remove ();
23636int
23637main ()
23638{
23639return remove ();
23640  ;
23641  return 0;
23642}
23643_ACEOF
23644if ac_fn_c_try_link "$LINENO"; then :
23645  ac_cv_lib_posix_remove=yes
23646else
23647  ac_cv_lib_posix_remove=no
23648fi
23649rm -f core conftest.err conftest.$ac_objext \
23650    conftest$ac_exeext conftest.$ac_ext
23651LIBS=$ac_check_lib_save_LIBS
23652fi
23653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
23654$as_echo "$ac_cv_lib_posix_remove" >&6; }
23655if test "x$ac_cv_lib_posix_remove" = x""yes; then :
23656  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23657fi
23658
23659    fi
23660
23661    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23662    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
23663if test "x$ac_cv_func_shmat" = x""yes; then :
23664
23665fi
23666
23667    if test $ac_cv_func_shmat = no; then
23668      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
23669$as_echo_n "checking for shmat in -lipc... " >&6; }
23670if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
23671  $as_echo_n "(cached) " >&6
23672else
23673  ac_check_lib_save_LIBS=$LIBS
23674LIBS="-lipc  $LIBS"
23675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23676/* end confdefs.h.  */
23677
23678/* Override any GCC internal prototype to avoid an error.
23679   Use char because int might match the return type of a GCC
23680   builtin and then its argument prototype would still apply.  */
23681#ifdef __cplusplus
23682extern "C"
23683#endif
23684char shmat ();
23685int
23686main ()
23687{
23688return shmat ();
23689  ;
23690  return 0;
23691}
23692_ACEOF
23693if ac_fn_c_try_link "$LINENO"; then :
23694  ac_cv_lib_ipc_shmat=yes
23695else
23696  ac_cv_lib_ipc_shmat=no
23697fi
23698rm -f core conftest.err conftest.$ac_objext \
23699    conftest$ac_exeext conftest.$ac_ext
23700LIBS=$ac_check_lib_save_LIBS
23701fi
23702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
23703$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
23704if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
23705  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23706fi
23707
23708    fi
23709  fi
23710
23711  # Check for libraries that X11R6 Xt/Xaw programs need.
23712  ac_save_LDFLAGS=$LDFLAGS
23713  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23714  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23715  # check for ICE first), but we must link in the order -lSM -lICE or
23716  # we get undefined symbols.  So assume we have SM if we have ICE.
23717  # These have to be linked with before -lX11, unlike the other
23718  # libraries we check for below, so use a different variable.
23719  # John Interrante, Karl Berry
23720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
23721$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
23722if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
23723  $as_echo_n "(cached) " >&6
23724else
23725  ac_check_lib_save_LIBS=$LIBS
23726LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728/* end confdefs.h.  */
23729
23730/* Override any GCC internal prototype to avoid an error.
23731   Use char because int might match the return type of a GCC
23732   builtin and then its argument prototype would still apply.  */
23733#ifdef __cplusplus
23734extern "C"
23735#endif
23736char IceConnectionNumber ();
23737int
23738main ()
23739{
23740return IceConnectionNumber ();
23741  ;
23742  return 0;
23743}
23744_ACEOF
23745if ac_fn_c_try_link "$LINENO"; then :
23746  ac_cv_lib_ICE_IceConnectionNumber=yes
23747else
23748  ac_cv_lib_ICE_IceConnectionNumber=no
23749fi
23750rm -f core conftest.err conftest.$ac_objext \
23751    conftest$ac_exeext conftest.$ac_ext
23752LIBS=$ac_check_lib_save_LIBS
23753fi
23754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23755$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
23756if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
23757  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23758fi
23759
23760  LDFLAGS=$ac_save_LDFLAGS
23761
23762fi
23763
23764
23765# try to figure out if we need any additional ld flags, like -R
23766# and yes, the autoconf X test is utterly broken
23767if test "$no_x" != yes; then
23768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special X linker flags" >&5
23769$as_echo_n "checking for special X linker flags... " >&6; }
23770if test "${krb_cv_sys_x_libs_rpath+set}" = set; then :
23771  $as_echo_n "(cached) " >&6
23772else
23773
23774	ac_save_libs="$LIBS"
23775	ac_save_cflags="$CFLAGS"
23776	CFLAGS="$CFLAGS $X_CFLAGS"
23777	krb_cv_sys_x_libs_rpath=""
23778	krb_cv_sys_x_libs=""
23779	for rflag in "" "-R" "-R " "-rpath "; do
23780		if test "$rflag" = ""; then
23781			foo="$X_LIBS"
23782		else
23783			foo=""
23784			for flag in $X_LIBS; do
23785			case $flag in
23786			-L*)
23787				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
23788				;;
23789			*)
23790				foo="$foo $flag"
23791				;;
23792			esac
23793			done
23794		fi
23795		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
23796		if test "$cross_compiling" = yes; then :
23797  krb_cv_sys_x_libs_rpath="" ; krb_cv_sys_x_libs="" ; break
23798else
23799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23800/* end confdefs.h.  */
23801
23802		#include <X11/Xlib.h>
23803		foo(void)
23804		{
23805		XOpenDisplay(NULL);
23806		}
23807		main(int argc, char **argv)
23808		{
23809		return 0;
23810		}
23811
23812_ACEOF
23813if ac_fn_c_try_run "$LINENO"; then :
23814  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
23815else
23816  :
23817fi
23818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23819  conftest.$ac_objext conftest.beam conftest.$ac_ext
23820fi
23821
23822	done
23823	LIBS="$ac_save_libs"
23824	CFLAGS="$ac_save_cflags"
23825
23826fi
23827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_sys_x_libs_rpath" >&5
23828$as_echo "$krb_cv_sys_x_libs_rpath" >&6; }
23829	X_LIBS="$krb_cv_sys_x_libs"
23830fi
23831
23832
23833 if test "$no_x" != yes; then
23834  HAVE_X_TRUE=
23835  HAVE_X_FALSE='#'
23836else
23837  HAVE_X_TRUE='#'
23838  HAVE_X_FALSE=
23839fi
23840
23841
23842
23843save_CFLAGS="$CFLAGS"
23844CFLAGS="$X_CFLAGS $CFLAGS"
23845save_LIBS="$LIBS"
23846LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
23847save_LDFLAGS="$LDFLAGS"
23848LDFLAGS="$LDFLAGS $X_LIBS"
23849
23850## check for XauWriteAuth first, so we detect the case where
23851## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this
23852## could be done by checking for XauReadAuth in -lXau first, but this
23853## breaks in IRIX 6.5
23854
23855
23856
23857
23858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauWriteAuth" >&5
23859$as_echo_n "checking for XauWriteAuth... " >&6; }
23860if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then :
23861  $as_echo_n "(cached) " >&6
23862else
23863
23864if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
23865	ac_save_LIBS="$LIBS"
23866	for ac_lib in "" X11 Xau; do
23867		case "$ac_lib" in
23868		"") ;;
23869		yes) ac_lib="" ;;
23870		no) continue ;;
23871		-l*) ;;
23872		*) ac_lib="-l$ac_lib" ;;
23873		esac
23874		LIBS=" $ac_lib  $ac_save_LIBS"
23875		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23876/* end confdefs.h.  */
23877#include <X11/Xauth.h>
23878int
23879main ()
23880{
23881XauWriteAuth(0,0)
23882  ;
23883  return 0;
23884}
23885_ACEOF
23886if ac_fn_c_try_link "$LINENO"; then :
23887  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
23888fi
23889rm -f core conftest.err conftest.$ac_objext \
23890    conftest$ac_exeext conftest.$ac_ext
23891	done
23892	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
23893	LIBS="$ac_save_LIBS"
23894fi
23895
23896fi
23897
23898
23899eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
23900
23901if false; then
23902	for ac_func in XauWriteAuth
23903do :
23904  ac_fn_c_check_func "$LINENO" "XauWriteAuth" "ac_cv_func_XauWriteAuth"
23905if test "x$ac_cv_func_XauWriteAuth" = x""yes; then :
23906  cat >>confdefs.h <<_ACEOF
23907#define HAVE_XAUWRITEAUTH 1
23908_ACEOF
23909
23910fi
23911done
23912
23913fi
23914# XauWriteAuth
23915eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23916eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23917eval "LIB_XauWriteAuth=$ac_res"
23918
23919case "$ac_res" in
23920	yes)
23921	eval "ac_cv_func_XauWriteAuth=yes"
23922	eval "LIB_XauWriteAuth="
23923	cat >>confdefs.h <<_ACEOF
23924#define $ac_tr_func 1
23925_ACEOF
23926
23927	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23928$as_echo "yes" >&6; }
23929	;;
23930	no)
23931	eval "ac_cv_func_XauWriteAuth=no"
23932	eval "LIB_XauWriteAuth="
23933	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23934$as_echo "no" >&6; }
23935	;;
23936	*)
23937	eval "ac_cv_func_XauWriteAuth=yes"
23938	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23939	cat >>confdefs.h <<_ACEOF
23940#define $ac_tr_func 1
23941_ACEOF
23942
23943	cat >>confdefs.h <<_ACEOF
23944#define $ac_tr_lib 1
23945_ACEOF
23946
23947	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
23948$as_echo "yes, in $ac_res" >&6; }
23949	;;
23950esac
23951
23952
23953ac_xxx="$LIBS"
23954LIBS="$LIB_XauWriteAuth $LIBS"
23955
23956
23957
23958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauReadAuth" >&5
23959$as_echo_n "checking for XauReadAuth... " >&6; }
23960if test "${ac_cv_funclib_XauReadAuth+set}" = set; then :
23961  $as_echo_n "(cached) " >&6
23962else
23963
23964if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
23965	ac_save_LIBS="$LIBS"
23966	for ac_lib in "" X11 Xau; do
23967		case "$ac_lib" in
23968		"") ;;
23969		yes) ac_lib="" ;;
23970		no) continue ;;
23971		-l*) ;;
23972		*) ac_lib="-l$ac_lib" ;;
23973		esac
23974		LIBS=" $ac_lib  $ac_save_LIBS"
23975		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23976/* end confdefs.h.  */
23977#include <X11/Xauth.h>
23978int
23979main ()
23980{
23981XauReadAuth(0)
23982  ;
23983  return 0;
23984}
23985_ACEOF
23986if ac_fn_c_try_link "$LINENO"; then :
23987  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
23988fi
23989rm -f core conftest.err conftest.$ac_objext \
23990    conftest$ac_exeext conftest.$ac_ext
23991	done
23992	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
23993	LIBS="$ac_save_LIBS"
23994fi
23995
23996fi
23997
23998
23999eval "ac_res=\$ac_cv_funclib_XauReadAuth"
24000
24001if false; then
24002	for ac_func in XauReadAuth
24003do :
24004  ac_fn_c_check_func "$LINENO" "XauReadAuth" "ac_cv_func_XauReadAuth"
24005if test "x$ac_cv_func_XauReadAuth" = x""yes; then :
24006  cat >>confdefs.h <<_ACEOF
24007#define HAVE_XAUREADAUTH 1
24008_ACEOF
24009
24010fi
24011done
24012
24013fi
24014# XauReadAuth
24015eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24016eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24017eval "LIB_XauReadAuth=$ac_res"
24018
24019case "$ac_res" in
24020	yes)
24021	eval "ac_cv_func_XauReadAuth=yes"
24022	eval "LIB_XauReadAuth="
24023	cat >>confdefs.h <<_ACEOF
24024#define $ac_tr_func 1
24025_ACEOF
24026
24027	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24028$as_echo "yes" >&6; }
24029	;;
24030	no)
24031	eval "ac_cv_func_XauReadAuth=no"
24032	eval "LIB_XauReadAuth="
24033	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24034$as_echo "no" >&6; }
24035	;;
24036	*)
24037	eval "ac_cv_func_XauReadAuth=yes"
24038	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
24039	cat >>confdefs.h <<_ACEOF
24040#define $ac_tr_func 1
24041_ACEOF
24042
24043	cat >>confdefs.h <<_ACEOF
24044#define $ac_tr_lib 1
24045_ACEOF
24046
24047	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
24048$as_echo "yes, in $ac_res" >&6; }
24049	;;
24050esac
24051
24052
24053LIBS="$LIB_XauReadAauth $LIBS"
24054
24055
24056
24057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauFileName" >&5
24058$as_echo_n "checking for XauFileName... " >&6; }
24059if test "${ac_cv_funclib_XauFileName+set}" = set; then :
24060  $as_echo_n "(cached) " >&6
24061else
24062
24063if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
24064	ac_save_LIBS="$LIBS"
24065	for ac_lib in "" X11 Xau; do
24066		case "$ac_lib" in
24067		"") ;;
24068		yes) ac_lib="" ;;
24069		no) continue ;;
24070		-l*) ;;
24071		*) ac_lib="-l$ac_lib" ;;
24072		esac
24073		LIBS=" $ac_lib  $ac_save_LIBS"
24074		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24075/* end confdefs.h.  */
24076#include <X11/Xauth.h>
24077int
24078main ()
24079{
24080XauFileName()
24081  ;
24082  return 0;
24083}
24084_ACEOF
24085if ac_fn_c_try_link "$LINENO"; then :
24086  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
24087fi
24088rm -f core conftest.err conftest.$ac_objext \
24089    conftest$ac_exeext conftest.$ac_ext
24090	done
24091	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
24092	LIBS="$ac_save_LIBS"
24093fi
24094
24095fi
24096
24097
24098eval "ac_res=\$ac_cv_funclib_XauFileName"
24099
24100if false; then
24101	for ac_func in XauFileName
24102do :
24103  ac_fn_c_check_func "$LINENO" "XauFileName" "ac_cv_func_XauFileName"
24104if test "x$ac_cv_func_XauFileName" = x""yes; then :
24105  cat >>confdefs.h <<_ACEOF
24106#define HAVE_XAUFILENAME 1
24107_ACEOF
24108
24109fi
24110done
24111
24112fi
24113# XauFileName
24114eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24115eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24116eval "LIB_XauFileName=$ac_res"
24117
24118case "$ac_res" in
24119	yes)
24120	eval "ac_cv_func_XauFileName=yes"
24121	eval "LIB_XauFileName="
24122	cat >>confdefs.h <<_ACEOF
24123#define $ac_tr_func 1
24124_ACEOF
24125
24126	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24127$as_echo "yes" >&6; }
24128	;;
24129	no)
24130	eval "ac_cv_func_XauFileName=no"
24131	eval "LIB_XauFileName="
24132	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24133$as_echo "no" >&6; }
24134	;;
24135	*)
24136	eval "ac_cv_func_XauFileName=yes"
24137	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
24138	cat >>confdefs.h <<_ACEOF
24139#define $ac_tr_func 1
24140_ACEOF
24141
24142	cat >>confdefs.h <<_ACEOF
24143#define $ac_tr_lib 1
24144_ACEOF
24145
24146	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
24147$as_echo "yes, in $ac_res" >&6; }
24148	;;
24149esac
24150
24151
24152LIBS="$ac_xxx"
24153
24154## set LIB_XauReadAuth to union of these tests, since this is what the
24155## Makefiles are using
24156case "$ac_cv_funclib_XauWriteAuth" in
24157yes)	;;
24158no)	;;
24159*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
24160		if test "$ac_cv_funclib_XauFileName" = yes; then
24161			LIB_XauReadAuth="$LIB_XauWriteAuth"
24162		else
24163			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
24164		fi
24165	else
24166		if test "$ac_cv_funclib_XauFileName" = yes; then
24167			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
24168		else
24169			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
24170		fi
24171	fi
24172	;;
24173esac
24174
24175if test "$AUTOMAKE" != ""; then
24176	 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
24177  NEED_WRITEAUTH_TRUE=
24178  NEED_WRITEAUTH_FALSE='#'
24179else
24180  NEED_WRITEAUTH_TRUE='#'
24181  NEED_WRITEAUTH_FALSE=
24182fi
24183
24184else
24185
24186
24187	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
24188		NEED_WRITEAUTH_TRUE=
24189		NEED_WRITEAUTH_FALSE='#'
24190	else
24191		NEED_WRITEAUTH_TRUE='#'
24192		NEED_WRITEAUTH_FALSE=
24193	fi
24194fi
24195CFLAGS=$save_CFLAGS
24196LIBS=$save_LIBS
24197LDFLAGS=$save_LDFLAGS
24198
24199
24200
24201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
24202$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
24203if test "${ac_cv_c_const+set}" = set; then :
24204  $as_echo_n "(cached) " >&6
24205else
24206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24207/* end confdefs.h.  */
24208
24209int
24210main ()
24211{
24212/* FIXME: Include the comments suggested by Paul. */
24213#ifndef __cplusplus
24214  /* Ultrix mips cc rejects this.  */
24215  typedef int charset[2];
24216  const charset cs;
24217  /* SunOS 4.1.1 cc rejects this.  */
24218  char const *const *pcpcc;
24219  char **ppc;
24220  /* NEC SVR4.0.2 mips cc rejects this.  */
24221  struct point {int x, y;};
24222  static struct point const zero = {0,0};
24223  /* AIX XL C 1.02.0.0 rejects this.
24224     It does not let you subtract one const X* pointer from another in
24225     an arm of an if-expression whose if-part is not a constant
24226     expression */
24227  const char *g = "string";
24228  pcpcc = &g + (g ? g-g : 0);
24229  /* HPUX 7.0 cc rejects these. */
24230  ++pcpcc;
24231  ppc = (char**) pcpcc;
24232  pcpcc = (char const *const *) ppc;
24233  { /* SCO 3.2v4 cc rejects this.  */
24234    char *t;
24235    char const *s = 0 ? (char *) 0 : (char const *) 0;
24236
24237    *t++ = 0;
24238    if (s) return 0;
24239  }
24240  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24241    int x[] = {25, 17};
24242    const int *foo = &x[0];
24243    ++foo;
24244  }
24245  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24246    typedef const int *iptr;
24247    iptr p = 0;
24248    ++p;
24249  }
24250  { /* AIX XL C 1.02.0.0 rejects this saying
24251       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24252    struct s { int j; const int *ap[3]; };
24253    struct s *b; b->j = 5;
24254  }
24255  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24256    const int foo = 10;
24257    if (!foo) return 0;
24258  }
24259  return !cs[0] && !zero.x;
24260#endif
24261
24262  ;
24263  return 0;
24264}
24265_ACEOF
24266if ac_fn_c_try_compile "$LINENO"; then :
24267  ac_cv_c_const=yes
24268else
24269  ac_cv_c_const=no
24270fi
24271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24272fi
24273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24274$as_echo "$ac_cv_c_const" >&6; }
24275if test $ac_cv_c_const = no; then
24276
24277$as_echo "#define const /**/" >>confdefs.h
24278
24279fi
24280
24281ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24282if test "x$ac_cv_type_off_t" = x""yes; then :
24283
24284else
24285
24286cat >>confdefs.h <<_ACEOF
24287#define off_t long int
24288_ACEOF
24289
24290fi
24291
24292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
24293$as_echo_n "checking for mode_t... " >&6; }
24294if test "${ac_cv_type_mode_t+set}" = set; then :
24295  $as_echo_n "(cached) " >&6
24296else
24297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24298/* end confdefs.h.  */
24299#include <sys/types.h>
24300#if STDC_HEADERS
24301#include <stdlib.h>
24302#include <stddef.h>
24303#endif
24304
24305_ACEOF
24306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24307  $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
24308  ac_cv_type_mode_t=yes
24309else
24310  ac_cv_type_mode_t=no
24311fi
24312rm -f conftest*
24313
24314fi
24315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mode_t" >&5
24316$as_echo "$ac_cv_type_mode_t" >&6; }
24317if test $ac_cv_type_mode_t = no; then
24318
24319$as_echo "#define mode_t unsigned short" >>confdefs.h
24320
24321fi
24322
24323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
24324$as_echo_n "checking for sig_atomic_t... " >&6; }
24325if test "${ac_cv_type_sig_atomic_t+set}" = set; then :
24326  $as_echo_n "(cached) " >&6
24327else
24328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24329/* end confdefs.h.  */
24330#include <sys/types.h>
24331#if STDC_HEADERS
24332#include <stdlib.h>
24333#include <stddef.h>
24334#endif
24335#include <signal.h>
24336_ACEOF
24337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24338  $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
24339  ac_cv_type_sig_atomic_t=yes
24340else
24341  ac_cv_type_sig_atomic_t=no
24342fi
24343rm -f conftest*
24344
24345fi
24346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
24347$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
24348if test $ac_cv_type_sig_atomic_t = no; then
24349
24350$as_echo "#define sig_atomic_t int" >>confdefs.h
24351
24352fi
24353
24354
24355
24356cv=`echo "long long" | sed 'y%./+- %__p__%'`
24357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
24358$as_echo_n "checking for long long... " >&6; }
24359if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
24360  $as_echo_n "(cached) " >&6
24361else
24362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24363/* end confdefs.h.  */
24364
24365#include <sys/types.h>
24366#if STDC_HEADERS
24367#include <stdlib.h>
24368#include <stddef.h>
24369#endif
24370
24371int
24372main ()
24373{
24374long long foo;
24375  ;
24376  return 0;
24377}
24378_ACEOF
24379if ac_fn_c_try_compile "$LINENO"; then :
24380  eval "ac_cv_type_$cv=yes"
24381else
24382  eval "ac_cv_type_$cv=no"
24383fi
24384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24385fi
24386ac_foo=`eval echo \\$ac_cv_type_$cv`
24387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
24388$as_echo "$ac_foo" >&6; }
24389if test "$ac_foo" = yes; then
24390  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
24391if false; then
24392	ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
24393if test "x$ac_cv_type_long_long" = x""yes; then :
24394
24395cat >>confdefs.h <<_ACEOF
24396#define HAVE_LONG_LONG 1
24397_ACEOF
24398
24399
24400fi
24401
24402fi
24403
24404cat >>confdefs.h <<_ACEOF
24405#define $ac_tr_hdr 1
24406_ACEOF
24407
24408fi
24409
24410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
24411$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
24412if test "${ac_cv_header_time+set}" = set; then :
24413  $as_echo_n "(cached) " >&6
24414else
24415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24416/* end confdefs.h.  */
24417#include <sys/types.h>
24418#include <sys/time.h>
24419#include <time.h>
24420
24421int
24422main ()
24423{
24424if ((struct tm *) 0)
24425return 0;
24426  ;
24427  return 0;
24428}
24429_ACEOF
24430if ac_fn_c_try_compile "$LINENO"; then :
24431  ac_cv_header_time=yes
24432else
24433  ac_cv_header_time=no
24434fi
24435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24436fi
24437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
24438$as_echo "$ac_cv_header_time" >&6; }
24439if test $ac_cv_header_time = yes; then
24440
24441$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
24442
24443fi
24444
24445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
24446$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
24447if test "${ac_cv_struct_tm+set}" = set; then :
24448  $as_echo_n "(cached) " >&6
24449else
24450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24451/* end confdefs.h.  */
24452#include <sys/types.h>
24453#include <time.h>
24454
24455int
24456main ()
24457{
24458struct tm tm;
24459				     int *p = &tm.tm_sec;
24460				     return !p;
24461  ;
24462  return 0;
24463}
24464_ACEOF
24465if ac_fn_c_try_compile "$LINENO"; then :
24466  ac_cv_struct_tm=time.h
24467else
24468  ac_cv_struct_tm=sys/time.h
24469fi
24470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24471fi
24472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
24473$as_echo "$ac_cv_struct_tm" >&6; }
24474if test $ac_cv_struct_tm = sys/time.h; then
24475
24476$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
24477
24478fi
24479
24480
24481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24482$as_echo_n "checking for ANSI C header files... " >&6; }
24483if test "${ac_cv_header_stdc+set}" = set; then :
24484  $as_echo_n "(cached) " >&6
24485else
24486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24487/* end confdefs.h.  */
24488#include <stdlib.h>
24489#include <stdarg.h>
24490#include <string.h>
24491#include <float.h>
24492
24493int
24494main ()
24495{
24496
24497  ;
24498  return 0;
24499}
24500_ACEOF
24501if ac_fn_c_try_compile "$LINENO"; then :
24502  ac_cv_header_stdc=yes
24503else
24504  ac_cv_header_stdc=no
24505fi
24506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24507
24508if test $ac_cv_header_stdc = yes; then
24509  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24511/* end confdefs.h.  */
24512#include <string.h>
24513
24514_ACEOF
24515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24516  $EGREP "memchr" >/dev/null 2>&1; then :
24517
24518else
24519  ac_cv_header_stdc=no
24520fi
24521rm -f conftest*
24522
24523fi
24524
24525if test $ac_cv_header_stdc = yes; then
24526  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24528/* end confdefs.h.  */
24529#include <stdlib.h>
24530
24531_ACEOF
24532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24533  $EGREP "free" >/dev/null 2>&1; then :
24534
24535else
24536  ac_cv_header_stdc=no
24537fi
24538rm -f conftest*
24539
24540fi
24541
24542if test $ac_cv_header_stdc = yes; then
24543  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24544  if test "$cross_compiling" = yes; then :
24545  :
24546else
24547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24548/* end confdefs.h.  */
24549#include <ctype.h>
24550#include <stdlib.h>
24551#if ((' ' & 0x0FF) == 0x020)
24552# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24553# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24554#else
24555# define ISLOWER(c) \
24556		   (('a' <= (c) && (c) <= 'i') \
24557		     || ('j' <= (c) && (c) <= 'r') \
24558		     || ('s' <= (c) && (c) <= 'z'))
24559# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24560#endif
24561
24562#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24563int
24564main ()
24565{
24566  int i;
24567  for (i = 0; i < 256; i++)
24568    if (XOR (islower (i), ISLOWER (i))
24569	|| toupper (i) != TOUPPER (i))
24570      return 2;
24571  return 0;
24572}
24573_ACEOF
24574if ac_fn_c_try_run "$LINENO"; then :
24575
24576else
24577  ac_cv_header_stdc=no
24578fi
24579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24580  conftest.$ac_objext conftest.beam conftest.$ac_ext
24581fi
24582
24583fi
24584fi
24585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24586$as_echo "$ac_cv_header_stdc" >&6; }
24587if test $ac_cv_header_stdc = yes; then
24588
24589$as_echo "#define STDC_HEADERS 1" >>confdefs.h
24590
24591fi
24592
24593
24594for ac_header in \
24595	CommonCrypto/CommonDigest.h		\
24596	arpa/ftp.h				\
24597	arpa/telnet.h				\
24598	bind/bitypes.h				\
24599	bsdsetjmp.h				\
24600	curses.h				\
24601	dlfcn.h					\
24602	fnmatch.h				\
24603	inttypes.h				\
24604	io.h					\
24605	libutil.h				\
24606	limits.h				\
24607	maillock.h				\
24608	netgroup.h				\
24609	netinet/in6_machtypes.h			\
24610	pthread.h				\
24611	pty.h					\
24612	sac.h					\
24613	sgtty.h					\
24614	siad.h					\
24615	signal.h				\
24616	strings.h				\
24617	stropts.h				\
24618	sys/bitypes.h				\
24619	sys/category.h				\
24620	sys/file.h				\
24621	sys/filio.h				\
24622	sys/ioccom.h				\
24623	sys/mman.h				\
24624	sys/param.h				\
24625	sys/pty.h				\
24626	sys/ptyio.h				\
24627	sys/select.h				\
24628	sys/socket.h				\
24629	sys/str_tty.h				\
24630	sys/stream.h				\
24631	sys/stropts.h				\
24632	sys/syscall.h				\
24633	sys/termio.h				\
24634	sys/timeb.h				\
24635	sys/times.h				\
24636	sys/types.h				\
24637	sys/un.h				\
24638	locale.h				\
24639	termcap.h				\
24640	termio.h				\
24641	termios.h				\
24642	time.h					\
24643	tmpdir.h				\
24644	udb.h					\
24645	util.h					\
24646	utmp.h					\
24647	utmpx.h					\
24648
24649do :
24650  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24651ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24652eval as_val=\$$as_ac_Header
24653   if test "x$as_val" = x""yes; then :
24654  cat >>confdefs.h <<_ACEOF
24655#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24656_ACEOF
24657
24658fi
24659
24660done
24661
24662
24663for ac_header in term.h
24664do :
24665  ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
24666if test "x$ac_cv_header_term_h" = x""yes; then :
24667  cat >>confdefs.h <<_ACEOF
24668#define HAVE_TERM_H 1
24669_ACEOF
24670
24671fi
24672
24673done
24674
24675
24676for ac_header in asl.h
24677do :
24678  ac_fn_c_check_header_compile "$LINENO" "asl.h" "ac_cv_header_asl_h" "
24679#include <asl.h>
24680#ifndef ASL_STRING_EMERG
24681#error ASL_STRING_EMERG missing
24682#endif
24683"
24684if test "x$ac_cv_header_asl_h" = x""yes; then :
24685  cat >>confdefs.h <<_ACEOF
24686#define HAVE_ASL_H 1
24687_ACEOF
24688
24689fi
24690
24691done
24692
24693
24694for ac_header in net/if.h
24695do :
24696  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
24697#if HAVE_SYS_SOCKET_H
24698#include <sys/socket.h>
24699#endif
24700"
24701if test "x$ac_cv_header_net_if_h" = x""yes; then :
24702  cat >>confdefs.h <<_ACEOF
24703#define HAVE_NET_IF_H 1
24704_ACEOF
24705
24706fi
24707
24708done
24709
24710
24711for ac_header in sys/ptyvar.h
24712do :
24713  ac_fn_c_check_header_compile "$LINENO" "sys/ptyvar.h" "ac_cv_header_sys_ptyvar_h" "$ac_includes_default
24714#if HAVE_SYS_TTY_H
24715#include <sys/tty.h>
24716#endif
24717"
24718if test "x$ac_cv_header_sys_ptyvar_h" = x""yes; then :
24719  cat >>confdefs.h <<_ACEOF
24720#define HAVE_SYS_PTYVAR_H 1
24721_ACEOF
24722
24723fi
24724
24725done
24726
24727
24728for ac_header in sys/strtty.h
24729do :
24730  ac_fn_c_check_header_compile "$LINENO" "sys/strtty.h" "ac_cv_header_sys_strtty_h" "$ac_includes_default
24731#if HAVE_TERMIOS_H
24732#include <termios.h>
24733#endif
24734#if HAVE_SYS_STREAM_H
24735#include <sys/stream.h>
24736#endif
24737"
24738if test "x$ac_cv_header_sys_strtty_h" = x""yes; then :
24739  cat >>confdefs.h <<_ACEOF
24740#define HAVE_SYS_STRTTY_H 1
24741_ACEOF
24742
24743fi
24744
24745done
24746
24747
24748for ac_header in sys/ucred.h
24749do :
24750  ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
24751#if HAVE_SYS_TYPES_H
24752#include <sys/types.h>
24753#endif
24754#if HAVE_SYS_PARAM_H
24755#include <sys/param.h>
24756#endif
24757"
24758if test "x$ac_cv_header_sys_ucred_h" = x""yes; then :
24759  cat >>confdefs.h <<_ACEOF
24760#define HAVE_SYS_UCRED_H 1
24761_ACEOF
24762
24763fi
24764
24765done
24766
24767
24768for ac_header in security/pam_modules.h
24769do :
24770  ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "$ac_includes_default
24771#include <security/pam_appl.h>
24772
24773"
24774if test "x$ac_cv_header_security_pam_modules_h" = x""yes; then :
24775  cat >>confdefs.h <<_ACEOF
24776#define HAVE_SECURITY_PAM_MODULES_H 1
24777_ACEOF
24778
24779fi
24780
24781done
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logwtmp" >&5
24793$as_echo_n "checking for logwtmp... " >&6; }
24794if test "${ac_cv_funclib_logwtmp+set}" = set; then :
24795  $as_echo_n "(cached) " >&6
24796else
24797
24798if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
24799	ac_save_LIBS="$LIBS"
24800	for ac_lib in "" util; do
24801		case "$ac_lib" in
24802		"") ;;
24803		yes) ac_lib="" ;;
24804		no) continue ;;
24805		-l*) ;;
24806		*) ac_lib="-l$ac_lib" ;;
24807		esac
24808		LIBS=" $ac_lib  $ac_save_LIBS"
24809		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24810/* end confdefs.h.  */
24811
24812#ifdef HAVE_UTIL_H
24813#include <util.h>
24814#endif
24815
24816int
24817main ()
24818{
24819logwtmp(0,0,0)
24820  ;
24821  return 0;
24822}
24823_ACEOF
24824if ac_fn_c_try_link "$LINENO"; then :
24825  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
24826fi
24827rm -f core conftest.err conftest.$ac_objext \
24828    conftest$ac_exeext conftest.$ac_ext
24829	done
24830	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
24831	LIBS="$ac_save_LIBS"
24832fi
24833
24834fi
24835
24836
24837eval "ac_res=\$ac_cv_funclib_logwtmp"
24838
24839if false; then
24840	for ac_func in logwtmp
24841do :
24842  ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp"
24843if test "x$ac_cv_func_logwtmp" = x""yes; then :
24844  cat >>confdefs.h <<_ACEOF
24845#define HAVE_LOGWTMP 1
24846_ACEOF
24847
24848fi
24849done
24850
24851fi
24852# logwtmp
24853eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24854eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24855eval "LIB_logwtmp=$ac_res"
24856
24857case "$ac_res" in
24858	yes)
24859	eval "ac_cv_func_logwtmp=yes"
24860	eval "LIB_logwtmp="
24861	cat >>confdefs.h <<_ACEOF
24862#define $ac_tr_func 1
24863_ACEOF
24864
24865	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24866$as_echo "yes" >&6; }
24867	;;
24868	no)
24869	eval "ac_cv_func_logwtmp=no"
24870	eval "LIB_logwtmp="
24871	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24872$as_echo "no" >&6; }
24873	;;
24874	*)
24875	eval "ac_cv_func_logwtmp=yes"
24876	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
24877	cat >>confdefs.h <<_ACEOF
24878#define $ac_tr_func 1
24879_ACEOF
24880
24881	cat >>confdefs.h <<_ACEOF
24882#define $ac_tr_lib 1
24883_ACEOF
24884
24885	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
24886$as_echo "yes, in $ac_res" >&6; }
24887	;;
24888esac
24889
24890
24891
24892
24893
24894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logout" >&5
24895$as_echo_n "checking for logout... " >&6; }
24896if test "${ac_cv_funclib_logout+set}" = set; then :
24897  $as_echo_n "(cached) " >&6
24898else
24899
24900if eval "test \"\$ac_cv_func_logout\" != yes" ; then
24901	ac_save_LIBS="$LIBS"
24902	for ac_lib in "" util; do
24903		case "$ac_lib" in
24904		"") ;;
24905		yes) ac_lib="" ;;
24906		no) continue ;;
24907		-l*) ;;
24908		*) ac_lib="-l$ac_lib" ;;
24909		esac
24910		LIBS=" $ac_lib  $ac_save_LIBS"
24911		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24912/* end confdefs.h.  */
24913
24914#ifdef HAVE_UTIL_H
24915#include <util.h>
24916#endif
24917
24918int
24919main ()
24920{
24921logout(0)
24922  ;
24923  return 0;
24924}
24925_ACEOF
24926if ac_fn_c_try_link "$LINENO"; then :
24927  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
24928fi
24929rm -f core conftest.err conftest.$ac_objext \
24930    conftest$ac_exeext conftest.$ac_ext
24931	done
24932	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
24933	LIBS="$ac_save_LIBS"
24934fi
24935
24936fi
24937
24938
24939eval "ac_res=\$ac_cv_funclib_logout"
24940
24941if false; then
24942	for ac_func in logout
24943do :
24944  ac_fn_c_check_func "$LINENO" "logout" "ac_cv_func_logout"
24945if test "x$ac_cv_func_logout" = x""yes; then :
24946  cat >>confdefs.h <<_ACEOF
24947#define HAVE_LOGOUT 1
24948_ACEOF
24949
24950fi
24951done
24952
24953fi
24954# logout
24955eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24956eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24957eval "LIB_logout=$ac_res"
24958
24959case "$ac_res" in
24960	yes)
24961	eval "ac_cv_func_logout=yes"
24962	eval "LIB_logout="
24963	cat >>confdefs.h <<_ACEOF
24964#define $ac_tr_func 1
24965_ACEOF
24966
24967	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24968$as_echo "yes" >&6; }
24969	;;
24970	no)
24971	eval "ac_cv_func_logout=no"
24972	eval "LIB_logout="
24973	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24974$as_echo "no" >&6; }
24975	;;
24976	*)
24977	eval "ac_cv_func_logout=yes"
24978	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
24979	cat >>confdefs.h <<_ACEOF
24980#define $ac_tr_func 1
24981_ACEOF
24982
24983	cat >>confdefs.h <<_ACEOF
24984#define $ac_tr_lib 1
24985_ACEOF
24986
24987	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
24988$as_echo "yes, in $ac_res" >&6; }
24989	;;
24990esac
24991
24992
24993
24994
24995
24996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty" >&5
24997$as_echo_n "checking for openpty... " >&6; }
24998if test "${ac_cv_funclib_openpty+set}" = set; then :
24999  $as_echo_n "(cached) " >&6
25000else
25001
25002if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
25003	ac_save_LIBS="$LIBS"
25004	for ac_lib in "" util; do
25005		case "$ac_lib" in
25006		"") ;;
25007		yes) ac_lib="" ;;
25008		no) continue ;;
25009		-l*) ;;
25010		*) ac_lib="-l$ac_lib" ;;
25011		esac
25012		LIBS=" $ac_lib  $ac_save_LIBS"
25013		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25014/* end confdefs.h.  */
25015
25016#ifdef HAVE_UTIL_H
25017#include <util.h>
25018#endif
25019
25020int
25021main ()
25022{
25023openpty(0,0,0,0,0)
25024  ;
25025  return 0;
25026}
25027_ACEOF
25028if ac_fn_c_try_link "$LINENO"; then :
25029  eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
25030fi
25031rm -f core conftest.err conftest.$ac_objext \
25032    conftest$ac_exeext conftest.$ac_ext
25033	done
25034	eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
25035	LIBS="$ac_save_LIBS"
25036fi
25037
25038fi
25039
25040
25041eval "ac_res=\$ac_cv_funclib_openpty"
25042
25043if false; then
25044	for ac_func in openpty
25045do :
25046  ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
25047if test "x$ac_cv_func_openpty" = x""yes; then :
25048  cat >>confdefs.h <<_ACEOF
25049#define HAVE_OPENPTY 1
25050_ACEOF
25051
25052fi
25053done
25054
25055fi
25056# openpty
25057eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25058eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25059eval "LIB_openpty=$ac_res"
25060
25061case "$ac_res" in
25062	yes)
25063	eval "ac_cv_func_openpty=yes"
25064	eval "LIB_openpty="
25065	cat >>confdefs.h <<_ACEOF
25066#define $ac_tr_func 1
25067_ACEOF
25068
25069	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25070$as_echo "yes" >&6; }
25071	;;
25072	no)
25073	eval "ac_cv_func_openpty=no"
25074	eval "LIB_openpty="
25075	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25076$as_echo "no" >&6; }
25077	;;
25078	*)
25079	eval "ac_cv_func_openpty=yes"
25080	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25081	cat >>confdefs.h <<_ACEOF
25082#define $ac_tr_func 1
25083_ACEOF
25084
25085	cat >>confdefs.h <<_ACEOF
25086#define $ac_tr_lib 1
25087_ACEOF
25088
25089	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
25090$as_echo "yes, in $ac_res" >&6; }
25091	;;
25092esac
25093
25094
25095
25096
25097
25098
25099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent" >&5
25100$as_echo_n "checking for tgetent... " >&6; }
25101if test "${ac_cv_funclib_tgetent+set}" = set; then :
25102  $as_echo_n "(cached) " >&6
25103else
25104
25105if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
25106	ac_save_LIBS="$LIBS"
25107	for ac_lib in "" termcap ncurses curses; do
25108		case "$ac_lib" in
25109		"") ;;
25110		yes) ac_lib="" ;;
25111		no) continue ;;
25112		-l*) ;;
25113		*) ac_lib="-l$ac_lib" ;;
25114		esac
25115		LIBS=" $ac_lib  $ac_save_LIBS"
25116		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25117/* end confdefs.h.  */
25118
25119#ifdef HAVE_TERMCAP_H
25120#include <termcap.h>
25121#endif
25122#ifdef HAVE_CURSES_H
25123#include <curses.h>
25124#endif
25125
25126int
25127main ()
25128{
25129tgetent(0,0)
25130  ;
25131  return 0;
25132}
25133_ACEOF
25134if ac_fn_c_try_link "$LINENO"; then :
25135  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
25136fi
25137rm -f core conftest.err conftest.$ac_objext \
25138    conftest$ac_exeext conftest.$ac_ext
25139	done
25140	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
25141	LIBS="$ac_save_LIBS"
25142fi
25143
25144fi
25145
25146
25147eval "ac_res=\$ac_cv_funclib_tgetent"
25148
25149if false; then
25150	for ac_func in tgetent
25151do :
25152  ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
25153if test "x$ac_cv_func_tgetent" = x""yes; then :
25154  cat >>confdefs.h <<_ACEOF
25155#define HAVE_TGETENT 1
25156_ACEOF
25157
25158fi
25159done
25160
25161fi
25162# tgetent
25163eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25164eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25165eval "LIB_tgetent=$ac_res"
25166
25167case "$ac_res" in
25168	yes)
25169	eval "ac_cv_func_tgetent=yes"
25170	eval "LIB_tgetent="
25171	cat >>confdefs.h <<_ACEOF
25172#define $ac_tr_func 1
25173_ACEOF
25174
25175	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25176$as_echo "yes" >&6; }
25177	;;
25178	no)
25179	eval "ac_cv_func_tgetent=no"
25180	eval "LIB_tgetent="
25181	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25182$as_echo "no" >&6; }
25183	;;
25184	*)
25185	eval "ac_cv_func_tgetent=yes"
25186	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25187	cat >>confdefs.h <<_ACEOF
25188#define $ac_tr_func 1
25189_ACEOF
25190
25191	cat >>confdefs.h <<_ACEOF
25192#define $ac_tr_lib 1
25193_ACEOF
25194
25195	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
25196$as_echo "yes, in $ac_res" >&6; }
25197	;;
25198esac
25199
25200
25201
25202
25203for ac_func in 				\
25204	_getpty					\
25205	_scrsize				\
25206	arc4random				\
25207	fcntl					\
25208	getpeereid				\
25209	getpeerucred				\
25210	grantpt					\
25211	mktime					\
25212	ptsname					\
25213	rand					\
25214	revoke					\
25215	select					\
25216	setitimer				\
25217	setpcred				\
25218	setpgid					\
25219	setproctitle				\
25220	setregid				\
25221	setresgid				\
25222	setresuid				\
25223	setreuid				\
25224	setsid					\
25225	setutent				\
25226	sigaction				\
25227	strstr					\
25228	ttyname					\
25229	ttyslot					\
25230	umask					\
25231	unlockpt				\
25232	vhangup					\
25233	yp_get_default_domain			\
25234
25235do :
25236  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25237ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25238eval as_val=\$$as_ac_var
25239   if test "x$as_val" = x""yes; then :
25240  cat >>confdefs.h <<_ACEOF
25241#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25242_ACEOF
25243
25244fi
25245done
25246
25247
25248
25249for ac_func in getpagesize
25250do :
25251  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
25252if test "x$ac_cv_func_getpagesize" = x""yes; then :
25253  cat >>confdefs.h <<_ACEOF
25254#define HAVE_GETPAGESIZE 1
25255_ACEOF
25256
25257fi
25258done
25259
25260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
25261$as_echo_n "checking for working mmap... " >&6; }
25262if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
25263  $as_echo_n "(cached) " >&6
25264else
25265  if test "$cross_compiling" = yes; then :
25266  ac_cv_func_mmap_fixed_mapped=no
25267else
25268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25269/* end confdefs.h.  */
25270$ac_includes_default
25271/* malloc might have been renamed as rpl_malloc. */
25272#undef malloc
25273
25274/* Thanks to Mike Haertel and Jim Avera for this test.
25275   Here is a matrix of mmap possibilities:
25276	mmap private not fixed
25277	mmap private fixed at somewhere currently unmapped
25278	mmap private fixed at somewhere already mapped
25279	mmap shared not fixed
25280	mmap shared fixed at somewhere currently unmapped
25281	mmap shared fixed at somewhere already mapped
25282   For private mappings, we should verify that changes cannot be read()
25283   back from the file, nor mmap's back from the file at a different
25284   address.  (There have been systems where private was not correctly
25285   implemented like the infamous i386 svr4.0, and systems where the
25286   VM page cache was not coherent with the file system buffer cache
25287   like early versions of FreeBSD and possibly contemporary NetBSD.)
25288   For shared mappings, we should conversely verify that changes get
25289   propagated back to all the places they're supposed to be.
25290
25291   Grep wants private fixed already mapped.
25292   The main things grep needs to know about mmap are:
25293   * does it exist and is it safe to write into the mmap'd area
25294   * how to use it (BSD variants)  */
25295
25296#include <fcntl.h>
25297#include <sys/mman.h>
25298
25299#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25300char *malloc ();
25301#endif
25302
25303/* This mess was copied from the GNU getpagesize.h.  */
25304#ifndef HAVE_GETPAGESIZE
25305# ifdef _SC_PAGESIZE
25306#  define getpagesize() sysconf(_SC_PAGESIZE)
25307# else /* no _SC_PAGESIZE */
25308#  ifdef HAVE_SYS_PARAM_H
25309#   include <sys/param.h>
25310#   ifdef EXEC_PAGESIZE
25311#    define getpagesize() EXEC_PAGESIZE
25312#   else /* no EXEC_PAGESIZE */
25313#    ifdef NBPG
25314#     define getpagesize() NBPG * CLSIZE
25315#     ifndef CLSIZE
25316#      define CLSIZE 1
25317#     endif /* no CLSIZE */
25318#    else /* no NBPG */
25319#     ifdef NBPC
25320#      define getpagesize() NBPC
25321#     else /* no NBPC */
25322#      ifdef PAGESIZE
25323#       define getpagesize() PAGESIZE
25324#      endif /* PAGESIZE */
25325#     endif /* no NBPC */
25326#    endif /* no NBPG */
25327#   endif /* no EXEC_PAGESIZE */
25328#  else /* no HAVE_SYS_PARAM_H */
25329#   define getpagesize() 8192	/* punt totally */
25330#  endif /* no HAVE_SYS_PARAM_H */
25331# endif /* no _SC_PAGESIZE */
25332
25333#endif /* no HAVE_GETPAGESIZE */
25334
25335int
25336main ()
25337{
25338  char *data, *data2, *data3;
25339  int i, pagesize;
25340  int fd, fd2;
25341
25342  pagesize = getpagesize ();
25343
25344  /* First, make a file with some known garbage in it. */
25345  data = (char *) malloc (pagesize);
25346  if (!data)
25347    return 1;
25348  for (i = 0; i < pagesize; ++i)
25349    *(data + i) = rand ();
25350  umask (0);
25351  fd = creat ("conftest.mmap", 0600);
25352  if (fd < 0)
25353    return 2;
25354  if (write (fd, data, pagesize) != pagesize)
25355    return 3;
25356  close (fd);
25357
25358  /* Next, check that the tail of a page is zero-filled.  File must have
25359     non-zero length, otherwise we risk SIGBUS for entire page.  */
25360  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
25361  if (fd2 < 0)
25362    return 4;
25363  data2 = "";
25364  if (write (fd2, data2, 1) != 1)
25365    return 5;
25366  data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
25367  if (data2 == MAP_FAILED)
25368    return 6;
25369  for (i = 0; i < pagesize; ++i)
25370    if (*(data2 + i))
25371      return 7;
25372  close (fd2);
25373  if (munmap (data2, pagesize))
25374    return 8;
25375
25376  /* Next, try to mmap the file at a fixed address which already has
25377     something else allocated at it.  If we can, also make sure that
25378     we see the same garbage.  */
25379  fd = open ("conftest.mmap", O_RDWR);
25380  if (fd < 0)
25381    return 9;
25382  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25383		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
25384    return 10;
25385  for (i = 0; i < pagesize; ++i)
25386    if (*(data + i) != *(data2 + i))
25387      return 11;
25388
25389  /* Finally, make sure that changes to the mapped area do not
25390     percolate back to the file as seen by read().  (This is a bug on
25391     some variants of i386 svr4.0.)  */
25392  for (i = 0; i < pagesize; ++i)
25393    *(data2 + i) = *(data2 + i) + 1;
25394  data3 = (char *) malloc (pagesize);
25395  if (!data3)
25396    return 12;
25397  if (read (fd, data3, pagesize) != pagesize)
25398    return 13;
25399  for (i = 0; i < pagesize; ++i)
25400    if (*(data + i) != *(data3 + i))
25401      return 14;
25402  close (fd);
25403  return 0;
25404}
25405_ACEOF
25406if ac_fn_c_try_run "$LINENO"; then :
25407  ac_cv_func_mmap_fixed_mapped=yes
25408else
25409  ac_cv_func_mmap_fixed_mapped=no
25410fi
25411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25412  conftest.$ac_objext conftest.beam conftest.$ac_ext
25413fi
25414
25415fi
25416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
25417$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25418if test $ac_cv_func_mmap_fixed_mapped = yes; then
25419
25420$as_echo "#define HAVE_MMAP 1" >>confdefs.h
25421
25422fi
25423rm -f conftest.mmap conftest.txt
25424
25425
25426
25427
25428for ac_header in capability.h sys/capability.h
25429do :
25430  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25431ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25432eval as_val=\$$as_ac_Header
25433   if test "x$as_val" = x""yes; then :
25434  cat >>confdefs.h <<_ACEOF
25435#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25436_ACEOF
25437
25438fi
25439
25440done
25441
25442
25443for ac_func in sgi_getcapabilitybyname cap_set_proc
25444do :
25445  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25446ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25447eval as_val=\$$as_ac_var
25448   if test "x$as_val" = x""yes; then :
25449  cat >>confdefs.h <<_ACEOF
25450#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25451_ACEOF
25452
25453fi
25454done
25455
25456
25457
25458
25459
25460
25461
25462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r" >&5
25463$as_echo_n "checking for getpwnam_r... " >&6; }
25464if test "${ac_cv_funclib_getpwnam_r+set}" = set; then :
25465  $as_echo_n "(cached) " >&6
25466else
25467
25468if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
25469	ac_save_LIBS="$LIBS"
25470	for ac_lib in "" c_r; do
25471		case "$ac_lib" in
25472		"") ;;
25473		yes) ac_lib="" ;;
25474		no) continue ;;
25475		-l*) ;;
25476		*) ac_lib="-l$ac_lib" ;;
25477		esac
25478		LIBS=" $ac_lib  $ac_save_LIBS"
25479		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25480/* end confdefs.h.  */
25481
25482int
25483main ()
25484{
25485getpwnam_r()
25486  ;
25487  return 0;
25488}
25489_ACEOF
25490if ac_fn_c_try_link "$LINENO"; then :
25491  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
25492fi
25493rm -f core conftest.err conftest.$ac_objext \
25494    conftest$ac_exeext conftest.$ac_ext
25495	done
25496	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
25497	LIBS="$ac_save_LIBS"
25498fi
25499
25500fi
25501
25502
25503eval "ac_res=\$ac_cv_funclib_getpwnam_r"
25504
25505if false; then
25506	for ac_func in getpwnam_r
25507do :
25508  ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
25509if test "x$ac_cv_func_getpwnam_r" = x""yes; then :
25510  cat >>confdefs.h <<_ACEOF
25511#define HAVE_GETPWNAM_R 1
25512_ACEOF
25513
25514fi
25515done
25516
25517fi
25518# getpwnam_r
25519eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25520eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25521eval "LIB_getpwnam_r=$ac_res"
25522
25523case "$ac_res" in
25524	yes)
25525	eval "ac_cv_func_getpwnam_r=yes"
25526	eval "LIB_getpwnam_r="
25527	cat >>confdefs.h <<_ACEOF
25528#define $ac_tr_func 1
25529_ACEOF
25530
25531	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25532$as_echo "yes" >&6; }
25533	;;
25534	no)
25535	eval "ac_cv_func_getpwnam_r=no"
25536	eval "LIB_getpwnam_r="
25537	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25538$as_echo "no" >&6; }
25539	;;
25540	*)
25541	eval "ac_cv_func_getpwnam_r=yes"
25542	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25543	cat >>confdefs.h <<_ACEOF
25544#define $ac_tr_func 1
25545_ACEOF
25546
25547	cat >>confdefs.h <<_ACEOF
25548#define $ac_tr_lib 1
25549_ACEOF
25550
25551	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
25552$as_echo "yes, in $ac_res" >&6; }
25553	;;
25554esac
25555
25556
25557if test "$ac_cv_func_getpwnam_r" = yes; then
25558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwnam_r is posix" >&5
25559$as_echo_n "checking if getpwnam_r is posix... " >&6; }
25560if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then :
25561  $as_echo_n "(cached) " >&6
25562else
25563  ac_libs="$LIBS"
25564	LIBS="$LIBS $LIB_getpwnam_r"
25565	if test "$cross_compiling" = yes; then :
25566  :
25567else
25568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25569/* end confdefs.h.  */
25570
25571#define _POSIX_PTHREAD_SEMANTICS
25572#include <pwd.h>
25573int main(int argc, char **argv)
25574{
25575	struct passwd pw, *pwd;
25576	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
25577}
25578
25579_ACEOF
25580if ac_fn_c_try_run "$LINENO"; then :
25581  ac_cv_func_getpwnam_r_posix=yes
25582else
25583  ac_cv_func_getpwnam_r_posix=no
25584fi
25585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25586  conftest.$ac_objext conftest.beam conftest.$ac_ext
25587fi
25588
25589LIBS="$ac_libs"
25590fi
25591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix" >&5
25592$as_echo "$ac_cv_func_getpwnam_r_posix" >&6; }
25593if test "$ac_cv_func_getpwnam_r_posix" = yes; then
25594
25595$as_echo "#define POSIX_GETPWNAM_R 1" >>confdefs.h
25596
25597fi
25598fi
25599
25600
25601if test "$enable_pthread_support" != no; then
25602   saved_LIBS="$LIBS"
25603   LIBS="$LIBS $PTHREADS_LIBS"
25604
25605
25606
25607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for door_create" >&5
25608$as_echo_n "checking for door_create... " >&6; }
25609if test "${ac_cv_funclib_door_create+set}" = set; then :
25610  $as_echo_n "(cached) " >&6
25611else
25612
25613if eval "test \"\$ac_cv_func_door_create\" != yes" ; then
25614	ac_save_LIBS="$LIBS"
25615	for ac_lib in "" door; do
25616		case "$ac_lib" in
25617		"") ;;
25618		yes) ac_lib="" ;;
25619		no) continue ;;
25620		-l*) ;;
25621		*) ac_lib="-l$ac_lib" ;;
25622		esac
25623		LIBS=" $ac_lib  $ac_save_LIBS"
25624		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25625/* end confdefs.h.  */
25626
25627int
25628main ()
25629{
25630door_create()
25631  ;
25632  return 0;
25633}
25634_ACEOF
25635if ac_fn_c_try_link "$LINENO"; then :
25636  eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break
25637fi
25638rm -f core conftest.err conftest.$ac_objext \
25639    conftest$ac_exeext conftest.$ac_ext
25640	done
25641	eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}"
25642	LIBS="$ac_save_LIBS"
25643fi
25644
25645fi
25646
25647
25648eval "ac_res=\$ac_cv_funclib_door_create"
25649
25650if false; then
25651	for ac_func in door_create
25652do :
25653  ac_fn_c_check_func "$LINENO" "door_create" "ac_cv_func_door_create"
25654if test "x$ac_cv_func_door_create" = x""yes; then :
25655  cat >>confdefs.h <<_ACEOF
25656#define HAVE_DOOR_CREATE 1
25657_ACEOF
25658
25659fi
25660done
25661
25662fi
25663# door_create
25664eval "ac_tr_func=HAVE_`echo door_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25665eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25666eval "LIB_door_create=$ac_res"
25667
25668case "$ac_res" in
25669	yes)
25670	eval "ac_cv_func_door_create=yes"
25671	eval "LIB_door_create="
25672	cat >>confdefs.h <<_ACEOF
25673#define $ac_tr_func 1
25674_ACEOF
25675
25676	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25677$as_echo "yes" >&6; }
25678	;;
25679	no)
25680	eval "ac_cv_func_door_create=no"
25681	eval "LIB_door_create="
25682	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25683$as_echo "no" >&6; }
25684	;;
25685	*)
25686	eval "ac_cv_func_door_create=yes"
25687	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25688	cat >>confdefs.h <<_ACEOF
25689#define $ac_tr_func 1
25690_ACEOF
25691
25692	cat >>confdefs.h <<_ACEOF
25693#define $ac_tr_lib 1
25694_ACEOF
25695
25696	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
25697$as_echo "yes, in $ac_res" >&6; }
25698	;;
25699esac
25700
25701
25702   LIBS="$saved_LIBS"
25703fi
25704
25705# Check whether --enable-kcm was given.
25706if test "${enable_kcm+set}" = set; then :
25707  enableval=$enable_kcm;
25708else
25709  enable_kcm=yes
25710fi
25711
25712
25713if test "$enable_kcm" = yes ; then
25714   if test  "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then
25715  	enable_kcm=no
25716   fi
25717fi
25718if test "$enable_kcm" = yes; then
25719
25720$as_echo "#define HAVE_KCM 1" >>confdefs.h
25721
25722fi
25723 if test "$enable_kcm" = yes; then
25724  KCM_TRUE=
25725  KCM_FALSE='#'
25726else
25727  KCM_TRUE='#'
25728  KCM_FALSE=
25729fi
25730
25731
25732
25733
25734for ac_func in getudbnam setlim
25735do :
25736  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25737ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25738eval as_val=\$$as_ac_var
25739   if test "x$as_val" = x""yes; then :
25740  cat >>confdefs.h <<_ACEOF
25741#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25742_ACEOF
25743
25744fi
25745done
25746
25747
25748
25749
25750
25751
25752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr in struct utmp" >&5
25753$as_echo_n "checking for ut_addr in struct utmp... " >&6; }
25754if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then :
25755  $as_echo_n "(cached) " >&6
25756else
25757
25758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25759/* end confdefs.h.  */
25760#include <utmp.h>
25761int
25762main ()
25763{
25764struct utmp x; memset(&x, 0, sizeof(x)); x.ut_addr
25765  ;
25766  return 0;
25767}
25768_ACEOF
25769if ac_fn_c_try_compile "$LINENO"; then :
25770  ac_cv_type_struct_utmp_ut_addr=yes
25771else
25772  ac_cv_type_struct_utmp_ut_addr=no
25773fi
25774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25775
25776fi
25777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_addr" >&5
25778$as_echo "$ac_cv_type_struct_utmp_ut_addr" >&6; }
25779if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
25780
25781
25782$as_echo "#define HAVE_STRUCT_UTMP_UT_ADDR 1" >>confdefs.h
25783
25784
25785fi
25786
25787
25788
25789
25790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmp" >&5
25791$as_echo_n "checking for ut_host in struct utmp... " >&6; }
25792if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then :
25793  $as_echo_n "(cached) " >&6
25794else
25795
25796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25797/* end confdefs.h.  */
25798#include <utmp.h>
25799int
25800main ()
25801{
25802struct utmp x; memset(&x, 0, sizeof(x)); x.ut_host
25803  ;
25804  return 0;
25805}
25806_ACEOF
25807if ac_fn_c_try_compile "$LINENO"; then :
25808  ac_cv_type_struct_utmp_ut_host=yes
25809else
25810  ac_cv_type_struct_utmp_ut_host=no
25811fi
25812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25813
25814fi
25815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_host" >&5
25816$as_echo "$ac_cv_type_struct_utmp_ut_host" >&6; }
25817if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
25818
25819
25820$as_echo "#define HAVE_STRUCT_UTMP_UT_HOST 1" >>confdefs.h
25821
25822
25823fi
25824
25825
25826
25827
25828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id in struct utmp" >&5
25829$as_echo_n "checking for ut_id in struct utmp... " >&6; }
25830if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then :
25831  $as_echo_n "(cached) " >&6
25832else
25833
25834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25835/* end confdefs.h.  */
25836#include <utmp.h>
25837int
25838main ()
25839{
25840struct utmp x; memset(&x, 0, sizeof(x)); x.ut_id
25841  ;
25842  return 0;
25843}
25844_ACEOF
25845if ac_fn_c_try_compile "$LINENO"; then :
25846  ac_cv_type_struct_utmp_ut_id=yes
25847else
25848  ac_cv_type_struct_utmp_ut_id=no
25849fi
25850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851
25852fi
25853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_id" >&5
25854$as_echo "$ac_cv_type_struct_utmp_ut_id" >&6; }
25855if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
25856
25857
25858$as_echo "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h
25859
25860
25861fi
25862
25863
25864
25865
25866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in struct utmp" >&5
25867$as_echo_n "checking for ut_pid in struct utmp... " >&6; }
25868if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then :
25869  $as_echo_n "(cached) " >&6
25870else
25871
25872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25873/* end confdefs.h.  */
25874#include <utmp.h>
25875int
25876main ()
25877{
25878struct utmp x; memset(&x, 0, sizeof(x)); x.ut_pid
25879  ;
25880  return 0;
25881}
25882_ACEOF
25883if ac_fn_c_try_compile "$LINENO"; then :
25884  ac_cv_type_struct_utmp_ut_pid=yes
25885else
25886  ac_cv_type_struct_utmp_ut_pid=no
25887fi
25888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25889
25890fi
25891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_pid" >&5
25892$as_echo "$ac_cv_type_struct_utmp_ut_pid" >&6; }
25893if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
25894
25895
25896$as_echo "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h
25897
25898
25899fi
25900
25901
25902
25903
25904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type in struct utmp" >&5
25905$as_echo_n "checking for ut_type in struct utmp... " >&6; }
25906if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then :
25907  $as_echo_n "(cached) " >&6
25908else
25909
25910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25911/* end confdefs.h.  */
25912#include <utmp.h>
25913int
25914main ()
25915{
25916struct utmp x; memset(&x, 0, sizeof(x)); x.ut_type
25917  ;
25918  return 0;
25919}
25920_ACEOF
25921if ac_fn_c_try_compile "$LINENO"; then :
25922  ac_cv_type_struct_utmp_ut_type=yes
25923else
25924  ac_cv_type_struct_utmp_ut_type=no
25925fi
25926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25927
25928fi
25929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_type" >&5
25930$as_echo "$ac_cv_type_struct_utmp_ut_type" >&6; }
25931if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
25932
25933
25934$as_echo "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h
25935
25936
25937fi
25938
25939
25940
25941
25942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_user in struct utmp" >&5
25943$as_echo_n "checking for ut_user in struct utmp... " >&6; }
25944if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then :
25945  $as_echo_n "(cached) " >&6
25946else
25947
25948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25949/* end confdefs.h.  */
25950#include <utmp.h>
25951int
25952main ()
25953{
25954struct utmp x; memset(&x, 0, sizeof(x)); x.ut_user
25955  ;
25956  return 0;
25957}
25958_ACEOF
25959if ac_fn_c_try_compile "$LINENO"; then :
25960  ac_cv_type_struct_utmp_ut_user=yes
25961else
25962  ac_cv_type_struct_utmp_ut_user=no
25963fi
25964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965
25966fi
25967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_user" >&5
25968$as_echo "$ac_cv_type_struct_utmp_ut_user" >&6; }
25969if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
25970
25971
25972$as_echo "#define HAVE_STRUCT_UTMP_UT_USER 1" >>confdefs.h
25973
25974
25975fi
25976
25977
25978
25979
25980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit in struct utmpx" >&5
25981$as_echo_n "checking for ut_exit in struct utmpx... " >&6; }
25982if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then :
25983  $as_echo_n "(cached) " >&6
25984else
25985
25986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25987/* end confdefs.h.  */
25988#include <utmpx.h>
25989int
25990main ()
25991{
25992struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_exit
25993  ;
25994  return 0;
25995}
25996_ACEOF
25997if ac_fn_c_try_compile "$LINENO"; then :
25998  ac_cv_type_struct_utmpx_ut_exit=yes
25999else
26000  ac_cv_type_struct_utmpx_ut_exit=no
26001fi
26002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26003
26004fi
26005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
26006$as_echo "$ac_cv_type_struct_utmpx_ut_exit" >&6; }
26007if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
26008
26009
26010$as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
26011
26012
26013fi
26014
26015
26016
26017
26018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_syslen in struct utmpx" >&5
26019$as_echo_n "checking for ut_syslen in struct utmpx... " >&6; }
26020if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then :
26021  $as_echo_n "(cached) " >&6
26022else
26023
26024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26025/* end confdefs.h.  */
26026#include <utmpx.h>
26027int
26028main ()
26029{
26030struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_syslen
26031  ;
26032  return 0;
26033}
26034_ACEOF
26035if ac_fn_c_try_compile "$LINENO"; then :
26036  ac_cv_type_struct_utmpx_ut_syslen=yes
26037else
26038  ac_cv_type_struct_utmpx_ut_syslen=no
26039fi
26040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26041
26042fi
26043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
26044$as_echo "$ac_cv_type_struct_utmpx_ut_syslen" >&6; }
26045if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
26046
26047
26048$as_echo "#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1" >>confdefs.h
26049
26050
26051fi
26052
26053
26054
26055ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "
26056#ifdef HAVE_INTTYPES_H
26057#include <inttypes.h>
26058#endif
26059#ifdef HAVE_SYS_TYPES_H
26060#include <sys/types.h>
26061#endif
26062#ifdef HAVE_SYS_BITYPES_H
26063#include <sys/bitypes.h>
26064#endif
26065#ifdef HAVE_BIND_BITYPES_H
26066#include <bind/bitypes.h>
26067#endif
26068#ifdef HAVE_NETINET_IN6_MACHTYPES_H
26069#include <netinet/in6_machtypes.h>
26070#endif
26071
26072"
26073if test "x$ac_cv_type_int8_t" = x""yes; then :
26074
26075cat >>confdefs.h <<_ACEOF
26076#define HAVE_INT8_T 1
26077_ACEOF
26078
26079
26080fi
26081ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "
26082#ifdef HAVE_INTTYPES_H
26083#include <inttypes.h>
26084#endif
26085#ifdef HAVE_SYS_TYPES_H
26086#include <sys/types.h>
26087#endif
26088#ifdef HAVE_SYS_BITYPES_H
26089#include <sys/bitypes.h>
26090#endif
26091#ifdef HAVE_BIND_BITYPES_H
26092#include <bind/bitypes.h>
26093#endif
26094#ifdef HAVE_NETINET_IN6_MACHTYPES_H
26095#include <netinet/in6_machtypes.h>
26096#endif
26097
26098"
26099if test "x$ac_cv_type_int16_t" = x""yes; then :
26100
26101cat >>confdefs.h <<_ACEOF
26102#define HAVE_INT16_T 1
26103_ACEOF
26104
26105
26106fi
26107ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "
26108#ifdef HAVE_INTTYPES_H
26109#include <inttypes.h>
26110#endif
26111#ifdef HAVE_SYS_TYPES_H
26112#include <sys/types.h>
26113#endif
26114#ifdef HAVE_SYS_BITYPES_H
26115#include <sys/bitypes.h>
26116#endif
26117#ifdef HAVE_BIND_BITYPES_H
26118#include <bind/bitypes.h>
26119#endif
26120#ifdef HAVE_NETINET_IN6_MACHTYPES_H
26121#include <netinet/in6_machtypes.h>
26122#endif
26123
26124"
26125if test "x$ac_cv_type_int32_t" = x""yes; then :
26126
26127cat >>confdefs.h <<_ACEOF
26128#define HAVE_INT32_T 1
26129_ACEOF
26130
26131
26132fi
26133ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "
26134#ifdef HAVE_INTTYPES_H
26135#include <inttypes.h>
26136#endif
26137#ifdef HAVE_SYS_TYPES_H
26138#include <sys/types.h>
26139#endif
26140#ifdef HAVE_SYS_BITYPES_H
26141#include <sys/bitypes.h>
26142#endif
26143#ifdef HAVE_BIND_BITYPES_H
26144#include <bind/bitypes.h>
26145#endif
26146#ifdef HAVE_NETINET_IN6_MACHTYPES_H
26147#include <netinet/in6_machtypes.h>
26148#endif
26149
26150"
26151if test "x$ac_cv_type_int64_t" = x""yes; then :
26152
26153cat >>confdefs.h <<_ACEOF
26154#define HAVE_INT64_T 1
26155_ACEOF
26156
26157
26158fi
26159ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "
26160#ifdef HAVE_INTTYPES_H
26161#include <inttypes.h>
26162#endif
26163#ifdef HAVE_SYS_TYPES_H
26164#include <sys/types.h>
26165#endif
26166#ifdef HAVE_SYS_BITYPES_H
26167#include <sys/bitypes.h>
26168#endif
26169#ifdef HAVE_BIND_BITYPES_H
26170#include <bind/bitypes.h>
26171#endif
26172#ifdef HAVE_NETINET_IN6_MACHTYPES_H
26173#include <netinet/in6_machtypes.h>
26174#endif
26175
26176"
26177if test "x$ac_cv_type_u_int8_t" = x""yes; then :
26178
26179cat >>confdefs.h <<_ACEOF
26180#define HAVE_U_INT8_T 1
26181_ACEOF
26182
26183
26184fi
26185ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "
26186#ifdef HAVE_INTTYPES_H
26187#include <inttypes.h>
26188#endif
26189#ifdef HAVE_SYS_TYPES_H
26190#include <sys/types.h>
26191#endif
26192#ifdef HAVE_SYS_BITYPES_H
26193#include <sys/bitypes.h>
26194#endif
26195#ifdef HAVE_BIND_BITYPES_H
26196#include <bind/bitypes.h>
26197#endif
26198#ifdef HAVE_NETINET_IN6_MACHTYPES_H
26199#include <netinet/in6_machtypes.h>
26200#endif
26201
26202"
26203if test "x$ac_cv_type_u_int16_t" = x""yes; then :
26204
26205cat >>confdefs.h <<_ACEOF
26206#define HAVE_U_INT16_T 1
26207_ACEOF
26208
26209
26210fi
26211ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "
26212#ifdef HAVE_INTTYPES_H
26213#include <inttypes.h>
26214#endif
26215#ifdef HAVE_SYS_TYPES_H
26216#include <sys/types.h>
26217#endif
26218#ifdef HAVE_SYS_BITYPES_H
26219#include <sys/bitypes.h>
26220#endif
26221#ifdef HAVE_BIND_BITYPES_H
26222#include <bind/bitypes.h>
26223#endif
26224#ifdef HAVE_NETINET_IN6_MACHTYPES_H
26225#include <netinet/in6_machtypes.h>
26226#endif
26227
26228"
26229if test "x$ac_cv_type_u_int32_t" = x""yes; then :
26230
26231cat >>confdefs.h <<_ACEOF
26232#define HAVE_U_INT32_T 1
26233_ACEOF
26234
26235
26236fi
26237ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "
26238#ifdef HAVE_INTTYPES_H
26239#include <inttypes.h>
26240#endif
26241#ifdef HAVE_SYS_TYPES_H
26242#include <sys/types.h>
26243#endif
26244#ifdef HAVE_SYS_BITYPES_H
26245#include <sys/bitypes.h>
26246#endif
26247#ifdef HAVE_BIND_BITYPES_H
26248#include <bind/bitypes.h>
26249#endif
26250#ifdef HAVE_NETINET_IN6_MACHTYPES_H
26251#include <netinet/in6_machtypes.h>
26252#endif
26253
26254"
26255if test "x$ac_cv_type_u_int64_t" = x""yes; then :
26256
26257cat >>confdefs.h <<_ACEOF
26258#define HAVE_U_INT64_T 1
26259_ACEOF
26260
26261
26262fi
26263ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "
26264#ifdef HAVE_INTTYPES_H
26265#include <inttypes.h>
26266#endif
26267#ifdef HAVE_SYS_TYPES_H
26268#include <sys/types.h>
26269#endif
26270#ifdef HAVE_SYS_BITYPES_H
26271#include <sys/bitypes.h>
26272#endif
26273#ifdef HAVE_BIND_BITYPES_H
26274#include <bind/bitypes.h>
26275#endif
26276#ifdef HAVE_NETINET_IN6_MACHTYPES_H
26277#include <netinet/in6_machtypes.h>
26278#endif
26279
26280"
26281if test "x$ac_cv_type_uint8_t" = x""yes; then :
26282
26283cat >>confdefs.h <<_ACEOF
26284#define HAVE_UINT8_T 1
26285_ACEOF
26286
26287
26288fi
26289ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "
26290#ifdef HAVE_INTTYPES_H
26291#include <inttypes.h>
26292#endif
26293#ifdef HAVE_SYS_TYPES_H
26294#include <sys/types.h>
26295#endif
26296#ifdef HAVE_SYS_BITYPES_H
26297#include <sys/bitypes.h>
26298#endif
26299#ifdef HAVE_BIND_BITYPES_H
26300#include <bind/bitypes.h>
26301#endif
26302#ifdef HAVE_NETINET_IN6_MACHTYPES_H
26303#include <netinet/in6_machtypes.h>
26304#endif
26305
26306"
26307if test "x$ac_cv_type_uint16_t" = x""yes; then :
26308
26309cat >>confdefs.h <<_ACEOF
26310#define HAVE_UINT16_T 1
26311_ACEOF
26312
26313
26314fi
26315ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "
26316#ifdef HAVE_INTTYPES_H
26317#include <inttypes.h>
26318#endif
26319#ifdef HAVE_SYS_TYPES_H
26320#include <sys/types.h>
26321#endif
26322#ifdef HAVE_SYS_BITYPES_H
26323#include <sys/bitypes.h>
26324#endif
26325#ifdef HAVE_BIND_BITYPES_H
26326#include <bind/bitypes.h>
26327#endif
26328#ifdef HAVE_NETINET_IN6_MACHTYPES_H
26329#include <netinet/in6_machtypes.h>
26330#endif
26331
26332"
26333if test "x$ac_cv_type_uint32_t" = x""yes; then :
26334
26335cat >>confdefs.h <<_ACEOF
26336#define HAVE_UINT32_T 1
26337_ACEOF
26338
26339
26340fi
26341ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "
26342#ifdef HAVE_INTTYPES_H
26343#include <inttypes.h>
26344#endif
26345#ifdef HAVE_SYS_TYPES_H
26346#include <sys/types.h>
26347#endif
26348#ifdef HAVE_SYS_BITYPES_H
26349#include <sys/bitypes.h>
26350#endif
26351#ifdef HAVE_BIND_BITYPES_H
26352#include <bind/bitypes.h>
26353#endif
26354#ifdef HAVE_NETINET_IN6_MACHTYPES_H
26355#include <netinet/in6_machtypes.h>
26356#endif
26357
26358"
26359if test "x$ac_cv_type_uint64_t" = x""yes; then :
26360
26361cat >>confdefs.h <<_ACEOF
26362#define HAVE_UINT64_T 1
26363_ACEOF
26364
26365
26366fi
26367
26368
26369
26370
26371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework security" >&5
26372$as_echo_n "checking for framework security... " >&6; }
26373if test "${rk_cv_framework_security+set}" = set; then :
26374  $as_echo_n "(cached) " >&6
26375else
26376
26377if test "$rk_cv_framework_security" != yes; then
26378	ac_save_LIBS="$LIBS"
26379	LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation"
26380	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26381/* end confdefs.h.  */
26382#include <Security/Security.h>
26383
26384int
26385main ()
26386{
26387SecKeychainSearchRef searchRef;
26388SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef);
26389CFRelease(&searchRef);
26390
26391  ;
26392  return 0;
26393}
26394_ACEOF
26395if ac_fn_c_try_link "$LINENO"; then :
26396  rk_cv_framework_security=yes
26397fi
26398rm -f core conftest.err conftest.$ac_objext \
26399    conftest$ac_exeext conftest.$ac_ext
26400	LIBS="$ac_save_LIBS"
26401fi
26402
26403fi
26404
26405
26406if test "$rk_cv_framework_security" = yes; then
26407
26408$as_echo "#define HAVE_FRAMEWORK_SECURITY 1" >>confdefs.h
26409
26410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26411$as_echo "yes" >&6; }
26412else
26413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26414$as_echo "no" >&6; }
26415fi
26416 if test "$rk_cv_framework_security" = yes; then
26417  FRAMEWORK_SECURITY_TRUE=
26418  FRAMEWORK_SECURITY_FALSE='#'
26419else
26420  FRAMEWORK_SECURITY_TRUE='#'
26421  FRAMEWORK_SECURITY_FALSE=
26422fi
26423
26424
26425if test "$rk_cv_framework_security" = yes; then
26426
26427if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then
26428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SecKeyGetCSPHandle needs a prototype" >&5
26429$as_echo_n "checking if SecKeyGetCSPHandle needs a prototype... " >&6; }
26430if test "${ac_cv_func_SecKeyGetCSPHandle_noproto+set}" = set; then :
26431  $as_echo_n "(cached) " >&6
26432else
26433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26434/* end confdefs.h.  */
26435#include <Security/Security.h>
26436struct foo { int foo; } xx;
26437extern int SecKeyGetCSPHandle (struct foo*);
26438int
26439main ()
26440{
26441SecKeyGetCSPHandle(&xx)
26442  ;
26443  return 0;
26444}
26445_ACEOF
26446if ac_fn_c_try_compile "$LINENO"; then :
26447  eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes"
26448else
26449  eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no"
26450fi
26451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26452fi
26453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5
26454$as_echo "$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; }
26455if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then
26456
26457$as_echo "#define NEED_SECKEYGETCSPHANDLE_PROTO 1" >>confdefs.h
26458
26459fi
26460fi
26461
26462fi
26463
26464
26465
26466
26467
26468
26469
26470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init" >&5
26471$as_echo_n "checking for el_init... " >&6; }
26472if test "${ac_cv_funclib_el_init+set}" = set; then :
26473  $as_echo_n "(cached) " >&6
26474else
26475
26476if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
26477	ac_save_LIBS="$LIBS"
26478	for ac_lib in "" edit; do
26479		case "$ac_lib" in
26480		"") ;;
26481		yes) ac_lib="" ;;
26482		no) continue ;;
26483		-l*) ;;
26484		*) ac_lib="-l$ac_lib" ;;
26485		esac
26486		LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
26487		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26488/* end confdefs.h.  */
26489
26490int
26491main ()
26492{
26493el_init()
26494  ;
26495  return 0;
26496}
26497_ACEOF
26498if ac_fn_c_try_link "$LINENO"; then :
26499  eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
26500fi
26501rm -f core conftest.err conftest.$ac_objext \
26502    conftest$ac_exeext conftest.$ac_ext
26503	done
26504	eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
26505	LIBS="$ac_save_LIBS"
26506fi
26507
26508fi
26509
26510
26511eval "ac_res=\$ac_cv_funclib_el_init"
26512
26513if false; then
26514	for ac_func in el_init
26515do :
26516  ac_fn_c_check_func "$LINENO" "el_init" "ac_cv_func_el_init"
26517if test "x$ac_cv_func_el_init" = x""yes; then :
26518  cat >>confdefs.h <<_ACEOF
26519#define HAVE_EL_INIT 1
26520_ACEOF
26521
26522fi
26523done
26524
26525fi
26526# el_init
26527eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26528eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26529eval "LIB_el_init=$ac_res"
26530
26531case "$ac_res" in
26532	yes)
26533	eval "ac_cv_func_el_init=yes"
26534	eval "LIB_el_init="
26535	cat >>confdefs.h <<_ACEOF
26536#define $ac_tr_func 1
26537_ACEOF
26538
26539	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26540$as_echo "yes" >&6; }
26541	;;
26542	no)
26543	eval "ac_cv_func_el_init=no"
26544	eval "LIB_el_init="
26545	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26546$as_echo "no" >&6; }
26547	;;
26548	*)
26549	eval "ac_cv_func_el_init=yes"
26550	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26551	cat >>confdefs.h <<_ACEOF
26552#define $ac_tr_func 1
26553_ACEOF
26554
26555	cat >>confdefs.h <<_ACEOF
26556#define $ac_tr_lib 1
26557_ACEOF
26558
26559	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
26560$as_echo "yes, in $ac_res" >&6; }
26561	;;
26562esac
26563
26564
26565if test "$ac_cv_func_el_init" = yes ; then
26566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for four argument el_init" >&5
26567$as_echo_n "checking for four argument el_init... " >&6; }
26568if test "${ac_cv_func_el_init_four+set}" = set; then :
26569  $as_echo_n "(cached) " >&6
26570else
26571
26572		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26573/* end confdefs.h.  */
26574#include <stdio.h>
26575			#include <histedit.h>
26576int
26577main ()
26578{
26579el_init("", NULL, NULL, NULL);
26580  ;
26581  return 0;
26582}
26583_ACEOF
26584if ac_fn_c_try_compile "$LINENO"; then :
26585  ac_cv_func_el_init_four=yes
26586else
26587  ac_cv_func_el_init_four=no
26588fi
26589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26590fi
26591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_el_init_four" >&5
26592$as_echo "$ac_cv_func_el_init_four" >&6; }
26593	if test "$ac_cv_func_el_init_four" = yes; then
26594
26595$as_echo "#define HAVE_FOUR_VALUED_EL_INIT 1" >>confdefs.h
26596
26597	fi
26598fi
26599
26600
26601ac_foo=no
26602build_editline=no
26603if test "$with_readline" = yes; then
26604	:
26605elif test "$ac_cv_func_readline" = yes; then
26606	:
26607elif test "$ac_cv_func_el_init" = yes; then
26608	ac_foo=yes
26609	build_editline=yes
26610	LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
26611else
26612	build_editline=yes
26613	LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
26614fi
26615 if test "$build_editline" = yes; then
26616  EDITLINE_TRUE=
26617  EDITLINE_FALSE='#'
26618else
26619  EDITLINE_TRUE='#'
26620  EDITLINE_FALSE=
26621fi
26622
26623 if test "$ac_foo" = yes; then
26624  el_compat_TRUE=
26625  el_compat_FALSE='#'
26626else
26627  el_compat_TRUE='#'
26628  el_compat_FALSE=
26629fi
26630
26631
26632$as_echo "#define HAVE_READLINE 1" >>confdefs.h
26633
26634
26635
26636
26637
26638$as_echo "#define AUTHENTICATION 1" >>confdefs.h
26639
26640$as_echo "#define ENCRYPTION 1" >>confdefs.h
26641
26642$as_echo "#define DES_ENCRYPTION 1" >>confdefs.h
26643
26644$as_echo "#define DIAGNOSTICS 1" >>confdefs.h
26645
26646$as_echo "#define OLD_ENVIRON 1" >>confdefs.h
26647if false; then
26648
26649$as_echo "#define ENV_HACK 1" >>confdefs.h
26650
26651fi
26652
26653# Simple test for streamspty, based on the existance of getmsg(), alas
26654# this breaks on SunOS4 which have streams but BSD-like ptys
26655#
26656# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
26657
26658case "$host" in
26659*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
26660	;;
26661*)
26662	ac_fn_c_check_func "$LINENO" "getmsg" "ac_cv_func_getmsg"
26663if test "x$ac_cv_func_getmsg" = x""yes; then :
26664
26665fi
26666
26667	if test "$ac_cv_func_getmsg" = "yes"; then
26668		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getmsg works" >&5
26669$as_echo_n "checking if getmsg works... " >&6; }
26670if test "${ac_cv_func_getmsg_works+set}" = set; then :
26671  $as_echo_n "(cached) " >&6
26672else
26673  if test "$cross_compiling" = yes; then :
26674  ac_cv_func_getmsg_works=no
26675else
26676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26677/* end confdefs.h.  */
26678
26679			#include <stdio.h>
26680			#include <errno.h>
26681
26682			int main(int argc, char **argv)
26683			{
26684			  int ret;
26685			  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
26686			  if(ret < 0 && errno == ENOSYS)
26687			    return 1;
26688			  return 0;
26689			}
26690
26691_ACEOF
26692if ac_fn_c_try_run "$LINENO"; then :
26693  ac_cv_func_getmsg_works=yes
26694else
26695  ac_cv_func_getmsg_works=no
26696fi
26697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26698  conftest.$ac_objext conftest.beam conftest.$ac_ext
26699fi
26700
26701fi
26702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getmsg_works" >&5
26703$as_echo "$ac_cv_func_getmsg_works" >&6; }
26704		if test "$ac_cv_func_getmsg_works" = "yes"; then
26705
26706$as_echo "#define HAVE_GETMSG 1" >>confdefs.h
26707
26708
26709$as_echo "#define STREAMSPTY 1" >>confdefs.h
26710
26711		fi
26712	fi
26713	;;
26714esac
26715
26716
26717
26718
26719
26720
26721# Extract the first word of "compile_et", so it can be a program name with args.
26722set dummy compile_et; ac_word=$2
26723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26724$as_echo_n "checking for $ac_word... " >&6; }
26725if test "${ac_cv_prog_COMPILE_ET+set}" = set; then :
26726  $as_echo_n "(cached) " >&6
26727else
26728  if test -n "$COMPILE_ET"; then
26729  ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
26730else
26731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26732for as_dir in $PATH
26733do
26734  IFS=$as_save_IFS
26735  test -z "$as_dir" && as_dir=.
26736    for ac_exec_ext in '' $ac_executable_extensions; do
26737  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26738    ac_cv_prog_COMPILE_ET="compile_et"
26739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26740    break 2
26741  fi
26742done
26743  done
26744IFS=$as_save_IFS
26745
26746fi
26747fi
26748COMPILE_ET=$ac_cv_prog_COMPILE_ET
26749if test -n "$COMPILE_ET"; then
26750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
26751$as_echo "$COMPILE_ET" >&6; }
26752else
26753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26754$as_echo "no" >&6; }
26755fi
26756
26757
26758
26759krb_cv_compile_et="no"
26760krb_cv_com_err_need_r=""
26761krb_cv_compile_et_cross=no
26762if test "${COMPILE_ET}" = "compile_et"; then
26763
26764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compile_et has the features we need" >&5
26765$as_echo_n "checking whether compile_et has the features we need... " >&6; }
26766cat > conftest_et.et <<'EOF'
26767error_table test conf
26768prefix CONFTEST
26769index 1
26770error_code CODE1, "CODE1"
26771index 128
26772error_code CODE2, "CODE2"
26773end
26774EOF
26775if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
26776    save_CPPFLAGS="${CPPFLAGS}"
26777  if test -d "/usr/include/et"; then
26778    CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
26779  fi
26780    if test "$cross_compiling" = yes; then :
26781  krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes
26782else
26783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26784/* end confdefs.h.  */
26785
26786#include <com_err.h>
26787#include <string.h>
26788#include "conftest_et.h"
26789int main(int argc, char **argv){
26790#ifndef ERROR_TABLE_BASE_conf
26791#error compile_et does not handle error_table N M
26792#endif
26793return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
26794
26795_ACEOF
26796if ac_fn_c_try_run "$LINENO"; then :
26797  krb_cv_compile_et="yes"
26798else
26799  CPPFLAGS="${save_CPPFLAGS}"
26800fi
26801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26802  conftest.$ac_objext conftest.beam conftest.$ac_ext
26803fi
26804
26805fi
26806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_compile_et}" >&5
26807$as_echo "${krb_cv_compile_et}" >&6; }
26808if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then
26809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if com_err generates a initialize_conf_error_table_r" >&5
26810$as_echo_n "checking for if com_err generates a initialize_conf_error_table_r... " >&6; }
26811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26812/* end confdefs.h.  */
26813#include "conftest_et.h"
26814_ACEOF
26815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26816  $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1; then :
26817  krb_cv_com_err_need_r="ok"
26818fi
26819rm -f conftest*
26820
26821  if test X"$krb_cv_com_err_need_r" = X ; then
26822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26823$as_echo "no" >&6; }
26824    krb_cv_compile_et=no
26825  else
26826    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26827$as_echo "yes" >&6; }
26828  fi
26829fi
26830rm -fr conftest*
26831fi
26832
26833if test "${krb_cv_compile_et_cross}" = yes ; then
26834  krb_cv_com_err="cross"
26835elif test "${krb_cv_compile_et}" = "yes"; then
26836    krb_cv_save_LIBS="${LIBS}"
26837  LIBS="${LIBS} -lcom_err"
26838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err" >&5
26839$as_echo_n "checking for com_err... " >&6; }
26840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26841/* end confdefs.h.  */
26842#include <com_err.h>
26843int
26844main ()
26845{
26846
26847    const char *p;
26848    p = error_message(0);
26849    initialize_error_table_r(0,0,0,0);
26850    com_right_r(0, 0, 0, 0);
26851
26852  ;
26853  return 0;
26854}
26855_ACEOF
26856if ac_fn_c_try_link "$LINENO"; then :
26857  krb_cv_com_err="yes"
26858else
26859  krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
26860fi
26861rm -f core conftest.err conftest.$ac_objext \
26862    conftest$ac_exeext conftest.$ac_ext
26863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_com_err}" >&5
26864$as_echo "${krb_cv_com_err}" >&6; }
26865  LIBS="${krb_cv_save_LIBS}"
26866else
26867    krb_cv_com_err="no"
26868fi
26869
26870if test "${krb_cv_com_err}" = "yes"; then
26871    DIR_com_err=""
26872    LIB_com_err="-lcom_err"
26873    LIB_com_err_a=""
26874    LIB_com_err_so=""
26875    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the already-installed com_err" >&5
26876$as_echo "$as_me: Using the already-installed com_err" >&6;}
26877    localcomerr=no
26878elif test "${krb_cv_com_err}" = "cross"; then
26879    DIR_com_err="com_err"
26880    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
26881    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
26882    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
26883    { $as_echo "$as_me:${as_lineno-$LINENO}: Using our own com_err with toolchain compile_et" >&5
26884$as_echo "$as_me: Using our own com_err with toolchain compile_et" >&6;}
26885    localcomerr=yes
26886else
26887    COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
26888    DIR_com_err="com_err"
26889    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
26890    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
26891    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
26892    { $as_echo "$as_me:${as_lineno-$LINENO}: Using our own com_err" >&5
26893$as_echo "$as_me: Using our own com_err" >&6;}
26894    localcomerr=yes
26895fi
26896 if test "$localcomerr" = yes; then
26897  COM_ERR_TRUE=
26898  COM_ERR_FALSE='#'
26899else
26900  COM_ERR_TRUE='#'
26901  COM_ERR_FALSE=
26902fi
26903
26904
26905
26906
26907
26908
26909
26910
26911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which authentication modules should be built" >&5
26912$as_echo_n "checking which authentication modules should be built... " >&6; }
26913
26914z='sia afskauthlib'
26915LIB_AUTH_SUBDIRS=
26916for i in $z; do
26917case $i in
26918sia)
26919if test "$ac_cv_header_siad_h" = yes; then
26920	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
26921fi
26922;;
26923pam)
26924case "${host}" in
26925*-*-freebsd*)	ac_cv_want_pam_krb4=no ;;
26926*)		ac_cv_want_pam_krb4=yes ;;
26927esac
26928
26929if test "$ac_cv_want_pam_krb4" = yes -a \
26930    "$ac_cv_header_security_pam_modules_h" = yes -a \
26931    "$enable_shared" = yes; then
26932	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
26933fi
26934;;
26935afskauthlib)
26936case "${host}" in
26937*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
26938esac
26939;;
26940esac
26941done
26942if test "$LIB_AUTH_SUBDIRS"; then
26943	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIB_AUTH_SUBDIRS" >&5
26944$as_echo "$LIB_AUTH_SUBDIRS" >&6; }
26945else
26946	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
26947$as_echo "none" >&6; }
26948fi
26949
26950
26951
26952
26953# This is done by AC_OUTPUT but we need the result here.
26954test "x$prefix" = xNONE && prefix=$ac_default_prefix
26955test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26956
26957
26958	x="${bindir}"
26959	eval y="$x"
26960	while test "x$y" != "x$x"; do
26961		x="$y"
26962		eval y="$x"
26963	done
26964
26965cat >>confdefs.h <<_ACEOF
26966#define BINDIR "$x"
26967_ACEOF
26968
26969	x="${libdir}"
26970	eval y="$x"
26971	while test "x$y" != "x$x"; do
26972		x="$y"
26973		eval y="$x"
26974	done
26975
26976cat >>confdefs.h <<_ACEOF
26977#define LIBDIR "$x"
26978_ACEOF
26979
26980	x="${libexecdir}"
26981	eval y="$x"
26982	while test "x$y" != "x$x"; do
26983		x="$y"
26984		eval y="$x"
26985	done
26986
26987cat >>confdefs.h <<_ACEOF
26988#define LIBEXECDIR "$x"
26989_ACEOF
26990
26991	x="${localstatedir}"
26992	eval y="$x"
26993	while test "x$y" != "x$x"; do
26994		x="$y"
26995		eval y="$x"
26996	done
26997
26998cat >>confdefs.h <<_ACEOF
26999#define LOCALSTATEDIR "$x"
27000_ACEOF
27001
27002	x="${sbindir}"
27003	eval y="$x"
27004	while test "x$y" != "x$x"; do
27005		x="$y"
27006		eval y="$x"
27007	done
27008
27009cat >>confdefs.h <<_ACEOF
27010#define SBINDIR "$x"
27011_ACEOF
27012
27013	x="${sysconfdir}"
27014	eval y="$x"
27015	while test "x$y" != "x$x"; do
27016		x="$y"
27017		eval y="$x"
27018	done
27019
27020cat >>confdefs.h <<_ACEOF
27021#define SYSCONFDIR "$x"
27022_ACEOF
27023
27024
27025
27026
27027
27028# Check whether --enable-developer was given.
27029if test "${enable_developer+set}" = set; then :
27030  enableval=$enable_developer;
27031fi
27032
27033if test "X$enable_developer" = Xyes; then
27034    dwflags="-Werror"
27035fi
27036
27037WFLAGS_NOUNUSED=""
27038WFLAGS_NOIMPLICITINT=""
27039if test -z "$WFLAGS" -a "$GCC" = "yes"; then
27040  # -Wno-implicit-int for broken X11 headers
27041  # leave these out for now:
27042  #   -Wcast-align doesn't work well on alpha osf/1
27043  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
27044  #   -Wmissing-declarations -Wnested-externs
27045  #   -Wstrict-overflow=5
27046  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
27047  WFLAGS_NOUNUSED="-Wno-unused"
27048  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
27049fi
27050
27051
27052
27053
27054
27055ac_config_files="$ac_config_files Makefile etc/Makefile include/Makefile include/gssapi/Makefile include/hcrypto/Makefile include/kadm5/Makefile lib/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/hcrypto/Makefile lib/editline/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"
27056
27057
27058cat >confcache <<\_ACEOF
27059# This file is a shell script that caches the results of configure
27060# tests run on this system so they can be shared between configure
27061# scripts and configure runs, see configure's option --config-cache.
27062# It is not useful on other systems.  If it contains results you don't
27063# want to keep, you may remove or edit it.
27064#
27065# config.status only pays attention to the cache file if you give it
27066# the --recheck option to rerun configure.
27067#
27068# `ac_cv_env_foo' variables (set or unset) will be overridden when
27069# loading this file, other *unset* `ac_cv_foo' will be assigned the
27070# following values.
27071
27072_ACEOF
27073
27074# The following way of writing the cache mishandles newlines in values,
27075# but we know of no workaround that is simple, portable, and efficient.
27076# So, we kill variables containing newlines.
27077# Ultrix sh set writes to stderr and can't be redirected directly,
27078# and sets the high bit in the cache file unless we assign to the vars.
27079(
27080  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27081    eval ac_val=\$$ac_var
27082    case $ac_val in #(
27083    *${as_nl}*)
27084      case $ac_var in #(
27085      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27086$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27087      esac
27088      case $ac_var in #(
27089      _ | IFS | as_nl) ;; #(
27090      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27091      *) { eval $ac_var=; unset $ac_var;} ;;
27092      esac ;;
27093    esac
27094  done
27095
27096  (set) 2>&1 |
27097    case $as_nl`(ac_space=' '; set) 2>&1` in #(
27098    *${as_nl}ac_space=\ *)
27099      # `set' does not quote correctly, so add quotes: double-quote
27100      # substitution turns \\\\ into \\, and sed turns \\ into \.
27101      sed -n \
27102	"s/'/'\\\\''/g;
27103	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27104      ;; #(
27105    *)
27106      # `set' quotes correctly as required by POSIX, so do not add quotes.
27107      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27108      ;;
27109    esac |
27110    sort
27111) |
27112  sed '
27113     /^ac_cv_env_/b end
27114     t clear
27115     :clear
27116     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27117     t end
27118     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27119     :end' >>confcache
27120if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27121  if test -w "$cache_file"; then
27122    test "x$cache_file" != "x/dev/null" &&
27123      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27124$as_echo "$as_me: updating cache $cache_file" >&6;}
27125    cat confcache >$cache_file
27126  else
27127    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27128$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27129  fi
27130fi
27131rm -f confcache
27132
27133test "x$prefix" = xNONE && prefix=$ac_default_prefix
27134# Let make expand exec_prefix.
27135test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27136
27137DEFS=-DHAVE_CONFIG_H
27138
27139ac_libobjs=
27140ac_ltlibobjs=
27141for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27142  # 1. Remove the extension, and $U if already installed.
27143  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27144  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27145  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27146  #    will be set to the directory where LIBOBJS objects are built.
27147  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27148  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27149done
27150LIBOBJS=$ac_libobjs
27151
27152LTLIBOBJS=$ac_ltlibobjs
27153
27154
27155 if test -n "$EXEEXT"; then
27156  am__EXEEXT_TRUE=
27157  am__EXEEXT_FALSE='#'
27158else
27159  am__EXEEXT_TRUE='#'
27160  am__EXEEXT_FALSE=
27161fi
27162
27163if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27164  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
27165Usually this means the macro was only invoked conditionally." "$LINENO" 5
27166fi
27167if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27168  as_fn_error "conditional \"AMDEP\" was never defined.
27169Usually this means the macro was only invoked conditionally." "$LINENO" 5
27170fi
27171if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27172  as_fn_error "conditional \"am__fastdepCC\" was never defined.
27173Usually this means the macro was only invoked conditionally." "$LINENO" 5
27174fi
27175if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
27176  as_fn_error "conditional \"AIX\" was never defined.
27177Usually this means the macro was only invoked conditionally." "$LINENO" 5
27178fi
27179if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
27180  as_fn_error "conditional \"AIX4\" was never defined.
27181Usually this means the macro was only invoked conditionally." "$LINENO" 5
27182fi
27183if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
27184  as_fn_error "conditional \"HAVE_DLOPEN\" was never defined.
27185Usually this means the macro was only invoked conditionally." "$LINENO" 5
27186fi
27187if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
27188  as_fn_error "conditional \"AIX_DYNAMIC_AFS\" was never defined.
27189Usually this means the macro was only invoked conditionally." "$LINENO" 5
27190fi
27191if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
27192  as_fn_error "conditional \"IRIX\" was never defined.
27193Usually this means the macro was only invoked conditionally." "$LINENO" 5
27194fi
27195if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
27196  as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
27197Usually this means the macro was only invoked conditionally." "$LINENO" 5
27198fi
27199if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then
27200  as_fn_error "conditional \"versionscript\" was never defined.
27201Usually this means the macro was only invoked conditionally." "$LINENO" 5
27202fi
27203if test -z "${CROSS_COMPILE_TRUE}" && test -z "${CROSS_COMPILE_FALSE}"; then
27204  as_fn_error "conditional \"CROSS_COMPILE\" was never defined.
27205Usually this means the macro was only invoked conditionally." "$LINENO" 5
27206fi
27207if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then
27208  as_fn_error "conditional \"OPENLDAP_MODULE\" was never defined.
27209Usually this means the macro was only invoked conditionally." "$LINENO" 5
27210fi
27211if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then
27212  as_fn_error "conditional \"PKINIT\" was never defined.
27213Usually this means the macro was only invoked conditionally." "$LINENO" 5
27214fi
27215if test -z "${HAVE_CAPNG_TRUE}" && test -z "${HAVE_CAPNG_FALSE}"; then
27216  as_fn_error "conditional \"HAVE_CAPNG\" was never defined.
27217Usually this means the macro was only invoked conditionally." "$LINENO" 5
27218fi
27219if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
27220  as_fn_error "conditional \"SQLITE3\" was never defined.
27221Usually this means the macro was only invoked conditionally." "$LINENO" 5
27222fi
27223if test -z "${have_scc_TRUE}" && test -z "${have_scc_FALSE}"; then
27224  as_fn_error "conditional \"have_scc\" was never defined.
27225Usually this means the macro was only invoked conditionally." "$LINENO" 5
27226fi
27227if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
27228  as_fn_error "conditional \"KRB4\" was never defined.
27229Usually this means the macro was only invoked conditionally." "$LINENO" 5
27230fi
27231if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
27232  as_fn_error "conditional \"KRB5\" was never defined.
27233Usually this means the macro was only invoked conditionally." "$LINENO" 5
27234fi
27235if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
27236  as_fn_error "conditional \"do_roken_rename\" was never defined.
27237Usually this means the macro was only invoked conditionally." "$LINENO" 5
27238fi
27239if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
27240  as_fn_error "conditional \"HAVE_OPENSSL\" was never defined.
27241Usually this means the macro was only invoked conditionally." "$LINENO" 5
27242fi
27243if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
27244  as_fn_error "conditional \"DCE\" was never defined.
27245Usually this means the macro was only invoked conditionally." "$LINENO" 5
27246fi
27247if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
27248  as_fn_error "conditional \"HAVE_DB1\" was never defined.
27249Usually this means the macro was only invoked conditionally." "$LINENO" 5
27250fi
27251if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
27252  as_fn_error "conditional \"HAVE_DB3\" was never defined.
27253Usually this means the macro was only invoked conditionally." "$LINENO" 5
27254fi
27255if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
27256  as_fn_error "conditional \"HAVE_NDBM\" was never defined.
27257Usually this means the macro was only invoked conditionally." "$LINENO" 5
27258fi
27259if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
27260  as_fn_error "conditional \"have_err_h\" was never defined.
27261Usually this means the macro was only invoked conditionally." "$LINENO" 5
27262fi
27263if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
27264  as_fn_error "conditional \"have_ifaddrs_h\" was never defined.
27265Usually this means the macro was only invoked conditionally." "$LINENO" 5
27266fi
27267if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
27268  as_fn_error "conditional \"have_vis_h\" was never defined.
27269Usually this means the macro was only invoked conditionally." "$LINENO" 5
27270fi
27271if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
27272  as_fn_error "conditional \"have_glob_h\" was never defined.
27273Usually this means the macro was only invoked conditionally." "$LINENO" 5
27274fi
27275if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then
27276  as_fn_error "conditional \"have_cgetent\" was never defined.
27277Usually this means the macro was only invoked conditionally." "$LINENO" 5
27278fi
27279if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
27280  as_fn_error "conditional \"have_fnmatch_h\" was never defined.
27281Usually this means the macro was only invoked conditionally." "$LINENO" 5
27282fi
27283if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then
27284  as_fn_error "conditional \"have_socket_wrapper\" was never defined.
27285Usually this means the macro was only invoked conditionally." "$LINENO" 5
27286fi
27287if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
27288  as_fn_error "conditional \"OTP\" was never defined.
27289Usually this means the macro was only invoked conditionally." "$LINENO" 5
27290fi
27291if test -z "${have_gcd_TRUE}" && test -z "${have_gcd_FALSE}"; then
27292  as_fn_error "conditional \"have_gcd\" was never defined.
27293Usually this means the macro was only invoked conditionally." "$LINENO" 5
27294fi
27295if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
27296  as_fn_error "conditional \"CATMAN\" was never defined.
27297Usually this means the macro was only invoked conditionally." "$LINENO" 5
27298fi
27299if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
27300  as_fn_error "conditional \"HAVE_X\" was never defined.
27301Usually this means the macro was only invoked conditionally." "$LINENO" 5
27302fi
27303if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
27304  as_fn_error "conditional \"NEED_WRITEAUTH\" was never defined.
27305Usually this means the macro was only invoked conditionally." "$LINENO" 5
27306fi
27307if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then
27308  as_fn_error "conditional \"KCM\" was never defined.
27309Usually this means the macro was only invoked conditionally." "$LINENO" 5
27310fi
27311if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then
27312  as_fn_error "conditional \"FRAMEWORK_SECURITY\" was never defined.
27313Usually this means the macro was only invoked conditionally." "$LINENO" 5
27314fi
27315if test -z "${EDITLINE_TRUE}" && test -z "${EDITLINE_FALSE}"; then
27316  as_fn_error "conditional \"EDITLINE\" was never defined.
27317Usually this means the macro was only invoked conditionally." "$LINENO" 5
27318fi
27319if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
27320  as_fn_error "conditional \"el_compat\" was never defined.
27321Usually this means the macro was only invoked conditionally." "$LINENO" 5
27322fi
27323if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then
27324  as_fn_error "conditional \"COM_ERR\" was never defined.
27325Usually this means the macro was only invoked conditionally." "$LINENO" 5
27326fi
27327
27328: ${CONFIG_STATUS=./config.status}
27329ac_write_fail=0
27330ac_clean_files_save=$ac_clean_files
27331ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27332{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27333$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27334as_write_fail=0
27335cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27336#! $SHELL
27337# Generated by $as_me.
27338# Run this file to recreate the current configuration.
27339# Compiler output produced by configure, useful for debugging
27340# configure, is in config.log if it exists.
27341
27342debug=false
27343ac_cs_recheck=false
27344ac_cs_silent=false
27345
27346SHELL=\${CONFIG_SHELL-$SHELL}
27347export SHELL
27348_ASEOF
27349cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27350## -------------------- ##
27351## M4sh Initialization. ##
27352## -------------------- ##
27353
27354# Be more Bourne compatible
27355DUALCASE=1; export DUALCASE # for MKS sh
27356if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27357  emulate sh
27358  NULLCMD=:
27359  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27360  # is contrary to our usage.  Disable this feature.
27361  alias -g '${1+"$@"}'='"$@"'
27362  setopt NO_GLOB_SUBST
27363else
27364  case `(set -o) 2>/dev/null` in #(
27365  *posix*) :
27366    set -o posix ;; #(
27367  *) :
27368     ;;
27369esac
27370fi
27371
27372
27373as_nl='
27374'
27375export as_nl
27376# Printing a long string crashes Solaris 7 /usr/bin/printf.
27377as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27378as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27379as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27380# Prefer a ksh shell builtin over an external printf program on Solaris,
27381# but without wasting forks for bash or zsh.
27382if test -z "$BASH_VERSION$ZSH_VERSION" \
27383    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27384  as_echo='print -r --'
27385  as_echo_n='print -rn --'
27386elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27387  as_echo='printf %s\n'
27388  as_echo_n='printf %s'
27389else
27390  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27391    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27392    as_echo_n='/usr/ucb/echo -n'
27393  else
27394    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27395    as_echo_n_body='eval
27396      arg=$1;
27397      case $arg in #(
27398      *"$as_nl"*)
27399	expr "X$arg" : "X\\(.*\\)$as_nl";
27400	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27401      esac;
27402      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27403    '
27404    export as_echo_n_body
27405    as_echo_n='sh -c $as_echo_n_body as_echo'
27406  fi
27407  export as_echo_body
27408  as_echo='sh -c $as_echo_body as_echo'
27409fi
27410
27411# The user is always right.
27412if test "${PATH_SEPARATOR+set}" != set; then
27413  PATH_SEPARATOR=:
27414  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27415    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27416      PATH_SEPARATOR=';'
27417  }
27418fi
27419
27420
27421# IFS
27422# We need space, tab and new line, in precisely that order.  Quoting is
27423# there to prevent editors from complaining about space-tab.
27424# (If _AS_PATH_WALK were called with IFS unset, it would disable word
27425# splitting by setting IFS to empty value.)
27426IFS=" ""	$as_nl"
27427
27428# Find who we are.  Look in the path if we contain no directory separator.
27429case $0 in #((
27430  *[\\/]* ) as_myself=$0 ;;
27431  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27432for as_dir in $PATH
27433do
27434  IFS=$as_save_IFS
27435  test -z "$as_dir" && as_dir=.
27436    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27437  done
27438IFS=$as_save_IFS
27439
27440     ;;
27441esac
27442# We did not find ourselves, most probably we were run as `sh COMMAND'
27443# in which case we are not to be found in the path.
27444if test "x$as_myself" = x; then
27445  as_myself=$0
27446fi
27447if test ! -f "$as_myself"; then
27448  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27449  exit 1
27450fi
27451
27452# Unset variables that we do not need and which cause bugs (e.g. in
27453# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27454# suppresses any "Segmentation fault" message there.  '((' could
27455# trigger a bug in pdksh 5.2.14.
27456for as_var in BASH_ENV ENV MAIL MAILPATH
27457do eval test x\${$as_var+set} = xset \
27458  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27459done
27460PS1='$ '
27461PS2='> '
27462PS4='+ '
27463
27464# NLS nuisances.
27465LC_ALL=C
27466export LC_ALL
27467LANGUAGE=C
27468export LANGUAGE
27469
27470# CDPATH.
27471(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27472
27473
27474# as_fn_error ERROR [LINENO LOG_FD]
27475# ---------------------------------
27476# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27477# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27478# script with status $?, using 1 if that was 0.
27479as_fn_error ()
27480{
27481  as_status=$?; test $as_status -eq 0 && as_status=1
27482  if test "$3"; then
27483    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27484    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27485  fi
27486  $as_echo "$as_me: error: $1" >&2
27487  as_fn_exit $as_status
27488} # as_fn_error
27489
27490
27491# as_fn_set_status STATUS
27492# -----------------------
27493# Set $? to STATUS, without forking.
27494as_fn_set_status ()
27495{
27496  return $1
27497} # as_fn_set_status
27498
27499# as_fn_exit STATUS
27500# -----------------
27501# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27502as_fn_exit ()
27503{
27504  set +e
27505  as_fn_set_status $1
27506  exit $1
27507} # as_fn_exit
27508
27509# as_fn_unset VAR
27510# ---------------
27511# Portably unset VAR.
27512as_fn_unset ()
27513{
27514  { eval $1=; unset $1;}
27515}
27516as_unset=as_fn_unset
27517# as_fn_append VAR VALUE
27518# ----------------------
27519# Append the text in VALUE to the end of the definition contained in VAR. Take
27520# advantage of any shell optimizations that allow amortized linear growth over
27521# repeated appends, instead of the typical quadratic growth present in naive
27522# implementations.
27523if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27524  eval 'as_fn_append ()
27525  {
27526    eval $1+=\$2
27527  }'
27528else
27529  as_fn_append ()
27530  {
27531    eval $1=\$$1\$2
27532  }
27533fi # as_fn_append
27534
27535# as_fn_arith ARG...
27536# ------------------
27537# Perform arithmetic evaluation on the ARGs, and store the result in the
27538# global $as_val. Take advantage of shells that can avoid forks. The arguments
27539# must be portable across $(()) and expr.
27540if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27541  eval 'as_fn_arith ()
27542  {
27543    as_val=$(( $* ))
27544  }'
27545else
27546  as_fn_arith ()
27547  {
27548    as_val=`expr "$@" || test $? -eq 1`
27549  }
27550fi # as_fn_arith
27551
27552
27553if expr a : '\(a\)' >/dev/null 2>&1 &&
27554   test "X`expr 00001 : '.*\(...\)'`" = X001; then
27555  as_expr=expr
27556else
27557  as_expr=false
27558fi
27559
27560if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27561  as_basename=basename
27562else
27563  as_basename=false
27564fi
27565
27566if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27567  as_dirname=dirname
27568else
27569  as_dirname=false
27570fi
27571
27572as_me=`$as_basename -- "$0" ||
27573$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27574	 X"$0" : 'X\(//\)$' \| \
27575	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27576$as_echo X/"$0" |
27577    sed '/^.*\/\([^/][^/]*\)\/*$/{
27578	    s//\1/
27579	    q
27580	  }
27581	  /^X\/\(\/\/\)$/{
27582	    s//\1/
27583	    q
27584	  }
27585	  /^X\/\(\/\).*/{
27586	    s//\1/
27587	    q
27588	  }
27589	  s/.*/./; q'`
27590
27591# Avoid depending upon Character Ranges.
27592as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27593as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27594as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27595as_cr_digits='0123456789'
27596as_cr_alnum=$as_cr_Letters$as_cr_digits
27597
27598ECHO_C= ECHO_N= ECHO_T=
27599case `echo -n x` in #(((((
27600-n*)
27601  case `echo 'xy\c'` in
27602  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
27603  xy)  ECHO_C='\c';;
27604  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27605       ECHO_T='	';;
27606  esac;;
27607*)
27608  ECHO_N='-n';;
27609esac
27610
27611rm -f conf$$ conf$$.exe conf$$.file
27612if test -d conf$$.dir; then
27613  rm -f conf$$.dir/conf$$.file
27614else
27615  rm -f conf$$.dir
27616  mkdir conf$$.dir 2>/dev/null
27617fi
27618if (echo >conf$$.file) 2>/dev/null; then
27619  if ln -s conf$$.file conf$$ 2>/dev/null; then
27620    as_ln_s='ln -s'
27621    # ... but there are two gotchas:
27622    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27623    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27624    # In both cases, we have to default to `cp -p'.
27625    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27626      as_ln_s='cp -p'
27627  elif ln conf$$.file conf$$ 2>/dev/null; then
27628    as_ln_s=ln
27629  else
27630    as_ln_s='cp -p'
27631  fi
27632else
27633  as_ln_s='cp -p'
27634fi
27635rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27636rmdir conf$$.dir 2>/dev/null
27637
27638
27639# as_fn_mkdir_p
27640# -------------
27641# Create "$as_dir" as a directory, including parents if necessary.
27642as_fn_mkdir_p ()
27643{
27644
27645  case $as_dir in #(
27646  -*) as_dir=./$as_dir;;
27647  esac
27648  test -d "$as_dir" || eval $as_mkdir_p || {
27649    as_dirs=
27650    while :; do
27651      case $as_dir in #(
27652      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27653      *) as_qdir=$as_dir;;
27654      esac
27655      as_dirs="'$as_qdir' $as_dirs"
27656      as_dir=`$as_dirname -- "$as_dir" ||
27657$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27658	 X"$as_dir" : 'X\(//\)[^/]' \| \
27659	 X"$as_dir" : 'X\(//\)$' \| \
27660	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27661$as_echo X"$as_dir" |
27662    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27663	    s//\1/
27664	    q
27665	  }
27666	  /^X\(\/\/\)[^/].*/{
27667	    s//\1/
27668	    q
27669	  }
27670	  /^X\(\/\/\)$/{
27671	    s//\1/
27672	    q
27673	  }
27674	  /^X\(\/\).*/{
27675	    s//\1/
27676	    q
27677	  }
27678	  s/.*/./; q'`
27679      test -d "$as_dir" && break
27680    done
27681    test -z "$as_dirs" || eval "mkdir $as_dirs"
27682  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27683
27684
27685} # as_fn_mkdir_p
27686if mkdir -p . 2>/dev/null; then
27687  as_mkdir_p='mkdir -p "$as_dir"'
27688else
27689  test -d ./-p && rmdir ./-p
27690  as_mkdir_p=false
27691fi
27692
27693if test -x / >/dev/null 2>&1; then
27694  as_test_x='test -x'
27695else
27696  if ls -dL / >/dev/null 2>&1; then
27697    as_ls_L_option=L
27698  else
27699    as_ls_L_option=
27700  fi
27701  as_test_x='
27702    eval sh -c '\''
27703      if test -d "$1"; then
27704	test -d "$1/.";
27705      else
27706	case $1 in #(
27707	-*)set "./$1";;
27708	esac;
27709	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27710	???[sx]*):;;*)false;;esac;fi
27711    '\'' sh
27712  '
27713fi
27714as_executable_p=$as_test_x
27715
27716# Sed expression to map a string onto a valid CPP name.
27717as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27718
27719# Sed expression to map a string onto a valid variable name.
27720as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27721
27722
27723exec 6>&1
27724## ----------------------------------- ##
27725## Main body of $CONFIG_STATUS script. ##
27726## ----------------------------------- ##
27727_ASEOF
27728test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27729
27730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27731# Save the log message, to keep $0 and so on meaningful, and to
27732# report actual input values of CONFIG_FILES etc. instead of their
27733# values after options handling.
27734ac_log="
27735This file was extended by Heimdal $as_me 1.3.99, which was
27736generated by GNU Autoconf 2.65.  Invocation command line was
27737
27738  CONFIG_FILES    = $CONFIG_FILES
27739  CONFIG_HEADERS  = $CONFIG_HEADERS
27740  CONFIG_LINKS    = $CONFIG_LINKS
27741  CONFIG_COMMANDS = $CONFIG_COMMANDS
27742  $ $0 $@
27743
27744on `(hostname || uname -n) 2>/dev/null | sed 1q`
27745"
27746
27747_ACEOF
27748
27749case $ac_config_files in *"
27750"*) set x $ac_config_files; shift; ac_config_files=$*;;
27751esac
27752
27753case $ac_config_headers in *"
27754"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27755esac
27756
27757
27758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27759# Files that config.status was made for.
27760config_files="$ac_config_files"
27761config_headers="$ac_config_headers"
27762config_commands="$ac_config_commands"
27763
27764_ACEOF
27765
27766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27767ac_cs_usage="\
27768\`$as_me' instantiates files and other configuration actions
27769from templates according to the current configuration.  Unless the files
27770and actions are specified as TAGs, all are instantiated by default.
27771
27772Usage: $0 [OPTION]... [TAG]...
27773
27774  -h, --help       print this help, then exit
27775  -V, --version    print version number and configuration settings, then exit
27776      --config     print configuration, then exit
27777  -q, --quiet, --silent
27778                   do not print progress messages
27779  -d, --debug      don't remove temporary files
27780      --recheck    update $as_me by reconfiguring in the same conditions
27781      --file=FILE[:TEMPLATE]
27782                   instantiate the configuration file FILE
27783      --header=FILE[:TEMPLATE]
27784                   instantiate the configuration header FILE
27785
27786Configuration files:
27787$config_files
27788
27789Configuration headers:
27790$config_headers
27791
27792Configuration commands:
27793$config_commands
27794
27795Report bugs to <heimdal-bugs@h5l.org>."
27796
27797_ACEOF
27798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27799ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27800ac_cs_version="\\
27801Heimdal config.status 1.3.99
27802configured by $0, generated by GNU Autoconf 2.65,
27803  with options \\"\$ac_cs_config\\"
27804
27805Copyright (C) 2009 Free Software Foundation, Inc.
27806This config.status script is free software; the Free Software Foundation
27807gives unlimited permission to copy, distribute and modify it."
27808
27809ac_pwd='$ac_pwd'
27810srcdir='$srcdir'
27811INSTALL='$INSTALL'
27812MKDIR_P='$MKDIR_P'
27813AWK='$AWK'
27814test -n "\$AWK" || AWK=awk
27815_ACEOF
27816
27817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27818# The default lists apply if the user does not specify any file.
27819ac_need_defaults=:
27820while test $# != 0
27821do
27822  case $1 in
27823  --*=*)
27824    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27825    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27826    ac_shift=:
27827    ;;
27828  *)
27829    ac_option=$1
27830    ac_optarg=$2
27831    ac_shift=shift
27832    ;;
27833  esac
27834
27835  case $ac_option in
27836  # Handling of the options.
27837  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27838    ac_cs_recheck=: ;;
27839  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27840    $as_echo "$ac_cs_version"; exit ;;
27841  --config | --confi | --conf | --con | --co | --c )
27842    $as_echo "$ac_cs_config"; exit ;;
27843  --debug | --debu | --deb | --de | --d | -d )
27844    debug=: ;;
27845  --file | --fil | --fi | --f )
27846    $ac_shift
27847    case $ac_optarg in
27848    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27849    esac
27850    as_fn_append CONFIG_FILES " '$ac_optarg'"
27851    ac_need_defaults=false;;
27852  --header | --heade | --head | --hea )
27853    $ac_shift
27854    case $ac_optarg in
27855    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27856    esac
27857    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27858    ac_need_defaults=false;;
27859  --he | --h)
27860    # Conflict between --help and --header
27861    as_fn_error "ambiguous option: \`$1'
27862Try \`$0 --help' for more information.";;
27863  --help | --hel | -h )
27864    $as_echo "$ac_cs_usage"; exit ;;
27865  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27866  | -silent | --silent | --silen | --sile | --sil | --si | --s)
27867    ac_cs_silent=: ;;
27868
27869  # This is an error.
27870  -*) as_fn_error "unrecognized option: \`$1'
27871Try \`$0 --help' for more information." ;;
27872
27873  *) as_fn_append ac_config_targets " $1"
27874     ac_need_defaults=false ;;
27875
27876  esac
27877  shift
27878done
27879
27880ac_configure_extra_args=
27881
27882if $ac_cs_silent; then
27883  exec 6>/dev/null
27884  ac_configure_extra_args="$ac_configure_extra_args --silent"
27885fi
27886
27887_ACEOF
27888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27889if \$ac_cs_recheck; then
27890  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27891  shift
27892  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27893  CONFIG_SHELL='$SHELL'
27894  export CONFIG_SHELL
27895  exec "\$@"
27896fi
27897
27898_ACEOF
27899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27900exec 5>>config.log
27901{
27902  echo
27903  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27904## Running $as_me. ##
27905_ASBOX
27906  $as_echo "$ac_log"
27907} >&5
27908
27909_ACEOF
27910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27911#
27912# INIT-COMMANDS
27913#
27914AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27915
27916
27917# The HP-UX ksh and POSIX shell print the target directory to stdout
27918# if CDPATH is set.
27919(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27920
27921sed_quote_subst='$sed_quote_subst'
27922double_quote_subst='$double_quote_subst'
27923delay_variable_subst='$delay_variable_subst'
27924macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
27925macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
27926enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
27927enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
27928pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
27929enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
27930host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
27931host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
27932host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
27933build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
27934build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
27935build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
27936SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
27937Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
27938GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
27939EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
27940FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
27941LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
27942NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
27943LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
27944max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
27945ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
27946exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
27947lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
27948lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
27949lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
27950reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
27951reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27952deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
27953file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
27954AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
27955AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
27956STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
27957RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
27958old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27959old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27960old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27961CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
27962CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
27963compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
27964GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
27965lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
27966lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
27967lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
27968lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
27969objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
27970SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
27971ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
27972MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
27973lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
27974lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
27975lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
27976lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
27977lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
27978need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
27979DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
27980NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
27981LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
27982OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
27983OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
27984libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
27985shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27986extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27987archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
27988enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
27989export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
27990whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
27991compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
27992old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27993old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27994archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27995archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27996module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27997module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27998with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
27999allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28000no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28001hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28002hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28003hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28004hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28005hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28006hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28007hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28008hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28009inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28010link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28011fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28012always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28013export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28014exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28015include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28016prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28017file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28018variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28019need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28020need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28021version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28022runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28023shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28024shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28025libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28026library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28027soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28028postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28029postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28030finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28031finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28032hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28033sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28034sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28035hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28036enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28037enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28038enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28039old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28040striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28041
28042LTCC='$LTCC'
28043LTCFLAGS='$LTCFLAGS'
28044compiler='$compiler_DEFAULT'
28045
28046# Quote evaled strings.
28047for var in SED \
28048GREP \
28049EGREP \
28050FGREP \
28051LD \
28052NM \
28053LN_S \
28054lt_SP2NL \
28055lt_NL2SP \
28056reload_flag \
28057deplibs_check_method \
28058file_magic_cmd \
28059AR \
28060AR_FLAGS \
28061STRIP \
28062RANLIB \
28063CC \
28064CFLAGS \
28065compiler \
28066lt_cv_sys_global_symbol_pipe \
28067lt_cv_sys_global_symbol_to_cdecl \
28068lt_cv_sys_global_symbol_to_c_name_address \
28069lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28070SHELL \
28071ECHO \
28072lt_prog_compiler_no_builtin_flag \
28073lt_prog_compiler_wl \
28074lt_prog_compiler_pic \
28075lt_prog_compiler_static \
28076lt_cv_prog_compiler_c_o \
28077need_locks \
28078DSYMUTIL \
28079NMEDIT \
28080LIPO \
28081OTOOL \
28082OTOOL64 \
28083shrext_cmds \
28084export_dynamic_flag_spec \
28085whole_archive_flag_spec \
28086compiler_needs_object \
28087with_gnu_ld \
28088allow_undefined_flag \
28089no_undefined_flag \
28090hardcode_libdir_flag_spec \
28091hardcode_libdir_flag_spec_ld \
28092hardcode_libdir_separator \
28093fix_srcfile_path \
28094exclude_expsyms \
28095include_expsyms \
28096file_list_spec \
28097variables_saved_for_relink \
28098libname_spec \
28099library_names_spec \
28100soname_spec \
28101finish_eval \
28102old_striplib \
28103striplib; do
28104    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28105    *[\\\\\\\`\\"\\\$]*)
28106      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28107      ;;
28108    *)
28109      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28110      ;;
28111    esac
28112done
28113
28114# Double-quote double-evaled strings.
28115for var in reload_cmds \
28116old_postinstall_cmds \
28117old_postuninstall_cmds \
28118old_archive_cmds \
28119extract_expsyms_cmds \
28120old_archive_from_new_cmds \
28121old_archive_from_expsyms_cmds \
28122archive_cmds \
28123archive_expsym_cmds \
28124module_cmds \
28125module_expsym_cmds \
28126export_symbols_cmds \
28127prelink_cmds \
28128postinstall_cmds \
28129postuninstall_cmds \
28130finish_cmds \
28131sys_lib_search_path_spec \
28132sys_lib_dlsearch_path_spec; do
28133    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28134    *[\\\\\\\`\\"\\\$]*)
28135      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28136      ;;
28137    *)
28138      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28139      ;;
28140    esac
28141done
28142
28143# Fix-up fallback echo if it was mangled by the above quoting rules.
28144case \$lt_ECHO in
28145*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28146  ;;
28147esac
28148
28149ac_aux_dir='$ac_aux_dir'
28150xsi_shell='$xsi_shell'
28151lt_shell_append='$lt_shell_append'
28152
28153# See if we are running on zsh, and set the options which allow our
28154# commands through without removal of \ escapes INIT.
28155if test -n "\${ZSH_VERSION+set}" ; then
28156   setopt NO_GLOB_SUBST
28157fi
28158
28159
28160    PACKAGE='$PACKAGE'
28161    VERSION='$VERSION'
28162    TIMESTAMP='$TIMESTAMP'
28163    RM='$RM'
28164    ofile='$ofile'
28165
28166
28167
28168
28169_ACEOF
28170
28171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28172
28173# Handling of arguments.
28174for ac_config_target in $ac_config_targets
28175do
28176  case $ac_config_target in
28177    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
28178    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28179    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28180    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28181    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
28182    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28183    "include/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES include/gssapi/Makefile" ;;
28184    "include/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/hcrypto/Makefile" ;;
28185    "include/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
28186    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
28187    "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
28188    "lib/auth/afskauthlib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
28189    "lib/auth/pam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
28190    "lib/auth/sia/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
28191    "lib/asn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
28192    "lib/com_err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
28193    "lib/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hcrypto/Makefile" ;;
28194    "lib/editline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
28195    "lib/hx509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hx509/Makefile" ;;
28196    "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
28197    "lib/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ntlm/Makefile" ;;
28198    "lib/hdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
28199    "lib/ipc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ipc/Makefile" ;;
28200    "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
28201    "lib/kafs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
28202    "lib/kdfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
28203    "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
28204    "lib/otp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
28205    "lib/roken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
28206    "lib/sl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
28207    "lib/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sqlite/Makefile" ;;
28208    "lib/vers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
28209    "lib/wind/Makefile") CONFIG_FILES="$CONFIG_FILES lib/wind/Makefile" ;;
28210    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
28211    "kuser/Makefile") CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
28212    "kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
28213    "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
28214    "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
28215    "kcm/Makefile") CONFIG_FILES="$CONFIG_FILES kcm/Makefile" ;;
28216    "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
28217    "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
28218    "appl/afsutil/Makefile") CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
28219    "appl/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
28220    "appl/ftp/common/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
28221    "appl/ftp/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
28222    "appl/ftp/ftpd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
28223    "appl/gssmask/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gssmask/Makefile" ;;
28224    "appl/kx/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
28225    "appl/login/Makefile") CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
28226    "appl/otp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
28227    "appl/popper/Makefile") CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
28228    "appl/push/Makefile") CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
28229    "appl/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
28230    "appl/rcp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
28231    "appl/su/Makefile") CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
28232    "appl/xnlock/Makefile") CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
28233    "appl/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
28234    "appl/telnet/libtelnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
28235    "appl/telnet/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
28236    "appl/telnet/telnetd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
28237    "appl/test/Makefile") CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
28238    "appl/kf/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
28239    "appl/dceutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
28240    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
28241    "tests/bin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bin/Makefile" ;;
28242    "tests/can/Makefile") CONFIG_FILES="$CONFIG_FILES tests/can/Makefile" ;;
28243    "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;;
28244    "tests/kdc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kdc/Makefile" ;;
28245    "tests/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldap/Makefile" ;;
28246    "tests/gss/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss/Makefile" ;;
28247    "tests/java/Makefile") CONFIG_FILES="$CONFIG_FILES tests/java/Makefile" ;;
28248    "tests/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugin/Makefile" ;;
28249    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
28250    "packages/mac/Makefile") CONFIG_FILES="$CONFIG_FILES packages/mac/Makefile" ;;
28251    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28252    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28253
28254  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28255  esac
28256done
28257
28258
28259# If the user did not use the arguments to specify the items to instantiate,
28260# then the envvar interface is used.  Set only those that are not.
28261# We use the long form for the default assignment because of an extremely
28262# bizarre bug on SunOS 4.1.3.
28263if $ac_need_defaults; then
28264  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28265  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28266  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28267fi
28268
28269# Have a temporary directory for convenience.  Make it in the build tree
28270# simply because there is no reason against having it here, and in addition,
28271# creating and moving files from /tmp can sometimes cause problems.
28272# Hook for its removal unless debugging.
28273# Note that there is a small window in which the directory will not be cleaned:
28274# after its creation but before its name has been assigned to `$tmp'.
28275$debug ||
28276{
28277  tmp=
28278  trap 'exit_status=$?
28279  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28280' 0
28281  trap 'as_fn_exit 1' 1 2 13 15
28282}
28283# Create a (secure) tmp directory for tmp files.
28284
28285{
28286  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28287  test -n "$tmp" && test -d "$tmp"
28288}  ||
28289{
28290  tmp=./conf$$-$RANDOM
28291  (umask 077 && mkdir "$tmp")
28292} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28293
28294# Set up the scripts for CONFIG_FILES section.
28295# No need to generate them if there are no CONFIG_FILES.
28296# This happens for instance with `./config.status config.h'.
28297if test -n "$CONFIG_FILES"; then
28298
28299
28300ac_cr=`echo X | tr X '\015'`
28301# On cygwin, bash can eat \r inside `` if the user requested igncr.
28302# But we know of no other shell where ac_cr would be empty at this
28303# point, so we can use a bashism as a fallback.
28304if test "x$ac_cr" = x; then
28305  eval ac_cr=\$\'\\r\'
28306fi
28307ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28308if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28309  ac_cs_awk_cr='\r'
28310else
28311  ac_cs_awk_cr=$ac_cr
28312fi
28313
28314echo 'BEGIN {' >"$tmp/subs1.awk" &&
28315_ACEOF
28316
28317
28318{
28319  echo "cat >conf$$subs.awk <<_ACEOF" &&
28320  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28321  echo "_ACEOF"
28322} >conf$$subs.sh ||
28323  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28324ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28325ac_delim='%!_!# '
28326for ac_last_try in false false false false false :; do
28327  . ./conf$$subs.sh ||
28328    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28329
28330  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28331  if test $ac_delim_n = $ac_delim_num; then
28332    break
28333  elif $ac_last_try; then
28334    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28335  else
28336    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28337  fi
28338done
28339rm -f conf$$subs.sh
28340
28341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28342cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28343_ACEOF
28344sed -n '
28345h
28346s/^/S["/; s/!.*/"]=/
28347p
28348g
28349s/^[^!]*!//
28350:repl
28351t repl
28352s/'"$ac_delim"'$//
28353t delim
28354:nl
28355h
28356s/\(.\{148\}\)..*/\1/
28357t more1
28358s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28359p
28360n
28361b repl
28362:more1
28363s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28364p
28365g
28366s/.\{148\}//
28367t nl
28368:delim
28369h
28370s/\(.\{148\}\)..*/\1/
28371t more2
28372s/["\\]/\\&/g; s/^/"/; s/$/"/
28373p
28374b
28375:more2
28376s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28377p
28378g
28379s/.\{148\}//
28380t delim
28381' <conf$$subs.awk | sed '
28382/^[^""]/{
28383  N
28384  s/\n//
28385}
28386' >>$CONFIG_STATUS || ac_write_fail=1
28387rm -f conf$$subs.awk
28388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28389_ACAWK
28390cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28391  for (key in S) S_is_set[key] = 1
28392  FS = ""
28393
28394}
28395{
28396  line = $ 0
28397  nfields = split(line, field, "@")
28398  substed = 0
28399  len = length(field[1])
28400  for (i = 2; i < nfields; i++) {
28401    key = field[i]
28402    keylen = length(key)
28403    if (S_is_set[key]) {
28404      value = S[key]
28405      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28406      len += length(value) + length(field[++i])
28407      substed = 1
28408    } else
28409      len += 1 + keylen
28410  }
28411
28412  print line
28413}
28414
28415_ACAWK
28416_ACEOF
28417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28418if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28419  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28420else
28421  cat
28422fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28423  || as_fn_error "could not setup config files machinery" "$LINENO" 5
28424_ACEOF
28425
28426# VPATH may cause trouble with some makes, so we remove $(srcdir),
28427# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28428# trailing colons and then remove the whole line if VPATH becomes empty
28429# (actually we leave an empty line to preserve line numbers).
28430if test "x$srcdir" = x.; then
28431  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
28432s/:*\$(srcdir):*/:/
28433s/:*\${srcdir}:*/:/
28434s/:*@srcdir@:*/:/
28435s/^\([^=]*=[	 ]*\):*/\1/
28436s/:*$//
28437s/^[^=]*=[	 ]*$//
28438}'
28439fi
28440
28441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28442fi # test -n "$CONFIG_FILES"
28443
28444# Set up the scripts for CONFIG_HEADERS section.
28445# No need to generate them if there are no CONFIG_HEADERS.
28446# This happens for instance with `./config.status Makefile'.
28447if test -n "$CONFIG_HEADERS"; then
28448cat >"$tmp/defines.awk" <<\_ACAWK ||
28449BEGIN {
28450_ACEOF
28451
28452# Transform confdefs.h into an awk script `defines.awk', embedded as
28453# here-document in config.status, that substitutes the proper values into
28454# config.h.in to produce config.h.
28455
28456# Create a delimiter string that does not exist in confdefs.h, to ease
28457# handling of long lines.
28458ac_delim='%!_!# '
28459for ac_last_try in false false :; do
28460  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28461  if test -z "$ac_t"; then
28462    break
28463  elif $ac_last_try; then
28464    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28465  else
28466    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28467  fi
28468done
28469
28470# For the awk script, D is an array of macro values keyed by name,
28471# likewise P contains macro parameters if any.  Preserve backslash
28472# newline sequences.
28473
28474ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28475sed -n '
28476s/.\{148\}/&'"$ac_delim"'/g
28477t rset
28478:rset
28479s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
28480t def
28481d
28482:def
28483s/\\$//
28484t bsnl
28485s/["\\]/\\&/g
28486s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28487D["\1"]=" \3"/p
28488s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
28489d
28490:bsnl
28491s/["\\]/\\&/g
28492s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28493D["\1"]=" \3\\\\\\n"\\/p
28494t cont
28495s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28496t cont
28497d
28498:cont
28499n
28500s/.\{148\}/&'"$ac_delim"'/g
28501t clear
28502:clear
28503s/\\$//
28504t bsnlc
28505s/["\\]/\\&/g; s/^/"/; s/$/"/p
28506d
28507:bsnlc
28508s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28509b cont
28510' <confdefs.h | sed '
28511s/'"$ac_delim"'/"\\\
28512"/g' >>$CONFIG_STATUS || ac_write_fail=1
28513
28514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28515  for (key in D) D_is_set[key] = 1
28516  FS = ""
28517}
28518/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28519  line = \$ 0
28520  split(line, arg, " ")
28521  if (arg[1] == "#") {
28522    defundef = arg[2]
28523    mac1 = arg[3]
28524  } else {
28525    defundef = substr(arg[1], 2)
28526    mac1 = arg[2]
28527  }
28528  split(mac1, mac2, "(") #)
28529  macro = mac2[1]
28530  prefix = substr(line, 1, index(line, defundef) - 1)
28531  if (D_is_set[macro]) {
28532    # Preserve the white space surrounding the "#".
28533    print prefix "define", macro P[macro] D[macro]
28534    next
28535  } else {
28536    # Replace #undef with comments.  This is necessary, for example,
28537    # in the case of _POSIX_SOURCE, which is predefined and required
28538    # on some systems where configure will not decide to define it.
28539    if (defundef == "undef") {
28540      print "/*", prefix defundef, macro, "*/"
28541      next
28542    }
28543  }
28544}
28545{ print }
28546_ACAWK
28547_ACEOF
28548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28549  as_fn_error "could not setup config headers machinery" "$LINENO" 5
28550fi # test -n "$CONFIG_HEADERS"
28551
28552
28553eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28554shift
28555for ac_tag
28556do
28557  case $ac_tag in
28558  :[FHLC]) ac_mode=$ac_tag; continue;;
28559  esac
28560  case $ac_mode$ac_tag in
28561  :[FHL]*:*);;
28562  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28563  :[FH]-) ac_tag=-:-;;
28564  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28565  esac
28566  ac_save_IFS=$IFS
28567  IFS=:
28568  set x $ac_tag
28569  IFS=$ac_save_IFS
28570  shift
28571  ac_file=$1
28572  shift
28573
28574  case $ac_mode in
28575  :L) ac_source=$1;;
28576  :[FH])
28577    ac_file_inputs=
28578    for ac_f
28579    do
28580      case $ac_f in
28581      -) ac_f="$tmp/stdin";;
28582      *) # Look for the file first in the build tree, then in the source tree
28583	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
28584	 # because $ac_f cannot contain `:'.
28585	 test -f "$ac_f" ||
28586	   case $ac_f in
28587	   [\\/$]*) false;;
28588	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28589	   esac ||
28590	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28591      esac
28592      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28593      as_fn_append ac_file_inputs " '$ac_f'"
28594    done
28595
28596    # Let's still pretend it is `configure' which instantiates (i.e., don't
28597    # use $as_me), people would be surprised to read:
28598    #    /* config.h.  Generated by config.status.  */
28599    configure_input='Generated from '`
28600	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28601	`' by configure.'
28602    if test x"$ac_file" != x-; then
28603      configure_input="$ac_file.  $configure_input"
28604      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28605$as_echo "$as_me: creating $ac_file" >&6;}
28606    fi
28607    # Neutralize special characters interpreted by sed in replacement strings.
28608    case $configure_input in #(
28609    *\&* | *\|* | *\\* )
28610       ac_sed_conf_input=`$as_echo "$configure_input" |
28611       sed 's/[\\\\&|]/\\\\&/g'`;; #(
28612    *) ac_sed_conf_input=$configure_input;;
28613    esac
28614
28615    case $ac_tag in
28616    *:-:* | *:-) cat >"$tmp/stdin" \
28617      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28618    esac
28619    ;;
28620  esac
28621
28622  ac_dir=`$as_dirname -- "$ac_file" ||
28623$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28624	 X"$ac_file" : 'X\(//\)[^/]' \| \
28625	 X"$ac_file" : 'X\(//\)$' \| \
28626	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28627$as_echo X"$ac_file" |
28628    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28629	    s//\1/
28630	    q
28631	  }
28632	  /^X\(\/\/\)[^/].*/{
28633	    s//\1/
28634	    q
28635	  }
28636	  /^X\(\/\/\)$/{
28637	    s//\1/
28638	    q
28639	  }
28640	  /^X\(\/\).*/{
28641	    s//\1/
28642	    q
28643	  }
28644	  s/.*/./; q'`
28645  as_dir="$ac_dir"; as_fn_mkdir_p
28646  ac_builddir=.
28647
28648case "$ac_dir" in
28649.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28650*)
28651  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28652  # A ".." for each directory in $ac_dir_suffix.
28653  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28654  case $ac_top_builddir_sub in
28655  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28656  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28657  esac ;;
28658esac
28659ac_abs_top_builddir=$ac_pwd
28660ac_abs_builddir=$ac_pwd$ac_dir_suffix
28661# for backward compatibility:
28662ac_top_builddir=$ac_top_build_prefix
28663
28664case $srcdir in
28665  .)  # We are building in place.
28666    ac_srcdir=.
28667    ac_top_srcdir=$ac_top_builddir_sub
28668    ac_abs_top_srcdir=$ac_pwd ;;
28669  [\\/]* | ?:[\\/]* )  # Absolute name.
28670    ac_srcdir=$srcdir$ac_dir_suffix;
28671    ac_top_srcdir=$srcdir
28672    ac_abs_top_srcdir=$srcdir ;;
28673  *) # Relative name.
28674    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28675    ac_top_srcdir=$ac_top_build_prefix$srcdir
28676    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28677esac
28678ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28679
28680
28681  case $ac_mode in
28682  :F)
28683  #
28684  # CONFIG_FILE
28685  #
28686
28687  case $INSTALL in
28688  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28689  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28690  esac
28691  ac_MKDIR_P=$MKDIR_P
28692  case $MKDIR_P in
28693  [\\/$]* | ?:[\\/]* ) ;;
28694  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28695  esac
28696_ACEOF
28697
28698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28699# If the template does not know about datarootdir, expand it.
28700# FIXME: This hack should be removed a few years after 2.60.
28701ac_datarootdir_hack=; ac_datarootdir_seen=
28702ac_sed_dataroot='
28703/datarootdir/ {
28704  p
28705  q
28706}
28707/@datadir@/p
28708/@docdir@/p
28709/@infodir@/p
28710/@localedir@/p
28711/@mandir@/p'
28712case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28713*datarootdir*) ac_datarootdir_seen=yes;;
28714*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28715  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28716$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28717_ACEOF
28718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28719  ac_datarootdir_hack='
28720  s&@datadir@&$datadir&g
28721  s&@docdir@&$docdir&g
28722  s&@infodir@&$infodir&g
28723  s&@localedir@&$localedir&g
28724  s&@mandir@&$mandir&g
28725  s&\\\${datarootdir}&$datarootdir&g' ;;
28726esac
28727_ACEOF
28728
28729# Neutralize VPATH when `$srcdir' = `.'.
28730# Shell code in configure.ac might set extrasub.
28731# FIXME: do we really want to maintain this feature?
28732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28733ac_sed_extra="$ac_vpsub
28734$extrasub
28735_ACEOF
28736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28737:t
28738/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28739s|@configure_input@|$ac_sed_conf_input|;t t
28740s&@top_builddir@&$ac_top_builddir_sub&;t t
28741s&@top_build_prefix@&$ac_top_build_prefix&;t t
28742s&@srcdir@&$ac_srcdir&;t t
28743s&@abs_srcdir@&$ac_abs_srcdir&;t t
28744s&@top_srcdir@&$ac_top_srcdir&;t t
28745s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28746s&@builddir@&$ac_builddir&;t t
28747s&@abs_builddir@&$ac_abs_builddir&;t t
28748s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28749s&@INSTALL@&$ac_INSTALL&;t t
28750s&@MKDIR_P@&$ac_MKDIR_P&;t t
28751$ac_datarootdir_hack
28752"
28753eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28754  || as_fn_error "could not create $ac_file" "$LINENO" 5
28755
28756test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28757  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28758  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28759  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28760which seems to be undefined.  Please make sure it is defined." >&5
28761$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28762which seems to be undefined.  Please make sure it is defined." >&2;}
28763
28764  rm -f "$tmp/stdin"
28765  case $ac_file in
28766  -) cat "$tmp/out" && rm -f "$tmp/out";;
28767  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28768  esac \
28769  || as_fn_error "could not create $ac_file" "$LINENO" 5
28770 ;;
28771  :H)
28772  #
28773  # CONFIG_HEADER
28774  #
28775  if test x"$ac_file" != x-; then
28776    {
28777      $as_echo "/* $configure_input  */" \
28778      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28779    } >"$tmp/config.h" \
28780      || as_fn_error "could not create $ac_file" "$LINENO" 5
28781    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28782      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28783$as_echo "$as_me: $ac_file is unchanged" >&6;}
28784    else
28785      rm -f "$ac_file"
28786      mv "$tmp/config.h" "$ac_file" \
28787	|| as_fn_error "could not create $ac_file" "$LINENO" 5
28788    fi
28789  else
28790    $as_echo "/* $configure_input  */" \
28791      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28792      || as_fn_error "could not create -" "$LINENO" 5
28793  fi
28794# Compute "$ac_file"'s index in $config_headers.
28795_am_arg="$ac_file"
28796_am_stamp_count=1
28797for _am_header in $config_headers :; do
28798  case $_am_header in
28799    $_am_arg | $_am_arg:* )
28800      break ;;
28801    * )
28802      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28803  esac
28804done
28805echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28806$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28807	 X"$_am_arg" : 'X\(//\)[^/]' \| \
28808	 X"$_am_arg" : 'X\(//\)$' \| \
28809	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28810$as_echo X"$_am_arg" |
28811    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28812	    s//\1/
28813	    q
28814	  }
28815	  /^X\(\/\/\)[^/].*/{
28816	    s//\1/
28817	    q
28818	  }
28819	  /^X\(\/\/\)$/{
28820	    s//\1/
28821	    q
28822	  }
28823	  /^X\(\/\).*/{
28824	    s//\1/
28825	    q
28826	  }
28827	  s/.*/./; q'`/stamp-h$_am_stamp_count
28828 ;;
28829
28830  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28831$as_echo "$as_me: executing $ac_file commands" >&6;}
28832 ;;
28833  esac
28834
28835
28836  case $ac_file$ac_mode in
28837    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28838  # Autoconf 2.62 quotes --file arguments for eval, but not when files
28839  # are listed without --file.  Let's play safe and only enable the eval
28840  # if we detect the quoting.
28841  case $CONFIG_FILES in
28842  *\'*) eval set x "$CONFIG_FILES" ;;
28843  *)   set x $CONFIG_FILES ;;
28844  esac
28845  shift
28846  for mf
28847  do
28848    # Strip MF so we end up with the name of the file.
28849    mf=`echo "$mf" | sed -e 's/:.*$//'`
28850    # Check whether this is an Automake generated Makefile or not.
28851    # We used to match only the files named `Makefile.in', but
28852    # some people rename them; so instead we look at the file content.
28853    # Grep'ing the first line is not enough: some people post-process
28854    # each Makefile.in and add a new line on top of each file to say so.
28855    # Grep'ing the whole file is not good either: AIX grep has a line
28856    # limit of 2048, but all sed's we know have understand at least 4000.
28857    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28858      dirpart=`$as_dirname -- "$mf" ||
28859$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28860	 X"$mf" : 'X\(//\)[^/]' \| \
28861	 X"$mf" : 'X\(//\)$' \| \
28862	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28863$as_echo X"$mf" |
28864    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28865	    s//\1/
28866	    q
28867	  }
28868	  /^X\(\/\/\)[^/].*/{
28869	    s//\1/
28870	    q
28871	  }
28872	  /^X\(\/\/\)$/{
28873	    s//\1/
28874	    q
28875	  }
28876	  /^X\(\/\).*/{
28877	    s//\1/
28878	    q
28879	  }
28880	  s/.*/./; q'`
28881    else
28882      continue
28883    fi
28884    # Extract the definition of DEPDIR, am__include, and am__quote
28885    # from the Makefile without running `make'.
28886    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28887    test -z "$DEPDIR" && continue
28888    am__include=`sed -n 's/^am__include = //p' < "$mf"`
28889    test -z "am__include" && continue
28890    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28891    # When using ansi2knr, U may be empty or an underscore; expand it
28892    U=`sed -n 's/^U = //p' < "$mf"`
28893    # Find all dependency output files, they are included files with
28894    # $(DEPDIR) in their names.  We invoke sed twice because it is the
28895    # simplest approach to changing $(DEPDIR) to its actual value in the
28896    # expansion.
28897    for file in `sed -n "
28898      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28899	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28900      # Make sure the directory exists.
28901      test -f "$dirpart/$file" && continue
28902      fdir=`$as_dirname -- "$file" ||
28903$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28904	 X"$file" : 'X\(//\)[^/]' \| \
28905	 X"$file" : 'X\(//\)$' \| \
28906	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28907$as_echo X"$file" |
28908    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28909	    s//\1/
28910	    q
28911	  }
28912	  /^X\(\/\/\)[^/].*/{
28913	    s//\1/
28914	    q
28915	  }
28916	  /^X\(\/\/\)$/{
28917	    s//\1/
28918	    q
28919	  }
28920	  /^X\(\/\).*/{
28921	    s//\1/
28922	    q
28923	  }
28924	  s/.*/./; q'`
28925      as_dir=$dirpart/$fdir; as_fn_mkdir_p
28926      # echo "creating $dirpart/$file"
28927      echo '# dummy' > "$dirpart/$file"
28928    done
28929  done
28930}
28931 ;;
28932    "libtool":C)
28933
28934    # See if we are running on zsh, and set the options which allow our
28935    # commands through without removal of \ escapes.
28936    if test -n "${ZSH_VERSION+set}" ; then
28937      setopt NO_GLOB_SUBST
28938    fi
28939
28940    cfgfile="${ofile}T"
28941    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28942    $RM "$cfgfile"
28943
28944    cat <<_LT_EOF >> "$cfgfile"
28945#! $SHELL
28946
28947# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28948# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28949# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28950# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28951#
28952#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28953#                 2006, 2007, 2008 Free Software Foundation, Inc.
28954#   Written by Gordon Matzigkeit, 1996
28955#
28956#   This file is part of GNU Libtool.
28957#
28958# GNU Libtool is free software; you can redistribute it and/or
28959# modify it under the terms of the GNU General Public License as
28960# published by the Free Software Foundation; either version 2 of
28961# the License, or (at your option) any later version.
28962#
28963# As a special exception to the GNU General Public License,
28964# if you distribute this file as part of a program or library that
28965# is built using GNU Libtool, you may include this file under the
28966# same distribution terms that you use for the rest of that program.
28967#
28968# GNU Libtool is distributed in the hope that it will be useful,
28969# but WITHOUT ANY WARRANTY; without even the implied warranty of
28970# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28971# GNU General Public License for more details.
28972#
28973# You should have received a copy of the GNU General Public License
28974# along with GNU Libtool; see the file COPYING.  If not, a copy
28975# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28976# obtained by writing to the Free Software Foundation, Inc.,
28977# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28978
28979
28980# The names of the tagged configurations supported by this script.
28981available_tags=""
28982
28983# ### BEGIN LIBTOOL CONFIG
28984
28985# Which release of libtool.m4 was used?
28986macro_version=$macro_version
28987macro_revision=$macro_revision
28988
28989# Whether or not to build shared libraries.
28990build_libtool_libs=$enable_shared
28991
28992# Whether or not to build static libraries.
28993build_old_libs=$enable_static
28994
28995# What type of objects to build.
28996pic_mode=$pic_mode
28997
28998# Whether or not to optimize for fast installation.
28999fast_install=$enable_fast_install
29000
29001# The host system.
29002host_alias=$host_alias
29003host=$host
29004host_os=$host_os
29005
29006# The build system.
29007build_alias=$build_alias
29008build=$build
29009build_os=$build_os
29010
29011# A sed program that does not truncate output.
29012SED=$lt_SED
29013
29014# Sed that helps us avoid accidentally triggering echo(1) options like -n.
29015Xsed="\$SED -e 1s/^X//"
29016
29017# A grep program that handles long lines.
29018GREP=$lt_GREP
29019
29020# An ERE matcher.
29021EGREP=$lt_EGREP
29022
29023# A literal string matcher.
29024FGREP=$lt_FGREP
29025
29026# A BSD- or MS-compatible name lister.
29027NM=$lt_NM
29028
29029# Whether we need soft or hard links.
29030LN_S=$lt_LN_S
29031
29032# What is the maximum length of a command?
29033max_cmd_len=$max_cmd_len
29034
29035# Object file suffix (normally "o").
29036objext=$ac_objext
29037
29038# Executable file suffix (normally "").
29039exeext=$exeext
29040
29041# whether the shell understands "unset".
29042lt_unset=$lt_unset
29043
29044# turn spaces into newlines.
29045SP2NL=$lt_lt_SP2NL
29046
29047# turn newlines into spaces.
29048NL2SP=$lt_lt_NL2SP
29049
29050# How to create reloadable object files.
29051reload_flag=$lt_reload_flag
29052reload_cmds=$lt_reload_cmds
29053
29054# Method to check whether dependent libraries are shared objects.
29055deplibs_check_method=$lt_deplibs_check_method
29056
29057# Command to use when deplibs_check_method == "file_magic".
29058file_magic_cmd=$lt_file_magic_cmd
29059
29060# The archiver.
29061AR=$lt_AR
29062AR_FLAGS=$lt_AR_FLAGS
29063
29064# A symbol stripping program.
29065STRIP=$lt_STRIP
29066
29067# Commands used to install an old-style archive.
29068RANLIB=$lt_RANLIB
29069old_postinstall_cmds=$lt_old_postinstall_cmds
29070old_postuninstall_cmds=$lt_old_postuninstall_cmds
29071
29072# A C compiler.
29073LTCC=$lt_CC
29074
29075# LTCC compiler flags.
29076LTCFLAGS=$lt_CFLAGS
29077
29078# Take the output of nm and produce a listing of raw symbols and C names.
29079global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29080
29081# Transform the output of nm in a proper C declaration.
29082global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29083
29084# Transform the output of nm in a C name address pair.
29085global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29086
29087# Transform the output of nm in a C name address pair when lib prefix is needed.
29088global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29089
29090# The name of the directory that contains temporary libtool files.
29091objdir=$objdir
29092
29093# Shell to use when invoking shell scripts.
29094SHELL=$lt_SHELL
29095
29096# An echo program that does not interpret backslashes.
29097ECHO=$lt_ECHO
29098
29099# Used to examine libraries when file_magic_cmd begins with "file".
29100MAGIC_CMD=$MAGIC_CMD
29101
29102# Must we lock files when doing compilation?
29103need_locks=$lt_need_locks
29104
29105# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29106DSYMUTIL=$lt_DSYMUTIL
29107
29108# Tool to change global to local symbols on Mac OS X.
29109NMEDIT=$lt_NMEDIT
29110
29111# Tool to manipulate fat objects and archives on Mac OS X.
29112LIPO=$lt_LIPO
29113
29114# ldd/readelf like tool for Mach-O binaries on Mac OS X.
29115OTOOL=$lt_OTOOL
29116
29117# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29118OTOOL64=$lt_OTOOL64
29119
29120# Old archive suffix (normally "a").
29121libext=$libext
29122
29123# Shared library suffix (normally ".so").
29124shrext_cmds=$lt_shrext_cmds
29125
29126# The commands to extract the exported symbol list from a shared archive.
29127extract_expsyms_cmds=$lt_extract_expsyms_cmds
29128
29129# Variables whose values should be saved in libtool wrapper scripts and
29130# restored at link time.
29131variables_saved_for_relink=$lt_variables_saved_for_relink
29132
29133# Do we need the "lib" prefix for modules?
29134need_lib_prefix=$need_lib_prefix
29135
29136# Do we need a version for libraries?
29137need_version=$need_version
29138
29139# Library versioning type.
29140version_type=$version_type
29141
29142# Shared library runtime path variable.
29143runpath_var=$runpath_var
29144
29145# Shared library path variable.
29146shlibpath_var=$shlibpath_var
29147
29148# Is shlibpath searched before the hard-coded library search path?
29149shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29150
29151# Format of library name prefix.
29152libname_spec=$lt_libname_spec
29153
29154# List of archive names.  First name is the real one, the rest are links.
29155# The last name is the one that the linker finds with -lNAME
29156library_names_spec=$lt_library_names_spec
29157
29158# The coded name of the library, if different from the real name.
29159soname_spec=$lt_soname_spec
29160
29161# Command to use after installation of a shared archive.
29162postinstall_cmds=$lt_postinstall_cmds
29163
29164# Command to use after uninstallation of a shared archive.
29165postuninstall_cmds=$lt_postuninstall_cmds
29166
29167# Commands used to finish a libtool library installation in a directory.
29168finish_cmds=$lt_finish_cmds
29169
29170# As "finish_cmds", except a single script fragment to be evaled but
29171# not shown.
29172finish_eval=$lt_finish_eval
29173
29174# Whether we should hardcode library paths into libraries.
29175hardcode_into_libs=$hardcode_into_libs
29176
29177# Compile-time system search path for libraries.
29178sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29179
29180# Run-time system search path for libraries.
29181sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29182
29183# Whether dlopen is supported.
29184dlopen_support=$enable_dlopen
29185
29186# Whether dlopen of programs is supported.
29187dlopen_self=$enable_dlopen_self
29188
29189# Whether dlopen of statically linked programs is supported.
29190dlopen_self_static=$enable_dlopen_self_static
29191
29192# Commands to strip libraries.
29193old_striplib=$lt_old_striplib
29194striplib=$lt_striplib
29195
29196
29197# The linker used to build libraries.
29198LD=$lt_LD
29199
29200# Commands used to build an old-style archive.
29201old_archive_cmds=$lt_old_archive_cmds
29202
29203# A language specific compiler.
29204CC=$lt_compiler
29205
29206# Is the compiler the GNU compiler?
29207with_gcc=$GCC
29208
29209# Compiler flag to turn off builtin functions.
29210no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29211
29212# How to pass a linker flag through the compiler.
29213wl=$lt_lt_prog_compiler_wl
29214
29215# Additional compiler flags for building library objects.
29216pic_flag=$lt_lt_prog_compiler_pic
29217
29218# Compiler flag to prevent dynamic linking.
29219link_static_flag=$lt_lt_prog_compiler_static
29220
29221# Does compiler simultaneously support -c and -o options?
29222compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29223
29224# Whether or not to add -lc for building shared libraries.
29225build_libtool_need_lc=$archive_cmds_need_lc
29226
29227# Whether or not to disallow shared libs when runtime libs are static.
29228allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29229
29230# Compiler flag to allow reflexive dlopens.
29231export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29232
29233# Compiler flag to generate shared objects directly from archives.
29234whole_archive_flag_spec=$lt_whole_archive_flag_spec
29235
29236# Whether the compiler copes with passing no objects directly.
29237compiler_needs_object=$lt_compiler_needs_object
29238
29239# Create an old-style archive from a shared archive.
29240old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29241
29242# Create a temporary old-style archive to link instead of a shared archive.
29243old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29244
29245# Commands used to build a shared archive.
29246archive_cmds=$lt_archive_cmds
29247archive_expsym_cmds=$lt_archive_expsym_cmds
29248
29249# Commands used to build a loadable module if different from building
29250# a shared archive.
29251module_cmds=$lt_module_cmds
29252module_expsym_cmds=$lt_module_expsym_cmds
29253
29254# Whether we are building with GNU ld or not.
29255with_gnu_ld=$lt_with_gnu_ld
29256
29257# Flag that allows shared libraries with undefined symbols to be built.
29258allow_undefined_flag=$lt_allow_undefined_flag
29259
29260# Flag that enforces no undefined symbols.
29261no_undefined_flag=$lt_no_undefined_flag
29262
29263# Flag to hardcode \$libdir into a binary during linking.
29264# This must work even if \$libdir does not exist
29265hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29266
29267# If ld is used when linking, flag to hardcode \$libdir into a binary
29268# during linking.  This must work even if \$libdir does not exist.
29269hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29270
29271# Whether we need a single "-rpath" flag with a separated argument.
29272hardcode_libdir_separator=$lt_hardcode_libdir_separator
29273
29274# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29275# DIR into the resulting binary.
29276hardcode_direct=$hardcode_direct
29277
29278# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29279# DIR into the resulting binary and the resulting library dependency is
29280# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29281# library is relocated.
29282hardcode_direct_absolute=$hardcode_direct_absolute
29283
29284# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29285# into the resulting binary.
29286hardcode_minus_L=$hardcode_minus_L
29287
29288# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29289# into the resulting binary.
29290hardcode_shlibpath_var=$hardcode_shlibpath_var
29291
29292# Set to "yes" if building a shared library automatically hardcodes DIR
29293# into the library and all subsequent libraries and executables linked
29294# against it.
29295hardcode_automatic=$hardcode_automatic
29296
29297# Set to yes if linker adds runtime paths of dependent libraries
29298# to runtime path list.
29299inherit_rpath=$inherit_rpath
29300
29301# Whether libtool must link a program against all its dependency libraries.
29302link_all_deplibs=$link_all_deplibs
29303
29304# Fix the shell variable \$srcfile for the compiler.
29305fix_srcfile_path=$lt_fix_srcfile_path
29306
29307# Set to "yes" if exported symbols are required.
29308always_export_symbols=$always_export_symbols
29309
29310# The commands to list exported symbols.
29311export_symbols_cmds=$lt_export_symbols_cmds
29312
29313# Symbols that should not be listed in the preloaded symbols.
29314exclude_expsyms=$lt_exclude_expsyms
29315
29316# Symbols that must always be exported.
29317include_expsyms=$lt_include_expsyms
29318
29319# Commands necessary for linking programs (against libraries) with templates.
29320prelink_cmds=$lt_prelink_cmds
29321
29322# Specify filename containing input files.
29323file_list_spec=$lt_file_list_spec
29324
29325# How to hardcode a shared library path into an executable.
29326hardcode_action=$hardcode_action
29327
29328# ### END LIBTOOL CONFIG
29329
29330_LT_EOF
29331
29332  case $host_os in
29333  aix3*)
29334    cat <<\_LT_EOF >> "$cfgfile"
29335# AIX sometimes has problems with the GCC collect2 program.  For some
29336# reason, if we set the COLLECT_NAMES environment variable, the problems
29337# vanish in a puff of smoke.
29338if test "X${COLLECT_NAMES+set}" != Xset; then
29339  COLLECT_NAMES=
29340  export COLLECT_NAMES
29341fi
29342_LT_EOF
29343    ;;
29344  esac
29345
29346
29347ltmain="$ac_aux_dir/ltmain.sh"
29348
29349
29350  # We use sed instead of cat because bash on DJGPP gets confused if
29351  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29352  # text mode, it properly converts lines to CR/LF.  This bash problem
29353  # is reportedly fixed, but why not run on old versions too?
29354  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29355    || (rm -f "$cfgfile"; exit 1)
29356
29357  case $xsi_shell in
29358  yes)
29359    cat << \_LT_EOF >> "$cfgfile"
29360
29361# func_dirname file append nondir_replacement
29362# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
29363# otherwise set result to NONDIR_REPLACEMENT.
29364func_dirname ()
29365{
29366  case ${1} in
29367    */*) func_dirname_result="${1%/*}${2}" ;;
29368    *  ) func_dirname_result="${3}" ;;
29369  esac
29370}
29371
29372# func_basename file
29373func_basename ()
29374{
29375  func_basename_result="${1##*/}"
29376}
29377
29378# func_dirname_and_basename file append nondir_replacement
29379# perform func_basename and func_dirname in a single function
29380# call:
29381#   dirname:  Compute the dirname of FILE.  If nonempty,
29382#             add APPEND to the result, otherwise set result
29383#             to NONDIR_REPLACEMENT.
29384#             value returned in "$func_dirname_result"
29385#   basename: Compute filename of FILE.
29386#             value retuned in "$func_basename_result"
29387# Implementation must be kept synchronized with func_dirname
29388# and func_basename. For efficiency, we do not delegate to
29389# those functions but instead duplicate the functionality here.
29390func_dirname_and_basename ()
29391{
29392  case ${1} in
29393    */*) func_dirname_result="${1%/*}${2}" ;;
29394    *  ) func_dirname_result="${3}" ;;
29395  esac
29396  func_basename_result="${1##*/}"
29397}
29398
29399# func_stripname prefix suffix name
29400# strip PREFIX and SUFFIX off of NAME.
29401# PREFIX and SUFFIX must not contain globbing or regex special
29402# characters, hashes, percent signs, but SUFFIX may contain a leading
29403# dot (in which case that matches only a dot).
29404func_stripname ()
29405{
29406  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29407  # positional parameters, so assign one to ordinary parameter first.
29408  func_stripname_result=${3}
29409  func_stripname_result=${func_stripname_result#"${1}"}
29410  func_stripname_result=${func_stripname_result%"${2}"}
29411}
29412
29413# func_opt_split
29414func_opt_split ()
29415{
29416  func_opt_split_opt=${1%%=*}
29417  func_opt_split_arg=${1#*=}
29418}
29419
29420# func_lo2o object
29421func_lo2o ()
29422{
29423  case ${1} in
29424    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29425    *)    func_lo2o_result=${1} ;;
29426  esac
29427}
29428
29429# func_xform libobj-or-source
29430func_xform ()
29431{
29432  func_xform_result=${1%.*}.lo
29433}
29434
29435# func_arith arithmetic-term...
29436func_arith ()
29437{
29438  func_arith_result=$(( $* ))
29439}
29440
29441# func_len string
29442# STRING may not start with a hyphen.
29443func_len ()
29444{
29445  func_len_result=${#1}
29446}
29447
29448_LT_EOF
29449    ;;
29450  *) # Bourne compatible functions.
29451    cat << \_LT_EOF >> "$cfgfile"
29452
29453# func_dirname file append nondir_replacement
29454# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
29455# otherwise set result to NONDIR_REPLACEMENT.
29456func_dirname ()
29457{
29458  # Extract subdirectory from the argument.
29459  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
29460  if test "X$func_dirname_result" = "X${1}"; then
29461    func_dirname_result="${3}"
29462  else
29463    func_dirname_result="$func_dirname_result${2}"
29464  fi
29465}
29466
29467# func_basename file
29468func_basename ()
29469{
29470  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
29471}
29472
29473
29474# func_stripname prefix suffix name
29475# strip PREFIX and SUFFIX off of NAME.
29476# PREFIX and SUFFIX must not contain globbing or regex special
29477# characters, hashes, percent signs, but SUFFIX may contain a leading
29478# dot (in which case that matches only a dot).
29479# func_strip_suffix prefix name
29480func_stripname ()
29481{
29482  case ${2} in
29483    .*) func_stripname_result=`$ECHO "X${3}" \
29484           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
29485    *)  func_stripname_result=`$ECHO "X${3}" \
29486           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
29487  esac
29488}
29489
29490# sed scripts:
29491my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29492my_sed_long_arg='1s/^-[^=]*=//'
29493
29494# func_opt_split
29495func_opt_split ()
29496{
29497  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
29498  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
29499}
29500
29501# func_lo2o object
29502func_lo2o ()
29503{
29504  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
29505}
29506
29507# func_xform libobj-or-source
29508func_xform ()
29509{
29510  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
29511}
29512
29513# func_arith arithmetic-term...
29514func_arith ()
29515{
29516  func_arith_result=`expr "$@"`
29517}
29518
29519# func_len string
29520# STRING may not start with a hyphen.
29521func_len ()
29522{
29523  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29524}
29525
29526_LT_EOF
29527esac
29528
29529case $lt_shell_append in
29530  yes)
29531    cat << \_LT_EOF >> "$cfgfile"
29532
29533# func_append var value
29534# Append VALUE to the end of shell variable VAR.
29535func_append ()
29536{
29537  eval "$1+=\$2"
29538}
29539_LT_EOF
29540    ;;
29541  *)
29542    cat << \_LT_EOF >> "$cfgfile"
29543
29544# func_append var value
29545# Append VALUE to the end of shell variable VAR.
29546func_append ()
29547{
29548  eval "$1=\$$1\$2"
29549}
29550
29551_LT_EOF
29552    ;;
29553  esac
29554
29555
29556  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29557    || (rm -f "$cfgfile"; exit 1)
29558
29559  mv -f "$cfgfile" "$ofile" ||
29560    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29561  chmod +x "$ofile"
29562
29563 ;;
29564
29565  esac
29566done # for ac_tag
29567
29568
29569as_fn_exit 0
29570_ACEOF
29571ac_clean_files=$ac_clean_files_save
29572
29573test $ac_write_fail = 0 ||
29574  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29575
29576
29577# configure is writing to config.log, and then calls config.status.
29578# config.status does its own redirection, appending to config.log.
29579# Unfortunately, on DOS this fails, as config.log is still kept open
29580# by configure, so config.status won't be able to write to it; its
29581# output is simply discarded.  So we exec the FD to /dev/null,
29582# effectively closing config.log, so it can be properly (re)opened and
29583# appended to by config.status.  When coming back to configure, we
29584# need to make the FD available again.
29585if test "$no_create" != yes; then
29586  ac_cs_success=:
29587  ac_config_status_args=
29588  test "$silent" = yes &&
29589    ac_config_status_args="$ac_config_status_args --quiet"
29590  exec 5>/dev/null
29591  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29592  exec 5>>config.log
29593  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29594  # would make configure fail if this is the last instruction.
29595  $ac_cs_success || as_fn_exit $?
29596fi
29597if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29598  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29599$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29600fi
29601
29602
29603
29604cat > include/newversion.h.in <<EOF
29605#ifndef VERSION_HIDDEN
29606#define VERSION_HIDDEN
29607#endif
29608VERSION_HIDDEN const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
29609VERSION_HIDDEN const char *heimdal_version = "Heimdal 1.3.99";
29610EOF
29611
29612if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
29613	echo "include/version.h is unchanged"
29614	rm -f include/newversion.h.in
29615else
29616 	echo "creating include/version.h"
29617 	User=${USER-${LOGNAME}}
29618 	Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
29619 	Date=`date`
29620	mv -f include/newversion.h.in include/version.h.in
29621	sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
29622fi
29623