1#! /bin/sh
2# From configure.in Id: e7e5a7e17ae6655fc0779de0ad978202c3a73699 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61.
5#
6# Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
7# Restrictions apply, see COPYRIGHT and LICENSE files.
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## --------------------- ##
14## M4sh Initialization.  ##
15## --------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20  emulate sh
21  NULLCMD=:
22  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in
28  *posix*) set -o posix ;;
29esac
30
31fi
32
33
34
35
36# PATH needs CR
37# Avoid depending upon Character Ranges.
38as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41as_cr_digits='0123456789'
42as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44# The user is always right.
45if test "${PATH_SEPARATOR+set}" != set; then
46  echo "#! /bin/sh" >conf$$.sh
47  echo  "exit 0"   >>conf$$.sh
48  chmod +x conf$$.sh
49  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50    PATH_SEPARATOR=';'
51  else
52    PATH_SEPARATOR=:
53  fi
54  rm -f conf$$.sh
55fi
56
57# Support unset when possible.
58if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59  as_unset=unset
60else
61  as_unset=false
62fi
63
64
65# IFS
66# We need space, tab and new line, in precisely that order.  Quoting is
67# there to prevent editors from complaining about space-tab.
68# (If _AS_PATH_WALK were called with IFS unset, it would disable word
69# splitting by setting IFS to empty value.)
70as_nl='
71'
72IFS=" ""	$as_nl"
73
74# Find who we are.  Look in the path if we contain no directory separator.
75case $0 in
76  *[\\/]* ) as_myself=$0 ;;
77  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78for as_dir in $PATH
79do
80  IFS=$as_save_IFS
81  test -z "$as_dir" && as_dir=.
82  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83done
84IFS=$as_save_IFS
85
86     ;;
87esac
88# We did not find ourselves, most probably we were run as `sh COMMAND'
89# in which case we are not to be found in the path.
90if test "x$as_myself" = x; then
91  as_myself=$0
92fi
93if test ! -f "$as_myself"; then
94  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95  { (exit 1); exit 1; }
96fi
97
98# Work around bugs in pre-3.0 UWIN ksh.
99for as_var in ENV MAIL MAILPATH
100do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101done
102PS1='$ '
103PS2='> '
104PS4='+ '
105
106# NLS nuisances.
107for as_var in \
108  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110  LC_TELEPHONE LC_TIME
111do
112  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113    eval $as_var=C; export $as_var
114  else
115    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116  fi
117done
118
119# Required to use basename.
120if expr a : '\(a\)' >/dev/null 2>&1 &&
121   test "X`expr 00001 : '.*\(...\)'`" = X001; then
122  as_expr=expr
123else
124  as_expr=false
125fi
126
127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128  as_basename=basename
129else
130  as_basename=false
131fi
132
133
134# Name of the executable.
135as_me=`$as_basename -- "$0" ||
136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137	 X"$0" : 'X\(//\)$' \| \
138	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139echo X/"$0" |
140    sed '/^.*\/\([^/][^/]*\)\/*$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\/\)$/{
145	    s//\1/
146	    q
147	  }
148	  /^X\/\(\/\).*/{
149	    s//\1/
150	    q
151	  }
152	  s/.*/./; q'`
153
154# CDPATH.
155$as_unset CDPATH
156
157
158if test "x$CONFIG_SHELL" = x; then
159  if (eval ":") 2>/dev/null; then
160  as_have_required=yes
161else
162  as_have_required=no
163fi
164
165  if test $as_have_required = yes && 	 (eval ":
166(as_func_return () {
167  (exit \$1)
168}
169as_func_success () {
170  as_func_return 0
171}
172as_func_failure () {
173  as_func_return 1
174}
175as_func_ret_success () {
176  return 0
177}
178as_func_ret_failure () {
179  return 1
180}
181
182exitcode=0
183if as_func_success; then
184  :
185else
186  exitcode=1
187  echo as_func_success failed.
188fi
189
190if as_func_failure; then
191  exitcode=1
192  echo as_func_failure succeeded.
193fi
194
195if as_func_ret_success; then
196  :
197else
198  exitcode=1
199  echo as_func_ret_success failed.
200fi
201
202if as_func_ret_failure; then
203  exitcode=1
204  echo as_func_ret_failure succeeded.
205fi
206
207if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208  :
209else
210  exitcode=1
211  echo positional parameters were not saved.
212fi
213
214test \$exitcode = 0) || { (exit 1); exit 1; }
215
216(
217  as_lineno_1=\$LINENO
218  as_lineno_2=\$LINENO
219  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221") 2> /dev/null; then
222  :
223else
224  as_candidate_shells=
225    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227do
228  IFS=$as_save_IFS
229  test -z "$as_dir" && as_dir=.
230  case $as_dir in
231	 /*)
232	   for as_base in sh bash ksh sh5; do
233	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234	   done;;
235       esac
236done
237IFS=$as_save_IFS
238
239
240      for as_shell in $as_candidate_shells $SHELL; do
241	 # Try only shells that exist, to save several forks.
242	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243		{ ("$as_shell") 2> /dev/null <<\_ASEOF
244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245  emulate sh
246  NULLCMD=:
247  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248  # is contrary to our usage.  Disable this feature.
249  alias -g '${1+"$@"}'='"$@"'
250  setopt NO_GLOB_SUBST
251else
252  case `(set -o) 2>/dev/null` in
253  *posix*) set -o posix ;;
254esac
255
256fi
257
258
259:
260_ASEOF
261}; then
262  CONFIG_SHELL=$as_shell
263	       as_have_required=yes
264	       if { "$as_shell" 2> /dev/null <<\_ASEOF
265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266  emulate sh
267  NULLCMD=:
268  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269  # is contrary to our usage.  Disable this feature.
270  alias -g '${1+"$@"}'='"$@"'
271  setopt NO_GLOB_SUBST
272else
273  case `(set -o) 2>/dev/null` in
274  *posix*) set -o posix ;;
275esac
276
277fi
278
279
280:
281(as_func_return () {
282  (exit $1)
283}
284as_func_success () {
285  as_func_return 0
286}
287as_func_failure () {
288  as_func_return 1
289}
290as_func_ret_success () {
291  return 0
292}
293as_func_ret_failure () {
294  return 1
295}
296
297exitcode=0
298if as_func_success; then
299  :
300else
301  exitcode=1
302  echo as_func_success failed.
303fi
304
305if as_func_failure; then
306  exitcode=1
307  echo as_func_failure succeeded.
308fi
309
310if as_func_ret_success; then
311  :
312else
313  exitcode=1
314  echo as_func_ret_success failed.
315fi
316
317if as_func_ret_failure; then
318  exitcode=1
319  echo as_func_ret_failure succeeded.
320fi
321
322if ( set x; as_func_ret_success y && test x = "$1" ); then
323  :
324else
325  exitcode=1
326  echo positional parameters were not saved.
327fi
328
329test $exitcode = 0) || { (exit 1); exit 1; }
330
331(
332  as_lineno_1=$LINENO
333  as_lineno_2=$LINENO
334  test "x$as_lineno_1" != "x$as_lineno_2" &&
335  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337_ASEOF
338}; then
339  break
340fi
341
342fi
343
344      done
345
346      if test "x$CONFIG_SHELL" != x; then
347  for as_var in BASH_ENV ENV
348        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349        done
350        export CONFIG_SHELL
351        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352fi
353
354
355    if test $as_have_required = no; then
356  echo This script requires a shell more modern than all the
357      echo shells that I found on your system.  Please install a
358      echo modern shell, or manually run the script under such a
359      echo shell if you do have one.
360      { (exit 1); exit 1; }
361fi
362
363
364fi
365
366fi
367
368
369
370(eval "as_func_return () {
371  (exit \$1)
372}
373as_func_success () {
374  as_func_return 0
375}
376as_func_failure () {
377  as_func_return 1
378}
379as_func_ret_success () {
380  return 0
381}
382as_func_ret_failure () {
383  return 1
384}
385
386exitcode=0
387if as_func_success; then
388  :
389else
390  exitcode=1
391  echo as_func_success failed.
392fi
393
394if as_func_failure; then
395  exitcode=1
396  echo as_func_failure succeeded.
397fi
398
399if as_func_ret_success; then
400  :
401else
402  exitcode=1
403  echo as_func_ret_success failed.
404fi
405
406if as_func_ret_failure; then
407  exitcode=1
408  echo as_func_ret_failure succeeded.
409fi
410
411if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412  :
413else
414  exitcode=1
415  echo positional parameters were not saved.
416fi
417
418test \$exitcode = 0") || {
419  echo No shell found that supports shell functions.
420  echo Please tell autoconf@gnu.org about your system,
421  echo including any error possibly output before this
422  echo message
423}
424
425
426
427  as_lineno_1=$LINENO
428  as_lineno_2=$LINENO
429  test "x$as_lineno_1" != "x$as_lineno_2" &&
430  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433  # uniformly replaced by the line number.  The first 'sed' inserts a
434  # line-number line after each line using $LINENO; the second 'sed'
435  # does the real work.  The second script uses 'N' to pair each
436  # line-number line with the line containing $LINENO, and appends
437  # trailing '-' during substitution so that $LINENO is not a special
438  # case at line end.
439  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440  # scripts with optimization help from Paolo Bonzini.  Blame Lee
441  # E. McMahon (1931-1989) for sed's syntax.  :-)
442  sed -n '
443    p
444    /[$]LINENO/=
445  ' <$as_myself |
446    sed '
447      s/[$]LINENO.*/&-/
448      t lineno
449      b
450      :lineno
451      N
452      :loop
453      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454      t loop
455      s/-\n.*//
456    ' >$as_me.lineno &&
457  chmod +x "$as_me.lineno" ||
458    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459   { (exit 1); exit 1; }; }
460
461  # Don't try to exec as it changes $[0], causing all sort of problems
462  # (the dirname of $[0] is not the place where we might find the
463  # original and so on.  Autoconf is especially sensitive to this).
464  . "./$as_me.lineno"
465  # Exit status is that of the last command.
466  exit
467}
468
469
470if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471  as_dirname=dirname
472else
473  as_dirname=false
474fi
475
476ECHO_C= ECHO_N= ECHO_T=
477case `echo -n x` in
478-n*)
479  case `echo 'x\c'` in
480  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
481  *)   ECHO_C='\c';;
482  esac;;
483*)
484  ECHO_N='-n';;
485esac
486
487if expr a : '\(a\)' >/dev/null 2>&1 &&
488   test "X`expr 00001 : '.*\(...\)'`" = X001; then
489  as_expr=expr
490else
491  as_expr=false
492fi
493
494rm -f conf$$ conf$$.exe conf$$.file
495if test -d conf$$.dir; then
496  rm -f conf$$.dir/conf$$.file
497else
498  rm -f conf$$.dir
499  mkdir conf$$.dir
500fi
501echo >conf$$.file
502if ln -s conf$$.file conf$$ 2>/dev/null; then
503  as_ln_s='ln -s'
504  # ... but there are two gotchas:
505  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507  # In both cases, we have to default to `cp -p'.
508  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509    as_ln_s='cp -p'
510elif ln conf$$.file conf$$ 2>/dev/null; then
511  as_ln_s=ln
512else
513  as_ln_s='cp -p'
514fi
515rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516rmdir conf$$.dir 2>/dev/null
517
518if mkdir -p . 2>/dev/null; then
519  as_mkdir_p=:
520else
521  test -d ./-p && rmdir ./-p
522  as_mkdir_p=false
523fi
524
525if test -x / >/dev/null 2>&1; then
526  as_test_x='test -x'
527else
528  if ls -dL / >/dev/null 2>&1; then
529    as_ls_L_option=L
530  else
531    as_ls_L_option=
532  fi
533  as_test_x='
534    eval sh -c '\''
535      if test -d "$1"; then
536        test -d "$1/.";
537      else
538	case $1 in
539        -*)set "./$1";;
540	esac;
541	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542	???[sx]*):;;*)false;;esac;fi
543    '\'' sh
544  '
545fi
546as_executable_p=$as_test_x
547
548# Sed expression to map a string onto a valid CPP name.
549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551# Sed expression to map a string onto a valid variable name.
552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557# Check that we are running under the correct shell.
558SHELL=${CONFIG_SHELL-/bin/sh}
559
560case X$ECHO in
561X*--fallback-echo)
562  # Remove one level of quotation (which was required for Make).
563  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564  ;;
565esac
566
567echo=${ECHO-echo}
568if test "X$1" = X--no-reexec; then
569  # Discard the --no-reexec flag, and continue.
570  shift
571elif test "X$1" = X--fallback-echo; then
572  # Avoid inline document here, it may be left over
573  :
574elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575  # Yippee, $echo works!
576  :
577else
578  # Restart under the correct shell.
579  exec $SHELL "$0" --no-reexec ${1+"$@"}
580fi
581
582if test "X$1" = X--fallback-echo; then
583  # used as fallback echo
584  shift
585  cat <<EOF
586$*
587EOF
588  exit 0
589fi
590
591# The HP-UX ksh and POSIX shell print the target directory to stdout
592# if CDPATH is set.
593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595if test -z "$ECHO"; then
596if test "X${echo_test_string+set}" != Xset; then
597# find a string as large as possible, as long as the shell can cope with it
598  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601       echo_test_string=`eval $cmd` &&
602       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603    then
604      break
605    fi
606  done
607fi
608
609if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611   test "X$echo_testing_string" = "X$echo_test_string"; then
612  :
613else
614  # The Solaris, AIX, and Digital Unix default echo programs unquote
615  # backslashes.  This makes it impossible to quote backslashes using
616  #   echo "$something" | sed 's/\\/\\\\/g'
617  #
618  # So, first we look for a working echo in the user's PATH.
619
620  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621  for dir in $PATH /usr/ucb; do
622    IFS="$lt_save_ifs"
623    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626       test "X$echo_testing_string" = "X$echo_test_string"; then
627      echo="$dir/echo"
628      break
629    fi
630  done
631  IFS="$lt_save_ifs"
632
633  if test "X$echo" = Xecho; then
634    # We didn't find a better echo, so look for alternatives.
635    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637       test "X$echo_testing_string" = "X$echo_test_string"; then
638      # This shell has a builtin print -r that does the trick.
639      echo='print -r'
640    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641	 test "X$CONFIG_SHELL" != X/bin/ksh; then
642      # If we have ksh, try running configure again with it.
643      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644      export ORIGINAL_CONFIG_SHELL
645      CONFIG_SHELL=/bin/ksh
646      export CONFIG_SHELL
647      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648    else
649      # Try using printf.
650      echo='printf %s\n'
651      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653	 test "X$echo_testing_string" = "X$echo_test_string"; then
654	# Cool, printf works
655	:
656      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657	   test "X$echo_testing_string" = 'X\t' &&
658	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659	   test "X$echo_testing_string" = "X$echo_test_string"; then
660	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661	export CONFIG_SHELL
662	SHELL="$CONFIG_SHELL"
663	export SHELL
664	echo="$CONFIG_SHELL $0 --fallback-echo"
665      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666	   test "X$echo_testing_string" = 'X\t' &&
667	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668	   test "X$echo_testing_string" = "X$echo_test_string"; then
669	echo="$CONFIG_SHELL $0 --fallback-echo"
670      else
671	# maybe with a smaller string...
672	prev=:
673
674	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676	  then
677	    break
678	  fi
679	  prev="$cmd"
680	done
681
682	if test "$prev" != 'sed 50q "$0"'; then
683	  echo_test_string=`eval $prev`
684	  export echo_test_string
685	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686	else
687	  # Oops.  We lost completely, so just stick with echo.
688	  echo=echo
689	fi
690      fi
691    fi
692  fi
693fi
694fi
695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
698ECHO=$echo
699if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701fi
702
703
704
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="OpenLDAP"
734ac_unique_file="build/version.sh"
735ac_default_prefix=/usr/local
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750#  include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755#  include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809build
810build_cpu
811build_vendor
812build_os
813host
814host_cpu
815host_vendor
816host_os
817target
818target_cpu
819target_vendor
820target_os
821INSTALL_PROGRAM
822INSTALL_SCRIPT
823INSTALL_DATA
824CYGPATH_W
825PACKAGE
826VERSION
827ACLOCAL
828AUTOCONF
829AUTOMAKE
830AUTOHEADER
831MAKEINFO
832install_sh
833STRIP
834INSTALL_STRIP_PROGRAM
835mkdir_p
836AWK
837SET_MAKE
838am__leading_dot
839AMTAR
840am__tar
841am__untar
842OPENLDAP_LIBRELEASE
843OPENLDAP_LIBVERSION
844OPENLDAP_RELEASE_DATE
845top_builddir
846ldap_subdir
847CC
848AR
849CFLAGS
850LDFLAGS
851CPPFLAGS
852ac_ct_CC
853EXEEXT
854OBJEXT
855DEPDIR
856am__include
857am__quote
858AMDEP_TRUE
859AMDEP_FALSE
860AMDEPBACKSLASH
861CCDEPMODE
862am__fastdepCC_TRUE
863am__fastdepCC_FALSE
864GREP
865EGREP
866LN_S
867ECHO
868RANLIB
869DLLTOOL
870AS
871OBJDUMP
872CPP
873LIBTOOL
874PERLBIN
875OL_MKDEP
876OL_MKDEP_FLAGS
877LTSTATIC
878LIBOBJS
879LIBSRCS
880PLAT
881WITH_SASL
882WITH_TLS
883WITH_MODULES_ENABLED
884WITH_ACI_ENABLED
885BUILD_THREAD
886BUILD_LIBS_DYNAMIC
887BUILD_SLAPD
888BUILD_SLAPI
889SLAPD_SLAPI_DEPEND
890BUILD_BDB
891BUILD_DNSSRV
892BUILD_HDB
893BUILD_LDAP
894BUILD_META
895BUILD_MONITOR
896BUILD_NULL
897BUILD_PASSWD
898BUILD_RELAY
899BUILD_PERL
900BUILD_SHELL
901BUILD_SOCK
902BUILD_SQL
903BUILD_ACCESSLOG
904BUILD_DYNID
905BUILD_ODLOCALES
906BUILD_ODUSERS
907BUILD_AUDITLOG
908BUILD_CONSTRAINT
909BUILD_DDS
910BUILD_DENYOP
911BUILD_DEREF
912BUILD_DYNGROUP
913BUILD_DYNLIST
914BUILD_LASTMOD
915BUILD_MEMBEROF
916BUILD_PPOLICY
917BUILD_PROXYCACHE
918BUILD_REFINT
919BUILD_RETCODE
920BUILD_SEQMOD
921BUILD_SYNCPROV
922BUILD_TRANSLUCENT
923BUILD_UNIQUE
924BUILD_VALSORT
925LDAP_LIBS
926SLAPD_LIBS
927BDB_LIBS
928LTHREAD_LIBS
929LUTIL_LIBS
930WRAP_LIBS
931SLAPD_MODULES_CPPFLAGS
932SLAPD_MODULES_LDFLAGS
933SLAPD_NO_STATIC
934SLAPD_STATIC_BACKENDS
935SLAPD_DYNAMIC_BACKENDS
936SLAPD_STATIC_OVERLAYS
937SLAPD_DYNAMIC_OVERLAYS
938PERL_CPPFLAGS
939SLAPD_PERL_LDFLAGS
940MOD_PERL_LDFLAGS
941KRB4_LIBS
942KRB5_LIBS
943SASL_LIBS
944TLS_LIBS
945MODULES_LIBS
946SLAPI_LIBS
947LIBSLAPI
948LIBSLAPITOOLS
949AUTH_LIBS
950ICU_LIBS
951SLAPD_SLP_LIBS
952SLAPD_GMP_LIBS
953SLAPD_SQL_LDFLAGS
954SLAPD_SQL_LIBS
955SLAPD_SQL_INCLUDES
956LTLIBOBJS'
957ac_subst_files=''
958      ac_precious_vars='build_alias
959host_alias
960target_alias
961CC
962CFLAGS
963LDFLAGS
964LIBS
965CPPFLAGS
966CPP'
967
968
969# Initialize some variables set by options.
970ac_init_help=
971ac_init_version=false
972# The variables have the same names as the options, with
973# dashes changed to underlines.
974cache_file=/dev/null
975exec_prefix=NONE
976no_create=
977no_recursion=
978prefix=NONE
979program_prefix=NONE
980program_suffix=NONE
981program_transform_name=s,x,x,
982silent=
983site=
984srcdir=
985verbose=
986x_includes=NONE
987x_libraries=NONE
988
989# Installation directory options.
990# These are left unexpanded so users can "make install exec_prefix=/foo"
991# and all the variables that are supposed to be based on exec_prefix
992# by default will actually change.
993# Use braces instead of parens because sh, perl, etc. also accept them.
994# (The list follows the same order as the GNU Coding Standards.)
995bindir='${exec_prefix}/bin'
996sbindir='${exec_prefix}/sbin'
997libexecdir='${exec_prefix}/libexec'
998datarootdir='${prefix}/share'
999datadir='${datarootdir}'
1000sysconfdir='${prefix}/etc'
1001sharedstatedir='${prefix}/com'
1002localstatedir='${prefix}/var'
1003includedir='${prefix}/include'
1004oldincludedir='/usr/include'
1005docdir='${datarootdir}/doc/${PACKAGE}'
1006infodir='${datarootdir}/info'
1007htmldir='${docdir}'
1008dvidir='${docdir}'
1009pdfdir='${docdir}'
1010psdir='${docdir}'
1011libdir='${exec_prefix}/lib'
1012localedir='${datarootdir}/locale'
1013mandir='${datarootdir}/man'
1014
1015ac_prev=
1016ac_dashdash=
1017for ac_option
1018do
1019  # If the previous option needs an argument, assign it.
1020  if test -n "$ac_prev"; then
1021    eval $ac_prev=\$ac_option
1022    ac_prev=
1023    continue
1024  fi
1025
1026  case $ac_option in
1027  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028  *)	ac_optarg=yes ;;
1029  esac
1030
1031  # Accept the important Cygnus configure options, so we can diagnose typos.
1032
1033  case $ac_dashdash$ac_option in
1034  --)
1035    ac_dashdash=yes ;;
1036
1037  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038    ac_prev=bindir ;;
1039  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040    bindir=$ac_optarg ;;
1041
1042  -build | --build | --buil | --bui | --bu)
1043    ac_prev=build_alias ;;
1044  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045    build_alias=$ac_optarg ;;
1046
1047  -cache-file | --cache-file | --cache-fil | --cache-fi \
1048  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049    ac_prev=cache_file ;;
1050  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052    cache_file=$ac_optarg ;;
1053
1054  --config-cache | -C)
1055    cache_file=config.cache ;;
1056
1057  -datadir | --datadir | --datadi | --datad)
1058    ac_prev=datadir ;;
1059  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060    datadir=$ac_optarg ;;
1061
1062  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063  | --dataroo | --dataro | --datar)
1064    ac_prev=datarootdir ;;
1065  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067    datarootdir=$ac_optarg ;;
1068
1069  -disable-* | --disable-*)
1070    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074   { (exit 1); exit 1; }; }
1075    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1076    eval enable_$ac_feature=no ;;
1077
1078  -docdir | --docdir | --docdi | --doc | --do)
1079    ac_prev=docdir ;;
1080  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081    docdir=$ac_optarg ;;
1082
1083  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084    ac_prev=dvidir ;;
1085  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086    dvidir=$ac_optarg ;;
1087
1088  -enable-* | --enable-*)
1089    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090    # Reject names that are not valid shell variable names.
1091    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1093   { (exit 1); exit 1; }; }
1094    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1095    eval enable_$ac_feature=\$ac_optarg ;;
1096
1097  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099  | --exec | --exe | --ex)
1100    ac_prev=exec_prefix ;;
1101  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103  | --exec=* | --exe=* | --ex=*)
1104    exec_prefix=$ac_optarg ;;
1105
1106  -gas | --gas | --ga | --g)
1107    # Obsolete; use --with-gas.
1108    with_gas=yes ;;
1109
1110  -help | --help | --hel | --he | -h)
1111    ac_init_help=long ;;
1112  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113    ac_init_help=recursive ;;
1114  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115    ac_init_help=short ;;
1116
1117  -host | --host | --hos | --ho)
1118    ac_prev=host_alias ;;
1119  -host=* | --host=* | --hos=* | --ho=*)
1120    host_alias=$ac_optarg ;;
1121
1122  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123    ac_prev=htmldir ;;
1124  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125  | --ht=*)
1126    htmldir=$ac_optarg ;;
1127
1128  -includedir | --includedir | --includedi | --included | --include \
1129  | --includ | --inclu | --incl | --inc)
1130    ac_prev=includedir ;;
1131  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132  | --includ=* | --inclu=* | --incl=* | --inc=*)
1133    includedir=$ac_optarg ;;
1134
1135  -infodir | --infodir | --infodi | --infod | --info | --inf)
1136    ac_prev=infodir ;;
1137  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138    infodir=$ac_optarg ;;
1139
1140  -libdir | --libdir | --libdi | --libd)
1141    ac_prev=libdir ;;
1142  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143    libdir=$ac_optarg ;;
1144
1145  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146  | --libexe | --libex | --libe)
1147    ac_prev=libexecdir ;;
1148  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149  | --libexe=* | --libex=* | --libe=*)
1150    libexecdir=$ac_optarg ;;
1151
1152  -localedir | --localedir | --localedi | --localed | --locale)
1153    ac_prev=localedir ;;
1154  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155    localedir=$ac_optarg ;;
1156
1157  -localstatedir | --localstatedir | --localstatedi | --localstated \
1158  | --localstate | --localstat | --localsta | --localst | --locals)
1159    ac_prev=localstatedir ;;
1160  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162    localstatedir=$ac_optarg ;;
1163
1164  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165    ac_prev=mandir ;;
1166  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167    mandir=$ac_optarg ;;
1168
1169  -nfp | --nfp | --nf)
1170    # Obsolete; use --without-fp.
1171    with_fp=no ;;
1172
1173  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174  | --no-cr | --no-c | -n)
1175    no_create=yes ;;
1176
1177  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179    no_recursion=yes ;;
1180
1181  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183  | --oldin | --oldi | --old | --ol | --o)
1184    ac_prev=oldincludedir ;;
1185  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188    oldincludedir=$ac_optarg ;;
1189
1190  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191    ac_prev=prefix ;;
1192  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193    prefix=$ac_optarg ;;
1194
1195  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196  | --program-pre | --program-pr | --program-p)
1197    ac_prev=program_prefix ;;
1198  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200    program_prefix=$ac_optarg ;;
1201
1202  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203  | --program-suf | --program-su | --program-s)
1204    ac_prev=program_suffix ;;
1205  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207    program_suffix=$ac_optarg ;;
1208
1209  -program-transform-name | --program-transform-name \
1210  | --program-transform-nam | --program-transform-na \
1211  | --program-transform-n | --program-transform- \
1212  | --program-transform | --program-transfor \
1213  | --program-transfo | --program-transf \
1214  | --program-trans | --program-tran \
1215  | --progr-tra | --program-tr | --program-t)
1216    ac_prev=program_transform_name ;;
1217  -program-transform-name=* | --program-transform-name=* \
1218  | --program-transform-nam=* | --program-transform-na=* \
1219  | --program-transform-n=* | --program-transform-=* \
1220  | --program-transform=* | --program-transfor=* \
1221  | --program-transfo=* | --program-transf=* \
1222  | --program-trans=* | --program-tran=* \
1223  | --progr-tra=* | --program-tr=* | --program-t=*)
1224    program_transform_name=$ac_optarg ;;
1225
1226  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227    ac_prev=pdfdir ;;
1228  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229    pdfdir=$ac_optarg ;;
1230
1231  -psdir | --psdir | --psdi | --psd | --ps)
1232    ac_prev=psdir ;;
1233  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234    psdir=$ac_optarg ;;
1235
1236  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237  | -silent | --silent | --silen | --sile | --sil)
1238    silent=yes ;;
1239
1240  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241    ac_prev=sbindir ;;
1242  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243  | --sbi=* | --sb=*)
1244    sbindir=$ac_optarg ;;
1245
1246  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248  | --sharedst | --shareds | --shared | --share | --shar \
1249  | --sha | --sh)
1250    ac_prev=sharedstatedir ;;
1251  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254  | --sha=* | --sh=*)
1255    sharedstatedir=$ac_optarg ;;
1256
1257  -site | --site | --sit)
1258    ac_prev=site ;;
1259  -site=* | --site=* | --sit=*)
1260    site=$ac_optarg ;;
1261
1262  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263    ac_prev=srcdir ;;
1264  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265    srcdir=$ac_optarg ;;
1266
1267  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268  | --syscon | --sysco | --sysc | --sys | --sy)
1269    ac_prev=sysconfdir ;;
1270  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272    sysconfdir=$ac_optarg ;;
1273
1274  -target | --target | --targe | --targ | --tar | --ta | --t)
1275    ac_prev=target_alias ;;
1276  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277    target_alias=$ac_optarg ;;
1278
1279  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280    verbose=yes ;;
1281
1282  -version | --version | --versio | --versi | --vers | -V)
1283    ac_init_version=: ;;
1284
1285  -with-* | --with-*)
1286    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287    # Reject names that are not valid shell variable names.
1288    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289      { echo "$as_me: error: invalid package name: $ac_package" >&2
1290   { (exit 1); exit 1; }; }
1291    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1292    eval with_$ac_package=\$ac_optarg ;;
1293
1294  -without-* | --without-*)
1295    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296    # Reject names that are not valid shell variable names.
1297    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298      { echo "$as_me: error: invalid package name: $ac_package" >&2
1299   { (exit 1); exit 1; }; }
1300    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1301    eval with_$ac_package=no ;;
1302
1303  --x)
1304    # Obsolete; use --with-x.
1305    with_x=yes ;;
1306
1307  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308  | --x-incl | --x-inc | --x-in | --x-i)
1309    ac_prev=x_includes ;;
1310  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312    x_includes=$ac_optarg ;;
1313
1314  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316    ac_prev=x_libraries ;;
1317  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319    x_libraries=$ac_optarg ;;
1320
1321  -*) { echo "$as_me: error: unrecognized option: $ac_option
1322Try \`$0 --help' for more information." >&2
1323   { (exit 1); exit 1; }; }
1324    ;;
1325
1326  *=*)
1327    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328    # Reject names that are not valid shell variable names.
1329    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1330      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1331   { (exit 1); exit 1; }; }
1332    eval $ac_envvar=\$ac_optarg
1333    export $ac_envvar ;;
1334
1335  *)
1336    # FIXME: should be removed in autoconf 3.0.
1337    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341    ;;
1342
1343  esac
1344done
1345
1346if test -n "$ac_prev"; then
1347  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348  { echo "$as_me: error: missing argument to $ac_option" >&2
1349   { (exit 1); exit 1; }; }
1350fi
1351
1352# Be sure to have absolute directory names.
1353for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354		datadir sysconfdir sharedstatedir localstatedir includedir \
1355		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356		libdir localedir mandir
1357do
1358  eval ac_val=\$$ac_var
1359  case $ac_val in
1360    [\\/$]* | ?:[\\/]* )  continue;;
1361    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362  esac
1363  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1364   { (exit 1); exit 1; }; }
1365done
1366
1367# There might be people who depend on the old broken behavior: `$host'
1368# used to hold the argument of --host etc.
1369# FIXME: To remove some day.
1370build=$build_alias
1371host=$host_alias
1372target=$target_alias
1373
1374# FIXME: To remove some day.
1375if test "x$host_alias" != x; then
1376  if test "x$build_alias" = x; then
1377    cross_compiling=maybe
1378    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1379    If a cross compiler is detected then cross compile mode will be used." >&2
1380  elif test "x$build_alias" != "x$host_alias"; then
1381    cross_compiling=yes
1382  fi
1383fi
1384
1385ac_tool_prefix=
1386test -n "$host_alias" && ac_tool_prefix=$host_alias-
1387
1388test "$silent" = yes && exec 6>/dev/null
1389
1390
1391ac_pwd=`pwd` && test -n "$ac_pwd" &&
1392ac_ls_di=`ls -di .` &&
1393ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1394  { echo "$as_me: error: Working directory cannot be determined" >&2
1395   { (exit 1); exit 1; }; }
1396test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1397  { echo "$as_me: error: pwd does not report name of working directory" >&2
1398   { (exit 1); exit 1; }; }
1399
1400
1401# Find the source files, if location was not specified.
1402if test -z "$srcdir"; then
1403  ac_srcdir_defaulted=yes
1404  # Try the directory containing this script, then the parent directory.
1405  ac_confdir=`$as_dirname -- "$0" ||
1406$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407	 X"$0" : 'X\(//\)[^/]' \| \
1408	 X"$0" : 'X\(//\)$' \| \
1409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1410echo X"$0" |
1411    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412	    s//\1/
1413	    q
1414	  }
1415	  /^X\(\/\/\)[^/].*/{
1416	    s//\1/
1417	    q
1418	  }
1419	  /^X\(\/\/\)$/{
1420	    s//\1/
1421	    q
1422	  }
1423	  /^X\(\/\).*/{
1424	    s//\1/
1425	    q
1426	  }
1427	  s/.*/./; q'`
1428  srcdir=$ac_confdir
1429  if test ! -r "$srcdir/$ac_unique_file"; then
1430    srcdir=..
1431  fi
1432else
1433  ac_srcdir_defaulted=no
1434fi
1435if test ! -r "$srcdir/$ac_unique_file"; then
1436  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1438   { (exit 1); exit 1; }; }
1439fi
1440ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441ac_abs_confdir=`(
1442	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1443   { (exit 1); exit 1; }; }
1444	pwd)`
1445# When building in place, set srcdir=.
1446if test "$ac_abs_confdir" = "$ac_pwd"; then
1447  srcdir=.
1448fi
1449# Remove unnecessary trailing slashes from srcdir.
1450# Double slashes in file names in object file debugging info
1451# mess up M-x gdb in Emacs.
1452case $srcdir in
1453*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454esac
1455for ac_var in $ac_precious_vars; do
1456  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457  eval ac_env_${ac_var}_value=\$${ac_var}
1458  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460done
1461
1462#
1463# Report the --help message.
1464#
1465if test "$ac_init_help" = "long"; then
1466  # Omit some internal or obsolete options to make the list less imposing.
1467  # This message is too long to be a string in the A/UX 3.1 sh.
1468  cat <<_ACEOF
1469\`configure' configures this package to adapt to many kinds of systems.
1470
1471Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474VAR=VALUE.  See below for descriptions of some of the useful variables.
1475
1476Defaults for the options are specified in brackets.
1477
1478Configuration:
1479  -h, --help              display this help and exit
1480      --help=short        display options specific to this package
1481      --help=recursive    display the short help of all the included packages
1482  -V, --version           display version information and exit
1483  -q, --quiet, --silent   do not print \`checking...' messages
1484      --cache-file=FILE   cache test results in FILE [disabled]
1485  -C, --config-cache      alias for \`--cache-file=config.cache'
1486  -n, --no-create         do not create output files
1487      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1488
1489Installation directories:
1490  --prefix=PREFIX         install architecture-independent files in PREFIX
1491			  [$ac_default_prefix]
1492  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1493			  [PREFIX]
1494
1495By default, \`make install' will install all the files in
1496\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1497an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498for instance \`--prefix=\$HOME'.
1499
1500For better control, use the options below.
1501
1502Fine tuning of the installation directories:
1503  --bindir=DIR           user executables [EPREFIX/bin]
1504  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1505  --libexecdir=DIR       program executables [EPREFIX/libexec]
1506  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1507  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1508  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1509  --libdir=DIR           object code libraries [EPREFIX/lib]
1510  --includedir=DIR       C header files [PREFIX/include]
1511  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1512  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1513  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1514  --infodir=DIR          info documentation [DATAROOTDIR/info]
1515  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1516  --mandir=DIR           man documentation [DATAROOTDIR/man]
1517  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1518  --htmldir=DIR          html documentation [DOCDIR]
1519  --dvidir=DIR           dvi documentation [DOCDIR]
1520  --pdfdir=DIR           pdf documentation [DOCDIR]
1521  --psdir=DIR            ps documentation [DOCDIR]
1522_ACEOF
1523
1524  cat <<\_ACEOF
1525
1526Program names:
1527  --program-prefix=PREFIX            prepend PREFIX to installed program names
1528  --program-suffix=SUFFIX            append SUFFIX to installed program names
1529  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1530
1531System types:
1532  --build=BUILD     configure for building on BUILD [guessed]
1533  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1534  --target=TARGET   configure for building compilers for TARGET [HOST]
1535_ACEOF
1536fi
1537
1538if test -n "$ac_init_help"; then
1539
1540  cat <<\_ACEOF
1541
1542Optional Features:
1543  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1544  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1545  --enable-debug 	  enable debugging no|yes|traditional [yes]
1546  --enable-dynamic	  enable linking built binaries with dynamic libs [no]
1547  --enable-syslog	  enable syslog support [auto]
1548  --enable-proctitle	  enable proctitle support [yes]
1549  --enable-ipv6 	  enable IPv6 support [auto]
1550  --enable-local	  enable AF_LOCAL (AF_UNIX) socket support [auto]
1551
1552SLAPD (Standalone LDAP Daemon) Options:
1553  --enable-slapd	  enable building slapd [yes]
1554    --enable-dynacl	  enable run-time loadable ACL support (experimental) [no]
1555    --enable-aci	  enable per-object ACIs (experimental) no|yes|mod [no]
1556    --enable-cleartext	  enable cleartext passwords [yes]
1557    --enable-crypt	  enable crypt(3) passwords [no]
1558    --enable-lmpasswd	  enable LAN Manager passwords [no]
1559    --enable-spasswd	  enable (Cyrus) SASL password verification [no]
1560    --enable-modules	  enable dynamic module support [no]
1561    --enable-rlookups	  enable reverse lookups of client hostnames [no]
1562    --enable-slapi        enable SLAPI support (experimental) [no]
1563    --enable-slp          enable SLPv2 support [no]
1564    --enable-wrappers	  enable tcp wrapper support [no]
1565
1566SLAPD Backend Options:
1567    --enable-backends	  enable all available backends no|yes|mod
1568    --enable-bdb	  enable Berkeley DB backend no|yes|mod [yes]
1569    --enable-dnssrv	  enable dnssrv backend no|yes|mod [no]
1570    --enable-hdb	  enable Hierarchical DB backend no|yes|mod [yes]
1571    --enable-ldap	  enable ldap backend no|yes|mod [no]
1572    --enable-meta	  enable metadirectory backend no|yes|mod [no]
1573    --enable-monitor	  enable monitor backend no|yes|mod [yes]
1574    --enable-null	  enable null backend no|yes|mod [no]
1575    --enable-passwd	  enable passwd backend no|yes|mod [no]
1576    --enable-perl	  enable perl backend no|yes|mod [no]
1577    --enable-relay  	  enable relay backend no|yes|mod [yes]
1578    --enable-shell	  enable shell backend no|yes|mod [no]
1579    --enable-sock	  enable sock backend no|yes|mod [no]
1580    --enable-sql	  enable sql backend no|yes|mod [no]
1581
1582SLAPD Overlay Options:
1583    --enable-overlays	  enable all available overlays no|yes|mod
1584    --enable-accesslog	  In-Directory Access Logging overlay no|yes|mod [no]
1585    --enable-dynid	  Dynamic ID overlay no|yes|mod [no]
1586    --enable-odlocales	  enable LDAP ping for Locales no|yes|mod [no]
1587    --enable-odusers	  enable OD User management no|yes|mod [no]
1588    --enable-constraint	  Attribute Constraint overlay no|yes|mod [no]
1589    --enable-dds  	  Dynamic Directory Services overlay no|yes|mod [no]
1590    --enable-deref	  Dereference overlay no|yes|mod [no]
1591    --enable-dyngroup	  Dynamic Group overlay no|yes|mod [no]
1592    --enable-nestedgroup	  Nested Group overlay no|yes|mod [no]
1593    --enable-dynlist	  Dynamic List overlay no|yes|mod [no]
1594    --enable-memberof	  Reverse Group Membership overlay no|yes|mod [no]
1595    --enable-ppolicy	  Password Policy overlay no|yes|mod [no]
1596    --enable-proxycache	  Proxy Cache overlay no|yes|mod [no]
1597    --enable-refint	  Referential Integrity overlay no|yes|mod [no]
1598    --enable-retcode	  Return Code testing overlay no|yes|mod [no]
1599    --enable-seqmod	  Sequential Modify overlay no|yes|mod [yes]
1600    --enable-syncprov	  Syncrepl Provider overlay no|yes|mod [yes]
1601    --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1602    --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1603    --enable-valsort      Value Sorting overlay no|yes|mod [no]
1604
1605Library Generation & Linking Options
1606  --enable-static[=PKGS]  build static libraries [default=yes]
1607  --enable-shared[=PKGS]  build shared libraries [default=yes]
1608  --enable-fast-install[=PKGS]
1609                          optimize for fast installation [default=yes]
1610  --disable-dependency-tracking  speeds up one-time build
1611  --enable-dependency-tracking   do not reject slow dependency extractors
1612  --disable-libtool-lock  avoid locking (might break parallel builds)
1613
1614Optional Packages:
1615  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1616  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1617  --with-subdir=DIR       change default subdirectory used for installs
1618  --with-cyrus-sasl	  with Cyrus SASL support [auto]
1619  --with-fetch		  with fetch(3) URL support [auto]
1620  --with-threads	  with threads [auto]
1621  --with-tls		  with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1622  --with-yielding-select  with implicitly yielding select [auto]
1623  --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1624  --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1625  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1626  --with-pic              try to use only PIC/non-PIC objects [default=use
1627                          both]
1628  --with-tags[=TAGS]      include additional configurations [automatic]
1629
1630See INSTALL file for further details.
1631
1632Some influential environment variables:
1633  CC          C compiler command
1634  CFLAGS      C compiler flags
1635  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1636              nonstandard directory <lib dir>
1637  LIBS        libraries to pass to the linker, e.g. -l<library>
1638  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1639              you have headers in a nonstandard directory <include dir>
1640  CPP         C preprocessor
1641
1642Use these variables to override the choices made by `configure' or to help
1643it to find libraries and programs with nonstandard names/locations.
1644
1645_ACEOF
1646ac_status=$?
1647fi
1648
1649if test "$ac_init_help" = "recursive"; then
1650  # If there are subdirs, report their specific --help.
1651  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1652    test -d "$ac_dir" || continue
1653    ac_builddir=.
1654
1655case "$ac_dir" in
1656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657*)
1658  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1659  # A ".." for each directory in $ac_dir_suffix.
1660  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1661  case $ac_top_builddir_sub in
1662  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664  esac ;;
1665esac
1666ac_abs_top_builddir=$ac_pwd
1667ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668# for backward compatibility:
1669ac_top_builddir=$ac_top_build_prefix
1670
1671case $srcdir in
1672  .)  # We are building in place.
1673    ac_srcdir=.
1674    ac_top_srcdir=$ac_top_builddir_sub
1675    ac_abs_top_srcdir=$ac_pwd ;;
1676  [\\/]* | ?:[\\/]* )  # Absolute name.
1677    ac_srcdir=$srcdir$ac_dir_suffix;
1678    ac_top_srcdir=$srcdir
1679    ac_abs_top_srcdir=$srcdir ;;
1680  *) # Relative name.
1681    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682    ac_top_srcdir=$ac_top_build_prefix$srcdir
1683    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684esac
1685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686
1687    cd "$ac_dir" || { ac_status=$?; continue; }
1688    # Check for guested configure.
1689    if test -f "$ac_srcdir/configure.gnu"; then
1690      echo &&
1691      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692    elif test -f "$ac_srcdir/configure"; then
1693      echo &&
1694      $SHELL "$ac_srcdir/configure" --help=recursive
1695    else
1696      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697    fi || ac_status=$?
1698    cd "$ac_pwd" || { ac_status=$?; break; }
1699  done
1700fi
1701
1702test -n "$ac_init_help" && exit $ac_status
1703if $ac_init_version; then
1704  cat <<\_ACEOF
1705configure
1706generated by GNU Autoconf 2.61
1707
1708Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17092002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1710This configure script is free software; the Free Software Foundation
1711gives unlimited permission to copy, distribute and modify it.
1712
1713Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
1714Restrictions apply, see COPYRIGHT and LICENSE files.
1715_ACEOF
1716  exit
1717fi
1718cat >config.log <<_ACEOF
1719This file contains any messages produced by compilers while
1720running configure, to aid debugging if configure makes a mistake.
1721
1722It was created by $as_me, which was
1723generated by GNU Autoconf 2.61.  Invocation command line was
1724
1725  $ $0 $@
1726
1727_ACEOF
1728exec 5>>config.log
1729{
1730cat <<_ASUNAME
1731## --------- ##
1732## Platform. ##
1733## --------- ##
1734
1735hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1736uname -m = `(uname -m) 2>/dev/null || echo unknown`
1737uname -r = `(uname -r) 2>/dev/null || echo unknown`
1738uname -s = `(uname -s) 2>/dev/null || echo unknown`
1739uname -v = `(uname -v) 2>/dev/null || echo unknown`
1740
1741/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1742/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1743
1744/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1745/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1746/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1747/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1748/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1749/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1750/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1751
1752_ASUNAME
1753
1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755for as_dir in $PATH
1756do
1757  IFS=$as_save_IFS
1758  test -z "$as_dir" && as_dir=.
1759  echo "PATH: $as_dir"
1760done
1761IFS=$as_save_IFS
1762
1763} >&5
1764
1765cat >&5 <<_ACEOF
1766
1767
1768## ----------- ##
1769## Core tests. ##
1770## ----------- ##
1771
1772_ACEOF
1773
1774
1775# Keep a trace of the command line.
1776# Strip out --no-create and --no-recursion so they do not pile up.
1777# Strip out --silent because we don't want to record it for future runs.
1778# Also quote any args containing shell meta-characters.
1779# Make two passes to allow for proper duplicate-argument suppression.
1780ac_configure_args=
1781ac_configure_args0=
1782ac_configure_args1=
1783ac_must_keep_next=false
1784for ac_pass in 1 2
1785do
1786  for ac_arg
1787  do
1788    case $ac_arg in
1789    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1790    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1791    | -silent | --silent | --silen | --sile | --sil)
1792      continue ;;
1793    *\'*)
1794      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1795    esac
1796    case $ac_pass in
1797    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1798    2)
1799      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1800      if test $ac_must_keep_next = true; then
1801	ac_must_keep_next=false # Got value, back to normal.
1802      else
1803	case $ac_arg in
1804	  *=* | --config-cache | -C | -disable-* | --disable-* \
1805	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1806	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1807	  | -with-* | --with-* | -without-* | --without-* | --x)
1808	    case "$ac_configure_args0 " in
1809	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1810	    esac
1811	    ;;
1812	  -* ) ac_must_keep_next=true ;;
1813	esac
1814      fi
1815      ac_configure_args="$ac_configure_args '$ac_arg'"
1816      ;;
1817    esac
1818  done
1819done
1820$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1821$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1822
1823# When interrupted or exit'd, cleanup temporary files, and complete
1824# config.log.  We remove comments because anyway the quotes in there
1825# would cause problems or look ugly.
1826# WARNING: Use '\'' to represent an apostrophe within the trap.
1827# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1828trap 'exit_status=$?
1829  # Save into config.log some information that might help in debugging.
1830  {
1831    echo
1832
1833    cat <<\_ASBOX
1834## ---------------- ##
1835## Cache variables. ##
1836## ---------------- ##
1837_ASBOX
1838    echo
1839    # The following way of writing the cache mishandles newlines in values,
1840(
1841  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1842    eval ac_val=\$$ac_var
1843    case $ac_val in #(
1844    *${as_nl}*)
1845      case $ac_var in #(
1846      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1847echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1848      esac
1849      case $ac_var in #(
1850      _ | IFS | as_nl) ;; #(
1851      *) $as_unset $ac_var ;;
1852      esac ;;
1853    esac
1854  done
1855  (set) 2>&1 |
1856    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1857    *${as_nl}ac_space=\ *)
1858      sed -n \
1859	"s/'\''/'\''\\\\'\'''\''/g;
1860	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1861      ;; #(
1862    *)
1863      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1864      ;;
1865    esac |
1866    sort
1867)
1868    echo
1869
1870    cat <<\_ASBOX
1871## ----------------- ##
1872## Output variables. ##
1873## ----------------- ##
1874_ASBOX
1875    echo
1876    for ac_var in $ac_subst_vars
1877    do
1878      eval ac_val=\$$ac_var
1879      case $ac_val in
1880      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1881      esac
1882      echo "$ac_var='\''$ac_val'\''"
1883    done | sort
1884    echo
1885
1886    if test -n "$ac_subst_files"; then
1887      cat <<\_ASBOX
1888## ------------------- ##
1889## File substitutions. ##
1890## ------------------- ##
1891_ASBOX
1892      echo
1893      for ac_var in $ac_subst_files
1894      do
1895	eval ac_val=\$$ac_var
1896	case $ac_val in
1897	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1898	esac
1899	echo "$ac_var='\''$ac_val'\''"
1900      done | sort
1901      echo
1902    fi
1903
1904    if test -s confdefs.h; then
1905      cat <<\_ASBOX
1906## ----------- ##
1907## confdefs.h. ##
1908## ----------- ##
1909_ASBOX
1910      echo
1911      cat confdefs.h
1912      echo
1913    fi
1914    test "$ac_signal" != 0 &&
1915      echo "$as_me: caught signal $ac_signal"
1916    echo "$as_me: exit $exit_status"
1917  } >&5
1918  rm -f core *.core core.conftest.* &&
1919    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1920    exit $exit_status
1921' 0
1922for ac_signal in 1 2 13 15; do
1923  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1924done
1925ac_signal=0
1926
1927# confdefs.h avoids OS command line length limits that DEFS can exceed.
1928rm -f -r conftest* confdefs.h
1929
1930# Predefined preprocessor variables.
1931
1932cat >>confdefs.h <<_ACEOF
1933#define PACKAGE_NAME "$PACKAGE_NAME"
1934_ACEOF
1935
1936
1937cat >>confdefs.h <<_ACEOF
1938#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1939_ACEOF
1940
1941
1942cat >>confdefs.h <<_ACEOF
1943#define PACKAGE_VERSION "$PACKAGE_VERSION"
1944_ACEOF
1945
1946
1947cat >>confdefs.h <<_ACEOF
1948#define PACKAGE_STRING "$PACKAGE_STRING"
1949_ACEOF
1950
1951
1952cat >>confdefs.h <<_ACEOF
1953#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1954_ACEOF
1955
1956
1957# Let the site file select an alternate cache file if it wants to.
1958# Prefer explicitly selected file to automatically selected ones.
1959if test -n "$CONFIG_SITE"; then
1960  set x "$CONFIG_SITE"
1961elif test "x$prefix" != xNONE; then
1962  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1963else
1964  set x "$ac_default_prefix/share/config.site" \
1965	"$ac_default_prefix/etc/config.site"
1966fi
1967shift
1968for ac_site_file
1969do
1970  if test -r "$ac_site_file"; then
1971    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1972echo "$as_me: loading site script $ac_site_file" >&6;}
1973    sed 's/^/| /' "$ac_site_file" >&5
1974    . "$ac_site_file"
1975  fi
1976done
1977
1978
1979# Check that the precious variables saved in the cache have kept the same
1980# value.
1981ac_cache_corrupted=false
1982for ac_var in $ac_precious_vars; do
1983  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984  eval ac_new_set=\$ac_env_${ac_var}_set
1985  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986  eval ac_new_val=\$ac_env_${ac_var}_value
1987  case $ac_old_set,$ac_new_set in
1988    set,)
1989      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991      ac_cache_corrupted=: ;;
1992    ,set)
1993      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995      ac_cache_corrupted=: ;;
1996    ,);;
1997    *)
1998      if test "x$ac_old_val" != "x$ac_new_val"; then
1999	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2000echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2001	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2002echo "$as_me:   former value:  $ac_old_val" >&2;}
2003	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2004echo "$as_me:   current value: $ac_new_val" >&2;}
2005	ac_cache_corrupted=:
2006      fi;;
2007  esac
2008  # Pass precious variables to config.status.
2009  if test "$ac_new_set" = set; then
2010    case $ac_new_val in
2011    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2012    *) ac_arg=$ac_var=$ac_new_val ;;
2013    esac
2014    case " $ac_configure_args " in
2015      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2016      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2017    esac
2018  fi
2019done
2020if $ac_cache_corrupted; then
2021  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025   { (exit 1); exit 1; }; }
2026fi
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044ac_ext=c
2045ac_cpp='$CPP $CPPFLAGS'
2046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077ac_aux_dir=
2078for ac_dir in build "$srcdir"/build; do
2079  if test -f "$ac_dir/install-sh"; then
2080    ac_aux_dir=$ac_dir
2081    ac_install_sh="$ac_aux_dir/install-sh -c"
2082    break
2083  elif test -f "$ac_dir/install.sh"; then
2084    ac_aux_dir=$ac_dir
2085    ac_install_sh="$ac_aux_dir/install.sh -c"
2086    break
2087  elif test -f "$ac_dir/shtool"; then
2088    ac_aux_dir=$ac_dir
2089    ac_install_sh="$ac_aux_dir/shtool install -c"
2090    break
2091  fi
2092done
2093if test -z "$ac_aux_dir"; then
2094  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2095echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2096   { (exit 1); exit 1; }; }
2097fi
2098
2099# These three variables are undocumented and unsupported,
2100# and are intended to be withdrawn in a future Autoconf release.
2101# They can cause serious problems if a builder's source tree is in a directory
2102# whose full name contains unusual characters.
2103ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2104ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2105ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2106
2107
2108eval `$ac_aux_dir/version.sh`
2109if test -z "$OL_STRING"; then
2110	{ { echo "$as_me:$LINENO: error: could not determine version" >&5
2111echo "$as_me: error: could not determine version" >&2;}
2112   { (exit 1); exit 1; }; }
2113fi
2114
2115if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2116	ac_cv_shtool="$ac_aux_dir/shtool"
2117else
2118	{ { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2119echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2120   { (exit 1); exit 1; }; }
2121fi
2122
2123SHTOOL="$ac_cv_shtool"
2124
2125TB="" TN=""
2126if test -t 1; then
2127	TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2128	TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2129fi
2130
2131OPENLDAP_REPO=""
2132if test -d $ac_aux_dir/../.git; then
2133	OPENLDAP_REPO="(from Git clone) "
2134elif test -d $ac_aux_dir/CVS; then
2135	OPENLDAP_REPO="(from CVS checkout) "
2136fi
2137
2138echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2139
2140# Make sure we can run config.sub.
2141$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2142  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2143echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2144   { (exit 1); exit 1; }; }
2145
2146{ echo "$as_me:$LINENO: checking build system type" >&5
2147echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2148if test "${ac_cv_build+set}" = set; then
2149  echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151  ac_build_alias=$build_alias
2152test "x$ac_build_alias" = x &&
2153  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2154test "x$ac_build_alias" = x &&
2155  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2156echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2157   { (exit 1); exit 1; }; }
2158ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2159  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2160echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2161   { (exit 1); exit 1; }; }
2162
2163fi
2164{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2165echo "${ECHO_T}$ac_cv_build" >&6; }
2166case $ac_cv_build in
2167*-*-*) ;;
2168*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2169echo "$as_me: error: invalid value of canonical build" >&2;}
2170   { (exit 1); exit 1; }; };;
2171esac
2172build=$ac_cv_build
2173ac_save_IFS=$IFS; IFS='-'
2174set x $ac_cv_build
2175shift
2176build_cpu=$1
2177build_vendor=$2
2178shift; shift
2179# Remember, the first character of IFS is used to create $*,
2180# except with old shells:
2181build_os=$*
2182IFS=$ac_save_IFS
2183case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2184
2185
2186{ echo "$as_me:$LINENO: checking host system type" >&5
2187echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2188if test "${ac_cv_host+set}" = set; then
2189  echo $ECHO_N "(cached) $ECHO_C" >&6
2190else
2191  if test "x$host_alias" = x; then
2192  ac_cv_host=$ac_cv_build
2193else
2194  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2195    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2196echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2197   { (exit 1); exit 1; }; }
2198fi
2199
2200fi
2201{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2202echo "${ECHO_T}$ac_cv_host" >&6; }
2203case $ac_cv_host in
2204*-*-*) ;;
2205*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2206echo "$as_me: error: invalid value of canonical host" >&2;}
2207   { (exit 1); exit 1; }; };;
2208esac
2209host=$ac_cv_host
2210ac_save_IFS=$IFS; IFS='-'
2211set x $ac_cv_host
2212shift
2213host_cpu=$1
2214host_vendor=$2
2215shift; shift
2216# Remember, the first character of IFS is used to create $*,
2217# except with old shells:
2218host_os=$*
2219IFS=$ac_save_IFS
2220case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2221
2222
2223{ echo "$as_me:$LINENO: checking target system type" >&5
2224echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2225if test "${ac_cv_target+set}" = set; then
2226  echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
2228  if test "x$target_alias" = x; then
2229  ac_cv_target=$ac_cv_host
2230else
2231  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2232    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2233echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2234   { (exit 1); exit 1; }; }
2235fi
2236
2237fi
2238{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2239echo "${ECHO_T}$ac_cv_target" >&6; }
2240case $ac_cv_target in
2241*-*-*) ;;
2242*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2243echo "$as_me: error: invalid value of canonical target" >&2;}
2244   { (exit 1); exit 1; }; };;
2245esac
2246target=$ac_cv_target
2247ac_save_IFS=$IFS; IFS='-'
2248set x $ac_cv_target
2249shift
2250target_cpu=$1
2251target_vendor=$2
2252shift; shift
2253# Remember, the first character of IFS is used to create $*,
2254# except with old shells:
2255target_os=$*
2256IFS=$ac_save_IFS
2257case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2258
2259
2260# The aliases save the names the user supplied, while $host etc.
2261# will get canonicalized.
2262test -n "$target_alias" &&
2263  test "$program_prefix$program_suffix$program_transform_name" = \
2264    NONENONEs,x,x, &&
2265  program_prefix=${target_alias}-
2266
2267am__api_version="1.9"
2268# Find a good install program.  We prefer a C program (faster),
2269# so one script is as good as another.  But avoid the broken or
2270# incompatible versions:
2271# SysV /etc/install, /usr/sbin/install
2272# SunOS /usr/etc/install
2273# IRIX /sbin/install
2274# AIX /bin/install
2275# AmigaOS /C/install, which installs bootblocks on floppy discs
2276# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2277# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2278# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2279# OS/2's system install, which has a completely different semantic
2280# ./install, which can be erroneously created by make from ./install.sh.
2281{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2282echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2283if test -z "$INSTALL"; then
2284if test "${ac_cv_path_install+set}" = set; then
2285  echo $ECHO_N "(cached) $ECHO_C" >&6
2286else
2287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290  IFS=$as_save_IFS
2291  test -z "$as_dir" && as_dir=.
2292  # Account for people who put trailing slashes in PATH elements.
2293case $as_dir/ in
2294  ./ | .// | /cC/* | \
2295  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2297  /usr/ucb/* ) ;;
2298  *)
2299    # OSF1 and SCO ODT 3.0 have their own names for install.
2300    # Don't use installbsd from OSF since it installs stuff as root
2301    # by default.
2302    for ac_prog in ginstall scoinst install; do
2303      for ac_exec_ext in '' $ac_executable_extensions; do
2304	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2305	  if test $ac_prog = install &&
2306	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307	    # AIX install.  It has an incompatible calling convention.
2308	    :
2309	  elif test $ac_prog = install &&
2310	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311	    # program-specific install script used by HP pwplus--don't use.
2312	    :
2313	  else
2314	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2315	    break 3
2316	  fi
2317	fi
2318      done
2319    done
2320    ;;
2321esac
2322done
2323IFS=$as_save_IFS
2324
2325
2326fi
2327  if test "${ac_cv_path_install+set}" = set; then
2328    INSTALL=$ac_cv_path_install
2329  else
2330    # As a last resort, use the slow shell script.  Don't cache a
2331    # value for INSTALL within a source directory, because that will
2332    # break other packages using the cache if that directory is
2333    # removed, or if the value is a relative name.
2334    INSTALL=$ac_install_sh
2335  fi
2336fi
2337{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2338echo "${ECHO_T}$INSTALL" >&6; }
2339
2340# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2341# It thinks the first close brace ends the variable substitution.
2342test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2343
2344test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2345
2346test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2347
2348{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2349echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2350# Just in case
2351sleep 1
2352echo timestamp > conftest.file
2353# Do `set' in a subshell so we don't clobber the current shell's
2354# arguments.  Must try -L first in case configure is actually a
2355# symlink; some systems play weird games with the mod time of symlinks
2356# (eg FreeBSD returns the mod time of the symlink's containing
2357# directory).
2358if (
2359   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2360   if test "$*" = "X"; then
2361      # -L didn't work.
2362      set X `ls -t $srcdir/configure conftest.file`
2363   fi
2364   rm -f conftest.file
2365   if test "$*" != "X $srcdir/configure conftest.file" \
2366      && test "$*" != "X conftest.file $srcdir/configure"; then
2367
2368      # If neither matched, then we have a broken ls.  This can happen
2369      # if, for instance, CONFIG_SHELL is bash and it inherits a
2370      # broken ls alias from the environment.  This has actually
2371      # happened.  Such a system could not be considered "sane".
2372      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2373alias in your environment" >&5
2374echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2375alias in your environment" >&2;}
2376   { (exit 1); exit 1; }; }
2377   fi
2378
2379   test "$2" = conftest.file
2380   )
2381then
2382   # Ok.
2383   :
2384else
2385   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2386Check your system clock" >&5
2387echo "$as_me: error: newly created file is older than distributed files!
2388Check your system clock" >&2;}
2389   { (exit 1); exit 1; }; }
2390fi
2391{ echo "$as_me:$LINENO: result: yes" >&5
2392echo "${ECHO_T}yes" >&6; }
2393test "$program_prefix" != NONE &&
2394  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2395# Use a double $ so make ignores it.
2396test "$program_suffix" != NONE &&
2397  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2398# Double any \ or $.  echo might interpret backslashes.
2399# By default was `s,x,x', remove it if useless.
2400cat <<\_ACEOF >conftest.sed
2401s/[\\$]/&&/g;s/;s,x,x,$//
2402_ACEOF
2403program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2404rm -f conftest.sed
2405
2406# expand $ac_aux_dir to an absolute path
2407am_aux_dir=`cd $ac_aux_dir && pwd`
2408
2409test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2410# Use eval to expand $SHELL
2411if eval "$MISSING --run true"; then
2412  am_missing_run="$MISSING --run "
2413else
2414  am_missing_run=
2415  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2416echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2417fi
2418
2419if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2420  # We used to keeping the `.' as first argument, in order to
2421  # allow $(mkdir_p) to be used without argument.  As in
2422  #   $(mkdir_p) $(somedir)
2423  # where $(somedir) is conditionally defined.  However this is wrong
2424  # for two reasons:
2425  #  1. if the package is installed by a user who cannot write `.'
2426  #     make install will fail,
2427  #  2. the above comment should most certainly read
2428  #     $(mkdir_p) $(DESTDIR)$(somedir)
2429  #     so it does not work when $(somedir) is undefined and
2430  #     $(DESTDIR) is not.
2431  #  To support the latter case, we have to write
2432  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2433  #  so the `.' trick is pointless.
2434  mkdir_p='mkdir -p --'
2435else
2436  # On NextStep and OpenStep, the `mkdir' command does not
2437  # recognize any option.  It will interpret all options as
2438  # directories to create, and then abort because `.' already
2439  # exists.
2440  for d in ./-p ./--version;
2441  do
2442    test -d $d && rmdir $d
2443  done
2444  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2445  if test -f "$ac_aux_dir/mkinstalldirs"; then
2446    mkdir_p='$(mkinstalldirs)'
2447  else
2448    mkdir_p='$(install_sh) -d'
2449  fi
2450fi
2451
2452for ac_prog in gawk mawk nawk awk
2453do
2454  # Extract the first word of "$ac_prog", so it can be a program name with args.
2455set dummy $ac_prog; ac_word=$2
2456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458if test "${ac_cv_prog_AWK+set}" = set; then
2459  echo $ECHO_N "(cached) $ECHO_C" >&6
2460else
2461  if test -n "$AWK"; then
2462  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467  IFS=$as_save_IFS
2468  test -z "$as_dir" && as_dir=.
2469  for ac_exec_ext in '' $ac_executable_extensions; do
2470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471    ac_cv_prog_AWK="$ac_prog"
2472    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473    break 2
2474  fi
2475done
2476done
2477IFS=$as_save_IFS
2478
2479fi
2480fi
2481AWK=$ac_cv_prog_AWK
2482if test -n "$AWK"; then
2483  { echo "$as_me:$LINENO: result: $AWK" >&5
2484echo "${ECHO_T}$AWK" >&6; }
2485else
2486  { echo "$as_me:$LINENO: result: no" >&5
2487echo "${ECHO_T}no" >&6; }
2488fi
2489
2490
2491  test -n "$AWK" && break
2492done
2493
2494{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2495echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2496set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2497if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2498  echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500  cat >conftest.make <<\_ACEOF
2501SHELL = /bin/sh
2502all:
2503	@echo '@@@%%%=$(MAKE)=@@@%%%'
2504_ACEOF
2505# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2506case `${MAKE-make} -f conftest.make 2>/dev/null` in
2507  *@@@%%%=?*=@@@%%%*)
2508    eval ac_cv_prog_make_${ac_make}_set=yes;;
2509  *)
2510    eval ac_cv_prog_make_${ac_make}_set=no;;
2511esac
2512rm -f conftest.make
2513fi
2514if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2515  { echo "$as_me:$LINENO: result: yes" >&5
2516echo "${ECHO_T}yes" >&6; }
2517  SET_MAKE=
2518else
2519  { echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6; }
2521  SET_MAKE="MAKE=${MAKE-make}"
2522fi
2523
2524rm -rf .tst 2>/dev/null
2525mkdir .tst 2>/dev/null
2526if test -d .tst; then
2527  am__leading_dot=.
2528else
2529  am__leading_dot=_
2530fi
2531rmdir .tst 2>/dev/null
2532
2533# test to see if srcdir already configured
2534if test "`cd $srcdir && pwd`" != "`pwd`" &&
2535   test -f $srcdir/config.status; then
2536  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2537echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2538   { (exit 1); exit 1; }; }
2539fi
2540
2541# test whether we have cygpath
2542if test -z "$CYGPATH_W"; then
2543  if (cygpath --version) >/dev/null 2>/dev/null; then
2544    CYGPATH_W='cygpath -w'
2545  else
2546    CYGPATH_W=echo
2547  fi
2548fi
2549
2550
2551# Define the identity of the package.
2552 PACKAGE=$OL_PACKAGE
2553 VERSION=$OL_VERSION
2554
2555
2556# Some tools Automake needs.
2557
2558ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2559
2560
2561AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2562
2563
2564AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2565
2566
2567AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2568
2569
2570MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2571
2572install_sh=${install_sh-"$am_aux_dir/install-sh"}
2573
2574# Installed binaries are usually stripped using `strip' when the user
2575# run `make install-strip'.  However `strip' might not be the right
2576# tool to use in cross-compilation environments, therefore Automake
2577# will honor the `STRIP' environment variable to overrule this program.
2578if test "$cross_compiling" != no; then
2579  if test -n "$ac_tool_prefix"; then
2580  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2581set dummy ${ac_tool_prefix}strip; ac_word=$2
2582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584if test "${ac_cv_prog_STRIP+set}" = set; then
2585  echo $ECHO_N "(cached) $ECHO_C" >&6
2586else
2587  if test -n "$STRIP"; then
2588  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2589else
2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH
2592do
2593  IFS=$as_save_IFS
2594  test -z "$as_dir" && as_dir=.
2595  for ac_exec_ext in '' $ac_executable_extensions; do
2596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2598    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599    break 2
2600  fi
2601done
2602done
2603IFS=$as_save_IFS
2604
2605fi
2606fi
2607STRIP=$ac_cv_prog_STRIP
2608if test -n "$STRIP"; then
2609  { echo "$as_me:$LINENO: result: $STRIP" >&5
2610echo "${ECHO_T}$STRIP" >&6; }
2611else
2612  { echo "$as_me:$LINENO: result: no" >&5
2613echo "${ECHO_T}no" >&6; }
2614fi
2615
2616
2617fi
2618if test -z "$ac_cv_prog_STRIP"; then
2619  ac_ct_STRIP=$STRIP
2620  # Extract the first word of "strip", so it can be a program name with args.
2621set dummy strip; ac_word=$2
2622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2625  echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
2627  if test -n "$ac_ct_STRIP"; then
2628  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633  IFS=$as_save_IFS
2634  test -z "$as_dir" && as_dir=.
2635  for ac_exec_ext in '' $ac_executable_extensions; do
2636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637    ac_cv_prog_ac_ct_STRIP="strip"
2638    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639    break 2
2640  fi
2641done
2642done
2643IFS=$as_save_IFS
2644
2645fi
2646fi
2647ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2648if test -n "$ac_ct_STRIP"; then
2649  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2650echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2651else
2652  { echo "$as_me:$LINENO: result: no" >&5
2653echo "${ECHO_T}no" >&6; }
2654fi
2655
2656  if test "x$ac_ct_STRIP" = x; then
2657    STRIP=":"
2658  else
2659    case $cross_compiling:$ac_tool_warned in
2660yes:)
2661{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2662whose name does not start with the host triplet.  If you think this
2663configuration is useful to you, please write to autoconf@gnu.org." >&5
2664echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2665whose name does not start with the host triplet.  If you think this
2666configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2667ac_tool_warned=yes ;;
2668esac
2669    STRIP=$ac_ct_STRIP
2670  fi
2671else
2672  STRIP="$ac_cv_prog_STRIP"
2673fi
2674
2675fi
2676INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2677
2678# We need awk for the "check" target.  The system "awk" is bad on
2679# some platforms.
2680# Always define AMTAR for backward compatibility.
2681
2682AMTAR=${AMTAR-"${am_missing_run}tar"}
2683
2684am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2685
2686
2687
2688
2689
2690cat >>confdefs.h <<_ACEOF
2691#define OPENLDAP_PACKAGE "$PACKAGE"
2692_ACEOF
2693
2694
2695cat >>confdefs.h <<_ACEOF
2696#define OPENLDAP_VERSION "$VERSION"
2697_ACEOF
2698
2699
2700
2701cat >>confdefs.h <<_ACEOF
2702#define LDAP_VENDOR_VERSION $OL_API_INC
2703_ACEOF
2704
2705
2706cat >>confdefs.h <<_ACEOF
2707#define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2708_ACEOF
2709
2710
2711cat >>confdefs.h <<_ACEOF
2712#define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2713_ACEOF
2714
2715
2716cat >>confdefs.h <<_ACEOF
2717#define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2718_ACEOF
2719
2720
2721OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2722
2723OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2724
2725OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2726
2727
2728
2729
2730
2731
2732
2733ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2734
2735ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2736
2737ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2738
2739
2740{ echo "$as_me:$LINENO: checking configure arguments" >&5
2741echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2742
2743
2744top_builddir=`pwd`
2745
2746ldap_subdir="/openldap"
2747
2748
2749# Check whether --with-subdir was given.
2750if test "${with_subdir+set}" = set; then
2751  withval=$with_subdir; case "$withval" in
2752	no) ldap_subdir=""
2753		;;
2754	yes)
2755		;;
2756	/*|\\*)
2757		ldap_subdir="$withval"
2758		;;
2759	*)
2760		ldap_subdir="/$withval"
2761		;;
2762esac
2763
2764fi
2765
2766
2767# OpenLDAP --enable-debug
2768
2769	# Check whether --enable-debug was given.
2770if test "${enable_debug+set}" = set; then
2771  enableval=$enable_debug;
2772	ol_arg=invalid
2773	for ol_val in no yes traditional ; do
2774		if test "$enableval" = "$ol_val" ; then
2775			ol_arg="$ol_val"
2776		fi
2777	done
2778	if test "$ol_arg" = "invalid" ; then
2779		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2780echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2781   { (exit 1); exit 1; }; }
2782	fi
2783	ol_enable_debug="$ol_arg"
2784
2785else
2786  	ol_enable_debug=yes
2787fi
2788
2789# end --enable-debug
2790# OpenLDAP --enable-dynamic
2791
2792	# Check whether --enable-dynamic was given.
2793if test "${enable_dynamic+set}" = set; then
2794  enableval=$enable_dynamic;
2795	ol_arg=invalid
2796	for ol_val in auto yes no ; do
2797		if test "$enableval" = "$ol_val" ; then
2798			ol_arg="$ol_val"
2799		fi
2800	done
2801	if test "$ol_arg" = "invalid" ; then
2802		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2803echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2804   { (exit 1); exit 1; }; }
2805	fi
2806	ol_enable_dynamic="$ol_arg"
2807
2808else
2809  	ol_enable_dynamic=no
2810fi
2811
2812# end --enable-dynamic
2813# OpenLDAP --enable-syslog
2814
2815	# Check whether --enable-syslog was given.
2816if test "${enable_syslog+set}" = set; then
2817  enableval=$enable_syslog;
2818	ol_arg=invalid
2819	for ol_val in auto yes no ; do
2820		if test "$enableval" = "$ol_val" ; then
2821			ol_arg="$ol_val"
2822		fi
2823	done
2824	if test "$ol_arg" = "invalid" ; then
2825		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2826echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2827   { (exit 1); exit 1; }; }
2828	fi
2829	ol_enable_syslog="$ol_arg"
2830
2831else
2832  	ol_enable_syslog=auto
2833fi
2834
2835# end --enable-syslog
2836# OpenLDAP --enable-proctitle
2837
2838	# Check whether --enable-proctitle was given.
2839if test "${enable_proctitle+set}" = set; then
2840  enableval=$enable_proctitle;
2841	ol_arg=invalid
2842	for ol_val in auto yes no ; do
2843		if test "$enableval" = "$ol_val" ; then
2844			ol_arg="$ol_val"
2845		fi
2846	done
2847	if test "$ol_arg" = "invalid" ; then
2848		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2849echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2850   { (exit 1); exit 1; }; }
2851	fi
2852	ol_enable_proctitle="$ol_arg"
2853
2854else
2855  	ol_enable_proctitle=yes
2856fi
2857
2858# end --enable-proctitle
2859ol_enable_referrals=${ol_enable_referrals-no}
2860# OpenLDAP --enable-ipv6
2861
2862	# Check whether --enable-ipv6 was given.
2863if test "${enable_ipv6+set}" = set; then
2864  enableval=$enable_ipv6;
2865	ol_arg=invalid
2866	for ol_val in auto yes no ; do
2867		if test "$enableval" = "$ol_val" ; then
2868			ol_arg="$ol_val"
2869		fi
2870	done
2871	if test "$ol_arg" = "invalid" ; then
2872		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2873echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2874   { (exit 1); exit 1; }; }
2875	fi
2876	ol_enable_ipv6="$ol_arg"
2877
2878else
2879  	ol_enable_ipv6=auto
2880fi
2881
2882# end --enable-ipv6
2883# OpenLDAP --enable-local
2884
2885	# Check whether --enable-local was given.
2886if test "${enable_local+set}" = set; then
2887  enableval=$enable_local;
2888	ol_arg=invalid
2889	for ol_val in auto yes no ; do
2890		if test "$enableval" = "$ol_val" ; then
2891			ol_arg="$ol_val"
2892		fi
2893	done
2894	if test "$ol_arg" = "invalid" ; then
2895		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2896echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2897   { (exit 1); exit 1; }; }
2898	fi
2899	ol_enable_local="$ol_arg"
2900
2901else
2902  	ol_enable_local=auto
2903fi
2904
2905# end --enable-local
2906
2907# OpenLDAP --with-cyrus_sasl
2908
2909# Check whether --with-cyrus_sasl was given.
2910if test "${with_cyrus_sasl+set}" = set; then
2911  withval=$with_cyrus_sasl;
2912	ol_arg=invalid
2913	for ol_val in auto yes no  ; do
2914		if test "$withval" = "$ol_val" ; then
2915			ol_arg="$ol_val"
2916		fi
2917	done
2918	if test "$ol_arg" = "invalid" ; then
2919		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2920echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2921   { (exit 1); exit 1; }; }
2922	fi
2923	ol_with_cyrus_sasl="$ol_arg"
2924
2925else
2926  	ol_with_cyrus_sasl="auto"
2927fi
2928# end --with-cyrus_sasl
2929
2930# OpenLDAP --with-fetch
2931
2932# Check whether --with-fetch was given.
2933if test "${with_fetch+set}" = set; then
2934  withval=$with_fetch;
2935	ol_arg=invalid
2936	for ol_val in auto yes no  ; do
2937		if test "$withval" = "$ol_val" ; then
2938			ol_arg="$ol_val"
2939		fi
2940	done
2941	if test "$ol_arg" = "invalid" ; then
2942		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2943echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2944   { (exit 1); exit 1; }; }
2945	fi
2946	ol_with_fetch="$ol_arg"
2947
2948else
2949  	ol_with_fetch="auto"
2950fi
2951# end --with-fetch
2952
2953# OpenLDAP --with-threads
2954
2955# Check whether --with-threads was given.
2956if test "${with_threads+set}" = set; then
2957  withval=$with_threads;
2958	ol_arg=invalid
2959	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2960		if test "$withval" = "$ol_val" ; then
2961			ol_arg="$ol_val"
2962		fi
2963	done
2964	if test "$ol_arg" = "invalid" ; then
2965		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2966echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2967   { (exit 1); exit 1; }; }
2968	fi
2969	ol_with_threads="$ol_arg"
2970
2971else
2972  	ol_with_threads="auto"
2973fi
2974# end --with-threads
2975
2976# OpenLDAP --with-tls
2977
2978# Check whether --with-tls was given.
2979if test "${with_tls+set}" = set; then
2980  withval=$with_tls;
2981	ol_arg=invalid
2982	for ol_val in auto openssl gnutls moznss yes no  ; do
2983		if test "$withval" = "$ol_val" ; then
2984			ol_arg="$ol_val"
2985		fi
2986	done
2987	if test "$ol_arg" = "invalid" ; then
2988		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2989echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2990   { (exit 1); exit 1; }; }
2991	fi
2992	ol_with_tls="$ol_arg"
2993
2994else
2995  	ol_with_tls="auto"
2996fi
2997# end --with-tls
2998
2999# OpenLDAP --with-yielding_select
3000
3001# Check whether --with-yielding_select was given.
3002if test "${with_yielding_select+set}" = set; then
3003  withval=$with_yielding_select;
3004	ol_arg=invalid
3005	for ol_val in auto yes no manual  ; do
3006		if test "$withval" = "$ol_val" ; then
3007			ol_arg="$ol_val"
3008		fi
3009	done
3010	if test "$ol_arg" = "invalid" ; then
3011		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3012echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3013   { (exit 1); exit 1; }; }
3014	fi
3015	ol_with_yielding_select="$ol_arg"
3016
3017else
3018  	ol_with_yielding_select="auto"
3019fi
3020# end --with-yielding_select
3021
3022# OpenLDAP --with-mp
3023
3024# Check whether --with-mp was given.
3025if test "${with_mp+set}" = set; then
3026  withval=$with_mp;
3027	ol_arg=invalid
3028	for ol_val in auto longlong long bignum gmp yes no ; do
3029		if test "$withval" = "$ol_val" ; then
3030			ol_arg="$ol_val"
3031		fi
3032	done
3033	if test "$ol_arg" = "invalid" ; then
3034		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3035echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3036   { (exit 1); exit 1; }; }
3037	fi
3038	ol_with_mp="$ol_arg"
3039
3040else
3041  	ol_with_mp="auto"
3042fi
3043# end --with-mp
3044
3045# OpenLDAP --with-odbc
3046
3047# Check whether --with-odbc was given.
3048if test "${with_odbc+set}" = set; then
3049  withval=$with_odbc;
3050	ol_arg=invalid
3051	for ol_val in auto iodbc unixodbc odbc32  ; do
3052		if test "$withval" = "$ol_val" ; then
3053			ol_arg="$ol_val"
3054		fi
3055	done
3056	if test "$ol_arg" = "invalid" ; then
3057		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3058echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3059   { (exit 1); exit 1; }; }
3060	fi
3061	ol_with_odbc="$ol_arg"
3062
3063else
3064  	ol_with_odbc="auto"
3065fi
3066# end --with-odbc
3067
3068
3069
3070# Check whether --enable-xxslapdoptions was given.
3071if test "${enable_xxslapdoptions+set}" = set; then
3072  enableval=$enable_xxslapdoptions;
3073fi
3074
3075# OpenLDAP --enable-slapd
3076
3077	# Check whether --enable-slapd was given.
3078if test "${enable_slapd+set}" = set; then
3079  enableval=$enable_slapd;
3080	ol_arg=invalid
3081	for ol_val in auto yes no ; do
3082		if test "$enableval" = "$ol_val" ; then
3083			ol_arg="$ol_val"
3084		fi
3085	done
3086	if test "$ol_arg" = "invalid" ; then
3087		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3088echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3089   { (exit 1); exit 1; }; }
3090	fi
3091	ol_enable_slapd="$ol_arg"
3092
3093else
3094  	ol_enable_slapd=yes
3095fi
3096
3097# end --enable-slapd
3098# OpenLDAP --enable-dynacl
3099
3100	# Check whether --enable-dynacl was given.
3101if test "${enable_dynacl+set}" = set; then
3102  enableval=$enable_dynacl;
3103	ol_arg=invalid
3104	for ol_val in auto yes no ; do
3105		if test "$enableval" = "$ol_val" ; then
3106			ol_arg="$ol_val"
3107		fi
3108	done
3109	if test "$ol_arg" = "invalid" ; then
3110		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3111echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3112   { (exit 1); exit 1; }; }
3113	fi
3114	ol_enable_dynacl="$ol_arg"
3115
3116else
3117  	ol_enable_dynacl=no
3118fi
3119
3120# end --enable-dynacl
3121# OpenLDAP --enable-aci
3122
3123	# Check whether --enable-aci was given.
3124if test "${enable_aci+set}" = set; then
3125  enableval=$enable_aci;
3126	ol_arg=invalid
3127	for ol_val in no yes mod ; do
3128		if test "$enableval" = "$ol_val" ; then
3129			ol_arg="$ol_val"
3130		fi
3131	done
3132	if test "$ol_arg" = "invalid" ; then
3133		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3134echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3135   { (exit 1); exit 1; }; }
3136	fi
3137	ol_enable_aci="$ol_arg"
3138
3139else
3140  	ol_enable_aci=no
3141fi
3142
3143# end --enable-aci
3144# OpenLDAP --enable-cleartext
3145
3146	# Check whether --enable-cleartext was given.
3147if test "${enable_cleartext+set}" = set; then
3148  enableval=$enable_cleartext;
3149	ol_arg=invalid
3150	for ol_val in auto yes no ; do
3151		if test "$enableval" = "$ol_val" ; then
3152			ol_arg="$ol_val"
3153		fi
3154	done
3155	if test "$ol_arg" = "invalid" ; then
3156		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3157echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3158   { (exit 1); exit 1; }; }
3159	fi
3160	ol_enable_cleartext="$ol_arg"
3161
3162else
3163  	ol_enable_cleartext=yes
3164fi
3165
3166# end --enable-cleartext
3167# OpenLDAP --enable-crypt
3168
3169	# Check whether --enable-crypt was given.
3170if test "${enable_crypt+set}" = set; then
3171  enableval=$enable_crypt;
3172	ol_arg=invalid
3173	for ol_val in auto yes no ; do
3174		if test "$enableval" = "$ol_val" ; then
3175			ol_arg="$ol_val"
3176		fi
3177	done
3178	if test "$ol_arg" = "invalid" ; then
3179		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3180echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3181   { (exit 1); exit 1; }; }
3182	fi
3183	ol_enable_crypt="$ol_arg"
3184
3185else
3186  	ol_enable_crypt=no
3187fi
3188
3189# end --enable-crypt
3190# OpenLDAP --enable-lmpasswd
3191
3192	# Check whether --enable-lmpasswd was given.
3193if test "${enable_lmpasswd+set}" = set; then
3194  enableval=$enable_lmpasswd;
3195	ol_arg=invalid
3196	for ol_val in auto yes no ; do
3197		if test "$enableval" = "$ol_val" ; then
3198			ol_arg="$ol_val"
3199		fi
3200	done
3201	if test "$ol_arg" = "invalid" ; then
3202		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3203echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3204   { (exit 1); exit 1; }; }
3205	fi
3206	ol_enable_lmpasswd="$ol_arg"
3207
3208else
3209  	ol_enable_lmpasswd=no
3210fi
3211
3212# end --enable-lmpasswd
3213# OpenLDAP --enable-spasswd
3214
3215	# Check whether --enable-spasswd was given.
3216if test "${enable_spasswd+set}" = set; then
3217  enableval=$enable_spasswd;
3218	ol_arg=invalid
3219	for ol_val in auto yes no ; do
3220		if test "$enableval" = "$ol_val" ; then
3221			ol_arg="$ol_val"
3222		fi
3223	done
3224	if test "$ol_arg" = "invalid" ; then
3225		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3226echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3227   { (exit 1); exit 1; }; }
3228	fi
3229	ol_enable_spasswd="$ol_arg"
3230
3231else
3232  	ol_enable_spasswd=no
3233fi
3234
3235# end --enable-spasswd
3236# OpenLDAP --enable-modules
3237
3238	# Check whether --enable-modules was given.
3239if test "${enable_modules+set}" = set; then
3240  enableval=$enable_modules;
3241	ol_arg=invalid
3242	for ol_val in auto yes no ; do
3243		if test "$enableval" = "$ol_val" ; then
3244			ol_arg="$ol_val"
3245		fi
3246	done
3247	if test "$ol_arg" = "invalid" ; then
3248		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3249echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3250   { (exit 1); exit 1; }; }
3251	fi
3252	ol_enable_modules="$ol_arg"
3253
3254else
3255  	ol_enable_modules=no
3256fi
3257
3258# end --enable-modules
3259# OpenLDAP --enable-rlookups
3260
3261	# Check whether --enable-rlookups was given.
3262if test "${enable_rlookups+set}" = set; then
3263  enableval=$enable_rlookups;
3264	ol_arg=invalid
3265	for ol_val in auto yes no ; do
3266		if test "$enableval" = "$ol_val" ; then
3267			ol_arg="$ol_val"
3268		fi
3269	done
3270	if test "$ol_arg" = "invalid" ; then
3271		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3272echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3273   { (exit 1); exit 1; }; }
3274	fi
3275	ol_enable_rlookups="$ol_arg"
3276
3277else
3278  	ol_enable_rlookups=no
3279fi
3280
3281# end --enable-rlookups
3282# OpenLDAP --enable-slapi
3283
3284	# Check whether --enable-slapi was given.
3285if test "${enable_slapi+set}" = set; then
3286  enableval=$enable_slapi;
3287	ol_arg=invalid
3288	for ol_val in auto yes no ; do
3289		if test "$enableval" = "$ol_val" ; then
3290			ol_arg="$ol_val"
3291		fi
3292	done
3293	if test "$ol_arg" = "invalid" ; then
3294		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3295echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3296   { (exit 1); exit 1; }; }
3297	fi
3298	ol_enable_slapi="$ol_arg"
3299
3300else
3301  	ol_enable_slapi=no
3302fi
3303
3304# end --enable-slapi
3305# OpenLDAP --enable-slp
3306
3307	# Check whether --enable-slp was given.
3308if test "${enable_slp+set}" = set; then
3309  enableval=$enable_slp;
3310	ol_arg=invalid
3311	for ol_val in auto yes no ; do
3312		if test "$enableval" = "$ol_val" ; then
3313			ol_arg="$ol_val"
3314		fi
3315	done
3316	if test "$ol_arg" = "invalid" ; then
3317		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3318echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3319   { (exit 1); exit 1; }; }
3320	fi
3321	ol_enable_slp="$ol_arg"
3322
3323else
3324  	ol_enable_slp=no
3325fi
3326
3327# end --enable-slp
3328# OpenLDAP --enable-wrappers
3329
3330	# Check whether --enable-wrappers was given.
3331if test "${enable_wrappers+set}" = set; then
3332  enableval=$enable_wrappers;
3333	ol_arg=invalid
3334	for ol_val in auto yes no ; do
3335		if test "$enableval" = "$ol_val" ; then
3336			ol_arg="$ol_val"
3337		fi
3338	done
3339	if test "$ol_arg" = "invalid" ; then
3340		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3341echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3342   { (exit 1); exit 1; }; }
3343	fi
3344	ol_enable_wrappers="$ol_arg"
3345
3346else
3347  	ol_enable_wrappers=no
3348fi
3349
3350# end --enable-wrappers
3351
3352Backends="bdb \
3353	dnssrv \
3354	hdb \
3355	ldap \
3356	meta \
3357	monitor \
3358	null \
3359	passwd \
3360	perl \
3361	relay \
3362	shell \
3363	sock \
3364	sql"
3365
3366# Check whether --enable-xxslapbackends was given.
3367if test "${enable_xxslapbackends+set}" = set; then
3368  enableval=$enable_xxslapbackends;
3369fi
3370
3371
3372# OpenLDAP --enable-backends
3373
3374	# Check whether --enable-backends was given.
3375if test "${enable_backends+set}" = set; then
3376  enableval=$enable_backends;
3377	ol_arg=invalid
3378	for ol_val in no yes mod ; do
3379		if test "$enableval" = "$ol_val" ; then
3380			ol_arg="$ol_val"
3381		fi
3382	done
3383	if test "$ol_arg" = "invalid" ; then
3384		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3385echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3386   { (exit 1); exit 1; }; }
3387	fi
3388	ol_enable_backends="$ol_arg"
3389
3390fi
3391
3392# end --enable-backends
3393# OpenLDAP --enable-bdb
3394
3395	# Check whether --enable-bdb was given.
3396if test "${enable_bdb+set}" = set; then
3397  enableval=$enable_bdb;
3398	ol_arg=invalid
3399	for ol_val in no yes mod ; do
3400		if test "$enableval" = "$ol_val" ; then
3401			ol_arg="$ol_val"
3402		fi
3403	done
3404	if test "$ol_arg" = "invalid" ; then
3405		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3406echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3407   { (exit 1); exit 1; }; }
3408	fi
3409	ol_enable_bdb="$ol_arg"
3410
3411else
3412  	ol_enable_bdb=${ol_enable_backends:-yes}
3413fi
3414
3415# end --enable-bdb
3416# OpenLDAP --enable-dnssrv
3417
3418	# Check whether --enable-dnssrv was given.
3419if test "${enable_dnssrv+set}" = set; then
3420  enableval=$enable_dnssrv;
3421	ol_arg=invalid
3422	for ol_val in no yes mod ; do
3423		if test "$enableval" = "$ol_val" ; then
3424			ol_arg="$ol_val"
3425		fi
3426	done
3427	if test "$ol_arg" = "invalid" ; then
3428		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3429echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3430   { (exit 1); exit 1; }; }
3431	fi
3432	ol_enable_dnssrv="$ol_arg"
3433
3434else
3435  	ol_enable_dnssrv=${ol_enable_backends:-no}
3436fi
3437
3438# end --enable-dnssrv
3439# OpenLDAP --enable-hdb
3440
3441	# Check whether --enable-hdb was given.
3442if test "${enable_hdb+set}" = set; then
3443  enableval=$enable_hdb;
3444	ol_arg=invalid
3445	for ol_val in no yes mod ; do
3446		if test "$enableval" = "$ol_val" ; then
3447			ol_arg="$ol_val"
3448		fi
3449	done
3450	if test "$ol_arg" = "invalid" ; then
3451		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3452echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3453   { (exit 1); exit 1; }; }
3454	fi
3455	ol_enable_hdb="$ol_arg"
3456
3457else
3458  	ol_enable_hdb=${ol_enable_backends:-yes}
3459fi
3460
3461# end --enable-hdb
3462# OpenLDAP --enable-ldap
3463
3464	# Check whether --enable-ldap was given.
3465if test "${enable_ldap+set}" = set; then
3466  enableval=$enable_ldap;
3467	ol_arg=invalid
3468	for ol_val in no yes mod ; do
3469		if test "$enableval" = "$ol_val" ; then
3470			ol_arg="$ol_val"
3471		fi
3472	done
3473	if test "$ol_arg" = "invalid" ; then
3474		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3475echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3476   { (exit 1); exit 1; }; }
3477	fi
3478	ol_enable_ldap="$ol_arg"
3479
3480else
3481  	ol_enable_ldap=${ol_enable_backends:-no}
3482fi
3483
3484# end --enable-ldap
3485# OpenLDAP --enable-meta
3486
3487	# Check whether --enable-meta was given.
3488if test "${enable_meta+set}" = set; then
3489  enableval=$enable_meta;
3490	ol_arg=invalid
3491	for ol_val in no yes mod ; do
3492		if test "$enableval" = "$ol_val" ; then
3493			ol_arg="$ol_val"
3494		fi
3495	done
3496	if test "$ol_arg" = "invalid" ; then
3497		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3498echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3499   { (exit 1); exit 1; }; }
3500	fi
3501	ol_enable_meta="$ol_arg"
3502
3503else
3504  	ol_enable_meta=${ol_enable_backends:-no}
3505fi
3506
3507# end --enable-meta
3508# OpenLDAP --enable-monitor
3509
3510	# Check whether --enable-monitor was given.
3511if test "${enable_monitor+set}" = set; then
3512  enableval=$enable_monitor;
3513	ol_arg=invalid
3514	for ol_val in no yes mod ; do
3515		if test "$enableval" = "$ol_val" ; then
3516			ol_arg="$ol_val"
3517		fi
3518	done
3519	if test "$ol_arg" = "invalid" ; then
3520		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3521echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3522   { (exit 1); exit 1; }; }
3523	fi
3524	ol_enable_monitor="$ol_arg"
3525
3526else
3527  	ol_enable_monitor=${ol_enable_backends:-yes}
3528fi
3529
3530# end --enable-monitor
3531# OpenLDAP --enable-null
3532
3533	# Check whether --enable-null was given.
3534if test "${enable_null+set}" = set; then
3535  enableval=$enable_null;
3536	ol_arg=invalid
3537	for ol_val in no yes mod ; do
3538		if test "$enableval" = "$ol_val" ; then
3539			ol_arg="$ol_val"
3540		fi
3541	done
3542	if test "$ol_arg" = "invalid" ; then
3543		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3544echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3545   { (exit 1); exit 1; }; }
3546	fi
3547	ol_enable_null="$ol_arg"
3548
3549else
3550  	ol_enable_null=${ol_enable_backends:-no}
3551fi
3552
3553# end --enable-null
3554# OpenLDAP --enable-passwd
3555
3556	# Check whether --enable-passwd was given.
3557if test "${enable_passwd+set}" = set; then
3558  enableval=$enable_passwd;
3559	ol_arg=invalid
3560	for ol_val in no yes mod ; do
3561		if test "$enableval" = "$ol_val" ; then
3562			ol_arg="$ol_val"
3563		fi
3564	done
3565	if test "$ol_arg" = "invalid" ; then
3566		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3567echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3568   { (exit 1); exit 1; }; }
3569	fi
3570	ol_enable_passwd="$ol_arg"
3571
3572else
3573  	ol_enable_passwd=${ol_enable_backends:-no}
3574fi
3575
3576# end --enable-passwd
3577# OpenLDAP --enable-perl
3578
3579	# Check whether --enable-perl was given.
3580if test "${enable_perl+set}" = set; then
3581  enableval=$enable_perl;
3582	ol_arg=invalid
3583	for ol_val in no yes mod ; do
3584		if test "$enableval" = "$ol_val" ; then
3585			ol_arg="$ol_val"
3586		fi
3587	done
3588	if test "$ol_arg" = "invalid" ; then
3589		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3590echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3591   { (exit 1); exit 1; }; }
3592	fi
3593	ol_enable_perl="$ol_arg"
3594
3595else
3596  	ol_enable_perl=${ol_enable_backends:-no}
3597fi
3598
3599# end --enable-perl
3600# OpenLDAP --enable-relay
3601
3602	# Check whether --enable-relay was given.
3603if test "${enable_relay+set}" = set; then
3604  enableval=$enable_relay;
3605	ol_arg=invalid
3606	for ol_val in no yes mod ; do
3607		if test "$enableval" = "$ol_val" ; then
3608			ol_arg="$ol_val"
3609		fi
3610	done
3611	if test "$ol_arg" = "invalid" ; then
3612		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3613echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3614   { (exit 1); exit 1; }; }
3615	fi
3616	ol_enable_relay="$ol_arg"
3617
3618else
3619  	ol_enable_relay=${ol_enable_backends:-yes}
3620fi
3621
3622# end --enable-relay
3623# OpenLDAP --enable-shell
3624
3625	# Check whether --enable-shell was given.
3626if test "${enable_shell+set}" = set; then
3627  enableval=$enable_shell;
3628	ol_arg=invalid
3629	for ol_val in no yes mod ; do
3630		if test "$enableval" = "$ol_val" ; then
3631			ol_arg="$ol_val"
3632		fi
3633	done
3634	if test "$ol_arg" = "invalid" ; then
3635		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3636echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3637   { (exit 1); exit 1; }; }
3638	fi
3639	ol_enable_shell="$ol_arg"
3640
3641else
3642  	ol_enable_shell=${ol_enable_backends:-no}
3643fi
3644
3645# end --enable-shell
3646# OpenLDAP --enable-sock
3647
3648	# Check whether --enable-sock was given.
3649if test "${enable_sock+set}" = set; then
3650  enableval=$enable_sock;
3651	ol_arg=invalid
3652	for ol_val in no yes mod ; do
3653		if test "$enableval" = "$ol_val" ; then
3654			ol_arg="$ol_val"
3655		fi
3656	done
3657	if test "$ol_arg" = "invalid" ; then
3658		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3659echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3660   { (exit 1); exit 1; }; }
3661	fi
3662	ol_enable_sock="$ol_arg"
3663
3664else
3665  	ol_enable_sock=${ol_enable_backends:-no}
3666fi
3667
3668# end --enable-sock
3669# OpenLDAP --enable-sql
3670
3671	# Check whether --enable-sql was given.
3672if test "${enable_sql+set}" = set; then
3673  enableval=$enable_sql;
3674	ol_arg=invalid
3675	for ol_val in no yes mod ; do
3676		if test "$enableval" = "$ol_val" ; then
3677			ol_arg="$ol_val"
3678		fi
3679	done
3680	if test "$ol_arg" = "invalid" ; then
3681		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3682echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3683   { (exit 1); exit 1; }; }
3684	fi
3685	ol_enable_sql="$ol_arg"
3686
3687else
3688  	ol_enable_sql=${ol_enable_backends:-no}
3689fi
3690
3691# end --enable-sql
3692
3693Overlays="accesslog \
3694	dynid \
3695	odlocales \
3696	odusers \
3697	auditlog \
3698	constraint \
3699	dds \
3700	deref \
3701	dyngroup \
3702	nestedgroup \
3703	dynlist \
3704	memberof \
3705	ppolicy \
3706	proxycache \
3707	refint \
3708	retcode \
3709	seqmod \
3710	syncprov \
3711	translucent \
3712	unique \
3713	valsort"
3714
3715# Check whether --enable-xxslapoverlays was given.
3716if test "${enable_xxslapoverlays+set}" = set; then
3717  enableval=$enable_xxslapoverlays;
3718fi
3719
3720
3721# OpenLDAP --enable-overlays
3722
3723	# Check whether --enable-overlays was given.
3724if test "${enable_overlays+set}" = set; then
3725  enableval=$enable_overlays;
3726	ol_arg=invalid
3727	for ol_val in no yes mod ; do
3728		if test "$enableval" = "$ol_val" ; then
3729			ol_arg="$ol_val"
3730		fi
3731	done
3732	if test "$ol_arg" = "invalid" ; then
3733		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3734echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3735   { (exit 1); exit 1; }; }
3736	fi
3737	ol_enable_overlays="$ol_arg"
3738
3739fi
3740
3741# end --enable-overlays
3742# OpenLDAP --enable-accesslog
3743
3744	# Check whether --enable-accesslog was given.
3745if test "${enable_accesslog+set}" = set; then
3746  enableval=$enable_accesslog;
3747	ol_arg=invalid
3748	for ol_val in no yes mod ; do
3749		if test "$enableval" = "$ol_val" ; then
3750			ol_arg="$ol_val"
3751		fi
3752	done
3753	if test "$ol_arg" = "invalid" ; then
3754		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3755echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3756   { (exit 1); exit 1; }; }
3757	fi
3758	ol_enable_accesslog="$ol_arg"
3759
3760else
3761  	ol_enable_accesslog=${ol_enable_overlays:-no}
3762fi
3763
3764# end --enable-accesslog
3765
3766# OpenLDAP --enable-dynid
3767
3768	# Check whether --enable-dynid was given.
3769if test "${enable_dynid+set}" = set; then
3770  enableval=$enable_dynid;
3771	ol_arg=invalid
3772	for ol_val in no yes mod ; do
3773		if test "$enableval" = "$ol_val" ; then
3774			ol_arg="$ol_val"
3775		fi
3776	done
3777	if test "$ol_arg" = "invalid" ; then
3778		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynid" >&5
3779echo "$as_me: error: bad value $enableval for --enable-dynid" >&2;}
3780   { (exit 1); exit 1; }; }
3781	fi
3782	ol_enable_dynid="$ol_arg"
3783
3784else
3785  	ol_enable_dynid=${ol_enable_overlays:-no}
3786fi
3787
3788# end --enable-dynid
3789
3790# OpenLDAP --enable-odlocales
3791
3792	# Check whether --enable-odlocales was given.
3793if test "${enable_odlocales+set}" = set; then
3794  enableval=$enable_odlocales;
3795	ol_arg=invalid
3796	for ol_val in no yes mod ; do
3797		if test "$enableval" = "$ol_val" ; then
3798			ol_arg="$ol_val"
3799		fi
3800	done
3801	if test "$ol_arg" = "invalid" ; then
3802		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-odlocales" >&5
3803echo "$as_me: error: bad value $enableval for --enable-odlocales" >&2;}
3804   { (exit 1); exit 1; }; }
3805	fi
3806	ol_enable_odlocales="$ol_arg"
3807
3808else
3809  	ol_enable_odlocales=${ol_enable_overlays:-no}
3810fi
3811
3812# end --enable-odlocales
3813
3814# OpenLDAP --enable-odusers
3815
3816	# Check whether --enable-odusers was given.
3817if test "${enable_odusers+set}" = set; then
3818  enableval=$enable_odusers;
3819	ol_arg=invalid
3820	for ol_val in no yes mod ; do
3821		if test "$enableval" = "$ol_val" ; then
3822			ol_arg="$ol_val"
3823		fi
3824	done
3825	if test "$ol_arg" = "invalid" ; then
3826		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-odusers" >&5
3827echo "$as_me: error: bad value $enableval for --enable-odusers" >&2;}
3828   { (exit 1); exit 1; }; }
3829	fi
3830	ol_enable_odusers="$ol_arg"
3831
3832else
3833  	ol_enable_odusers=${ol_enable_overlays:-no}
3834fi
3835
3836# end --enable-odusers
3837
3838# OpenLDAP --enable-constraint
3839
3840	# Check whether --enable-constraint was given.
3841if test "${enable_constraint+set}" = set; then
3842  enableval=$enable_constraint;
3843	ol_arg=invalid
3844	for ol_val in no yes mod ; do
3845		if test "$enableval" = "$ol_val" ; then
3846			ol_arg="$ol_val"
3847		fi
3848	done
3849	if test "$ol_arg" = "invalid" ; then
3850		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3851echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3852   { (exit 1); exit 1; }; }
3853	fi
3854	ol_enable_constraint="$ol_arg"
3855
3856else
3857  	ol_enable_constraint=${ol_enable_overlays:-no}
3858fi
3859
3860# end --enable-constraint
3861
3862# OpenLDAP --enable-dds
3863
3864	# Check whether --enable-dds was given.
3865if test "${enable_dds+set}" = set; then
3866  enableval=$enable_dds;
3867	ol_arg=invalid
3868	for ol_val in no yes mod ; do
3869		if test "$enableval" = "$ol_val" ; then
3870			ol_arg="$ol_val"
3871		fi
3872	done
3873	if test "$ol_arg" = "invalid" ; then
3874		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3875echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3876   { (exit 1); exit 1; }; }
3877	fi
3878	ol_enable_dds="$ol_arg"
3879
3880else
3881  	ol_enable_dds=${ol_enable_overlays:-no}
3882fi
3883
3884# end --enable-dds
3885
3886# OpenLDAP --enable-deref
3887
3888	# Check whether --enable-deref was given.
3889if test "${enable_deref+set}" = set; then
3890  enableval=$enable_deref;
3891	ol_arg=invalid
3892	for ol_val in no yes mod ; do
3893		if test "$enableval" = "$ol_val" ; then
3894			ol_arg="$ol_val"
3895		fi
3896	done
3897	if test "$ol_arg" = "invalid" ; then
3898		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3899echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3900   { (exit 1); exit 1; }; }
3901	fi
3902	ol_enable_deref="$ol_arg"
3903
3904else
3905  	ol_enable_deref=${ol_enable_overlays:-no}
3906fi
3907
3908# end --enable-deref
3909
3910# OpenLDAP --enable-dyngroup
3911
3912	# Check whether --enable-dyngroup was given.
3913if test "${enable_dyngroup+set}" = set; then
3914  enableval=$enable_dyngroup;
3915	ol_arg=invalid
3916	for ol_val in no yes mod ; do
3917		if test "$enableval" = "$ol_val" ; then
3918			ol_arg="$ol_val"
3919		fi
3920	done
3921	if test "$ol_arg" = "invalid" ; then
3922		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3923echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3924   { (exit 1); exit 1; }; }
3925	fi
3926	ol_enable_dyngroup="$ol_arg"
3927
3928else
3929  	ol_enable_dyngroup=${ol_enable_overlays:-no}
3930fi
3931
3932# end --enable-dyngroup
3933
3934# OpenLDAP --enable-nestedgroup
3935
3936	# Check whether --enable-nestedgroup was given.
3937if test "${enable_nestedgroup+set}" = set; then
3938  enableval=$enable_nestedgroup;
3939	ol_arg=invalid
3940	for ol_val in no yes mod ; do
3941		if test "$enableval" = "$ol_val" ; then
3942			ol_arg="$ol_val"
3943		fi
3944	done
3945	if test "$ol_arg" = "invalid" ; then
3946		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-nestedgroup" >&5
3947echo "$as_me: error: bad value $enableval for --enable-nestedgroup" >&2;}
3948   { (exit 1); exit 1; }; }
3949	fi
3950	ol_enable_nestedgroup="$ol_arg"
3951
3952else
3953  	ol_enable_nestedgroup=${ol_enable_overlays:-no}
3954fi
3955
3956# end --enable-nestedgroup
3957
3958# OpenLDAP --enable-dynlist
3959
3960	# Check whether --enable-dynlist was given.
3961if test "${enable_dynlist+set}" = set; then
3962  enableval=$enable_dynlist;
3963	ol_arg=invalid
3964	for ol_val in no yes mod ; do
3965		if test "$enableval" = "$ol_val" ; then
3966			ol_arg="$ol_val"
3967		fi
3968	done
3969	if test "$ol_arg" = "invalid" ; then
3970		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3971echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3972   { (exit 1); exit 1; }; }
3973	fi
3974	ol_enable_dynlist="$ol_arg"
3975
3976else
3977  	ol_enable_dynlist=${ol_enable_overlays:-no}
3978fi
3979
3980# end --enable-dynlist
3981
3982# OpenLDAP --enable-memberof
3983
3984	# Check whether --enable-memberof was given.
3985if test "${enable_memberof+set}" = set; then
3986  enableval=$enable_memberof;
3987	ol_arg=invalid
3988	for ol_val in no yes mod ; do
3989		if test "$enableval" = "$ol_val" ; then
3990			ol_arg="$ol_val"
3991		fi
3992	done
3993	if test "$ol_arg" = "invalid" ; then
3994		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3995echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3996   { (exit 1); exit 1; }; }
3997	fi
3998	ol_enable_memberof="$ol_arg"
3999
4000else
4001  	ol_enable_memberof=${ol_enable_overlays:-no}
4002fi
4003
4004# end --enable-memberof
4005
4006# OpenLDAP --enable-ppolicy
4007
4008	# Check whether --enable-ppolicy was given.
4009if test "${enable_ppolicy+set}" = set; then
4010  enableval=$enable_ppolicy;
4011	ol_arg=invalid
4012	for ol_val in no yes mod ; do
4013		if test "$enableval" = "$ol_val" ; then
4014			ol_arg="$ol_val"
4015		fi
4016	done
4017	if test "$ol_arg" = "invalid" ; then
4018		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4019echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4020   { (exit 1); exit 1; }; }
4021	fi
4022	ol_enable_ppolicy="$ol_arg"
4023
4024else
4025  	ol_enable_ppolicy=${ol_enable_overlays:-no}
4026fi
4027
4028# end --enable-ppolicy
4029
4030# OpenLDAP --enable-proxycache
4031
4032	# Check whether --enable-proxycache was given.
4033if test "${enable_proxycache+set}" = set; then
4034  enableval=$enable_proxycache;
4035	ol_arg=invalid
4036	for ol_val in no yes mod ; do
4037		if test "$enableval" = "$ol_val" ; then
4038			ol_arg="$ol_val"
4039		fi
4040	done
4041	if test "$ol_arg" = "invalid" ; then
4042		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4043echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4044   { (exit 1); exit 1; }; }
4045	fi
4046	ol_enable_proxycache="$ol_arg"
4047
4048else
4049  	ol_enable_proxycache=${ol_enable_overlays:-no}
4050fi
4051
4052# end --enable-proxycache
4053
4054# OpenLDAP --enable-refint
4055
4056	# Check whether --enable-refint was given.
4057if test "${enable_refint+set}" = set; then
4058  enableval=$enable_refint;
4059	ol_arg=invalid
4060	for ol_val in no yes mod ; do
4061		if test "$enableval" = "$ol_val" ; then
4062			ol_arg="$ol_val"
4063		fi
4064	done
4065	if test "$ol_arg" = "invalid" ; then
4066		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4067echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4068   { (exit 1); exit 1; }; }
4069	fi
4070	ol_enable_refint="$ol_arg"
4071
4072else
4073  	ol_enable_refint=${ol_enable_overlays:-no}
4074fi
4075
4076# end --enable-refint
4077
4078# OpenLDAP --enable-retcode
4079
4080	# Check whether --enable-retcode was given.
4081if test "${enable_retcode+set}" = set; then
4082  enableval=$enable_retcode;
4083	ol_arg=invalid
4084	for ol_val in no yes mod ; do
4085		if test "$enableval" = "$ol_val" ; then
4086			ol_arg="$ol_val"
4087		fi
4088	done
4089	if test "$ol_arg" = "invalid" ; then
4090		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4091echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4092   { (exit 1); exit 1; }; }
4093	fi
4094	ol_enable_retcode="$ol_arg"
4095
4096else
4097  	ol_enable_retcode=${ol_enable_overlays:-no}
4098fi
4099
4100# end --enable-retcode
4101
4102# OpenLDAP --enable-seqmod
4103
4104	# Check whether --enable-seqmod was given.
4105if test "${enable_seqmod+set}" = set; then
4106  enableval=$enable_seqmod;
4107	ol_arg=invalid
4108	for ol_val in no yes mod ; do
4109		if test "$enableval" = "$ol_val" ; then
4110			ol_arg="$ol_val"
4111		fi
4112	done
4113	if test "$ol_arg" = "invalid" ; then
4114		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4115echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4116   { (exit 1); exit 1; }; }
4117	fi
4118	ol_enable_seqmod="$ol_arg"
4119
4120else
4121  	ol_enable_seqmod=${ol_enable_overlays:-yes}
4122fi
4123
4124# end --enable-seqmod
4125
4126# OpenLDAP --enable-syncprov
4127
4128	# Check whether --enable-syncprov was given.
4129if test "${enable_syncprov+set}" = set; then
4130  enableval=$enable_syncprov;
4131	ol_arg=invalid
4132	for ol_val in no yes mod ; do
4133		if test "$enableval" = "$ol_val" ; then
4134			ol_arg="$ol_val"
4135		fi
4136	done
4137	if test "$ol_arg" = "invalid" ; then
4138		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4139echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4140   { (exit 1); exit 1; }; }
4141	fi
4142	ol_enable_syncprov="$ol_arg"
4143
4144else
4145  	ol_enable_syncprov=${ol_enable_overlays:-yes}
4146fi
4147
4148# end --enable-syncprov
4149
4150# OpenLDAP --enable-translucent
4151
4152	# Check whether --enable-translucent was given.
4153if test "${enable_translucent+set}" = set; then
4154  enableval=$enable_translucent;
4155	ol_arg=invalid
4156	for ol_val in no yes mod ; do
4157		if test "$enableval" = "$ol_val" ; then
4158			ol_arg="$ol_val"
4159		fi
4160	done
4161	if test "$ol_arg" = "invalid" ; then
4162		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4163echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4164   { (exit 1); exit 1; }; }
4165	fi
4166	ol_enable_translucent="$ol_arg"
4167
4168else
4169  	ol_enable_translucent=${ol_enable_overlays:-no}
4170fi
4171
4172# end --enable-translucent
4173
4174# OpenLDAP --enable-unique
4175
4176	# Check whether --enable-unique was given.
4177if test "${enable_unique+set}" = set; then
4178  enableval=$enable_unique;
4179	ol_arg=invalid
4180	for ol_val in no yes mod ; do
4181		if test "$enableval" = "$ol_val" ; then
4182			ol_arg="$ol_val"
4183		fi
4184	done
4185	if test "$ol_arg" = "invalid" ; then
4186		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4187echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4188   { (exit 1); exit 1; }; }
4189	fi
4190	ol_enable_unique="$ol_arg"
4191
4192else
4193  	ol_enable_unique=${ol_enable_overlays:-no}
4194fi
4195
4196# end --enable-unique
4197
4198# OpenLDAP --enable-valsort
4199
4200	# Check whether --enable-valsort was given.
4201if test "${enable_valsort+set}" = set; then
4202  enableval=$enable_valsort;
4203	ol_arg=invalid
4204	for ol_val in no yes mod ; do
4205		if test "$enableval" = "$ol_val" ; then
4206			ol_arg="$ol_val"
4207		fi
4208	done
4209	if test "$ol_arg" = "invalid" ; then
4210		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4211echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4212   { (exit 1); exit 1; }; }
4213	fi
4214	ol_enable_valsort="$ol_arg"
4215
4216else
4217  	ol_enable_valsort=${ol_enable_overlays:-no}
4218fi
4219
4220# end --enable-valsort
4221
4222
4223# Check whether --enable-xxliboptions was given.
4224if test "${enable_xxliboptions+set}" = set; then
4225  enableval=$enable_xxliboptions;
4226fi
4227
4228# Check whether --enable-static was given.
4229if test "${enable_static+set}" = set; then
4230  enableval=$enable_static; p=${PACKAGE-default}
4231    case $enableval in
4232    yes) enable_static=yes ;;
4233    no) enable_static=no ;;
4234    *)
4235     enable_static=no
4236      # Look at the argument we got.  We use all the common list separators.
4237      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4238      for pkg in $enableval; do
4239	IFS="$lt_save_ifs"
4240	if test "X$pkg" = "X$p"; then
4241	  enable_static=yes
4242	fi
4243      done
4244      IFS="$lt_save_ifs"
4245      ;;
4246    esac
4247else
4248  enable_static=yes
4249fi
4250
4251
4252# Check whether --enable-shared was given.
4253if test "${enable_shared+set}" = set; then
4254  enableval=$enable_shared; p=${PACKAGE-default}
4255    case $enableval in
4256    yes) enable_shared=yes ;;
4257    no) enable_shared=no ;;
4258    *)
4259      enable_shared=no
4260      # Look at the argument we got.  We use all the common list separators.
4261      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4262      for pkg in $enableval; do
4263	IFS="$lt_save_ifs"
4264	if test "X$pkg" = "X$p"; then
4265	  enable_shared=yes
4266	fi
4267      done
4268      IFS="$lt_save_ifs"
4269      ;;
4270    esac
4271else
4272  enable_shared=yes
4273fi
4274
4275
4276
4277
4278# validate options
4279if test $ol_enable_slapd = no ; then
4280		if test $ol_enable_slapi = yes ; then
4281		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4282echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4283	fi
4284	case "$ol_enable_backends" in yes | mod)
4285		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4286echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4287	esac
4288	for i in $Backends; do
4289		eval "ol_tmp=\$ol_enable_$i"
4290		if test $ol_tmp != no ; then
4291			{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4292echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4293			eval "ol_enable_$i=no"
4294		fi
4295	done
4296	if test $ol_enable_modules = yes ; then
4297		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4298echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4299	fi
4300	if test $ol_enable_wrappers = yes ; then
4301		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4302echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4303	fi
4304	if test $ol_enable_rlookups = yes ; then
4305		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4306echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4307	fi
4308	if test $ol_enable_dynacl = yes ; then
4309		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4310echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4311	fi
4312	if test $ol_enable_aci != no ; then
4313		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4314echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4315	fi
4316	if test $ol_enable_rewrite = yes ; then
4317		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4318echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4319	fi
4320		case "$ol_enable_overlays" in yes | mod)
4321		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4322echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4323	esac
4324	for i in $Overlays; do
4325		eval "ol_tmp=\$ol_enable_$i"
4326		if test $ol_tmp != no ; then
4327			{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4328echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4329			eval "ol_enable_$i=no"
4330		fi
4331	done
4332
4333	# force settings to no
4334	ol_enable_slapi=no
4335
4336	ol_enable_backends=
4337	ol_enable_overlays=
4338	ol_enable_modules=no
4339	ol_enable_rlookups=no
4340	ol_enable_dynacl=no
4341	ol_enable_aci=no
4342	ol_enable_wrappers=no
4343
4344	ol_enable_rewrite=no
4345
4346elif test $ol_enable_modules != yes &&
4347	test $ol_enable_bdb = no &&
4348	test $ol_enable_dnssrv = no &&
4349	test $ol_enable_hdb = no &&
4350	test $ol_enable_ldap = no &&
4351	test $ol_enable_meta = no &&
4352	test $ol_enable_monitor = no &&
4353	test $ol_enable_null = no &&
4354	test $ol_enable_passwd = no &&
4355	test $ol_enable_perl = no &&
4356	test $ol_enable_relay = no &&
4357	test $ol_enable_shell = no &&
4358	test $ol_enable_sock = no &&
4359	test $ol_enable_sql = no ; then
4360
4361	if test $ol_enable_slapd = yes ; then
4362		{ { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4363echo "$as_me: error: slapd requires a backend" >&2;}
4364   { (exit 1); exit 1; }; }
4365	else
4366		{ echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4367echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4368		ol_enable_slapd=no
4369	fi
4370fi
4371
4372if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4373	{ { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4374echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4375   { (exit 1); exit 1; }; }
4376fi
4377
4378if test $ol_enable_lmpasswd = yes ; then
4379	if test $ol_with_tls = no ; then
4380		{ { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4381echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4382   { (exit 1); exit 1; }; }
4383	fi
4384fi
4385
4386if test $ol_enable_spasswd = yes ; then
4387	if test $ol_with_cyrus_sasl = no ; then
4388		{ { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4389echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4390   { (exit 1); exit 1; }; }
4391	fi
4392	ol_with_cyrus_sasl=yes
4393fi
4394
4395{ echo "$as_me:$LINENO: result: done" >&5
4396echo "${ECHO_T}done" >&6; }
4397
4398LDAP_LIBS=
4399BDB_LIBS=
4400LTHREAD_LIBS=
4401LUTIL_LIBS=
4402
4403SLAPD_LIBS=
4404
4405BUILD_SLAPD=no
4406
4407BUILD_THREAD=no
4408
4409BUILD_SLAPI=no
4410SLAPD_SLAPI_DEPEND=
4411
4412BUILD_BDB=no
4413BUILD_DNSSRV=no
4414BUILD_HDB=no
4415BUILD_LDAP=no
4416BUILD_META=no
4417BUILD_MONITOR=no
4418BUILD_NULL=no
4419BUILD_PASSWD=no
4420BUILD_PERL=no
4421BUILD_RELAY=no
4422BUILD_SHELL=no
4423BUILD_SOCK=no
4424BUILD_SQL=no
4425
4426BUILD_ACCESSLOG=no
4427BUILD_DYNID=no
4428BUILD_ODLOCALES=no
4429BUILD_ODUSERS=no
4430BUILD_AUDITLOG=no
4431BUILD_CONSTRAINT=no
4432BUILD_DDS=no
4433BUILD_DENYOP=no
4434BUILD_DEREF=no
4435BUILD_DYNGROUP=no
4436BUILD_DYNLIST=no
4437BUILD_LASTMOD=no
4438BUILD_MEMBEROF=no
4439BUILD_PPOLICY=no
4440BUILD_PROXYCACHE=no
4441BUILD_REFINT=no
4442BUILD_RETCODE=no
4443BUILD_SEQMOD=no
4444BUILD_SYNCPROV=no
4445BUILD_TRANSLUCENT=no
4446BUILD_UNIQUE=no
4447BUILD_VALSORT=no
4448
4449SLAPD_STATIC_OVERLAYS=
4450SLAPD_DYNAMIC_OVERLAYS=
4451
4452SLAPD_MODULES_LDFLAGS=
4453SLAPD_MODULES_CPPFLAGS=
4454
4455SLAPD_STATIC_BACKENDS=back-ldif
4456SLAPD_DYNAMIC_BACKENDS=
4457
4458SLAPD_PERL_LDFLAGS=
4459MOD_PERL_LDFLAGS=
4460PERL_CPPFLAGS=
4461
4462SLAPD_SQL_LDFLAGS=
4463SLAPD_SQL_LIBS=
4464SLAPD_SQL_INCLUDES=
4465
4466KRB4_LIBS=
4467KRB5_LIBS=
4468SASL_LIBS=
4469TLS_LIBS=
4470MODULES_LIBS=
4471SLAPI_LIBS=
4472LIBSLAPI=
4473LIBSLAPITOOLS=
4474AUTH_LIBS=
4475ICU_LIBS=
4476
4477SLAPD_SLP_LIBS=
4478SLAPD_GMP_LIBS=
4479
4480
4481
4482cat >>confdefs.h <<\_ACEOF
4483#define HAVE_MKVERSION 1
4484_ACEOF
4485
4486
4487
4488
4489ol_aix_threads=no
4490case "$target" in
4491*-*-aix*) 	if test -z "$CC" ; then
4492		case "$ol_with_threads" in
4493		auto | yes |  posix) ol_aix_threads=yes ;;
4494		esac
4495	fi
4496;;
4497esac
4498
4499if test $ol_aix_threads = yes ; then
4500	if test -z "${CC}" ; then
4501		for ac_prog in cc_r xlc_r cc
4502do
4503  # Extract the first word of "$ac_prog", so it can be a program name with args.
4504set dummy $ac_prog; ac_word=$2
4505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4507if test "${ac_cv_prog_CC+set}" = set; then
4508  echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510  if test -n "$CC"; then
4511  ac_cv_prog_CC="$CC" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516  IFS=$as_save_IFS
4517  test -z "$as_dir" && as_dir=.
4518  for ac_exec_ext in '' $ac_executable_extensions; do
4519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520    ac_cv_prog_CC="$ac_prog"
4521    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522    break 2
4523  fi
4524done
4525done
4526IFS=$as_save_IFS
4527
4528fi
4529fi
4530CC=$ac_cv_prog_CC
4531if test -n "$CC"; then
4532  { echo "$as_me:$LINENO: result: $CC" >&5
4533echo "${ECHO_T}$CC" >&6; }
4534else
4535  { echo "$as_me:$LINENO: result: no" >&5
4536echo "${ECHO_T}no" >&6; }
4537fi
4538
4539
4540  test -n "$CC" && break
4541done
4542
4543
4544		if test "$CC" = cc ; then
4545						if test $ol_with_threads != auto ; then
4546				{ { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4547echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4548   { (exit 1); exit 1; }; }
4549			else
4550				{ echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4551echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4552			fi
4553			ol_with_threads=no
4554  		fi
4555	fi
4556
4557	case ${CC} in cc_r | xlc_r)
4558		ol_with_threads=posix
4559		ol_cv_pthread_create=yes
4560		;;
4561	esac
4562fi
4563
4564if test -z "${CC}"; then
4565	for ac_prog in cc gcc
4566do
4567  # Extract the first word of "$ac_prog", so it can be a program name with args.
4568set dummy $ac_prog; ac_word=$2
4569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4571if test "${ac_cv_prog_CC+set}" = set; then
4572  echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
4574  if test -n "$CC"; then
4575  ac_cv_prog_CC="$CC" # Let the user override the test.
4576else
4577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580  IFS=$as_save_IFS
4581  test -z "$as_dir" && as_dir=.
4582  for ac_exec_ext in '' $ac_executable_extensions; do
4583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584    ac_cv_prog_CC="$ac_prog"
4585    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586    break 2
4587  fi
4588done
4589done
4590IFS=$as_save_IFS
4591
4592fi
4593fi
4594CC=$ac_cv_prog_CC
4595if test -n "$CC"; then
4596  { echo "$as_me:$LINENO: result: $CC" >&5
4597echo "${ECHO_T}$CC" >&6; }
4598else
4599  { echo "$as_me:$LINENO: result: no" >&5
4600echo "${ECHO_T}no" >&6; }
4601fi
4602
4603
4604  test -n "$CC" && break
4605done
4606test -n "$CC" || CC="missing"
4607
4608
4609	if test "${CC}" = "missing" ; then
4610		{ { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4611echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4612   { (exit 1); exit 1; }; }
4613	fi
4614fi
4615
4616if test -z "${AR}"; then
4617	for ac_prog in ar gar
4618do
4619  # Extract the first word of "$ac_prog", so it can be a program name with args.
4620set dummy $ac_prog; ac_word=$2
4621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623if test "${ac_cv_prog_AR+set}" = set; then
4624  echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626  if test -n "$AR"; then
4627  ac_cv_prog_AR="$AR" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632  IFS=$as_save_IFS
4633  test -z "$as_dir" && as_dir=.
4634  for ac_exec_ext in '' $ac_executable_extensions; do
4635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636    ac_cv_prog_AR="$ac_prog"
4637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638    break 2
4639  fi
4640done
4641done
4642IFS=$as_save_IFS
4643
4644fi
4645fi
4646AR=$ac_cv_prog_AR
4647if test -n "$AR"; then
4648  { echo "$as_me:$LINENO: result: $AR" >&5
4649echo "${ECHO_T}$AR" >&6; }
4650else
4651  { echo "$as_me:$LINENO: result: no" >&5
4652echo "${ECHO_T}no" >&6; }
4653fi
4654
4655
4656  test -n "$AR" && break
4657done
4658test -n "$AR" || AR="missing"
4659
4660
4661	if test "${AR}" = "missing" ; then
4662		{ { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4663echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4664   { (exit 1); exit 1; }; }
4665	fi
4666fi
4667
4668
4669
4670
4671
4672# Check whether --enable-fast-install was given.
4673if test "${enable_fast_install+set}" = set; then
4674  enableval=$enable_fast_install; p=${PACKAGE-default}
4675    case $enableval in
4676    yes) enable_fast_install=yes ;;
4677    no) enable_fast_install=no ;;
4678    *)
4679      enable_fast_install=no
4680      # Look at the argument we got.  We use all the common list separators.
4681      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4682      for pkg in $enableval; do
4683	IFS="$lt_save_ifs"
4684	if test "X$pkg" = "X$p"; then
4685	  enable_fast_install=yes
4686	fi
4687      done
4688      IFS="$lt_save_ifs"
4689      ;;
4690    esac
4691else
4692  enable_fast_install=yes
4693fi
4694
4695
4696DEPDIR="${am__leading_dot}deps"
4697
4698ac_config_commands="$ac_config_commands depfiles"
4699
4700
4701am_make=${MAKE-make}
4702cat > confinc << 'END'
4703am__doit:
4704	@echo done
4705.PHONY: am__doit
4706END
4707# If we don't find an include directive, just comment out the code.
4708{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4709echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4710am__include="#"
4711am__quote=
4712_am_result=none
4713# First try GNU make style include.
4714echo "include confinc" > confmf
4715# We grep out `Entering directory' and `Leaving directory'
4716# messages which can occur if `w' ends up in MAKEFLAGS.
4717# In particular we don't look at `^make:' because GNU make might
4718# be invoked under some other name (usually "gmake"), in which
4719# case it prints its new name instead of `make'.
4720if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4721   am__include=include
4722   am__quote=
4723   _am_result=GNU
4724fi
4725# Now try BSD make style include.
4726if test "$am__include" = "#"; then
4727   echo '.include "confinc"' > confmf
4728   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4729      am__include=.include
4730      am__quote="\""
4731      _am_result=BSD
4732   fi
4733fi
4734
4735
4736{ echo "$as_me:$LINENO: result: $_am_result" >&5
4737echo "${ECHO_T}$_am_result" >&6; }
4738rm -f confinc confmf
4739
4740# Check whether --enable-dependency-tracking was given.
4741if test "${enable_dependency_tracking+set}" = set; then
4742  enableval=$enable_dependency_tracking;
4743fi
4744
4745if test "x$enable_dependency_tracking" != xno; then
4746  am_depcomp="$ac_aux_dir/depcomp"
4747  AMDEPBACKSLASH='\'
4748fi
4749
4750
4751if test "x$enable_dependency_tracking" != xno; then
4752  AMDEP_TRUE=
4753  AMDEP_FALSE='#'
4754else
4755  AMDEP_TRUE='#'
4756  AMDEP_FALSE=
4757fi
4758
4759
4760
4761ac_ext=c
4762ac_cpp='$CPP $CPPFLAGS'
4763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766if test -n "$ac_tool_prefix"; then
4767  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4768set dummy ${ac_tool_prefix}gcc; ac_word=$2
4769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4771if test "${ac_cv_prog_CC+set}" = set; then
4772  echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774  if test -n "$CC"; then
4775  ac_cv_prog_CC="$CC" # Let the user override the test.
4776else
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780  IFS=$as_save_IFS
4781  test -z "$as_dir" && as_dir=.
4782  for ac_exec_ext in '' $ac_executable_extensions; do
4783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786    break 2
4787  fi
4788done
4789done
4790IFS=$as_save_IFS
4791
4792fi
4793fi
4794CC=$ac_cv_prog_CC
4795if test -n "$CC"; then
4796  { echo "$as_me:$LINENO: result: $CC" >&5
4797echo "${ECHO_T}$CC" >&6; }
4798else
4799  { echo "$as_me:$LINENO: result: no" >&5
4800echo "${ECHO_T}no" >&6; }
4801fi
4802
4803
4804fi
4805if test -z "$ac_cv_prog_CC"; then
4806  ac_ct_CC=$CC
4807  # Extract the first word of "gcc", so it can be a program name with args.
4808set dummy gcc; ac_word=$2
4809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4812  echo $ECHO_N "(cached) $ECHO_C" >&6
4813else
4814  if test -n "$ac_ct_CC"; then
4815  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4816else
4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820  IFS=$as_save_IFS
4821  test -z "$as_dir" && as_dir=.
4822  for ac_exec_ext in '' $ac_executable_extensions; do
4823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824    ac_cv_prog_ac_ct_CC="gcc"
4825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826    break 2
4827  fi
4828done
4829done
4830IFS=$as_save_IFS
4831
4832fi
4833fi
4834ac_ct_CC=$ac_cv_prog_ac_ct_CC
4835if test -n "$ac_ct_CC"; then
4836  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4837echo "${ECHO_T}$ac_ct_CC" >&6; }
4838else
4839  { echo "$as_me:$LINENO: result: no" >&5
4840echo "${ECHO_T}no" >&6; }
4841fi
4842
4843  if test "x$ac_ct_CC" = x; then
4844    CC=""
4845  else
4846    case $cross_compiling:$ac_tool_warned in
4847yes:)
4848{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4849whose name does not start with the host triplet.  If you think this
4850configuration is useful to you, please write to autoconf@gnu.org." >&5
4851echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4852whose name does not start with the host triplet.  If you think this
4853configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4854ac_tool_warned=yes ;;
4855esac
4856    CC=$ac_ct_CC
4857  fi
4858else
4859  CC="$ac_cv_prog_CC"
4860fi
4861
4862if test -z "$CC"; then
4863          if test -n "$ac_tool_prefix"; then
4864    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4865set dummy ${ac_tool_prefix}cc; ac_word=$2
4866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868if test "${ac_cv_prog_CC+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  if test -n "$CC"; then
4872  ac_cv_prog_CC="$CC" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877  IFS=$as_save_IFS
4878  test -z "$as_dir" && as_dir=.
4879  for ac_exec_ext in '' $ac_executable_extensions; do
4880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881    ac_cv_prog_CC="${ac_tool_prefix}cc"
4882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883    break 2
4884  fi
4885done
4886done
4887IFS=$as_save_IFS
4888
4889fi
4890fi
4891CC=$ac_cv_prog_CC
4892if test -n "$CC"; then
4893  { echo "$as_me:$LINENO: result: $CC" >&5
4894echo "${ECHO_T}$CC" >&6; }
4895else
4896  { echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6; }
4898fi
4899
4900
4901  fi
4902fi
4903if test -z "$CC"; then
4904  # Extract the first word of "cc", so it can be a program name with args.
4905set dummy cc; ac_word=$2
4906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908if test "${ac_cv_prog_CC+set}" = set; then
4909  echo $ECHO_N "(cached) $ECHO_C" >&6
4910else
4911  if test -n "$CC"; then
4912  ac_cv_prog_CC="$CC" # Let the user override the test.
4913else
4914  ac_prog_rejected=no
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918  IFS=$as_save_IFS
4919  test -z "$as_dir" && as_dir=.
4920  for ac_exec_ext in '' $ac_executable_extensions; do
4921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4923       ac_prog_rejected=yes
4924       continue
4925     fi
4926    ac_cv_prog_CC="cc"
4927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928    break 2
4929  fi
4930done
4931done
4932IFS=$as_save_IFS
4933
4934if test $ac_prog_rejected = yes; then
4935  # We found a bogon in the path, so make sure we never use it.
4936  set dummy $ac_cv_prog_CC
4937  shift
4938  if test $# != 0; then
4939    # We chose a different compiler from the bogus one.
4940    # However, it has the same basename, so the bogon will be chosen
4941    # first if we set CC to just the basename; use the full file name.
4942    shift
4943    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4944  fi
4945fi
4946fi
4947fi
4948CC=$ac_cv_prog_CC
4949if test -n "$CC"; then
4950  { echo "$as_me:$LINENO: result: $CC" >&5
4951echo "${ECHO_T}$CC" >&6; }
4952else
4953  { echo "$as_me:$LINENO: result: no" >&5
4954echo "${ECHO_T}no" >&6; }
4955fi
4956
4957
4958fi
4959if test -z "$CC"; then
4960  if test -n "$ac_tool_prefix"; then
4961  for ac_prog in cl.exe
4962  do
4963    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4964set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967if test "${ac_cv_prog_CC+set}" = set; then
4968  echo $ECHO_N "(cached) $ECHO_C" >&6
4969else
4970  if test -n "$CC"; then
4971  ac_cv_prog_CC="$CC" # Let the user override the test.
4972else
4973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976  IFS=$as_save_IFS
4977  test -z "$as_dir" && as_dir=.
4978  for ac_exec_ext in '' $ac_executable_extensions; do
4979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982    break 2
4983  fi
4984done
4985done
4986IFS=$as_save_IFS
4987
4988fi
4989fi
4990CC=$ac_cv_prog_CC
4991if test -n "$CC"; then
4992  { echo "$as_me:$LINENO: result: $CC" >&5
4993echo "${ECHO_T}$CC" >&6; }
4994else
4995  { echo "$as_me:$LINENO: result: no" >&5
4996echo "${ECHO_T}no" >&6; }
4997fi
4998
4999
5000    test -n "$CC" && break
5001  done
5002fi
5003if test -z "$CC"; then
5004  ac_ct_CC=$CC
5005  for ac_prog in cl.exe
5006do
5007  # Extract the first word of "$ac_prog", so it can be a program name with args.
5008set dummy $ac_prog; ac_word=$2
5009{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5011if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5012  echo $ECHO_N "(cached) $ECHO_C" >&6
5013else
5014  if test -n "$ac_ct_CC"; then
5015  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5016else
5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022  for ac_exec_ext in '' $ac_executable_extensions; do
5023  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024    ac_cv_prog_ac_ct_CC="$ac_prog"
5025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026    break 2
5027  fi
5028done
5029done
5030IFS=$as_save_IFS
5031
5032fi
5033fi
5034ac_ct_CC=$ac_cv_prog_ac_ct_CC
5035if test -n "$ac_ct_CC"; then
5036  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5037echo "${ECHO_T}$ac_ct_CC" >&6; }
5038else
5039  { echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6; }
5041fi
5042
5043
5044  test -n "$ac_ct_CC" && break
5045done
5046
5047  if test "x$ac_ct_CC" = x; then
5048    CC=""
5049  else
5050    case $cross_compiling:$ac_tool_warned in
5051yes:)
5052{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5053whose name does not start with the host triplet.  If you think this
5054configuration is useful to you, please write to autoconf@gnu.org." >&5
5055echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5056whose name does not start with the host triplet.  If you think this
5057configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5058ac_tool_warned=yes ;;
5059esac
5060    CC=$ac_ct_CC
5061  fi
5062fi
5063
5064fi
5065
5066
5067test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5068See \`config.log' for more details." >&5
5069echo "$as_me: error: no acceptable C compiler found in \$PATH
5070See \`config.log' for more details." >&2;}
5071   { (exit 1); exit 1; }; }
5072
5073# Provide some information about the compiler.
5074echo "$as_me:$LINENO: checking for C compiler version" >&5
5075ac_compiler=`set X $ac_compile; echo $2`
5076{ (ac_try="$ac_compiler --version >&5"
5077case "(($ac_try" in
5078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079  *) ac_try_echo=$ac_try;;
5080esac
5081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082  (eval "$ac_compiler --version >&5") 2>&5
5083  ac_status=$?
5084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085  (exit $ac_status); }
5086{ (ac_try="$ac_compiler -v >&5"
5087case "(($ac_try" in
5088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089  *) ac_try_echo=$ac_try;;
5090esac
5091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092  (eval "$ac_compiler -v >&5") 2>&5
5093  ac_status=$?
5094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095  (exit $ac_status); }
5096{ (ac_try="$ac_compiler -V >&5"
5097case "(($ac_try" in
5098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099  *) ac_try_echo=$ac_try;;
5100esac
5101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102  (eval "$ac_compiler -V >&5") 2>&5
5103  ac_status=$?
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); }
5106
5107cat >conftest.$ac_ext <<_ACEOF
5108/* confdefs.h.  */
5109_ACEOF
5110cat confdefs.h >>conftest.$ac_ext
5111cat >>conftest.$ac_ext <<_ACEOF
5112/* end confdefs.h.  */
5113
5114int
5115main ()
5116{
5117
5118  ;
5119  return 0;
5120}
5121_ACEOF
5122ac_clean_files_save=$ac_clean_files
5123ac_clean_files="$ac_clean_files a.out a.exe b.out"
5124# Try to create an executable without -o first, disregard a.out.
5125# It will help us diagnose broken compilers, and finding out an intuition
5126# of exeext.
5127{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5128echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5129ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5130#
5131# List of possible output files, starting from the most likely.
5132# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5133# only as a last resort.  b.out is created by i960 compilers.
5134ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5135#
5136# The IRIX 6 linker writes into existing files which may not be
5137# executable, retaining their permissions.  Remove them first so a
5138# subsequent execution test works.
5139ac_rmfiles=
5140for ac_file in $ac_files
5141do
5142  case $ac_file in
5143    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5144    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5145  esac
5146done
5147rm -f $ac_rmfiles
5148
5149if { (ac_try="$ac_link_default"
5150case "(($ac_try" in
5151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152  *) ac_try_echo=$ac_try;;
5153esac
5154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155  (eval "$ac_link_default") 2>&5
5156  ac_status=$?
5157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158  (exit $ac_status); }; then
5159  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5160# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5161# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5162# so that the user can short-circuit this test for compilers unknown to
5163# Autoconf.
5164for ac_file in $ac_files ''
5165do
5166  test -f "$ac_file" || continue
5167  case $ac_file in
5168    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5169	;;
5170    [ab].out )
5171	# We found the default executable, but exeext='' is most
5172	# certainly right.
5173	break;;
5174    *.* )
5175        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5176	then :; else
5177	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5178	fi
5179	# We set ac_cv_exeext here because the later test for it is not
5180	# safe: cross compilers may not add the suffix if given an `-o'
5181	# argument, so we may need to know it at that point already.
5182	# Even if this section looks crufty: it has the advantage of
5183	# actually working.
5184	break;;
5185    * )
5186	break;;
5187  esac
5188done
5189test "$ac_cv_exeext" = no && ac_cv_exeext=
5190
5191else
5192  ac_file=''
5193fi
5194
5195{ echo "$as_me:$LINENO: result: $ac_file" >&5
5196echo "${ECHO_T}$ac_file" >&6; }
5197if test -z "$ac_file"; then
5198  echo "$as_me: failed program was:" >&5
5199sed 's/^/| /' conftest.$ac_ext >&5
5200
5201{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
5202See \`config.log' for more details." >&5
5203echo "$as_me: error: C compiler cannot create executables
5204See \`config.log' for more details." >&2;}
5205   { (exit 77); exit 77; }; }
5206fi
5207
5208ac_exeext=$ac_cv_exeext
5209
5210# Check that the compiler produces executables we can run.  If not, either
5211# the compiler is broken, or we cross compile.
5212{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5213echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5214# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5215# If not cross compiling, check that we can run a simple program.
5216if test "$cross_compiling" != yes; then
5217  if { ac_try='./$ac_file'
5218  { (case "(($ac_try" in
5219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220  *) ac_try_echo=$ac_try;;
5221esac
5222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223  (eval "$ac_try") 2>&5
5224  ac_status=$?
5225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226  (exit $ac_status); }; }; then
5227    cross_compiling=no
5228  else
5229    if test "$cross_compiling" = maybe; then
5230	cross_compiling=yes
5231    else
5232	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5233If you meant to cross compile, use \`--host'.
5234See \`config.log' for more details." >&5
5235echo "$as_me: error: cannot run C compiled programs.
5236If you meant to cross compile, use \`--host'.
5237See \`config.log' for more details." >&2;}
5238   { (exit 1); exit 1; }; }
5239    fi
5240  fi
5241fi
5242{ echo "$as_me:$LINENO: result: yes" >&5
5243echo "${ECHO_T}yes" >&6; }
5244
5245rm -f a.out a.exe conftest$ac_cv_exeext b.out
5246ac_clean_files=$ac_clean_files_save
5247# Check that the compiler produces executables we can run.  If not, either
5248# the compiler is broken, or we cross compile.
5249{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5250echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5251{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
5252echo "${ECHO_T}$cross_compiling" >&6; }
5253
5254{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
5255echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5256if { (ac_try="$ac_link"
5257case "(($ac_try" in
5258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259  *) ac_try_echo=$ac_try;;
5260esac
5261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262  (eval "$ac_link") 2>&5
5263  ac_status=$?
5264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265  (exit $ac_status); }; then
5266  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5267# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5268# work properly (i.e., refer to `conftest.exe'), while it won't with
5269# `rm'.
5270for ac_file in conftest.exe conftest conftest.*; do
5271  test -f "$ac_file" || continue
5272  case $ac_file in
5273    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5274    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5275	  break;;
5276    * ) break;;
5277  esac
5278done
5279else
5280  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5281See \`config.log' for more details." >&5
5282echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5283See \`config.log' for more details." >&2;}
5284   { (exit 1); exit 1; }; }
5285fi
5286
5287rm -f conftest$ac_cv_exeext
5288{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5289echo "${ECHO_T}$ac_cv_exeext" >&6; }
5290
5291rm -f conftest.$ac_ext
5292EXEEXT=$ac_cv_exeext
5293ac_exeext=$EXEEXT
5294{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
5295echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5296if test "${ac_cv_objext+set}" = set; then
5297  echo $ECHO_N "(cached) $ECHO_C" >&6
5298else
5299  cat >conftest.$ac_ext <<_ACEOF
5300/* confdefs.h.  */
5301_ACEOF
5302cat confdefs.h >>conftest.$ac_ext
5303cat >>conftest.$ac_ext <<_ACEOF
5304/* end confdefs.h.  */
5305
5306int
5307main ()
5308{
5309
5310  ;
5311  return 0;
5312}
5313_ACEOF
5314rm -f conftest.o conftest.obj
5315if { (ac_try="$ac_compile"
5316case "(($ac_try" in
5317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318  *) ac_try_echo=$ac_try;;
5319esac
5320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321  (eval "$ac_compile") 2>&5
5322  ac_status=$?
5323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324  (exit $ac_status); }; then
5325  for ac_file in conftest.o conftest.obj conftest.*; do
5326  test -f "$ac_file" || continue;
5327  case $ac_file in
5328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5329    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5330       break;;
5331  esac
5332done
5333else
5334  echo "$as_me: failed program was:" >&5
5335sed 's/^/| /' conftest.$ac_ext >&5
5336
5337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5338See \`config.log' for more details." >&5
5339echo "$as_me: error: cannot compute suffix of object files: cannot compile
5340See \`config.log' for more details." >&2;}
5341   { (exit 1); exit 1; }; }
5342fi
5343
5344rm -f conftest.$ac_cv_objext conftest.$ac_ext
5345fi
5346{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5347echo "${ECHO_T}$ac_cv_objext" >&6; }
5348OBJEXT=$ac_cv_objext
5349ac_objext=$OBJEXT
5350{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5352if test "${ac_cv_c_compiler_gnu+set}" = set; then
5353  echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355  cat >conftest.$ac_ext <<_ACEOF
5356/* confdefs.h.  */
5357_ACEOF
5358cat confdefs.h >>conftest.$ac_ext
5359cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h.  */
5361
5362int
5363main ()
5364{
5365#ifndef __GNUC__
5366       choke me
5367#endif
5368
5369  ;
5370  return 0;
5371}
5372_ACEOF
5373rm -f conftest.$ac_objext
5374if { (ac_try="$ac_compile"
5375case "(($ac_try" in
5376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377  *) ac_try_echo=$ac_try;;
5378esac
5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380  (eval "$ac_compile") 2>conftest.er1
5381  ac_status=$?
5382  grep -v '^ *+' conftest.er1 >conftest.err
5383  rm -f conftest.er1
5384  cat conftest.err >&5
5385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386  (exit $ac_status); } && {
5387	 test -z "$ac_c_werror_flag" ||
5388	 test ! -s conftest.err
5389       } && test -s conftest.$ac_objext; then
5390  ac_compiler_gnu=yes
5391else
5392  echo "$as_me: failed program was:" >&5
5393sed 's/^/| /' conftest.$ac_ext >&5
5394
5395	ac_compiler_gnu=no
5396fi
5397
5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399ac_cv_c_compiler_gnu=$ac_compiler_gnu
5400
5401fi
5402{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5403echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5404GCC=`test $ac_compiler_gnu = yes && echo yes`
5405ac_test_CFLAGS=${CFLAGS+set}
5406ac_save_CFLAGS=$CFLAGS
5407{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5408echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5409if test "${ac_cv_prog_cc_g+set}" = set; then
5410  echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412  ac_save_c_werror_flag=$ac_c_werror_flag
5413   ac_c_werror_flag=yes
5414   ac_cv_prog_cc_g=no
5415   CFLAGS="-g"
5416   cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h.  */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h.  */
5422
5423int
5424main ()
5425{
5426
5427  ;
5428  return 0;
5429}
5430_ACEOF
5431rm -f conftest.$ac_objext
5432if { (ac_try="$ac_compile"
5433case "(($ac_try" in
5434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435  *) ac_try_echo=$ac_try;;
5436esac
5437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438  (eval "$ac_compile") 2>conftest.er1
5439  ac_status=$?
5440  grep -v '^ *+' conftest.er1 >conftest.err
5441  rm -f conftest.er1
5442  cat conftest.err >&5
5443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444  (exit $ac_status); } && {
5445	 test -z "$ac_c_werror_flag" ||
5446	 test ! -s conftest.err
5447       } && test -s conftest.$ac_objext; then
5448  ac_cv_prog_cc_g=yes
5449else
5450  echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453	CFLAGS=""
5454      cat >conftest.$ac_ext <<_ACEOF
5455/* confdefs.h.  */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h.  */
5460
5461int
5462main ()
5463{
5464
5465  ;
5466  return 0;
5467}
5468_ACEOF
5469rm -f conftest.$ac_objext
5470if { (ac_try="$ac_compile"
5471case "(($ac_try" in
5472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473  *) ac_try_echo=$ac_try;;
5474esac
5475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476  (eval "$ac_compile") 2>conftest.er1
5477  ac_status=$?
5478  grep -v '^ *+' conftest.er1 >conftest.err
5479  rm -f conftest.er1
5480  cat conftest.err >&5
5481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482  (exit $ac_status); } && {
5483	 test -z "$ac_c_werror_flag" ||
5484	 test ! -s conftest.err
5485       } && test -s conftest.$ac_objext; then
5486  :
5487else
5488  echo "$as_me: failed program was:" >&5
5489sed 's/^/| /' conftest.$ac_ext >&5
5490
5491	ac_c_werror_flag=$ac_save_c_werror_flag
5492	 CFLAGS="-g"
5493	 cat >conftest.$ac_ext <<_ACEOF
5494/* confdefs.h.  */
5495_ACEOF
5496cat confdefs.h >>conftest.$ac_ext
5497cat >>conftest.$ac_ext <<_ACEOF
5498/* end confdefs.h.  */
5499
5500int
5501main ()
5502{
5503
5504  ;
5505  return 0;
5506}
5507_ACEOF
5508rm -f conftest.$ac_objext
5509if { (ac_try="$ac_compile"
5510case "(($ac_try" in
5511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512  *) ac_try_echo=$ac_try;;
5513esac
5514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515  (eval "$ac_compile") 2>conftest.er1
5516  ac_status=$?
5517  grep -v '^ *+' conftest.er1 >conftest.err
5518  rm -f conftest.er1
5519  cat conftest.err >&5
5520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521  (exit $ac_status); } && {
5522	 test -z "$ac_c_werror_flag" ||
5523	 test ! -s conftest.err
5524       } && test -s conftest.$ac_objext; then
5525  ac_cv_prog_cc_g=yes
5526else
5527  echo "$as_me: failed program was:" >&5
5528sed 's/^/| /' conftest.$ac_ext >&5
5529
5530
5531fi
5532
5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534fi
5535
5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537fi
5538
5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540   ac_c_werror_flag=$ac_save_c_werror_flag
5541fi
5542{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5543echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5544if test "$ac_test_CFLAGS" = set; then
5545  CFLAGS=$ac_save_CFLAGS
5546elif test $ac_cv_prog_cc_g = yes; then
5547  if test "$GCC" = yes; then
5548    CFLAGS="-g -O2"
5549  else
5550    CFLAGS="-g"
5551  fi
5552else
5553  if test "$GCC" = yes; then
5554    CFLAGS="-O2"
5555  else
5556    CFLAGS=
5557  fi
5558fi
5559{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5560echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5561if test "${ac_cv_prog_cc_c89+set}" = set; then
5562  echo $ECHO_N "(cached) $ECHO_C" >&6
5563else
5564  ac_cv_prog_cc_c89=no
5565ac_save_CC=$CC
5566cat >conftest.$ac_ext <<_ACEOF
5567/* confdefs.h.  */
5568_ACEOF
5569cat confdefs.h >>conftest.$ac_ext
5570cat >>conftest.$ac_ext <<_ACEOF
5571/* end confdefs.h.  */
5572#include <stdarg.h>
5573#include <stdio.h>
5574#include <sys/types.h>
5575#include <sys/stat.h>
5576/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5577struct buf { int x; };
5578FILE * (*rcsopen) (struct buf *, struct stat *, int);
5579static char *e (p, i)
5580     char **p;
5581     int i;
5582{
5583  return p[i];
5584}
5585static char *f (char * (*g) (char **, int), char **p, ...)
5586{
5587  char *s;
5588  va_list v;
5589  va_start (v,p);
5590  s = g (p, va_arg (v,int));
5591  va_end (v);
5592  return s;
5593}
5594
5595/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5596   function prototypes and stuff, but not '\xHH' hex character constants.
5597   These don't provoke an error unfortunately, instead are silently treated
5598   as 'x'.  The following induces an error, until -std is added to get
5599   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5600   array size at least.  It's necessary to write '\x00'==0 to get something
5601   that's true only with -std.  */
5602int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5603
5604/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5605   inside strings and character constants.  */
5606#define FOO(x) 'x'
5607int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5608
5609int test (int i, double x);
5610struct s1 {int (*f) (int a);};
5611struct s2 {int (*f) (double a);};
5612int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5613int argc;
5614char **argv;
5615int
5616main ()
5617{
5618return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5619  ;
5620  return 0;
5621}
5622_ACEOF
5623for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5624	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5625do
5626  CC="$ac_save_CC $ac_arg"
5627  rm -f conftest.$ac_objext
5628if { (ac_try="$ac_compile"
5629case "(($ac_try" in
5630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631  *) ac_try_echo=$ac_try;;
5632esac
5633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634  (eval "$ac_compile") 2>conftest.er1
5635  ac_status=$?
5636  grep -v '^ *+' conftest.er1 >conftest.err
5637  rm -f conftest.er1
5638  cat conftest.err >&5
5639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640  (exit $ac_status); } && {
5641	 test -z "$ac_c_werror_flag" ||
5642	 test ! -s conftest.err
5643       } && test -s conftest.$ac_objext; then
5644  ac_cv_prog_cc_c89=$ac_arg
5645else
5646  echo "$as_me: failed program was:" >&5
5647sed 's/^/| /' conftest.$ac_ext >&5
5648
5649
5650fi
5651
5652rm -f core conftest.err conftest.$ac_objext
5653  test "x$ac_cv_prog_cc_c89" != "xno" && break
5654done
5655rm -f conftest.$ac_ext
5656CC=$ac_save_CC
5657
5658fi
5659# AC_CACHE_VAL
5660case "x$ac_cv_prog_cc_c89" in
5661  x)
5662    { echo "$as_me:$LINENO: result: none needed" >&5
5663echo "${ECHO_T}none needed" >&6; } ;;
5664  xno)
5665    { echo "$as_me:$LINENO: result: unsupported" >&5
5666echo "${ECHO_T}unsupported" >&6; } ;;
5667  *)
5668    CC="$CC $ac_cv_prog_cc_c89"
5669    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5670echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5671esac
5672
5673
5674ac_ext=c
5675ac_cpp='$CPP $CPPFLAGS'
5676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678ac_compiler_gnu=$ac_cv_c_compiler_gnu
5679
5680depcc="$CC"   am_compiler_list=
5681
5682{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5683echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5684if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5685  echo $ECHO_N "(cached) $ECHO_C" >&6
5686else
5687  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5688  # We make a subdir and do the tests there.  Otherwise we can end up
5689  # making bogus files that we don't know about and never remove.  For
5690  # instance it was reported that on HP-UX the gcc test will end up
5691  # making a dummy file named `D' -- because `-MD' means `put the output
5692  # in D'.
5693  mkdir conftest.dir
5694  # Copy depcomp to subdir because otherwise we won't find it if we're
5695  # using a relative directory.
5696  cp "$am_depcomp" conftest.dir
5697  cd conftest.dir
5698  # We will build objects and dependencies in a subdirectory because
5699  # it helps to detect inapplicable dependency modes.  For instance
5700  # both Tru64's cc and ICC support -MD to output dependencies as a
5701  # side effect of compilation, but ICC will put the dependencies in
5702  # the current directory while Tru64 will put them in the object
5703  # directory.
5704  mkdir sub
5705
5706  am_cv_CC_dependencies_compiler_type=none
5707  if test "$am_compiler_list" = ""; then
5708     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5709  fi
5710  for depmode in $am_compiler_list; do
5711    # Setup a source with many dependencies, because some compilers
5712    # like to wrap large dependency lists on column 80 (with \), and
5713    # we should not choose a depcomp mode which is confused by this.
5714    #
5715    # We need to recreate these files for each test, as the compiler may
5716    # overwrite some of them when testing with obscure command lines.
5717    # This happens at least with the AIX C compiler.
5718    : > sub/conftest.c
5719    for i in 1 2 3 4 5 6; do
5720      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5721      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5722      # Solaris 8's {/usr,}/bin/sh.
5723      touch sub/conftst$i.h
5724    done
5725    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5726
5727    case $depmode in
5728    nosideeffect)
5729      # after this tag, mechanisms are not by side-effect, so they'll
5730      # only be used when explicitly requested
5731      if test "x$enable_dependency_tracking" = xyes; then
5732	continue
5733      else
5734	break
5735      fi
5736      ;;
5737    none) break ;;
5738    esac
5739    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5740    # mode.  It turns out that the SunPro C++ compiler does not properly
5741    # handle `-M -o', and we need to detect this.
5742    if depmode=$depmode \
5743       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5744       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5745       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5746         >/dev/null 2>conftest.err &&
5747       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5748       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5749       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5750      # icc doesn't choke on unknown options, it will just issue warnings
5751      # or remarks (even with -Werror).  So we grep stderr for any message
5752      # that says an option was ignored or not supported.
5753      # When given -MP, icc 7.0 and 7.1 complain thusly:
5754      #   icc: Command line warning: ignoring option '-M'; no argument required
5755      # The diagnosis changed in icc 8.0:
5756      #   icc: Command line remark: option '-MP' not supported
5757      if (grep 'ignoring option' conftest.err ||
5758          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5759        am_cv_CC_dependencies_compiler_type=$depmode
5760        break
5761      fi
5762    fi
5763  done
5764
5765  cd ..
5766  rm -rf conftest.dir
5767else
5768  am_cv_CC_dependencies_compiler_type=none
5769fi
5770
5771fi
5772{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5773echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5774CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5775
5776
5777
5778if
5779  test "x$enable_dependency_tracking" != xno \
5780  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5781  am__fastdepCC_TRUE=
5782  am__fastdepCC_FALSE='#'
5783else
5784  am__fastdepCC_TRUE='#'
5785  am__fastdepCC_FALSE=
5786fi
5787
5788
5789{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5790echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5791if test "${lt_cv_path_SED+set}" = set; then
5792  echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794  # Loop through the user's path and test for sed and gsed.
5795# Then use that list of sed's as ones to test for truncation.
5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799  IFS=$as_save_IFS
5800  test -z "$as_dir" && as_dir=.
5801  for lt_ac_prog in sed gsed; do
5802    for ac_exec_ext in '' $ac_executable_extensions; do
5803      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5804        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5805      fi
5806    done
5807  done
5808done
5809lt_ac_max=0
5810lt_ac_count=0
5811# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5812# along with /bin/sed that truncates output.
5813for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5814  test ! -f $lt_ac_sed && continue
5815  cat /dev/null > conftest.in
5816  lt_ac_count=0
5817  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5818  # Check for GNU sed and select it if it is found.
5819  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5820    lt_cv_path_SED=$lt_ac_sed
5821    break
5822  fi
5823  while true; do
5824    cat conftest.in conftest.in >conftest.tmp
5825    mv conftest.tmp conftest.in
5826    cp conftest.in conftest.nl
5827    echo >>conftest.nl
5828    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5829    cmp -s conftest.out conftest.nl || break
5830    # 10000 chars as input seems more than enough
5831    test $lt_ac_count -gt 10 && break
5832    lt_ac_count=`expr $lt_ac_count + 1`
5833    if test $lt_ac_count -gt $lt_ac_max; then
5834      lt_ac_max=$lt_ac_count
5835      lt_cv_path_SED=$lt_ac_sed
5836    fi
5837  done
5838done
5839
5840fi
5841
5842SED=$lt_cv_path_SED
5843{ echo "$as_me:$LINENO: result: $SED" >&5
5844echo "${ECHO_T}$SED" >&6; }
5845
5846{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5847echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5848if test "${ac_cv_path_GREP+set}" = set; then
5849  echo $ECHO_N "(cached) $ECHO_C" >&6
5850else
5851  # Extract the first word of "grep ggrep" to use in msg output
5852if test -z "$GREP"; then
5853set dummy grep ggrep; ac_prog_name=$2
5854if test "${ac_cv_path_GREP+set}" = set; then
5855  echo $ECHO_N "(cached) $ECHO_C" >&6
5856else
5857  ac_path_GREP_found=false
5858# Loop through the user's path and test for each of PROGNAME-LIST
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5861do
5862  IFS=$as_save_IFS
5863  test -z "$as_dir" && as_dir=.
5864  for ac_prog in grep ggrep; do
5865  for ac_exec_ext in '' $ac_executable_extensions; do
5866    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5867    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5868    # Check for GNU ac_path_GREP and select it if it is found.
5869  # Check for GNU $ac_path_GREP
5870case `"$ac_path_GREP" --version 2>&1` in
5871*GNU*)
5872  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5873*)
5874  ac_count=0
5875  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5876  while :
5877  do
5878    cat "conftest.in" "conftest.in" >"conftest.tmp"
5879    mv "conftest.tmp" "conftest.in"
5880    cp "conftest.in" "conftest.nl"
5881    echo 'GREP' >> "conftest.nl"
5882    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5883    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5884    ac_count=`expr $ac_count + 1`
5885    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5886      # Best one so far, save it but keep looking for a better one
5887      ac_cv_path_GREP="$ac_path_GREP"
5888      ac_path_GREP_max=$ac_count
5889    fi
5890    # 10*(2^10) chars as input seems more than enough
5891    test $ac_count -gt 10 && break
5892  done
5893  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5894esac
5895
5896
5897    $ac_path_GREP_found && break 3
5898  done
5899done
5900
5901done
5902IFS=$as_save_IFS
5903
5904
5905fi
5906
5907GREP="$ac_cv_path_GREP"
5908if test -z "$GREP"; then
5909  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5910echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5911   { (exit 1); exit 1; }; }
5912fi
5913
5914else
5915  ac_cv_path_GREP=$GREP
5916fi
5917
5918
5919fi
5920{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5921echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5922 GREP="$ac_cv_path_GREP"
5923
5924
5925{ echo "$as_me:$LINENO: checking for egrep" >&5
5926echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5927if test "${ac_cv_path_EGREP+set}" = set; then
5928  echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5931   then ac_cv_path_EGREP="$GREP -E"
5932   else
5933     # Extract the first word of "egrep" to use in msg output
5934if test -z "$EGREP"; then
5935set dummy egrep; ac_prog_name=$2
5936if test "${ac_cv_path_EGREP+set}" = set; then
5937  echo $ECHO_N "(cached) $ECHO_C" >&6
5938else
5939  ac_path_EGREP_found=false
5940# Loop through the user's path and test for each of PROGNAME-LIST
5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5943do
5944  IFS=$as_save_IFS
5945  test -z "$as_dir" && as_dir=.
5946  for ac_prog in egrep; do
5947  for ac_exec_ext in '' $ac_executable_extensions; do
5948    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5949    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5950    # Check for GNU ac_path_EGREP and select it if it is found.
5951  # Check for GNU $ac_path_EGREP
5952case `"$ac_path_EGREP" --version 2>&1` in
5953*GNU*)
5954  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5955*)
5956  ac_count=0
5957  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5958  while :
5959  do
5960    cat "conftest.in" "conftest.in" >"conftest.tmp"
5961    mv "conftest.tmp" "conftest.in"
5962    cp "conftest.in" "conftest.nl"
5963    echo 'EGREP' >> "conftest.nl"
5964    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5965    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5966    ac_count=`expr $ac_count + 1`
5967    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5968      # Best one so far, save it but keep looking for a better one
5969      ac_cv_path_EGREP="$ac_path_EGREP"
5970      ac_path_EGREP_max=$ac_count
5971    fi
5972    # 10*(2^10) chars as input seems more than enough
5973    test $ac_count -gt 10 && break
5974  done
5975  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5976esac
5977
5978
5979    $ac_path_EGREP_found && break 3
5980  done
5981done
5982
5983done
5984IFS=$as_save_IFS
5985
5986
5987fi
5988
5989EGREP="$ac_cv_path_EGREP"
5990if test -z "$EGREP"; then
5991  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5992echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5993   { (exit 1); exit 1; }; }
5994fi
5995
5996else
5997  ac_cv_path_EGREP=$EGREP
5998fi
5999
6000
6001   fi
6002fi
6003{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6004echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6005 EGREP="$ac_cv_path_EGREP"
6006
6007
6008
6009# Check whether --with-gnu-ld was given.
6010if test "${with_gnu_ld+set}" = set; then
6011  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6012else
6013  with_gnu_ld=no
6014fi
6015
6016ac_prog=ld
6017if test "$GCC" = yes; then
6018  # Check if gcc -print-prog-name=ld gives a path.
6019  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6020echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6021  case $host in
6022  *-*-mingw*)
6023    # gcc leaves a trailing carriage return which upsets mingw
6024    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6025  *)
6026    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6027  esac
6028  case $ac_prog in
6029    # Accept absolute paths.
6030    [\\/]* | ?:[\\/]*)
6031      re_direlt='/[^/][^/]*/\.\./'
6032      # Canonicalize the pathname of ld
6033      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6034      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6035	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6036      done
6037      test -z "$LD" && LD="$ac_prog"
6038      ;;
6039  "")
6040    # If it fails, then pretend we aren't using GCC.
6041    ac_prog=ld
6042    ;;
6043  *)
6044    # If it is relative, then search for the first ld in PATH.
6045    with_gnu_ld=unknown
6046    ;;
6047  esac
6048elif test "$with_gnu_ld" = yes; then
6049  { echo "$as_me:$LINENO: checking for GNU ld" >&5
6050echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6051else
6052  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6053echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6054fi
6055if test "${lt_cv_path_LD+set}" = set; then
6056  echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058  if test -z "$LD"; then
6059  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6060  for ac_dir in $PATH; do
6061    IFS="$lt_save_ifs"
6062    test -z "$ac_dir" && ac_dir=.
6063    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6064      lt_cv_path_LD="$ac_dir/$ac_prog"
6065      # Check to see if the program is GNU ld.  I'd rather use --version,
6066      # but apparently some variants of GNU ld only accept -v.
6067      # Break only if it was the GNU/non-GNU ld that we prefer.
6068      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6069      *GNU* | *'with BFD'*)
6070	test "$with_gnu_ld" != no && break
6071	;;
6072      *)
6073	test "$with_gnu_ld" != yes && break
6074	;;
6075      esac
6076    fi
6077  done
6078  IFS="$lt_save_ifs"
6079else
6080  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6081fi
6082fi
6083
6084LD="$lt_cv_path_LD"
6085if test -n "$LD"; then
6086  { echo "$as_me:$LINENO: result: $LD" >&5
6087echo "${ECHO_T}$LD" >&6; }
6088else
6089  { echo "$as_me:$LINENO: result: no" >&5
6090echo "${ECHO_T}no" >&6; }
6091fi
6092test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6093echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6094   { (exit 1); exit 1; }; }
6095{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6096echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6097if test "${lt_cv_prog_gnu_ld+set}" = set; then
6098  echo $ECHO_N "(cached) $ECHO_C" >&6
6099else
6100  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6101case `$LD -v 2>&1 </dev/null` in
6102*GNU* | *'with BFD'*)
6103  lt_cv_prog_gnu_ld=yes
6104  ;;
6105*)
6106  lt_cv_prog_gnu_ld=no
6107  ;;
6108esac
6109fi
6110{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6111echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6112with_gnu_ld=$lt_cv_prog_gnu_ld
6113
6114
6115{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6116echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6117if test "${lt_cv_ld_reload_flag+set}" = set; then
6118  echo $ECHO_N "(cached) $ECHO_C" >&6
6119else
6120  lt_cv_ld_reload_flag='-r'
6121fi
6122{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6123echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6124reload_flag=$lt_cv_ld_reload_flag
6125case $reload_flag in
6126"" | " "*) ;;
6127*) reload_flag=" $reload_flag" ;;
6128esac
6129reload_cmds='$LD$reload_flag -o $output$reload_objs'
6130case $host_os in
6131  darwin*)
6132    if test "$GCC" = yes; then
6133      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6134    else
6135      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6136    fi
6137    ;;
6138esac
6139
6140{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6141echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6142if test "${lt_cv_path_NM+set}" = set; then
6143  echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145  if test -n "$NM"; then
6146  # Let the user override the test.
6147  lt_cv_path_NM="$NM"
6148else
6149  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6150  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6151    IFS="$lt_save_ifs"
6152    test -z "$ac_dir" && ac_dir=.
6153    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6154    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6155      # Check to see if the nm accepts a BSD-compat flag.
6156      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6157      #   nm: unknown option "B" ignored
6158      # Tru64's nm complains that /dev/null is an invalid object file
6159      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6160      */dev/null* | *'Invalid file or object type'*)
6161	lt_cv_path_NM="$tmp_nm -B"
6162	break
6163        ;;
6164      *)
6165	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6166	*/dev/null*)
6167	  lt_cv_path_NM="$tmp_nm -p"
6168	  break
6169	  ;;
6170	*)
6171	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6172	  continue # so that we can try to find one that supports BSD flags
6173	  ;;
6174	esac
6175      esac
6176    fi
6177  done
6178  IFS="$lt_save_ifs"
6179  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6180fi
6181fi
6182{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6183echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6184NM="$lt_cv_path_NM"
6185
6186{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6187echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6188LN_S=$as_ln_s
6189if test "$LN_S" = "ln -s"; then
6190  { echo "$as_me:$LINENO: result: yes" >&5
6191echo "${ECHO_T}yes" >&6; }
6192else
6193  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6194echo "${ECHO_T}no, using $LN_S" >&6; }
6195fi
6196
6197{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6198echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6199if test "${lt_cv_deplibs_check_method+set}" = set; then
6200  echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202  lt_cv_file_magic_cmd='$MAGIC_CMD'
6203lt_cv_file_magic_test_file=
6204lt_cv_deplibs_check_method='unknown'
6205# Need to set the preceding variable on all platforms that support
6206# interlibrary dependencies.
6207# 'none' -- dependencies not supported.
6208# `unknown' -- same as none, but documents that we really don't know.
6209# 'pass_all' -- all dependencies passed with no checks.
6210# 'test_compile' -- check by making test program.
6211# 'file_magic [[regex]]' -- check by looking for files in library path
6212# which responds to the $file_magic_cmd with a given extended regex.
6213# If you have `file' or equivalent on your system and you're not sure
6214# whether `pass_all' will *always* work, you probably want this one.
6215
6216case $host_os in
6217aix4* | aix5*)
6218  lt_cv_deplibs_check_method=pass_all
6219  ;;
6220
6221beos*)
6222  lt_cv_deplibs_check_method=pass_all
6223  ;;
6224
6225bsdi[45]*)
6226  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6227  lt_cv_file_magic_cmd='/usr/bin/file -L'
6228  lt_cv_file_magic_test_file=/shlib/libc.so
6229  ;;
6230
6231cygwin*)
6232  # func_win32_libid is a shell function defined in ltmain.sh
6233  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6234  lt_cv_file_magic_cmd='func_win32_libid'
6235  ;;
6236
6237mingw* | pw32*)
6238  # Base MSYS/MinGW do not provide the 'file' command needed by
6239  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6240  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6241  lt_cv_file_magic_cmd='$OBJDUMP -f'
6242  ;;
6243
6244darwin* | rhapsody*)
6245  lt_cv_deplibs_check_method=pass_all
6246  ;;
6247
6248freebsd* | kfreebsd*-gnu | dragonfly*)
6249  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6250    case $host_cpu in
6251    i*86 )
6252      # Not sure whether the presence of OpenBSD here was a mistake.
6253      # Let's accept both of them until this is cleared up.
6254      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6255      lt_cv_file_magic_cmd=/usr/bin/file
6256      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6257      ;;
6258    esac
6259  else
6260    lt_cv_deplibs_check_method=pass_all
6261  fi
6262  ;;
6263
6264gnu*)
6265  lt_cv_deplibs_check_method=pass_all
6266  ;;
6267
6268hpux10.20* | hpux11*)
6269  lt_cv_file_magic_cmd=/usr/bin/file
6270  case $host_cpu in
6271  ia64*)
6272    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6273    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6274    ;;
6275  hppa*64*)
6276    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]'
6277    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6278    ;;
6279  *)
6280    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6281    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6282    ;;
6283  esac
6284  ;;
6285
6286irix5* | irix6* | nonstopux*)
6287  case $LD in
6288  *-32|*"-32 ") libmagic=32-bit;;
6289  *-n32|*"-n32 ") libmagic=N32;;
6290  *-64|*"-64 ") libmagic=64-bit;;
6291  *) libmagic=never-match;;
6292  esac
6293  lt_cv_deplibs_check_method=pass_all
6294  ;;
6295
6296# This must be Linux ELF.
6297linux*)
6298  lt_cv_deplibs_check_method=pass_all
6299  ;;
6300
6301netbsd*)
6302  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6303    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6304  else
6305    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6306  fi
6307  ;;
6308
6309newos6*)
6310  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6311  lt_cv_file_magic_cmd=/usr/bin/file
6312  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6313  ;;
6314
6315nto-qnx*)
6316  lt_cv_deplibs_check_method=unknown
6317  ;;
6318
6319openbsd*)
6320  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6321    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6322  else
6323    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6324  fi
6325  ;;
6326
6327osf3* | osf4* | osf5*)
6328  lt_cv_deplibs_check_method=pass_all
6329  ;;
6330
6331sco3.2v5*)
6332  lt_cv_deplibs_check_method=pass_all
6333  ;;
6334
6335solaris*)
6336  lt_cv_deplibs_check_method=pass_all
6337  ;;
6338
6339sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6340  case $host_vendor in
6341  motorola)
6342    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]'
6343    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6344    ;;
6345  ncr)
6346    lt_cv_deplibs_check_method=pass_all
6347    ;;
6348  sequent)
6349    lt_cv_file_magic_cmd='/bin/file'
6350    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6351    ;;
6352  sni)
6353    lt_cv_file_magic_cmd='/bin/file'
6354    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6355    lt_cv_file_magic_test_file=/lib/libc.so
6356    ;;
6357  siemens)
6358    lt_cv_deplibs_check_method=pass_all
6359    ;;
6360  esac
6361  ;;
6362
6363sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6364  lt_cv_deplibs_check_method=pass_all
6365  ;;
6366esac
6367
6368fi
6369{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6370echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6371file_magic_cmd=$lt_cv_file_magic_cmd
6372deplibs_check_method=$lt_cv_deplibs_check_method
6373test -z "$deplibs_check_method" && deplibs_check_method=unknown
6374
6375
6376
6377
6378# If no C compiler was specified, use CC.
6379LTCC=${LTCC-"$CC"}
6380
6381# Allow CC to be a program name with arguments.
6382compiler=$CC
6383
6384
6385# Check whether --enable-libtool-lock was given.
6386if test "${enable_libtool_lock+set}" = set; then
6387  enableval=$enable_libtool_lock;
6388fi
6389
6390test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6391
6392# Some flags need to be propagated to the compiler or linker for good
6393# libtool support.
6394case $host in
6395ia64-*-hpux*)
6396  # Find out which ABI we are using.
6397  echo 'int i;' > conftest.$ac_ext
6398  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6399  (eval $ac_compile) 2>&5
6400  ac_status=$?
6401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402  (exit $ac_status); }; then
6403    case `/usr/bin/file conftest.$ac_objext` in
6404    *ELF-32*)
6405      HPUX_IA64_MODE="32"
6406      ;;
6407    *ELF-64*)
6408      HPUX_IA64_MODE="64"
6409      ;;
6410    esac
6411  fi
6412  rm -rf conftest*
6413  ;;
6414*-*-irix6*)
6415  # Find out which ABI we are using.
6416  echo '#line 6416 "configure"' > conftest.$ac_ext
6417  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418  (eval $ac_compile) 2>&5
6419  ac_status=$?
6420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421  (exit $ac_status); }; then
6422   if test "$lt_cv_prog_gnu_ld" = yes; then
6423    case `/usr/bin/file conftest.$ac_objext` in
6424    *32-bit*)
6425      LD="${LD-ld} -melf32bsmip"
6426      ;;
6427    *N32*)
6428      LD="${LD-ld} -melf32bmipn32"
6429      ;;
6430    *64-bit*)
6431      LD="${LD-ld} -melf64bmip"
6432      ;;
6433    esac
6434   else
6435    case `/usr/bin/file conftest.$ac_objext` in
6436    *32-bit*)
6437      LD="${LD-ld} -32"
6438      ;;
6439    *N32*)
6440      LD="${LD-ld} -n32"
6441      ;;
6442    *64-bit*)
6443      LD="${LD-ld} -64"
6444      ;;
6445    esac
6446   fi
6447  fi
6448  rm -rf conftest*
6449  ;;
6450
6451x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6452  # Find out which ABI we are using.
6453  echo 'int i;' > conftest.$ac_ext
6454  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455  (eval $ac_compile) 2>&5
6456  ac_status=$?
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); }; then
6459    case `/usr/bin/file conftest.o` in
6460    *32-bit*)
6461      case $host in
6462        x86_64-*linux*)
6463          LD="${LD-ld} -m elf_i386"
6464          ;;
6465        ppc64-*linux*|powerpc64-*linux*)
6466          LD="${LD-ld} -m elf32ppclinux"
6467          ;;
6468        s390x-*linux*)
6469          LD="${LD-ld} -m elf_s390"
6470          ;;
6471        sparc64-*linux*)
6472          LD="${LD-ld} -m elf32_sparc"
6473          ;;
6474      esac
6475      ;;
6476    *64-bit*)
6477      case $host in
6478        x86_64-*linux*)
6479          LD="${LD-ld} -m elf_x86_64"
6480          ;;
6481        ppc*-*linux*|powerpc*-*linux*)
6482          LD="${LD-ld} -m elf64ppc"
6483          ;;
6484        s390*-*linux*)
6485          LD="${LD-ld} -m elf64_s390"
6486          ;;
6487        sparc*-*linux*)
6488          LD="${LD-ld} -m elf64_sparc"
6489          ;;
6490      esac
6491      ;;
6492    esac
6493  fi
6494  rm -rf conftest*
6495  ;;
6496
6497*-*-sco3.2v5*)
6498  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6499  SAVE_CFLAGS="$CFLAGS"
6500  CFLAGS="$CFLAGS -belf"
6501  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6502echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6503if test "${lt_cv_cc_needs_belf+set}" = set; then
6504  echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506  ac_ext=c
6507ac_cpp='$CPP $CPPFLAGS'
6508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510ac_compiler_gnu=$ac_cv_c_compiler_gnu
6511
6512     cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h.  */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h.  */
6518
6519int
6520main ()
6521{
6522
6523  ;
6524  return 0;
6525}
6526_ACEOF
6527rm -f conftest.$ac_objext conftest$ac_exeext
6528if { (ac_try="$ac_link"
6529case "(($ac_try" in
6530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531  *) ac_try_echo=$ac_try;;
6532esac
6533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534  (eval "$ac_link") 2>conftest.er1
6535  ac_status=$?
6536  grep -v '^ *+' conftest.er1 >conftest.err
6537  rm -f conftest.er1
6538  cat conftest.err >&5
6539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540  (exit $ac_status); } && {
6541	 test -z "$ac_c_werror_flag" ||
6542	 test ! -s conftest.err
6543       } && test -s conftest$ac_exeext &&
6544       $as_test_x conftest$ac_exeext; then
6545  lt_cv_cc_needs_belf=yes
6546else
6547  echo "$as_me: failed program was:" >&5
6548sed 's/^/| /' conftest.$ac_ext >&5
6549
6550	lt_cv_cc_needs_belf=no
6551fi
6552
6553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6554      conftest$ac_exeext conftest.$ac_ext
6555     ac_ext=c
6556ac_cpp='$CPP $CPPFLAGS'
6557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6559ac_compiler_gnu=$ac_cv_c_compiler_gnu
6560
6561fi
6562{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6563echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6564  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6565    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6566    CFLAGS="$SAVE_CFLAGS"
6567  fi
6568  ;;
6569*-*-cygwin* | *-*-mingw* | *-*-pw32*)
6570  if test -n "$ac_tool_prefix"; then
6571  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6572set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6576  echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578  if test -n "$DLLTOOL"; then
6579  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584  IFS=$as_save_IFS
6585  test -z "$as_dir" && as_dir=.
6586  for ac_exec_ext in '' $ac_executable_extensions; do
6587  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6589    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590    break 2
6591  fi
6592done
6593done
6594IFS=$as_save_IFS
6595
6596fi
6597fi
6598DLLTOOL=$ac_cv_prog_DLLTOOL
6599if test -n "$DLLTOOL"; then
6600  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6601echo "${ECHO_T}$DLLTOOL" >&6; }
6602else
6603  { echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6; }
6605fi
6606
6607
6608fi
6609if test -z "$ac_cv_prog_DLLTOOL"; then
6610  ac_ct_DLLTOOL=$DLLTOOL
6611  # Extract the first word of "dlltool", so it can be a program name with args.
6612set dummy dlltool; ac_word=$2
6613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6616  echo $ECHO_N "(cached) $ECHO_C" >&6
6617else
6618  if test -n "$ac_ct_DLLTOOL"; then
6619  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624  IFS=$as_save_IFS
6625  test -z "$as_dir" && as_dir=.
6626  for ac_exec_ext in '' $ac_executable_extensions; do
6627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630    break 2
6631  fi
6632done
6633done
6634IFS=$as_save_IFS
6635
6636fi
6637fi
6638ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6639if test -n "$ac_ct_DLLTOOL"; then
6640  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6641echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6642else
6643  { echo "$as_me:$LINENO: result: no" >&5
6644echo "${ECHO_T}no" >&6; }
6645fi
6646
6647  if test "x$ac_ct_DLLTOOL" = x; then
6648    DLLTOOL="false"
6649  else
6650    case $cross_compiling:$ac_tool_warned in
6651yes:)
6652{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6653whose name does not start with the host triplet.  If you think this
6654configuration is useful to you, please write to autoconf@gnu.org." >&5
6655echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6656whose name does not start with the host triplet.  If you think this
6657configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6658ac_tool_warned=yes ;;
6659esac
6660    DLLTOOL=$ac_ct_DLLTOOL
6661  fi
6662else
6663  DLLTOOL="$ac_cv_prog_DLLTOOL"
6664fi
6665
6666  if test -n "$ac_tool_prefix"; then
6667  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6668set dummy ${ac_tool_prefix}as; ac_word=$2
6669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671if test "${ac_cv_prog_AS+set}" = set; then
6672  echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674  if test -n "$AS"; then
6675  ac_cv_prog_AS="$AS" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680  IFS=$as_save_IFS
6681  test -z "$as_dir" && as_dir=.
6682  for ac_exec_ext in '' $ac_executable_extensions; do
6683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684    ac_cv_prog_AS="${ac_tool_prefix}as"
6685    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686    break 2
6687  fi
6688done
6689done
6690IFS=$as_save_IFS
6691
6692fi
6693fi
6694AS=$ac_cv_prog_AS
6695if test -n "$AS"; then
6696  { echo "$as_me:$LINENO: result: $AS" >&5
6697echo "${ECHO_T}$AS" >&6; }
6698else
6699  { echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6; }
6701fi
6702
6703
6704fi
6705if test -z "$ac_cv_prog_AS"; then
6706  ac_ct_AS=$AS
6707  # Extract the first word of "as", so it can be a program name with args.
6708set dummy as; ac_word=$2
6709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6712  echo $ECHO_N "(cached) $ECHO_C" >&6
6713else
6714  if test -n "$ac_ct_AS"; then
6715  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6716else
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720  IFS=$as_save_IFS
6721  test -z "$as_dir" && as_dir=.
6722  for ac_exec_ext in '' $ac_executable_extensions; do
6723  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724    ac_cv_prog_ac_ct_AS="as"
6725    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726    break 2
6727  fi
6728done
6729done
6730IFS=$as_save_IFS
6731
6732fi
6733fi
6734ac_ct_AS=$ac_cv_prog_ac_ct_AS
6735if test -n "$ac_ct_AS"; then
6736  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6737echo "${ECHO_T}$ac_ct_AS" >&6; }
6738else
6739  { echo "$as_me:$LINENO: result: no" >&5
6740echo "${ECHO_T}no" >&6; }
6741fi
6742
6743  if test "x$ac_ct_AS" = x; then
6744    AS="false"
6745  else
6746    case $cross_compiling:$ac_tool_warned in
6747yes:)
6748{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6749whose name does not start with the host triplet.  If you think this
6750configuration is useful to you, please write to autoconf@gnu.org." >&5
6751echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6752whose name does not start with the host triplet.  If you think this
6753configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6754ac_tool_warned=yes ;;
6755esac
6756    AS=$ac_ct_AS
6757  fi
6758else
6759  AS="$ac_cv_prog_AS"
6760fi
6761
6762  if test -n "$ac_tool_prefix"; then
6763  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6764set dummy ${ac_tool_prefix}objdump; ac_word=$2
6765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6768  echo $ECHO_N "(cached) $ECHO_C" >&6
6769else
6770  if test -n "$OBJDUMP"; then
6771  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6772else
6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776  IFS=$as_save_IFS
6777  test -z "$as_dir" && as_dir=.
6778  for ac_exec_ext in '' $ac_executable_extensions; do
6779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782    break 2
6783  fi
6784done
6785done
6786IFS=$as_save_IFS
6787
6788fi
6789fi
6790OBJDUMP=$ac_cv_prog_OBJDUMP
6791if test -n "$OBJDUMP"; then
6792  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6793echo "${ECHO_T}$OBJDUMP" >&6; }
6794else
6795  { echo "$as_me:$LINENO: result: no" >&5
6796echo "${ECHO_T}no" >&6; }
6797fi
6798
6799
6800fi
6801if test -z "$ac_cv_prog_OBJDUMP"; then
6802  ac_ct_OBJDUMP=$OBJDUMP
6803  # Extract the first word of "objdump", so it can be a program name with args.
6804set dummy objdump; ac_word=$2
6805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6808  echo $ECHO_N "(cached) $ECHO_C" >&6
6809else
6810  if test -n "$ac_ct_OBJDUMP"; then
6811  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6812else
6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814for as_dir in $PATH
6815do
6816  IFS=$as_save_IFS
6817  test -z "$as_dir" && as_dir=.
6818  for ac_exec_ext in '' $ac_executable_extensions; do
6819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6820    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6821    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822    break 2
6823  fi
6824done
6825done
6826IFS=$as_save_IFS
6827
6828fi
6829fi
6830ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6831if test -n "$ac_ct_OBJDUMP"; then
6832  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6833echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6834else
6835  { echo "$as_me:$LINENO: result: no" >&5
6836echo "${ECHO_T}no" >&6; }
6837fi
6838
6839  if test "x$ac_ct_OBJDUMP" = x; then
6840    OBJDUMP="false"
6841  else
6842    case $cross_compiling:$ac_tool_warned in
6843yes:)
6844{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6845whose name does not start with the host triplet.  If you think this
6846configuration is useful to you, please write to autoconf@gnu.org." >&5
6847echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6848whose name does not start with the host triplet.  If you think this
6849configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6850ac_tool_warned=yes ;;
6851esac
6852    OBJDUMP=$ac_ct_OBJDUMP
6853  fi
6854else
6855  OBJDUMP="$ac_cv_prog_OBJDUMP"
6856fi
6857
6858  ;;
6859
6860esac
6861
6862need_locks="$enable_libtool_lock"
6863
6864
6865ac_ext=c
6866ac_cpp='$CPP $CPPFLAGS'
6867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869ac_compiler_gnu=$ac_cv_c_compiler_gnu
6870{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6871echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6872# On Suns, sometimes $CPP names a directory.
6873if test -n "$CPP" && test -d "$CPP"; then
6874  CPP=
6875fi
6876if test -z "$CPP"; then
6877  if test "${ac_cv_prog_CPP+set}" = set; then
6878  echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880      # Double quotes because CPP needs to be expanded
6881    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6882    do
6883      ac_preproc_ok=false
6884for ac_c_preproc_warn_flag in '' yes
6885do
6886  # Use a header file that comes with gcc, so configuring glibc
6887  # with a fresh cross-compiler works.
6888  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6889  # <limits.h> exists even on freestanding compilers.
6890  # On the NeXT, cc -E runs the code through the compiler's parser,
6891  # not just through cpp. "Syntax error" is here to catch this case.
6892  cat >conftest.$ac_ext <<_ACEOF
6893/* confdefs.h.  */
6894_ACEOF
6895cat confdefs.h >>conftest.$ac_ext
6896cat >>conftest.$ac_ext <<_ACEOF
6897/* end confdefs.h.  */
6898#ifdef __STDC__
6899# include <limits.h>
6900#else
6901# include <assert.h>
6902#endif
6903		     Syntax error
6904_ACEOF
6905if { (ac_try="$ac_cpp conftest.$ac_ext"
6906case "(($ac_try" in
6907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908  *) ac_try_echo=$ac_try;;
6909esac
6910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6912  ac_status=$?
6913  grep -v '^ *+' conftest.er1 >conftest.err
6914  rm -f conftest.er1
6915  cat conftest.err >&5
6916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917  (exit $ac_status); } >/dev/null && {
6918	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6919	 test ! -s conftest.err
6920       }; then
6921  :
6922else
6923  echo "$as_me: failed program was:" >&5
6924sed 's/^/| /' conftest.$ac_ext >&5
6925
6926  # Broken: fails on valid input.
6927continue
6928fi
6929
6930rm -f conftest.err conftest.$ac_ext
6931
6932  # OK, works on sane cases.  Now check whether nonexistent headers
6933  # can be detected and how.
6934  cat >conftest.$ac_ext <<_ACEOF
6935/* confdefs.h.  */
6936_ACEOF
6937cat confdefs.h >>conftest.$ac_ext
6938cat >>conftest.$ac_ext <<_ACEOF
6939/* end confdefs.h.  */
6940#include <ac_nonexistent.h>
6941_ACEOF
6942if { (ac_try="$ac_cpp conftest.$ac_ext"
6943case "(($ac_try" in
6944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945  *) ac_try_echo=$ac_try;;
6946esac
6947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6949  ac_status=$?
6950  grep -v '^ *+' conftest.er1 >conftest.err
6951  rm -f conftest.er1
6952  cat conftest.err >&5
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); } >/dev/null && {
6955	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6956	 test ! -s conftest.err
6957       }; then
6958  # Broken: success on invalid input.
6959continue
6960else
6961  echo "$as_me: failed program was:" >&5
6962sed 's/^/| /' conftest.$ac_ext >&5
6963
6964  # Passes both tests.
6965ac_preproc_ok=:
6966break
6967fi
6968
6969rm -f conftest.err conftest.$ac_ext
6970
6971done
6972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6973rm -f conftest.err conftest.$ac_ext
6974if $ac_preproc_ok; then
6975  break
6976fi
6977
6978    done
6979    ac_cv_prog_CPP=$CPP
6980
6981fi
6982  CPP=$ac_cv_prog_CPP
6983else
6984  ac_cv_prog_CPP=$CPP
6985fi
6986{ echo "$as_me:$LINENO: result: $CPP" >&5
6987echo "${ECHO_T}$CPP" >&6; }
6988ac_preproc_ok=false
6989for ac_c_preproc_warn_flag in '' yes
6990do
6991  # Use a header file that comes with gcc, so configuring glibc
6992  # with a fresh cross-compiler works.
6993  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6994  # <limits.h> exists even on freestanding compilers.
6995  # On the NeXT, cc -E runs the code through the compiler's parser,
6996  # not just through cpp. "Syntax error" is here to catch this case.
6997  cat >conftest.$ac_ext <<_ACEOF
6998/* confdefs.h.  */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h.  */
7003#ifdef __STDC__
7004# include <limits.h>
7005#else
7006# include <assert.h>
7007#endif
7008		     Syntax error
7009_ACEOF
7010if { (ac_try="$ac_cpp conftest.$ac_ext"
7011case "(($ac_try" in
7012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013  *) ac_try_echo=$ac_try;;
7014esac
7015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7017  ac_status=$?
7018  grep -v '^ *+' conftest.er1 >conftest.err
7019  rm -f conftest.er1
7020  cat conftest.err >&5
7021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022  (exit $ac_status); } >/dev/null && {
7023	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7024	 test ! -s conftest.err
7025       }; then
7026  :
7027else
7028  echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031  # Broken: fails on valid input.
7032continue
7033fi
7034
7035rm -f conftest.err conftest.$ac_ext
7036
7037  # OK, works on sane cases.  Now check whether nonexistent headers
7038  # can be detected and how.
7039  cat >conftest.$ac_ext <<_ACEOF
7040/* confdefs.h.  */
7041_ACEOF
7042cat confdefs.h >>conftest.$ac_ext
7043cat >>conftest.$ac_ext <<_ACEOF
7044/* end confdefs.h.  */
7045#include <ac_nonexistent.h>
7046_ACEOF
7047if { (ac_try="$ac_cpp conftest.$ac_ext"
7048case "(($ac_try" in
7049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050  *) ac_try_echo=$ac_try;;
7051esac
7052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7054  ac_status=$?
7055  grep -v '^ *+' conftest.er1 >conftest.err
7056  rm -f conftest.er1
7057  cat conftest.err >&5
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); } >/dev/null && {
7060	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7061	 test ! -s conftest.err
7062       }; then
7063  # Broken: success on invalid input.
7064continue
7065else
7066  echo "$as_me: failed program was:" >&5
7067sed 's/^/| /' conftest.$ac_ext >&5
7068
7069  # Passes both tests.
7070ac_preproc_ok=:
7071break
7072fi
7073
7074rm -f conftest.err conftest.$ac_ext
7075
7076done
7077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7078rm -f conftest.err conftest.$ac_ext
7079if $ac_preproc_ok; then
7080  :
7081else
7082  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7083See \`config.log' for more details." >&5
7084echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7085See \`config.log' for more details." >&2;}
7086   { (exit 1); exit 1; }; }
7087fi
7088
7089ac_ext=c
7090ac_cpp='$CPP $CPPFLAGS'
7091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7093ac_compiler_gnu=$ac_cv_c_compiler_gnu
7094
7095
7096{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7097echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7098if test "${ac_cv_header_stdc+set}" = set; then
7099  echo $ECHO_N "(cached) $ECHO_C" >&6
7100else
7101  cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h.  */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h.  */
7107#include <stdlib.h>
7108#include <stdarg.h>
7109#include <string.h>
7110#include <float.h>
7111
7112int
7113main ()
7114{
7115
7116  ;
7117  return 0;
7118}
7119_ACEOF
7120rm -f conftest.$ac_objext
7121if { (ac_try="$ac_compile"
7122case "(($ac_try" in
7123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124  *) ac_try_echo=$ac_try;;
7125esac
7126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7127  (eval "$ac_compile") 2>conftest.er1
7128  ac_status=$?
7129  grep -v '^ *+' conftest.er1 >conftest.err
7130  rm -f conftest.er1
7131  cat conftest.err >&5
7132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133  (exit $ac_status); } && {
7134	 test -z "$ac_c_werror_flag" ||
7135	 test ! -s conftest.err
7136       } && test -s conftest.$ac_objext; then
7137  ac_cv_header_stdc=yes
7138else
7139  echo "$as_me: failed program was:" >&5
7140sed 's/^/| /' conftest.$ac_ext >&5
7141
7142	ac_cv_header_stdc=no
7143fi
7144
7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146
7147if test $ac_cv_header_stdc = yes; then
7148  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7149  cat >conftest.$ac_ext <<_ACEOF
7150/* confdefs.h.  */
7151_ACEOF
7152cat confdefs.h >>conftest.$ac_ext
7153cat >>conftest.$ac_ext <<_ACEOF
7154/* end confdefs.h.  */
7155#include <string.h>
7156
7157_ACEOF
7158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7159  $EGREP "memchr" >/dev/null 2>&1; then
7160  :
7161else
7162  ac_cv_header_stdc=no
7163fi
7164rm -f -r conftest*
7165
7166fi
7167
7168if test $ac_cv_header_stdc = yes; then
7169  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7170  cat >conftest.$ac_ext <<_ACEOF
7171/* confdefs.h.  */
7172_ACEOF
7173cat confdefs.h >>conftest.$ac_ext
7174cat >>conftest.$ac_ext <<_ACEOF
7175/* end confdefs.h.  */
7176#include <stdlib.h>
7177
7178_ACEOF
7179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180  $EGREP "free" >/dev/null 2>&1; then
7181  :
7182else
7183  ac_cv_header_stdc=no
7184fi
7185rm -f -r conftest*
7186
7187fi
7188
7189if test $ac_cv_header_stdc = yes; then
7190  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7191  if test "$cross_compiling" = yes; then
7192  :
7193else
7194  cat >conftest.$ac_ext <<_ACEOF
7195/* confdefs.h.  */
7196_ACEOF
7197cat confdefs.h >>conftest.$ac_ext
7198cat >>conftest.$ac_ext <<_ACEOF
7199/* end confdefs.h.  */
7200#include <ctype.h>
7201#include <stdlib.h>
7202#if ((' ' & 0x0FF) == 0x020)
7203# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7204# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7205#else
7206# define ISLOWER(c) \
7207		   (('a' <= (c) && (c) <= 'i') \
7208		     || ('j' <= (c) && (c) <= 'r') \
7209		     || ('s' <= (c) && (c) <= 'z'))
7210# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7211#endif
7212
7213#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7214int
7215main ()
7216{
7217  int i;
7218  for (i = 0; i < 256; i++)
7219    if (XOR (islower (i), ISLOWER (i))
7220	|| toupper (i) != TOUPPER (i))
7221      return 2;
7222  return 0;
7223}
7224_ACEOF
7225rm -f conftest$ac_exeext
7226if { (ac_try="$ac_link"
7227case "(($ac_try" in
7228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229  *) ac_try_echo=$ac_try;;
7230esac
7231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232  (eval "$ac_link") 2>&5
7233  ac_status=$?
7234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7236  { (case "(($ac_try" in
7237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7238  *) ac_try_echo=$ac_try;;
7239esac
7240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241  (eval "$ac_try") 2>&5
7242  ac_status=$?
7243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244  (exit $ac_status); }; }; then
7245  :
7246else
7247  echo "$as_me: program exited with status $ac_status" >&5
7248echo "$as_me: failed program was:" >&5
7249sed 's/^/| /' conftest.$ac_ext >&5
7250
7251( exit $ac_status )
7252ac_cv_header_stdc=no
7253fi
7254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7255fi
7256
7257
7258fi
7259fi
7260{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7261echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7262if test $ac_cv_header_stdc = yes; then
7263
7264cat >>confdefs.h <<\_ACEOF
7265#define STDC_HEADERS 1
7266_ACEOF
7267
7268fi
7269
7270# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7281		  inttypes.h stdint.h unistd.h
7282do
7283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7284{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7287  echo $ECHO_N "(cached) $ECHO_C" >&6
7288else
7289  cat >conftest.$ac_ext <<_ACEOF
7290/* confdefs.h.  */
7291_ACEOF
7292cat confdefs.h >>conftest.$ac_ext
7293cat >>conftest.$ac_ext <<_ACEOF
7294/* end confdefs.h.  */
7295$ac_includes_default
7296
7297#include <$ac_header>
7298_ACEOF
7299rm -f conftest.$ac_objext
7300if { (ac_try="$ac_compile"
7301case "(($ac_try" in
7302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303  *) ac_try_echo=$ac_try;;
7304esac
7305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7306  (eval "$ac_compile") 2>conftest.er1
7307  ac_status=$?
7308  grep -v '^ *+' conftest.er1 >conftest.err
7309  rm -f conftest.er1
7310  cat conftest.err >&5
7311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312  (exit $ac_status); } && {
7313	 test -z "$ac_c_werror_flag" ||
7314	 test ! -s conftest.err
7315       } && test -s conftest.$ac_objext; then
7316  eval "$as_ac_Header=yes"
7317else
7318  echo "$as_me: failed program was:" >&5
7319sed 's/^/| /' conftest.$ac_ext >&5
7320
7321	eval "$as_ac_Header=no"
7322fi
7323
7324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325fi
7326ac_res=`eval echo '${'$as_ac_Header'}'`
7327	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7328echo "${ECHO_T}$ac_res" >&6; }
7329if test `eval echo '${'$as_ac_Header'}'` = yes; then
7330  cat >>confdefs.h <<_ACEOF
7331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7332_ACEOF
7333
7334fi
7335
7336done
7337
7338
7339
7340for ac_header in dlfcn.h
7341do
7342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7344  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7347  echo $ECHO_N "(cached) $ECHO_C" >&6
7348fi
7349ac_res=`eval echo '${'$as_ac_Header'}'`
7350	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7351echo "${ECHO_T}$ac_res" >&6; }
7352else
7353  # Is the header compilable?
7354{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7356cat >conftest.$ac_ext <<_ACEOF
7357/* confdefs.h.  */
7358_ACEOF
7359cat confdefs.h >>conftest.$ac_ext
7360cat >>conftest.$ac_ext <<_ACEOF
7361/* end confdefs.h.  */
7362$ac_includes_default
7363#include <$ac_header>
7364_ACEOF
7365rm -f conftest.$ac_objext
7366if { (ac_try="$ac_compile"
7367case "(($ac_try" in
7368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369  *) ac_try_echo=$ac_try;;
7370esac
7371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372  (eval "$ac_compile") 2>conftest.er1
7373  ac_status=$?
7374  grep -v '^ *+' conftest.er1 >conftest.err
7375  rm -f conftest.er1
7376  cat conftest.err >&5
7377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378  (exit $ac_status); } && {
7379	 test -z "$ac_c_werror_flag" ||
7380	 test ! -s conftest.err
7381       } && test -s conftest.$ac_objext; then
7382  ac_header_compiler=yes
7383else
7384  echo "$as_me: failed program was:" >&5
7385sed 's/^/| /' conftest.$ac_ext >&5
7386
7387	ac_header_compiler=no
7388fi
7389
7390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7392echo "${ECHO_T}$ac_header_compiler" >&6; }
7393
7394# Is the header present?
7395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7397cat >conftest.$ac_ext <<_ACEOF
7398/* confdefs.h.  */
7399_ACEOF
7400cat confdefs.h >>conftest.$ac_ext
7401cat >>conftest.$ac_ext <<_ACEOF
7402/* end confdefs.h.  */
7403#include <$ac_header>
7404_ACEOF
7405if { (ac_try="$ac_cpp conftest.$ac_ext"
7406case "(($ac_try" in
7407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408  *) ac_try_echo=$ac_try;;
7409esac
7410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7412  ac_status=$?
7413  grep -v '^ *+' conftest.er1 >conftest.err
7414  rm -f conftest.er1
7415  cat conftest.err >&5
7416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417  (exit $ac_status); } >/dev/null && {
7418	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7419	 test ! -s conftest.err
7420       }; then
7421  ac_header_preproc=yes
7422else
7423  echo "$as_me: failed program was:" >&5
7424sed 's/^/| /' conftest.$ac_ext >&5
7425
7426  ac_header_preproc=no
7427fi
7428
7429rm -f conftest.err conftest.$ac_ext
7430{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7431echo "${ECHO_T}$ac_header_preproc" >&6; }
7432
7433# So?  What about this header?
7434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7435  yes:no: )
7436    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7438    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7440    ac_header_preproc=yes
7441    ;;
7442  no:yes:* )
7443    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7445    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7446echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7447    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7449    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7450echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7451    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7453    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7455    ( cat <<\_ASBOX
7456## --------------------------------------------- ##
7457## Report this to <http://www.openldap.org/its/> ##
7458## --------------------------------------------- ##
7459_ASBOX
7460     ) | sed "s/^/$as_me: WARNING:     /" >&2
7461    ;;
7462esac
7463{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7466  echo $ECHO_N "(cached) $ECHO_C" >&6
7467else
7468  eval "$as_ac_Header=\$ac_header_preproc"
7469fi
7470ac_res=`eval echo '${'$as_ac_Header'}'`
7471	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7472echo "${ECHO_T}$ac_res" >&6; }
7473
7474fi
7475if test `eval echo '${'$as_ac_Header'}'` = yes; then
7476  cat >>confdefs.h <<_ACEOF
7477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7478_ACEOF
7479
7480fi
7481
7482done
7483
7484
7485# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7486
7487# find the maximum length of command line arguments
7488{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7489echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7490if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7491  echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493    i=0
7494  teststring="ABCD"
7495
7496  case $build_os in
7497  msdosdjgpp*)
7498    # On DJGPP, this test can blow up pretty badly due to problems in libc
7499    # (any single argument exceeding 2000 bytes causes a buffer overrun
7500    # during glob expansion).  Even if it were fixed, the result of this
7501    # check would be larger than it should be.
7502    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7503    ;;
7504
7505  gnu*)
7506    # Under GNU Hurd, this test is not required because there is
7507    # no limit to the length of command line arguments.
7508    # Libtool will interpret -1 as no limit whatsoever
7509    lt_cv_sys_max_cmd_len=-1;
7510    ;;
7511
7512  cygwin* | mingw*)
7513    # On Win9x/ME, this test blows up -- it succeeds, but takes
7514    # about 5 minutes as the teststring grows exponentially.
7515    # Worse, since 9x/ME are not pre-emptively multitasking,
7516    # you end up with a "frozen" computer, even though with patience
7517    # the test eventually succeeds (with a max line length of 256k).
7518    # Instead, let's just punt: use the minimum linelength reported by
7519    # all of the supported platforms: 8192 (on NT/2K/XP).
7520    lt_cv_sys_max_cmd_len=8192;
7521    ;;
7522
7523  amigaos*)
7524    # On AmigaOS with pdksh, this test takes hours, literally.
7525    # So we just punt and use a minimum line length of 8192.
7526    lt_cv_sys_max_cmd_len=8192;
7527    ;;
7528
7529  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7530    # This has been around since 386BSD, at least.  Likely further.
7531    if test -x /sbin/sysctl; then
7532      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7533    elif test -x /usr/sbin/sysctl; then
7534      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7535    else
7536      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7537    fi
7538    # And add a safety zone
7539    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7540    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7541    ;;
7542  osf*)
7543    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7544    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7545    # nice to cause kernel panics so lets avoid the loop below.
7546    # First set a reasonable default.
7547    lt_cv_sys_max_cmd_len=16384
7548    #
7549    if test -x /sbin/sysconfig; then
7550      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7551        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7552      esac
7553    fi
7554    ;;
7555  *)
7556    # If test is not a shell built-in, we'll probably end up computing a
7557    # maximum length that is only half of the actual maximum length, but
7558    # we can't tell.
7559    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7560    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7561	       = "XX$teststring") >/dev/null 2>&1 &&
7562	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7563	    lt_cv_sys_max_cmd_len=$new_result &&
7564	    test $i != 17 # 1/2 MB should be enough
7565    do
7566      i=`expr $i + 1`
7567      teststring=$teststring$teststring
7568    done
7569    teststring=
7570    # Add a significant safety factor because C++ compilers can tack on massive
7571    # amounts of additional arguments before passing them to the linker.
7572    # It appears as though 1/2 is a usable value.
7573    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7574    ;;
7575  esac
7576
7577fi
7578
7579if test -n $lt_cv_sys_max_cmd_len ; then
7580  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7581echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7582else
7583  { echo "$as_me:$LINENO: result: none" >&5
7584echo "${ECHO_T}none" >&6; }
7585fi
7586
7587
7588
7589
7590# Check for command to grab the raw symbol name followed by C symbol from nm.
7591{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7592echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7593if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7594  echo $ECHO_N "(cached) $ECHO_C" >&6
7595else
7596
7597# These are sane defaults that work on at least a few old systems.
7598# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7599
7600# Character class describing NM global symbol codes.
7601symcode='[BCDEGRST]'
7602
7603# Regexp to match symbols that can be accessed directly from C.
7604sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7605
7606# Transform an extracted symbol line into a proper C declaration
7607lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7608
7609# Transform an extracted symbol line into symbol name and symbol address
7610lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7611
7612# Define system-specific variables.
7613case $host_os in
7614aix*)
7615  symcode='[BCDT]'
7616  ;;
7617cygwin* | mingw* | pw32*)
7618  symcode='[ABCDGISTW]'
7619  ;;
7620hpux*) # Its linker distinguishes data from code symbols
7621  if test "$host_cpu" = ia64; then
7622    symcode='[ABCDEGRST]'
7623  fi
7624  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7625  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7626  ;;
7627linux*)
7628  if test "$host_cpu" = ia64; then
7629    symcode='[ABCDGIRSTW]'
7630    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7631    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7632  fi
7633  ;;
7634irix* | nonstopux*)
7635  symcode='[BCDEGRST]'
7636  ;;
7637osf*)
7638  symcode='[BCDEGQRST]'
7639  ;;
7640solaris* | sysv5*)
7641  symcode='[BDRT]'
7642  ;;
7643sysv4)
7644  symcode='[DFNSTU]'
7645  ;;
7646esac
7647
7648# Handle CRLF in mingw tool chain
7649opt_cr=
7650case $build_os in
7651mingw*)
7652  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7653  ;;
7654esac
7655
7656# If we're using GNU nm, then use its standard symbol codes.
7657case `$NM -V 2>&1` in
7658*GNU* | *'with BFD'*)
7659  symcode='[ABCDGIRSTW]' ;;
7660esac
7661
7662# Try without a prefix undercore, then with it.
7663for ac_symprfx in "" "_"; do
7664
7665  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7666  symxfrm="\\1 $ac_symprfx\\2 \\2"
7667
7668  # Write the raw and C identifiers.
7669  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7670
7671  # Check to see that the pipe works correctly.
7672  pipe_works=no
7673
7674  rm -f conftest*
7675  cat > conftest.$ac_ext <<EOF
7676#ifdef __cplusplus
7677extern "C" {
7678#endif
7679char nm_test_var;
7680void nm_test_func(){}
7681#ifdef __cplusplus
7682}
7683#endif
7684int main(){nm_test_var='a';nm_test_func();return(0);}
7685EOF
7686
7687  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688  (eval $ac_compile) 2>&5
7689  ac_status=$?
7690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691  (exit $ac_status); }; then
7692    # Now try to grab the symbols.
7693    nlist=conftest.nm
7694    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7695  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7696  ac_status=$?
7697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698  (exit $ac_status); } && test -s "$nlist"; then
7699      # Try sorting and uniquifying the output.
7700      if sort "$nlist" | uniq > "$nlist"T; then
7701	mv -f "$nlist"T "$nlist"
7702      else
7703	rm -f "$nlist"T
7704      fi
7705
7706      # Make sure that we snagged all the symbols we need.
7707      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7708	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7709	  cat <<EOF > conftest.$ac_ext
7710#ifdef __cplusplus
7711extern "C" {
7712#endif
7713
7714EOF
7715	  # Now generate the symbol file.
7716	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7717
7718	  cat <<EOF >> conftest.$ac_ext
7719#if defined (__STDC__) && __STDC__
7720# define lt_ptr_t void *
7721#else
7722# define lt_ptr_t char *
7723# define const
7724#endif
7725
7726/* The mapping between symbol names and symbols. */
7727const struct {
7728  const char *name;
7729  lt_ptr_t address;
7730}
7731lt_preloaded_symbols[] =
7732{
7733EOF
7734	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7735	  cat <<\EOF >> conftest.$ac_ext
7736  {0, (lt_ptr_t) 0}
7737};
7738
7739#ifdef __cplusplus
7740}
7741#endif
7742EOF
7743	  # Now try linking the two files.
7744	  mv conftest.$ac_objext conftstm.$ac_objext
7745	  lt_save_LIBS="$LIBS"
7746	  lt_save_CFLAGS="$CFLAGS"
7747	  LIBS="conftstm.$ac_objext"
7748	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7749	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750  (eval $ac_link) 2>&5
7751  ac_status=$?
7752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7754	    pipe_works=yes
7755	  fi
7756	  LIBS="$lt_save_LIBS"
7757	  CFLAGS="$lt_save_CFLAGS"
7758	else
7759	  echo "cannot find nm_test_func in $nlist" >&5
7760	fi
7761      else
7762	echo "cannot find nm_test_var in $nlist" >&5
7763      fi
7764    else
7765      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7766    fi
7767  else
7768    echo "$progname: failed program was:" >&5
7769    cat conftest.$ac_ext >&5
7770  fi
7771  rm -f conftest* conftst*
7772
7773  # Do not use the global_symbol_pipe unless it works.
7774  if test "$pipe_works" = yes; then
7775    break
7776  else
7777    lt_cv_sys_global_symbol_pipe=
7778  fi
7779done
7780
7781fi
7782
7783if test -z "$lt_cv_sys_global_symbol_pipe"; then
7784  lt_cv_sys_global_symbol_to_cdecl=
7785fi
7786if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7787  { echo "$as_me:$LINENO: result: failed" >&5
7788echo "${ECHO_T}failed" >&6; }
7789else
7790  { echo "$as_me:$LINENO: result: ok" >&5
7791echo "${ECHO_T}ok" >&6; }
7792fi
7793
7794{ echo "$as_me:$LINENO: checking for objdir" >&5
7795echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7796if test "${lt_cv_objdir+set}" = set; then
7797  echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799  rm -f .libs 2>/dev/null
7800mkdir .libs 2>/dev/null
7801if test -d .libs; then
7802  lt_cv_objdir=.libs
7803else
7804  # MS-DOS does not allow filenames that begin with a dot.
7805  lt_cv_objdir=_libs
7806fi
7807rmdir .libs 2>/dev/null
7808fi
7809{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7810echo "${ECHO_T}$lt_cv_objdir" >&6; }
7811objdir=$lt_cv_objdir
7812
7813
7814
7815
7816
7817case $host_os in
7818aix3*)
7819  # AIX sometimes has problems with the GCC collect2 program.  For some
7820  # reason, if we set the COLLECT_NAMES environment variable, the problems
7821  # vanish in a puff of smoke.
7822  if test "X${COLLECT_NAMES+set}" != Xset; then
7823    COLLECT_NAMES=
7824    export COLLECT_NAMES
7825  fi
7826  ;;
7827esac
7828
7829# Sed substitution that helps us do robust quoting.  It backslashifies
7830# metacharacters that are still active within double-quoted strings.
7831Xsed='sed -e 1s/^X//'
7832sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7833
7834# Same as above, but do not quote variable references.
7835double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7836
7837# Sed substitution to delay expansion of an escaped shell variable in a
7838# double_quote_subst'ed string.
7839delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7840
7841# Sed substitution to avoid accidental globbing in evaled expressions
7842no_glob_subst='s/\*/\\\*/g'
7843
7844# Constants:
7845rm="rm -f"
7846
7847# Global variables:
7848default_ofile=libtool
7849can_build_shared=yes
7850
7851# All known linkers require a `.a' archive for static linking (except MSVC,
7852# which needs '.lib').
7853libext=a
7854ltmain="$ac_aux_dir/ltmain.sh"
7855ofile="$default_ofile"
7856with_gnu_ld="$lt_cv_prog_gnu_ld"
7857
7858if test -n "$ac_tool_prefix"; then
7859  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7860set dummy ${ac_tool_prefix}ar; ac_word=$2
7861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7863if test "${ac_cv_prog_AR+set}" = set; then
7864  echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866  if test -n "$AR"; then
7867  ac_cv_prog_AR="$AR" # Let the user override the test.
7868else
7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870for as_dir in $PATH
7871do
7872  IFS=$as_save_IFS
7873  test -z "$as_dir" && as_dir=.
7874  for ac_exec_ext in '' $ac_executable_extensions; do
7875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876    ac_cv_prog_AR="${ac_tool_prefix}ar"
7877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878    break 2
7879  fi
7880done
7881done
7882IFS=$as_save_IFS
7883
7884fi
7885fi
7886AR=$ac_cv_prog_AR
7887if test -n "$AR"; then
7888  { echo "$as_me:$LINENO: result: $AR" >&5
7889echo "${ECHO_T}$AR" >&6; }
7890else
7891  { echo "$as_me:$LINENO: result: no" >&5
7892echo "${ECHO_T}no" >&6; }
7893fi
7894
7895
7896fi
7897if test -z "$ac_cv_prog_AR"; then
7898  ac_ct_AR=$AR
7899  # Extract the first word of "ar", so it can be a program name with args.
7900set dummy ar; ac_word=$2
7901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7903if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7904  echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906  if test -n "$ac_ct_AR"; then
7907  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7908else
7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912  IFS=$as_save_IFS
7913  test -z "$as_dir" && as_dir=.
7914  for ac_exec_ext in '' $ac_executable_extensions; do
7915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916    ac_cv_prog_ac_ct_AR="ar"
7917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918    break 2
7919  fi
7920done
7921done
7922IFS=$as_save_IFS
7923
7924fi
7925fi
7926ac_ct_AR=$ac_cv_prog_ac_ct_AR
7927if test -n "$ac_ct_AR"; then
7928  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7929echo "${ECHO_T}$ac_ct_AR" >&6; }
7930else
7931  { echo "$as_me:$LINENO: result: no" >&5
7932echo "${ECHO_T}no" >&6; }
7933fi
7934
7935  if test "x$ac_ct_AR" = x; then
7936    AR="false"
7937  else
7938    case $cross_compiling:$ac_tool_warned in
7939yes:)
7940{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7941whose name does not start with the host triplet.  If you think this
7942configuration is useful to you, please write to autoconf@gnu.org." >&5
7943echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7944whose name does not start with the host triplet.  If you think this
7945configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7946ac_tool_warned=yes ;;
7947esac
7948    AR=$ac_ct_AR
7949  fi
7950else
7951  AR="$ac_cv_prog_AR"
7952fi
7953
7954if test -n "$ac_tool_prefix"; then
7955  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7956set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7959if test "${ac_cv_prog_RANLIB+set}" = set; then
7960  echo $ECHO_N "(cached) $ECHO_C" >&6
7961else
7962  if test -n "$RANLIB"; then
7963  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7964else
7965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966for as_dir in $PATH
7967do
7968  IFS=$as_save_IFS
7969  test -z "$as_dir" && as_dir=.
7970  for ac_exec_ext in '' $ac_executable_extensions; do
7971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7972    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7974    break 2
7975  fi
7976done
7977done
7978IFS=$as_save_IFS
7979
7980fi
7981fi
7982RANLIB=$ac_cv_prog_RANLIB
7983if test -n "$RANLIB"; then
7984  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7985echo "${ECHO_T}$RANLIB" >&6; }
7986else
7987  { echo "$as_me:$LINENO: result: no" >&5
7988echo "${ECHO_T}no" >&6; }
7989fi
7990
7991
7992fi
7993if test -z "$ac_cv_prog_RANLIB"; then
7994  ac_ct_RANLIB=$RANLIB
7995  # Extract the first word of "ranlib", so it can be a program name with args.
7996set dummy ranlib; ac_word=$2
7997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7999if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8000  echo $ECHO_N "(cached) $ECHO_C" >&6
8001else
8002  if test -n "$ac_ct_RANLIB"; then
8003  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8004else
8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006for as_dir in $PATH
8007do
8008  IFS=$as_save_IFS
8009  test -z "$as_dir" && as_dir=.
8010  for ac_exec_ext in '' $ac_executable_extensions; do
8011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012    ac_cv_prog_ac_ct_RANLIB="ranlib"
8013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014    break 2
8015  fi
8016done
8017done
8018IFS=$as_save_IFS
8019
8020fi
8021fi
8022ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8023if test -n "$ac_ct_RANLIB"; then
8024  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8025echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8026else
8027  { echo "$as_me:$LINENO: result: no" >&5
8028echo "${ECHO_T}no" >&6; }
8029fi
8030
8031  if test "x$ac_ct_RANLIB" = x; then
8032    RANLIB=":"
8033  else
8034    case $cross_compiling:$ac_tool_warned in
8035yes:)
8036{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8037whose name does not start with the host triplet.  If you think this
8038configuration is useful to you, please write to autoconf@gnu.org." >&5
8039echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8040whose name does not start with the host triplet.  If you think this
8041configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8042ac_tool_warned=yes ;;
8043esac
8044    RANLIB=$ac_ct_RANLIB
8045  fi
8046else
8047  RANLIB="$ac_cv_prog_RANLIB"
8048fi
8049
8050if test -n "$ac_tool_prefix"; then
8051  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8052set dummy ${ac_tool_prefix}strip; ac_word=$2
8053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8055if test "${ac_cv_prog_STRIP+set}" = set; then
8056  echo $ECHO_N "(cached) $ECHO_C" >&6
8057else
8058  if test -n "$STRIP"; then
8059  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8060else
8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062for as_dir in $PATH
8063do
8064  IFS=$as_save_IFS
8065  test -z "$as_dir" && as_dir=.
8066  for ac_exec_ext in '' $ac_executable_extensions; do
8067  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8068    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070    break 2
8071  fi
8072done
8073done
8074IFS=$as_save_IFS
8075
8076fi
8077fi
8078STRIP=$ac_cv_prog_STRIP
8079if test -n "$STRIP"; then
8080  { echo "$as_me:$LINENO: result: $STRIP" >&5
8081echo "${ECHO_T}$STRIP" >&6; }
8082else
8083  { echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6; }
8085fi
8086
8087
8088fi
8089if test -z "$ac_cv_prog_STRIP"; then
8090  ac_ct_STRIP=$STRIP
8091  # Extract the first word of "strip", so it can be a program name with args.
8092set dummy strip; ac_word=$2
8093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8095if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8096  echo $ECHO_N "(cached) $ECHO_C" >&6
8097else
8098  if test -n "$ac_ct_STRIP"; then
8099  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8100else
8101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102for as_dir in $PATH
8103do
8104  IFS=$as_save_IFS
8105  test -z "$as_dir" && as_dir=.
8106  for ac_exec_ext in '' $ac_executable_extensions; do
8107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8108    ac_cv_prog_ac_ct_STRIP="strip"
8109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8110    break 2
8111  fi
8112done
8113done
8114IFS=$as_save_IFS
8115
8116fi
8117fi
8118ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8119if test -n "$ac_ct_STRIP"; then
8120  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8121echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8122else
8123  { echo "$as_me:$LINENO: result: no" >&5
8124echo "${ECHO_T}no" >&6; }
8125fi
8126
8127  if test "x$ac_ct_STRIP" = x; then
8128    STRIP=":"
8129  else
8130    case $cross_compiling:$ac_tool_warned in
8131yes:)
8132{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8133whose name does not start with the host triplet.  If you think this
8134configuration is useful to you, please write to autoconf@gnu.org." >&5
8135echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8136whose name does not start with the host triplet.  If you think this
8137configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8138ac_tool_warned=yes ;;
8139esac
8140    STRIP=$ac_ct_STRIP
8141  fi
8142else
8143  STRIP="$ac_cv_prog_STRIP"
8144fi
8145
8146
8147old_CC="$CC"
8148old_CFLAGS="$CFLAGS"
8149
8150# Set sane defaults for various variables
8151test -z "$AR" && AR=ar
8152test -z "$AR_FLAGS" && AR_FLAGS=cru
8153test -z "$AS" && AS=as
8154test -z "$CC" && CC=cc
8155test -z "$LTCC" && LTCC=$CC
8156test -z "$DLLTOOL" && DLLTOOL=dlltool
8157test -z "$LD" && LD=ld
8158test -z "$LN_S" && LN_S="ln -s"
8159test -z "$MAGIC_CMD" && MAGIC_CMD=file
8160test -z "$NM" && NM=nm
8161test -z "$SED" && SED=sed
8162test -z "$OBJDUMP" && OBJDUMP=objdump
8163test -z "$RANLIB" && RANLIB=:
8164test -z "$STRIP" && STRIP=:
8165test -z "$ac_objext" && ac_objext=o
8166
8167# Determine commands to create old-style static archives.
8168old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8169old_postinstall_cmds='chmod 644 $oldlib'
8170old_postuninstall_cmds=
8171
8172if test -n "$RANLIB"; then
8173  case $host_os in
8174  openbsd*)
8175    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8176    ;;
8177  *)
8178    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8179    ;;
8180  esac
8181  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8182fi
8183
8184for cc_temp in $compiler""; do
8185  case $cc_temp in
8186    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8187    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8188    \-*) ;;
8189    *) break;;
8190  esac
8191done
8192cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8193
8194
8195# Only perform the check for file, if the check method requires it
8196case $deplibs_check_method in
8197file_magic*)
8198  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8199    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8200echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8201if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8202  echo $ECHO_N "(cached) $ECHO_C" >&6
8203else
8204  case $MAGIC_CMD in
8205[\\/*] |  ?:[\\/]*)
8206  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8207  ;;
8208*)
8209  lt_save_MAGIC_CMD="$MAGIC_CMD"
8210  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8211  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8212  for ac_dir in $ac_dummy; do
8213    IFS="$lt_save_ifs"
8214    test -z "$ac_dir" && ac_dir=.
8215    if test -f $ac_dir/${ac_tool_prefix}file; then
8216      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8217      if test -n "$file_magic_test_file"; then
8218	case $deplibs_check_method in
8219	"file_magic "*)
8220	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8221	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8222	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8223	    $EGREP "$file_magic_regex" > /dev/null; then
8224	    :
8225	  else
8226	    cat <<EOF 1>&2
8227
8228*** Warning: the command libtool uses to detect shared libraries,
8229*** $file_magic_cmd, produces output that libtool cannot recognize.
8230*** The result is that libtool may fail to recognize shared libraries
8231*** as such.  This will affect the creation of libtool libraries that
8232*** depend on shared libraries, but programs linked with such libtool
8233*** libraries will work regardless of this problem.  Nevertheless, you
8234*** may want to report the problem to your system manager and/or to
8235*** bug-libtool@gnu.org
8236
8237EOF
8238	  fi ;;
8239	esac
8240      fi
8241      break
8242    fi
8243  done
8244  IFS="$lt_save_ifs"
8245  MAGIC_CMD="$lt_save_MAGIC_CMD"
8246  ;;
8247esac
8248fi
8249
8250MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8251if test -n "$MAGIC_CMD"; then
8252  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8253echo "${ECHO_T}$MAGIC_CMD" >&6; }
8254else
8255  { echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6; }
8257fi
8258
8259if test -z "$lt_cv_path_MAGIC_CMD"; then
8260  if test -n "$ac_tool_prefix"; then
8261    { echo "$as_me:$LINENO: checking for file" >&5
8262echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8263if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8264  echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266  case $MAGIC_CMD in
8267[\\/*] |  ?:[\\/]*)
8268  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8269  ;;
8270*)
8271  lt_save_MAGIC_CMD="$MAGIC_CMD"
8272  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8273  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8274  for ac_dir in $ac_dummy; do
8275    IFS="$lt_save_ifs"
8276    test -z "$ac_dir" && ac_dir=.
8277    if test -f $ac_dir/file; then
8278      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8279      if test -n "$file_magic_test_file"; then
8280	case $deplibs_check_method in
8281	"file_magic "*)
8282	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8283	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8284	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8285	    $EGREP "$file_magic_regex" > /dev/null; then
8286	    :
8287	  else
8288	    cat <<EOF 1>&2
8289
8290*** Warning: the command libtool uses to detect shared libraries,
8291*** $file_magic_cmd, produces output that libtool cannot recognize.
8292*** The result is that libtool may fail to recognize shared libraries
8293*** as such.  This will affect the creation of libtool libraries that
8294*** depend on shared libraries, but programs linked with such libtool
8295*** libraries will work regardless of this problem.  Nevertheless, you
8296*** may want to report the problem to your system manager and/or to
8297*** bug-libtool@gnu.org
8298
8299EOF
8300	  fi ;;
8301	esac
8302      fi
8303      break
8304    fi
8305  done
8306  IFS="$lt_save_ifs"
8307  MAGIC_CMD="$lt_save_MAGIC_CMD"
8308  ;;
8309esac
8310fi
8311
8312MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8313if test -n "$MAGIC_CMD"; then
8314  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8315echo "${ECHO_T}$MAGIC_CMD" >&6; }
8316else
8317  { echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6; }
8319fi
8320
8321  else
8322    MAGIC_CMD=:
8323  fi
8324fi
8325
8326  fi
8327  ;;
8328esac
8329
8330enable_dlopen=yes
8331enable_win32_dll=yes
8332
8333# Check whether --enable-libtool-lock was given.
8334if test "${enable_libtool_lock+set}" = set; then
8335  enableval=$enable_libtool_lock;
8336fi
8337
8338test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8339
8340
8341# Check whether --with-pic was given.
8342if test "${with_pic+set}" = set; then
8343  withval=$with_pic; pic_mode="$withval"
8344else
8345  pic_mode=default
8346fi
8347
8348test -z "$pic_mode" && pic_mode=default
8349
8350# Use C for the default configuration in the libtool script
8351tagname=
8352lt_save_CC="$CC"
8353ac_ext=c
8354ac_cpp='$CPP $CPPFLAGS'
8355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8357ac_compiler_gnu=$ac_cv_c_compiler_gnu
8358
8359
8360# Source file extension for C test sources.
8361ac_ext=c
8362
8363# Object file extension for compiled C test sources.
8364objext=o
8365objext=$objext
8366
8367# Code to be used in simple compile tests
8368lt_simple_compile_test_code="int some_variable = 0;\n"
8369
8370# Code to be used in simple link tests
8371lt_simple_link_test_code='int main(){return(0);}\n'
8372
8373
8374# If no C compiler was specified, use CC.
8375LTCC=${LTCC-"$CC"}
8376
8377# Allow CC to be a program name with arguments.
8378compiler=$CC
8379
8380
8381# save warnings/boilerplate of simple test code
8382ac_outfile=conftest.$ac_objext
8383printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8384eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8385_lt_compiler_boilerplate=`cat conftest.err`
8386$rm conftest*
8387
8388ac_outfile=conftest.$ac_objext
8389printf "$lt_simple_link_test_code" >conftest.$ac_ext
8390eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8391_lt_linker_boilerplate=`cat conftest.err`
8392$rm conftest*
8393
8394
8395#
8396# Check for any special shared library compilation flags.
8397#
8398lt_prog_cc_shlib=
8399if test "$GCC" = no; then
8400  case $host_os in
8401  sco3.2v5*)
8402    lt_prog_cc_shlib='-belf'
8403    ;;
8404  esac
8405fi
8406if test -n "$lt_prog_cc_shlib"; then
8407  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8408echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8409  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
8410  else
8411    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8412echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8413    lt_cv_prog_cc_can_build_shared=no
8414  fi
8415fi
8416
8417
8418#
8419# Check to make sure the static flag actually works.
8420#
8421{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8422echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8423if test "${lt_prog_compiler_static_works+set}" = set; then
8424  echo $ECHO_N "(cached) $ECHO_C" >&6
8425else
8426  lt_prog_compiler_static_works=no
8427   save_LDFLAGS="$LDFLAGS"
8428   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8429   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8430   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8431     # The linker can only warn and ignore the option if not recognized
8432     # So say no if there are warnings
8433     if test -s conftest.err; then
8434       # Append any errors to the config.log.
8435       cat conftest.err 1>&5
8436       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8437       $SED '/^$/d' conftest.err >conftest.er2
8438       if diff conftest.exp conftest.er2 >/dev/null; then
8439         lt_prog_compiler_static_works=yes
8440       fi
8441     else
8442       lt_prog_compiler_static_works=yes
8443     fi
8444   fi
8445   $rm conftest*
8446   LDFLAGS="$save_LDFLAGS"
8447
8448fi
8449{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8450echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8451
8452if test x"$lt_prog_compiler_static_works" = xyes; then
8453    :
8454else
8455    lt_prog_compiler_static=
8456fi
8457
8458
8459
8460
8461lt_prog_compiler_no_builtin_flag=
8462
8463if test "$GCC" = yes; then
8464  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8465
8466
8467{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8468echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8469if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8470  echo $ECHO_N "(cached) $ECHO_C" >&6
8471else
8472  lt_cv_prog_compiler_rtti_exceptions=no
8473  ac_outfile=conftest.$ac_objext
8474   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8475   lt_compiler_flag="-fno-rtti -fno-exceptions"
8476   # Insert the option either (1) after the last *FLAGS variable, or
8477   # (2) before a word containing "conftest.", or (3) at the end.
8478   # Note that $ac_compile itself does not contain backslashes and begins
8479   # with a dollar sign (not a hyphen), so the echo should work correctly.
8480   # The option is referenced via a variable to avoid confusing sed.
8481   lt_compile=`echo "$ac_compile" | $SED \
8482   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8483   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8484   -e 's:$: $lt_compiler_flag:'`
8485   (eval echo "\"\$as_me:8485: $lt_compile\"" >&5)
8486   (eval "$lt_compile" 2>conftest.err)
8487   ac_status=$?
8488   cat conftest.err >&5
8489   echo "$as_me:8489: \$? = $ac_status" >&5
8490   if (exit $ac_status) && test -s "$ac_outfile"; then
8491     # The compiler can only warn and ignore the option if not recognized
8492     # So say no if there are warnings other than the usual output.
8493     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8494     $SED '/^$/d' conftest.err >conftest.er2
8495     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8496       lt_cv_prog_compiler_rtti_exceptions=yes
8497     fi
8498   fi
8499   $rm conftest*
8500
8501fi
8502{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8503echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8504
8505if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8506    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8507else
8508    :
8509fi
8510
8511fi
8512
8513lt_prog_compiler_wl=
8514lt_prog_compiler_pic=
8515lt_prog_compiler_static=
8516
8517{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8518echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8519
8520  if test "$GCC" = yes; then
8521    lt_prog_compiler_wl='-Wl,'
8522    lt_prog_compiler_static='-static'
8523
8524    case $host_os in
8525      aix*)
8526      # All AIX code is PIC.
8527      if test "$host_cpu" = ia64; then
8528	# AIX 5 now supports IA64 processor
8529	lt_prog_compiler_static='-Bstatic'
8530      fi
8531      ;;
8532
8533    amigaos*)
8534      # FIXME: we need at least 68020 code to build shared libraries, but
8535      # adding the `-m68020' flag to GCC prevents building anything better,
8536      # like `-m68040'.
8537      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8538      ;;
8539
8540    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8541      # PIC is the default for these OSes.
8542      ;;
8543
8544    mingw* | pw32* | os2*)
8545      # This hack is so that the source file can tell whether it is being
8546      # built for inclusion in a dll (and should export symbols for example).
8547      lt_prog_compiler_pic='-DDLL_EXPORT'
8548      ;;
8549
8550    darwin* | rhapsody*)
8551      # PIC is the default on this platform
8552      # Common symbols not allowed in MH_DYLIB files
8553      lt_prog_compiler_pic='-fno-common'
8554      ;;
8555
8556    msdosdjgpp*)
8557      # Just because we use GCC doesn't mean we suddenly get shared libraries
8558      # on systems that don't support them.
8559      lt_prog_compiler_can_build_shared=no
8560      enable_shared=no
8561      ;;
8562
8563    sysv4*MP*)
8564      if test -d /usr/nec; then
8565	lt_prog_compiler_pic=-Kconform_pic
8566      fi
8567      ;;
8568
8569    hpux*)
8570      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8571      # not for PA HP-UX.
8572      case $host_cpu in
8573      hppa*64*|ia64*)
8574	# +Z the default
8575	;;
8576      *)
8577	lt_prog_compiler_pic='-fPIC'
8578	;;
8579      esac
8580      ;;
8581
8582    *)
8583      lt_prog_compiler_pic='-fPIC'
8584      ;;
8585    esac
8586  else
8587    # PORTME Check for flag to pass linker flags through the system compiler.
8588    case $host_os in
8589    aix*)
8590      lt_prog_compiler_wl='-Wl,'
8591      if test "$host_cpu" = ia64; then
8592	# AIX 5 now supports IA64 processor
8593	lt_prog_compiler_static='-Bstatic'
8594      else
8595	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8596      fi
8597      ;;
8598      darwin*)
8599        # PIC is the default on this platform
8600        # Common symbols not allowed in MH_DYLIB files
8601       case $cc_basename in
8602         xlc*)
8603         lt_prog_compiler_pic='-qnocommon'
8604         lt_prog_compiler_wl='-Wl,'
8605         ;;
8606       esac
8607       ;;
8608
8609    mingw* | pw32* | os2*)
8610      # This hack is so that the source file can tell whether it is being
8611      # built for inclusion in a dll (and should export symbols for example).
8612      lt_prog_compiler_pic='-DDLL_EXPORT'
8613      ;;
8614
8615    hpux9* | hpux10* | hpux11*)
8616      lt_prog_compiler_wl='-Wl,'
8617      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8618      # not for PA HP-UX.
8619      case $host_cpu in
8620      hppa*64*|ia64*)
8621	# +Z the default
8622	;;
8623      *)
8624	lt_prog_compiler_pic='+Z'
8625	;;
8626      esac
8627      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8628      lt_prog_compiler_static='${wl}-a ${wl}archive'
8629      ;;
8630
8631    irix5* | irix6* | nonstopux*)
8632      lt_prog_compiler_wl='-Wl,'
8633      # PIC (with -KPIC) is the default.
8634      lt_prog_compiler_static='-non_shared'
8635      ;;
8636
8637    newsos6)
8638      lt_prog_compiler_pic='-KPIC'
8639      lt_prog_compiler_static='-Bstatic'
8640      ;;
8641
8642    linux*)
8643      case $cc_basename in
8644      icc* | ecc*)
8645	lt_prog_compiler_wl='-Wl,'
8646	lt_prog_compiler_pic='-KPIC'
8647	lt_prog_compiler_static='-static'
8648        ;;
8649      pgcc* | pgf77* | pgf90* | pgf95*)
8650        # Portland Group compilers (*not* the Pentium gcc compiler,
8651	# which looks to be a dead project)
8652	lt_prog_compiler_wl='-Wl,'
8653	lt_prog_compiler_pic='-fpic'
8654	lt_prog_compiler_static='-Bstatic'
8655        ;;
8656      ccc*)
8657        lt_prog_compiler_wl='-Wl,'
8658        # All Alpha code is PIC.
8659        lt_prog_compiler_static='-non_shared'
8660        ;;
8661      esac
8662      ;;
8663
8664    osf3* | osf4* | osf5*)
8665      lt_prog_compiler_wl='-Wl,'
8666      # All OSF/1 code is PIC.
8667      lt_prog_compiler_static='-non_shared'
8668      ;;
8669
8670    sco3.2v5*)
8671      lt_prog_compiler_pic='-Kpic'
8672      lt_prog_compiler_static='-dn'
8673      ;;
8674
8675    solaris*)
8676      lt_prog_compiler_pic='-KPIC'
8677      lt_prog_compiler_static='-Bstatic'
8678      case $cc_basename in
8679      f77* | f90* | f95*)
8680	lt_prog_compiler_wl='-Qoption ld ';;
8681      *)
8682	lt_prog_compiler_wl='-Wl,';;
8683      esac
8684      ;;
8685
8686    sunos4*)
8687      lt_prog_compiler_wl='-Qoption ld '
8688      lt_prog_compiler_pic='-PIC'
8689      lt_prog_compiler_static='-Bstatic'
8690      ;;
8691
8692    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8693      lt_prog_compiler_wl='-Wl,'
8694      lt_prog_compiler_pic='-KPIC'
8695      lt_prog_compiler_static='-Bstatic'
8696      ;;
8697
8698    sysv4*MP*)
8699      if test -d /usr/nec ;then
8700	lt_prog_compiler_pic='-Kconform_pic'
8701	lt_prog_compiler_static='-Bstatic'
8702      fi
8703      ;;
8704
8705    unicos*)
8706      lt_prog_compiler_wl='-Wl,'
8707      lt_prog_compiler_can_build_shared=no
8708      ;;
8709
8710    uts4*)
8711      lt_prog_compiler_pic='-pic'
8712      lt_prog_compiler_static='-Bstatic'
8713      ;;
8714
8715    *)
8716      lt_prog_compiler_can_build_shared=no
8717      ;;
8718    esac
8719  fi
8720
8721{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8722echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8723
8724#
8725# Check to make sure the PIC flag actually works.
8726#
8727if test -n "$lt_prog_compiler_pic"; then
8728
8729{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8730echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8731if test "${lt_prog_compiler_pic_works+set}" = set; then
8732  echo $ECHO_N "(cached) $ECHO_C" >&6
8733else
8734  lt_prog_compiler_pic_works=no
8735  ac_outfile=conftest.$ac_objext
8736   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8737   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8738   # Insert the option either (1) after the last *FLAGS variable, or
8739   # (2) before a word containing "conftest.", or (3) at the end.
8740   # Note that $ac_compile itself does not contain backslashes and begins
8741   # with a dollar sign (not a hyphen), so the echo should work correctly.
8742   # The option is referenced via a variable to avoid confusing sed.
8743   lt_compile=`echo "$ac_compile" | $SED \
8744   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8745   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8746   -e 's:$: $lt_compiler_flag:'`
8747   (eval echo "\"\$as_me:8747: $lt_compile\"" >&5)
8748   (eval "$lt_compile" 2>conftest.err)
8749   ac_status=$?
8750   cat conftest.err >&5
8751   echo "$as_me:8751: \$? = $ac_status" >&5
8752   if (exit $ac_status) && test -s "$ac_outfile"; then
8753     # The compiler can only warn and ignore the option if not recognized
8754     # So say no if there are warnings other than the usual output.
8755     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8756     $SED '/^$/d' conftest.err >conftest.er2
8757     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8758       lt_prog_compiler_pic_works=yes
8759     fi
8760   fi
8761   $rm conftest*
8762
8763fi
8764{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8765echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8766
8767if test x"$lt_prog_compiler_pic_works" = xyes; then
8768    case $lt_prog_compiler_pic in
8769     "" | " "*) ;;
8770     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8771     esac
8772else
8773    lt_prog_compiler_pic=
8774     lt_prog_compiler_can_build_shared=no
8775fi
8776
8777fi
8778case $host_os in
8779  # For platforms which do not support PIC, -DPIC is meaningless:
8780  *djgpp*)
8781    lt_prog_compiler_pic=
8782    ;;
8783  *)
8784    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8785    ;;
8786esac
8787
8788{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8789echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8790if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8791  echo $ECHO_N "(cached) $ECHO_C" >&6
8792else
8793  lt_cv_prog_compiler_c_o=no
8794   $rm -r conftest 2>/dev/null
8795   mkdir conftest
8796   cd conftest
8797   mkdir out
8798   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8799
8800   lt_compiler_flag="-o out/conftest2.$ac_objext"
8801   # Insert the option either (1) after the last *FLAGS variable, or
8802   # (2) before a word containing "conftest.", or (3) at the end.
8803   # Note that $ac_compile itself does not contain backslashes and begins
8804   # with a dollar sign (not a hyphen), so the echo should work correctly.
8805   lt_compile=`echo "$ac_compile" | $SED \
8806   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8807   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8808   -e 's:$: $lt_compiler_flag:'`
8809   (eval echo "\"\$as_me:8809: $lt_compile\"" >&5)
8810   (eval "$lt_compile" 2>out/conftest.err)
8811   ac_status=$?
8812   cat out/conftest.err >&5
8813   echo "$as_me:8813: \$? = $ac_status" >&5
8814   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8815   then
8816     # The compiler can only warn and ignore the option if not recognized
8817     # So say no if there are warnings
8818     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8819     $SED '/^$/d' out/conftest.err >out/conftest.er2
8820     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8821       lt_cv_prog_compiler_c_o=yes
8822     fi
8823   fi
8824   chmod u+w . 2>&5
8825   $rm conftest*
8826   # SGI C++ compiler will create directory out/ii_files/ for
8827   # template instantiation
8828   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8829   $rm out/* && rmdir out
8830   cd ..
8831   rmdir conftest
8832   $rm conftest*
8833
8834fi
8835{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8836echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8837
8838
8839hard_links="nottested"
8840if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8841  # do not overwrite the value of need_locks provided by the user
8842  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8843echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8844  hard_links=yes
8845  $rm conftest*
8846  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8847  touch conftest.a
8848  ln conftest.a conftest.b 2>&5 || hard_links=no
8849  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8850  { echo "$as_me:$LINENO: result: $hard_links" >&5
8851echo "${ECHO_T}$hard_links" >&6; }
8852  if test "$hard_links" = no; then
8853    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8854echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8855    need_locks=warn
8856  fi
8857else
8858  need_locks=no
8859fi
8860
8861{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8862echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8863
8864  runpath_var=
8865  allow_undefined_flag=
8866  enable_shared_with_static_runtimes=no
8867  archive_cmds=
8868  archive_expsym_cmds=
8869  old_archive_From_new_cmds=
8870  old_archive_from_expsyms_cmds=
8871  export_dynamic_flag_spec=
8872  whole_archive_flag_spec=
8873  thread_safe_flag_spec=
8874  hardcode_libdir_flag_spec=
8875  hardcode_libdir_flag_spec_ld=
8876  hardcode_libdir_separator=
8877  hardcode_direct=no
8878  hardcode_minus_L=no
8879  hardcode_shlibpath_var=unsupported
8880  link_all_deplibs=unknown
8881  hardcode_automatic=no
8882  module_cmds=
8883  module_expsym_cmds=
8884  always_export_symbols=no
8885  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8886  # include_expsyms should be a list of space-separated symbols to be *always*
8887  # included in the symbol list
8888  include_expsyms=
8889  # exclude_expsyms can be an extended regexp of symbols to exclude
8890  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8891  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8892  # as well as any symbol that contains `d'.
8893  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8894  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8895  # platforms (ab)use it in PIC code, but their linkers get confused if
8896  # the symbol is explicitly referenced.  Since portable code cannot
8897  # rely on this symbol name, it's probably fine to never include it in
8898  # preloaded symbol tables.
8899  extract_expsyms_cmds=
8900  # Just being paranoid about ensuring that cc_basename is set.
8901  for cc_temp in $compiler""; do
8902  case $cc_temp in
8903    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8904    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8905    \-*) ;;
8906    *) break;;
8907  esac
8908done
8909cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8910
8911  case $host_os in
8912  cygwin* | mingw* | pw32*)
8913    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8914    # When not using gcc, we currently assume that we are using
8915    # Microsoft Visual C++.
8916    if test "$GCC" != yes; then
8917      with_gnu_ld=no
8918    fi
8919    ;;
8920  openbsd*)
8921    with_gnu_ld=no
8922    ;;
8923  esac
8924
8925  ld_shlibs=yes
8926  if test "$with_gnu_ld" = yes; then
8927    # If archive_cmds runs LD, not CC, wlarc should be empty
8928    wlarc='${wl}'
8929
8930    # Set some defaults for GNU ld with shared library support. These
8931    # are reset later if shared libraries are not supported. Putting them
8932    # here allows them to be overridden if necessary.
8933    runpath_var=LD_RUN_PATH
8934    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8935    export_dynamic_flag_spec='${wl}--export-dynamic'
8936    # ancient GNU ld didn't support --whole-archive et. al.
8937    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8938	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8939      else
8940  	whole_archive_flag_spec=
8941    fi
8942    supports_anon_versioning=no
8943    case `$LD -v 2>/dev/null` in
8944      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8945      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8946      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8947      *\ 2.11.*) ;; # other 2.11 versions
8948      *) supports_anon_versioning=yes ;;
8949    esac
8950
8951    # See if GNU ld supports shared libraries.
8952    case $host_os in
8953    aix3* | aix4* | aix5*)
8954      # On AIX/PPC, the GNU linker is very broken
8955      if test "$host_cpu" != ia64; then
8956	ld_shlibs=no
8957	cat <<EOF 1>&2
8958
8959*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8960*** to be unable to reliably create shared libraries on AIX.
8961*** Therefore, libtool is disabling shared libraries support.  If you
8962*** really care for shared libraries, you may want to modify your PATH
8963*** so that a non-GNU linker is found, and then restart.
8964
8965EOF
8966      fi
8967      ;;
8968
8969    amigaos*)
8970      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)'
8971      hardcode_libdir_flag_spec='-L$libdir'
8972      hardcode_minus_L=yes
8973
8974      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8975      # that the semantics of dynamic libraries on AmigaOS, at least up
8976      # to version 4, is to share data among multiple programs linked
8977      # with the same dynamic library.  Since this doesn't match the
8978      # behavior of shared libraries on other platforms, we can't use
8979      # them.
8980      ld_shlibs=no
8981      ;;
8982
8983    beos*)
8984      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8985	allow_undefined_flag=unsupported
8986	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8987	# support --undefined.  This deserves some investigation.  FIXME
8988	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989      else
8990	ld_shlibs=no
8991      fi
8992      ;;
8993
8994    cygwin* | mingw* | pw32*)
8995      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8996      # as there is no search path for DLLs.
8997      hardcode_libdir_flag_spec='-L$libdir'
8998      allow_undefined_flag=unsupported
8999      always_export_symbols=no
9000      enable_shared_with_static_runtimes=yes
9001      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9002
9003      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9004        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9005	# If the export-symbols file already is a .def file (1st line
9006	# is EXPORTS), use it as is; otherwise, prepend...
9007	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9008	  cp $export_symbols $output_objdir/$soname.def;
9009	else
9010	  echo EXPORTS > $output_objdir/$soname.def;
9011	  cat $export_symbols >> $output_objdir/$soname.def;
9012	fi~
9013	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9014      else
9015	ld_shlibs=no
9016      fi
9017      ;;
9018
9019    linux*)
9020      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9021	tmp_addflag=
9022	case $cc_basename,$host_cpu in
9023	pgcc*)				# Portland Group C compiler
9024	  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'
9025	  tmp_addflag=' $pic_flag'
9026	  ;;
9027	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9028	  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'
9029	  tmp_addflag=' $pic_flag -Mnomain' ;;
9030	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
9031	  tmp_addflag=' -i_dynamic' ;;
9032	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9033	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9034	ifc* | ifort*)			# Intel Fortran compiler
9035	  tmp_addflag=' -nofor_main' ;;
9036	esac
9037	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038
9039	if test $supports_anon_versioning = yes; then
9040	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9041  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9042  $echo "local: *; };" >> $output_objdir/$libname.ver~
9043	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9044	fi
9045      else
9046	ld_shlibs=no
9047      fi
9048      ;;
9049
9050    netbsd*)
9051      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9052	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9053	wlarc=
9054      else
9055	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9057      fi
9058      ;;
9059
9060    solaris* | sysv5*)
9061      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9062	ld_shlibs=no
9063	cat <<EOF 1>&2
9064
9065*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9066*** create shared libraries on Solaris systems.  Therefore, libtool
9067*** is disabling shared libraries support.  We urge you to upgrade GNU
9068*** binutils to release 2.9.1 or newer.  Another option is to modify
9069*** your PATH or compiler configuration so that the native linker is
9070*** used, and then restart.
9071
9072EOF
9073      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9074	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076      else
9077	ld_shlibs=no
9078      fi
9079      ;;
9080
9081    sunos4*)
9082      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9083      wlarc=
9084      hardcode_direct=yes
9085      hardcode_shlibpath_var=no
9086      ;;
9087
9088    *)
9089      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9090	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9092      else
9093	ld_shlibs=no
9094      fi
9095      ;;
9096    esac
9097
9098    if test "$ld_shlibs" = no; then
9099      runpath_var=
9100      hardcode_libdir_flag_spec=
9101      export_dynamic_flag_spec=
9102      whole_archive_flag_spec=
9103    fi
9104  else
9105    # PORTME fill in a description of your system's linker (not GNU ld)
9106    case $host_os in
9107    aix3*)
9108      allow_undefined_flag=unsupported
9109      always_export_symbols=yes
9110      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'
9111      # Note: this linker hardcodes the directories in LIBPATH if there
9112      # are no directories specified by -L.
9113      hardcode_minus_L=yes
9114      if test "$GCC" = yes && test -z "$link_static_flag"; then
9115	# Neither direct hardcoding nor static linking is supported with a
9116	# broken collect2.
9117	hardcode_direct=unsupported
9118      fi
9119      ;;
9120
9121    aix4* | aix5*)
9122      if test "$host_cpu" = ia64; then
9123	# On IA64, the linker does run time linking by default, so we don't
9124	# have to do anything special.
9125	aix_use_runtimelinking=no
9126	exp_sym_flag='-Bexport'
9127	no_entry_flag=""
9128      else
9129	# If we're using GNU nm, then we don't want the "-C" option.
9130	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9131	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9132	  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'
9133	else
9134	  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'
9135	fi
9136	aix_use_runtimelinking=no
9137
9138	# Test if we are trying to use run time linking or normal
9139	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9140	# need to do runtime linking.
9141	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9142	  for ld_flag in $LDFLAGS; do
9143  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9144  	    aix_use_runtimelinking=yes
9145  	    break
9146  	  fi
9147	  done
9148	esac
9149
9150	exp_sym_flag='-bexport'
9151	no_entry_flag='-bnoentry'
9152      fi
9153
9154      # When large executables or shared objects are built, AIX ld can
9155      # have problems creating the table of contents.  If linking a library
9156      # or program results in "error TOC overflow" add -mminimal-toc to
9157      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9158      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9159
9160      archive_cmds=''
9161      hardcode_direct=yes
9162      hardcode_libdir_separator=':'
9163      link_all_deplibs=yes
9164
9165      if test "$GCC" = yes; then
9166	case $host_os in aix4.[012]|aix4.[012].*)
9167	# We only want to do this on AIX 4.2 and lower, the check
9168	# below for broken collect2 doesn't work under 4.3+
9169	  collect2name=`${CC} -print-prog-name=collect2`
9170	  if test -f "$collect2name" && \
9171  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9172	  then
9173  	  # We have reworked collect2
9174  	  hardcode_direct=yes
9175	  else
9176  	  # We have old collect2
9177  	  hardcode_direct=unsupported
9178  	  # It fails to find uninstalled libraries when the uninstalled
9179  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9180  	  # to unsupported forces relinking
9181  	  hardcode_minus_L=yes
9182  	  hardcode_libdir_flag_spec='-L$libdir'
9183  	  hardcode_libdir_separator=
9184	  fi
9185	esac
9186	shared_flag='-shared'
9187	if test "$aix_use_runtimelinking" = yes; then
9188	  shared_flag="$shared_flag "'${wl}-G'
9189	fi
9190      else
9191	# not using gcc
9192	if test "$host_cpu" = ia64; then
9193  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9194  	# chokes on -Wl,-G. The following line is correct:
9195	  shared_flag='-G'
9196	else
9197  	if test "$aix_use_runtimelinking" = yes; then
9198	    shared_flag='${wl}-G'
9199	  else
9200	    shared_flag='${wl}-bM:SRE'
9201  	fi
9202	fi
9203      fi
9204
9205      # It seems that -bexpall does not export symbols beginning with
9206      # underscore (_), so it is better to generate a list of symbols to export.
9207      always_export_symbols=yes
9208      if test "$aix_use_runtimelinking" = yes; then
9209	# Warning - without using the other runtime loading flags (-brtl),
9210	# -berok will link without error, but may produce a broken library.
9211	allow_undefined_flag='-berok'
9212       # Determine the default libpath from the value encoded in an empty executable.
9213       cat >conftest.$ac_ext <<_ACEOF
9214/* confdefs.h.  */
9215_ACEOF
9216cat confdefs.h >>conftest.$ac_ext
9217cat >>conftest.$ac_ext <<_ACEOF
9218/* end confdefs.h.  */
9219
9220int
9221main ()
9222{
9223
9224  ;
9225  return 0;
9226}
9227_ACEOF
9228rm -f conftest.$ac_objext conftest$ac_exeext
9229if { (ac_try="$ac_link"
9230case "(($ac_try" in
9231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232  *) ac_try_echo=$ac_try;;
9233esac
9234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235  (eval "$ac_link") 2>conftest.er1
9236  ac_status=$?
9237  grep -v '^ *+' conftest.er1 >conftest.err
9238  rm -f conftest.er1
9239  cat conftest.err >&5
9240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241  (exit $ac_status); } && {
9242	 test -z "$ac_c_werror_flag" ||
9243	 test ! -s conftest.err
9244       } && test -s conftest$ac_exeext &&
9245       $as_test_x conftest$ac_exeext; then
9246
9247aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9248}'`
9249# Check for a 64-bit object if we didn't find anything.
9250if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9251}'`; fi
9252else
9253  echo "$as_me: failed program was:" >&5
9254sed 's/^/| /' conftest.$ac_ext >&5
9255
9256
9257fi
9258
9259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260      conftest$ac_exeext conftest.$ac_ext
9261if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9262
9263       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9264	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9265       else
9266	if test "$host_cpu" = ia64; then
9267	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9268	  allow_undefined_flag="-z nodefs"
9269	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9270	else
9271	 # Determine the default libpath from the value encoded in an empty executable.
9272	 cat >conftest.$ac_ext <<_ACEOF
9273/* confdefs.h.  */
9274_ACEOF
9275cat confdefs.h >>conftest.$ac_ext
9276cat >>conftest.$ac_ext <<_ACEOF
9277/* end confdefs.h.  */
9278
9279int
9280main ()
9281{
9282
9283  ;
9284  return 0;
9285}
9286_ACEOF
9287rm -f conftest.$ac_objext conftest$ac_exeext
9288if { (ac_try="$ac_link"
9289case "(($ac_try" in
9290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291  *) ac_try_echo=$ac_try;;
9292esac
9293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294  (eval "$ac_link") 2>conftest.er1
9295  ac_status=$?
9296  grep -v '^ *+' conftest.er1 >conftest.err
9297  rm -f conftest.er1
9298  cat conftest.err >&5
9299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300  (exit $ac_status); } && {
9301	 test -z "$ac_c_werror_flag" ||
9302	 test ! -s conftest.err
9303       } && test -s conftest$ac_exeext &&
9304       $as_test_x conftest$ac_exeext; then
9305
9306aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9307}'`
9308# Check for a 64-bit object if we didn't find anything.
9309if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9310}'`; fi
9311else
9312  echo "$as_me: failed program was:" >&5
9313sed 's/^/| /' conftest.$ac_ext >&5
9314
9315
9316fi
9317
9318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9319      conftest$ac_exeext conftest.$ac_ext
9320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9321
9322	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9323	  # Warning - without using the other run time loading flags,
9324	  # -berok will link without error, but may produce a broken library.
9325	  no_undefined_flag=' ${wl}-bernotok'
9326	  allow_undefined_flag=' ${wl}-berok'
9327	  # -bexpall does not export symbols beginning with underscore (_)
9328	  always_export_symbols=yes
9329	  # Exported symbols can be pulled into shared objects from archives
9330	  whole_archive_flag_spec=' '
9331	  archive_cmds_need_lc=yes
9332	  # This is similar to how AIX traditionally builds its shared libraries.
9333	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9334	fi
9335      fi
9336      ;;
9337
9338    amigaos*)
9339      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)'
9340      hardcode_libdir_flag_spec='-L$libdir'
9341      hardcode_minus_L=yes
9342      # see comment about different semantics on the GNU ld section
9343      ld_shlibs=no
9344      ;;
9345
9346    bsdi[45]*)
9347      export_dynamic_flag_spec=-rdynamic
9348      ;;
9349
9350    cygwin* | mingw* | pw32*)
9351      # When not using gcc, we currently assume that we are using
9352      # Microsoft Visual C++.
9353      # hardcode_libdir_flag_spec is actually meaningless, as there is
9354      # no search path for DLLs.
9355      hardcode_libdir_flag_spec=' '
9356      allow_undefined_flag=unsupported
9357      # Tell ltmain to make .lib files, not .a files.
9358      libext=lib
9359      # Tell ltmain to make .dll files, not .so files.
9360      shrext_cmds=".dll"
9361      # FIXME: Setting linknames here is a bad hack.
9362      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9363      # The linker will automatically build a .lib file if we build a DLL.
9364      old_archive_From_new_cmds='true'
9365      # FIXME: Should let the user specify the lib program.
9366      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9367      fix_srcfile_path='`cygpath -w "$srcfile"`'
9368      enable_shared_with_static_runtimes=yes
9369      ;;
9370
9371    darwin* | rhapsody*)
9372      case $host_os in
9373        rhapsody* | darwin1.[012])
9374         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9375         ;;
9376       *) # Darwin 1.3 on
9377         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9378           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9379         else
9380           case ${MACOSX_DEPLOYMENT_TARGET} in
9381             10.[012])
9382               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9383               ;;
9384             10.*)
9385               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9386               ;;
9387           esac
9388         fi
9389         ;;
9390      esac
9391      archive_cmds_need_lc=no
9392      hardcode_direct=no
9393      hardcode_automatic=yes
9394      hardcode_shlibpath_var=unsupported
9395      whole_archive_flag_spec=''
9396      link_all_deplibs=yes
9397    if test "$GCC" = yes ; then
9398    	output_verbose_link_cmd='echo'
9399        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9400      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9401      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9402      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9403      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9404    else
9405      case $cc_basename in
9406        xlc*)
9407         output_verbose_link_cmd='echo'
9408         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9409         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9410          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9411         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9412          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9413          ;;
9414       *)
9415         ld_shlibs=no
9416          ;;
9417      esac
9418    fi
9419      ;;
9420
9421    dgux*)
9422      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423      hardcode_libdir_flag_spec='-L$libdir'
9424      hardcode_shlibpath_var=no
9425      ;;
9426
9427    freebsd1*)
9428      ld_shlibs=no
9429      ;;
9430
9431    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9432    # support.  Future versions do this automatically, but an explicit c++rt0.o
9433    # does not break anything, and helps significantly (at the cost of a little
9434    # extra space).
9435    freebsd2.2*)
9436      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9437      hardcode_libdir_flag_spec='-R$libdir'
9438      hardcode_direct=yes
9439      hardcode_shlibpath_var=no
9440      ;;
9441
9442    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9443    freebsd2*)
9444      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9445      hardcode_direct=yes
9446      hardcode_minus_L=yes
9447      hardcode_shlibpath_var=no
9448      ;;
9449
9450    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9451    freebsd* | kfreebsd*-gnu | dragonfly*)
9452      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9453      hardcode_libdir_flag_spec='-R$libdir'
9454      hardcode_direct=yes
9455      hardcode_shlibpath_var=no
9456      ;;
9457
9458    hpux9*)
9459      if test "$GCC" = yes; then
9460	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'
9461      else
9462	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'
9463      fi
9464      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9465      hardcode_libdir_separator=:
9466      hardcode_direct=yes
9467
9468      # hardcode_minus_L: Not really in the search PATH,
9469      # but as the default location of the library.
9470      hardcode_minus_L=yes
9471      export_dynamic_flag_spec='${wl}-E'
9472      ;;
9473
9474    hpux10* | hpux11*)
9475      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9476	case $host_cpu in
9477	hppa*64*|ia64*)
9478	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9479	  ;;
9480	*)
9481	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9482	  ;;
9483	esac
9484      else
9485	case $host_cpu in
9486	hppa*64*|ia64*)
9487	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9488	  ;;
9489	*)
9490	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9491	  ;;
9492	esac
9493      fi
9494      if test "$with_gnu_ld" = no; then
9495	case $host_cpu in
9496	hppa*64*)
9497	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9498	  hardcode_libdir_flag_spec_ld='+b $libdir'
9499	  hardcode_libdir_separator=:
9500	  hardcode_direct=no
9501	  hardcode_shlibpath_var=no
9502	  ;;
9503	ia64*)
9504	  hardcode_libdir_flag_spec='-L$libdir'
9505	  hardcode_direct=no
9506	  hardcode_shlibpath_var=no
9507
9508	  # hardcode_minus_L: Not really in the search PATH,
9509	  # but as the default location of the library.
9510	  hardcode_minus_L=yes
9511	  ;;
9512	*)
9513	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514	  hardcode_libdir_separator=:
9515	  hardcode_direct=yes
9516	  export_dynamic_flag_spec='${wl}-E'
9517
9518	  # hardcode_minus_L: Not really in the search PATH,
9519	  # but as the default location of the library.
9520	  hardcode_minus_L=yes
9521	  ;;
9522	esac
9523      fi
9524      ;;
9525
9526    irix5* | irix6* | nonstopux*)
9527      if test "$GCC" = yes; then
9528	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9529      else
9530	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9531	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9532      fi
9533      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9534      hardcode_libdir_separator=:
9535      link_all_deplibs=yes
9536      ;;
9537
9538    netbsd*)
9539      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9540	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9541      else
9542	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9543      fi
9544      hardcode_libdir_flag_spec='-R$libdir'
9545      hardcode_direct=yes
9546      hardcode_shlibpath_var=no
9547      ;;
9548
9549    newsos6)
9550      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551      hardcode_direct=yes
9552      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9553      hardcode_libdir_separator=:
9554      hardcode_shlibpath_var=no
9555      ;;
9556
9557    openbsd*)
9558      hardcode_direct=yes
9559      hardcode_shlibpath_var=no
9560      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9561	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9562	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9563	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9564	export_dynamic_flag_spec='${wl}-E'
9565      else
9566       case $host_os in
9567	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9568	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9569	   hardcode_libdir_flag_spec='-R$libdir'
9570	   ;;
9571	 *)
9572	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9573	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9574	   ;;
9575       esac
9576      fi
9577      ;;
9578
9579    os2*)
9580      hardcode_libdir_flag_spec='-L$libdir'
9581      hardcode_minus_L=yes
9582      allow_undefined_flag=unsupported
9583      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'
9584      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9585      ;;
9586
9587    osf3*)
9588      if test "$GCC" = yes; then
9589	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9590	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9591      else
9592	allow_undefined_flag=' -expect_unresolved \*'
9593	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9594      fi
9595      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9596      hardcode_libdir_separator=:
9597      ;;
9598
9599    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9600      if test "$GCC" = yes; then
9601	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9602	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9603	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604      else
9605	allow_undefined_flag=' -expect_unresolved \*'
9606	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9607	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9608	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9609
9610	# Both c and cxx compiler support -rpath directly
9611	hardcode_libdir_flag_spec='-rpath $libdir'
9612      fi
9613      hardcode_libdir_separator=:
9614      ;;
9615
9616    sco3.2v5*)
9617      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618      hardcode_shlibpath_var=no
9619      export_dynamic_flag_spec='${wl}-Bexport'
9620      runpath_var=LD_RUN_PATH
9621      hardcode_runpath_var=yes
9622      ;;
9623
9624    solaris*)
9625      no_undefined_flag=' -z text'
9626      if test "$GCC" = yes; then
9627	wlarc='${wl}'
9628	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9629	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9630	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9631      else
9632	wlarc=''
9633	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9635  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9636      fi
9637      hardcode_libdir_flag_spec='-R$libdir'
9638      hardcode_shlibpath_var=no
9639      case $host_os in
9640      solaris2.[0-5] | solaris2.[0-5].*) ;;
9641      *)
9642 	# The compiler driver will combine linker options so we
9643 	# cannot just pass the convience library names through
9644 	# without $wl, iff we do not link with $LD.
9645 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9646 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9647 	case $wlarc in
9648 	'')
9649 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9650 	*)
9651 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9652 	esac ;;
9653      esac
9654      link_all_deplibs=yes
9655      ;;
9656
9657    sunos4*)
9658      if test "x$host_vendor" = xsequent; then
9659	# Use $CC to link under sequent, because it throws in some extra .o
9660	# files that make .init and .fini sections work.
9661	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9662      else
9663	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9664      fi
9665      hardcode_libdir_flag_spec='-L$libdir'
9666      hardcode_direct=yes
9667      hardcode_minus_L=yes
9668      hardcode_shlibpath_var=no
9669      ;;
9670
9671    sysv4)
9672      case $host_vendor in
9673	sni)
9674	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675	  hardcode_direct=yes # is this really true???
9676	;;
9677	siemens)
9678	  ## LD is ld it makes a PLAMLIB
9679	  ## CC just makes a GrossModule.
9680	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9681	  reload_cmds='$CC -r -o $output$reload_objs'
9682	  hardcode_direct=no
9683        ;;
9684	motorola)
9685	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9687	;;
9688      esac
9689      runpath_var='LD_RUN_PATH'
9690      hardcode_shlibpath_var=no
9691      ;;
9692
9693    sysv4.3*)
9694      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695      hardcode_shlibpath_var=no
9696      export_dynamic_flag_spec='-Bexport'
9697      ;;
9698
9699    sysv4*MP*)
9700      if test -d /usr/nec; then
9701	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702	hardcode_shlibpath_var=no
9703	runpath_var=LD_RUN_PATH
9704	hardcode_runpath_var=yes
9705	ld_shlibs=yes
9706      fi
9707      ;;
9708
9709    sysv4.2uw2*)
9710      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9711      hardcode_direct=yes
9712      hardcode_minus_L=no
9713      hardcode_shlibpath_var=no
9714      hardcode_runpath_var=yes
9715      runpath_var=LD_RUN_PATH
9716      ;;
9717
9718   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9719      no_undefined_flag='${wl}-z ${wl}text'
9720      if test "$GCC" = yes; then
9721	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9722      else
9723	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9724      fi
9725      runpath_var='LD_RUN_PATH'
9726      hardcode_shlibpath_var=no
9727      ;;
9728
9729    sysv5*)
9730      no_undefined_flag=' -z text'
9731      # $CC -shared without GNU ld will not create a library from C++
9732      # object files and a static libstdc++, better avoid it by now
9733      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9735  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9736      hardcode_libdir_flag_spec=
9737      hardcode_shlibpath_var=no
9738      runpath_var='LD_RUN_PATH'
9739      ;;
9740
9741    uts4*)
9742      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743      hardcode_libdir_flag_spec='-L$libdir'
9744      hardcode_shlibpath_var=no
9745      ;;
9746
9747    *)
9748      ld_shlibs=no
9749      ;;
9750    esac
9751  fi
9752
9753{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9754echo "${ECHO_T}$ld_shlibs" >&6; }
9755test "$ld_shlibs" = no && can_build_shared=no
9756
9757variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9758if test "$GCC" = yes; then
9759  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9760fi
9761
9762#
9763# Do we need to explicitly link libc?
9764#
9765case "x$archive_cmds_need_lc" in
9766x|xyes)
9767  # Assume -lc should be added
9768  archive_cmds_need_lc=yes
9769
9770  if test "$enable_shared" = yes && test "$GCC" = yes; then
9771    case $archive_cmds in
9772    *'~'*)
9773      # FIXME: we may have to deal with multi-command sequences.
9774      ;;
9775    '$CC '*)
9776      # Test whether the compiler implicitly links with -lc since on some
9777      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9778      # to ld, don't add -lc before -lgcc.
9779      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9780echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9781      $rm conftest*
9782      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9783
9784      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9785  (eval $ac_compile) 2>&5
9786  ac_status=$?
9787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788  (exit $ac_status); } 2>conftest.err; then
9789        soname=conftest
9790        lib=conftest
9791        libobjs=conftest.$ac_objext
9792        deplibs=
9793        wl=$lt_prog_compiler_wl
9794        compiler_flags=-v
9795        linker_flags=-v
9796        verstring=
9797        output_objdir=.
9798        libname=conftest
9799        lt_save_allow_undefined_flag=$allow_undefined_flag
9800        allow_undefined_flag=
9801        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9802  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9803  ac_status=$?
9804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805  (exit $ac_status); }
9806        then
9807	  archive_cmds_need_lc=no
9808        else
9809	  archive_cmds_need_lc=yes
9810        fi
9811        allow_undefined_flag=$lt_save_allow_undefined_flag
9812      else
9813        cat conftest.err 1>&5
9814      fi
9815      $rm conftest*
9816      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9817echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9818      ;;
9819    esac
9820  fi
9821  ;;
9822esac
9823
9824{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9825echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9826library_names_spec=
9827libname_spec='lib$name'
9828soname_spec=
9829shrext_cmds=".so"
9830postinstall_cmds=
9831postuninstall_cmds=
9832finish_cmds=
9833finish_eval=
9834shlibpath_var=
9835shlibpath_overrides_runpath=unknown
9836version_type=none
9837dynamic_linker="$host_os ld.so"
9838sys_lib_dlsearch_path_spec="/lib /usr/lib"
9839if test "$GCC" = yes; then
9840  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9841  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9842    # if the path contains ";" then we assume it to be the separator
9843    # otherwise default to the standard path separator (i.e. ":") - it is
9844    # assumed that no part of a normal pathname contains ";" but that should
9845    # okay in the real world where ";" in dirpaths is itself problematic.
9846    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9847  else
9848    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9849  fi
9850else
9851  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9852fi
9853need_lib_prefix=unknown
9854hardcode_into_libs=no
9855
9856# when you set need_version to no, make sure it does not cause -set_version
9857# flags to be left without arguments
9858need_version=unknown
9859
9860case $host_os in
9861aix3*)
9862  version_type=linux
9863  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9864  shlibpath_var=LIBPATH
9865
9866  # AIX 3 has no versioning support, so we append a major version to the name.
9867  soname_spec='${libname}${release}${shared_ext}$major'
9868  ;;
9869
9870aix4* | aix5*)
9871  version_type=linux
9872  need_lib_prefix=no
9873  need_version=no
9874  hardcode_into_libs=yes
9875  if test "$host_cpu" = ia64; then
9876    # AIX 5 supports IA64
9877    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9878    shlibpath_var=LD_LIBRARY_PATH
9879  else
9880    # With GCC up to 2.95.x, collect2 would create an import file
9881    # for dependence libraries.  The import file would start with
9882    # the line `#! .'.  This would cause the generated library to
9883    # depend on `.', always an invalid library.  This was fixed in
9884    # development snapshots of GCC prior to 3.0.
9885    case $host_os in
9886      aix4 | aix4.[01] | aix4.[01].*)
9887      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9888	   echo ' yes '
9889	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9890	:
9891      else
9892	can_build_shared=no
9893      fi
9894      ;;
9895    esac
9896    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9897    # soname into executable. Probably we can add versioning support to
9898    # collect2, so additional links can be useful in future.
9899    if test "$aix_use_runtimelinking" = yes; then
9900      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9901      # instead of lib<name>.a to let people know that these are not
9902      # typical AIX shared libraries.
9903      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904    else
9905      # We preserve .a as extension for shared libraries through AIX4.2
9906      # and later when we are not doing run time linking.
9907      library_names_spec='${libname}${release}.a $libname.a'
9908      soname_spec='${libname}${release}${shared_ext}$major'
9909    fi
9910    shlibpath_var=LIBPATH
9911  fi
9912  ;;
9913
9914amigaos*)
9915  library_names_spec='$libname.ixlibrary $libname.a'
9916  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9917  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'
9918  ;;
9919
9920beos*)
9921  library_names_spec='${libname}${shared_ext}'
9922  dynamic_linker="$host_os ld.so"
9923  shlibpath_var=LIBRARY_PATH
9924  ;;
9925
9926bsdi[45]*)
9927  version_type=linux
9928  need_version=no
9929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930  soname_spec='${libname}${release}${shared_ext}$major'
9931  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9932  shlibpath_var=LD_LIBRARY_PATH
9933  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9934  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9935  # the default ld.so.conf also contains /usr/contrib/lib and
9936  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9937  # libtool to hard-code these into programs
9938  ;;
9939
9940cygwin* | mingw* | pw32*)
9941  version_type=windows
9942  shrext_cmds=".dll"
9943  need_version=no
9944  need_lib_prefix=no
9945
9946  case $GCC,$host_os in
9947  yes,cygwin* | yes,mingw* | yes,pw32*)
9948    library_names_spec='$libname.dll.a'
9949    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9950    postinstall_cmds='base_file=`basename \${file}`~
9951      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9952      dldir=$destdir/`dirname \$dlpath`~
9953      test -d \$dldir || mkdir -p \$dldir~
9954      $install_prog $dir/$dlname \$dldir/$dlname~
9955      chmod a+x \$dldir/$dlname'
9956    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9957      dlpath=$dir/\$dldll~
9958       $rm \$dlpath'
9959    shlibpath_overrides_runpath=yes
9960
9961    case $host_os in
9962    cygwin*)
9963      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9964      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9965      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9966      ;;
9967    mingw*)
9968      # MinGW DLLs use traditional 'lib' prefix
9969      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9970      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9971      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9972        # It is most probably a Windows format PATH printed by
9973        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9974        # path with ; separators, and with drive letters. We can handle the
9975        # drive letters (cygwin fileutils understands them), so leave them,
9976        # especially as we might pass files found there to a mingw objdump,
9977        # which wouldn't understand a cygwinified path. Ahh.
9978        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9979      else
9980        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9981      fi
9982      ;;
9983    pw32*)
9984      # pw32 DLLs use 'pw' prefix rather than 'lib'
9985      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9986      ;;
9987    esac
9988    ;;
9989
9990  *)
9991    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9992    ;;
9993  esac
9994  dynamic_linker='Win32 ld.exe'
9995  # FIXME: first we should search . and the directory the executable is in
9996  shlibpath_var=PATH
9997  ;;
9998
9999darwin* | rhapsody*)
10000  dynamic_linker="$host_os dyld"
10001  version_type=darwin
10002  need_lib_prefix=no
10003  need_version=no
10004  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10005  soname_spec='${libname}${release}${major}$shared_ext'
10006  shlibpath_overrides_runpath=yes
10007  shlibpath_var=DYLD_LIBRARY_PATH
10008  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10009  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10010  if test "$GCC" = yes; then
10011    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10012  else
10013    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10014  fi
10015  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10016  ;;
10017
10018dgux*)
10019  version_type=linux
10020  need_lib_prefix=no
10021  need_version=no
10022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10023  soname_spec='${libname}${release}${shared_ext}$major'
10024  shlibpath_var=LD_LIBRARY_PATH
10025  ;;
10026
10027freebsd1*)
10028  dynamic_linker=no
10029  ;;
10030
10031kfreebsd*-gnu)
10032  version_type=linux
10033  need_lib_prefix=no
10034  need_version=no
10035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036  soname_spec='${libname}${release}${shared_ext}$major'
10037  shlibpath_var=LD_LIBRARY_PATH
10038  shlibpath_overrides_runpath=no
10039  hardcode_into_libs=yes
10040  dynamic_linker='GNU ld.so'
10041  ;;
10042
10043freebsd* | dragonfly*)
10044  # DragonFly does not have aout.  When/if they implement a new
10045  # versioning mechanism, adjust this.
10046  if test -x /usr/bin/objformat; then
10047    objformat=`/usr/bin/objformat`
10048  else
10049    case $host_os in
10050    freebsd[123]*) objformat=aout ;;
10051    *) objformat=elf ;;
10052    esac
10053  fi
10054  version_type=freebsd-$objformat
10055  case $version_type in
10056    freebsd-elf*)
10057      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10058      need_version=no
10059      need_lib_prefix=no
10060      ;;
10061    freebsd-*)
10062      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10063      need_version=yes
10064      ;;
10065  esac
10066  shlibpath_var=LD_LIBRARY_PATH
10067  case $host_os in
10068  freebsd2*)
10069    shlibpath_overrides_runpath=yes
10070    ;;
10071  freebsd3.[01]* | freebsdelf3.[01]*)
10072    shlibpath_overrides_runpath=yes
10073    hardcode_into_libs=yes
10074    ;;
10075  *) # from 3.2 on
10076    shlibpath_overrides_runpath=no
10077    hardcode_into_libs=yes
10078    ;;
10079  esac
10080  ;;
10081
10082gnu*)
10083  version_type=linux
10084  need_lib_prefix=no
10085  need_version=no
10086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10087  soname_spec='${libname}${release}${shared_ext}$major'
10088  shlibpath_var=LD_LIBRARY_PATH
10089  hardcode_into_libs=yes
10090  ;;
10091
10092hpux9* | hpux10* | hpux11*)
10093  # Give a soname corresponding to the major version so that dld.sl refuses to
10094  # link against other versions.
10095  version_type=sunos
10096  need_lib_prefix=no
10097  need_version=no
10098  case $host_cpu in
10099  ia64*)
10100    shrext_cmds='.so'
10101    hardcode_into_libs=yes
10102    dynamic_linker="$host_os dld.so"
10103    shlibpath_var=LD_LIBRARY_PATH
10104    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10105    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106    soname_spec='${libname}${release}${shared_ext}$major'
10107    if test "X$HPUX_IA64_MODE" = X32; then
10108      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10109    else
10110      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10111    fi
10112    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10113    ;;
10114   hppa*64*)
10115     shrext_cmds='.sl'
10116     hardcode_into_libs=yes
10117     dynamic_linker="$host_os dld.sl"
10118     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10119     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121     soname_spec='${libname}${release}${shared_ext}$major'
10122     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10123     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10124     ;;
10125   *)
10126    shrext_cmds='.sl'
10127    dynamic_linker="$host_os dld.sl"
10128    shlibpath_var=SHLIB_PATH
10129    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10130    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131    soname_spec='${libname}${release}${shared_ext}$major'
10132    ;;
10133  esac
10134  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10135  postinstall_cmds='chmod 555 $lib'
10136  ;;
10137
10138irix5* | irix6* | nonstopux*)
10139  case $host_os in
10140    nonstopux*) version_type=nonstopux ;;
10141    *)
10142	if test "$lt_cv_prog_gnu_ld" = yes; then
10143		version_type=linux
10144	else
10145		version_type=irix
10146	fi ;;
10147  esac
10148  need_lib_prefix=no
10149  need_version=no
10150  soname_spec='${libname}${release}${shared_ext}$major'
10151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10152  case $host_os in
10153  irix5* | nonstopux*)
10154    libsuff= shlibsuff=
10155    ;;
10156  *)
10157    case $LD in # libtool.m4 will add one of these switches to LD
10158    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10159      libsuff= shlibsuff= libmagic=32-bit;;
10160    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10161      libsuff=32 shlibsuff=N32 libmagic=N32;;
10162    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10163      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10164    *) libsuff= shlibsuff= libmagic=never-match;;
10165    esac
10166    ;;
10167  esac
10168  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10169  shlibpath_overrides_runpath=no
10170  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10171  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10172  hardcode_into_libs=yes
10173  ;;
10174
10175# No shared lib support for Linux oldld, aout, or coff.
10176linux*oldld* | linux*aout* | linux*coff*)
10177  dynamic_linker=no
10178  ;;
10179
10180# This must be Linux ELF.
10181linux*)
10182  version_type=linux
10183  need_lib_prefix=no
10184  need_version=no
10185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186  soname_spec='${libname}${release}${shared_ext}$major'
10187  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10188  shlibpath_var=LD_LIBRARY_PATH
10189  shlibpath_overrides_runpath=no
10190  # This implies no fast_install, which is unacceptable.
10191  # Some rework will be needed to allow for fast_install
10192  # before this can be enabled.
10193  hardcode_into_libs=yes
10194
10195  # Append ld.so.conf contents to the search path
10196  if test -f /etc/ld.so.conf; then
10197    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10198    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10199  fi
10200
10201  # We used to test for /lib/ld.so.1 and disable shared libraries on
10202  # powerpc, because MkLinux only supported shared libraries with the
10203  # GNU dynamic linker.  Since this was broken with cross compilers,
10204  # most powerpc-linux boxes support dynamic linking these days and
10205  # people can always --disable-shared, the test was removed, and we
10206  # assume the GNU/Linux dynamic linker is in use.
10207  dynamic_linker='GNU/Linux ld.so'
10208  ;;
10209
10210knetbsd*-gnu)
10211  version_type=linux
10212  need_lib_prefix=no
10213  need_version=no
10214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10215  soname_spec='${libname}${release}${shared_ext}$major'
10216  shlibpath_var=LD_LIBRARY_PATH
10217  shlibpath_overrides_runpath=no
10218  hardcode_into_libs=yes
10219  dynamic_linker='GNU ld.so'
10220  ;;
10221
10222netbsd*)
10223  version_type=sunos
10224  need_lib_prefix=no
10225  need_version=no
10226  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10227    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10228    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10229    dynamic_linker='NetBSD (a.out) ld.so'
10230  else
10231    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10232    soname_spec='${libname}${release}${shared_ext}$major'
10233    dynamic_linker='NetBSD ld.elf_so'
10234  fi
10235  shlibpath_var=LD_LIBRARY_PATH
10236  shlibpath_overrides_runpath=yes
10237  hardcode_into_libs=yes
10238  ;;
10239
10240newsos6)
10241  version_type=linux
10242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243  shlibpath_var=LD_LIBRARY_PATH
10244  shlibpath_overrides_runpath=yes
10245  ;;
10246
10247nto-qnx*)
10248  version_type=linux
10249  need_lib_prefix=no
10250  need_version=no
10251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252  soname_spec='${libname}${release}${shared_ext}$major'
10253  shlibpath_var=LD_LIBRARY_PATH
10254  shlibpath_overrides_runpath=yes
10255  ;;
10256
10257openbsd*)
10258  version_type=sunos
10259  need_lib_prefix=no
10260  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10261  case $host_os in
10262    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10263    *)                         need_version=no  ;;
10264  esac
10265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10267  shlibpath_var=LD_LIBRARY_PATH
10268  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10269    case $host_os in
10270      openbsd2.[89] | openbsd2.[89].*)
10271	shlibpath_overrides_runpath=no
10272	;;
10273      *)
10274	shlibpath_overrides_runpath=yes
10275	;;
10276      esac
10277  else
10278    shlibpath_overrides_runpath=yes
10279  fi
10280  ;;
10281
10282os2*)
10283  libname_spec='$name'
10284  shrext_cmds=".dll"
10285  need_lib_prefix=no
10286  library_names_spec='$libname${shared_ext} $libname.a'
10287  dynamic_linker='OS/2 ld.exe'
10288  shlibpath_var=LIBPATH
10289  ;;
10290
10291osf3* | osf4* | osf5*)
10292  version_type=osf
10293  need_lib_prefix=no
10294  need_version=no
10295  soname_spec='${libname}${release}${shared_ext}$major'
10296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297  shlibpath_var=LD_LIBRARY_PATH
10298  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10299  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10300  ;;
10301
10302sco3.2v5*)
10303  version_type=osf
10304  soname_spec='${libname}${release}${shared_ext}$major'
10305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306  shlibpath_var=LD_LIBRARY_PATH
10307  ;;
10308
10309solaris*)
10310  version_type=linux
10311  need_lib_prefix=no
10312  need_version=no
10313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314  soname_spec='${libname}${release}${shared_ext}$major'
10315  shlibpath_var=LD_LIBRARY_PATH
10316  shlibpath_overrides_runpath=yes
10317  hardcode_into_libs=yes
10318  # ldd complains unless libraries are executable
10319  postinstall_cmds='chmod +x $lib'
10320  ;;
10321
10322sunos4*)
10323  version_type=sunos
10324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10326  shlibpath_var=LD_LIBRARY_PATH
10327  shlibpath_overrides_runpath=yes
10328  if test "$with_gnu_ld" = yes; then
10329    need_lib_prefix=no
10330  fi
10331  need_version=yes
10332  ;;
10333
10334sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10335  version_type=linux
10336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337  soname_spec='${libname}${release}${shared_ext}$major'
10338  shlibpath_var=LD_LIBRARY_PATH
10339  case $host_vendor in
10340    sni)
10341      shlibpath_overrides_runpath=no
10342      need_lib_prefix=no
10343      export_dynamic_flag_spec='${wl}-Blargedynsym'
10344      runpath_var=LD_RUN_PATH
10345      ;;
10346    siemens)
10347      need_lib_prefix=no
10348      ;;
10349    motorola)
10350      need_lib_prefix=no
10351      need_version=no
10352      shlibpath_overrides_runpath=no
10353      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10354      ;;
10355  esac
10356  ;;
10357
10358sysv4*MP*)
10359  if test -d /usr/nec ;then
10360    version_type=linux
10361    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10362    soname_spec='$libname${shared_ext}.$major'
10363    shlibpath_var=LD_LIBRARY_PATH
10364  fi
10365  ;;
10366
10367uts4*)
10368  version_type=linux
10369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370  soname_spec='${libname}${release}${shared_ext}$major'
10371  shlibpath_var=LD_LIBRARY_PATH
10372  ;;
10373
10374*)
10375  dynamic_linker=no
10376  ;;
10377esac
10378{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10379echo "${ECHO_T}$dynamic_linker" >&6; }
10380test "$dynamic_linker" = no && can_build_shared=no
10381
10382{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10383echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10384hardcode_action=
10385if test -n "$hardcode_libdir_flag_spec" || \
10386   test -n "$runpath_var" || \
10387   test "X$hardcode_automatic" = "Xyes" ; then
10388
10389  # We can hardcode non-existant directories.
10390  if test "$hardcode_direct" != no &&
10391     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10392     # have to relink, otherwise we might link with an installed library
10393     # when we should be linking with a yet-to-be-installed one
10394     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10395     test "$hardcode_minus_L" != no; then
10396    # Linking always hardcodes the temporary library directory.
10397    hardcode_action=relink
10398  else
10399    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10400    hardcode_action=immediate
10401  fi
10402else
10403  # We cannot hardcode anything, or else we can only hardcode existing
10404  # directories.
10405  hardcode_action=unsupported
10406fi
10407{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10408echo "${ECHO_T}$hardcode_action" >&6; }
10409
10410if test "$hardcode_action" = relink; then
10411  # Fast installation is not supported
10412  enable_fast_install=no
10413elif test "$shlibpath_overrides_runpath" = yes ||
10414     test "$enable_shared" = no; then
10415  # Fast installation is not necessary
10416  enable_fast_install=needless
10417fi
10418
10419striplib=
10420old_striplib=
10421{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10422echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10423if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10424  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10425  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10426  { echo "$as_me:$LINENO: result: yes" >&5
10427echo "${ECHO_T}yes" >&6; }
10428else
10429# FIXME - insert some real tests, host_os isn't really good enough
10430  case $host_os in
10431   darwin*)
10432       if test -n "$STRIP" ; then
10433         striplib="$STRIP -x"
10434         { echo "$as_me:$LINENO: result: yes" >&5
10435echo "${ECHO_T}yes" >&6; }
10436       else
10437  { echo "$as_me:$LINENO: result: no" >&5
10438echo "${ECHO_T}no" >&6; }
10439fi
10440       ;;
10441   *)
10442  { echo "$as_me:$LINENO: result: no" >&5
10443echo "${ECHO_T}no" >&6; }
10444    ;;
10445  esac
10446fi
10447
10448if test "x$enable_dlopen" != xyes; then
10449  enable_dlopen=unknown
10450  enable_dlopen_self=unknown
10451  enable_dlopen_self_static=unknown
10452else
10453  lt_cv_dlopen=no
10454  lt_cv_dlopen_libs=
10455
10456  case $host_os in
10457  beos*)
10458    lt_cv_dlopen="load_add_on"
10459    lt_cv_dlopen_libs=
10460    lt_cv_dlopen_self=yes
10461    ;;
10462
10463  mingw* | pw32*)
10464    lt_cv_dlopen="LoadLibrary"
10465    lt_cv_dlopen_libs=
10466   ;;
10467
10468  cygwin*)
10469    lt_cv_dlopen="dlopen"
10470    lt_cv_dlopen_libs=
10471   ;;
10472
10473  darwin*)
10474  # if libdl is installed we need to link against it
10475    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10476echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10477if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10478  echo $ECHO_N "(cached) $ECHO_C" >&6
10479else
10480  ac_check_lib_save_LIBS=$LIBS
10481LIBS="-ldl  $LIBS"
10482cat >conftest.$ac_ext <<_ACEOF
10483/* confdefs.h.  */
10484_ACEOF
10485cat confdefs.h >>conftest.$ac_ext
10486cat >>conftest.$ac_ext <<_ACEOF
10487/* end confdefs.h.  */
10488
10489/* Override any GCC internal prototype to avoid an error.
10490   Use char because int might match the return type of a GCC
10491   builtin and then its argument prototype would still apply.  */
10492#ifdef __cplusplus
10493extern "C"
10494#endif
10495char dlopen ();
10496int
10497main ()
10498{
10499return dlopen ();
10500  ;
10501  return 0;
10502}
10503_ACEOF
10504rm -f conftest.$ac_objext conftest$ac_exeext
10505if { (ac_try="$ac_link"
10506case "(($ac_try" in
10507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508  *) ac_try_echo=$ac_try;;
10509esac
10510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511  (eval "$ac_link") 2>conftest.er1
10512  ac_status=$?
10513  grep -v '^ *+' conftest.er1 >conftest.err
10514  rm -f conftest.er1
10515  cat conftest.err >&5
10516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517  (exit $ac_status); } && {
10518	 test -z "$ac_c_werror_flag" ||
10519	 test ! -s conftest.err
10520       } && test -s conftest$ac_exeext &&
10521       $as_test_x conftest$ac_exeext; then
10522  ac_cv_lib_dl_dlopen=yes
10523else
10524  echo "$as_me: failed program was:" >&5
10525sed 's/^/| /' conftest.$ac_ext >&5
10526
10527	ac_cv_lib_dl_dlopen=no
10528fi
10529
10530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531      conftest$ac_exeext conftest.$ac_ext
10532LIBS=$ac_check_lib_save_LIBS
10533fi
10534{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10535echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10536if test $ac_cv_lib_dl_dlopen = yes; then
10537  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10538else
10539
10540    lt_cv_dlopen="dyld"
10541    lt_cv_dlopen_libs=
10542    lt_cv_dlopen_self=yes
10543
10544fi
10545
10546   ;;
10547
10548  *)
10549    { echo "$as_me:$LINENO: checking for shl_load" >&5
10550echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10551if test "${ac_cv_func_shl_load+set}" = set; then
10552  echo $ECHO_N "(cached) $ECHO_C" >&6
10553else
10554  cat >conftest.$ac_ext <<_ACEOF
10555/* confdefs.h.  */
10556_ACEOF
10557cat confdefs.h >>conftest.$ac_ext
10558cat >>conftest.$ac_ext <<_ACEOF
10559/* end confdefs.h.  */
10560/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10561   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10562#define shl_load innocuous_shl_load
10563
10564/* System header to define __stub macros and hopefully few prototypes,
10565    which can conflict with char shl_load (); below.
10566    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10567    <limits.h> exists even on freestanding compilers.  */
10568
10569#ifdef __STDC__
10570# include <limits.h>
10571#else
10572# include <assert.h>
10573#endif
10574
10575#undef shl_load
10576
10577/* Override any GCC internal prototype to avoid an error.
10578   Use char because int might match the return type of a GCC
10579   builtin and then its argument prototype would still apply.  */
10580#ifdef __cplusplus
10581extern "C"
10582#endif
10583char shl_load ();
10584/* The GNU C library defines this for functions which it implements
10585    to always fail with ENOSYS.  Some functions are actually named
10586    something starting with __ and the normal name is an alias.  */
10587#if defined __stub_shl_load || defined __stub___shl_load
10588choke me
10589#endif
10590
10591int
10592main ()
10593{
10594return shl_load ();
10595  ;
10596  return 0;
10597}
10598_ACEOF
10599rm -f conftest.$ac_objext conftest$ac_exeext
10600if { (ac_try="$ac_link"
10601case "(($ac_try" in
10602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603  *) ac_try_echo=$ac_try;;
10604esac
10605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606  (eval "$ac_link") 2>conftest.er1
10607  ac_status=$?
10608  grep -v '^ *+' conftest.er1 >conftest.err
10609  rm -f conftest.er1
10610  cat conftest.err >&5
10611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612  (exit $ac_status); } && {
10613	 test -z "$ac_c_werror_flag" ||
10614	 test ! -s conftest.err
10615       } && test -s conftest$ac_exeext &&
10616       $as_test_x conftest$ac_exeext; then
10617  ac_cv_func_shl_load=yes
10618else
10619  echo "$as_me: failed program was:" >&5
10620sed 's/^/| /' conftest.$ac_ext >&5
10621
10622	ac_cv_func_shl_load=no
10623fi
10624
10625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10626      conftest$ac_exeext conftest.$ac_ext
10627fi
10628{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10629echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10630if test $ac_cv_func_shl_load = yes; then
10631  lt_cv_dlopen="shl_load"
10632else
10633  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10634echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10635if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10636  echo $ECHO_N "(cached) $ECHO_C" >&6
10637else
10638  ac_check_lib_save_LIBS=$LIBS
10639LIBS="-ldld  $LIBS"
10640cat >conftest.$ac_ext <<_ACEOF
10641/* confdefs.h.  */
10642_ACEOF
10643cat confdefs.h >>conftest.$ac_ext
10644cat >>conftest.$ac_ext <<_ACEOF
10645/* end confdefs.h.  */
10646
10647/* Override any GCC internal prototype to avoid an error.
10648   Use char because int might match the return type of a GCC
10649   builtin and then its argument prototype would still apply.  */
10650#ifdef __cplusplus
10651extern "C"
10652#endif
10653char shl_load ();
10654int
10655main ()
10656{
10657return shl_load ();
10658  ;
10659  return 0;
10660}
10661_ACEOF
10662rm -f conftest.$ac_objext conftest$ac_exeext
10663if { (ac_try="$ac_link"
10664case "(($ac_try" in
10665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666  *) ac_try_echo=$ac_try;;
10667esac
10668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669  (eval "$ac_link") 2>conftest.er1
10670  ac_status=$?
10671  grep -v '^ *+' conftest.er1 >conftest.err
10672  rm -f conftest.er1
10673  cat conftest.err >&5
10674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675  (exit $ac_status); } && {
10676	 test -z "$ac_c_werror_flag" ||
10677	 test ! -s conftest.err
10678       } && test -s conftest$ac_exeext &&
10679       $as_test_x conftest$ac_exeext; then
10680  ac_cv_lib_dld_shl_load=yes
10681else
10682  echo "$as_me: failed program was:" >&5
10683sed 's/^/| /' conftest.$ac_ext >&5
10684
10685	ac_cv_lib_dld_shl_load=no
10686fi
10687
10688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10689      conftest$ac_exeext conftest.$ac_ext
10690LIBS=$ac_check_lib_save_LIBS
10691fi
10692{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10693echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10694if test $ac_cv_lib_dld_shl_load = yes; then
10695  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10696else
10697  { echo "$as_me:$LINENO: checking for dlopen" >&5
10698echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10699if test "${ac_cv_func_dlopen+set}" = set; then
10700  echo $ECHO_N "(cached) $ECHO_C" >&6
10701else
10702  cat >conftest.$ac_ext <<_ACEOF
10703/* confdefs.h.  */
10704_ACEOF
10705cat confdefs.h >>conftest.$ac_ext
10706cat >>conftest.$ac_ext <<_ACEOF
10707/* end confdefs.h.  */
10708/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10709   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10710#define dlopen innocuous_dlopen
10711
10712/* System header to define __stub macros and hopefully few prototypes,
10713    which can conflict with char dlopen (); below.
10714    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10715    <limits.h> exists even on freestanding compilers.  */
10716
10717#ifdef __STDC__
10718# include <limits.h>
10719#else
10720# include <assert.h>
10721#endif
10722
10723#undef dlopen
10724
10725/* Override any GCC internal prototype to avoid an error.
10726   Use char because int might match the return type of a GCC
10727   builtin and then its argument prototype would still apply.  */
10728#ifdef __cplusplus
10729extern "C"
10730#endif
10731char dlopen ();
10732/* The GNU C library defines this for functions which it implements
10733    to always fail with ENOSYS.  Some functions are actually named
10734    something starting with __ and the normal name is an alias.  */
10735#if defined __stub_dlopen || defined __stub___dlopen
10736choke me
10737#endif
10738
10739int
10740main ()
10741{
10742return dlopen ();
10743  ;
10744  return 0;
10745}
10746_ACEOF
10747rm -f conftest.$ac_objext conftest$ac_exeext
10748if { (ac_try="$ac_link"
10749case "(($ac_try" in
10750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751  *) ac_try_echo=$ac_try;;
10752esac
10753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754  (eval "$ac_link") 2>conftest.er1
10755  ac_status=$?
10756  grep -v '^ *+' conftest.er1 >conftest.err
10757  rm -f conftest.er1
10758  cat conftest.err >&5
10759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760  (exit $ac_status); } && {
10761	 test -z "$ac_c_werror_flag" ||
10762	 test ! -s conftest.err
10763       } && test -s conftest$ac_exeext &&
10764       $as_test_x conftest$ac_exeext; then
10765  ac_cv_func_dlopen=yes
10766else
10767  echo "$as_me: failed program was:" >&5
10768sed 's/^/| /' conftest.$ac_ext >&5
10769
10770	ac_cv_func_dlopen=no
10771fi
10772
10773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10774      conftest$ac_exeext conftest.$ac_ext
10775fi
10776{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10777echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10778if test $ac_cv_func_dlopen = yes; then
10779  lt_cv_dlopen="dlopen"
10780else
10781  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10782echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10783if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10784  echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786  ac_check_lib_save_LIBS=$LIBS
10787LIBS="-ldl  $LIBS"
10788cat >conftest.$ac_ext <<_ACEOF
10789/* confdefs.h.  */
10790_ACEOF
10791cat confdefs.h >>conftest.$ac_ext
10792cat >>conftest.$ac_ext <<_ACEOF
10793/* end confdefs.h.  */
10794
10795/* Override any GCC internal prototype to avoid an error.
10796   Use char because int might match the return type of a GCC
10797   builtin and then its argument prototype would still apply.  */
10798#ifdef __cplusplus
10799extern "C"
10800#endif
10801char dlopen ();
10802int
10803main ()
10804{
10805return dlopen ();
10806  ;
10807  return 0;
10808}
10809_ACEOF
10810rm -f conftest.$ac_objext conftest$ac_exeext
10811if { (ac_try="$ac_link"
10812case "(($ac_try" in
10813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814  *) ac_try_echo=$ac_try;;
10815esac
10816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817  (eval "$ac_link") 2>conftest.er1
10818  ac_status=$?
10819  grep -v '^ *+' conftest.er1 >conftest.err
10820  rm -f conftest.er1
10821  cat conftest.err >&5
10822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823  (exit $ac_status); } && {
10824	 test -z "$ac_c_werror_flag" ||
10825	 test ! -s conftest.err
10826       } && test -s conftest$ac_exeext &&
10827       $as_test_x conftest$ac_exeext; then
10828  ac_cv_lib_dl_dlopen=yes
10829else
10830  echo "$as_me: failed program was:" >&5
10831sed 's/^/| /' conftest.$ac_ext >&5
10832
10833	ac_cv_lib_dl_dlopen=no
10834fi
10835
10836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10837      conftest$ac_exeext conftest.$ac_ext
10838LIBS=$ac_check_lib_save_LIBS
10839fi
10840{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10841echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10842if test $ac_cv_lib_dl_dlopen = yes; then
10843  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10844else
10845  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10846echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10847if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10848  echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850  ac_check_lib_save_LIBS=$LIBS
10851LIBS="-lsvld  $LIBS"
10852cat >conftest.$ac_ext <<_ACEOF
10853/* confdefs.h.  */
10854_ACEOF
10855cat confdefs.h >>conftest.$ac_ext
10856cat >>conftest.$ac_ext <<_ACEOF
10857/* end confdefs.h.  */
10858
10859/* Override any GCC internal prototype to avoid an error.
10860   Use char because int might match the return type of a GCC
10861   builtin and then its argument prototype would still apply.  */
10862#ifdef __cplusplus
10863extern "C"
10864#endif
10865char dlopen ();
10866int
10867main ()
10868{
10869return dlopen ();
10870  ;
10871  return 0;
10872}
10873_ACEOF
10874rm -f conftest.$ac_objext conftest$ac_exeext
10875if { (ac_try="$ac_link"
10876case "(($ac_try" in
10877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878  *) ac_try_echo=$ac_try;;
10879esac
10880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881  (eval "$ac_link") 2>conftest.er1
10882  ac_status=$?
10883  grep -v '^ *+' conftest.er1 >conftest.err
10884  rm -f conftest.er1
10885  cat conftest.err >&5
10886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887  (exit $ac_status); } && {
10888	 test -z "$ac_c_werror_flag" ||
10889	 test ! -s conftest.err
10890       } && test -s conftest$ac_exeext &&
10891       $as_test_x conftest$ac_exeext; then
10892  ac_cv_lib_svld_dlopen=yes
10893else
10894  echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897	ac_cv_lib_svld_dlopen=no
10898fi
10899
10900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10901      conftest$ac_exeext conftest.$ac_ext
10902LIBS=$ac_check_lib_save_LIBS
10903fi
10904{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10905echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10906if test $ac_cv_lib_svld_dlopen = yes; then
10907  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10908else
10909  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10910echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10911if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10912  echo $ECHO_N "(cached) $ECHO_C" >&6
10913else
10914  ac_check_lib_save_LIBS=$LIBS
10915LIBS="-ldld  $LIBS"
10916cat >conftest.$ac_ext <<_ACEOF
10917/* confdefs.h.  */
10918_ACEOF
10919cat confdefs.h >>conftest.$ac_ext
10920cat >>conftest.$ac_ext <<_ACEOF
10921/* end confdefs.h.  */
10922
10923/* Override any GCC internal prototype to avoid an error.
10924   Use char because int might match the return type of a GCC
10925   builtin and then its argument prototype would still apply.  */
10926#ifdef __cplusplus
10927extern "C"
10928#endif
10929char dld_link ();
10930int
10931main ()
10932{
10933return dld_link ();
10934  ;
10935  return 0;
10936}
10937_ACEOF
10938rm -f conftest.$ac_objext conftest$ac_exeext
10939if { (ac_try="$ac_link"
10940case "(($ac_try" in
10941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942  *) ac_try_echo=$ac_try;;
10943esac
10944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945  (eval "$ac_link") 2>conftest.er1
10946  ac_status=$?
10947  grep -v '^ *+' conftest.er1 >conftest.err
10948  rm -f conftest.er1
10949  cat conftest.err >&5
10950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951  (exit $ac_status); } && {
10952	 test -z "$ac_c_werror_flag" ||
10953	 test ! -s conftest.err
10954       } && test -s conftest$ac_exeext &&
10955       $as_test_x conftest$ac_exeext; then
10956  ac_cv_lib_dld_dld_link=yes
10957else
10958  echo "$as_me: failed program was:" >&5
10959sed 's/^/| /' conftest.$ac_ext >&5
10960
10961	ac_cv_lib_dld_dld_link=no
10962fi
10963
10964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10965      conftest$ac_exeext conftest.$ac_ext
10966LIBS=$ac_check_lib_save_LIBS
10967fi
10968{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10969echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10970if test $ac_cv_lib_dld_dld_link = yes; then
10971  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10972fi
10973
10974
10975fi
10976
10977
10978fi
10979
10980
10981fi
10982
10983
10984fi
10985
10986
10987fi
10988
10989    ;;
10990  esac
10991
10992  if test "x$lt_cv_dlopen" != xno; then
10993    enable_dlopen=yes
10994  else
10995    enable_dlopen=no
10996  fi
10997
10998  case $lt_cv_dlopen in
10999  dlopen)
11000    save_CPPFLAGS="$CPPFLAGS"
11001    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11002
11003    save_LDFLAGS="$LDFLAGS"
11004    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11005
11006    save_LIBS="$LIBS"
11007    LIBS="$lt_cv_dlopen_libs $LIBS"
11008
11009    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11010echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11011if test "${lt_cv_dlopen_self+set}" = set; then
11012  echo $ECHO_N "(cached) $ECHO_C" >&6
11013else
11014  	  if test "$cross_compiling" = yes; then :
11015  lt_cv_dlopen_self=cross
11016else
11017  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11018  lt_status=$lt_dlunknown
11019  cat > conftest.$ac_ext <<EOF
11020#line 11020 "configure"
11021#include "confdefs.h"
11022
11023#if HAVE_DLFCN_H
11024#include <dlfcn.h>
11025#endif
11026
11027#include <stdio.h>
11028
11029#ifdef RTLD_GLOBAL
11030#  define LT_DLGLOBAL		RTLD_GLOBAL
11031#else
11032#  ifdef DL_GLOBAL
11033#    define LT_DLGLOBAL		DL_GLOBAL
11034#  else
11035#    define LT_DLGLOBAL		0
11036#  endif
11037#endif
11038
11039/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11040   find out it does not work in some platform. */
11041#ifndef LT_DLLAZY_OR_NOW
11042#  ifdef RTLD_LAZY
11043#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11044#  else
11045#    ifdef DL_LAZY
11046#      define LT_DLLAZY_OR_NOW		DL_LAZY
11047#    else
11048#      ifdef RTLD_NOW
11049#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11050#      else
11051#        ifdef DL_NOW
11052#          define LT_DLLAZY_OR_NOW	DL_NOW
11053#        else
11054#          define LT_DLLAZY_OR_NOW	0
11055#        endif
11056#      endif
11057#    endif
11058#  endif
11059#endif
11060
11061#ifdef __cplusplus
11062extern "C" void exit (int);
11063#endif
11064
11065void fnord() { int i=42;}
11066int main ()
11067{
11068  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11069  int status = $lt_dlunknown;
11070
11071  if (self)
11072    {
11073      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11074      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11075      /* dlclose (self); */
11076    }
11077
11078    exit (status);
11079}
11080EOF
11081  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11082  (eval $ac_link) 2>&5
11083  ac_status=$?
11084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11086    (./conftest; exit; ) >&5 2>/dev/null
11087    lt_status=$?
11088    case x$lt_status in
11089      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11090      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11091      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11092    esac
11093  else :
11094    # compilation failed
11095    lt_cv_dlopen_self=no
11096  fi
11097fi
11098rm -fr conftest*
11099
11100
11101fi
11102{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11103echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11104
11105    if test "x$lt_cv_dlopen_self" = xyes; then
11106      LDFLAGS="$LDFLAGS $link_static_flag"
11107      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11108echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11109if test "${lt_cv_dlopen_self_static+set}" = set; then
11110  echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112  	  if test "$cross_compiling" = yes; then :
11113  lt_cv_dlopen_self_static=cross
11114else
11115  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11116  lt_status=$lt_dlunknown
11117  cat > conftest.$ac_ext <<EOF
11118#line 11118 "configure"
11119#include "confdefs.h"
11120
11121#if HAVE_DLFCN_H
11122#include <dlfcn.h>
11123#endif
11124
11125#include <stdio.h>
11126
11127#ifdef RTLD_GLOBAL
11128#  define LT_DLGLOBAL		RTLD_GLOBAL
11129#else
11130#  ifdef DL_GLOBAL
11131#    define LT_DLGLOBAL		DL_GLOBAL
11132#  else
11133#    define LT_DLGLOBAL		0
11134#  endif
11135#endif
11136
11137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11138   find out it does not work in some platform. */
11139#ifndef LT_DLLAZY_OR_NOW
11140#  ifdef RTLD_LAZY
11141#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11142#  else
11143#    ifdef DL_LAZY
11144#      define LT_DLLAZY_OR_NOW		DL_LAZY
11145#    else
11146#      ifdef RTLD_NOW
11147#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11148#      else
11149#        ifdef DL_NOW
11150#          define LT_DLLAZY_OR_NOW	DL_NOW
11151#        else
11152#          define LT_DLLAZY_OR_NOW	0
11153#        endif
11154#      endif
11155#    endif
11156#  endif
11157#endif
11158
11159#ifdef __cplusplus
11160extern "C" void exit (int);
11161#endif
11162
11163void fnord() { int i=42;}
11164int main ()
11165{
11166  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11167  int status = $lt_dlunknown;
11168
11169  if (self)
11170    {
11171      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11172      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11173      /* dlclose (self); */
11174    }
11175
11176    exit (status);
11177}
11178EOF
11179  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180  (eval $ac_link) 2>&5
11181  ac_status=$?
11182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11184    (./conftest; exit; ) >&5 2>/dev/null
11185    lt_status=$?
11186    case x$lt_status in
11187      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11188      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11189      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11190    esac
11191  else :
11192    # compilation failed
11193    lt_cv_dlopen_self_static=no
11194  fi
11195fi
11196rm -fr conftest*
11197
11198
11199fi
11200{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11201echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11202    fi
11203
11204    CPPFLAGS="$save_CPPFLAGS"
11205    LDFLAGS="$save_LDFLAGS"
11206    LIBS="$save_LIBS"
11207    ;;
11208  esac
11209
11210  case $lt_cv_dlopen_self in
11211  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11212  *) enable_dlopen_self=unknown ;;
11213  esac
11214
11215  case $lt_cv_dlopen_self_static in
11216  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11217  *) enable_dlopen_self_static=unknown ;;
11218  esac
11219fi
11220
11221
11222# Report which librarie types wil actually be built
11223{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11224echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11225{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11226echo "${ECHO_T}$can_build_shared" >&6; }
11227
11228{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11229echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11230test "$can_build_shared" = "no" && enable_shared=no
11231
11232# On AIX, shared libraries and static libraries use the same namespace, and
11233# are all built from PIC.
11234case $host_os in
11235aix3*)
11236  test "$enable_shared" = yes && enable_static=no
11237  if test -n "$RANLIB"; then
11238    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11239    postinstall_cmds='$RANLIB $lib'
11240  fi
11241  ;;
11242
11243aix4* | aix5*)
11244  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11245    test "$enable_shared" = yes && enable_static=no
11246  fi
11247    ;;
11248esac
11249{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11250echo "${ECHO_T}$enable_shared" >&6; }
11251
11252{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11253echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11254# Make sure either enable_shared or enable_static is yes.
11255test "$enable_shared" = yes || enable_static=yes
11256{ echo "$as_me:$LINENO: result: $enable_static" >&5
11257echo "${ECHO_T}$enable_static" >&6; }
11258
11259# The else clause should only fire when bootstrapping the
11260# libtool distribution, otherwise you forgot to ship ltmain.sh
11261# with your package, and you will get complaints that there are
11262# no rules to generate ltmain.sh.
11263if test -f "$ltmain"; then
11264  # See if we are running on zsh, and set the options which allow our commands through
11265  # without removal of \ escapes.
11266  if test -n "${ZSH_VERSION+set}" ; then
11267    setopt NO_GLOB_SUBST
11268  fi
11269  # Now quote all the things that may contain metacharacters while being
11270  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11271  # variables and quote the copies for generation of the libtool script.
11272  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11273    SED SHELL STRIP \
11274    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11275    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11276    deplibs_check_method reload_flag reload_cmds need_locks \
11277    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11278    lt_cv_sys_global_symbol_to_c_name_address \
11279    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11280    old_postinstall_cmds old_postuninstall_cmds \
11281    compiler \
11282    CC \
11283    LD \
11284    lt_prog_compiler_wl \
11285    lt_prog_compiler_pic \
11286    lt_prog_compiler_static \
11287    lt_prog_compiler_no_builtin_flag \
11288    export_dynamic_flag_spec \
11289    thread_safe_flag_spec \
11290    whole_archive_flag_spec \
11291    enable_shared_with_static_runtimes \
11292    old_archive_cmds \
11293    old_archive_from_new_cmds \
11294    predep_objects \
11295    postdep_objects \
11296    predeps \
11297    postdeps \
11298    compiler_lib_search_path \
11299    archive_cmds \
11300    archive_expsym_cmds \
11301    postinstall_cmds \
11302    postuninstall_cmds \
11303    old_archive_from_expsyms_cmds \
11304    allow_undefined_flag \
11305    no_undefined_flag \
11306    export_symbols_cmds \
11307    hardcode_libdir_flag_spec \
11308    hardcode_libdir_flag_spec_ld \
11309    hardcode_libdir_separator \
11310    hardcode_automatic \
11311    module_cmds \
11312    module_expsym_cmds \
11313    lt_cv_prog_compiler_c_o \
11314    exclude_expsyms \
11315    include_expsyms; do
11316
11317    case $var in
11318    old_archive_cmds | \
11319    old_archive_from_new_cmds | \
11320    archive_cmds | \
11321    archive_expsym_cmds | \
11322    module_cmds | \
11323    module_expsym_cmds | \
11324    old_archive_from_expsyms_cmds | \
11325    export_symbols_cmds | \
11326    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11327    postinstall_cmds | postuninstall_cmds | \
11328    old_postinstall_cmds | old_postuninstall_cmds | \
11329    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11330      # Double-quote double-evaled strings.
11331      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11332      ;;
11333    *)
11334      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11335      ;;
11336    esac
11337  done
11338
11339  case $lt_echo in
11340  *'\$0 --fallback-echo"')
11341    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11342    ;;
11343  esac
11344
11345cfgfile="${ofile}T"
11346  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11347  $rm -f "$cfgfile"
11348  { echo "$as_me:$LINENO: creating $ofile" >&5
11349echo "$as_me: creating $ofile" >&6;}
11350
11351  cat <<__EOF__ >> "$cfgfile"
11352#! $SHELL
11353
11354# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11355# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11356# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11357#
11358# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11359# Free Software Foundation, Inc.
11360#
11361# This file is part of GNU Libtool:
11362# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11363#
11364# This program is free software; you can redistribute it and/or modify
11365# it under the terms of the GNU General Public License as published by
11366# the Free Software Foundation; either version 2 of the License, or
11367# (at your option) any later version.
11368#
11369# This program is distributed in the hope that it will be useful, but
11370# WITHOUT ANY WARRANTY; without even the implied warranty of
11371# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11372# General Public License for more details.
11373#
11374# You should have received a copy of the GNU General Public License
11375# along with this program; if not, write to the Free Software
11376# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11377#
11378# As a special exception to the GNU General Public License, if you
11379# distribute this file as part of a program that contains a
11380# configuration script generated by Autoconf, you may include it under
11381# the same distribution terms that you use for the rest of that program.
11382
11383# A sed program that does not truncate output.
11384SED=$lt_SED
11385
11386# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11387Xsed="$SED -e 1s/^X//"
11388
11389# The HP-UX ksh and POSIX shell print the target directory to stdout
11390# if CDPATH is set.
11391(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11392
11393# The names of the tagged configurations supported by this script.
11394available_tags=
11395
11396# ### BEGIN LIBTOOL CONFIG
11397
11398# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11399
11400# Shell to use when invoking shell scripts.
11401SHELL=$lt_SHELL
11402
11403# Whether or not to build shared libraries.
11404build_libtool_libs=$enable_shared
11405
11406# Whether or not to build static libraries.
11407build_old_libs=$enable_static
11408
11409# Whether or not to add -lc for building shared libraries.
11410build_libtool_need_lc=$archive_cmds_need_lc
11411
11412# Whether or not to disallow shared libs when runtime libs are static
11413allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11414
11415# Whether or not to optimize for fast installation.
11416fast_install=$enable_fast_install
11417
11418# The host system.
11419host_alias=$host_alias
11420host=$host
11421host_os=$host_os
11422
11423# The build system.
11424build_alias=$build_alias
11425build=$build
11426build_os=$build_os
11427
11428# An echo program that does not interpret backslashes.
11429echo=$lt_echo
11430
11431# The archiver.
11432AR=$lt_AR
11433AR_FLAGS=$lt_AR_FLAGS
11434
11435# A C compiler.
11436LTCC=$lt_LTCC
11437
11438# A language-specific compiler.
11439CC=$lt_compiler
11440
11441# Is the compiler the GNU C compiler?
11442with_gcc=$GCC
11443
11444# An ERE matcher.
11445EGREP=$lt_EGREP
11446
11447# The linker used to build libraries.
11448LD=$lt_LD
11449
11450# Whether we need hard or soft links.
11451LN_S=$lt_LN_S
11452
11453# A BSD-compatible nm program.
11454NM=$lt_NM
11455
11456# A symbol stripping program
11457STRIP=$lt_STRIP
11458
11459# Used to examine libraries when file_magic_cmd begins "file"
11460MAGIC_CMD=$MAGIC_CMD
11461
11462# Used on cygwin: DLL creation program.
11463DLLTOOL="$DLLTOOL"
11464
11465# Used on cygwin: object dumper.
11466OBJDUMP="$OBJDUMP"
11467
11468# Used on cygwin: assembler.
11469AS="$AS"
11470
11471# The name of the directory that contains temporary libtool files.
11472objdir=$objdir
11473
11474# How to create reloadable object files.
11475reload_flag=$lt_reload_flag
11476reload_cmds=$lt_reload_cmds
11477
11478# How to pass a linker flag through the compiler.
11479wl=$lt_lt_prog_compiler_wl
11480
11481# Object file suffix (normally "o").
11482objext="$ac_objext"
11483
11484# Old archive suffix (normally "a").
11485libext="$libext"
11486
11487# Shared library suffix (normally ".so").
11488shrext_cmds='$shrext_cmds'
11489
11490# Executable file suffix (normally "").
11491exeext="$exeext"
11492
11493# Additional compiler flags for building library objects.
11494pic_flag=$lt_lt_prog_compiler_pic
11495pic_mode=$pic_mode
11496
11497# What is the maximum length of a command?
11498max_cmd_len=$lt_cv_sys_max_cmd_len
11499
11500# Does compiler simultaneously support -c and -o options?
11501compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11502
11503# Must we lock files when doing compilation?
11504need_locks=$lt_need_locks
11505
11506# Do we need the lib prefix for modules?
11507need_lib_prefix=$need_lib_prefix
11508
11509# Do we need a version for libraries?
11510need_version=$need_version
11511
11512# Whether dlopen is supported.
11513dlopen_support=$enable_dlopen
11514
11515# Whether dlopen of programs is supported.
11516dlopen_self=$enable_dlopen_self
11517
11518# Whether dlopen of statically linked programs is supported.
11519dlopen_self_static=$enable_dlopen_self_static
11520
11521# Compiler flag to prevent dynamic linking.
11522link_static_flag=$lt_lt_prog_compiler_static
11523
11524# Compiler flag to turn off builtin functions.
11525no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11526
11527# Compiler flag to allow reflexive dlopens.
11528export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11529
11530# Compiler flag to generate shared objects directly from archives.
11531whole_archive_flag_spec=$lt_whole_archive_flag_spec
11532
11533# Compiler flag to generate thread-safe objects.
11534thread_safe_flag_spec=$lt_thread_safe_flag_spec
11535
11536# Library versioning type.
11537version_type=$version_type
11538
11539# Format of library name prefix.
11540libname_spec=$lt_libname_spec
11541
11542# List of archive names.  First name is the real one, the rest are links.
11543# The last name is the one that the linker finds with -lNAME.
11544library_names_spec=$lt_library_names_spec
11545
11546# The coded name of the library, if different from the real name.
11547soname_spec=$lt_soname_spec
11548
11549# Commands used to build and install an old-style archive.
11550RANLIB=$lt_RANLIB
11551old_archive_cmds=$lt_old_archive_cmds
11552old_postinstall_cmds=$lt_old_postinstall_cmds
11553old_postuninstall_cmds=$lt_old_postuninstall_cmds
11554
11555# Create an old-style archive from a shared archive.
11556old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11557
11558# Create a temporary old-style archive to link instead of a shared archive.
11559old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11560
11561# Commands used to build and install a shared archive.
11562archive_cmds=$lt_archive_cmds
11563archive_expsym_cmds=$lt_archive_expsym_cmds
11564postinstall_cmds=$lt_postinstall_cmds
11565postuninstall_cmds=$lt_postuninstall_cmds
11566
11567# Commands used to build a loadable module (assumed same as above if empty)
11568module_cmds=$lt_module_cmds
11569module_expsym_cmds=$lt_module_expsym_cmds
11570
11571# Commands to strip libraries.
11572old_striplib=$lt_old_striplib
11573striplib=$lt_striplib
11574
11575# Dependencies to place before the objects being linked to create a
11576# shared library.
11577predep_objects=$lt_predep_objects
11578
11579# Dependencies to place after the objects being linked to create a
11580# shared library.
11581postdep_objects=$lt_postdep_objects
11582
11583# Dependencies to place before the objects being linked to create a
11584# shared library.
11585predeps=$lt_predeps
11586
11587# Dependencies to place after the objects being linked to create a
11588# shared library.
11589postdeps=$lt_postdeps
11590
11591# The library search path used internally by the compiler when linking
11592# a shared library.
11593compiler_lib_search_path=$lt_compiler_lib_search_path
11594
11595# Method to check whether dependent libraries are shared objects.
11596deplibs_check_method=$lt_deplibs_check_method
11597
11598# Command to use when deplibs_check_method == file_magic.
11599file_magic_cmd=$lt_file_magic_cmd
11600
11601# Flag that allows shared libraries with undefined symbols to be built.
11602allow_undefined_flag=$lt_allow_undefined_flag
11603
11604# Flag that forces no undefined symbols.
11605no_undefined_flag=$lt_no_undefined_flag
11606
11607# Commands used to finish a libtool library installation in a directory.
11608finish_cmds=$lt_finish_cmds
11609
11610# Same as above, but a single script fragment to be evaled but not shown.
11611finish_eval=$lt_finish_eval
11612
11613# Take the output of nm and produce a listing of raw symbols and C names.
11614global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11615
11616# Transform the output of nm in a proper C declaration
11617global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11618
11619# Transform the output of nm in a C name address pair
11620global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11621
11622# This is the shared library runtime path variable.
11623runpath_var=$runpath_var
11624
11625# This is the shared library path variable.
11626shlibpath_var=$shlibpath_var
11627
11628# Is shlibpath searched before the hard-coded library search path?
11629shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11630
11631# How to hardcode a shared library path into an executable.
11632hardcode_action=$hardcode_action
11633
11634# Whether we should hardcode library paths into libraries.
11635hardcode_into_libs=$hardcode_into_libs
11636
11637# Flag to hardcode \$libdir into a binary during linking.
11638# This must work even if \$libdir does not exist.
11639hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11640
11641# If ld is used when linking, flag to hardcode \$libdir into
11642# a binary during linking. This must work even if \$libdir does
11643# not exist.
11644hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11645
11646# Whether we need a single -rpath flag with a separated argument.
11647hardcode_libdir_separator=$lt_hardcode_libdir_separator
11648
11649# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11650# resulting binary.
11651hardcode_direct=$hardcode_direct
11652
11653# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11654# resulting binary.
11655hardcode_minus_L=$hardcode_minus_L
11656
11657# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11658# the resulting binary.
11659hardcode_shlibpath_var=$hardcode_shlibpath_var
11660
11661# Set to yes if building a shared library automatically hardcodes DIR into the library
11662# and all subsequent libraries and executables linked against it.
11663hardcode_automatic=$hardcode_automatic
11664
11665# Variables whose values should be saved in libtool wrapper scripts and
11666# restored at relink time.
11667variables_saved_for_relink="$variables_saved_for_relink"
11668
11669# Whether libtool must link a program against all its dependency libraries.
11670link_all_deplibs=$link_all_deplibs
11671
11672# Compile-time system search path for libraries
11673sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11674
11675# Run-time system search path for libraries
11676sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11677
11678# Fix the shell variable \$srcfile for the compiler.
11679fix_srcfile_path="$fix_srcfile_path"
11680
11681# Set to yes if exported symbols are required.
11682always_export_symbols=$always_export_symbols
11683
11684# The commands to list exported symbols.
11685export_symbols_cmds=$lt_export_symbols_cmds
11686
11687# The commands to extract the exported symbol list from a shared archive.
11688extract_expsyms_cmds=$lt_extract_expsyms_cmds
11689
11690# Symbols that should not be listed in the preloaded symbols.
11691exclude_expsyms=$lt_exclude_expsyms
11692
11693# Symbols that must always be exported.
11694include_expsyms=$lt_include_expsyms
11695
11696# ### END LIBTOOL CONFIG
11697
11698__EOF__
11699
11700
11701  case $host_os in
11702  aix3*)
11703    cat <<\EOF >> "$cfgfile"
11704
11705# AIX sometimes has problems with the GCC collect2 program.  For some
11706# reason, if we set the COLLECT_NAMES environment variable, the problems
11707# vanish in a puff of smoke.
11708if test "X${COLLECT_NAMES+set}" != Xset; then
11709  COLLECT_NAMES=
11710  export COLLECT_NAMES
11711fi
11712EOF
11713    ;;
11714  esac
11715
11716  # We use sed instead of cat because bash on DJGPP gets confused if
11717  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11718  # text mode, it properly converts lines to CR/LF.  This bash problem
11719  # is reportedly fixed, but why not run on old versions too?
11720  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11721
11722  mv -f "$cfgfile" "$ofile" || \
11723    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11724  chmod +x "$ofile"
11725
11726else
11727  # If there is no Makefile yet, we rely on a make rule to execute
11728  # `config.status --recheck' to rerun these tests and create the
11729  # libtool script then.
11730  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11731  if test -f "$ltmain_in"; then
11732    test -f Makefile && make "$ltmain"
11733  fi
11734fi
11735
11736
11737ac_ext=c
11738ac_cpp='$CPP $CPPFLAGS'
11739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11741ac_compiler_gnu=$ac_cv_c_compiler_gnu
11742
11743CC="$lt_save_CC"
11744
11745
11746# Check whether --with-tags was given.
11747if test "${with_tags+set}" = set; then
11748  withval=$with_tags; tagnames="$withval"
11749fi
11750
11751
11752if test -f "$ltmain" && test -n "$tagnames"; then
11753  if test ! -f "${ofile}"; then
11754    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11755echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11756  fi
11757
11758  if test -z "$LTCC"; then
11759    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11760    if test -z "$LTCC"; then
11761      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11762echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11763    else
11764      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11765echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11766    fi
11767  fi
11768
11769  # Extract list of available tagged configurations in $ofile.
11770  # Note that this assumes the entire list is on one line.
11771  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11772
11773  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11774  for tagname in $tagnames; do
11775    IFS="$lt_save_ifs"
11776    # Check whether tagname contains only valid characters
11777    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11778    "") ;;
11779    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11780echo "$as_me: error: invalid tag name: $tagname" >&2;}
11781   { (exit 1); exit 1; }; }
11782	;;
11783    esac
11784
11785    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11786    then
11787      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11788echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11789   { (exit 1); exit 1; }; }
11790    fi
11791
11792    # Update the list of available tags.
11793    if test -n "$tagname"; then
11794      echo appending configuration tag \"$tagname\" to $ofile
11795
11796      case $tagname in
11797      CXX)
11798	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11799	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11800	    (test "X$CXX" != "Xg++"))) ; then
11801	  :
11802	else
11803	  tagname=""
11804	fi
11805	;;
11806
11807      F77)
11808	if test -n "$F77" && test "X$F77" != "Xno"; then
11809	  :
11810	else
11811	  tagname=""
11812	fi
11813	;;
11814
11815      GCJ)
11816	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11817	  :
11818	else
11819	  tagname=""
11820	fi
11821	;;
11822
11823      RC)
11824
11825
11826# Source file extension for RC test sources.
11827ac_ext=rc
11828
11829# Object file extension for compiled RC test sources.
11830objext=o
11831objext_RC=$objext
11832
11833# Code to be used in simple compile tests
11834lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11835
11836# Code to be used in simple link tests
11837lt_simple_link_test_code="$lt_simple_compile_test_code"
11838
11839# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11840
11841# If no C compiler was specified, use CC.
11842LTCC=${LTCC-"$CC"}
11843
11844# Allow CC to be a program name with arguments.
11845compiler=$CC
11846
11847
11848# save warnings/boilerplate of simple test code
11849ac_outfile=conftest.$ac_objext
11850printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11851eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11852_lt_compiler_boilerplate=`cat conftest.err`
11853$rm conftest*
11854
11855ac_outfile=conftest.$ac_objext
11856printf "$lt_simple_link_test_code" >conftest.$ac_ext
11857eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11858_lt_linker_boilerplate=`cat conftest.err`
11859$rm conftest*
11860
11861
11862# Allow CC to be a program name with arguments.
11863lt_save_CC="$CC"
11864CC=${RC-"windres"}
11865compiler=$CC
11866compiler_RC=$CC
11867for cc_temp in $compiler""; do
11868  case $cc_temp in
11869    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11870    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11871    \-*) ;;
11872    *) break;;
11873  esac
11874done
11875cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11876
11877lt_cv_prog_compiler_c_o_RC=yes
11878
11879# The else clause should only fire when bootstrapping the
11880# libtool distribution, otherwise you forgot to ship ltmain.sh
11881# with your package, and you will get complaints that there are
11882# no rules to generate ltmain.sh.
11883if test -f "$ltmain"; then
11884  # See if we are running on zsh, and set the options which allow our commands through
11885  # without removal of \ escapes.
11886  if test -n "${ZSH_VERSION+set}" ; then
11887    setopt NO_GLOB_SUBST
11888  fi
11889  # Now quote all the things that may contain metacharacters while being
11890  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11891  # variables and quote the copies for generation of the libtool script.
11892  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11893    SED SHELL STRIP \
11894    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11895    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11896    deplibs_check_method reload_flag reload_cmds need_locks \
11897    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11898    lt_cv_sys_global_symbol_to_c_name_address \
11899    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11900    old_postinstall_cmds old_postuninstall_cmds \
11901    compiler_RC \
11902    CC_RC \
11903    LD_RC \
11904    lt_prog_compiler_wl_RC \
11905    lt_prog_compiler_pic_RC \
11906    lt_prog_compiler_static_RC \
11907    lt_prog_compiler_no_builtin_flag_RC \
11908    export_dynamic_flag_spec_RC \
11909    thread_safe_flag_spec_RC \
11910    whole_archive_flag_spec_RC \
11911    enable_shared_with_static_runtimes_RC \
11912    old_archive_cmds_RC \
11913    old_archive_from_new_cmds_RC \
11914    predep_objects_RC \
11915    postdep_objects_RC \
11916    predeps_RC \
11917    postdeps_RC \
11918    compiler_lib_search_path_RC \
11919    archive_cmds_RC \
11920    archive_expsym_cmds_RC \
11921    postinstall_cmds_RC \
11922    postuninstall_cmds_RC \
11923    old_archive_from_expsyms_cmds_RC \
11924    allow_undefined_flag_RC \
11925    no_undefined_flag_RC \
11926    export_symbols_cmds_RC \
11927    hardcode_libdir_flag_spec_RC \
11928    hardcode_libdir_flag_spec_ld_RC \
11929    hardcode_libdir_separator_RC \
11930    hardcode_automatic_RC \
11931    module_cmds_RC \
11932    module_expsym_cmds_RC \
11933    lt_cv_prog_compiler_c_o_RC \
11934    exclude_expsyms_RC \
11935    include_expsyms_RC; do
11936
11937    case $var in
11938    old_archive_cmds_RC | \
11939    old_archive_from_new_cmds_RC | \
11940    archive_cmds_RC | \
11941    archive_expsym_cmds_RC | \
11942    module_cmds_RC | \
11943    module_expsym_cmds_RC | \
11944    old_archive_from_expsyms_cmds_RC | \
11945    export_symbols_cmds_RC | \
11946    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11947    postinstall_cmds | postuninstall_cmds | \
11948    old_postinstall_cmds | old_postuninstall_cmds | \
11949    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11950      # Double-quote double-evaled strings.
11951      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11952      ;;
11953    *)
11954      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11955      ;;
11956    esac
11957  done
11958
11959  case $lt_echo in
11960  *'\$0 --fallback-echo"')
11961    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11962    ;;
11963  esac
11964
11965cfgfile="$ofile"
11966
11967  cat <<__EOF__ >> "$cfgfile"
11968# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11969
11970# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11971
11972# Shell to use when invoking shell scripts.
11973SHELL=$lt_SHELL
11974
11975# Whether or not to build shared libraries.
11976build_libtool_libs=$enable_shared
11977
11978# Whether or not to build static libraries.
11979build_old_libs=$enable_static
11980
11981# Whether or not to add -lc for building shared libraries.
11982build_libtool_need_lc=$archive_cmds_need_lc_RC
11983
11984# Whether or not to disallow shared libs when runtime libs are static
11985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11986
11987# Whether or not to optimize for fast installation.
11988fast_install=$enable_fast_install
11989
11990# The host system.
11991host_alias=$host_alias
11992host=$host
11993host_os=$host_os
11994
11995# The build system.
11996build_alias=$build_alias
11997build=$build
11998build_os=$build_os
11999
12000# An echo program that does not interpret backslashes.
12001echo=$lt_echo
12002
12003# The archiver.
12004AR=$lt_AR
12005AR_FLAGS=$lt_AR_FLAGS
12006
12007# A C compiler.
12008LTCC=$lt_LTCC
12009
12010# A language-specific compiler.
12011CC=$lt_compiler_RC
12012
12013# Is the compiler the GNU C compiler?
12014with_gcc=$GCC_RC
12015
12016# An ERE matcher.
12017EGREP=$lt_EGREP
12018
12019# The linker used to build libraries.
12020LD=$lt_LD_RC
12021
12022# Whether we need hard or soft links.
12023LN_S=$lt_LN_S
12024
12025# A BSD-compatible nm program.
12026NM=$lt_NM
12027
12028# A symbol stripping program
12029STRIP=$lt_STRIP
12030
12031# Used to examine libraries when file_magic_cmd begins "file"
12032MAGIC_CMD=$MAGIC_CMD
12033
12034# Used on cygwin: DLL creation program.
12035DLLTOOL="$DLLTOOL"
12036
12037# Used on cygwin: object dumper.
12038OBJDUMP="$OBJDUMP"
12039
12040# Used on cygwin: assembler.
12041AS="$AS"
12042
12043# The name of the directory that contains temporary libtool files.
12044objdir=$objdir
12045
12046# How to create reloadable object files.
12047reload_flag=$lt_reload_flag
12048reload_cmds=$lt_reload_cmds
12049
12050# How to pass a linker flag through the compiler.
12051wl=$lt_lt_prog_compiler_wl_RC
12052
12053# Object file suffix (normally "o").
12054objext="$ac_objext"
12055
12056# Old archive suffix (normally "a").
12057libext="$libext"
12058
12059# Shared library suffix (normally ".so").
12060shrext_cmds='$shrext_cmds'
12061
12062# Executable file suffix (normally "").
12063exeext="$exeext"
12064
12065# Additional compiler flags for building library objects.
12066pic_flag=$lt_lt_prog_compiler_pic_RC
12067pic_mode=$pic_mode
12068
12069# What is the maximum length of a command?
12070max_cmd_len=$lt_cv_sys_max_cmd_len
12071
12072# Does compiler simultaneously support -c and -o options?
12073compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12074
12075# Must we lock files when doing compilation?
12076need_locks=$lt_need_locks
12077
12078# Do we need the lib prefix for modules?
12079need_lib_prefix=$need_lib_prefix
12080
12081# Do we need a version for libraries?
12082need_version=$need_version
12083
12084# Whether dlopen is supported.
12085dlopen_support=$enable_dlopen
12086
12087# Whether dlopen of programs is supported.
12088dlopen_self=$enable_dlopen_self
12089
12090# Whether dlopen of statically linked programs is supported.
12091dlopen_self_static=$enable_dlopen_self_static
12092
12093# Compiler flag to prevent dynamic linking.
12094link_static_flag=$lt_lt_prog_compiler_static_RC
12095
12096# Compiler flag to turn off builtin functions.
12097no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12098
12099# Compiler flag to allow reflexive dlopens.
12100export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12101
12102# Compiler flag to generate shared objects directly from archives.
12103whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12104
12105# Compiler flag to generate thread-safe objects.
12106thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12107
12108# Library versioning type.
12109version_type=$version_type
12110
12111# Format of library name prefix.
12112libname_spec=$lt_libname_spec
12113
12114# List of archive names.  First name is the real one, the rest are links.
12115# The last name is the one that the linker finds with -lNAME.
12116library_names_spec=$lt_library_names_spec
12117
12118# The coded name of the library, if different from the real name.
12119soname_spec=$lt_soname_spec
12120
12121# Commands used to build and install an old-style archive.
12122RANLIB=$lt_RANLIB
12123old_archive_cmds=$lt_old_archive_cmds_RC
12124old_postinstall_cmds=$lt_old_postinstall_cmds
12125old_postuninstall_cmds=$lt_old_postuninstall_cmds
12126
12127# Create an old-style archive from a shared archive.
12128old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12129
12130# Create a temporary old-style archive to link instead of a shared archive.
12131old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12132
12133# Commands used to build and install a shared archive.
12134archive_cmds=$lt_archive_cmds_RC
12135archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12136postinstall_cmds=$lt_postinstall_cmds
12137postuninstall_cmds=$lt_postuninstall_cmds
12138
12139# Commands used to build a loadable module (assumed same as above if empty)
12140module_cmds=$lt_module_cmds_RC
12141module_expsym_cmds=$lt_module_expsym_cmds_RC
12142
12143# Commands to strip libraries.
12144old_striplib=$lt_old_striplib
12145striplib=$lt_striplib
12146
12147# Dependencies to place before the objects being linked to create a
12148# shared library.
12149predep_objects=$lt_predep_objects_RC
12150
12151# Dependencies to place after the objects being linked to create a
12152# shared library.
12153postdep_objects=$lt_postdep_objects_RC
12154
12155# Dependencies to place before the objects being linked to create a
12156# shared library.
12157predeps=$lt_predeps_RC
12158
12159# Dependencies to place after the objects being linked to create a
12160# shared library.
12161postdeps=$lt_postdeps_RC
12162
12163# The library search path used internally by the compiler when linking
12164# a shared library.
12165compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12166
12167# Method to check whether dependent libraries are shared objects.
12168deplibs_check_method=$lt_deplibs_check_method
12169
12170# Command to use when deplibs_check_method == file_magic.
12171file_magic_cmd=$lt_file_magic_cmd
12172
12173# Flag that allows shared libraries with undefined symbols to be built.
12174allow_undefined_flag=$lt_allow_undefined_flag_RC
12175
12176# Flag that forces no undefined symbols.
12177no_undefined_flag=$lt_no_undefined_flag_RC
12178
12179# Commands used to finish a libtool library installation in a directory.
12180finish_cmds=$lt_finish_cmds
12181
12182# Same as above, but a single script fragment to be evaled but not shown.
12183finish_eval=$lt_finish_eval
12184
12185# Take the output of nm and produce a listing of raw symbols and C names.
12186global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12187
12188# Transform the output of nm in a proper C declaration
12189global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12190
12191# Transform the output of nm in a C name address pair
12192global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12193
12194# This is the shared library runtime path variable.
12195runpath_var=$runpath_var
12196
12197# This is the shared library path variable.
12198shlibpath_var=$shlibpath_var
12199
12200# Is shlibpath searched before the hard-coded library search path?
12201shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12202
12203# How to hardcode a shared library path into an executable.
12204hardcode_action=$hardcode_action_RC
12205
12206# Whether we should hardcode library paths into libraries.
12207hardcode_into_libs=$hardcode_into_libs
12208
12209# Flag to hardcode \$libdir into a binary during linking.
12210# This must work even if \$libdir does not exist.
12211hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12212
12213# If ld is used when linking, flag to hardcode \$libdir into
12214# a binary during linking. This must work even if \$libdir does
12215# not exist.
12216hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12217
12218# Whether we need a single -rpath flag with a separated argument.
12219hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12220
12221# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12222# resulting binary.
12223hardcode_direct=$hardcode_direct_RC
12224
12225# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12226# resulting binary.
12227hardcode_minus_L=$hardcode_minus_L_RC
12228
12229# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12230# the resulting binary.
12231hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12232
12233# Set to yes if building a shared library automatically hardcodes DIR into the library
12234# and all subsequent libraries and executables linked against it.
12235hardcode_automatic=$hardcode_automatic_RC
12236
12237# Variables whose values should be saved in libtool wrapper scripts and
12238# restored at relink time.
12239variables_saved_for_relink="$variables_saved_for_relink"
12240
12241# Whether libtool must link a program against all its dependency libraries.
12242link_all_deplibs=$link_all_deplibs_RC
12243
12244# Compile-time system search path for libraries
12245sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12246
12247# Run-time system search path for libraries
12248sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12249
12250# Fix the shell variable \$srcfile for the compiler.
12251fix_srcfile_path="$fix_srcfile_path_RC"
12252
12253# Set to yes if exported symbols are required.
12254always_export_symbols=$always_export_symbols_RC
12255
12256# The commands to list exported symbols.
12257export_symbols_cmds=$lt_export_symbols_cmds_RC
12258
12259# The commands to extract the exported symbol list from a shared archive.
12260extract_expsyms_cmds=$lt_extract_expsyms_cmds
12261
12262# Symbols that should not be listed in the preloaded symbols.
12263exclude_expsyms=$lt_exclude_expsyms_RC
12264
12265# Symbols that must always be exported.
12266include_expsyms=$lt_include_expsyms_RC
12267
12268# ### END LIBTOOL TAG CONFIG: $tagname
12269
12270__EOF__
12271
12272
12273else
12274  # If there is no Makefile yet, we rely on a make rule to execute
12275  # `config.status --recheck' to rerun these tests and create the
12276  # libtool script then.
12277  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12278  if test -f "$ltmain_in"; then
12279    test -f Makefile && make "$ltmain"
12280  fi
12281fi
12282
12283
12284ac_ext=c
12285ac_cpp='$CPP $CPPFLAGS'
12286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12288ac_compiler_gnu=$ac_cv_c_compiler_gnu
12289
12290CC="$lt_save_CC"
12291
12292	;;
12293
12294      *)
12295	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12296echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12297   { (exit 1); exit 1; }; }
12298	;;
12299      esac
12300
12301      # Append the new tag name to the list of available tags.
12302      if test -n "$tagname" ; then
12303      available_tags="$available_tags $tagname"
12304    fi
12305    fi
12306  done
12307  IFS="$lt_save_ifs"
12308
12309  # Now substitute the updated list of available tags.
12310  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12311    mv "${ofile}T" "$ofile"
12312    chmod +x "$ofile"
12313  else
12314    rm -f "${ofile}T"
12315    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12316echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12317   { (exit 1); exit 1; }; }
12318  fi
12319fi
12320
12321
12322
12323# This can be used to rebuild libtool when needed
12324LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12325
12326# Always use our own libtool.
12327LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12328
12329# Prevent multiple expansion
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340ol_link_perl=no
12341if test $ol_enable_perl != no ; then
12342	# Extract the first word of "perl", so it can be a program name with args.
12343set dummy perl; ac_word=$2
12344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12346if test "${ac_cv_path_PERLBIN+set}" = set; then
12347  echo $ECHO_N "(cached) $ECHO_C" >&6
12348else
12349  case $PERLBIN in
12350  [\\/]* | ?:[\\/]*)
12351  ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12352  ;;
12353  *)
12354  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355for as_dir in $PATH
12356do
12357  IFS=$as_save_IFS
12358  test -z "$as_dir" && as_dir=.
12359  for ac_exec_ext in '' $ac_executable_extensions; do
12360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12361    ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12363    break 2
12364  fi
12365done
12366done
12367IFS=$as_save_IFS
12368
12369  test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12370  ;;
12371esac
12372fi
12373PERLBIN=$ac_cv_path_PERLBIN
12374if test -n "$PERLBIN"; then
12375  { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12376echo "${ECHO_T}$PERLBIN" >&6; }
12377else
12378  { echo "$as_me:$LINENO: result: no" >&5
12379echo "${ECHO_T}no" >&6; }
12380fi
12381
12382
12383
12384	if test "no$PERLBIN" = "no" ; then
12385		if test $ol_enable_perl = yes ; then
12386			{ { echo "$as_me:$LINENO: error: could not locate perl" >&5
12387echo "$as_me: error: could not locate perl" >&2;}
12388   { (exit 1); exit 1; }; }
12389		fi
12390
12391	else
12392		PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12393		PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12394
12395		if test x"$ol_enable_perl" = "xyes" ; then
12396			SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12397		else
12398			MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12399		fi
12400				ol_link_perl=yes
12401	fi
12402fi
12403
12404ac_ext=c
12405ac_cpp='$CPP $CPPFLAGS'
12406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12408ac_compiler_gnu=$ac_cv_c_compiler_gnu
12409{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12410echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12411# On Suns, sometimes $CPP names a directory.
12412if test -n "$CPP" && test -d "$CPP"; then
12413  CPP=
12414fi
12415if test -z "$CPP"; then
12416  if test "${ac_cv_prog_CPP+set}" = set; then
12417  echo $ECHO_N "(cached) $ECHO_C" >&6
12418else
12419      # Double quotes because CPP needs to be expanded
12420    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12421    do
12422      ac_preproc_ok=false
12423for ac_c_preproc_warn_flag in '' yes
12424do
12425  # Use a header file that comes with gcc, so configuring glibc
12426  # with a fresh cross-compiler works.
12427  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12428  # <limits.h> exists even on freestanding compilers.
12429  # On the NeXT, cc -E runs the code through the compiler's parser,
12430  # not just through cpp. "Syntax error" is here to catch this case.
12431  cat >conftest.$ac_ext <<_ACEOF
12432/* confdefs.h.  */
12433_ACEOF
12434cat confdefs.h >>conftest.$ac_ext
12435cat >>conftest.$ac_ext <<_ACEOF
12436/* end confdefs.h.  */
12437#ifdef __STDC__
12438# include <limits.h>
12439#else
12440# include <assert.h>
12441#endif
12442		     Syntax error
12443_ACEOF
12444if { (ac_try="$ac_cpp conftest.$ac_ext"
12445case "(($ac_try" in
12446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447  *) ac_try_echo=$ac_try;;
12448esac
12449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12451  ac_status=$?
12452  grep -v '^ *+' conftest.er1 >conftest.err
12453  rm -f conftest.er1
12454  cat conftest.err >&5
12455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456  (exit $ac_status); } >/dev/null && {
12457	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12458	 test ! -s conftest.err
12459       }; then
12460  :
12461else
12462  echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
12465  # Broken: fails on valid input.
12466continue
12467fi
12468
12469rm -f conftest.err conftest.$ac_ext
12470
12471  # OK, works on sane cases.  Now check whether nonexistent headers
12472  # can be detected and how.
12473  cat >conftest.$ac_ext <<_ACEOF
12474/* confdefs.h.  */
12475_ACEOF
12476cat confdefs.h >>conftest.$ac_ext
12477cat >>conftest.$ac_ext <<_ACEOF
12478/* end confdefs.h.  */
12479#include <ac_nonexistent.h>
12480_ACEOF
12481if { (ac_try="$ac_cpp conftest.$ac_ext"
12482case "(($ac_try" in
12483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484  *) ac_try_echo=$ac_try;;
12485esac
12486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12488  ac_status=$?
12489  grep -v '^ *+' conftest.er1 >conftest.err
12490  rm -f conftest.er1
12491  cat conftest.err >&5
12492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493  (exit $ac_status); } >/dev/null && {
12494	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12495	 test ! -s conftest.err
12496       }; then
12497  # Broken: success on invalid input.
12498continue
12499else
12500  echo "$as_me: failed program was:" >&5
12501sed 's/^/| /' conftest.$ac_ext >&5
12502
12503  # Passes both tests.
12504ac_preproc_ok=:
12505break
12506fi
12507
12508rm -f conftest.err conftest.$ac_ext
12509
12510done
12511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12512rm -f conftest.err conftest.$ac_ext
12513if $ac_preproc_ok; then
12514  break
12515fi
12516
12517    done
12518    ac_cv_prog_CPP=$CPP
12519
12520fi
12521  CPP=$ac_cv_prog_CPP
12522else
12523  ac_cv_prog_CPP=$CPP
12524fi
12525{ echo "$as_me:$LINENO: result: $CPP" >&5
12526echo "${ECHO_T}$CPP" >&6; }
12527ac_preproc_ok=false
12528for ac_c_preproc_warn_flag in '' yes
12529do
12530  # Use a header file that comes with gcc, so configuring glibc
12531  # with a fresh cross-compiler works.
12532  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12533  # <limits.h> exists even on freestanding compilers.
12534  # On the NeXT, cc -E runs the code through the compiler's parser,
12535  # not just through cpp. "Syntax error" is here to catch this case.
12536  cat >conftest.$ac_ext <<_ACEOF
12537/* confdefs.h.  */
12538_ACEOF
12539cat confdefs.h >>conftest.$ac_ext
12540cat >>conftest.$ac_ext <<_ACEOF
12541/* end confdefs.h.  */
12542#ifdef __STDC__
12543# include <limits.h>
12544#else
12545# include <assert.h>
12546#endif
12547		     Syntax error
12548_ACEOF
12549if { (ac_try="$ac_cpp conftest.$ac_ext"
12550case "(($ac_try" in
12551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552  *) ac_try_echo=$ac_try;;
12553esac
12554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12556  ac_status=$?
12557  grep -v '^ *+' conftest.er1 >conftest.err
12558  rm -f conftest.er1
12559  cat conftest.err >&5
12560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561  (exit $ac_status); } >/dev/null && {
12562	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12563	 test ! -s conftest.err
12564       }; then
12565  :
12566else
12567  echo "$as_me: failed program was:" >&5
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
12570  # Broken: fails on valid input.
12571continue
12572fi
12573
12574rm -f conftest.err conftest.$ac_ext
12575
12576  # OK, works on sane cases.  Now check whether nonexistent headers
12577  # can be detected and how.
12578  cat >conftest.$ac_ext <<_ACEOF
12579/* confdefs.h.  */
12580_ACEOF
12581cat confdefs.h >>conftest.$ac_ext
12582cat >>conftest.$ac_ext <<_ACEOF
12583/* end confdefs.h.  */
12584#include <ac_nonexistent.h>
12585_ACEOF
12586if { (ac_try="$ac_cpp conftest.$ac_ext"
12587case "(($ac_try" in
12588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589  *) ac_try_echo=$ac_try;;
12590esac
12591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12593  ac_status=$?
12594  grep -v '^ *+' conftest.er1 >conftest.err
12595  rm -f conftest.er1
12596  cat conftest.err >&5
12597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598  (exit $ac_status); } >/dev/null && {
12599	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12600	 test ! -s conftest.err
12601       }; then
12602  # Broken: success on invalid input.
12603continue
12604else
12605  echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
12607
12608  # Passes both tests.
12609ac_preproc_ok=:
12610break
12611fi
12612
12613rm -f conftest.err conftest.$ac_ext
12614
12615done
12616# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12617rm -f conftest.err conftest.$ac_ext
12618if $ac_preproc_ok; then
12619  :
12620else
12621  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12622See \`config.log' for more details." >&5
12623echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12624See \`config.log' for more details." >&2;}
12625   { (exit 1); exit 1; }; }
12626fi
12627
12628ac_ext=c
12629ac_cpp='$CPP $CPPFLAGS'
12630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12632ac_compiler_gnu=$ac_cv_c_compiler_gnu
12633
12634{ echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12635echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12636if test "${ol_cv_msvc+set}" = set; then
12637  echo $ECHO_N "(cached) $ECHO_C" >&6
12638else
12639  cat >conftest.$ac_ext <<_ACEOF
12640/* confdefs.h.  */
12641_ACEOF
12642cat confdefs.h >>conftest.$ac_ext
12643cat >>conftest.$ac_ext <<_ACEOF
12644/* end confdefs.h.  */
12645
12646#ifndef _MSC_VER
12647#include <__FOO__/generate_error.h>
12648#endif
12649
12650_ACEOF
12651if { (ac_try="$ac_cpp conftest.$ac_ext"
12652case "(($ac_try" in
12653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654  *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12658  ac_status=$?
12659  grep -v '^ *+' conftest.er1 >conftest.err
12660  rm -f conftest.er1
12661  cat conftest.err >&5
12662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663  (exit $ac_status); } >/dev/null && {
12664	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12665	 test ! -s conftest.err
12666       }; then
12667  ol_cv_msvc=yes
12668else
12669  echo "$as_me: failed program was:" >&5
12670sed 's/^/| /' conftest.$ac_ext >&5
12671
12672  ol_cv_msvc=no
12673fi
12674
12675rm -f conftest.err conftest.$ac_ext
12676fi
12677{ echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12678echo "${ECHO_T}$ol_cv_msvc" >&6; }
12679
12680case $host_os in
12681  *mingw32* ) ac_cv_mingw32=yes ;;
12682  *cygwin* ) ac_cv_cygwin=yes ;;
12683  *interix* ) ac_cv_interix=yes ;;
12684esac
12685
12686
12687
12688
12689cat >>confdefs.h <<_ACEOF
12690#define EXEEXT "${EXEEXT}"
12691_ACEOF
12692
12693
12694{ echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12695echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12696if test "${ac_cv_lib_be_be_app+set}" = set; then
12697  echo $ECHO_N "(cached) $ECHO_C" >&6
12698else
12699  ac_check_lib_save_LIBS=$LIBS
12700LIBS="-lbe -lroot -lnet $LIBS"
12701cat >conftest.$ac_ext <<_ACEOF
12702/* confdefs.h.  */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h.  */
12707
12708/* Override any GCC internal prototype to avoid an error.
12709   Use char because int might match the return type of a GCC
12710   builtin and then its argument prototype would still apply.  */
12711#ifdef __cplusplus
12712extern "C"
12713#endif
12714char be_app ();
12715int
12716main ()
12717{
12718return be_app ();
12719  ;
12720  return 0;
12721}
12722_ACEOF
12723rm -f conftest.$ac_objext conftest$ac_exeext
12724if { (ac_try="$ac_link"
12725case "(($ac_try" in
12726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727  *) ac_try_echo=$ac_try;;
12728esac
12729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730  (eval "$ac_link") 2>conftest.er1
12731  ac_status=$?
12732  grep -v '^ *+' conftest.er1 >conftest.err
12733  rm -f conftest.er1
12734  cat conftest.err >&5
12735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736  (exit $ac_status); } && {
12737	 test -z "$ac_c_werror_flag" ||
12738	 test ! -s conftest.err
12739       } && test -s conftest$ac_exeext &&
12740       $as_test_x conftest$ac_exeext; then
12741  ac_cv_lib_be_be_app=yes
12742else
12743  echo "$as_me: failed program was:" >&5
12744sed 's/^/| /' conftest.$ac_ext >&5
12745
12746	ac_cv_lib_be_be_app=no
12747fi
12748
12749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12750      conftest$ac_exeext conftest.$ac_ext
12751LIBS=$ac_check_lib_save_LIBS
12752fi
12753{ echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12754echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12755if test $ac_cv_lib_be_be_app = yes; then
12756  LIBS="$LIBS -lbe -lroot -lnet"
12757else
12758  :
12759fi
12760
12761
12762ac_ext=c
12763ac_cpp='$CPP $CPPFLAGS'
12764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12766ac_compiler_gnu=$ac_cv_c_compiler_gnu
12767if test -n "$ac_tool_prefix"; then
12768  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12769set dummy ${ac_tool_prefix}gcc; ac_word=$2
12770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12772if test "${ac_cv_prog_CC+set}" = set; then
12773  echo $ECHO_N "(cached) $ECHO_C" >&6
12774else
12775  if test -n "$CC"; then
12776  ac_cv_prog_CC="$CC" # Let the user override the test.
12777else
12778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779for as_dir in $PATH
12780do
12781  IFS=$as_save_IFS
12782  test -z "$as_dir" && as_dir=.
12783  for ac_exec_ext in '' $ac_executable_extensions; do
12784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12785    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12787    break 2
12788  fi
12789done
12790done
12791IFS=$as_save_IFS
12792
12793fi
12794fi
12795CC=$ac_cv_prog_CC
12796if test -n "$CC"; then
12797  { echo "$as_me:$LINENO: result: $CC" >&5
12798echo "${ECHO_T}$CC" >&6; }
12799else
12800  { echo "$as_me:$LINENO: result: no" >&5
12801echo "${ECHO_T}no" >&6; }
12802fi
12803
12804
12805fi
12806if test -z "$ac_cv_prog_CC"; then
12807  ac_ct_CC=$CC
12808  # Extract the first word of "gcc", so it can be a program name with args.
12809set dummy gcc; ac_word=$2
12810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12812if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12813  echo $ECHO_N "(cached) $ECHO_C" >&6
12814else
12815  if test -n "$ac_ct_CC"; then
12816  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12817else
12818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819for as_dir in $PATH
12820do
12821  IFS=$as_save_IFS
12822  test -z "$as_dir" && as_dir=.
12823  for ac_exec_ext in '' $ac_executable_extensions; do
12824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12825    ac_cv_prog_ac_ct_CC="gcc"
12826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12827    break 2
12828  fi
12829done
12830done
12831IFS=$as_save_IFS
12832
12833fi
12834fi
12835ac_ct_CC=$ac_cv_prog_ac_ct_CC
12836if test -n "$ac_ct_CC"; then
12837  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12838echo "${ECHO_T}$ac_ct_CC" >&6; }
12839else
12840  { echo "$as_me:$LINENO: result: no" >&5
12841echo "${ECHO_T}no" >&6; }
12842fi
12843
12844  if test "x$ac_ct_CC" = x; then
12845    CC=""
12846  else
12847    case $cross_compiling:$ac_tool_warned in
12848yes:)
12849{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12850whose name does not start with the host triplet.  If you think this
12851configuration is useful to you, please write to autoconf@gnu.org." >&5
12852echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12853whose name does not start with the host triplet.  If you think this
12854configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12855ac_tool_warned=yes ;;
12856esac
12857    CC=$ac_ct_CC
12858  fi
12859else
12860  CC="$ac_cv_prog_CC"
12861fi
12862
12863if test -z "$CC"; then
12864          if test -n "$ac_tool_prefix"; then
12865    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12866set dummy ${ac_tool_prefix}cc; ac_word=$2
12867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12869if test "${ac_cv_prog_CC+set}" = set; then
12870  echo $ECHO_N "(cached) $ECHO_C" >&6
12871else
12872  if test -n "$CC"; then
12873  ac_cv_prog_CC="$CC" # Let the user override the test.
12874else
12875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876for as_dir in $PATH
12877do
12878  IFS=$as_save_IFS
12879  test -z "$as_dir" && as_dir=.
12880  for ac_exec_ext in '' $ac_executable_extensions; do
12881  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12882    ac_cv_prog_CC="${ac_tool_prefix}cc"
12883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12884    break 2
12885  fi
12886done
12887done
12888IFS=$as_save_IFS
12889
12890fi
12891fi
12892CC=$ac_cv_prog_CC
12893if test -n "$CC"; then
12894  { echo "$as_me:$LINENO: result: $CC" >&5
12895echo "${ECHO_T}$CC" >&6; }
12896else
12897  { echo "$as_me:$LINENO: result: no" >&5
12898echo "${ECHO_T}no" >&6; }
12899fi
12900
12901
12902  fi
12903fi
12904if test -z "$CC"; then
12905  # Extract the first word of "cc", so it can be a program name with args.
12906set dummy cc; ac_word=$2
12907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12909if test "${ac_cv_prog_CC+set}" = set; then
12910  echo $ECHO_N "(cached) $ECHO_C" >&6
12911else
12912  if test -n "$CC"; then
12913  ac_cv_prog_CC="$CC" # Let the user override the test.
12914else
12915  ac_prog_rejected=no
12916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917for as_dir in $PATH
12918do
12919  IFS=$as_save_IFS
12920  test -z "$as_dir" && as_dir=.
12921  for ac_exec_ext in '' $ac_executable_extensions; do
12922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12923    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12924       ac_prog_rejected=yes
12925       continue
12926     fi
12927    ac_cv_prog_CC="cc"
12928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12929    break 2
12930  fi
12931done
12932done
12933IFS=$as_save_IFS
12934
12935if test $ac_prog_rejected = yes; then
12936  # We found a bogon in the path, so make sure we never use it.
12937  set dummy $ac_cv_prog_CC
12938  shift
12939  if test $# != 0; then
12940    # We chose a different compiler from the bogus one.
12941    # However, it has the same basename, so the bogon will be chosen
12942    # first if we set CC to just the basename; use the full file name.
12943    shift
12944    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12945  fi
12946fi
12947fi
12948fi
12949CC=$ac_cv_prog_CC
12950if test -n "$CC"; then
12951  { echo "$as_me:$LINENO: result: $CC" >&5
12952echo "${ECHO_T}$CC" >&6; }
12953else
12954  { echo "$as_me:$LINENO: result: no" >&5
12955echo "${ECHO_T}no" >&6; }
12956fi
12957
12958
12959fi
12960if test -z "$CC"; then
12961  if test -n "$ac_tool_prefix"; then
12962  for ac_prog in cl.exe
12963  do
12964    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12965set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12968if test "${ac_cv_prog_CC+set}" = set; then
12969  echo $ECHO_N "(cached) $ECHO_C" >&6
12970else
12971  if test -n "$CC"; then
12972  ac_cv_prog_CC="$CC" # Let the user override the test.
12973else
12974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975for as_dir in $PATH
12976do
12977  IFS=$as_save_IFS
12978  test -z "$as_dir" && as_dir=.
12979  for ac_exec_ext in '' $ac_executable_extensions; do
12980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12981    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12983    break 2
12984  fi
12985done
12986done
12987IFS=$as_save_IFS
12988
12989fi
12990fi
12991CC=$ac_cv_prog_CC
12992if test -n "$CC"; then
12993  { echo "$as_me:$LINENO: result: $CC" >&5
12994echo "${ECHO_T}$CC" >&6; }
12995else
12996  { echo "$as_me:$LINENO: result: no" >&5
12997echo "${ECHO_T}no" >&6; }
12998fi
12999
13000
13001    test -n "$CC" && break
13002  done
13003fi
13004if test -z "$CC"; then
13005  ac_ct_CC=$CC
13006  for ac_prog in cl.exe
13007do
13008  # Extract the first word of "$ac_prog", so it can be a program name with args.
13009set dummy $ac_prog; ac_word=$2
13010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13013  echo $ECHO_N "(cached) $ECHO_C" >&6
13014else
13015  if test -n "$ac_ct_CC"; then
13016  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13017else
13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019for as_dir in $PATH
13020do
13021  IFS=$as_save_IFS
13022  test -z "$as_dir" && as_dir=.
13023  for ac_exec_ext in '' $ac_executable_extensions; do
13024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13025    ac_cv_prog_ac_ct_CC="$ac_prog"
13026    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13027    break 2
13028  fi
13029done
13030done
13031IFS=$as_save_IFS
13032
13033fi
13034fi
13035ac_ct_CC=$ac_cv_prog_ac_ct_CC
13036if test -n "$ac_ct_CC"; then
13037  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13038echo "${ECHO_T}$ac_ct_CC" >&6; }
13039else
13040  { echo "$as_me:$LINENO: result: no" >&5
13041echo "${ECHO_T}no" >&6; }
13042fi
13043
13044
13045  test -n "$ac_ct_CC" && break
13046done
13047
13048  if test "x$ac_ct_CC" = x; then
13049    CC=""
13050  else
13051    case $cross_compiling:$ac_tool_warned in
13052yes:)
13053{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13054whose name does not start with the host triplet.  If you think this
13055configuration is useful to you, please write to autoconf@gnu.org." >&5
13056echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13057whose name does not start with the host triplet.  If you think this
13058configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13059ac_tool_warned=yes ;;
13060esac
13061    CC=$ac_ct_CC
13062  fi
13063fi
13064
13065fi
13066
13067
13068test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13069See \`config.log' for more details." >&5
13070echo "$as_me: error: no acceptable C compiler found in \$PATH
13071See \`config.log' for more details." >&2;}
13072   { (exit 1); exit 1; }; }
13073
13074# Provide some information about the compiler.
13075echo "$as_me:$LINENO: checking for C compiler version" >&5
13076ac_compiler=`set X $ac_compile; echo $2`
13077{ (ac_try="$ac_compiler --version >&5"
13078case "(($ac_try" in
13079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080  *) ac_try_echo=$ac_try;;
13081esac
13082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083  (eval "$ac_compiler --version >&5") 2>&5
13084  ac_status=$?
13085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086  (exit $ac_status); }
13087{ (ac_try="$ac_compiler -v >&5"
13088case "(($ac_try" in
13089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090  *) ac_try_echo=$ac_try;;
13091esac
13092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093  (eval "$ac_compiler -v >&5") 2>&5
13094  ac_status=$?
13095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096  (exit $ac_status); }
13097{ (ac_try="$ac_compiler -V >&5"
13098case "(($ac_try" in
13099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100  *) ac_try_echo=$ac_try;;
13101esac
13102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103  (eval "$ac_compiler -V >&5") 2>&5
13104  ac_status=$?
13105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106  (exit $ac_status); }
13107
13108{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13109echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13110if test "${ac_cv_c_compiler_gnu+set}" = set; then
13111  echo $ECHO_N "(cached) $ECHO_C" >&6
13112else
13113  cat >conftest.$ac_ext <<_ACEOF
13114/* confdefs.h.  */
13115_ACEOF
13116cat confdefs.h >>conftest.$ac_ext
13117cat >>conftest.$ac_ext <<_ACEOF
13118/* end confdefs.h.  */
13119
13120int
13121main ()
13122{
13123#ifndef __GNUC__
13124       choke me
13125#endif
13126
13127  ;
13128  return 0;
13129}
13130_ACEOF
13131rm -f conftest.$ac_objext
13132if { (ac_try="$ac_compile"
13133case "(($ac_try" in
13134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135  *) ac_try_echo=$ac_try;;
13136esac
13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138  (eval "$ac_compile") 2>conftest.er1
13139  ac_status=$?
13140  grep -v '^ *+' conftest.er1 >conftest.err
13141  rm -f conftest.er1
13142  cat conftest.err >&5
13143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144  (exit $ac_status); } && {
13145	 test -z "$ac_c_werror_flag" ||
13146	 test ! -s conftest.err
13147       } && test -s conftest.$ac_objext; then
13148  ac_compiler_gnu=yes
13149else
13150  echo "$as_me: failed program was:" >&5
13151sed 's/^/| /' conftest.$ac_ext >&5
13152
13153	ac_compiler_gnu=no
13154fi
13155
13156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157ac_cv_c_compiler_gnu=$ac_compiler_gnu
13158
13159fi
13160{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13161echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13162GCC=`test $ac_compiler_gnu = yes && echo yes`
13163ac_test_CFLAGS=${CFLAGS+set}
13164ac_save_CFLAGS=$CFLAGS
13165{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13166echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13167if test "${ac_cv_prog_cc_g+set}" = set; then
13168  echo $ECHO_N "(cached) $ECHO_C" >&6
13169else
13170  ac_save_c_werror_flag=$ac_c_werror_flag
13171   ac_c_werror_flag=yes
13172   ac_cv_prog_cc_g=no
13173   CFLAGS="-g"
13174   cat >conftest.$ac_ext <<_ACEOF
13175/* confdefs.h.  */
13176_ACEOF
13177cat confdefs.h >>conftest.$ac_ext
13178cat >>conftest.$ac_ext <<_ACEOF
13179/* end confdefs.h.  */
13180
13181int
13182main ()
13183{
13184
13185  ;
13186  return 0;
13187}
13188_ACEOF
13189rm -f conftest.$ac_objext
13190if { (ac_try="$ac_compile"
13191case "(($ac_try" in
13192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193  *) ac_try_echo=$ac_try;;
13194esac
13195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196  (eval "$ac_compile") 2>conftest.er1
13197  ac_status=$?
13198  grep -v '^ *+' conftest.er1 >conftest.err
13199  rm -f conftest.er1
13200  cat conftest.err >&5
13201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202  (exit $ac_status); } && {
13203	 test -z "$ac_c_werror_flag" ||
13204	 test ! -s conftest.err
13205       } && test -s conftest.$ac_objext; then
13206  ac_cv_prog_cc_g=yes
13207else
13208  echo "$as_me: failed program was:" >&5
13209sed 's/^/| /' conftest.$ac_ext >&5
13210
13211	CFLAGS=""
13212      cat >conftest.$ac_ext <<_ACEOF
13213/* confdefs.h.  */
13214_ACEOF
13215cat confdefs.h >>conftest.$ac_ext
13216cat >>conftest.$ac_ext <<_ACEOF
13217/* end confdefs.h.  */
13218
13219int
13220main ()
13221{
13222
13223  ;
13224  return 0;
13225}
13226_ACEOF
13227rm -f conftest.$ac_objext
13228if { (ac_try="$ac_compile"
13229case "(($ac_try" in
13230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231  *) ac_try_echo=$ac_try;;
13232esac
13233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234  (eval "$ac_compile") 2>conftest.er1
13235  ac_status=$?
13236  grep -v '^ *+' conftest.er1 >conftest.err
13237  rm -f conftest.er1
13238  cat conftest.err >&5
13239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240  (exit $ac_status); } && {
13241	 test -z "$ac_c_werror_flag" ||
13242	 test ! -s conftest.err
13243       } && test -s conftest.$ac_objext; then
13244  :
13245else
13246  echo "$as_me: failed program was:" >&5
13247sed 's/^/| /' conftest.$ac_ext >&5
13248
13249	ac_c_werror_flag=$ac_save_c_werror_flag
13250	 CFLAGS="-g"
13251	 cat >conftest.$ac_ext <<_ACEOF
13252/* confdefs.h.  */
13253_ACEOF
13254cat confdefs.h >>conftest.$ac_ext
13255cat >>conftest.$ac_ext <<_ACEOF
13256/* end confdefs.h.  */
13257
13258int
13259main ()
13260{
13261
13262  ;
13263  return 0;
13264}
13265_ACEOF
13266rm -f conftest.$ac_objext
13267if { (ac_try="$ac_compile"
13268case "(($ac_try" in
13269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270  *) ac_try_echo=$ac_try;;
13271esac
13272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273  (eval "$ac_compile") 2>conftest.er1
13274  ac_status=$?
13275  grep -v '^ *+' conftest.er1 >conftest.err
13276  rm -f conftest.er1
13277  cat conftest.err >&5
13278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279  (exit $ac_status); } && {
13280	 test -z "$ac_c_werror_flag" ||
13281	 test ! -s conftest.err
13282       } && test -s conftest.$ac_objext; then
13283  ac_cv_prog_cc_g=yes
13284else
13285  echo "$as_me: failed program was:" >&5
13286sed 's/^/| /' conftest.$ac_ext >&5
13287
13288
13289fi
13290
13291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292fi
13293
13294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13295fi
13296
13297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13298   ac_c_werror_flag=$ac_save_c_werror_flag
13299fi
13300{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13301echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13302if test "$ac_test_CFLAGS" = set; then
13303  CFLAGS=$ac_save_CFLAGS
13304elif test $ac_cv_prog_cc_g = yes; then
13305  if test "$GCC" = yes; then
13306    CFLAGS="-g -O2"
13307  else
13308    CFLAGS="-g"
13309  fi
13310else
13311  if test "$GCC" = yes; then
13312    CFLAGS="-O2"
13313  else
13314    CFLAGS=
13315  fi
13316fi
13317{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13318echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13319if test "${ac_cv_prog_cc_c89+set}" = set; then
13320  echo $ECHO_N "(cached) $ECHO_C" >&6
13321else
13322  ac_cv_prog_cc_c89=no
13323ac_save_CC=$CC
13324cat >conftest.$ac_ext <<_ACEOF
13325/* confdefs.h.  */
13326_ACEOF
13327cat confdefs.h >>conftest.$ac_ext
13328cat >>conftest.$ac_ext <<_ACEOF
13329/* end confdefs.h.  */
13330#include <stdarg.h>
13331#include <stdio.h>
13332#include <sys/types.h>
13333#include <sys/stat.h>
13334/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13335struct buf { int x; };
13336FILE * (*rcsopen) (struct buf *, struct stat *, int);
13337static char *e (p, i)
13338     char **p;
13339     int i;
13340{
13341  return p[i];
13342}
13343static char *f (char * (*g) (char **, int), char **p, ...)
13344{
13345  char *s;
13346  va_list v;
13347  va_start (v,p);
13348  s = g (p, va_arg (v,int));
13349  va_end (v);
13350  return s;
13351}
13352
13353/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13354   function prototypes and stuff, but not '\xHH' hex character constants.
13355   These don't provoke an error unfortunately, instead are silently treated
13356   as 'x'.  The following induces an error, until -std is added to get
13357   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13358   array size at least.  It's necessary to write '\x00'==0 to get something
13359   that's true only with -std.  */
13360int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13361
13362/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13363   inside strings and character constants.  */
13364#define FOO(x) 'x'
13365int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13366
13367int test (int i, double x);
13368struct s1 {int (*f) (int a);};
13369struct s2 {int (*f) (double a);};
13370int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13371int argc;
13372char **argv;
13373int
13374main ()
13375{
13376return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13377  ;
13378  return 0;
13379}
13380_ACEOF
13381for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13382	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13383do
13384  CC="$ac_save_CC $ac_arg"
13385  rm -f conftest.$ac_objext
13386if { (ac_try="$ac_compile"
13387case "(($ac_try" in
13388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389  *) ac_try_echo=$ac_try;;
13390esac
13391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392  (eval "$ac_compile") 2>conftest.er1
13393  ac_status=$?
13394  grep -v '^ *+' conftest.er1 >conftest.err
13395  rm -f conftest.er1
13396  cat conftest.err >&5
13397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398  (exit $ac_status); } && {
13399	 test -z "$ac_c_werror_flag" ||
13400	 test ! -s conftest.err
13401       } && test -s conftest.$ac_objext; then
13402  ac_cv_prog_cc_c89=$ac_arg
13403else
13404  echo "$as_me: failed program was:" >&5
13405sed 's/^/| /' conftest.$ac_ext >&5
13406
13407
13408fi
13409
13410rm -f core conftest.err conftest.$ac_objext
13411  test "x$ac_cv_prog_cc_c89" != "xno" && break
13412done
13413rm -f conftest.$ac_ext
13414CC=$ac_save_CC
13415
13416fi
13417# AC_CACHE_VAL
13418case "x$ac_cv_prog_cc_c89" in
13419  x)
13420    { echo "$as_me:$LINENO: result: none needed" >&5
13421echo "${ECHO_T}none needed" >&6; } ;;
13422  xno)
13423    { echo "$as_me:$LINENO: result: unsupported" >&5
13424echo "${ECHO_T}unsupported" >&6; } ;;
13425  *)
13426    CC="$CC $ac_cv_prog_cc_c89"
13427    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13428echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13429esac
13430
13431
13432ac_ext=c
13433ac_cpp='$CPP $CPPFLAGS'
13434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13436ac_compiler_gnu=$ac_cv_c_compiler_gnu
13437
13438depcc="$CC"   am_compiler_list=
13439
13440{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13441echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13442if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13443  echo $ECHO_N "(cached) $ECHO_C" >&6
13444else
13445  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13446  # We make a subdir and do the tests there.  Otherwise we can end up
13447  # making bogus files that we don't know about and never remove.  For
13448  # instance it was reported that on HP-UX the gcc test will end up
13449  # making a dummy file named `D' -- because `-MD' means `put the output
13450  # in D'.
13451  mkdir conftest.dir
13452  # Copy depcomp to subdir because otherwise we won't find it if we're
13453  # using a relative directory.
13454  cp "$am_depcomp" conftest.dir
13455  cd conftest.dir
13456  # We will build objects and dependencies in a subdirectory because
13457  # it helps to detect inapplicable dependency modes.  For instance
13458  # both Tru64's cc and ICC support -MD to output dependencies as a
13459  # side effect of compilation, but ICC will put the dependencies in
13460  # the current directory while Tru64 will put them in the object
13461  # directory.
13462  mkdir sub
13463
13464  am_cv_CC_dependencies_compiler_type=none
13465  if test "$am_compiler_list" = ""; then
13466     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13467  fi
13468  for depmode in $am_compiler_list; do
13469    # Setup a source with many dependencies, because some compilers
13470    # like to wrap large dependency lists on column 80 (with \), and
13471    # we should not choose a depcomp mode which is confused by this.
13472    #
13473    # We need to recreate these files for each test, as the compiler may
13474    # overwrite some of them when testing with obscure command lines.
13475    # This happens at least with the AIX C compiler.
13476    : > sub/conftest.c
13477    for i in 1 2 3 4 5 6; do
13478      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13479      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13480      # Solaris 8's {/usr,}/bin/sh.
13481      touch sub/conftst$i.h
13482    done
13483    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13484
13485    case $depmode in
13486    nosideeffect)
13487      # after this tag, mechanisms are not by side-effect, so they'll
13488      # only be used when explicitly requested
13489      if test "x$enable_dependency_tracking" = xyes; then
13490	continue
13491      else
13492	break
13493      fi
13494      ;;
13495    none) break ;;
13496    esac
13497    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13498    # mode.  It turns out that the SunPro C++ compiler does not properly
13499    # handle `-M -o', and we need to detect this.
13500    if depmode=$depmode \
13501       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13502       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13503       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13504         >/dev/null 2>conftest.err &&
13505       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13506       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13507       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13508      # icc doesn't choke on unknown options, it will just issue warnings
13509      # or remarks (even with -Werror).  So we grep stderr for any message
13510      # that says an option was ignored or not supported.
13511      # When given -MP, icc 7.0 and 7.1 complain thusly:
13512      #   icc: Command line warning: ignoring option '-M'; no argument required
13513      # The diagnosis changed in icc 8.0:
13514      #   icc: Command line remark: option '-MP' not supported
13515      if (grep 'ignoring option' conftest.err ||
13516          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13517        am_cv_CC_dependencies_compiler_type=$depmode
13518        break
13519      fi
13520    fi
13521  done
13522
13523  cd ..
13524  rm -rf conftest.dir
13525else
13526  am_cv_CC_dependencies_compiler_type=none
13527fi
13528
13529fi
13530{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13531echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13532CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13533
13534
13535
13536if
13537  test "x$enable_dependency_tracking" != xno \
13538  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13539  am__fastdepCC_TRUE=
13540  am__fastdepCC_FALSE='#'
13541else
13542  am__fastdepCC_TRUE='#'
13543  am__fastdepCC_FALSE=
13544fi
13545
13546
13547if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13548	{ { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13549echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13550   { (exit 1); exit 1; }; }
13551fi
13552
13553# test for make depend flag
13554OL_MKDEP=
13555OL_MKDEP_FLAGS=
13556if test -z "${MKDEP}"; then
13557	OL_MKDEP="${CC-cc}"
13558	if test -z "${MKDEP_FLAGS}"; then
13559		{ echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13560echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13561if test "${ol_cv_mkdep+set}" = set; then
13562  echo $ECHO_N "(cached) $ECHO_C" >&6
13563else
13564
13565			ol_cv_mkdep=no
13566			for flag in "-M" "-xM"; do
13567				cat > conftest.c <<EOF
13568 noCode;
13569EOF
13570				if { ac_try='$OL_MKDEP $flag conftest.c'
13571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572  (eval $ac_try) 2>&5
13573  ac_status=$?
13574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575  (exit $ac_status); }; } \
13576					| grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13577				then
13578					if test ! -f conftest."${ac_object}" ; then
13579						ol_cv_mkdep=$flag
13580						OL_MKDEP_FLAGS="$flag"
13581						break
13582					fi
13583				fi
13584			done
13585			rm -f conftest*
13586
13587fi
13588{ echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13589echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13590		test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13591	else
13592		cc_cv_mkdep=yes
13593		OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13594	fi
13595else
13596	cc_cv_mkdep=yes
13597	OL_MKDEP="${MKDEP}"
13598	OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13599fi
13600
13601
13602
13603if test "${ol_cv_mkdep}" = no ; then
13604	# this will soon become an error
13605	{ echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13606echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13607fi
13608
13609{ echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13610echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13611if test "${ac_cv_lib_s_afopen+set}" = set; then
13612  echo $ECHO_N "(cached) $ECHO_C" >&6
13613else
13614  ac_check_lib_save_LIBS=$LIBS
13615LIBS="-ls  $LIBS"
13616cat >conftest.$ac_ext <<_ACEOF
13617/* confdefs.h.  */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h.  */
13622
13623/* Override any GCC internal prototype to avoid an error.
13624   Use char because int might match the return type of a GCC
13625   builtin and then its argument prototype would still apply.  */
13626#ifdef __cplusplus
13627extern "C"
13628#endif
13629char afopen ();
13630int
13631main ()
13632{
13633return afopen ();
13634  ;
13635  return 0;
13636}
13637_ACEOF
13638rm -f conftest.$ac_objext conftest$ac_exeext
13639if { (ac_try="$ac_link"
13640case "(($ac_try" in
13641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642  *) ac_try_echo=$ac_try;;
13643esac
13644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645  (eval "$ac_link") 2>conftest.er1
13646  ac_status=$?
13647  grep -v '^ *+' conftest.er1 >conftest.err
13648  rm -f conftest.er1
13649  cat conftest.err >&5
13650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651  (exit $ac_status); } && {
13652	 test -z "$ac_c_werror_flag" ||
13653	 test ! -s conftest.err
13654       } && test -s conftest$ac_exeext &&
13655       $as_test_x conftest$ac_exeext; then
13656  ac_cv_lib_s_afopen=yes
13657else
13658  echo "$as_me: failed program was:" >&5
13659sed 's/^/| /' conftest.$ac_ext >&5
13660
13661	ac_cv_lib_s_afopen=no
13662fi
13663
13664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13665      conftest$ac_exeext conftest.$ac_ext
13666LIBS=$ac_check_lib_save_LIBS
13667fi
13668{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13669echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13670if test $ac_cv_lib_s_afopen = yes; then
13671
13672	AUTH_LIBS=-ls
13673
13674cat >>confdefs.h <<\_ACEOF
13675#define HAVE_AIX_SECURITY 1
13676_ACEOF
13677
13678
13679fi
13680
13681
13682case "$target" in
13683*-ibm-openedition)
13684	ac_cv_func_getopt=no
13685
13686cat >>confdefs.h <<\_ACEOF
13687#define BOTH_STRINGS_H 1
13688_ACEOF
13689
13690	;;
13691esac
13692
13693ol_link_modules=no
13694WITH_MODULES_ENABLED=no
13695if test $ol_enable_modules != no ; then
13696
13697for ac_header in ltdl.h
13698do
13699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13701  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13704  echo $ECHO_N "(cached) $ECHO_C" >&6
13705fi
13706ac_res=`eval echo '${'$as_ac_Header'}'`
13707	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13708echo "${ECHO_T}$ac_res" >&6; }
13709else
13710  # Is the header compilable?
13711{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13712echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13713cat >conftest.$ac_ext <<_ACEOF
13714/* confdefs.h.  */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h.  */
13719$ac_includes_default
13720#include <$ac_header>
13721_ACEOF
13722rm -f conftest.$ac_objext
13723if { (ac_try="$ac_compile"
13724case "(($ac_try" in
13725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726  *) ac_try_echo=$ac_try;;
13727esac
13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729  (eval "$ac_compile") 2>conftest.er1
13730  ac_status=$?
13731  grep -v '^ *+' conftest.er1 >conftest.err
13732  rm -f conftest.er1
13733  cat conftest.err >&5
13734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735  (exit $ac_status); } && {
13736	 test -z "$ac_c_werror_flag" ||
13737	 test ! -s conftest.err
13738       } && test -s conftest.$ac_objext; then
13739  ac_header_compiler=yes
13740else
13741  echo "$as_me: failed program was:" >&5
13742sed 's/^/| /' conftest.$ac_ext >&5
13743
13744	ac_header_compiler=no
13745fi
13746
13747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13749echo "${ECHO_T}$ac_header_compiler" >&6; }
13750
13751# Is the header present?
13752{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13754cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h.  */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h.  */
13760#include <$ac_header>
13761_ACEOF
13762if { (ac_try="$ac_cpp conftest.$ac_ext"
13763case "(($ac_try" in
13764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765  *) ac_try_echo=$ac_try;;
13766esac
13767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13769  ac_status=$?
13770  grep -v '^ *+' conftest.er1 >conftest.err
13771  rm -f conftest.er1
13772  cat conftest.err >&5
13773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774  (exit $ac_status); } >/dev/null && {
13775	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13776	 test ! -s conftest.err
13777       }; then
13778  ac_header_preproc=yes
13779else
13780  echo "$as_me: failed program was:" >&5
13781sed 's/^/| /' conftest.$ac_ext >&5
13782
13783  ac_header_preproc=no
13784fi
13785
13786rm -f conftest.err conftest.$ac_ext
13787{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13788echo "${ECHO_T}$ac_header_preproc" >&6; }
13789
13790# So?  What about this header?
13791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13792  yes:no: )
13793    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13795    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13797    ac_header_preproc=yes
13798    ;;
13799  no:yes:* )
13800    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13802    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13803echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13804    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13806    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13807echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13808    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13810    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13812    ( cat <<\_ASBOX
13813## --------------------------------------------- ##
13814## Report this to <http://www.openldap.org/its/> ##
13815## --------------------------------------------- ##
13816_ASBOX
13817     ) | sed "s/^/$as_me: WARNING:     /" >&2
13818    ;;
13819esac
13820{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13823  echo $ECHO_N "(cached) $ECHO_C" >&6
13824else
13825  eval "$as_ac_Header=\$ac_header_preproc"
13826fi
13827ac_res=`eval echo '${'$as_ac_Header'}'`
13828	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13829echo "${ECHO_T}$ac_res" >&6; }
13830
13831fi
13832if test `eval echo '${'$as_ac_Header'}'` = yes; then
13833  cat >>confdefs.h <<_ACEOF
13834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13835_ACEOF
13836
13837fi
13838
13839done
13840
13841
13842	if test $ac_cv_header_ltdl_h = no ; then
13843		{ { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13844echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13845   { (exit 1); exit 1; }; }
13846	fi
13847
13848	{ echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13849echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13850if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13851  echo $ECHO_N "(cached) $ECHO_C" >&6
13852else
13853  ac_check_lib_save_LIBS=$LIBS
13854LIBS="-lltdl  $LIBS"
13855cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h.  */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h.  */
13861
13862/* Override any GCC internal prototype to avoid an error.
13863   Use char because int might match the return type of a GCC
13864   builtin and then its argument prototype would still apply.  */
13865#ifdef __cplusplus
13866extern "C"
13867#endif
13868char lt_dlinit ();
13869int
13870main ()
13871{
13872return lt_dlinit ();
13873  ;
13874  return 0;
13875}
13876_ACEOF
13877rm -f conftest.$ac_objext conftest$ac_exeext
13878if { (ac_try="$ac_link"
13879case "(($ac_try" in
13880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881  *) ac_try_echo=$ac_try;;
13882esac
13883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884  (eval "$ac_link") 2>conftest.er1
13885  ac_status=$?
13886  grep -v '^ *+' conftest.er1 >conftest.err
13887  rm -f conftest.er1
13888  cat conftest.err >&5
13889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890  (exit $ac_status); } && {
13891	 test -z "$ac_c_werror_flag" ||
13892	 test ! -s conftest.err
13893       } && test -s conftest$ac_exeext &&
13894       $as_test_x conftest$ac_exeext; then
13895  ac_cv_lib_ltdl_lt_dlinit=yes
13896else
13897  echo "$as_me: failed program was:" >&5
13898sed 's/^/| /' conftest.$ac_ext >&5
13899
13900	ac_cv_lib_ltdl_lt_dlinit=no
13901fi
13902
13903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13904      conftest$ac_exeext conftest.$ac_ext
13905LIBS=$ac_check_lib_save_LIBS
13906fi
13907{ echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13908echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13909if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13910
13911		MODULES_LIBS=-lltdl
13912
13913cat >>confdefs.h <<\_ACEOF
13914#define HAVE_LIBLTDL 1
13915_ACEOF
13916
13917
13918fi
13919
13920
13921	if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13922		{ { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13923echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13924   { (exit 1); exit 1; }; }
13925	fi
13926	ol_link_modules=yes
13927	WITH_MODULES_ENABLED=yes
13928
13929else
13930	for i in $Backends; do
13931		eval "ol_tmp=\$ol_enable_$i"
13932		if test $ol_tmp = mod ; then
13933			{ echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13934echo "$as_me: WARNING: building static $i backend" >&2;}
13935			eval "ol_enable_$i=yes"
13936		fi
13937	done
13938	for i in $Overlays; do
13939		eval "ol_tmp=\$ol_enable_$i"
13940		if test $ol_tmp = mod ; then
13941			{ echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13942echo "$as_me: WARNING: building static $i overlay" >&2;}
13943			eval "ol_enable_$i=yes"
13944		fi
13945	done
13946fi
13947
13948# test for EBCDIC
13949{ echo "$as_me:$LINENO: checking for EBCDIC" >&5
13950echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
13951if test "${ol_cv_cpp_ebcdic+set}" = set; then
13952  echo $ECHO_N "(cached) $ECHO_C" >&6
13953else
13954
13955	cat >conftest.$ac_ext <<_ACEOF
13956/* confdefs.h.  */
13957_ACEOF
13958cat confdefs.h >>conftest.$ac_ext
13959cat >>conftest.$ac_ext <<_ACEOF
13960/* end confdefs.h.  */
13961
13962#if !('M' == 0xd4)
13963#include <__ASCII__/generate_error.h>
13964#endif
13965
13966_ACEOF
13967if { (ac_try="$ac_cpp conftest.$ac_ext"
13968case "(($ac_try" in
13969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970  *) ac_try_echo=$ac_try;;
13971esac
13972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13974  ac_status=$?
13975  grep -v '^ *+' conftest.er1 >conftest.err
13976  rm -f conftest.er1
13977  cat conftest.err >&5
13978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979  (exit $ac_status); } >/dev/null && {
13980	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13981	 test ! -s conftest.err
13982       }; then
13983  ol_cv_cpp_ebcdic=yes
13984else
13985  echo "$as_me: failed program was:" >&5
13986sed 's/^/| /' conftest.$ac_ext >&5
13987
13988  ol_cv_cpp_ebcdic=no
13989fi
13990
13991rm -f conftest.err conftest.$ac_ext
13992fi
13993{ echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13994echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
13995if test $ol_cv_cpp_ebcdic = yes ; then
13996
13997cat >>confdefs.h <<\_ACEOF
13998#define HAVE_EBCDIC 1
13999_ACEOF
14000
14001fi
14002
14003{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14004echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14005if test "${ol_cv_header_stdc+set}" = set; then
14006  echo $ECHO_N "(cached) $ECHO_C" >&6
14007else
14008  cat >conftest.$ac_ext <<_ACEOF
14009/* confdefs.h.  */
14010_ACEOF
14011cat confdefs.h >>conftest.$ac_ext
14012cat >>conftest.$ac_ext <<_ACEOF
14013/* end confdefs.h.  */
14014#include <stdlib.h>
14015#include <stdarg.h>
14016#include <string.h>
14017#include <float.h>
14018_ACEOF
14019if { (ac_try="$ac_cpp conftest.$ac_ext"
14020case "(($ac_try" in
14021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022  *) ac_try_echo=$ac_try;;
14023esac
14024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14026  ac_status=$?
14027  grep -v '^ *+' conftest.er1 >conftest.err
14028  rm -f conftest.er1
14029  cat conftest.err >&5
14030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031  (exit $ac_status); } >/dev/null && {
14032	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14033	 test ! -s conftest.err
14034       }; then
14035  ol_cv_header_stdc=yes
14036else
14037  echo "$as_me: failed program was:" >&5
14038sed 's/^/| /' conftest.$ac_ext >&5
14039
14040  ol_cv_header_stdc=no
14041fi
14042
14043rm -f conftest.err conftest.$ac_ext
14044
14045if test $ol_cv_header_stdc = yes; then
14046  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14047cat >conftest.$ac_ext <<_ACEOF
14048/* confdefs.h.  */
14049_ACEOF
14050cat confdefs.h >>conftest.$ac_ext
14051cat >>conftest.$ac_ext <<_ACEOF
14052/* end confdefs.h.  */
14053#include <string.h>
14054
14055_ACEOF
14056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14057  $EGREP "memchr" >/dev/null 2>&1; then
14058  :
14059else
14060  ol_cv_header_stdc=no
14061fi
14062rm -f -r conftest*
14063
14064fi
14065
14066if test $ol_cv_header_stdc = yes; then
14067  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14068cat >conftest.$ac_ext <<_ACEOF
14069/* confdefs.h.  */
14070_ACEOF
14071cat confdefs.h >>conftest.$ac_ext
14072cat >>conftest.$ac_ext <<_ACEOF
14073/* end confdefs.h.  */
14074#include <stdlib.h>
14075
14076_ACEOF
14077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14078  $EGREP "free" >/dev/null 2>&1; then
14079  :
14080else
14081  ol_cv_header_stdc=no
14082fi
14083rm -f -r conftest*
14084
14085fi
14086
14087if test $ol_cv_header_stdc = yes; then
14088  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14089if test "$cross_compiling" = yes; then
14090  :
14091else
14092  cat >conftest.$ac_ext <<_ACEOF
14093/* confdefs.h.  */
14094_ACEOF
14095cat confdefs.h >>conftest.$ac_ext
14096cat >>conftest.$ac_ext <<_ACEOF
14097/* end confdefs.h.  */
14098#include <ctype.h>
14099#ifndef HAVE_EBCDIC
14100#	define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14101#	define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14102#else
14103#	define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14104		|| ('j' <= (c) && (c) <= 'r') \
14105		|| ('s' <= (c) && (c) <= 'z'))
14106#	define TOUPPER(c)	(ISLOWER(c) ? ((c) | 0x40) : (c))
14107#endif
14108#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14109int main () { int i; for (i = 0; i < 256; i++)
14110if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14111exit (0); }
14112
14113_ACEOF
14114rm -f conftest$ac_exeext
14115if { (ac_try="$ac_link"
14116case "(($ac_try" in
14117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118  *) ac_try_echo=$ac_try;;
14119esac
14120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14121  (eval "$ac_link") 2>&5
14122  ac_status=$?
14123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14125  { (case "(($ac_try" in
14126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127  *) ac_try_echo=$ac_try;;
14128esac
14129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130  (eval "$ac_try") 2>&5
14131  ac_status=$?
14132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133  (exit $ac_status); }; }; then
14134  :
14135else
14136  echo "$as_me: program exited with status $ac_status" >&5
14137echo "$as_me: failed program was:" >&5
14138sed 's/^/| /' conftest.$ac_ext >&5
14139
14140( exit $ac_status )
14141ol_cv_header_stdc=no
14142fi
14143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14144fi
14145
14146
14147fi
14148fi
14149{ echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14150echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14151if test $ol_cv_header_stdc = yes; then
14152  cat >>confdefs.h <<\_ACEOF
14153#define STDC_HEADERS 1
14154_ACEOF
14155
14156fi
14157ac_cv_header_stdc=disable
14158
14159
14160if test $ol_cv_header_stdc != yes; then
14161	{ echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14162echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14163fi
14164
14165
14166
14167
14168
14169
14170ac_header_dirent=no
14171for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14172  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14173{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14174echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14176  echo $ECHO_N "(cached) $ECHO_C" >&6
14177else
14178  cat >conftest.$ac_ext <<_ACEOF
14179/* confdefs.h.  */
14180_ACEOF
14181cat confdefs.h >>conftest.$ac_ext
14182cat >>conftest.$ac_ext <<_ACEOF
14183/* end confdefs.h.  */
14184#include <sys/types.h>
14185#include <$ac_hdr>
14186
14187int
14188main ()
14189{
14190if ((DIR *) 0)
14191return 0;
14192  ;
14193  return 0;
14194}
14195_ACEOF
14196rm -f conftest.$ac_objext
14197if { (ac_try="$ac_compile"
14198case "(($ac_try" in
14199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200  *) ac_try_echo=$ac_try;;
14201esac
14202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203  (eval "$ac_compile") 2>conftest.er1
14204  ac_status=$?
14205  grep -v '^ *+' conftest.er1 >conftest.err
14206  rm -f conftest.er1
14207  cat conftest.err >&5
14208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209  (exit $ac_status); } && {
14210	 test -z "$ac_c_werror_flag" ||
14211	 test ! -s conftest.err
14212       } && test -s conftest.$ac_objext; then
14213  eval "$as_ac_Header=yes"
14214else
14215  echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218	eval "$as_ac_Header=no"
14219fi
14220
14221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222fi
14223ac_res=`eval echo '${'$as_ac_Header'}'`
14224	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14225echo "${ECHO_T}$ac_res" >&6; }
14226if test `eval echo '${'$as_ac_Header'}'` = yes; then
14227  cat >>confdefs.h <<_ACEOF
14228#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14229_ACEOF
14230
14231ac_header_dirent=$ac_hdr; break
14232fi
14233
14234done
14235# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14236if test $ac_header_dirent = dirent.h; then
14237  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14238echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14239if test "${ac_cv_search_opendir+set}" = set; then
14240  echo $ECHO_N "(cached) $ECHO_C" >&6
14241else
14242  ac_func_search_save_LIBS=$LIBS
14243cat >conftest.$ac_ext <<_ACEOF
14244/* confdefs.h.  */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
14248/* end confdefs.h.  */
14249
14250/* Override any GCC internal prototype to avoid an error.
14251   Use char because int might match the return type of a GCC
14252   builtin and then its argument prototype would still apply.  */
14253#ifdef __cplusplus
14254extern "C"
14255#endif
14256char opendir ();
14257int
14258main ()
14259{
14260return opendir ();
14261  ;
14262  return 0;
14263}
14264_ACEOF
14265for ac_lib in '' dir; do
14266  if test -z "$ac_lib"; then
14267    ac_res="none required"
14268  else
14269    ac_res=-l$ac_lib
14270    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14271  fi
14272  rm -f conftest.$ac_objext conftest$ac_exeext
14273if { (ac_try="$ac_link"
14274case "(($ac_try" in
14275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276  *) ac_try_echo=$ac_try;;
14277esac
14278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279  (eval "$ac_link") 2>conftest.er1
14280  ac_status=$?
14281  grep -v '^ *+' conftest.er1 >conftest.err
14282  rm -f conftest.er1
14283  cat conftest.err >&5
14284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285  (exit $ac_status); } && {
14286	 test -z "$ac_c_werror_flag" ||
14287	 test ! -s conftest.err
14288       } && test -s conftest$ac_exeext &&
14289       $as_test_x conftest$ac_exeext; then
14290  ac_cv_search_opendir=$ac_res
14291else
14292  echo "$as_me: failed program was:" >&5
14293sed 's/^/| /' conftest.$ac_ext >&5
14294
14295
14296fi
14297
14298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14299      conftest$ac_exeext
14300  if test "${ac_cv_search_opendir+set}" = set; then
14301  break
14302fi
14303done
14304if test "${ac_cv_search_opendir+set}" = set; then
14305  :
14306else
14307  ac_cv_search_opendir=no
14308fi
14309rm conftest.$ac_ext
14310LIBS=$ac_func_search_save_LIBS
14311fi
14312{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14313echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14314ac_res=$ac_cv_search_opendir
14315if test "$ac_res" != no; then
14316  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14317
14318fi
14319
14320else
14321  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14322echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14323if test "${ac_cv_search_opendir+set}" = set; then
14324  echo $ECHO_N "(cached) $ECHO_C" >&6
14325else
14326  ac_func_search_save_LIBS=$LIBS
14327cat >conftest.$ac_ext <<_ACEOF
14328/* confdefs.h.  */
14329_ACEOF
14330cat confdefs.h >>conftest.$ac_ext
14331cat >>conftest.$ac_ext <<_ACEOF
14332/* end confdefs.h.  */
14333
14334/* Override any GCC internal prototype to avoid an error.
14335   Use char because int might match the return type of a GCC
14336   builtin and then its argument prototype would still apply.  */
14337#ifdef __cplusplus
14338extern "C"
14339#endif
14340char opendir ();
14341int
14342main ()
14343{
14344return opendir ();
14345  ;
14346  return 0;
14347}
14348_ACEOF
14349for ac_lib in '' x; do
14350  if test -z "$ac_lib"; then
14351    ac_res="none required"
14352  else
14353    ac_res=-l$ac_lib
14354    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14355  fi
14356  rm -f conftest.$ac_objext conftest$ac_exeext
14357if { (ac_try="$ac_link"
14358case "(($ac_try" in
14359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360  *) ac_try_echo=$ac_try;;
14361esac
14362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14363  (eval "$ac_link") 2>conftest.er1
14364  ac_status=$?
14365  grep -v '^ *+' conftest.er1 >conftest.err
14366  rm -f conftest.er1
14367  cat conftest.err >&5
14368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369  (exit $ac_status); } && {
14370	 test -z "$ac_c_werror_flag" ||
14371	 test ! -s conftest.err
14372       } && test -s conftest$ac_exeext &&
14373       $as_test_x conftest$ac_exeext; then
14374  ac_cv_search_opendir=$ac_res
14375else
14376  echo "$as_me: failed program was:" >&5
14377sed 's/^/| /' conftest.$ac_ext >&5
14378
14379
14380fi
14381
14382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14383      conftest$ac_exeext
14384  if test "${ac_cv_search_opendir+set}" = set; then
14385  break
14386fi
14387done
14388if test "${ac_cv_search_opendir+set}" = set; then
14389  :
14390else
14391  ac_cv_search_opendir=no
14392fi
14393rm conftest.$ac_ext
14394LIBS=$ac_func_search_save_LIBS
14395fi
14396{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14397echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14398ac_res=$ac_cv_search_opendir
14399if test "$ac_res" != no; then
14400  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14401
14402fi
14403
14404fi
14405
14406{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14407echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14408if test "${ac_cv_header_sys_wait_h+set}" = set; then
14409  echo $ECHO_N "(cached) $ECHO_C" >&6
14410else
14411  cat >conftest.$ac_ext <<_ACEOF
14412/* confdefs.h.  */
14413_ACEOF
14414cat confdefs.h >>conftest.$ac_ext
14415cat >>conftest.$ac_ext <<_ACEOF
14416/* end confdefs.h.  */
14417#include <sys/types.h>
14418#include <sys/wait.h>
14419#ifndef WEXITSTATUS
14420# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14421#endif
14422#ifndef WIFEXITED
14423# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14424#endif
14425
14426int
14427main ()
14428{
14429  int s;
14430  wait (&s);
14431  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14432  ;
14433  return 0;
14434}
14435_ACEOF
14436rm -f conftest.$ac_objext
14437if { (ac_try="$ac_compile"
14438case "(($ac_try" in
14439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440  *) ac_try_echo=$ac_try;;
14441esac
14442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443  (eval "$ac_compile") 2>conftest.er1
14444  ac_status=$?
14445  grep -v '^ *+' conftest.er1 >conftest.err
14446  rm -f conftest.er1
14447  cat conftest.err >&5
14448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449  (exit $ac_status); } && {
14450	 test -z "$ac_c_werror_flag" ||
14451	 test ! -s conftest.err
14452       } && test -s conftest.$ac_objext; then
14453  ac_cv_header_sys_wait_h=yes
14454else
14455  echo "$as_me: failed program was:" >&5
14456sed 's/^/| /' conftest.$ac_ext >&5
14457
14458	ac_cv_header_sys_wait_h=no
14459fi
14460
14461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462fi
14463{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14464echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14465if test $ac_cv_header_sys_wait_h = yes; then
14466
14467cat >>confdefs.h <<\_ACEOF
14468#define HAVE_SYS_WAIT_H 1
14469_ACEOF
14470
14471fi
14472
14473{ echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14474echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14475if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14476  echo $ECHO_N "(cached) $ECHO_C" >&6
14477else
14478  cat >conftest.$ac_ext <<_ACEOF
14479/* confdefs.h.  */
14480_ACEOF
14481cat confdefs.h >>conftest.$ac_ext
14482cat >>conftest.$ac_ext <<_ACEOF
14483/* end confdefs.h.  */
14484#include <sys/types.h>
14485#include <termios.h>
14486#ifdef TIOCGWINSZ
14487  yes
14488#endif
14489
14490_ACEOF
14491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14492  $EGREP "yes" >/dev/null 2>&1; then
14493  ac_cv_sys_tiocgwinsz_in_termios_h=yes
14494else
14495  ac_cv_sys_tiocgwinsz_in_termios_h=no
14496fi
14497rm -f -r conftest*
14498
14499fi
14500{ echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14501echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14502
14503if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14504  { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14505echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14506if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14507  echo $ECHO_N "(cached) $ECHO_C" >&6
14508else
14509  cat >conftest.$ac_ext <<_ACEOF
14510/* confdefs.h.  */
14511_ACEOF
14512cat confdefs.h >>conftest.$ac_ext
14513cat >>conftest.$ac_ext <<_ACEOF
14514/* end confdefs.h.  */
14515#include <sys/types.h>
14516#include <sys/ioctl.h>
14517#ifdef TIOCGWINSZ
14518  yes
14519#endif
14520
14521_ACEOF
14522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14523  $EGREP "yes" >/dev/null 2>&1; then
14524  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14525else
14526  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14527fi
14528rm -f -r conftest*
14529
14530fi
14531{ echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14532echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14533
14534  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14535
14536cat >>confdefs.h <<\_ACEOF
14537#define GWINSZ_IN_SYS_IOCTL 1
14538_ACEOF
14539
14540  fi
14541fi
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591for ac_header in \
14592	arpa/inet.h		\
14593	arpa/nameser.h	\
14594	assert.h		\
14595	bits/types.h	\
14596	conio.h			\
14597	crypt.h			\
14598	direct.h		\
14599	errno.h			\
14600	fcntl.h			\
14601	filio.h			\
14602	getopt.h		\
14603	grp.h			\
14604	io.h			\
14605	libutil.h		\
14606	limits.h		\
14607	locale.h		\
14608	malloc.h		\
14609	memory.h		\
14610	psap.h			\
14611	pwd.h			\
14612	process.h		\
14613	sgtty.h			\
14614	shadow.h		\
14615	stddef.h		\
14616	string.h		\
14617	strings.h		\
14618	sysexits.h		\
14619	sys/file.h		\
14620	sys/filio.h		\
14621	sys/fstyp.h		\
14622	sys/errno.h		\
14623	sys/ioctl.h		\
14624	sys/param.h		\
14625	sys/privgrp.h	\
14626	sys/resource.h	\
14627	sys/select.h	\
14628	sys/socket.h	\
14629	sys/stat.h		\
14630	sys/syslog.h	\
14631	sys/time.h		\
14632	sys/types.h		\
14633	sys/uio.h		\
14634	sys/vmount.h	\
14635	syslog.h		\
14636	termios.h		\
14637	unistd.h		\
14638	utime.h			\
14639
14640do
14641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14643  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14646  echo $ECHO_N "(cached) $ECHO_C" >&6
14647fi
14648ac_res=`eval echo '${'$as_ac_Header'}'`
14649	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14650echo "${ECHO_T}$ac_res" >&6; }
14651else
14652  # Is the header compilable?
14653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14655cat >conftest.$ac_ext <<_ACEOF
14656/* confdefs.h.  */
14657_ACEOF
14658cat confdefs.h >>conftest.$ac_ext
14659cat >>conftest.$ac_ext <<_ACEOF
14660/* end confdefs.h.  */
14661$ac_includes_default
14662#include <$ac_header>
14663_ACEOF
14664rm -f conftest.$ac_objext
14665if { (ac_try="$ac_compile"
14666case "(($ac_try" in
14667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668  *) ac_try_echo=$ac_try;;
14669esac
14670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671  (eval "$ac_compile") 2>conftest.er1
14672  ac_status=$?
14673  grep -v '^ *+' conftest.er1 >conftest.err
14674  rm -f conftest.er1
14675  cat conftest.err >&5
14676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677  (exit $ac_status); } && {
14678	 test -z "$ac_c_werror_flag" ||
14679	 test ! -s conftest.err
14680       } && test -s conftest.$ac_objext; then
14681  ac_header_compiler=yes
14682else
14683  echo "$as_me: failed program was:" >&5
14684sed 's/^/| /' conftest.$ac_ext >&5
14685
14686	ac_header_compiler=no
14687fi
14688
14689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14691echo "${ECHO_T}$ac_header_compiler" >&6; }
14692
14693# Is the header present?
14694{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14696cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h.  */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h.  */
14702#include <$ac_header>
14703_ACEOF
14704if { (ac_try="$ac_cpp conftest.$ac_ext"
14705case "(($ac_try" in
14706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707  *) ac_try_echo=$ac_try;;
14708esac
14709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14711  ac_status=$?
14712  grep -v '^ *+' conftest.er1 >conftest.err
14713  rm -f conftest.er1
14714  cat conftest.err >&5
14715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716  (exit $ac_status); } >/dev/null && {
14717	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14718	 test ! -s conftest.err
14719       }; then
14720  ac_header_preproc=yes
14721else
14722  echo "$as_me: failed program was:" >&5
14723sed 's/^/| /' conftest.$ac_ext >&5
14724
14725  ac_header_preproc=no
14726fi
14727
14728rm -f conftest.err conftest.$ac_ext
14729{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14730echo "${ECHO_T}$ac_header_preproc" >&6; }
14731
14732# So?  What about this header?
14733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14734  yes:no: )
14735    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14737    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14739    ac_header_preproc=yes
14740    ;;
14741  no:yes:* )
14742    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14744    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14745echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14746    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14748    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14749echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14750    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14752    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14754    ( cat <<\_ASBOX
14755## --------------------------------------------- ##
14756## Report this to <http://www.openldap.org/its/> ##
14757## --------------------------------------------- ##
14758_ASBOX
14759     ) | sed "s/^/$as_me: WARNING:     /" >&2
14760    ;;
14761esac
14762{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14765  echo $ECHO_N "(cached) $ECHO_C" >&6
14766else
14767  eval "$as_ac_Header=\$ac_header_preproc"
14768fi
14769ac_res=`eval echo '${'$as_ac_Header'}'`
14770	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14771echo "${ECHO_T}$ac_res" >&6; }
14772
14773fi
14774if test `eval echo '${'$as_ac_Header'}'` = yes; then
14775  cat >>confdefs.h <<_ACEOF
14776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14777_ACEOF
14778
14779fi
14780
14781done
14782
14783
14784if test "$ac_cv_mingw32" = yes \
14785	-o "$ac_cv_interix" = yes \
14786	-o "$ol_cv_msvc" = yes
14787then
14788
14789
14790for ac_header in winsock.h winsock2.h
14791do
14792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14794  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14797  echo $ECHO_N "(cached) $ECHO_C" >&6
14798fi
14799ac_res=`eval echo '${'$as_ac_Header'}'`
14800	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14801echo "${ECHO_T}$ac_res" >&6; }
14802else
14803  # Is the header compilable?
14804{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14806cat >conftest.$ac_ext <<_ACEOF
14807/* confdefs.h.  */
14808_ACEOF
14809cat confdefs.h >>conftest.$ac_ext
14810cat >>conftest.$ac_ext <<_ACEOF
14811/* end confdefs.h.  */
14812$ac_includes_default
14813#include <$ac_header>
14814_ACEOF
14815rm -f conftest.$ac_objext
14816if { (ac_try="$ac_compile"
14817case "(($ac_try" in
14818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819  *) ac_try_echo=$ac_try;;
14820esac
14821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822  (eval "$ac_compile") 2>conftest.er1
14823  ac_status=$?
14824  grep -v '^ *+' conftest.er1 >conftest.err
14825  rm -f conftest.er1
14826  cat conftest.err >&5
14827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828  (exit $ac_status); } && {
14829	 test -z "$ac_c_werror_flag" ||
14830	 test ! -s conftest.err
14831       } && test -s conftest.$ac_objext; then
14832  ac_header_compiler=yes
14833else
14834  echo "$as_me: failed program was:" >&5
14835sed 's/^/| /' conftest.$ac_ext >&5
14836
14837	ac_header_compiler=no
14838fi
14839
14840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14842echo "${ECHO_T}$ac_header_compiler" >&6; }
14843
14844# Is the header present?
14845{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14847cat >conftest.$ac_ext <<_ACEOF
14848/* confdefs.h.  */
14849_ACEOF
14850cat confdefs.h >>conftest.$ac_ext
14851cat >>conftest.$ac_ext <<_ACEOF
14852/* end confdefs.h.  */
14853#include <$ac_header>
14854_ACEOF
14855if { (ac_try="$ac_cpp conftest.$ac_ext"
14856case "(($ac_try" in
14857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858  *) ac_try_echo=$ac_try;;
14859esac
14860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14862  ac_status=$?
14863  grep -v '^ *+' conftest.er1 >conftest.err
14864  rm -f conftest.er1
14865  cat conftest.err >&5
14866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867  (exit $ac_status); } >/dev/null && {
14868	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14869	 test ! -s conftest.err
14870       }; then
14871  ac_header_preproc=yes
14872else
14873  echo "$as_me: failed program was:" >&5
14874sed 's/^/| /' conftest.$ac_ext >&5
14875
14876  ac_header_preproc=no
14877fi
14878
14879rm -f conftest.err conftest.$ac_ext
14880{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14881echo "${ECHO_T}$ac_header_preproc" >&6; }
14882
14883# So?  What about this header?
14884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14885  yes:no: )
14886    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14887echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14888    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14889echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14890    ac_header_preproc=yes
14891    ;;
14892  no:yes:* )
14893    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14894echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14895    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14896echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14897    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14898echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14899    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14900echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14901    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14902echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14903    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14904echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14905    ( cat <<\_ASBOX
14906## --------------------------------------------- ##
14907## Report this to <http://www.openldap.org/its/> ##
14908## --------------------------------------------- ##
14909_ASBOX
14910     ) | sed "s/^/$as_me: WARNING:     /" >&2
14911    ;;
14912esac
14913{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14916  echo $ECHO_N "(cached) $ECHO_C" >&6
14917else
14918  eval "$as_ac_Header=\$ac_header_preproc"
14919fi
14920ac_res=`eval echo '${'$as_ac_Header'}'`
14921	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14922echo "${ECHO_T}$ac_res" >&6; }
14923
14924fi
14925if test `eval echo '${'$as_ac_Header'}'` = yes; then
14926  cat >>confdefs.h <<_ACEOF
14927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14928_ACEOF
14929
14930fi
14931
14932done
14933
14934fi
14935
14936
14937for ac_header in resolv.h
14938do
14939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14940{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943  echo $ECHO_N "(cached) $ECHO_C" >&6
14944else
14945  cat >conftest.$ac_ext <<_ACEOF
14946/* confdefs.h.  */
14947_ACEOF
14948cat confdefs.h >>conftest.$ac_ext
14949cat >>conftest.$ac_ext <<_ACEOF
14950/* end confdefs.h.  */
14951$ac_includes_default
14952#include <netinet/in.h>
14953
14954
14955#include <$ac_header>
14956_ACEOF
14957rm -f conftest.$ac_objext
14958if { (ac_try="$ac_compile"
14959case "(($ac_try" in
14960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961  *) ac_try_echo=$ac_try;;
14962esac
14963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964  (eval "$ac_compile") 2>conftest.er1
14965  ac_status=$?
14966  grep -v '^ *+' conftest.er1 >conftest.err
14967  rm -f conftest.er1
14968  cat conftest.err >&5
14969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970  (exit $ac_status); } && {
14971	 test -z "$ac_c_werror_flag" ||
14972	 test ! -s conftest.err
14973       } && test -s conftest.$ac_objext; then
14974  eval "$as_ac_Header=yes"
14975else
14976  echo "$as_me: failed program was:" >&5
14977sed 's/^/| /' conftest.$ac_ext >&5
14978
14979	eval "$as_ac_Header=no"
14980fi
14981
14982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983fi
14984ac_res=`eval echo '${'$as_ac_Header'}'`
14985	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14986echo "${ECHO_T}$ac_res" >&6; }
14987if test `eval echo '${'$as_ac_Header'}'` = yes; then
14988  cat >>confdefs.h <<_ACEOF
14989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14990_ACEOF
14991
14992fi
14993
14994done
14995
14996
14997
14998for ac_header in netinet/tcp.h
14999do
15000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15001{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15004  echo $ECHO_N "(cached) $ECHO_C" >&6
15005else
15006  cat >conftest.$ac_ext <<_ACEOF
15007/* confdefs.h.  */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
15011/* end confdefs.h.  */
15012$ac_includes_default
15013#include <netinet/in.h>
15014
15015
15016#include <$ac_header>
15017_ACEOF
15018rm -f conftest.$ac_objext
15019if { (ac_try="$ac_compile"
15020case "(($ac_try" in
15021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022  *) ac_try_echo=$ac_try;;
15023esac
15024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025  (eval "$ac_compile") 2>conftest.er1
15026  ac_status=$?
15027  grep -v '^ *+' conftest.er1 >conftest.err
15028  rm -f conftest.er1
15029  cat conftest.err >&5
15030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031  (exit $ac_status); } && {
15032	 test -z "$ac_c_werror_flag" ||
15033	 test ! -s conftest.err
15034       } && test -s conftest.$ac_objext; then
15035  eval "$as_ac_Header=yes"
15036else
15037  echo "$as_me: failed program was:" >&5
15038sed 's/^/| /' conftest.$ac_ext >&5
15039
15040	eval "$as_ac_Header=no"
15041fi
15042
15043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044fi
15045ac_res=`eval echo '${'$as_ac_Header'}'`
15046	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15047echo "${ECHO_T}$ac_res" >&6; }
15048if test `eval echo '${'$as_ac_Header'}'` = yes; then
15049  cat >>confdefs.h <<_ACEOF
15050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15051_ACEOF
15052
15053fi
15054
15055done
15056
15057
15058
15059for ac_header in sys/ucred.h
15060do
15061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15062{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15065  echo $ECHO_N "(cached) $ECHO_C" >&6
15066else
15067  cat >conftest.$ac_ext <<_ACEOF
15068/* confdefs.h.  */
15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h.  */
15073$ac_includes_default
15074#ifdef HAVE_SYS_PARAM_H
15075#include <sys/param.h>
15076#endif
15077
15078
15079#include <$ac_header>
15080_ACEOF
15081rm -f conftest.$ac_objext
15082if { (ac_try="$ac_compile"
15083case "(($ac_try" in
15084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085  *) ac_try_echo=$ac_try;;
15086esac
15087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088  (eval "$ac_compile") 2>conftest.er1
15089  ac_status=$?
15090  grep -v '^ *+' conftest.er1 >conftest.err
15091  rm -f conftest.er1
15092  cat conftest.err >&5
15093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094  (exit $ac_status); } && {
15095	 test -z "$ac_c_werror_flag" ||
15096	 test ! -s conftest.err
15097       } && test -s conftest.$ac_objext; then
15098  eval "$as_ac_Header=yes"
15099else
15100  echo "$as_me: failed program was:" >&5
15101sed 's/^/| /' conftest.$ac_ext >&5
15102
15103	eval "$as_ac_Header=no"
15104fi
15105
15106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15107fi
15108ac_res=`eval echo '${'$as_ac_Header'}'`
15109	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15110echo "${ECHO_T}$ac_res" >&6; }
15111if test `eval echo '${'$as_ac_Header'}'` = yes; then
15112  cat >>confdefs.h <<_ACEOF
15113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15114_ACEOF
15115
15116fi
15117
15118done
15119
15120
15121
15122
15123
15124for ac_func in sigaction sigset
15125do
15126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15127{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15129if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15130  echo $ECHO_N "(cached) $ECHO_C" >&6
15131else
15132  cat >conftest.$ac_ext <<_ACEOF
15133/* confdefs.h.  */
15134_ACEOF
15135cat confdefs.h >>conftest.$ac_ext
15136cat >>conftest.$ac_ext <<_ACEOF
15137/* end confdefs.h.  */
15138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15139   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15140#define $ac_func innocuous_$ac_func
15141
15142/* System header to define __stub macros and hopefully few prototypes,
15143    which can conflict with char $ac_func (); below.
15144    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15145    <limits.h> exists even on freestanding compilers.  */
15146
15147#ifdef __STDC__
15148# include <limits.h>
15149#else
15150# include <assert.h>
15151#endif
15152
15153#undef $ac_func
15154
15155/* Override any GCC internal prototype to avoid an error.
15156   Use char because int might match the return type of a GCC
15157   builtin and then its argument prototype would still apply.  */
15158#ifdef __cplusplus
15159extern "C"
15160#endif
15161char $ac_func ();
15162/* The GNU C library defines this for functions which it implements
15163    to always fail with ENOSYS.  Some functions are actually named
15164    something starting with __ and the normal name is an alias.  */
15165#if defined __stub_$ac_func || defined __stub___$ac_func
15166choke me
15167#endif
15168
15169int
15170main ()
15171{
15172return $ac_func ();
15173  ;
15174  return 0;
15175}
15176_ACEOF
15177rm -f conftest.$ac_objext conftest$ac_exeext
15178if { (ac_try="$ac_link"
15179case "(($ac_try" in
15180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181  *) ac_try_echo=$ac_try;;
15182esac
15183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184  (eval "$ac_link") 2>conftest.er1
15185  ac_status=$?
15186  grep -v '^ *+' conftest.er1 >conftest.err
15187  rm -f conftest.er1
15188  cat conftest.err >&5
15189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190  (exit $ac_status); } && {
15191	 test -z "$ac_c_werror_flag" ||
15192	 test ! -s conftest.err
15193       } && test -s conftest$ac_exeext &&
15194       $as_test_x conftest$ac_exeext; then
15195  eval "$as_ac_var=yes"
15196else
15197  echo "$as_me: failed program was:" >&5
15198sed 's/^/| /' conftest.$ac_ext >&5
15199
15200	eval "$as_ac_var=no"
15201fi
15202
15203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15204      conftest$ac_exeext conftest.$ac_ext
15205fi
15206ac_res=`eval echo '${'$as_ac_var'}'`
15207	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15208echo "${ECHO_T}$ac_res" >&6; }
15209if test `eval echo '${'$as_ac_var'}'` = yes; then
15210  cat >>confdefs.h <<_ACEOF
15211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15212_ACEOF
15213
15214fi
15215done
15216
15217
15218if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15219
15220{ echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15221echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15222if test "${ac_cv_lib_V3_sigset+set}" = set; then
15223  echo $ECHO_N "(cached) $ECHO_C" >&6
15224else
15225  ac_check_lib_save_LIBS=$LIBS
15226LIBS="-lV3  $LIBS"
15227cat >conftest.$ac_ext <<_ACEOF
15228/* confdefs.h.  */
15229_ACEOF
15230cat confdefs.h >>conftest.$ac_ext
15231cat >>conftest.$ac_ext <<_ACEOF
15232/* end confdefs.h.  */
15233
15234/* Override any GCC internal prototype to avoid an error.
15235   Use char because int might match the return type of a GCC
15236   builtin and then its argument prototype would still apply.  */
15237#ifdef __cplusplus
15238extern "C"
15239#endif
15240char sigset ();
15241int
15242main ()
15243{
15244return sigset ();
15245  ;
15246  return 0;
15247}
15248_ACEOF
15249rm -f conftest.$ac_objext conftest$ac_exeext
15250if { (ac_try="$ac_link"
15251case "(($ac_try" in
15252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253  *) ac_try_echo=$ac_try;;
15254esac
15255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256  (eval "$ac_link") 2>conftest.er1
15257  ac_status=$?
15258  grep -v '^ *+' conftest.er1 >conftest.err
15259  rm -f conftest.er1
15260  cat conftest.err >&5
15261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262  (exit $ac_status); } && {
15263	 test -z "$ac_c_werror_flag" ||
15264	 test ! -s conftest.err
15265       } && test -s conftest$ac_exeext &&
15266       $as_test_x conftest$ac_exeext; then
15267  ac_cv_lib_V3_sigset=yes
15268else
15269  echo "$as_me: failed program was:" >&5
15270sed 's/^/| /' conftest.$ac_ext >&5
15271
15272	ac_cv_lib_V3_sigset=no
15273fi
15274
15275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15276      conftest$ac_exeext conftest.$ac_ext
15277LIBS=$ac_check_lib_save_LIBS
15278fi
15279{ echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15280echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15281if test $ac_cv_lib_V3_sigset = yes; then
15282  cat >>confdefs.h <<_ACEOF
15283#define HAVE_LIBV3 1
15284_ACEOF
15285
15286  LIBS="-lV3 $LIBS"
15287
15288fi
15289
15290fi
15291
15292if test $ol_cv_msvc = yes ; then
15293   ol_cv_winsock=yes
15294fi
15295
15296if test "$ac_cv_header_winsock_h" = yes; then
15297	{ echo "$as_me:$LINENO: checking for winsock" >&5
15298echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15299if test "${ol_cv_winsock+set}" = set; then
15300  echo $ECHO_N "(cached) $ECHO_C" >&6
15301else
15302
15303	save_LIBS="$LIBS"
15304	for curlib in none ws2_32 wsock32; do
15305		if test $curlib != none ; then
15306	    	LIBS="$save_LIBS -l$curlib"
15307		fi
15308		cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h.  */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h.  */
15314#include <winsock.h>
15315
15316int
15317main ()
15318{
15319
15320			socket(0,0,0);
15321			select(0,NULL,NULL,NULL,NULL);
15322			closesocket(0);
15323			gethostname(NULL,0);
15324
15325  ;
15326  return 0;
15327}
15328_ACEOF
15329rm -f conftest.$ac_objext conftest$ac_exeext
15330if { (ac_try="$ac_link"
15331case "(($ac_try" in
15332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333  *) ac_try_echo=$ac_try;;
15334esac
15335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336  (eval "$ac_link") 2>conftest.er1
15337  ac_status=$?
15338  grep -v '^ *+' conftest.er1 >conftest.err
15339  rm -f conftest.er1
15340  cat conftest.err >&5
15341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342  (exit $ac_status); } && {
15343	 test -z "$ac_c_werror_flag" ||
15344	 test ! -s conftest.err
15345       } && test -s conftest$ac_exeext &&
15346       $as_test_x conftest$ac_exeext; then
15347  ol_cv_winsock=$curlib
15348else
15349  echo "$as_me: failed program was:" >&5
15350sed 's/^/| /' conftest.$ac_ext >&5
15351
15352	ol_cv_winsock=no
15353fi
15354
15355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15356      conftest$ac_exeext conftest.$ac_ext
15357
15358		test "$ol_cv_winsock" != no && break
15359	done
15360	LIBS="$save_LIBS"
15361
15362fi
15363{ echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15364echo "${ECHO_T}$ol_cv_winsock" >&6; }
15365
15366	if test $ol_cv_winsock != no ; then
15367
15368cat >>confdefs.h <<\_ACEOF
15369#define HAVE_WINSOCK 1
15370_ACEOF
15371
15372    	ac_cv_func_socket=yes
15373    	ac_cv_func_select=yes
15374    	ac_cv_func_closesocket=yes
15375    	ac_cv_func_gethostname=yes
15376
15377		if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15378        	LIBS="$LIBS -l$ol_cv_winsock"
15379		fi
15380
15381    	if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15382
15383cat >>confdefs.h <<\_ACEOF
15384#define HAVE_WINSOCK2 1
15385_ACEOF
15386
15387    	fi
15388	fi
15389fi
15390
15391
15392{ echo "$as_me:$LINENO: checking for socket" >&5
15393echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15394if test "${ac_cv_func_socket+set}" = set; then
15395  echo $ECHO_N "(cached) $ECHO_C" >&6
15396else
15397  cat >conftest.$ac_ext <<_ACEOF
15398/* confdefs.h.  */
15399_ACEOF
15400cat confdefs.h >>conftest.$ac_ext
15401cat >>conftest.$ac_ext <<_ACEOF
15402/* end confdefs.h.  */
15403/* Define socket to an innocuous variant, in case <limits.h> declares socket.
15404   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15405#define socket innocuous_socket
15406
15407/* System header to define __stub macros and hopefully few prototypes,
15408    which can conflict with char socket (); below.
15409    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15410    <limits.h> exists even on freestanding compilers.  */
15411
15412#ifdef __STDC__
15413# include <limits.h>
15414#else
15415# include <assert.h>
15416#endif
15417
15418#undef socket
15419
15420/* Override any GCC internal prototype to avoid an error.
15421   Use char because int might match the return type of a GCC
15422   builtin and then its argument prototype would still apply.  */
15423#ifdef __cplusplus
15424extern "C"
15425#endif
15426char socket ();
15427/* The GNU C library defines this for functions which it implements
15428    to always fail with ENOSYS.  Some functions are actually named
15429    something starting with __ and the normal name is an alias.  */
15430#if defined __stub_socket || defined __stub___socket
15431choke me
15432#endif
15433
15434int
15435main ()
15436{
15437return socket ();
15438  ;
15439  return 0;
15440}
15441_ACEOF
15442rm -f conftest.$ac_objext conftest$ac_exeext
15443if { (ac_try="$ac_link"
15444case "(($ac_try" in
15445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446  *) ac_try_echo=$ac_try;;
15447esac
15448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449  (eval "$ac_link") 2>conftest.er1
15450  ac_status=$?
15451  grep -v '^ *+' conftest.er1 >conftest.err
15452  rm -f conftest.er1
15453  cat conftest.err >&5
15454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455  (exit $ac_status); } && {
15456	 test -z "$ac_c_werror_flag" ||
15457	 test ! -s conftest.err
15458       } && test -s conftest$ac_exeext &&
15459       $as_test_x conftest$ac_exeext; then
15460  ac_cv_func_socket=yes
15461else
15462  echo "$as_me: failed program was:" >&5
15463sed 's/^/| /' conftest.$ac_ext >&5
15464
15465	ac_cv_func_socket=no
15466fi
15467
15468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15469      conftest$ac_exeext conftest.$ac_ext
15470fi
15471{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15472echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15473if test $ac_cv_func_socket = yes; then
15474  :
15475else
15476
15477
15478{ echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15479echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15480if test "${ac_cv_lib_socket_main+set}" = set; then
15481  echo $ECHO_N "(cached) $ECHO_C" >&6
15482else
15483  ac_check_lib_save_LIBS=$LIBS
15484LIBS="-lsocket  $LIBS"
15485cat >conftest.$ac_ext <<_ACEOF
15486/* confdefs.h.  */
15487_ACEOF
15488cat confdefs.h >>conftest.$ac_ext
15489cat >>conftest.$ac_ext <<_ACEOF
15490/* end confdefs.h.  */
15491
15492
15493int
15494main ()
15495{
15496return main ();
15497  ;
15498  return 0;
15499}
15500_ACEOF
15501rm -f conftest.$ac_objext conftest$ac_exeext
15502if { (ac_try="$ac_link"
15503case "(($ac_try" in
15504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505  *) ac_try_echo=$ac_try;;
15506esac
15507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508  (eval "$ac_link") 2>conftest.er1
15509  ac_status=$?
15510  grep -v '^ *+' conftest.er1 >conftest.err
15511  rm -f conftest.er1
15512  cat conftest.err >&5
15513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514  (exit $ac_status); } && {
15515	 test -z "$ac_c_werror_flag" ||
15516	 test ! -s conftest.err
15517       } && test -s conftest$ac_exeext &&
15518       $as_test_x conftest$ac_exeext; then
15519  ac_cv_lib_socket_main=yes
15520else
15521  echo "$as_me: failed program was:" >&5
15522sed 's/^/| /' conftest.$ac_ext >&5
15523
15524	ac_cv_lib_socket_main=no
15525fi
15526
15527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15528      conftest$ac_exeext conftest.$ac_ext
15529LIBS=$ac_check_lib_save_LIBS
15530fi
15531{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15532echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15533if test $ac_cv_lib_socket_main = yes; then
15534  cat >>confdefs.h <<_ACEOF
15535#define HAVE_LIBSOCKET 1
15536_ACEOF
15537
15538  LIBS="-lsocket $LIBS"
15539
15540fi
15541
15542
15543{ echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15544echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15545if test "${ac_cv_lib_net_socket+set}" = set; then
15546  echo $ECHO_N "(cached) $ECHO_C" >&6
15547else
15548  ac_check_lib_save_LIBS=$LIBS
15549LIBS="-lnet  $LIBS"
15550cat >conftest.$ac_ext <<_ACEOF
15551/* confdefs.h.  */
15552_ACEOF
15553cat confdefs.h >>conftest.$ac_ext
15554cat >>conftest.$ac_ext <<_ACEOF
15555/* end confdefs.h.  */
15556
15557/* Override any GCC internal prototype to avoid an error.
15558   Use char because int might match the return type of a GCC
15559   builtin and then its argument prototype would still apply.  */
15560#ifdef __cplusplus
15561extern "C"
15562#endif
15563char socket ();
15564int
15565main ()
15566{
15567return socket ();
15568  ;
15569  return 0;
15570}
15571_ACEOF
15572rm -f conftest.$ac_objext conftest$ac_exeext
15573if { (ac_try="$ac_link"
15574case "(($ac_try" in
15575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576  *) ac_try_echo=$ac_try;;
15577esac
15578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579  (eval "$ac_link") 2>conftest.er1
15580  ac_status=$?
15581  grep -v '^ *+' conftest.er1 >conftest.err
15582  rm -f conftest.er1
15583  cat conftest.err >&5
15584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585  (exit $ac_status); } && {
15586	 test -z "$ac_c_werror_flag" ||
15587	 test ! -s conftest.err
15588       } && test -s conftest$ac_exeext &&
15589       $as_test_x conftest$ac_exeext; then
15590  ac_cv_lib_net_socket=yes
15591else
15592  echo "$as_me: failed program was:" >&5
15593sed 's/^/| /' conftest.$ac_ext >&5
15594
15595	ac_cv_lib_net_socket=no
15596fi
15597
15598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15599      conftest$ac_exeext conftest.$ac_ext
15600LIBS=$ac_check_lib_save_LIBS
15601fi
15602{ echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15603echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15604if test $ac_cv_lib_net_socket = yes; then
15605  cat >>confdefs.h <<_ACEOF
15606#define HAVE_LIBNET 1
15607_ACEOF
15608
15609  LIBS="-lnet $LIBS"
15610
15611fi
15612
15613
15614{ echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15615echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15616if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15617  echo $ECHO_N "(cached) $ECHO_C" >&6
15618else
15619  ac_check_lib_save_LIBS=$LIBS
15620LIBS="-lnsl_s  $LIBS"
15621cat >conftest.$ac_ext <<_ACEOF
15622/* confdefs.h.  */
15623_ACEOF
15624cat confdefs.h >>conftest.$ac_ext
15625cat >>conftest.$ac_ext <<_ACEOF
15626/* end confdefs.h.  */
15627
15628
15629int
15630main ()
15631{
15632return main ();
15633  ;
15634  return 0;
15635}
15636_ACEOF
15637rm -f conftest.$ac_objext conftest$ac_exeext
15638if { (ac_try="$ac_link"
15639case "(($ac_try" in
15640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641  *) ac_try_echo=$ac_try;;
15642esac
15643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644  (eval "$ac_link") 2>conftest.er1
15645  ac_status=$?
15646  grep -v '^ *+' conftest.er1 >conftest.err
15647  rm -f conftest.er1
15648  cat conftest.err >&5
15649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650  (exit $ac_status); } && {
15651	 test -z "$ac_c_werror_flag" ||
15652	 test ! -s conftest.err
15653       } && test -s conftest$ac_exeext &&
15654       $as_test_x conftest$ac_exeext; then
15655  ac_cv_lib_nsl_s_main=yes
15656else
15657  echo "$as_me: failed program was:" >&5
15658sed 's/^/| /' conftest.$ac_ext >&5
15659
15660	ac_cv_lib_nsl_s_main=no
15661fi
15662
15663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15664      conftest$ac_exeext conftest.$ac_ext
15665LIBS=$ac_check_lib_save_LIBS
15666fi
15667{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15668echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15669if test $ac_cv_lib_nsl_s_main = yes; then
15670  cat >>confdefs.h <<_ACEOF
15671#define HAVE_LIBNSL_S 1
15672_ACEOF
15673
15674  LIBS="-lnsl_s $LIBS"
15675
15676fi
15677
15678
15679{ echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15680echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15681if test "${ac_cv_lib_nsl_main+set}" = set; then
15682  echo $ECHO_N "(cached) $ECHO_C" >&6
15683else
15684  ac_check_lib_save_LIBS=$LIBS
15685LIBS="-lnsl  $LIBS"
15686cat >conftest.$ac_ext <<_ACEOF
15687/* confdefs.h.  */
15688_ACEOF
15689cat confdefs.h >>conftest.$ac_ext
15690cat >>conftest.$ac_ext <<_ACEOF
15691/* end confdefs.h.  */
15692
15693
15694int
15695main ()
15696{
15697return main ();
15698  ;
15699  return 0;
15700}
15701_ACEOF
15702rm -f conftest.$ac_objext conftest$ac_exeext
15703if { (ac_try="$ac_link"
15704case "(($ac_try" in
15705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706  *) ac_try_echo=$ac_try;;
15707esac
15708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709  (eval "$ac_link") 2>conftest.er1
15710  ac_status=$?
15711  grep -v '^ *+' conftest.er1 >conftest.err
15712  rm -f conftest.er1
15713  cat conftest.err >&5
15714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715  (exit $ac_status); } && {
15716	 test -z "$ac_c_werror_flag" ||
15717	 test ! -s conftest.err
15718       } && test -s conftest$ac_exeext &&
15719       $as_test_x conftest$ac_exeext; then
15720  ac_cv_lib_nsl_main=yes
15721else
15722  echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
15725	ac_cv_lib_nsl_main=no
15726fi
15727
15728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15729      conftest$ac_exeext conftest.$ac_ext
15730LIBS=$ac_check_lib_save_LIBS
15731fi
15732{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15733echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15734if test $ac_cv_lib_nsl_main = yes; then
15735  cat >>confdefs.h <<_ACEOF
15736#define HAVE_LIBNSL 1
15737_ACEOF
15738
15739  LIBS="-lnsl $LIBS"
15740
15741fi
15742
15743
15744{ echo "$as_me:$LINENO: checking for socket in -linet" >&5
15745echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15746if test "${ac_cv_lib_inet_socket+set}" = set; then
15747  echo $ECHO_N "(cached) $ECHO_C" >&6
15748else
15749  ac_check_lib_save_LIBS=$LIBS
15750LIBS="-linet  $LIBS"
15751cat >conftest.$ac_ext <<_ACEOF
15752/* confdefs.h.  */
15753_ACEOF
15754cat confdefs.h >>conftest.$ac_ext
15755cat >>conftest.$ac_ext <<_ACEOF
15756/* end confdefs.h.  */
15757
15758/* Override any GCC internal prototype to avoid an error.
15759   Use char because int might match the return type of a GCC
15760   builtin and then its argument prototype would still apply.  */
15761#ifdef __cplusplus
15762extern "C"
15763#endif
15764char socket ();
15765int
15766main ()
15767{
15768return socket ();
15769  ;
15770  return 0;
15771}
15772_ACEOF
15773rm -f conftest.$ac_objext conftest$ac_exeext
15774if { (ac_try="$ac_link"
15775case "(($ac_try" in
15776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777  *) ac_try_echo=$ac_try;;
15778esac
15779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780  (eval "$ac_link") 2>conftest.er1
15781  ac_status=$?
15782  grep -v '^ *+' conftest.er1 >conftest.err
15783  rm -f conftest.er1
15784  cat conftest.err >&5
15785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786  (exit $ac_status); } && {
15787	 test -z "$ac_c_werror_flag" ||
15788	 test ! -s conftest.err
15789       } && test -s conftest$ac_exeext &&
15790       $as_test_x conftest$ac_exeext; then
15791  ac_cv_lib_inet_socket=yes
15792else
15793  echo "$as_me: failed program was:" >&5
15794sed 's/^/| /' conftest.$ac_ext >&5
15795
15796	ac_cv_lib_inet_socket=no
15797fi
15798
15799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15800      conftest$ac_exeext conftest.$ac_ext
15801LIBS=$ac_check_lib_save_LIBS
15802fi
15803{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15804echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15805if test $ac_cv_lib_inet_socket = yes; then
15806  cat >>confdefs.h <<_ACEOF
15807#define HAVE_LIBINET 1
15808_ACEOF
15809
15810  LIBS="-linet $LIBS"
15811
15812fi
15813
15814
15815{ echo "$as_me:$LINENO: checking for main in -lgen" >&5
15816echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15817if test "${ac_cv_lib_gen_main+set}" = set; then
15818  echo $ECHO_N "(cached) $ECHO_C" >&6
15819else
15820  ac_check_lib_save_LIBS=$LIBS
15821LIBS="-lgen  $LIBS"
15822cat >conftest.$ac_ext <<_ACEOF
15823/* confdefs.h.  */
15824_ACEOF
15825cat confdefs.h >>conftest.$ac_ext
15826cat >>conftest.$ac_ext <<_ACEOF
15827/* end confdefs.h.  */
15828
15829
15830int
15831main ()
15832{
15833return main ();
15834  ;
15835  return 0;
15836}
15837_ACEOF
15838rm -f conftest.$ac_objext conftest$ac_exeext
15839if { (ac_try="$ac_link"
15840case "(($ac_try" in
15841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842  *) ac_try_echo=$ac_try;;
15843esac
15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845  (eval "$ac_link") 2>conftest.er1
15846  ac_status=$?
15847  grep -v '^ *+' conftest.er1 >conftest.err
15848  rm -f conftest.er1
15849  cat conftest.err >&5
15850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851  (exit $ac_status); } && {
15852	 test -z "$ac_c_werror_flag" ||
15853	 test ! -s conftest.err
15854       } && test -s conftest$ac_exeext &&
15855       $as_test_x conftest$ac_exeext; then
15856  ac_cv_lib_gen_main=yes
15857else
15858  echo "$as_me: failed program was:" >&5
15859sed 's/^/| /' conftest.$ac_ext >&5
15860
15861	ac_cv_lib_gen_main=no
15862fi
15863
15864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15865      conftest$ac_exeext conftest.$ac_ext
15866LIBS=$ac_check_lib_save_LIBS
15867fi
15868{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15869echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15870if test $ac_cv_lib_gen_main = yes; then
15871  cat >>confdefs.h <<_ACEOF
15872#define HAVE_LIBGEN 1
15873_ACEOF
15874
15875  LIBS="-lgen $LIBS"
15876
15877fi
15878
15879
15880fi
15881
15882
15883{ echo "$as_me:$LINENO: checking for select" >&5
15884echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15885if test "${ac_cv_func_select+set}" = set; then
15886  echo $ECHO_N "(cached) $ECHO_C" >&6
15887else
15888  cat >conftest.$ac_ext <<_ACEOF
15889/* confdefs.h.  */
15890_ACEOF
15891cat confdefs.h >>conftest.$ac_ext
15892cat >>conftest.$ac_ext <<_ACEOF
15893/* end confdefs.h.  */
15894/* Define select to an innocuous variant, in case <limits.h> declares select.
15895   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15896#define select innocuous_select
15897
15898/* System header to define __stub macros and hopefully few prototypes,
15899    which can conflict with char select (); below.
15900    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15901    <limits.h> exists even on freestanding compilers.  */
15902
15903#ifdef __STDC__
15904# include <limits.h>
15905#else
15906# include <assert.h>
15907#endif
15908
15909#undef select
15910
15911/* Override any GCC internal prototype to avoid an error.
15912   Use char because int might match the return type of a GCC
15913   builtin and then its argument prototype would still apply.  */
15914#ifdef __cplusplus
15915extern "C"
15916#endif
15917char select ();
15918/* The GNU C library defines this for functions which it implements
15919    to always fail with ENOSYS.  Some functions are actually named
15920    something starting with __ and the normal name is an alias.  */
15921#if defined __stub_select || defined __stub___select
15922choke me
15923#endif
15924
15925int
15926main ()
15927{
15928return select ();
15929  ;
15930  return 0;
15931}
15932_ACEOF
15933rm -f conftest.$ac_objext conftest$ac_exeext
15934if { (ac_try="$ac_link"
15935case "(($ac_try" in
15936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937  *) ac_try_echo=$ac_try;;
15938esac
15939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15940  (eval "$ac_link") 2>conftest.er1
15941  ac_status=$?
15942  grep -v '^ *+' conftest.er1 >conftest.err
15943  rm -f conftest.er1
15944  cat conftest.err >&5
15945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946  (exit $ac_status); } && {
15947	 test -z "$ac_c_werror_flag" ||
15948	 test ! -s conftest.err
15949       } && test -s conftest$ac_exeext &&
15950       $as_test_x conftest$ac_exeext; then
15951  ac_cv_func_select=yes
15952else
15953  echo "$as_me: failed program was:" >&5
15954sed 's/^/| /' conftest.$ac_ext >&5
15955
15956	ac_cv_func_select=no
15957fi
15958
15959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15960      conftest$ac_exeext conftest.$ac_ext
15961fi
15962{ echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15963echo "${ECHO_T}$ac_cv_func_select" >&6; }
15964if test $ac_cv_func_select = yes; then
15965  :
15966else
15967  { { echo "$as_me:$LINENO: error: select() required." >&5
15968echo "$as_me: error: select() required." >&2;}
15969   { (exit 1); exit 1; }; }
15970fi
15971
15972
15973if test "${ac_cv_header_winsock_h}" != yes; then
15974
15975
15976for ac_header in sys/select.h sys/socket.h
15977do
15978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15980  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983  echo $ECHO_N "(cached) $ECHO_C" >&6
15984fi
15985ac_res=`eval echo '${'$as_ac_Header'}'`
15986	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15987echo "${ECHO_T}$ac_res" >&6; }
15988else
15989  # Is the header compilable?
15990{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15992cat >conftest.$ac_ext <<_ACEOF
15993/* confdefs.h.  */
15994_ACEOF
15995cat confdefs.h >>conftest.$ac_ext
15996cat >>conftest.$ac_ext <<_ACEOF
15997/* end confdefs.h.  */
15998$ac_includes_default
15999#include <$ac_header>
16000_ACEOF
16001rm -f conftest.$ac_objext
16002if { (ac_try="$ac_compile"
16003case "(($ac_try" in
16004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005  *) ac_try_echo=$ac_try;;
16006esac
16007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008  (eval "$ac_compile") 2>conftest.er1
16009  ac_status=$?
16010  grep -v '^ *+' conftest.er1 >conftest.err
16011  rm -f conftest.er1
16012  cat conftest.err >&5
16013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014  (exit $ac_status); } && {
16015	 test -z "$ac_c_werror_flag" ||
16016	 test ! -s conftest.err
16017       } && test -s conftest.$ac_objext; then
16018  ac_header_compiler=yes
16019else
16020  echo "$as_me: failed program was:" >&5
16021sed 's/^/| /' conftest.$ac_ext >&5
16022
16023	ac_header_compiler=no
16024fi
16025
16026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16028echo "${ECHO_T}$ac_header_compiler" >&6; }
16029
16030# Is the header present?
16031{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16033cat >conftest.$ac_ext <<_ACEOF
16034/* confdefs.h.  */
16035_ACEOF
16036cat confdefs.h >>conftest.$ac_ext
16037cat >>conftest.$ac_ext <<_ACEOF
16038/* end confdefs.h.  */
16039#include <$ac_header>
16040_ACEOF
16041if { (ac_try="$ac_cpp conftest.$ac_ext"
16042case "(($ac_try" in
16043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044  *) ac_try_echo=$ac_try;;
16045esac
16046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16048  ac_status=$?
16049  grep -v '^ *+' conftest.er1 >conftest.err
16050  rm -f conftest.er1
16051  cat conftest.err >&5
16052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053  (exit $ac_status); } >/dev/null && {
16054	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16055	 test ! -s conftest.err
16056       }; then
16057  ac_header_preproc=yes
16058else
16059  echo "$as_me: failed program was:" >&5
16060sed 's/^/| /' conftest.$ac_ext >&5
16061
16062  ac_header_preproc=no
16063fi
16064
16065rm -f conftest.err conftest.$ac_ext
16066{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16067echo "${ECHO_T}$ac_header_preproc" >&6; }
16068
16069# So?  What about this header?
16070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16071  yes:no: )
16072    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16074    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16076    ac_header_preproc=yes
16077    ;;
16078  no:yes:* )
16079    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16081    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16082echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16083    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16085    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16086echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16089    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16091    ( cat <<\_ASBOX
16092## --------------------------------------------- ##
16093## Report this to <http://www.openldap.org/its/> ##
16094## --------------------------------------------- ##
16095_ASBOX
16096     ) | sed "s/^/$as_me: WARNING:     /" >&2
16097    ;;
16098esac
16099{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102  echo $ECHO_N "(cached) $ECHO_C" >&6
16103else
16104  eval "$as_ac_Header=\$ac_header_preproc"
16105fi
16106ac_res=`eval echo '${'$as_ac_Header'}'`
16107	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16108echo "${ECHO_T}$ac_res" >&6; }
16109
16110fi
16111if test `eval echo '${'$as_ac_Header'}'` = yes; then
16112  cat >>confdefs.h <<_ACEOF
16113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16114_ACEOF
16115
16116fi
16117
16118done
16119
16120{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
16121echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16122if test "${ac_cv_func_select_args+set}" = set; then
16123  echo $ECHO_N "(cached) $ECHO_C" >&6
16124else
16125  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16126 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16127  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16128   cat >conftest.$ac_ext <<_ACEOF
16129/* confdefs.h.  */
16130_ACEOF
16131cat confdefs.h >>conftest.$ac_ext
16132cat >>conftest.$ac_ext <<_ACEOF
16133/* end confdefs.h.  */
16134$ac_includes_default
16135#ifdef HAVE_SYS_SELECT_H
16136# include <sys/select.h>
16137#endif
16138#ifdef HAVE_SYS_SOCKET_H
16139# include <sys/socket.h>
16140#endif
16141
16142int
16143main ()
16144{
16145extern int select ($ac_arg1,
16146					    $ac_arg234, $ac_arg234, $ac_arg234,
16147					    $ac_arg5);
16148  ;
16149  return 0;
16150}
16151_ACEOF
16152rm -f conftest.$ac_objext
16153if { (ac_try="$ac_compile"
16154case "(($ac_try" in
16155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156  *) ac_try_echo=$ac_try;;
16157esac
16158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159  (eval "$ac_compile") 2>conftest.er1
16160  ac_status=$?
16161  grep -v '^ *+' conftest.er1 >conftest.err
16162  rm -f conftest.er1
16163  cat conftest.err >&5
16164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165  (exit $ac_status); } && {
16166	 test -z "$ac_c_werror_flag" ||
16167	 test ! -s conftest.err
16168       } && test -s conftest.$ac_objext; then
16169  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16170else
16171  echo "$as_me: failed program was:" >&5
16172sed 's/^/| /' conftest.$ac_ext >&5
16173
16174
16175fi
16176
16177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178  done
16179 done
16180done
16181# Provide a safe default value.
16182: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16183
16184fi
16185{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16186echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16187ac_save_IFS=$IFS; IFS=','
16188set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16189IFS=$ac_save_IFS
16190shift
16191
16192cat >>confdefs.h <<_ACEOF
16193#define SELECT_TYPE_ARG1 $1
16194_ACEOF
16195
16196
16197cat >>confdefs.h <<_ACEOF
16198#define SELECT_TYPE_ARG234 ($2)
16199_ACEOF
16200
16201
16202cat >>confdefs.h <<_ACEOF
16203#define SELECT_TYPE_ARG5 ($3)
16204_ACEOF
16205
16206rm -f -r conftest*
16207
16208fi
16209
16210
16211
16212for ac_func in poll
16213do
16214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16215{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16218  echo $ECHO_N "(cached) $ECHO_C" >&6
16219else
16220  cat >conftest.$ac_ext <<_ACEOF
16221/* confdefs.h.  */
16222_ACEOF
16223cat confdefs.h >>conftest.$ac_ext
16224cat >>conftest.$ac_ext <<_ACEOF
16225/* end confdefs.h.  */
16226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16227   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16228#define $ac_func innocuous_$ac_func
16229
16230/* System header to define __stub macros and hopefully few prototypes,
16231    which can conflict with char $ac_func (); below.
16232    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16233    <limits.h> exists even on freestanding compilers.  */
16234
16235#ifdef __STDC__
16236# include <limits.h>
16237#else
16238# include <assert.h>
16239#endif
16240
16241#undef $ac_func
16242
16243/* Override any GCC internal prototype to avoid an error.
16244   Use char because int might match the return type of a GCC
16245   builtin and then its argument prototype would still apply.  */
16246#ifdef __cplusplus
16247extern "C"
16248#endif
16249char $ac_func ();
16250/* The GNU C library defines this for functions which it implements
16251    to always fail with ENOSYS.  Some functions are actually named
16252    something starting with __ and the normal name is an alias.  */
16253#if defined __stub_$ac_func || defined __stub___$ac_func
16254choke me
16255#endif
16256
16257int
16258main ()
16259{
16260return $ac_func ();
16261  ;
16262  return 0;
16263}
16264_ACEOF
16265rm -f conftest.$ac_objext conftest$ac_exeext
16266if { (ac_try="$ac_link"
16267case "(($ac_try" in
16268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269  *) ac_try_echo=$ac_try;;
16270esac
16271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272  (eval "$ac_link") 2>conftest.er1
16273  ac_status=$?
16274  grep -v '^ *+' conftest.er1 >conftest.err
16275  rm -f conftest.er1
16276  cat conftest.err >&5
16277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278  (exit $ac_status); } && {
16279	 test -z "$ac_c_werror_flag" ||
16280	 test ! -s conftest.err
16281       } && test -s conftest$ac_exeext &&
16282       $as_test_x conftest$ac_exeext; then
16283  eval "$as_ac_var=yes"
16284else
16285  echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
16288	eval "$as_ac_var=no"
16289fi
16290
16291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16292      conftest$ac_exeext conftest.$ac_ext
16293fi
16294ac_res=`eval echo '${'$as_ac_var'}'`
16295	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16296echo "${ECHO_T}$ac_res" >&6; }
16297if test `eval echo '${'$as_ac_var'}'` = yes; then
16298  cat >>confdefs.h <<_ACEOF
16299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16300_ACEOF
16301
16302fi
16303done
16304
16305if test $ac_cv_func_poll = yes; then
16306
16307
16308for ac_header in poll.h sys/poll.h
16309do
16310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16312  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16315  echo $ECHO_N "(cached) $ECHO_C" >&6
16316fi
16317ac_res=`eval echo '${'$as_ac_Header'}'`
16318	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16319echo "${ECHO_T}$ac_res" >&6; }
16320else
16321  # Is the header compilable?
16322{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16323echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16324cat >conftest.$ac_ext <<_ACEOF
16325/* confdefs.h.  */
16326_ACEOF
16327cat confdefs.h >>conftest.$ac_ext
16328cat >>conftest.$ac_ext <<_ACEOF
16329/* end confdefs.h.  */
16330$ac_includes_default
16331#include <$ac_header>
16332_ACEOF
16333rm -f conftest.$ac_objext
16334if { (ac_try="$ac_compile"
16335case "(($ac_try" in
16336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337  *) ac_try_echo=$ac_try;;
16338esac
16339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340  (eval "$ac_compile") 2>conftest.er1
16341  ac_status=$?
16342  grep -v '^ *+' conftest.er1 >conftest.err
16343  rm -f conftest.er1
16344  cat conftest.err >&5
16345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346  (exit $ac_status); } && {
16347	 test -z "$ac_c_werror_flag" ||
16348	 test ! -s conftest.err
16349       } && test -s conftest.$ac_objext; then
16350  ac_header_compiler=yes
16351else
16352  echo "$as_me: failed program was:" >&5
16353sed 's/^/| /' conftest.$ac_ext >&5
16354
16355	ac_header_compiler=no
16356fi
16357
16358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16359{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16360echo "${ECHO_T}$ac_header_compiler" >&6; }
16361
16362# Is the header present?
16363{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16365cat >conftest.$ac_ext <<_ACEOF
16366/* confdefs.h.  */
16367_ACEOF
16368cat confdefs.h >>conftest.$ac_ext
16369cat >>conftest.$ac_ext <<_ACEOF
16370/* end confdefs.h.  */
16371#include <$ac_header>
16372_ACEOF
16373if { (ac_try="$ac_cpp conftest.$ac_ext"
16374case "(($ac_try" in
16375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376  *) ac_try_echo=$ac_try;;
16377esac
16378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16380  ac_status=$?
16381  grep -v '^ *+' conftest.er1 >conftest.err
16382  rm -f conftest.er1
16383  cat conftest.err >&5
16384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385  (exit $ac_status); } >/dev/null && {
16386	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16387	 test ! -s conftest.err
16388       }; then
16389  ac_header_preproc=yes
16390else
16391  echo "$as_me: failed program was:" >&5
16392sed 's/^/| /' conftest.$ac_ext >&5
16393
16394  ac_header_preproc=no
16395fi
16396
16397rm -f conftest.err conftest.$ac_ext
16398{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16399echo "${ECHO_T}$ac_header_preproc" >&6; }
16400
16401# So?  What about this header?
16402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16403  yes:no: )
16404    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16406    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16408    ac_header_preproc=yes
16409    ;;
16410  no:yes:* )
16411    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16413    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16414echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16415    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16417    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16418echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16419    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16421    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16423    ( cat <<\_ASBOX
16424## --------------------------------------------- ##
16425## Report this to <http://www.openldap.org/its/> ##
16426## --------------------------------------------- ##
16427_ASBOX
16428     ) | sed "s/^/$as_me: WARNING:     /" >&2
16429    ;;
16430esac
16431{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16434  echo $ECHO_N "(cached) $ECHO_C" >&6
16435else
16436  eval "$as_ac_Header=\$ac_header_preproc"
16437fi
16438ac_res=`eval echo '${'$as_ac_Header'}'`
16439	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16440echo "${ECHO_T}$ac_res" >&6; }
16441
16442fi
16443if test `eval echo '${'$as_ac_Header'}'` = yes; then
16444  cat >>confdefs.h <<_ACEOF
16445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16446_ACEOF
16447
16448fi
16449
16450done
16451
16452fi
16453
16454
16455for ac_header in sys/epoll.h
16456do
16457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16459  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16462  echo $ECHO_N "(cached) $ECHO_C" >&6
16463fi
16464ac_res=`eval echo '${'$as_ac_Header'}'`
16465	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16466echo "${ECHO_T}$ac_res" >&6; }
16467else
16468  # Is the header compilable?
16469{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16471cat >conftest.$ac_ext <<_ACEOF
16472/* confdefs.h.  */
16473_ACEOF
16474cat confdefs.h >>conftest.$ac_ext
16475cat >>conftest.$ac_ext <<_ACEOF
16476/* end confdefs.h.  */
16477$ac_includes_default
16478#include <$ac_header>
16479_ACEOF
16480rm -f conftest.$ac_objext
16481if { (ac_try="$ac_compile"
16482case "(($ac_try" in
16483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484  *) ac_try_echo=$ac_try;;
16485esac
16486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487  (eval "$ac_compile") 2>conftest.er1
16488  ac_status=$?
16489  grep -v '^ *+' conftest.er1 >conftest.err
16490  rm -f conftest.er1
16491  cat conftest.err >&5
16492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493  (exit $ac_status); } && {
16494	 test -z "$ac_c_werror_flag" ||
16495	 test ! -s conftest.err
16496       } && test -s conftest.$ac_objext; then
16497  ac_header_compiler=yes
16498else
16499  echo "$as_me: failed program was:" >&5
16500sed 's/^/| /' conftest.$ac_ext >&5
16501
16502	ac_header_compiler=no
16503fi
16504
16505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16506{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16507echo "${ECHO_T}$ac_header_compiler" >&6; }
16508
16509# Is the header present?
16510{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16512cat >conftest.$ac_ext <<_ACEOF
16513/* confdefs.h.  */
16514_ACEOF
16515cat confdefs.h >>conftest.$ac_ext
16516cat >>conftest.$ac_ext <<_ACEOF
16517/* end confdefs.h.  */
16518#include <$ac_header>
16519_ACEOF
16520if { (ac_try="$ac_cpp conftest.$ac_ext"
16521case "(($ac_try" in
16522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523  *) ac_try_echo=$ac_try;;
16524esac
16525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16527  ac_status=$?
16528  grep -v '^ *+' conftest.er1 >conftest.err
16529  rm -f conftest.er1
16530  cat conftest.err >&5
16531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532  (exit $ac_status); } >/dev/null && {
16533	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16534	 test ! -s conftest.err
16535       }; then
16536  ac_header_preproc=yes
16537else
16538  echo "$as_me: failed program was:" >&5
16539sed 's/^/| /' conftest.$ac_ext >&5
16540
16541  ac_header_preproc=no
16542fi
16543
16544rm -f conftest.err conftest.$ac_ext
16545{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16546echo "${ECHO_T}$ac_header_preproc" >&6; }
16547
16548# So?  What about this header?
16549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16550  yes:no: )
16551    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16553    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16555    ac_header_preproc=yes
16556    ;;
16557  no:yes:* )
16558    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16560    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16561echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16562    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16564    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16565echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16566    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16568    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16570    ( cat <<\_ASBOX
16571## --------------------------------------------- ##
16572## Report this to <http://www.openldap.org/its/> ##
16573## --------------------------------------------- ##
16574_ASBOX
16575     ) | sed "s/^/$as_me: WARNING:     /" >&2
16576    ;;
16577esac
16578{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16581  echo $ECHO_N "(cached) $ECHO_C" >&6
16582else
16583  eval "$as_ac_Header=\$ac_header_preproc"
16584fi
16585ac_res=`eval echo '${'$as_ac_Header'}'`
16586	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16587echo "${ECHO_T}$ac_res" >&6; }
16588
16589fi
16590if test `eval echo '${'$as_ac_Header'}'` = yes; then
16591  cat >>confdefs.h <<_ACEOF
16592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16593_ACEOF
16594
16595fi
16596
16597done
16598
16599if test "${ac_cv_header_sys_epoll_h}" = yes; then
16600	{ echo "$as_me:$LINENO: checking for epoll system call" >&5
16601echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16602	if test "$cross_compiling" = yes; then
16603  { echo "$as_me:$LINENO: result: no" >&5
16604echo "${ECHO_T}no" >&6; }
16605else
16606  cat >conftest.$ac_ext <<_ACEOF
16607/* confdefs.h.  */
16608_ACEOF
16609cat confdefs.h >>conftest.$ac_ext
16610cat >>conftest.$ac_ext <<_ACEOF
16611/* end confdefs.h.  */
16612int main(int argc, char **argv)
16613{
16614	int epfd = epoll_create(256);
16615	exit (epfd == -1 ? 1 : 0);
16616}
16617_ACEOF
16618rm -f conftest$ac_exeext
16619if { (ac_try="$ac_link"
16620case "(($ac_try" in
16621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622  *) ac_try_echo=$ac_try;;
16623esac
16624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625  (eval "$ac_link") 2>&5
16626  ac_status=$?
16627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16629  { (case "(($ac_try" in
16630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631  *) ac_try_echo=$ac_try;;
16632esac
16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634  (eval "$ac_try") 2>&5
16635  ac_status=$?
16636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637  (exit $ac_status); }; }; then
16638  { echo "$as_me:$LINENO: result: yes" >&5
16639echo "${ECHO_T}yes" >&6; }
16640
16641cat >>confdefs.h <<\_ACEOF
16642#define HAVE_EPOLL 1
16643_ACEOF
16644
16645else
16646  echo "$as_me: program exited with status $ac_status" >&5
16647echo "$as_me: failed program was:" >&5
16648sed 's/^/| /' conftest.$ac_ext >&5
16649
16650( exit $ac_status )
16651{ echo "$as_me:$LINENO: result: no" >&5
16652echo "${ECHO_T}no" >&6; }
16653fi
16654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16655fi
16656
16657
16658fi
16659
16660
16661for ac_header in sys/event.h
16662do
16663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16665  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16668  echo $ECHO_N "(cached) $ECHO_C" >&6
16669fi
16670ac_res=`eval echo '${'$as_ac_Header'}'`
16671	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16672echo "${ECHO_T}$ac_res" >&6; }
16673else
16674  # Is the header compilable?
16675{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16676echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16677cat >conftest.$ac_ext <<_ACEOF
16678/* confdefs.h.  */
16679_ACEOF
16680cat confdefs.h >>conftest.$ac_ext
16681cat >>conftest.$ac_ext <<_ACEOF
16682/* end confdefs.h.  */
16683$ac_includes_default
16684#include <$ac_header>
16685_ACEOF
16686rm -f conftest.$ac_objext
16687if { (ac_try="$ac_compile"
16688case "(($ac_try" in
16689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690  *) ac_try_echo=$ac_try;;
16691esac
16692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693  (eval "$ac_compile") 2>conftest.er1
16694  ac_status=$?
16695  grep -v '^ *+' conftest.er1 >conftest.err
16696  rm -f conftest.er1
16697  cat conftest.err >&5
16698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699  (exit $ac_status); } && {
16700	 test -z "$ac_c_werror_flag" ||
16701	 test ! -s conftest.err
16702       } && test -s conftest.$ac_objext; then
16703  ac_header_compiler=yes
16704else
16705  echo "$as_me: failed program was:" >&5
16706sed 's/^/| /' conftest.$ac_ext >&5
16707
16708	ac_header_compiler=no
16709fi
16710
16711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16712{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16713echo "${ECHO_T}$ac_header_compiler" >&6; }
16714
16715# Is the header present?
16716{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16718cat >conftest.$ac_ext <<_ACEOF
16719/* confdefs.h.  */
16720_ACEOF
16721cat confdefs.h >>conftest.$ac_ext
16722cat >>conftest.$ac_ext <<_ACEOF
16723/* end confdefs.h.  */
16724#include <$ac_header>
16725_ACEOF
16726if { (ac_try="$ac_cpp conftest.$ac_ext"
16727case "(($ac_try" in
16728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729  *) ac_try_echo=$ac_try;;
16730esac
16731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16733  ac_status=$?
16734  grep -v '^ *+' conftest.er1 >conftest.err
16735  rm -f conftest.er1
16736  cat conftest.err >&5
16737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738  (exit $ac_status); } >/dev/null && {
16739	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16740	 test ! -s conftest.err
16741       }; then
16742  ac_header_preproc=yes
16743else
16744  echo "$as_me: failed program was:" >&5
16745sed 's/^/| /' conftest.$ac_ext >&5
16746
16747  ac_header_preproc=no
16748fi
16749
16750rm -f conftest.err conftest.$ac_ext
16751{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16752echo "${ECHO_T}$ac_header_preproc" >&6; }
16753
16754# So?  What about this header?
16755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16756  yes:no: )
16757    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16759    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16761    ac_header_preproc=yes
16762    ;;
16763  no:yes:* )
16764    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16766    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16767echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16768    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16770    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16771echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16772    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16774    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16776    ( cat <<\_ASBOX
16777## --------------------------------------------- ##
16778## Report this to <http://www.openldap.org/its/> ##
16779## --------------------------------------------- ##
16780_ASBOX
16781     ) | sed "s/^/$as_me: WARNING:     /" >&2
16782    ;;
16783esac
16784{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16787  echo $ECHO_N "(cached) $ECHO_C" >&6
16788else
16789  eval "$as_ac_Header=\$ac_header_preproc"
16790fi
16791ac_res=`eval echo '${'$as_ac_Header'}'`
16792	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16793echo "${ECHO_T}$ac_res" >&6; }
16794
16795fi
16796if test `eval echo '${'$as_ac_Header'}'` = yes; then
16797  cat >>confdefs.h <<_ACEOF
16798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16799_ACEOF
16800
16801fi
16802
16803done
16804
16805if test "${ac_cv_header_sys_event_h}" = yes; then
16806{ echo "$as_me:$LINENO: checking for kqueue system call" >&5
16807echo $ECHO_N "checking for kqueue system call... $ECHO_C" >&6; }
16808if test "$cross_compiling" = yes; then
16809  { echo "$as_me:$LINENO: result: no" >&5
16810echo "${ECHO_T}no" >&6; }
16811else
16812  cat >conftest.$ac_ext <<_ACEOF
16813/* confdefs.h.  */
16814_ACEOF
16815cat confdefs.h >>conftest.$ac_ext
16816cat >>conftest.$ac_ext <<_ACEOF
16817/* end confdefs.h.  */
16818int main(int argc, char **argv)
16819{
16820	int kqfd = kqueue();
16821	exit (kqfd == -1 ? 1 : 0);
16822}
16823_ACEOF
16824rm -f conftest$ac_exeext
16825if { (ac_try="$ac_link"
16826case "(($ac_try" in
16827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828  *) ac_try_echo=$ac_try;;
16829esac
16830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831  (eval "$ac_link") 2>&5
16832  ac_status=$?
16833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16835  { (case "(($ac_try" in
16836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837  *) ac_try_echo=$ac_try;;
16838esac
16839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840  (eval "$ac_try") 2>&5
16841  ac_status=$?
16842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843  (exit $ac_status); }; }; then
16844  { echo "$as_me:$LINENO: result: yes" >&5
16845echo "${ECHO_T}yes" >&6; }
16846
16847cat >>confdefs.h <<\_ACEOF
16848#define HAVE_KQUEUE 1
16849_ACEOF
16850
16851else
16852  echo "$as_me: program exited with status $ac_status" >&5
16853echo "$as_me: failed program was:" >&5
16854sed 's/^/| /' conftest.$ac_ext >&5
16855
16856( exit $ac_status )
16857{ echo "$as_me:$LINENO: result: no" >&5
16858echo "${ECHO_T}no" >&6; }
16859fi
16860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16861fi
16862
16863
16864fi
16865
16866
16867for ac_header in sys/devpoll.h
16868do
16869as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16870if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16871  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16874  echo $ECHO_N "(cached) $ECHO_C" >&6
16875fi
16876ac_res=`eval echo '${'$as_ac_Header'}'`
16877	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16878echo "${ECHO_T}$ac_res" >&6; }
16879else
16880  # Is the header compilable?
16881{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16882echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16883cat >conftest.$ac_ext <<_ACEOF
16884/* confdefs.h.  */
16885_ACEOF
16886cat confdefs.h >>conftest.$ac_ext
16887cat >>conftest.$ac_ext <<_ACEOF
16888/* end confdefs.h.  */
16889$ac_includes_default
16890#include <$ac_header>
16891_ACEOF
16892rm -f conftest.$ac_objext
16893if { (ac_try="$ac_compile"
16894case "(($ac_try" in
16895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896  *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899  (eval "$ac_compile") 2>conftest.er1
16900  ac_status=$?
16901  grep -v '^ *+' conftest.er1 >conftest.err
16902  rm -f conftest.er1
16903  cat conftest.err >&5
16904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905  (exit $ac_status); } && {
16906	 test -z "$ac_c_werror_flag" ||
16907	 test ! -s conftest.err
16908       } && test -s conftest.$ac_objext; then
16909  ac_header_compiler=yes
16910else
16911  echo "$as_me: failed program was:" >&5
16912sed 's/^/| /' conftest.$ac_ext >&5
16913
16914	ac_header_compiler=no
16915fi
16916
16917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16919echo "${ECHO_T}$ac_header_compiler" >&6; }
16920
16921# Is the header present?
16922{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16923echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16924cat >conftest.$ac_ext <<_ACEOF
16925/* confdefs.h.  */
16926_ACEOF
16927cat confdefs.h >>conftest.$ac_ext
16928cat >>conftest.$ac_ext <<_ACEOF
16929/* end confdefs.h.  */
16930#include <$ac_header>
16931_ACEOF
16932if { (ac_try="$ac_cpp conftest.$ac_ext"
16933case "(($ac_try" in
16934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935  *) ac_try_echo=$ac_try;;
16936esac
16937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16939  ac_status=$?
16940  grep -v '^ *+' conftest.er1 >conftest.err
16941  rm -f conftest.er1
16942  cat conftest.err >&5
16943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944  (exit $ac_status); } >/dev/null && {
16945	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16946	 test ! -s conftest.err
16947       }; then
16948  ac_header_preproc=yes
16949else
16950  echo "$as_me: failed program was:" >&5
16951sed 's/^/| /' conftest.$ac_ext >&5
16952
16953  ac_header_preproc=no
16954fi
16955
16956rm -f conftest.err conftest.$ac_ext
16957{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16958echo "${ECHO_T}$ac_header_preproc" >&6; }
16959
16960# So?  What about this header?
16961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16962  yes:no: )
16963    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16964echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16965    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16966echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16967    ac_header_preproc=yes
16968    ;;
16969  no:yes:* )
16970    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16972    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16973echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16974    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16975echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16976    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16977echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16978    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16979echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16980    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16981echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16982    ( cat <<\_ASBOX
16983## --------------------------------------------- ##
16984## Report this to <http://www.openldap.org/its/> ##
16985## --------------------------------------------- ##
16986_ASBOX
16987     ) | sed "s/^/$as_me: WARNING:     /" >&2
16988    ;;
16989esac
16990{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16993  echo $ECHO_N "(cached) $ECHO_C" >&6
16994else
16995  eval "$as_ac_Header=\$ac_header_preproc"
16996fi
16997ac_res=`eval echo '${'$as_ac_Header'}'`
16998	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16999echo "${ECHO_T}$ac_res" >&6; }
17000
17001fi
17002if test `eval echo '${'$as_ac_Header'}'` = yes; then
17003  cat >>confdefs.h <<_ACEOF
17004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17005_ACEOF
17006
17007fi
17008
17009done
17010
17011if test "${ac_cv_header_sys_devpoll_h}" = yes \
17012		-a "${ac_cv_header_poll_h}" = yes ; \
17013then
17014	{ echo "$as_me:$LINENO: checking for /dev/poll" >&5
17015echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
17016	if test "$cross_compiling" = yes; then
17017  { echo "$as_me:$LINENO: result: no" >&5
17018echo "${ECHO_T}no" >&6; }
17019else
17020  cat >conftest.$ac_ext <<_ACEOF
17021/* confdefs.h.  */
17022_ACEOF
17023cat confdefs.h >>conftest.$ac_ext
17024cat >>conftest.$ac_ext <<_ACEOF
17025/* end confdefs.h.  */
17026int main(int argc, char **argv)
17027{
17028	int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
17029	exit (devpollfd == -1 ? 1 : 0);
17030}
17031_ACEOF
17032rm -f conftest$ac_exeext
17033if { (ac_try="$ac_link"
17034case "(($ac_try" in
17035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036  *) ac_try_echo=$ac_try;;
17037esac
17038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039  (eval "$ac_link") 2>&5
17040  ac_status=$?
17041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17043  { (case "(($ac_try" in
17044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045  *) ac_try_echo=$ac_try;;
17046esac
17047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048  (eval "$ac_try") 2>&5
17049  ac_status=$?
17050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051  (exit $ac_status); }; }; then
17052  { echo "$as_me:$LINENO: result: yes" >&5
17053echo "${ECHO_T}yes" >&6; }
17054
17055cat >>confdefs.h <<\_ACEOF
17056#define HAVE_DEVPOLL 1
17057_ACEOF
17058
17059else
17060  echo "$as_me: program exited with status $ac_status" >&5
17061echo "$as_me: failed program was:" >&5
17062sed 's/^/| /' conftest.$ac_ext >&5
17063
17064( exit $ac_status )
17065{ echo "$as_me:$LINENO: result: no" >&5
17066echo "${ECHO_T}no" >&6; }
17067fi
17068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17069fi
17070
17071
17072fi
17073
17074# strerror checks
17075{ echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17076echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17077if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17078  echo $ECHO_N "(cached) $ECHO_C" >&6
17079else
17080
17081	cat >conftest.$ac_ext <<_ACEOF
17082/* confdefs.h.  */
17083_ACEOF
17084cat confdefs.h >>conftest.$ac_ext
17085cat >>conftest.$ac_ext <<_ACEOF
17086/* end confdefs.h.  */
17087
17088#include <stdio.h>
17089#include <sys/types.h>
17090#include <errno.h>
17091#ifdef _WIN32
17092#include <stdlib.h>
17093#endif
17094int
17095main ()
17096{
17097char *c = (char *) *sys_errlist
17098  ;
17099  return 0;
17100}
17101_ACEOF
17102rm -f conftest.$ac_objext
17103if { (ac_try="$ac_compile"
17104case "(($ac_try" in
17105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106  *) ac_try_echo=$ac_try;;
17107esac
17108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109  (eval "$ac_compile") 2>conftest.er1
17110  ac_status=$?
17111  grep -v '^ *+' conftest.er1 >conftest.err
17112  rm -f conftest.er1
17113  cat conftest.err >&5
17114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115  (exit $ac_status); } && {
17116	 test -z "$ac_c_werror_flag" ||
17117	 test ! -s conftest.err
17118       } && test -s conftest.$ac_objext; then
17119  ol_cv_dcl_sys_errlist=yes
17120	ol_cv_have_sys_errlist=yes
17121else
17122  echo "$as_me: failed program was:" >&5
17123sed 's/^/| /' conftest.$ac_ext >&5
17124
17125	ol_cv_dcl_sys_errlist=no
17126fi
17127
17128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129fi
17130{ echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17131echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17132#
17133# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17134if test $ol_cv_dcl_sys_errlist = no ; then
17135
17136cat >>confdefs.h <<\_ACEOF
17137#define DECL_SYS_ERRLIST 1
17138_ACEOF
17139
17140
17141	{ echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17142echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17143if test "${ol_cv_have_sys_errlist+set}" = set; then
17144  echo $ECHO_N "(cached) $ECHO_C" >&6
17145else
17146
17147		cat >conftest.$ac_ext <<_ACEOF
17148/* confdefs.h.  */
17149_ACEOF
17150cat confdefs.h >>conftest.$ac_ext
17151cat >>conftest.$ac_ext <<_ACEOF
17152/* end confdefs.h.  */
17153#include <errno.h>
17154int
17155main ()
17156{
17157char *c = (char *) *sys_errlist
17158  ;
17159  return 0;
17160}
17161_ACEOF
17162rm -f conftest.$ac_objext conftest$ac_exeext
17163if { (ac_try="$ac_link"
17164case "(($ac_try" in
17165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166  *) ac_try_echo=$ac_try;;
17167esac
17168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169  (eval "$ac_link") 2>conftest.er1
17170  ac_status=$?
17171  grep -v '^ *+' conftest.er1 >conftest.err
17172  rm -f conftest.er1
17173  cat conftest.err >&5
17174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175  (exit $ac_status); } && {
17176	 test -z "$ac_c_werror_flag" ||
17177	 test ! -s conftest.err
17178       } && test -s conftest$ac_exeext &&
17179       $as_test_x conftest$ac_exeext; then
17180  ol_cv_have_sys_errlist=yes
17181else
17182  echo "$as_me: failed program was:" >&5
17183sed 's/^/| /' conftest.$ac_ext >&5
17184
17185	ol_cv_have_sys_errlist=no
17186fi
17187
17188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17189      conftest$ac_exeext conftest.$ac_ext
17190fi
17191{ echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17192echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17193fi
17194if test $ol_cv_have_sys_errlist = yes ; then
17195
17196cat >>confdefs.h <<\_ACEOF
17197#define HAVE_SYS_ERRLIST 1
17198_ACEOF
17199
17200fi
17201
17202
17203for ac_func in strerror strerror_r
17204do
17205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17206{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17208if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17209  echo $ECHO_N "(cached) $ECHO_C" >&6
17210else
17211  cat >conftest.$ac_ext <<_ACEOF
17212/* confdefs.h.  */
17213_ACEOF
17214cat confdefs.h >>conftest.$ac_ext
17215cat >>conftest.$ac_ext <<_ACEOF
17216/* end confdefs.h.  */
17217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17218   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17219#define $ac_func innocuous_$ac_func
17220
17221/* System header to define __stub macros and hopefully few prototypes,
17222    which can conflict with char $ac_func (); below.
17223    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17224    <limits.h> exists even on freestanding compilers.  */
17225
17226#ifdef __STDC__
17227# include <limits.h>
17228#else
17229# include <assert.h>
17230#endif
17231
17232#undef $ac_func
17233
17234/* Override any GCC internal prototype to avoid an error.
17235   Use char because int might match the return type of a GCC
17236   builtin and then its argument prototype would still apply.  */
17237#ifdef __cplusplus
17238extern "C"
17239#endif
17240char $ac_func ();
17241/* The GNU C library defines this for functions which it implements
17242    to always fail with ENOSYS.  Some functions are actually named
17243    something starting with __ and the normal name is an alias.  */
17244#if defined __stub_$ac_func || defined __stub___$ac_func
17245choke me
17246#endif
17247
17248int
17249main ()
17250{
17251return $ac_func ();
17252  ;
17253  return 0;
17254}
17255_ACEOF
17256rm -f conftest.$ac_objext conftest$ac_exeext
17257if { (ac_try="$ac_link"
17258case "(($ac_try" in
17259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260  *) ac_try_echo=$ac_try;;
17261esac
17262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263  (eval "$ac_link") 2>conftest.er1
17264  ac_status=$?
17265  grep -v '^ *+' conftest.er1 >conftest.err
17266  rm -f conftest.er1
17267  cat conftest.err >&5
17268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269  (exit $ac_status); } && {
17270	 test -z "$ac_c_werror_flag" ||
17271	 test ! -s conftest.err
17272       } && test -s conftest$ac_exeext &&
17273       $as_test_x conftest$ac_exeext; then
17274  eval "$as_ac_var=yes"
17275else
17276  echo "$as_me: failed program was:" >&5
17277sed 's/^/| /' conftest.$ac_ext >&5
17278
17279	eval "$as_ac_var=no"
17280fi
17281
17282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17283      conftest$ac_exeext conftest.$ac_ext
17284fi
17285ac_res=`eval echo '${'$as_ac_var'}'`
17286	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17287echo "${ECHO_T}$ac_res" >&6; }
17288if test `eval echo '${'$as_ac_var'}'` = yes; then
17289  cat >>confdefs.h <<_ACEOF
17290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17291_ACEOF
17292
17293fi
17294done
17295
17296ol_cv_func_strerror_r=no
17297if test "${ac_cv_func_strerror_r}" = yes ; then
17298	{ echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17299echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17300if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17301  echo $ECHO_N "(cached) $ECHO_C" >&6
17302else
17303
17304	cat >conftest.$ac_ext <<_ACEOF
17305/* confdefs.h.  */
17306_ACEOF
17307cat confdefs.h >>conftest.$ac_ext
17308cat >>conftest.$ac_ext <<_ACEOF
17309/* end confdefs.h.  */
17310#include <string.h>
17311_ACEOF
17312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17313  $EGREP "strerror_r" >/dev/null 2>&1; then
17314  ol_decl_strerror_r=yes
17315else
17316  ol_decl_strerror_r=no
17317fi
17318rm -f -r conftest*
17319
17320	if test $ol_decl_strerror_r = yes ; then
17321		cat >conftest.$ac_ext <<_ACEOF
17322/* confdefs.h.  */
17323_ACEOF
17324cat confdefs.h >>conftest.$ac_ext
17325cat >>conftest.$ac_ext <<_ACEOF
17326/* end confdefs.h.  */
17327#include <string.h>
17328int
17329main ()
17330{
17331   /* from autoconf 2.59 */
17332				char buf[100];
17333				char x = *strerror_r (0, buf, sizeof buf);
17334				char *p = strerror_r (0, buf, sizeof buf);
17335
17336  ;
17337  return 0;
17338}
17339_ACEOF
17340rm -f conftest.$ac_objext
17341if { (ac_try="$ac_compile"
17342case "(($ac_try" in
17343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344  *) ac_try_echo=$ac_try;;
17345esac
17346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347  (eval "$ac_compile") 2>conftest.er1
17348  ac_status=$?
17349  grep -v '^ *+' conftest.er1 >conftest.err
17350  rm -f conftest.er1
17351  cat conftest.err >&5
17352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353  (exit $ac_status); } && {
17354	 test -z "$ac_c_werror_flag" ||
17355	 test ! -s conftest.err
17356       } && test -s conftest.$ac_objext; then
17357  ol_cv_nonposix_strerror_r=yes
17358else
17359  echo "$as_me: failed program was:" >&5
17360sed 's/^/| /' conftest.$ac_ext >&5
17361
17362	ol_cv_nonposix_strerror_r=no
17363fi
17364
17365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17366	else
17367		if test "$cross_compiling" = yes; then
17368  ol_cv_nonposix_strerror=no
17369else
17370  cat >conftest.$ac_ext <<_ACEOF
17371/* confdefs.h.  */
17372_ACEOF
17373cat confdefs.h >>conftest.$ac_ext
17374cat >>conftest.$ac_ext <<_ACEOF
17375/* end confdefs.h.  */
17376
17377			main() {
17378				char buf[100];
17379				buf[0] = 0;
17380				strerror_r( 1, buf, sizeof buf );
17381				exit( buf[0] == 0 );
17382			}
17383
17384_ACEOF
17385rm -f conftest$ac_exeext
17386if { (ac_try="$ac_link"
17387case "(($ac_try" in
17388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389  *) ac_try_echo=$ac_try;;
17390esac
17391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392  (eval "$ac_link") 2>&5
17393  ac_status=$?
17394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17396  { (case "(($ac_try" in
17397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398  *) ac_try_echo=$ac_try;;
17399esac
17400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401  (eval "$ac_try") 2>&5
17402  ac_status=$?
17403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404  (exit $ac_status); }; }; then
17405  ol_cv_nonposix_strerror_r=yes
17406else
17407  echo "$as_me: program exited with status $ac_status" >&5
17408echo "$as_me: failed program was:" >&5
17409sed 's/^/| /' conftest.$ac_ext >&5
17410
17411( exit $ac_status )
17412ol_cv_nonposix_strerror=no
17413fi
17414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17415fi
17416
17417
17418	fi
17419
17420fi
17421{ echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17422echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17423if test $ol_cv_nonposix_strerror_r = yes ; then
17424
17425cat >>confdefs.h <<\_ACEOF
17426#define HAVE_NONPOSIX_STRERROR_R 1
17427_ACEOF
17428
17429fi
17430
17431elif test "${ac_cv_func_strerror}" = no ; then
17432	{ echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17433echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17434if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17435  echo $ECHO_N "(cached) $ECHO_C" >&6
17436else
17437
17438	cat >conftest.$ac_ext <<_ACEOF
17439/* confdefs.h.  */
17440_ACEOF
17441cat confdefs.h >>conftest.$ac_ext
17442cat >>conftest.$ac_ext <<_ACEOF
17443/* end confdefs.h.  */
17444
17445#include <stdio.h>
17446#include <sys/types.h>
17447#include <errno.h>
17448#ifdef _WIN32
17449#include <stdlib.h>
17450#endif
17451int
17452main ()
17453{
17454char *c = (char *) *sys_errlist
17455  ;
17456  return 0;
17457}
17458_ACEOF
17459rm -f conftest.$ac_objext
17460if { (ac_try="$ac_compile"
17461case "(($ac_try" in
17462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463  *) ac_try_echo=$ac_try;;
17464esac
17465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466  (eval "$ac_compile") 2>conftest.er1
17467  ac_status=$?
17468  grep -v '^ *+' conftest.er1 >conftest.err
17469  rm -f conftest.er1
17470  cat conftest.err >&5
17471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472  (exit $ac_status); } && {
17473	 test -z "$ac_c_werror_flag" ||
17474	 test ! -s conftest.err
17475       } && test -s conftest.$ac_objext; then
17476  ol_cv_dcl_sys_errlist=yes
17477	ol_cv_have_sys_errlist=yes
17478else
17479  echo "$as_me: failed program was:" >&5
17480sed 's/^/| /' conftest.$ac_ext >&5
17481
17482	ol_cv_dcl_sys_errlist=no
17483fi
17484
17485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17486fi
17487{ echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17488echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17489#
17490# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17491if test $ol_cv_dcl_sys_errlist = no ; then
17492
17493cat >>confdefs.h <<\_ACEOF
17494#define DECL_SYS_ERRLIST 1
17495_ACEOF
17496
17497
17498	{ echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17499echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17500if test "${ol_cv_have_sys_errlist+set}" = set; then
17501  echo $ECHO_N "(cached) $ECHO_C" >&6
17502else
17503
17504		cat >conftest.$ac_ext <<_ACEOF
17505/* confdefs.h.  */
17506_ACEOF
17507cat confdefs.h >>conftest.$ac_ext
17508cat >>conftest.$ac_ext <<_ACEOF
17509/* end confdefs.h.  */
17510#include <errno.h>
17511int
17512main ()
17513{
17514char *c = (char *) *sys_errlist
17515  ;
17516  return 0;
17517}
17518_ACEOF
17519rm -f conftest.$ac_objext conftest$ac_exeext
17520if { (ac_try="$ac_link"
17521case "(($ac_try" in
17522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523  *) ac_try_echo=$ac_try;;
17524esac
17525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526  (eval "$ac_link") 2>conftest.er1
17527  ac_status=$?
17528  grep -v '^ *+' conftest.er1 >conftest.err
17529  rm -f conftest.er1
17530  cat conftest.err >&5
17531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532  (exit $ac_status); } && {
17533	 test -z "$ac_c_werror_flag" ||
17534	 test ! -s conftest.err
17535       } && test -s conftest$ac_exeext &&
17536       $as_test_x conftest$ac_exeext; then
17537  ol_cv_have_sys_errlist=yes
17538else
17539  echo "$as_me: failed program was:" >&5
17540sed 's/^/| /' conftest.$ac_ext >&5
17541
17542	ol_cv_have_sys_errlist=no
17543fi
17544
17545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17546      conftest$ac_exeext conftest.$ac_ext
17547fi
17548{ echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17549echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17550fi
17551if test $ol_cv_have_sys_errlist = yes ; then
17552
17553cat >>confdefs.h <<\_ACEOF
17554#define HAVE_SYS_ERRLIST 1
17555_ACEOF
17556
17557fi
17558
17559fi
17560
17561
17562
17563for ac_header in regex.h
17564do
17565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17566{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17569  echo $ECHO_N "(cached) $ECHO_C" >&6
17570else
17571  cat >conftest.$ac_ext <<_ACEOF
17572/* confdefs.h.  */
17573_ACEOF
17574cat confdefs.h >>conftest.$ac_ext
17575cat >>conftest.$ac_ext <<_ACEOF
17576/* end confdefs.h.  */
17577$ac_includes_default
17578#ifdef HAVE_SYS_TYPES_H
17579#include <sys/types.h>
17580#endif
17581
17582
17583#include <$ac_header>
17584_ACEOF
17585rm -f conftest.$ac_objext
17586if { (ac_try="$ac_compile"
17587case "(($ac_try" in
17588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589  *) ac_try_echo=$ac_try;;
17590esac
17591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592  (eval "$ac_compile") 2>conftest.er1
17593  ac_status=$?
17594  grep -v '^ *+' conftest.er1 >conftest.err
17595  rm -f conftest.er1
17596  cat conftest.err >&5
17597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598  (exit $ac_status); } && {
17599	 test -z "$ac_c_werror_flag" ||
17600	 test ! -s conftest.err
17601       } && test -s conftest.$ac_objext; then
17602  eval "$as_ac_Header=yes"
17603else
17604  echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607	eval "$as_ac_Header=no"
17608fi
17609
17610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17611fi
17612ac_res=`eval echo '${'$as_ac_Header'}'`
17613	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17614echo "${ECHO_T}$ac_res" >&6; }
17615if test `eval echo '${'$as_ac_Header'}'` = yes; then
17616  cat >>confdefs.h <<_ACEOF
17617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17618_ACEOF
17619
17620fi
17621
17622done
17623
17624
17625if test "$ac_cv_header_regex_h" != yes ; then
17626	{ { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17627echo "$as_me: error: POSIX regex.h required." >&2;}
17628   { (exit 1); exit 1; }; }
17629fi
17630{ echo "$as_me:$LINENO: checking for library containing regfree" >&5
17631echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17632if test "${ac_cv_search_regfree+set}" = set; then
17633  echo $ECHO_N "(cached) $ECHO_C" >&6
17634else
17635  ac_func_search_save_LIBS=$LIBS
17636cat >conftest.$ac_ext <<_ACEOF
17637/* confdefs.h.  */
17638_ACEOF
17639cat confdefs.h >>conftest.$ac_ext
17640cat >>conftest.$ac_ext <<_ACEOF
17641/* end confdefs.h.  */
17642
17643/* Override any GCC internal prototype to avoid an error.
17644   Use char because int might match the return type of a GCC
17645   builtin and then its argument prototype would still apply.  */
17646#ifdef __cplusplus
17647extern "C"
17648#endif
17649char regfree ();
17650int
17651main ()
17652{
17653return regfree ();
17654  ;
17655  return 0;
17656}
17657_ACEOF
17658for ac_lib in '' regex gnuregex; do
17659  if test -z "$ac_lib"; then
17660    ac_res="none required"
17661  else
17662    ac_res=-l$ac_lib
17663    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17664  fi
17665  rm -f conftest.$ac_objext conftest$ac_exeext
17666if { (ac_try="$ac_link"
17667case "(($ac_try" in
17668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669  *) ac_try_echo=$ac_try;;
17670esac
17671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672  (eval "$ac_link") 2>conftest.er1
17673  ac_status=$?
17674  grep -v '^ *+' conftest.er1 >conftest.err
17675  rm -f conftest.er1
17676  cat conftest.err >&5
17677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678  (exit $ac_status); } && {
17679	 test -z "$ac_c_werror_flag" ||
17680	 test ! -s conftest.err
17681       } && test -s conftest$ac_exeext &&
17682       $as_test_x conftest$ac_exeext; then
17683  ac_cv_search_regfree=$ac_res
17684else
17685  echo "$as_me: failed program was:" >&5
17686sed 's/^/| /' conftest.$ac_ext >&5
17687
17688
17689fi
17690
17691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17692      conftest$ac_exeext
17693  if test "${ac_cv_search_regfree+set}" = set; then
17694  break
17695fi
17696done
17697if test "${ac_cv_search_regfree+set}" = set; then
17698  :
17699else
17700  ac_cv_search_regfree=no
17701fi
17702rm conftest.$ac_ext
17703LIBS=$ac_func_search_save_LIBS
17704fi
17705{ echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17706echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17707ac_res=$ac_cv_search_regfree
17708if test "$ac_res" != no; then
17709  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17710  :
17711else
17712  { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17713echo "$as_me: error: POSIX regex required." >&2;}
17714   { (exit 1); exit 1; }; }
17715fi
17716
17717
17718
17719{ echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17720echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17721if test "${ol_cv_c_posix_regex+set}" = set; then
17722  echo $ECHO_N "(cached) $ECHO_C" >&6
17723else
17724
17725	if test "$cross_compiling" = yes; then
17726  ol_cv_c_posix_regex=cross
17727else
17728  cat >conftest.$ac_ext <<_ACEOF
17729/* confdefs.h.  */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h.  */
17734
17735#include <sys/types.h>
17736#include <regex.h>
17737static char *pattern, *string;
17738main()
17739{
17740	int rc;
17741	regex_t re;
17742
17743	pattern = "^A";
17744
17745	if(regcomp(&re, pattern, 0)) {
17746		return -1;
17747	}
17748
17749	string = "ALL MATCH";
17750
17751	rc = regexec(&re, string, 0, (void*)0, 0);
17752
17753	regfree(&re);
17754
17755	return rc;
17756}
17757_ACEOF
17758rm -f conftest$ac_exeext
17759if { (ac_try="$ac_link"
17760case "(($ac_try" in
17761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762  *) ac_try_echo=$ac_try;;
17763esac
17764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765  (eval "$ac_link") 2>&5
17766  ac_status=$?
17767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17769  { (case "(($ac_try" in
17770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771  *) ac_try_echo=$ac_try;;
17772esac
17773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774  (eval "$ac_try") 2>&5
17775  ac_status=$?
17776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777  (exit $ac_status); }; }; then
17778  ol_cv_c_posix_regex=yes
17779else
17780  echo "$as_me: program exited with status $ac_status" >&5
17781echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784( exit $ac_status )
17785ol_cv_c_posix_regex=no
17786fi
17787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17788fi
17789
17790
17791fi
17792{ echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17793echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17794
17795if test "$ol_cv_c_posix_regex" = no ; then
17796	{ { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17797echo "$as_me: error: broken POSIX regex!" >&2;}
17798   { (exit 1); exit 1; }; }
17799fi
17800
17801
17802have_uuid=no
17803
17804for ac_header in sys/uuid.h
17805do
17806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17808  { echo "$as_me:$LINENO: checking for $ac_header" >&5
17809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17811  echo $ECHO_N "(cached) $ECHO_C" >&6
17812fi
17813ac_res=`eval echo '${'$as_ac_Header'}'`
17814	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17815echo "${ECHO_T}$ac_res" >&6; }
17816else
17817  # Is the header compilable?
17818{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17820cat >conftest.$ac_ext <<_ACEOF
17821/* confdefs.h.  */
17822_ACEOF
17823cat confdefs.h >>conftest.$ac_ext
17824cat >>conftest.$ac_ext <<_ACEOF
17825/* end confdefs.h.  */
17826$ac_includes_default
17827#include <$ac_header>
17828_ACEOF
17829rm -f conftest.$ac_objext
17830if { (ac_try="$ac_compile"
17831case "(($ac_try" in
17832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833  *) ac_try_echo=$ac_try;;
17834esac
17835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836  (eval "$ac_compile") 2>conftest.er1
17837  ac_status=$?
17838  grep -v '^ *+' conftest.er1 >conftest.err
17839  rm -f conftest.er1
17840  cat conftest.err >&5
17841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842  (exit $ac_status); } && {
17843	 test -z "$ac_c_werror_flag" ||
17844	 test ! -s conftest.err
17845       } && test -s conftest.$ac_objext; then
17846  ac_header_compiler=yes
17847else
17848  echo "$as_me: failed program was:" >&5
17849sed 's/^/| /' conftest.$ac_ext >&5
17850
17851	ac_header_compiler=no
17852fi
17853
17854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17855{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17856echo "${ECHO_T}$ac_header_compiler" >&6; }
17857
17858# Is the header present?
17859{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17861cat >conftest.$ac_ext <<_ACEOF
17862/* confdefs.h.  */
17863_ACEOF
17864cat confdefs.h >>conftest.$ac_ext
17865cat >>conftest.$ac_ext <<_ACEOF
17866/* end confdefs.h.  */
17867#include <$ac_header>
17868_ACEOF
17869if { (ac_try="$ac_cpp conftest.$ac_ext"
17870case "(($ac_try" in
17871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872  *) ac_try_echo=$ac_try;;
17873esac
17874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17876  ac_status=$?
17877  grep -v '^ *+' conftest.er1 >conftest.err
17878  rm -f conftest.er1
17879  cat conftest.err >&5
17880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881  (exit $ac_status); } >/dev/null && {
17882	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17883	 test ! -s conftest.err
17884       }; then
17885  ac_header_preproc=yes
17886else
17887  echo "$as_me: failed program was:" >&5
17888sed 's/^/| /' conftest.$ac_ext >&5
17889
17890  ac_header_preproc=no
17891fi
17892
17893rm -f conftest.err conftest.$ac_ext
17894{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17895echo "${ECHO_T}$ac_header_preproc" >&6; }
17896
17897# So?  What about this header?
17898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17899  yes:no: )
17900    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17904    ac_header_preproc=yes
17905    ;;
17906  no:yes:* )
17907    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17909    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17910echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17911    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17913    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17914echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17915    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17917    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17919    ( cat <<\_ASBOX
17920## --------------------------------------------- ##
17921## Report this to <http://www.openldap.org/its/> ##
17922## --------------------------------------------- ##
17923_ASBOX
17924     ) | sed "s/^/$as_me: WARNING:     /" >&2
17925    ;;
17926esac
17927{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17930  echo $ECHO_N "(cached) $ECHO_C" >&6
17931else
17932  eval "$as_ac_Header=\$ac_header_preproc"
17933fi
17934ac_res=`eval echo '${'$as_ac_Header'}'`
17935	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17936echo "${ECHO_T}$ac_res" >&6; }
17937
17938fi
17939if test `eval echo '${'$as_ac_Header'}'` = yes; then
17940  cat >>confdefs.h <<_ACEOF
17941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17942_ACEOF
17943
17944fi
17945
17946done
17947
17948if test $ac_cv_header_sys_uuid_h = yes ; then
17949	save_LIBS="$LIBS"
17950	{ echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17951echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17952if test "${ac_cv_search_uuid_to_str+set}" = set; then
17953  echo $ECHO_N "(cached) $ECHO_C" >&6
17954else
17955  ac_func_search_save_LIBS=$LIBS
17956cat >conftest.$ac_ext <<_ACEOF
17957/* confdefs.h.  */
17958_ACEOF
17959cat confdefs.h >>conftest.$ac_ext
17960cat >>conftest.$ac_ext <<_ACEOF
17961/* end confdefs.h.  */
17962
17963/* Override any GCC internal prototype to avoid an error.
17964   Use char because int might match the return type of a GCC
17965   builtin and then its argument prototype would still apply.  */
17966#ifdef __cplusplus
17967extern "C"
17968#endif
17969char uuid_to_str ();
17970int
17971main ()
17972{
17973return uuid_to_str ();
17974  ;
17975  return 0;
17976}
17977_ACEOF
17978for ac_lib in '' uuid; do
17979  if test -z "$ac_lib"; then
17980    ac_res="none required"
17981  else
17982    ac_res=-l$ac_lib
17983    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17984  fi
17985  rm -f conftest.$ac_objext conftest$ac_exeext
17986if { (ac_try="$ac_link"
17987case "(($ac_try" in
17988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989  *) ac_try_echo=$ac_try;;
17990esac
17991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992  (eval "$ac_link") 2>conftest.er1
17993  ac_status=$?
17994  grep -v '^ *+' conftest.er1 >conftest.err
17995  rm -f conftest.er1
17996  cat conftest.err >&5
17997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998  (exit $ac_status); } && {
17999	 test -z "$ac_c_werror_flag" ||
18000	 test ! -s conftest.err
18001       } && test -s conftest$ac_exeext &&
18002       $as_test_x conftest$ac_exeext; then
18003  ac_cv_search_uuid_to_str=$ac_res
18004else
18005  echo "$as_me: failed program was:" >&5
18006sed 's/^/| /' conftest.$ac_ext >&5
18007
18008
18009fi
18010
18011rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18012      conftest$ac_exeext
18013  if test "${ac_cv_search_uuid_to_str+set}" = set; then
18014  break
18015fi
18016done
18017if test "${ac_cv_search_uuid_to_str+set}" = set; then
18018  :
18019else
18020  ac_cv_search_uuid_to_str=no
18021fi
18022rm conftest.$ac_ext
18023LIBS=$ac_func_search_save_LIBS
18024fi
18025{ echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
18026echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
18027ac_res=$ac_cv_search_uuid_to_str
18028if test "$ac_res" != no; then
18029  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18030  have_uuid=yes
18031else
18032  :
18033fi
18034
18035	{ echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
18036echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
18037if test "${ac_cv_search_uuid_create+set}" = set; then
18038  echo $ECHO_N "(cached) $ECHO_C" >&6
18039else
18040  ac_func_search_save_LIBS=$LIBS
18041cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h.  */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h.  */
18047
18048/* Override any GCC internal prototype to avoid an error.
18049   Use char because int might match the return type of a GCC
18050   builtin and then its argument prototype would still apply.  */
18051#ifdef __cplusplus
18052extern "C"
18053#endif
18054char uuid_create ();
18055int
18056main ()
18057{
18058return uuid_create ();
18059  ;
18060  return 0;
18061}
18062_ACEOF
18063for ac_lib in '' uuid; do
18064  if test -z "$ac_lib"; then
18065    ac_res="none required"
18066  else
18067    ac_res=-l$ac_lib
18068    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18069  fi
18070  rm -f conftest.$ac_objext conftest$ac_exeext
18071if { (ac_try="$ac_link"
18072case "(($ac_try" in
18073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074  *) ac_try_echo=$ac_try;;
18075esac
18076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077  (eval "$ac_link") 2>conftest.er1
18078  ac_status=$?
18079  grep -v '^ *+' conftest.er1 >conftest.err
18080  rm -f conftest.er1
18081  cat conftest.err >&5
18082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083  (exit $ac_status); } && {
18084	 test -z "$ac_c_werror_flag" ||
18085	 test ! -s conftest.err
18086       } && test -s conftest$ac_exeext &&
18087       $as_test_x conftest$ac_exeext; then
18088  ac_cv_search_uuid_create=$ac_res
18089else
18090  echo "$as_me: failed program was:" >&5
18091sed 's/^/| /' conftest.$ac_ext >&5
18092
18093
18094fi
18095
18096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18097      conftest$ac_exeext
18098  if test "${ac_cv_search_uuid_create+set}" = set; then
18099  break
18100fi
18101done
18102if test "${ac_cv_search_uuid_create+set}" = set; then
18103  :
18104else
18105  ac_cv_search_uuid_create=no
18106fi
18107rm conftest.$ac_ext
18108LIBS=$ac_func_search_save_LIBS
18109fi
18110{ echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
18111echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
18112ac_res=$ac_cv_search_uuid_create
18113if test "$ac_res" != no; then
18114  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18115  :
18116else
18117  have_uuid=no
18118fi
18119
18120	LIBS="$save_LIBS"
18121
18122	if test $have_uuid = yes ; then
18123
18124cat >>confdefs.h <<\_ACEOF
18125#define HAVE_UUID_TO_STR 1
18126_ACEOF
18127
18128
18129		test "$ac_cv_search_uuid_to_str" = "none required" || \
18130			SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
18131	fi
18132fi
18133
18134if test $have_uuid = no ; then
18135
18136for ac_header in uuid/uuid.h
18137do
18138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18140  { echo "$as_me:$LINENO: checking for $ac_header" >&5
18141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18143  echo $ECHO_N "(cached) $ECHO_C" >&6
18144fi
18145ac_res=`eval echo '${'$as_ac_Header'}'`
18146	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18147echo "${ECHO_T}$ac_res" >&6; }
18148else
18149  # Is the header compilable?
18150{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18152cat >conftest.$ac_ext <<_ACEOF
18153/* confdefs.h.  */
18154_ACEOF
18155cat confdefs.h >>conftest.$ac_ext
18156cat >>conftest.$ac_ext <<_ACEOF
18157/* end confdefs.h.  */
18158$ac_includes_default
18159#include <$ac_header>
18160_ACEOF
18161rm -f conftest.$ac_objext
18162if { (ac_try="$ac_compile"
18163case "(($ac_try" in
18164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165  *) ac_try_echo=$ac_try;;
18166esac
18167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168  (eval "$ac_compile") 2>conftest.er1
18169  ac_status=$?
18170  grep -v '^ *+' conftest.er1 >conftest.err
18171  rm -f conftest.er1
18172  cat conftest.err >&5
18173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174  (exit $ac_status); } && {
18175	 test -z "$ac_c_werror_flag" ||
18176	 test ! -s conftest.err
18177       } && test -s conftest.$ac_objext; then
18178  ac_header_compiler=yes
18179else
18180  echo "$as_me: failed program was:" >&5
18181sed 's/^/| /' conftest.$ac_ext >&5
18182
18183	ac_header_compiler=no
18184fi
18185
18186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18187{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18188echo "${ECHO_T}$ac_header_compiler" >&6; }
18189
18190# Is the header present?
18191{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18193cat >conftest.$ac_ext <<_ACEOF
18194/* confdefs.h.  */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h.  */
18199#include <$ac_header>
18200_ACEOF
18201if { (ac_try="$ac_cpp conftest.$ac_ext"
18202case "(($ac_try" in
18203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204  *) ac_try_echo=$ac_try;;
18205esac
18206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18208  ac_status=$?
18209  grep -v '^ *+' conftest.er1 >conftest.err
18210  rm -f conftest.er1
18211  cat conftest.err >&5
18212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213  (exit $ac_status); } >/dev/null && {
18214	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18215	 test ! -s conftest.err
18216       }; then
18217  ac_header_preproc=yes
18218else
18219  echo "$as_me: failed program was:" >&5
18220sed 's/^/| /' conftest.$ac_ext >&5
18221
18222  ac_header_preproc=no
18223fi
18224
18225rm -f conftest.err conftest.$ac_ext
18226{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18227echo "${ECHO_T}$ac_header_preproc" >&6; }
18228
18229# So?  What about this header?
18230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18231  yes:no: )
18232    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18234    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18236    ac_header_preproc=yes
18237    ;;
18238  no:yes:* )
18239    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18241    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18242echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18243    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18245    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18246echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18247    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18249    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18251    ( cat <<\_ASBOX
18252## --------------------------------------------- ##
18253## Report this to <http://www.openldap.org/its/> ##
18254## --------------------------------------------- ##
18255_ASBOX
18256     ) | sed "s/^/$as_me: WARNING:     /" >&2
18257    ;;
18258esac
18259{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18262  echo $ECHO_N "(cached) $ECHO_C" >&6
18263else
18264  eval "$as_ac_Header=\$ac_header_preproc"
18265fi
18266ac_res=`eval echo '${'$as_ac_Header'}'`
18267	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18268echo "${ECHO_T}$ac_res" >&6; }
18269
18270fi
18271if test `eval echo '${'$as_ac_Header'}'` = yes; then
18272  cat >>confdefs.h <<_ACEOF
18273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18274_ACEOF
18275
18276fi
18277
18278done
18279
18280	if test $ac_cv_header_uuid_uuid_h = yes ; then
18281		save_LIBS="$LIBS"
18282		{ echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18283echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18284if test "${ac_cv_search_uuid_generate+set}" = set; then
18285  echo $ECHO_N "(cached) $ECHO_C" >&6
18286else
18287  ac_func_search_save_LIBS=$LIBS
18288cat >conftest.$ac_ext <<_ACEOF
18289/* confdefs.h.  */
18290_ACEOF
18291cat confdefs.h >>conftest.$ac_ext
18292cat >>conftest.$ac_ext <<_ACEOF
18293/* end confdefs.h.  */
18294
18295/* Override any GCC internal prototype to avoid an error.
18296   Use char because int might match the return type of a GCC
18297   builtin and then its argument prototype would still apply.  */
18298#ifdef __cplusplus
18299extern "C"
18300#endif
18301char uuid_generate ();
18302int
18303main ()
18304{
18305return uuid_generate ();
18306  ;
18307  return 0;
18308}
18309_ACEOF
18310for ac_lib in '' uuid; do
18311  if test -z "$ac_lib"; then
18312    ac_res="none required"
18313  else
18314    ac_res=-l$ac_lib
18315    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18316  fi
18317  rm -f conftest.$ac_objext conftest$ac_exeext
18318if { (ac_try="$ac_link"
18319case "(($ac_try" in
18320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321  *) ac_try_echo=$ac_try;;
18322esac
18323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324  (eval "$ac_link") 2>conftest.er1
18325  ac_status=$?
18326  grep -v '^ *+' conftest.er1 >conftest.err
18327  rm -f conftest.er1
18328  cat conftest.err >&5
18329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330  (exit $ac_status); } && {
18331	 test -z "$ac_c_werror_flag" ||
18332	 test ! -s conftest.err
18333       } && test -s conftest$ac_exeext &&
18334       $as_test_x conftest$ac_exeext; then
18335  ac_cv_search_uuid_generate=$ac_res
18336else
18337  echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
18340
18341fi
18342
18343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18344      conftest$ac_exeext
18345  if test "${ac_cv_search_uuid_generate+set}" = set; then
18346  break
18347fi
18348done
18349if test "${ac_cv_search_uuid_generate+set}" = set; then
18350  :
18351else
18352  ac_cv_search_uuid_generate=no
18353fi
18354rm conftest.$ac_ext
18355LIBS=$ac_func_search_save_LIBS
18356fi
18357{ echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18358echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18359ac_res=$ac_cv_search_uuid_generate
18360if test "$ac_res" != no; then
18361  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18362  have_uuid=yes
18363else
18364  :
18365fi
18366
18367		{ echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18368echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18369if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18370  echo $ECHO_N "(cached) $ECHO_C" >&6
18371else
18372  ac_func_search_save_LIBS=$LIBS
18373cat >conftest.$ac_ext <<_ACEOF
18374/* confdefs.h.  */
18375_ACEOF
18376cat confdefs.h >>conftest.$ac_ext
18377cat >>conftest.$ac_ext <<_ACEOF
18378/* end confdefs.h.  */
18379
18380/* Override any GCC internal prototype to avoid an error.
18381   Use char because int might match the return type of a GCC
18382   builtin and then its argument prototype would still apply.  */
18383#ifdef __cplusplus
18384extern "C"
18385#endif
18386char uuid_unparse_lower ();
18387int
18388main ()
18389{
18390return uuid_unparse_lower ();
18391  ;
18392  return 0;
18393}
18394_ACEOF
18395for ac_lib in '' uuid; do
18396  if test -z "$ac_lib"; then
18397    ac_res="none required"
18398  else
18399    ac_res=-l$ac_lib
18400    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18401  fi
18402  rm -f conftest.$ac_objext conftest$ac_exeext
18403if { (ac_try="$ac_link"
18404case "(($ac_try" in
18405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406  *) ac_try_echo=$ac_try;;
18407esac
18408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409  (eval "$ac_link") 2>conftest.er1
18410  ac_status=$?
18411  grep -v '^ *+' conftest.er1 >conftest.err
18412  rm -f conftest.er1
18413  cat conftest.err >&5
18414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415  (exit $ac_status); } && {
18416	 test -z "$ac_c_werror_flag" ||
18417	 test ! -s conftest.err
18418       } && test -s conftest$ac_exeext &&
18419       $as_test_x conftest$ac_exeext; then
18420  ac_cv_search_uuid_unparse_lower=$ac_res
18421else
18422  echo "$as_me: failed program was:" >&5
18423sed 's/^/| /' conftest.$ac_ext >&5
18424
18425
18426fi
18427
18428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18429      conftest$ac_exeext
18430  if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18431  break
18432fi
18433done
18434if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18435  :
18436else
18437  ac_cv_search_uuid_unparse_lower=no
18438fi
18439rm conftest.$ac_ext
18440LIBS=$ac_func_search_save_LIBS
18441fi
18442{ echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18443echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18444ac_res=$ac_cv_search_uuid_unparse_lower
18445if test "$ac_res" != no; then
18446  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18447  :
18448else
18449  have_uuid=no
18450fi
18451
18452		LIBS="$save_LIBS"
18453
18454		if test $have_uuid = yes ; then
18455
18456cat >>confdefs.h <<\_ACEOF
18457#define HAVE_UUID_GENERATE 1
18458_ACEOF
18459
18460
18461			test "$ac_cv_search_uuid_generate" = "none required" || \
18462				SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18463		fi
18464	fi
18465fi
18466
18467if test $have_uuid = no ; then
18468	{ echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18469echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18470	save_LIBS="$LIBS"
18471	LIBS="$LIBS -lrpcrt4"
18472	cat >conftest.$ac_ext <<_ACEOF
18473/* confdefs.h.  */
18474_ACEOF
18475cat confdefs.h >>conftest.$ac_ext
18476cat >>conftest.$ac_ext <<_ACEOF
18477/* end confdefs.h.  */
18478
18479		int __stdcall UuidCreate(void *);
18480		int __stdcall UuidToStringA(void *,void **);
18481
18482int
18483main ()
18484{
18485
18486		UuidCreate(0);
18487		UuidToStringA(0,0);
18488
18489  ;
18490  return 0;
18491}
18492_ACEOF
18493rm -f conftest.$ac_objext conftest$ac_exeext
18494if { (ac_try="$ac_link"
18495case "(($ac_try" in
18496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497  *) ac_try_echo=$ac_try;;
18498esac
18499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500  (eval "$ac_link") 2>conftest.er1
18501  ac_status=$?
18502  grep -v '^ *+' conftest.er1 >conftest.err
18503  rm -f conftest.er1
18504  cat conftest.err >&5
18505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506  (exit $ac_status); } && {
18507	 test -z "$ac_c_werror_flag" ||
18508	 test ! -s conftest.err
18509       } && test -s conftest$ac_exeext &&
18510       $as_test_x conftest$ac_exeext; then
18511  need_rpcrt=yes
18512else
18513  echo "$as_me: failed program was:" >&5
18514sed 's/^/| /' conftest.$ac_ext >&5
18515
18516	need_rpcrt=no
18517fi
18518
18519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18520      conftest$ac_exeext conftest.$ac_ext
18521	if test $need_rpcrt = yes; then
18522		SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18523	fi
18524	LIBS="$save_LIBS"
18525	{ echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18526echo "${ECHO_T}$need_rpcrt" >&6; }
18527fi
18528
18529ol_cv_lib_resolver=no
18530if test $ol_cv_lib_resolver = no ; then
18531	{ echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18532echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18533if test "${ol_cv_resolver_none+set}" = set; then
18534  echo $ECHO_N "(cached) $ECHO_C" >&6
18535else
18536
18537	ol_RESOLVER_LIB=
18538	ol_LIBS=$LIBS
18539	LIBS="$ol_RESOLVER_LIB $LIBS"
18540
18541	cat >conftest.$ac_ext <<_ACEOF
18542/* confdefs.h.  */
18543_ACEOF
18544cat confdefs.h >>conftest.$ac_ext
18545cat >>conftest.$ac_ext <<_ACEOF
18546/* end confdefs.h.  */
18547
18548#ifdef HAVE_SYS_TYPES_H
18549#	include <sys/types.h>
18550#endif
18551#include <netinet/in.h>
18552#ifdef HAVE_ARPA_NAMESER_H
18553#	include <arpa/nameser.h>
18554#endif
18555#ifdef HAVE_RESOLV_H
18556#	include <resolv.h>
18557#endif
18558
18559int
18560main ()
18561{
18562{
18563	int len, status;
18564	char *request = NULL;
18565	unsigned char reply[64*1024];
18566	unsigned char host[64*1024];
18567	unsigned char *p;
18568
18569#ifdef NS_HFIXEDSZ
18570	/* Bind 8/9 interface */
18571	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18572#else
18573	/* Bind 4 interface */
18574# ifndef T_SRV
18575#  define T_SRV 33
18576# endif
18577	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18578#endif
18579	p = reply;
18580#ifdef NS_HFIXEDSZ
18581	/* Bind 8/9 interface */
18582	p += NS_HFIXEDSZ;
18583#elif defined(HFIXEDSZ)
18584	/* Bind 4 interface w/ HFIXEDSZ */
18585	p += HFIXEDSZ;
18586#else
18587	/* Bind 4 interface w/o HFIXEDSZ */
18588	p += sizeof(HEADER);
18589#endif
18590	status = dn_expand( reply, reply+len, p, host, sizeof(host));
18591}
18592  ;
18593  return 0;
18594}
18595_ACEOF
18596rm -f conftest.$ac_objext conftest$ac_exeext
18597if { (ac_try="$ac_link"
18598case "(($ac_try" in
18599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600  *) ac_try_echo=$ac_try;;
18601esac
18602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603  (eval "$ac_link") 2>conftest.er1
18604  ac_status=$?
18605  grep -v '^ *+' conftest.er1 >conftest.err
18606  rm -f conftest.er1
18607  cat conftest.err >&5
18608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609  (exit $ac_status); } && {
18610	 test -z "$ac_c_werror_flag" ||
18611	 test ! -s conftest.err
18612       } && test -s conftest$ac_exeext &&
18613       $as_test_x conftest$ac_exeext; then
18614  ol_cv_resolver_none=yes
18615else
18616  echo "$as_me: failed program was:" >&5
18617sed 's/^/| /' conftest.$ac_ext >&5
18618
18619	ol_cv_resolver_none=no
18620fi
18621
18622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18623      conftest$ac_exeext conftest.$ac_ext
18624
18625	LIBS="$ol_LIBS"
18626
18627fi
18628{ echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18629echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18630
18631	if test $ol_cv_resolver_none = yes ; then
18632		ol_cv_lib_resolver=yes
18633	fi
18634fi
18635
18636if test $ol_cv_lib_resolver = no ; then
18637	{ echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18638echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18639if test "${ol_cv_resolver_resolv+set}" = set; then
18640  echo $ECHO_N "(cached) $ECHO_C" >&6
18641else
18642
18643	ol_RESOLVER_LIB=-lresolv
18644	ol_LIBS=$LIBS
18645	LIBS="$ol_RESOLVER_LIB $LIBS"
18646
18647	cat >conftest.$ac_ext <<_ACEOF
18648/* confdefs.h.  */
18649_ACEOF
18650cat confdefs.h >>conftest.$ac_ext
18651cat >>conftest.$ac_ext <<_ACEOF
18652/* end confdefs.h.  */
18653
18654#ifdef HAVE_SYS_TYPES_H
18655#	include <sys/types.h>
18656#endif
18657#include <netinet/in.h>
18658#ifdef HAVE_ARPA_NAMESER_H
18659#	include <arpa/nameser.h>
18660#endif
18661#ifdef HAVE_RESOLV_H
18662#	include <resolv.h>
18663#endif
18664
18665int
18666main ()
18667{
18668{
18669	int len, status;
18670	char *request = NULL;
18671	unsigned char reply[64*1024];
18672	unsigned char host[64*1024];
18673	unsigned char *p;
18674
18675#ifdef NS_HFIXEDSZ
18676	/* Bind 8/9 interface */
18677	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18678#else
18679	/* Bind 4 interface */
18680# ifndef T_SRV
18681#  define T_SRV 33
18682# endif
18683	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18684#endif
18685	p = reply;
18686#ifdef NS_HFIXEDSZ
18687	/* Bind 8/9 interface */
18688	p += NS_HFIXEDSZ;
18689#elif defined(HFIXEDSZ)
18690	/* Bind 4 interface w/ HFIXEDSZ */
18691	p += HFIXEDSZ;
18692#else
18693	/* Bind 4 interface w/o HFIXEDSZ */
18694	p += sizeof(HEADER);
18695#endif
18696	status = dn_expand( reply, reply+len, p, host, sizeof(host));
18697}
18698  ;
18699  return 0;
18700}
18701_ACEOF
18702rm -f conftest.$ac_objext conftest$ac_exeext
18703if { (ac_try="$ac_link"
18704case "(($ac_try" in
18705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706  *) ac_try_echo=$ac_try;;
18707esac
18708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709  (eval "$ac_link") 2>conftest.er1
18710  ac_status=$?
18711  grep -v '^ *+' conftest.er1 >conftest.err
18712  rm -f conftest.er1
18713  cat conftest.err >&5
18714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715  (exit $ac_status); } && {
18716	 test -z "$ac_c_werror_flag" ||
18717	 test ! -s conftest.err
18718       } && test -s conftest$ac_exeext &&
18719       $as_test_x conftest$ac_exeext; then
18720  ol_cv_resolver_resolv=yes
18721else
18722  echo "$as_me: failed program was:" >&5
18723sed 's/^/| /' conftest.$ac_ext >&5
18724
18725	ol_cv_resolver_resolv=no
18726fi
18727
18728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18729      conftest$ac_exeext conftest.$ac_ext
18730
18731	LIBS="$ol_LIBS"
18732
18733fi
18734{ echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18735echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18736
18737	if test $ol_cv_resolver_resolv = yes ; then
18738		ol_cv_lib_resolver=-lresolv
18739	fi
18740fi
18741
18742if test $ol_cv_lib_resolver = no ; then
18743	{ echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18744echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18745if test "${ol_cv_resolver_bind+set}" = set; then
18746  echo $ECHO_N "(cached) $ECHO_C" >&6
18747else
18748
18749	ol_RESOLVER_LIB=-lbind
18750	ol_LIBS=$LIBS
18751	LIBS="$ol_RESOLVER_LIB $LIBS"
18752
18753	cat >conftest.$ac_ext <<_ACEOF
18754/* confdefs.h.  */
18755_ACEOF
18756cat confdefs.h >>conftest.$ac_ext
18757cat >>conftest.$ac_ext <<_ACEOF
18758/* end confdefs.h.  */
18759
18760#ifdef HAVE_SYS_TYPES_H
18761#	include <sys/types.h>
18762#endif
18763#include <netinet/in.h>
18764#ifdef HAVE_ARPA_NAMESER_H
18765#	include <arpa/nameser.h>
18766#endif
18767#ifdef HAVE_RESOLV_H
18768#	include <resolv.h>
18769#endif
18770
18771int
18772main ()
18773{
18774{
18775	int len, status;
18776	char *request = NULL;
18777	unsigned char reply[64*1024];
18778	unsigned char host[64*1024];
18779	unsigned char *p;
18780
18781#ifdef NS_HFIXEDSZ
18782	/* Bind 8/9 interface */
18783	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18784#else
18785	/* Bind 4 interface */
18786# ifndef T_SRV
18787#  define T_SRV 33
18788# endif
18789	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18790#endif
18791	p = reply;
18792#ifdef NS_HFIXEDSZ
18793	/* Bind 8/9 interface */
18794	p += NS_HFIXEDSZ;
18795#elif defined(HFIXEDSZ)
18796	/* Bind 4 interface w/ HFIXEDSZ */
18797	p += HFIXEDSZ;
18798#else
18799	/* Bind 4 interface w/o HFIXEDSZ */
18800	p += sizeof(HEADER);
18801#endif
18802	status = dn_expand( reply, reply+len, p, host, sizeof(host));
18803}
18804  ;
18805  return 0;
18806}
18807_ACEOF
18808rm -f conftest.$ac_objext conftest$ac_exeext
18809if { (ac_try="$ac_link"
18810case "(($ac_try" in
18811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812  *) ac_try_echo=$ac_try;;
18813esac
18814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815  (eval "$ac_link") 2>conftest.er1
18816  ac_status=$?
18817  grep -v '^ *+' conftest.er1 >conftest.err
18818  rm -f conftest.er1
18819  cat conftest.err >&5
18820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821  (exit $ac_status); } && {
18822	 test -z "$ac_c_werror_flag" ||
18823	 test ! -s conftest.err
18824       } && test -s conftest$ac_exeext &&
18825       $as_test_x conftest$ac_exeext; then
18826  ol_cv_resolver_bind=yes
18827else
18828  echo "$as_me: failed program was:" >&5
18829sed 's/^/| /' conftest.$ac_ext >&5
18830
18831	ol_cv_resolver_bind=no
18832fi
18833
18834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18835      conftest$ac_exeext conftest.$ac_ext
18836
18837	LIBS="$ol_LIBS"
18838
18839fi
18840{ echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18841echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18842
18843	if test $ol_cv_resolver_bind = yes ; then
18844		ol_cv_lib_resolver=-lbind
18845	fi
18846fi
18847
18848
18849
18850ol_link_dnssrv=no
18851if test "$ol_cv_lib_resolver" != no ; then
18852
18853cat >>confdefs.h <<\_ACEOF
18854#define HAVE_RES_QUERY 1
18855_ACEOF
18856
18857
18858	if test "$ol_enable_dnssrv" != no ; then
18859		ol_link_dnssrv=yes
18860	fi
18861
18862	if test "$ol_cv_lib_resolver" != yes ; then
18863		LIBS="$ol_cv_lib_resolver $LIBS"
18864	fi
18865fi
18866
18867if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18868	if test "$ol_link_dnssrv" = no ; then
18869		{ { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18870echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18871   { (exit 1); exit 1; }; }
18872	fi
18873else
18874	ol_enable_dnssrv=no
18875fi
18876
18877
18878for ac_func in hstrerror
18879do
18880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18881{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18883if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18884  echo $ECHO_N "(cached) $ECHO_C" >&6
18885else
18886  cat >conftest.$ac_ext <<_ACEOF
18887/* confdefs.h.  */
18888_ACEOF
18889cat confdefs.h >>conftest.$ac_ext
18890cat >>conftest.$ac_ext <<_ACEOF
18891/* end confdefs.h.  */
18892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18893   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18894#define $ac_func innocuous_$ac_func
18895
18896/* System header to define __stub macros and hopefully few prototypes,
18897    which can conflict with char $ac_func (); below.
18898    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18899    <limits.h> exists even on freestanding compilers.  */
18900
18901#ifdef __STDC__
18902# include <limits.h>
18903#else
18904# include <assert.h>
18905#endif
18906
18907#undef $ac_func
18908
18909/* Override any GCC internal prototype to avoid an error.
18910   Use char because int might match the return type of a GCC
18911   builtin and then its argument prototype would still apply.  */
18912#ifdef __cplusplus
18913extern "C"
18914#endif
18915char $ac_func ();
18916/* The GNU C library defines this for functions which it implements
18917    to always fail with ENOSYS.  Some functions are actually named
18918    something starting with __ and the normal name is an alias.  */
18919#if defined __stub_$ac_func || defined __stub___$ac_func
18920choke me
18921#endif
18922
18923int
18924main ()
18925{
18926return $ac_func ();
18927  ;
18928  return 0;
18929}
18930_ACEOF
18931rm -f conftest.$ac_objext conftest$ac_exeext
18932if { (ac_try="$ac_link"
18933case "(($ac_try" in
18934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935  *) ac_try_echo=$ac_try;;
18936esac
18937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938  (eval "$ac_link") 2>conftest.er1
18939  ac_status=$?
18940  grep -v '^ *+' conftest.er1 >conftest.err
18941  rm -f conftest.er1
18942  cat conftest.err >&5
18943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944  (exit $ac_status); } && {
18945	 test -z "$ac_c_werror_flag" ||
18946	 test ! -s conftest.err
18947       } && test -s conftest$ac_exeext &&
18948       $as_test_x conftest$ac_exeext; then
18949  eval "$as_ac_var=yes"
18950else
18951  echo "$as_me: failed program was:" >&5
18952sed 's/^/| /' conftest.$ac_ext >&5
18953
18954	eval "$as_ac_var=no"
18955fi
18956
18957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18958      conftest$ac_exeext conftest.$ac_ext
18959fi
18960ac_res=`eval echo '${'$as_ac_var'}'`
18961	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18962echo "${ECHO_T}$ac_res" >&6; }
18963if test `eval echo '${'$as_ac_var'}'` = yes; then
18964  cat >>confdefs.h <<_ACEOF
18965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18966_ACEOF
18967
18968fi
18969done
18970
18971
18972
18973
18974
18975
18976for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18977do
18978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18982  echo $ECHO_N "(cached) $ECHO_C" >&6
18983else
18984  cat >conftest.$ac_ext <<_ACEOF
18985/* confdefs.h.  */
18986_ACEOF
18987cat confdefs.h >>conftest.$ac_ext
18988cat >>conftest.$ac_ext <<_ACEOF
18989/* end confdefs.h.  */
18990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18991   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18992#define $ac_func innocuous_$ac_func
18993
18994/* System header to define __stub macros and hopefully few prototypes,
18995    which can conflict with char $ac_func (); below.
18996    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18997    <limits.h> exists even on freestanding compilers.  */
18998
18999#ifdef __STDC__
19000# include <limits.h>
19001#else
19002# include <assert.h>
19003#endif
19004
19005#undef $ac_func
19006
19007/* Override any GCC internal prototype to avoid an error.
19008   Use char because int might match the return type of a GCC
19009   builtin and then its argument prototype would still apply.  */
19010#ifdef __cplusplus
19011extern "C"
19012#endif
19013char $ac_func ();
19014/* The GNU C library defines this for functions which it implements
19015    to always fail with ENOSYS.  Some functions are actually named
19016    something starting with __ and the normal name is an alias.  */
19017#if defined __stub_$ac_func || defined __stub___$ac_func
19018choke me
19019#endif
19020
19021int
19022main ()
19023{
19024return $ac_func ();
19025  ;
19026  return 0;
19027}
19028_ACEOF
19029rm -f conftest.$ac_objext conftest$ac_exeext
19030if { (ac_try="$ac_link"
19031case "(($ac_try" in
19032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033  *) ac_try_echo=$ac_try;;
19034esac
19035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036  (eval "$ac_link") 2>conftest.er1
19037  ac_status=$?
19038  grep -v '^ *+' conftest.er1 >conftest.err
19039  rm -f conftest.er1
19040  cat conftest.err >&5
19041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042  (exit $ac_status); } && {
19043	 test -z "$ac_c_werror_flag" ||
19044	 test ! -s conftest.err
19045       } && test -s conftest$ac_exeext &&
19046       $as_test_x conftest$ac_exeext; then
19047  eval "$as_ac_var=yes"
19048else
19049  echo "$as_me: failed program was:" >&5
19050sed 's/^/| /' conftest.$ac_ext >&5
19051
19052	eval "$as_ac_var=no"
19053fi
19054
19055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19056      conftest$ac_exeext conftest.$ac_ext
19057fi
19058ac_res=`eval echo '${'$as_ac_var'}'`
19059	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19060echo "${ECHO_T}$ac_res" >&6; }
19061if test `eval echo '${'$as_ac_var'}'` = yes; then
19062  cat >>confdefs.h <<_ACEOF
19063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19064_ACEOF
19065
19066fi
19067done
19068
19069
19070ol_link_ipv6=no
19071if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
19072	if test $ol_enable_ipv6 = yes ; then
19073		{ { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
19074echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
19075   { (exit 1); exit 1; }; }
19076	fi
19077elif test $ol_enable_ipv6 != no ; then
19078	{ echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
19079echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
19080if test "${ol_cv_inet6_addrstrlen+set}" = set; then
19081  echo $ECHO_N "(cached) $ECHO_C" >&6
19082else
19083
19084		cat >conftest.$ac_ext <<_ACEOF
19085/* confdefs.h.  */
19086_ACEOF
19087cat confdefs.h >>conftest.$ac_ext
19088cat >>conftest.$ac_ext <<_ACEOF
19089/* end confdefs.h.  */
19090
19091#			include <netinet/in.h>
19092#			ifdef INET6_ADDRSTRLEN
19093				__has_inet6_addrstrlen__;
19094#			endif
19095
19096_ACEOF
19097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19098  $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
19099  ol_cv_inet6_addrstrlen=yes
19100else
19101  ol_cv_inet6_addrstrlen=no
19102fi
19103rm -f -r conftest*
19104
19105fi
19106{ echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
19107echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
19108
19109
19110	{ echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
19111echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
19112if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
19113  echo $ECHO_N "(cached) $ECHO_C" >&6
19114else
19115
19116		cat >conftest.$ac_ext <<_ACEOF
19117/* confdefs.h.  */
19118_ACEOF
19119cat confdefs.h >>conftest.$ac_ext
19120cat >>conftest.$ac_ext <<_ACEOF
19121/* end confdefs.h.  */
19122
19123#include <sys/types.h>
19124#include <sys/socket.h>
19125
19126int
19127main ()
19128{
19129
19130			struct sockaddr_storage ss;
19131
19132  ;
19133  return 0;
19134}
19135_ACEOF
19136rm -f conftest.$ac_objext
19137if { (ac_try="$ac_compile"
19138case "(($ac_try" in
19139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140  *) ac_try_echo=$ac_try;;
19141esac
19142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143  (eval "$ac_compile") 2>conftest.er1
19144  ac_status=$?
19145  grep -v '^ *+' conftest.er1 >conftest.err
19146  rm -f conftest.er1
19147  cat conftest.err >&5
19148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149  (exit $ac_status); } && {
19150	 test -z "$ac_c_werror_flag" ||
19151	 test ! -s conftest.err
19152       } && test -s conftest.$ac_objext; then
19153  ol_cv_struct_sockaddr_storage=yes
19154else
19155  echo "$as_me: failed program was:" >&5
19156sed 's/^/| /' conftest.$ac_ext >&5
19157
19158	ol_cv_struct_sockaddr_storage=no
19159fi
19160
19161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19162fi
19163{ echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19164echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19165
19166	if test $ol_cv_inet6_addrstrlen = yes &&
19167	   test $ol_cv_struct_sockaddr_storage = yes ; then
19168		ol_link_ipv6=yes
19169	elif test $ol_enable_ipv6 = yes &&
19170	     test $ol_cv_inet6_addrstrlen = no ; then
19171		{ { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19172echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19173   { (exit 1); exit 1; }; }
19174	elif test $ol_enable_ipv6 = yes &&
19175	     test $ol_cv_struct_sockaddr_storage = no ; then
19176		{ { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19177echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19178   { (exit 1); exit 1; }; }
19179	fi
19180fi
19181
19182if test $ol_enable_local != no ; then
19183
19184for ac_header in sys/un.h
19185do
19186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19188  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19191  echo $ECHO_N "(cached) $ECHO_C" >&6
19192fi
19193ac_res=`eval echo '${'$as_ac_Header'}'`
19194	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19195echo "${ECHO_T}$ac_res" >&6; }
19196else
19197  # Is the header compilable?
19198{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19200cat >conftest.$ac_ext <<_ACEOF
19201/* confdefs.h.  */
19202_ACEOF
19203cat confdefs.h >>conftest.$ac_ext
19204cat >>conftest.$ac_ext <<_ACEOF
19205/* end confdefs.h.  */
19206$ac_includes_default
19207#include <$ac_header>
19208_ACEOF
19209rm -f conftest.$ac_objext
19210if { (ac_try="$ac_compile"
19211case "(($ac_try" in
19212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213  *) ac_try_echo=$ac_try;;
19214esac
19215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216  (eval "$ac_compile") 2>conftest.er1
19217  ac_status=$?
19218  grep -v '^ *+' conftest.er1 >conftest.err
19219  rm -f conftest.er1
19220  cat conftest.err >&5
19221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222  (exit $ac_status); } && {
19223	 test -z "$ac_c_werror_flag" ||
19224	 test ! -s conftest.err
19225       } && test -s conftest.$ac_objext; then
19226  ac_header_compiler=yes
19227else
19228  echo "$as_me: failed program was:" >&5
19229sed 's/^/| /' conftest.$ac_ext >&5
19230
19231	ac_header_compiler=no
19232fi
19233
19234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19236echo "${ECHO_T}$ac_header_compiler" >&6; }
19237
19238# Is the header present?
19239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19241cat >conftest.$ac_ext <<_ACEOF
19242/* confdefs.h.  */
19243_ACEOF
19244cat confdefs.h >>conftest.$ac_ext
19245cat >>conftest.$ac_ext <<_ACEOF
19246/* end confdefs.h.  */
19247#include <$ac_header>
19248_ACEOF
19249if { (ac_try="$ac_cpp conftest.$ac_ext"
19250case "(($ac_try" in
19251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252  *) ac_try_echo=$ac_try;;
19253esac
19254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19256  ac_status=$?
19257  grep -v '^ *+' conftest.er1 >conftest.err
19258  rm -f conftest.er1
19259  cat conftest.err >&5
19260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261  (exit $ac_status); } >/dev/null && {
19262	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19263	 test ! -s conftest.err
19264       }; then
19265  ac_header_preproc=yes
19266else
19267  echo "$as_me: failed program was:" >&5
19268sed 's/^/| /' conftest.$ac_ext >&5
19269
19270  ac_header_preproc=no
19271fi
19272
19273rm -f conftest.err conftest.$ac_ext
19274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19275echo "${ECHO_T}$ac_header_preproc" >&6; }
19276
19277# So?  What about this header?
19278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19279  yes:no: )
19280    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19282    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19284    ac_header_preproc=yes
19285    ;;
19286  no:yes:* )
19287    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19289    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19290echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19291    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19293    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19294echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19295    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19297    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19299    ( cat <<\_ASBOX
19300## --------------------------------------------- ##
19301## Report this to <http://www.openldap.org/its/> ##
19302## --------------------------------------------- ##
19303_ASBOX
19304     ) | sed "s/^/$as_me: WARNING:     /" >&2
19305    ;;
19306esac
19307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19310  echo $ECHO_N "(cached) $ECHO_C" >&6
19311else
19312  eval "$as_ac_Header=\$ac_header_preproc"
19313fi
19314ac_res=`eval echo '${'$as_ac_Header'}'`
19315	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19316echo "${ECHO_T}$ac_res" >&6; }
19317
19318fi
19319if test `eval echo '${'$as_ac_Header'}'` = yes; then
19320  cat >>confdefs.h <<_ACEOF
19321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19322_ACEOF
19323
19324fi
19325
19326done
19327
19328
19329	if test $ol_enable_local = auto ; then
19330		ol_enable_local=$ac_cv_header_sys_un_h
19331	elif test $ac_cv_header_sys_un_h = no ; then
19332		{ { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19333echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19334   { (exit 1); exit 1; }; }
19335	fi
19336fi
19337
19338
19339if test $ol_with_tls = yes ; then
19340	ol_with_tls=auto
19341fi
19342
19343ol_link_tls=no
19344if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19345
19346for ac_header in openssl/ssl.h
19347do
19348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19350  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19353  echo $ECHO_N "(cached) $ECHO_C" >&6
19354fi
19355ac_res=`eval echo '${'$as_ac_Header'}'`
19356	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19357echo "${ECHO_T}$ac_res" >&6; }
19358else
19359  # Is the header compilable?
19360{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19362cat >conftest.$ac_ext <<_ACEOF
19363/* confdefs.h.  */
19364_ACEOF
19365cat confdefs.h >>conftest.$ac_ext
19366cat >>conftest.$ac_ext <<_ACEOF
19367/* end confdefs.h.  */
19368$ac_includes_default
19369#include <$ac_header>
19370_ACEOF
19371rm -f conftest.$ac_objext
19372if { (ac_try="$ac_compile"
19373case "(($ac_try" in
19374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375  *) ac_try_echo=$ac_try;;
19376esac
19377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378  (eval "$ac_compile") 2>conftest.er1
19379  ac_status=$?
19380  grep -v '^ *+' conftest.er1 >conftest.err
19381  rm -f conftest.er1
19382  cat conftest.err >&5
19383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384  (exit $ac_status); } && {
19385	 test -z "$ac_c_werror_flag" ||
19386	 test ! -s conftest.err
19387       } && test -s conftest.$ac_objext; then
19388  ac_header_compiler=yes
19389else
19390  echo "$as_me: failed program was:" >&5
19391sed 's/^/| /' conftest.$ac_ext >&5
19392
19393	ac_header_compiler=no
19394fi
19395
19396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19397{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19398echo "${ECHO_T}$ac_header_compiler" >&6; }
19399
19400# Is the header present?
19401{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19403cat >conftest.$ac_ext <<_ACEOF
19404/* confdefs.h.  */
19405_ACEOF
19406cat confdefs.h >>conftest.$ac_ext
19407cat >>conftest.$ac_ext <<_ACEOF
19408/* end confdefs.h.  */
19409#include <$ac_header>
19410_ACEOF
19411if { (ac_try="$ac_cpp conftest.$ac_ext"
19412case "(($ac_try" in
19413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414  *) ac_try_echo=$ac_try;;
19415esac
19416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19418  ac_status=$?
19419  grep -v '^ *+' conftest.er1 >conftest.err
19420  rm -f conftest.er1
19421  cat conftest.err >&5
19422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423  (exit $ac_status); } >/dev/null && {
19424	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19425	 test ! -s conftest.err
19426       }; then
19427  ac_header_preproc=yes
19428else
19429  echo "$as_me: failed program was:" >&5
19430sed 's/^/| /' conftest.$ac_ext >&5
19431
19432  ac_header_preproc=no
19433fi
19434
19435rm -f conftest.err conftest.$ac_ext
19436{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19437echo "${ECHO_T}$ac_header_preproc" >&6; }
19438
19439# So?  What about this header?
19440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19441  yes:no: )
19442    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19444    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19446    ac_header_preproc=yes
19447    ;;
19448  no:yes:* )
19449    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19451    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19452echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19453    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19455    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19456echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19457    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19459    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19461    ( cat <<\_ASBOX
19462## --------------------------------------------- ##
19463## Report this to <http://www.openldap.org/its/> ##
19464## --------------------------------------------- ##
19465_ASBOX
19466     ) | sed "s/^/$as_me: WARNING:     /" >&2
19467    ;;
19468esac
19469{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19472  echo $ECHO_N "(cached) $ECHO_C" >&6
19473else
19474  eval "$as_ac_Header=\$ac_header_preproc"
19475fi
19476ac_res=`eval echo '${'$as_ac_Header'}'`
19477	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19478echo "${ECHO_T}$ac_res" >&6; }
19479
19480fi
19481if test `eval echo '${'$as_ac_Header'}'` = yes; then
19482  cat >>confdefs.h <<_ACEOF
19483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19484_ACEOF
19485
19486fi
19487
19488done
19489
19490
19491	if test $ac_cv_header_openssl_ssl_h = yes ; then
19492		{ echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19493echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19494if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19495  echo $ECHO_N "(cached) $ECHO_C" >&6
19496else
19497  ac_check_lib_save_LIBS=$LIBS
19498LIBS="-lssl -lcrypto $LIBS"
19499cat >conftest.$ac_ext <<_ACEOF
19500/* confdefs.h.  */
19501_ACEOF
19502cat confdefs.h >>conftest.$ac_ext
19503cat >>conftest.$ac_ext <<_ACEOF
19504/* end confdefs.h.  */
19505
19506/* Override any GCC internal prototype to avoid an error.
19507   Use char because int might match the return type of a GCC
19508   builtin and then its argument prototype would still apply.  */
19509#ifdef __cplusplus
19510extern "C"
19511#endif
19512char SSL_library_init ();
19513int
19514main ()
19515{
19516return SSL_library_init ();
19517  ;
19518  return 0;
19519}
19520_ACEOF
19521rm -f conftest.$ac_objext conftest$ac_exeext
19522if { (ac_try="$ac_link"
19523case "(($ac_try" in
19524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525  *) ac_try_echo=$ac_try;;
19526esac
19527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528  (eval "$ac_link") 2>conftest.er1
19529  ac_status=$?
19530  grep -v '^ *+' conftest.er1 >conftest.err
19531  rm -f conftest.er1
19532  cat conftest.err >&5
19533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534  (exit $ac_status); } && {
19535	 test -z "$ac_c_werror_flag" ||
19536	 test ! -s conftest.err
19537       } && test -s conftest$ac_exeext &&
19538       $as_test_x conftest$ac_exeext; then
19539  ac_cv_lib_ssl_SSL_library_init=yes
19540else
19541  echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
19544	ac_cv_lib_ssl_SSL_library_init=no
19545fi
19546
19547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19548      conftest$ac_exeext conftest.$ac_ext
19549LIBS=$ac_check_lib_save_LIBS
19550fi
19551{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19552echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19553if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19554  have_openssl=yes
19555			need_rsaref=no
19556else
19557  have_openssl=no
19558fi
19559
19560
19561		if test $have_openssl = no ; then
19562			{ echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19563echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19564if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19565  echo $ECHO_N "(cached) $ECHO_C" >&6
19566else
19567  ac_check_lib_save_LIBS=$LIBS
19568LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19569cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h.  */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h.  */
19575
19576/* Override any GCC internal prototype to avoid an error.
19577   Use char because int might match the return type of a GCC
19578   builtin and then its argument prototype would still apply.  */
19579#ifdef __cplusplus
19580extern "C"
19581#endif
19582char ssl3_accept ();
19583int
19584main ()
19585{
19586return ssl3_accept ();
19587  ;
19588  return 0;
19589}
19590_ACEOF
19591rm -f conftest.$ac_objext conftest$ac_exeext
19592if { (ac_try="$ac_link"
19593case "(($ac_try" in
19594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595  *) ac_try_echo=$ac_try;;
19596esac
19597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598  (eval "$ac_link") 2>conftest.er1
19599  ac_status=$?
19600  grep -v '^ *+' conftest.er1 >conftest.err
19601  rm -f conftest.er1
19602  cat conftest.err >&5
19603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604  (exit $ac_status); } && {
19605	 test -z "$ac_c_werror_flag" ||
19606	 test ! -s conftest.err
19607       } && test -s conftest$ac_exeext &&
19608       $as_test_x conftest$ac_exeext; then
19609  ac_cv_lib_ssl_ssl3_accept=yes
19610else
19611  echo "$as_me: failed program was:" >&5
19612sed 's/^/| /' conftest.$ac_ext >&5
19613
19614	ac_cv_lib_ssl_ssl3_accept=no
19615fi
19616
19617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19618      conftest$ac_exeext conftest.$ac_ext
19619LIBS=$ac_check_lib_save_LIBS
19620fi
19621{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19622echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19623if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19624  have_openssl=yes
19625				need_rsaref=yes
19626else
19627  have_openssl=no
19628fi
19629
19630		fi
19631
19632		if test $have_openssl = yes ; then
19633			ol_with_tls=openssl
19634			ol_link_tls=yes
19635
19636
19637cat >>confdefs.h <<\_ACEOF
19638#define HAVE_OPENSSL 1
19639_ACEOF
19640
19641
19642			if test $need_rsaref = yes; then
19643
19644cat >>confdefs.h <<\_ACEOF
19645#define HAVE_RSAREF 1
19646_ACEOF
19647
19648
19649				TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19650			else
19651				TLS_LIBS="-lssl -lcrypto"
19652			fi
19653
19654			{ echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19655echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19656if test "${ol_cv_ssl_crl_compat+set}" = set; then
19657  echo $ECHO_N "(cached) $ECHO_C" >&6
19658else
19659
19660		cat >conftest.$ac_ext <<_ACEOF
19661/* confdefs.h.  */
19662_ACEOF
19663cat confdefs.h >>conftest.$ac_ext
19664cat >>conftest.$ac_ext <<_ACEOF
19665/* end confdefs.h.  */
19666
19667#ifdef HAVE_OPENSSL_SSL_H
19668#include <openssl/ssl.h>
19669#endif
19670
19671/* Require 0.9.7d+ */
19672#if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19673	char *__ssl_compat = "0.9.7d";
19674#endif
19675
19676_ACEOF
19677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19678  $EGREP "__ssl_compat" >/dev/null 2>&1; then
19679  ol_cv_ssl_crl_compat=yes
19680else
19681  ol_cv_ssl_crl_compat=no
19682fi
19683rm -f -r conftest*
19684
19685fi
19686{ echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19687echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19688
19689			if test $ol_cv_ssl_crl_compat = yes ; then
19690
19691cat >>confdefs.h <<\_ACEOF
19692#define HAVE_OPENSSL_CRL 1
19693_ACEOF
19694
19695			fi
19696		fi
19697	fi
19698fi
19699
19700if test $ol_link_tls = no ; then
19701	if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19702
19703for ac_header in gnutls/gnutls.h
19704do
19705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19707  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19710  echo $ECHO_N "(cached) $ECHO_C" >&6
19711fi
19712ac_res=`eval echo '${'$as_ac_Header'}'`
19713	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19714echo "${ECHO_T}$ac_res" >&6; }
19715else
19716  # Is the header compilable?
19717{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19719cat >conftest.$ac_ext <<_ACEOF
19720/* confdefs.h.  */
19721_ACEOF
19722cat confdefs.h >>conftest.$ac_ext
19723cat >>conftest.$ac_ext <<_ACEOF
19724/* end confdefs.h.  */
19725$ac_includes_default
19726#include <$ac_header>
19727_ACEOF
19728rm -f conftest.$ac_objext
19729if { (ac_try="$ac_compile"
19730case "(($ac_try" in
19731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732  *) ac_try_echo=$ac_try;;
19733esac
19734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735  (eval "$ac_compile") 2>conftest.er1
19736  ac_status=$?
19737  grep -v '^ *+' conftest.er1 >conftest.err
19738  rm -f conftest.er1
19739  cat conftest.err >&5
19740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741  (exit $ac_status); } && {
19742	 test -z "$ac_c_werror_flag" ||
19743	 test ! -s conftest.err
19744       } && test -s conftest.$ac_objext; then
19745  ac_header_compiler=yes
19746else
19747  echo "$as_me: failed program was:" >&5
19748sed 's/^/| /' conftest.$ac_ext >&5
19749
19750	ac_header_compiler=no
19751fi
19752
19753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19754{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19755echo "${ECHO_T}$ac_header_compiler" >&6; }
19756
19757# Is the header present?
19758{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19760cat >conftest.$ac_ext <<_ACEOF
19761/* confdefs.h.  */
19762_ACEOF
19763cat confdefs.h >>conftest.$ac_ext
19764cat >>conftest.$ac_ext <<_ACEOF
19765/* end confdefs.h.  */
19766#include <$ac_header>
19767_ACEOF
19768if { (ac_try="$ac_cpp conftest.$ac_ext"
19769case "(($ac_try" in
19770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771  *) ac_try_echo=$ac_try;;
19772esac
19773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19775  ac_status=$?
19776  grep -v '^ *+' conftest.er1 >conftest.err
19777  rm -f conftest.er1
19778  cat conftest.err >&5
19779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780  (exit $ac_status); } >/dev/null && {
19781	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19782	 test ! -s conftest.err
19783       }; then
19784  ac_header_preproc=yes
19785else
19786  echo "$as_me: failed program was:" >&5
19787sed 's/^/| /' conftest.$ac_ext >&5
19788
19789  ac_header_preproc=no
19790fi
19791
19792rm -f conftest.err conftest.$ac_ext
19793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19794echo "${ECHO_T}$ac_header_preproc" >&6; }
19795
19796# So?  What about this header?
19797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19798  yes:no: )
19799    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19801    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19803    ac_header_preproc=yes
19804    ;;
19805  no:yes:* )
19806    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19808    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19809echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19810    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19812    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19813echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19814    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19816    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19818    ( cat <<\_ASBOX
19819## --------------------------------------------- ##
19820## Report this to <http://www.openldap.org/its/> ##
19821## --------------------------------------------- ##
19822_ASBOX
19823     ) | sed "s/^/$as_me: WARNING:     /" >&2
19824    ;;
19825esac
19826{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19829  echo $ECHO_N "(cached) $ECHO_C" >&6
19830else
19831  eval "$as_ac_Header=\$ac_header_preproc"
19832fi
19833ac_res=`eval echo '${'$as_ac_Header'}'`
19834	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19835echo "${ECHO_T}$ac_res" >&6; }
19836
19837fi
19838if test `eval echo '${'$as_ac_Header'}'` = yes; then
19839  cat >>confdefs.h <<_ACEOF
19840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19841_ACEOF
19842
19843fi
19844
19845done
19846
19847
19848		if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19849			{ echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19850echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19851if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19852  echo $ECHO_N "(cached) $ECHO_C" >&6
19853else
19854  ac_check_lib_save_LIBS=$LIBS
19855LIBS="-lgnutls  $LIBS"
19856cat >conftest.$ac_ext <<_ACEOF
19857/* confdefs.h.  */
19858_ACEOF
19859cat confdefs.h >>conftest.$ac_ext
19860cat >>conftest.$ac_ext <<_ACEOF
19861/* end confdefs.h.  */
19862
19863/* Override any GCC internal prototype to avoid an error.
19864   Use char because int might match the return type of a GCC
19865   builtin and then its argument prototype would still apply.  */
19866#ifdef __cplusplus
19867extern "C"
19868#endif
19869char gnutls_init ();
19870int
19871main ()
19872{
19873return gnutls_init ();
19874  ;
19875  return 0;
19876}
19877_ACEOF
19878rm -f conftest.$ac_objext conftest$ac_exeext
19879if { (ac_try="$ac_link"
19880case "(($ac_try" in
19881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882  *) ac_try_echo=$ac_try;;
19883esac
19884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885  (eval "$ac_link") 2>conftest.er1
19886  ac_status=$?
19887  grep -v '^ *+' conftest.er1 >conftest.err
19888  rm -f conftest.er1
19889  cat conftest.err >&5
19890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891  (exit $ac_status); } && {
19892	 test -z "$ac_c_werror_flag" ||
19893	 test ! -s conftest.err
19894       } && test -s conftest$ac_exeext &&
19895       $as_test_x conftest$ac_exeext; then
19896  ac_cv_lib_gnutls_gnutls_init=yes
19897else
19898  echo "$as_me: failed program was:" >&5
19899sed 's/^/| /' conftest.$ac_ext >&5
19900
19901	ac_cv_lib_gnutls_gnutls_init=no
19902fi
19903
19904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19905      conftest$ac_exeext conftest.$ac_ext
19906LIBS=$ac_check_lib_save_LIBS
19907fi
19908{ echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19909echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19910if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19911  have_gnutls=yes
19912else
19913  have_gnutls=no
19914fi
19915
19916
19917			if test $have_gnutls = yes ; then
19918				ol_with_tls=gnutls
19919				ol_link_tls=yes
19920
19921				TLS_LIBS="-lgnutls"
19922
19923
19924cat >>confdefs.h <<\_ACEOF
19925#define HAVE_GNUTLS 1
19926_ACEOF
19927
19928			fi
19929		fi
19930	fi
19931fi
19932
19933WITH_TLS=no
19934if test $ol_link_tls = yes ; then
19935
19936cat >>confdefs.h <<\_ACEOF
19937#define HAVE_TLS 1
19938_ACEOF
19939
19940	WITH_TLS=yes
19941elif test $ol_with_tls = auto ; then
19942	{ echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19943echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19944	{ echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19945echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19946elif test $ol_with_tls != no ; then
19947	{ { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19948echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19949   { (exit 1); exit 1; }; }
19950else
19951	{ echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19952echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19953fi
19954
19955if test $ol_enable_lmpasswd != no; then
19956	if test $ol_link_tls != yes ; then
19957		{ { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19958echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19959   { (exit 1); exit 1; }; }
19960	fi
19961
19962
19963cat >>confdefs.h <<\_ACEOF
19964#define SLAPD_LMHASH 1
19965_ACEOF
19966
19967fi
19968
19969ol_link_threads=no
19970
19971case $ol_with_threads in auto | yes | nt)
19972
19973
19974	{ echo "$as_me:$LINENO: checking for _beginthread" >&5
19975echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
19976if test "${ac_cv_func__beginthread+set}" = set; then
19977  echo $ECHO_N "(cached) $ECHO_C" >&6
19978else
19979  cat >conftest.$ac_ext <<_ACEOF
19980/* confdefs.h.  */
19981_ACEOF
19982cat confdefs.h >>conftest.$ac_ext
19983cat >>conftest.$ac_ext <<_ACEOF
19984/* end confdefs.h.  */
19985/* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19986   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19987#define _beginthread innocuous__beginthread
19988
19989/* System header to define __stub macros and hopefully few prototypes,
19990    which can conflict with char _beginthread (); below.
19991    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19992    <limits.h> exists even on freestanding compilers.  */
19993
19994#ifdef __STDC__
19995# include <limits.h>
19996#else
19997# include <assert.h>
19998#endif
19999
20000#undef _beginthread
20001
20002/* Override any GCC internal prototype to avoid an error.
20003   Use char because int might match the return type of a GCC
20004   builtin and then its argument prototype would still apply.  */
20005#ifdef __cplusplus
20006extern "C"
20007#endif
20008char _beginthread ();
20009/* The GNU C library defines this for functions which it implements
20010    to always fail with ENOSYS.  Some functions are actually named
20011    something starting with __ and the normal name is an alias.  */
20012#if defined __stub__beginthread || defined __stub____beginthread
20013choke me
20014#endif
20015
20016int
20017main ()
20018{
20019return _beginthread ();
20020  ;
20021  return 0;
20022}
20023_ACEOF
20024rm -f conftest.$ac_objext conftest$ac_exeext
20025if { (ac_try="$ac_link"
20026case "(($ac_try" in
20027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028  *) ac_try_echo=$ac_try;;
20029esac
20030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031  (eval "$ac_link") 2>conftest.er1
20032  ac_status=$?
20033  grep -v '^ *+' conftest.er1 >conftest.err
20034  rm -f conftest.er1
20035  cat conftest.err >&5
20036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037  (exit $ac_status); } && {
20038	 test -z "$ac_c_werror_flag" ||
20039	 test ! -s conftest.err
20040       } && test -s conftest$ac_exeext &&
20041       $as_test_x conftest$ac_exeext; then
20042  ac_cv_func__beginthread=yes
20043else
20044  echo "$as_me: failed program was:" >&5
20045sed 's/^/| /' conftest.$ac_ext >&5
20046
20047	ac_cv_func__beginthread=no
20048fi
20049
20050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20051      conftest$ac_exeext conftest.$ac_ext
20052fi
20053{ echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20054echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20055
20056
20057	if test $ac_cv_func__beginthread = yes ; then
20058
20059cat >>confdefs.h <<\_ACEOF
20060#define HAVE_NT_THREADS 1
20061_ACEOF
20062
20063		ol_cv_nt_threads=yes
20064	fi
20065
20066
20067	if test "$ol_cv_nt_threads" = yes ; then
20068		ol_link_threads=nt
20069		ol_with_threads=found
20070		ol_with_yielding_select=yes
20071
20072
20073cat >>confdefs.h <<\_ACEOF
20074#define HAVE_NT_SERVICE_MANAGER 1
20075_ACEOF
20076
20077
20078cat >>confdefs.h <<\_ACEOF
20079#define HAVE_NT_EVENT_LOG 1
20080_ACEOF
20081
20082	fi
20083
20084	if test $ol_with_threads = nt ; then
20085		{ { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20086echo "$as_me: error: could not locate NT Threads" >&2;}
20087   { (exit 1); exit 1; }; }
20088	fi
20089	;;
20090esac
20091
20092case $ol_with_threads in auto | yes | posix)
20093
20094
20095for ac_header in pthread.h
20096do
20097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20099  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20102  echo $ECHO_N "(cached) $ECHO_C" >&6
20103fi
20104ac_res=`eval echo '${'$as_ac_Header'}'`
20105	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20106echo "${ECHO_T}$ac_res" >&6; }
20107else
20108  # Is the header compilable?
20109{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20111cat >conftest.$ac_ext <<_ACEOF
20112/* confdefs.h.  */
20113_ACEOF
20114cat confdefs.h >>conftest.$ac_ext
20115cat >>conftest.$ac_ext <<_ACEOF
20116/* end confdefs.h.  */
20117$ac_includes_default
20118#include <$ac_header>
20119_ACEOF
20120rm -f conftest.$ac_objext
20121if { (ac_try="$ac_compile"
20122case "(($ac_try" in
20123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124  *) ac_try_echo=$ac_try;;
20125esac
20126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127  (eval "$ac_compile") 2>conftest.er1
20128  ac_status=$?
20129  grep -v '^ *+' conftest.er1 >conftest.err
20130  rm -f conftest.er1
20131  cat conftest.err >&5
20132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133  (exit $ac_status); } && {
20134	 test -z "$ac_c_werror_flag" ||
20135	 test ! -s conftest.err
20136       } && test -s conftest.$ac_objext; then
20137  ac_header_compiler=yes
20138else
20139  echo "$as_me: failed program was:" >&5
20140sed 's/^/| /' conftest.$ac_ext >&5
20141
20142	ac_header_compiler=no
20143fi
20144
20145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20147echo "${ECHO_T}$ac_header_compiler" >&6; }
20148
20149# Is the header present?
20150{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20152cat >conftest.$ac_ext <<_ACEOF
20153/* confdefs.h.  */
20154_ACEOF
20155cat confdefs.h >>conftest.$ac_ext
20156cat >>conftest.$ac_ext <<_ACEOF
20157/* end confdefs.h.  */
20158#include <$ac_header>
20159_ACEOF
20160if { (ac_try="$ac_cpp conftest.$ac_ext"
20161case "(($ac_try" in
20162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163  *) ac_try_echo=$ac_try;;
20164esac
20165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20167  ac_status=$?
20168  grep -v '^ *+' conftest.er1 >conftest.err
20169  rm -f conftest.er1
20170  cat conftest.err >&5
20171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172  (exit $ac_status); } >/dev/null && {
20173	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20174	 test ! -s conftest.err
20175       }; then
20176  ac_header_preproc=yes
20177else
20178  echo "$as_me: failed program was:" >&5
20179sed 's/^/| /' conftest.$ac_ext >&5
20180
20181  ac_header_preproc=no
20182fi
20183
20184rm -f conftest.err conftest.$ac_ext
20185{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20186echo "${ECHO_T}$ac_header_preproc" >&6; }
20187
20188# So?  What about this header?
20189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20190  yes:no: )
20191    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20193    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20194echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20195    ac_header_preproc=yes
20196    ;;
20197  no:yes:* )
20198    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20199echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20200    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20201echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20202    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20203echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20204    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20205echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20206    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20207echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20208    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20209echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20210    ( cat <<\_ASBOX
20211## --------------------------------------------- ##
20212## Report this to <http://www.openldap.org/its/> ##
20213## --------------------------------------------- ##
20214_ASBOX
20215     ) | sed "s/^/$as_me: WARNING:     /" >&2
20216    ;;
20217esac
20218{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20221  echo $ECHO_N "(cached) $ECHO_C" >&6
20222else
20223  eval "$as_ac_Header=\$ac_header_preproc"
20224fi
20225ac_res=`eval echo '${'$as_ac_Header'}'`
20226	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20227echo "${ECHO_T}$ac_res" >&6; }
20228
20229fi
20230if test `eval echo '${'$as_ac_Header'}'` = yes; then
20231  cat >>confdefs.h <<_ACEOF
20232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20233_ACEOF
20234
20235fi
20236
20237done
20238
20239
20240	if test $ac_cv_header_pthread_h = yes ; then
20241		{ echo "$as_me:$LINENO: checking POSIX thread version" >&5
20242echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20243if test "${ol_cv_pthread_version+set}" = set; then
20244  echo $ECHO_N "(cached) $ECHO_C" >&6
20245else
20246
20247	cat >conftest.$ac_ext <<_ACEOF
20248/* confdefs.h.  */
20249_ACEOF
20250cat confdefs.h >>conftest.$ac_ext
20251cat >>conftest.$ac_ext <<_ACEOF
20252/* end confdefs.h.  */
20253
20254#		include <pthread.h>
20255
20256int
20257main ()
20258{
20259
20260		int i = PTHREAD_CREATE_JOINABLE;
20261
20262  ;
20263  return 0;
20264}
20265_ACEOF
20266rm -f conftest.$ac_objext
20267if { (ac_try="$ac_compile"
20268case "(($ac_try" in
20269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270  *) ac_try_echo=$ac_try;;
20271esac
20272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273  (eval "$ac_compile") 2>conftest.er1
20274  ac_status=$?
20275  grep -v '^ *+' conftest.er1 >conftest.err
20276  rm -f conftest.er1
20277  cat conftest.err >&5
20278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279  (exit $ac_status); } && {
20280	 test -z "$ac_c_werror_flag" ||
20281	 test ! -s conftest.err
20282       } && test -s conftest.$ac_objext; then
20283
20284	cat >conftest.$ac_ext <<_ACEOF
20285/* confdefs.h.  */
20286_ACEOF
20287cat confdefs.h >>conftest.$ac_ext
20288cat >>conftest.$ac_ext <<_ACEOF
20289/* end confdefs.h.  */
20290#include <pthread.h>
20291
20292_ACEOF
20293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20294  $EGREP "pthread_detach" >/dev/null 2>&1; then
20295  ol_cv_pthread_version=10
20296else
20297  ol_cv_pthread_version=8
20298fi
20299rm -f -r conftest*
20300
20301else
20302  echo "$as_me: failed program was:" >&5
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
20305
20306	cat >conftest.$ac_ext <<_ACEOF
20307/* confdefs.h.  */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h.  */
20312
20313#		include <pthread.h>
20314#		ifdef PTHREAD_CREATE_UNDETACHED
20315		draft7
20316#		endif
20317
20318_ACEOF
20319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20320  $EGREP "draft7" >/dev/null 2>&1; then
20321  ol_cv_pthread_version=7
20322else
20323
20324	cat >conftest.$ac_ext <<_ACEOF
20325/* confdefs.h.  */
20326_ACEOF
20327cat confdefs.h >>conftest.$ac_ext
20328cat >>conftest.$ac_ext <<_ACEOF
20329/* end confdefs.h.  */
20330#include <pthread.h>
20331
20332_ACEOF
20333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20334  $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20335  ol_cv_pthread_version=6
20336else
20337
20338	cat >conftest.$ac_ext <<_ACEOF
20339/* confdefs.h.  */
20340_ACEOF
20341cat confdefs.h >>conftest.$ac_ext
20342cat >>conftest.$ac_ext <<_ACEOF
20343/* end confdefs.h.  */
20344
20345#		include <pthread.h>
20346#ifdef		PTHREAD_MUTEX_INITIALIZER
20347		draft5
20348#endif
20349
20350_ACEOF
20351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20352  $EGREP "draft5" >/dev/null 2>&1; then
20353  ol_cv_pthread_version=5
20354else
20355  ol_cv_pthread_version=4
20356fi
20357rm -f -r conftest*
20358
20359fi
20360rm -f -r conftest*
20361
20362fi
20363rm -f -r conftest*
20364
20365fi
20366
20367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20368
20369fi
20370{ echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20371echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20372
20373
20374		if test $ol_cv_pthread_version != 0 ; then
20375
20376cat >>confdefs.h <<_ACEOF
20377#define HAVE_PTHREADS $ol_cv_pthread_version
20378_ACEOF
20379
20380		else
20381			{ { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20382echo "$as_me: error: unknown pthread version" >&2;}
20383   { (exit 1); exit 1; }; }
20384		fi
20385
20386		# consider threads found
20387		ol_with_threads=found
20388
20389
20390	{ echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20391echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20392if test "${ol_cv_header_linux_threads+set}" = set; then
20393  echo $ECHO_N "(cached) $ECHO_C" >&6
20394else
20395  cat >conftest.$ac_ext <<_ACEOF
20396/* confdefs.h.  */
20397_ACEOF
20398cat confdefs.h >>conftest.$ac_ext
20399cat >>conftest.$ac_ext <<_ACEOF
20400/* end confdefs.h.  */
20401#include <pthread.h>
20402_ACEOF
20403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20404  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20405  ol_cv_header_linux_threads=yes
20406else
20407  ol_cv_header_linux_threads=no
20408fi
20409rm -f -r conftest*
20410
20411
20412fi
20413{ echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20414echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20415	if test $ol_cv_header_linux_threads = yes; then
20416
20417cat >>confdefs.h <<\_ACEOF
20418#define HAVE_LINUX_THREADS 1
20419_ACEOF
20420
20421	fi
20422
20423
20424	{ echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20425echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20426if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20427  echo $ECHO_N "(cached) $ECHO_C" >&6
20428else
20429  cat >conftest.$ac_ext <<_ACEOF
20430/* confdefs.h.  */
20431_ACEOF
20432cat confdefs.h >>conftest.$ac_ext
20433cat >>conftest.$ac_ext <<_ACEOF
20434/* end confdefs.h.  */
20435#include <pthread.h>
20436#ifdef _POSIX_THREAD_IS_GNU_PTH
20437	__gnu_pth__;
20438#endif
20439
20440_ACEOF
20441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20442  $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20443  ol_cv_header_gnu_pth_pthread_h=yes
20444else
20445  ol_cv_header_gnu_pth_pthread_h=no
20446fi
20447rm -f -r conftest*
20448
20449
20450fi
20451{ echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20452echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20453
20454
20455		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20456
20457for ac_header in sched.h
20458do
20459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20461  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20464  echo $ECHO_N "(cached) $ECHO_C" >&6
20465fi
20466ac_res=`eval echo '${'$as_ac_Header'}'`
20467	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20468echo "${ECHO_T}$ac_res" >&6; }
20469else
20470  # Is the header compilable?
20471{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20472echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20473cat >conftest.$ac_ext <<_ACEOF
20474/* confdefs.h.  */
20475_ACEOF
20476cat confdefs.h >>conftest.$ac_ext
20477cat >>conftest.$ac_ext <<_ACEOF
20478/* end confdefs.h.  */
20479$ac_includes_default
20480#include <$ac_header>
20481_ACEOF
20482rm -f conftest.$ac_objext
20483if { (ac_try="$ac_compile"
20484case "(($ac_try" in
20485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486  *) ac_try_echo=$ac_try;;
20487esac
20488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489  (eval "$ac_compile") 2>conftest.er1
20490  ac_status=$?
20491  grep -v '^ *+' conftest.er1 >conftest.err
20492  rm -f conftest.er1
20493  cat conftest.err >&5
20494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495  (exit $ac_status); } && {
20496	 test -z "$ac_c_werror_flag" ||
20497	 test ! -s conftest.err
20498       } && test -s conftest.$ac_objext; then
20499  ac_header_compiler=yes
20500else
20501  echo "$as_me: failed program was:" >&5
20502sed 's/^/| /' conftest.$ac_ext >&5
20503
20504	ac_header_compiler=no
20505fi
20506
20507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20509echo "${ECHO_T}$ac_header_compiler" >&6; }
20510
20511# Is the header present?
20512{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20514cat >conftest.$ac_ext <<_ACEOF
20515/* confdefs.h.  */
20516_ACEOF
20517cat confdefs.h >>conftest.$ac_ext
20518cat >>conftest.$ac_ext <<_ACEOF
20519/* end confdefs.h.  */
20520#include <$ac_header>
20521_ACEOF
20522if { (ac_try="$ac_cpp conftest.$ac_ext"
20523case "(($ac_try" in
20524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525  *) ac_try_echo=$ac_try;;
20526esac
20527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20529  ac_status=$?
20530  grep -v '^ *+' conftest.er1 >conftest.err
20531  rm -f conftest.er1
20532  cat conftest.err >&5
20533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534  (exit $ac_status); } >/dev/null && {
20535	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20536	 test ! -s conftest.err
20537       }; then
20538  ac_header_preproc=yes
20539else
20540  echo "$as_me: failed program was:" >&5
20541sed 's/^/| /' conftest.$ac_ext >&5
20542
20543  ac_header_preproc=no
20544fi
20545
20546rm -f conftest.err conftest.$ac_ext
20547{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20548echo "${ECHO_T}$ac_header_preproc" >&6; }
20549
20550# So?  What about this header?
20551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20552  yes:no: )
20553    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20554echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20555    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20556echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20557    ac_header_preproc=yes
20558    ;;
20559  no:yes:* )
20560    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20561echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20562    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20563echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20564    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20565echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20566    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20567echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20568    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20569echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20570    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20571echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20572    ( cat <<\_ASBOX
20573## --------------------------------------------- ##
20574## Report this to <http://www.openldap.org/its/> ##
20575## --------------------------------------------- ##
20576_ASBOX
20577     ) | sed "s/^/$as_me: WARNING:     /" >&2
20578    ;;
20579esac
20580{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20583  echo $ECHO_N "(cached) $ECHO_C" >&6
20584else
20585  eval "$as_ac_Header=\$ac_header_preproc"
20586fi
20587ac_res=`eval echo '${'$as_ac_Header'}'`
20588	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20589echo "${ECHO_T}$ac_res" >&6; }
20590
20591fi
20592if test `eval echo '${'$as_ac_Header'}'` = yes; then
20593  cat >>confdefs.h <<_ACEOF
20594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20595_ACEOF
20596
20597fi
20598
20599done
20600
20601		fi
20602
20603
20604				{ echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20605echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20606if test "${ol_cv_pthread_create+set}" = set; then
20607  echo $ECHO_N "(cached) $ECHO_C" >&6
20608else
20609
20610			if test "$cross_compiling" = yes; then
20611  cat >conftest.$ac_ext <<_ACEOF
20612/* confdefs.h.  */
20613_ACEOF
20614cat confdefs.h >>conftest.$ac_ext
20615cat >>conftest.$ac_ext <<_ACEOF
20616/* end confdefs.h.  */
20617
20618/* pthread test headers */
20619#include <pthread.h>
20620#if HAVE_PTHREADS < 7
20621#include <errno.h>
20622#endif
20623#ifndef NULL
20624#define NULL (void*)0
20625#endif
20626
20627static void *task(p)
20628	void *p;
20629{
20630	return (void *) (p == NULL);
20631}
20632
20633int
20634main ()
20635{
20636
20637	/* pthread test function */
20638#ifndef PTHREAD_CREATE_DETACHED
20639#define	PTHREAD_CREATE_DETACHED	1
20640#endif
20641	pthread_t t;
20642	int status;
20643	int detach = PTHREAD_CREATE_DETACHED;
20644
20645#if HAVE_PTHREADS > 4
20646	/* Final pthreads */
20647	pthread_attr_t attr;
20648
20649	status = pthread_attr_init(&attr);
20650	if( status ) return status;
20651
20652#if HAVE_PTHREADS < 7
20653	status = pthread_attr_setdetachstate(&attr, &detach);
20654	if( status < 0 ) status = errno;
20655#else
20656	status = pthread_attr_setdetachstate(&attr, detach);
20657#endif
20658	if( status ) return status;
20659	status = pthread_create( &t, &attr, task, NULL );
20660#if HAVE_PTHREADS < 7
20661	if( status < 0 ) status = errno;
20662#endif
20663	if( status ) return status;
20664#else
20665	/* Draft 4 pthreads */
20666	status = pthread_create( &t, pthread_attr_default, task, NULL );
20667	if( status ) return errno;
20668
20669	/* give thread a chance to complete */
20670	/* it should remain joinable and hence detachable */
20671	sleep( 1 );
20672
20673	status = pthread_detach( &t );
20674	if( status ) return errno;
20675#endif
20676
20677#ifdef HAVE_LINUX_THREADS
20678	pthread_kill_other_threads_np();
20679#endif
20680
20681	return 0;
20682
20683  ;
20684  return 0;
20685}
20686_ACEOF
20687rm -f conftest.$ac_objext conftest$ac_exeext
20688if { (ac_try="$ac_link"
20689case "(($ac_try" in
20690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691  *) ac_try_echo=$ac_try;;
20692esac
20693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694  (eval "$ac_link") 2>conftest.er1
20695  ac_status=$?
20696  grep -v '^ *+' conftest.er1 >conftest.err
20697  rm -f conftest.er1
20698  cat conftest.err >&5
20699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700  (exit $ac_status); } && {
20701	 test -z "$ac_c_werror_flag" ||
20702	 test ! -s conftest.err
20703       } && test -s conftest$ac_exeext &&
20704       $as_test_x conftest$ac_exeext; then
20705  ol_cv_pthread_create=yes
20706else
20707  echo "$as_me: failed program was:" >&5
20708sed 's/^/| /' conftest.$ac_ext >&5
20709
20710	ol_cv_pthread_create=no
20711fi
20712
20713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20714      conftest$ac_exeext conftest.$ac_ext
20715else
20716  cat >conftest.$ac_ext <<_ACEOF
20717/* confdefs.h.  */
20718_ACEOF
20719cat confdefs.h >>conftest.$ac_ext
20720cat >>conftest.$ac_ext <<_ACEOF
20721/* end confdefs.h.  */
20722
20723/* pthread test headers */
20724#include <pthread.h>
20725#if HAVE_PTHREADS < 7
20726#include <errno.h>
20727#endif
20728#ifndef NULL
20729#define NULL (void*)0
20730#endif
20731
20732static void *task(p)
20733	void *p;
20734{
20735	return (void *) (p == NULL);
20736}
20737
20738
20739int main(argc, argv)
20740	int argc;
20741	char **argv;
20742{
20743
20744	/* pthread test function */
20745#ifndef PTHREAD_CREATE_DETACHED
20746#define	PTHREAD_CREATE_DETACHED	1
20747#endif
20748	pthread_t t;
20749	int status;
20750	int detach = PTHREAD_CREATE_DETACHED;
20751
20752#if HAVE_PTHREADS > 4
20753	/* Final pthreads */
20754	pthread_attr_t attr;
20755
20756	status = pthread_attr_init(&attr);
20757	if( status ) return status;
20758
20759#if HAVE_PTHREADS < 7
20760	status = pthread_attr_setdetachstate(&attr, &detach);
20761	if( status < 0 ) status = errno;
20762#else
20763	status = pthread_attr_setdetachstate(&attr, detach);
20764#endif
20765	if( status ) return status;
20766	status = pthread_create( &t, &attr, task, NULL );
20767#if HAVE_PTHREADS < 7
20768	if( status < 0 ) status = errno;
20769#endif
20770	if( status ) return status;
20771#else
20772	/* Draft 4 pthreads */
20773	status = pthread_create( &t, pthread_attr_default, task, NULL );
20774	if( status ) return errno;
20775
20776	/* give thread a chance to complete */
20777	/* it should remain joinable and hence detachable */
20778	sleep( 1 );
20779
20780	status = pthread_detach( &t );
20781	if( status ) return errno;
20782#endif
20783
20784#ifdef HAVE_LINUX_THREADS
20785	pthread_kill_other_threads_np();
20786#endif
20787
20788	return 0;
20789
20790}
20791
20792_ACEOF
20793rm -f conftest$ac_exeext
20794if { (ac_try="$ac_link"
20795case "(($ac_try" in
20796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797  *) ac_try_echo=$ac_try;;
20798esac
20799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800  (eval "$ac_link") 2>&5
20801  ac_status=$?
20802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20804  { (case "(($ac_try" in
20805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806  *) ac_try_echo=$ac_try;;
20807esac
20808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809  (eval "$ac_try") 2>&5
20810  ac_status=$?
20811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812  (exit $ac_status); }; }; then
20813  ol_cv_pthread_create=yes
20814else
20815  echo "$as_me: program exited with status $ac_status" >&5
20816echo "$as_me: failed program was:" >&5
20817sed 's/^/| /' conftest.$ac_ext >&5
20818
20819( exit $ac_status )
20820ol_cv_pthread_create=no
20821fi
20822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20823fi
20824
20825
20826fi
20827{ echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20828echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20829
20830		if test $ol_cv_pthread_create != no ; then
20831			ol_link_threads=posix
20832			ol_link_pthreads=""
20833		fi
20834
20835		# Pthread try link: -kthread (ol_cv_pthread_kthread)
20836if test "$ol_link_threads" = no ; then
20837	# try -kthread
20838	{ echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20839echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20840if test "${ol_cv_pthread_kthread+set}" = set; then
20841  echo $ECHO_N "(cached) $ECHO_C" >&6
20842else
20843
20844		# save the flags
20845		ol_LIBS="$LIBS"
20846		LIBS="-kthread $LIBS"
20847
20848		if test "$cross_compiling" = yes; then
20849  cat >conftest.$ac_ext <<_ACEOF
20850/* confdefs.h.  */
20851_ACEOF
20852cat confdefs.h >>conftest.$ac_ext
20853cat >>conftest.$ac_ext <<_ACEOF
20854/* end confdefs.h.  */
20855
20856/* pthread test headers */
20857#include <pthread.h>
20858#if HAVE_PTHREADS < 7
20859#include <errno.h>
20860#endif
20861#ifndef NULL
20862#define NULL (void*)0
20863#endif
20864
20865static void *task(p)
20866	void *p;
20867{
20868	return (void *) (p == NULL);
20869}
20870
20871int
20872main ()
20873{
20874
20875	/* pthread test function */
20876#ifndef PTHREAD_CREATE_DETACHED
20877#define	PTHREAD_CREATE_DETACHED	1
20878#endif
20879	pthread_t t;
20880	int status;
20881	int detach = PTHREAD_CREATE_DETACHED;
20882
20883#if HAVE_PTHREADS > 4
20884	/* Final pthreads */
20885	pthread_attr_t attr;
20886
20887	status = pthread_attr_init(&attr);
20888	if( status ) return status;
20889
20890#if HAVE_PTHREADS < 7
20891	status = pthread_attr_setdetachstate(&attr, &detach);
20892	if( status < 0 ) status = errno;
20893#else
20894	status = pthread_attr_setdetachstate(&attr, detach);
20895#endif
20896	if( status ) return status;
20897	status = pthread_create( &t, &attr, task, NULL );
20898#if HAVE_PTHREADS < 7
20899	if( status < 0 ) status = errno;
20900#endif
20901	if( status ) return status;
20902#else
20903	/* Draft 4 pthreads */
20904	status = pthread_create( &t, pthread_attr_default, task, NULL );
20905	if( status ) return errno;
20906
20907	/* give thread a chance to complete */
20908	/* it should remain joinable and hence detachable */
20909	sleep( 1 );
20910
20911	status = pthread_detach( &t );
20912	if( status ) return errno;
20913#endif
20914
20915#ifdef HAVE_LINUX_THREADS
20916	pthread_kill_other_threads_np();
20917#endif
20918
20919	return 0;
20920
20921  ;
20922  return 0;
20923}
20924_ACEOF
20925rm -f conftest.$ac_objext conftest$ac_exeext
20926if { (ac_try="$ac_link"
20927case "(($ac_try" in
20928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929  *) ac_try_echo=$ac_try;;
20930esac
20931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932  (eval "$ac_link") 2>conftest.er1
20933  ac_status=$?
20934  grep -v '^ *+' conftest.er1 >conftest.err
20935  rm -f conftest.er1
20936  cat conftest.err >&5
20937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938  (exit $ac_status); } && {
20939	 test -z "$ac_c_werror_flag" ||
20940	 test ! -s conftest.err
20941       } && test -s conftest$ac_exeext &&
20942       $as_test_x conftest$ac_exeext; then
20943  ol_cv_pthread_kthread=yes
20944else
20945  echo "$as_me: failed program was:" >&5
20946sed 's/^/| /' conftest.$ac_ext >&5
20947
20948	ol_cv_pthread_kthread=no
20949fi
20950
20951rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20952      conftest$ac_exeext conftest.$ac_ext
20953else
20954  cat >conftest.$ac_ext <<_ACEOF
20955/* confdefs.h.  */
20956_ACEOF
20957cat confdefs.h >>conftest.$ac_ext
20958cat >>conftest.$ac_ext <<_ACEOF
20959/* end confdefs.h.  */
20960
20961/* pthread test headers */
20962#include <pthread.h>
20963#if HAVE_PTHREADS < 7
20964#include <errno.h>
20965#endif
20966#ifndef NULL
20967#define NULL (void*)0
20968#endif
20969
20970static void *task(p)
20971	void *p;
20972{
20973	return (void *) (p == NULL);
20974}
20975
20976
20977int main(argc, argv)
20978	int argc;
20979	char **argv;
20980{
20981
20982	/* pthread test function */
20983#ifndef PTHREAD_CREATE_DETACHED
20984#define	PTHREAD_CREATE_DETACHED	1
20985#endif
20986	pthread_t t;
20987	int status;
20988	int detach = PTHREAD_CREATE_DETACHED;
20989
20990#if HAVE_PTHREADS > 4
20991	/* Final pthreads */
20992	pthread_attr_t attr;
20993
20994	status = pthread_attr_init(&attr);
20995	if( status ) return status;
20996
20997#if HAVE_PTHREADS < 7
20998	status = pthread_attr_setdetachstate(&attr, &detach);
20999	if( status < 0 ) status = errno;
21000#else
21001	status = pthread_attr_setdetachstate(&attr, detach);
21002#endif
21003	if( status ) return status;
21004	status = pthread_create( &t, &attr, task, NULL );
21005#if HAVE_PTHREADS < 7
21006	if( status < 0 ) status = errno;
21007#endif
21008	if( status ) return status;
21009#else
21010	/* Draft 4 pthreads */
21011	status = pthread_create( &t, pthread_attr_default, task, NULL );
21012	if( status ) return errno;
21013
21014	/* give thread a chance to complete */
21015	/* it should remain joinable and hence detachable */
21016	sleep( 1 );
21017
21018	status = pthread_detach( &t );
21019	if( status ) return errno;
21020#endif
21021
21022#ifdef HAVE_LINUX_THREADS
21023	pthread_kill_other_threads_np();
21024#endif
21025
21026	return 0;
21027
21028}
21029
21030_ACEOF
21031rm -f conftest$ac_exeext
21032if { (ac_try="$ac_link"
21033case "(($ac_try" in
21034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035  *) ac_try_echo=$ac_try;;
21036esac
21037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038  (eval "$ac_link") 2>&5
21039  ac_status=$?
21040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21042  { (case "(($ac_try" in
21043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044  *) ac_try_echo=$ac_try;;
21045esac
21046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047  (eval "$ac_try") 2>&5
21048  ac_status=$?
21049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050  (exit $ac_status); }; }; then
21051  ol_cv_pthread_kthread=yes
21052else
21053  echo "$as_me: program exited with status $ac_status" >&5
21054echo "$as_me: failed program was:" >&5
21055sed 's/^/| /' conftest.$ac_ext >&5
21056
21057( exit $ac_status )
21058ol_cv_pthread_kthread=no
21059fi
21060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21061fi
21062
21063
21064
21065		# restore the LIBS
21066		LIBS="$ol_LIBS"
21067
21068fi
21069{ echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21070echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21071
21072	if test $ol_cv_pthread_kthread = yes ; then
21073		ol_link_pthreads="-kthread"
21074		ol_link_threads=posix
21075	fi
21076fi
21077
21078		# Pthread try link: -pthread (ol_cv_pthread_pthread)
21079if test "$ol_link_threads" = no ; then
21080	# try -pthread
21081	{ echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21082echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21083if test "${ol_cv_pthread_pthread+set}" = set; then
21084  echo $ECHO_N "(cached) $ECHO_C" >&6
21085else
21086
21087		# save the flags
21088		ol_LIBS="$LIBS"
21089		LIBS="-pthread $LIBS"
21090
21091		if test "$cross_compiling" = yes; then
21092  cat >conftest.$ac_ext <<_ACEOF
21093/* confdefs.h.  */
21094_ACEOF
21095cat confdefs.h >>conftest.$ac_ext
21096cat >>conftest.$ac_ext <<_ACEOF
21097/* end confdefs.h.  */
21098
21099/* pthread test headers */
21100#include <pthread.h>
21101#if HAVE_PTHREADS < 7
21102#include <errno.h>
21103#endif
21104#ifndef NULL
21105#define NULL (void*)0
21106#endif
21107
21108static void *task(p)
21109	void *p;
21110{
21111	return (void *) (p == NULL);
21112}
21113
21114int
21115main ()
21116{
21117
21118	/* pthread test function */
21119#ifndef PTHREAD_CREATE_DETACHED
21120#define	PTHREAD_CREATE_DETACHED	1
21121#endif
21122	pthread_t t;
21123	int status;
21124	int detach = PTHREAD_CREATE_DETACHED;
21125
21126#if HAVE_PTHREADS > 4
21127	/* Final pthreads */
21128	pthread_attr_t attr;
21129
21130	status = pthread_attr_init(&attr);
21131	if( status ) return status;
21132
21133#if HAVE_PTHREADS < 7
21134	status = pthread_attr_setdetachstate(&attr, &detach);
21135	if( status < 0 ) status = errno;
21136#else
21137	status = pthread_attr_setdetachstate(&attr, detach);
21138#endif
21139	if( status ) return status;
21140	status = pthread_create( &t, &attr, task, NULL );
21141#if HAVE_PTHREADS < 7
21142	if( status < 0 ) status = errno;
21143#endif
21144	if( status ) return status;
21145#else
21146	/* Draft 4 pthreads */
21147	status = pthread_create( &t, pthread_attr_default, task, NULL );
21148	if( status ) return errno;
21149
21150	/* give thread a chance to complete */
21151	/* it should remain joinable and hence detachable */
21152	sleep( 1 );
21153
21154	status = pthread_detach( &t );
21155	if( status ) return errno;
21156#endif
21157
21158#ifdef HAVE_LINUX_THREADS
21159	pthread_kill_other_threads_np();
21160#endif
21161
21162	return 0;
21163
21164  ;
21165  return 0;
21166}
21167_ACEOF
21168rm -f conftest.$ac_objext conftest$ac_exeext
21169if { (ac_try="$ac_link"
21170case "(($ac_try" in
21171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172  *) ac_try_echo=$ac_try;;
21173esac
21174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175  (eval "$ac_link") 2>conftest.er1
21176  ac_status=$?
21177  grep -v '^ *+' conftest.er1 >conftest.err
21178  rm -f conftest.er1
21179  cat conftest.err >&5
21180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181  (exit $ac_status); } && {
21182	 test -z "$ac_c_werror_flag" ||
21183	 test ! -s conftest.err
21184       } && test -s conftest$ac_exeext &&
21185       $as_test_x conftest$ac_exeext; then
21186  ol_cv_pthread_pthread=yes
21187else
21188  echo "$as_me: failed program was:" >&5
21189sed 's/^/| /' conftest.$ac_ext >&5
21190
21191	ol_cv_pthread_pthread=no
21192fi
21193
21194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21195      conftest$ac_exeext conftest.$ac_ext
21196else
21197  cat >conftest.$ac_ext <<_ACEOF
21198/* confdefs.h.  */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h.  */
21203
21204/* pthread test headers */
21205#include <pthread.h>
21206#if HAVE_PTHREADS < 7
21207#include <errno.h>
21208#endif
21209#ifndef NULL
21210#define NULL (void*)0
21211#endif
21212
21213static void *task(p)
21214	void *p;
21215{
21216	return (void *) (p == NULL);
21217}
21218
21219
21220int main(argc, argv)
21221	int argc;
21222	char **argv;
21223{
21224
21225	/* pthread test function */
21226#ifndef PTHREAD_CREATE_DETACHED
21227#define	PTHREAD_CREATE_DETACHED	1
21228#endif
21229	pthread_t t;
21230	int status;
21231	int detach = PTHREAD_CREATE_DETACHED;
21232
21233#if HAVE_PTHREADS > 4
21234	/* Final pthreads */
21235	pthread_attr_t attr;
21236
21237	status = pthread_attr_init(&attr);
21238	if( status ) return status;
21239
21240#if HAVE_PTHREADS < 7
21241	status = pthread_attr_setdetachstate(&attr, &detach);
21242	if( status < 0 ) status = errno;
21243#else
21244	status = pthread_attr_setdetachstate(&attr, detach);
21245#endif
21246	if( status ) return status;
21247	status = pthread_create( &t, &attr, task, NULL );
21248#if HAVE_PTHREADS < 7
21249	if( status < 0 ) status = errno;
21250#endif
21251	if( status ) return status;
21252#else
21253	/* Draft 4 pthreads */
21254	status = pthread_create( &t, pthread_attr_default, task, NULL );
21255	if( status ) return errno;
21256
21257	/* give thread a chance to complete */
21258	/* it should remain joinable and hence detachable */
21259	sleep( 1 );
21260
21261	status = pthread_detach( &t );
21262	if( status ) return errno;
21263#endif
21264
21265#ifdef HAVE_LINUX_THREADS
21266	pthread_kill_other_threads_np();
21267#endif
21268
21269	return 0;
21270
21271}
21272
21273_ACEOF
21274rm -f conftest$ac_exeext
21275if { (ac_try="$ac_link"
21276case "(($ac_try" in
21277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278  *) ac_try_echo=$ac_try;;
21279esac
21280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281  (eval "$ac_link") 2>&5
21282  ac_status=$?
21283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21285  { (case "(($ac_try" in
21286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287  *) ac_try_echo=$ac_try;;
21288esac
21289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290  (eval "$ac_try") 2>&5
21291  ac_status=$?
21292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293  (exit $ac_status); }; }; then
21294  ol_cv_pthread_pthread=yes
21295else
21296  echo "$as_me: program exited with status $ac_status" >&5
21297echo "$as_me: failed program was:" >&5
21298sed 's/^/| /' conftest.$ac_ext >&5
21299
21300( exit $ac_status )
21301ol_cv_pthread_pthread=no
21302fi
21303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21304fi
21305
21306
21307
21308		# restore the LIBS
21309		LIBS="$ol_LIBS"
21310
21311fi
21312{ echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21313echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21314
21315	if test $ol_cv_pthread_pthread = yes ; then
21316		ol_link_pthreads="-pthread"
21317		ol_link_threads=posix
21318	fi
21319fi
21320
21321		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21322if test "$ol_link_threads" = no ; then
21323	# try -pthreads
21324	{ echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21325echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21326if test "${ol_cv_pthread_pthreads+set}" = set; then
21327  echo $ECHO_N "(cached) $ECHO_C" >&6
21328else
21329
21330		# save the flags
21331		ol_LIBS="$LIBS"
21332		LIBS="-pthreads $LIBS"
21333
21334		if test "$cross_compiling" = yes; then
21335  cat >conftest.$ac_ext <<_ACEOF
21336/* confdefs.h.  */
21337_ACEOF
21338cat confdefs.h >>conftest.$ac_ext
21339cat >>conftest.$ac_ext <<_ACEOF
21340/* end confdefs.h.  */
21341
21342/* pthread test headers */
21343#include <pthread.h>
21344#if HAVE_PTHREADS < 7
21345#include <errno.h>
21346#endif
21347#ifndef NULL
21348#define NULL (void*)0
21349#endif
21350
21351static void *task(p)
21352	void *p;
21353{
21354	return (void *) (p == NULL);
21355}
21356
21357int
21358main ()
21359{
21360
21361	/* pthread test function */
21362#ifndef PTHREAD_CREATE_DETACHED
21363#define	PTHREAD_CREATE_DETACHED	1
21364#endif
21365	pthread_t t;
21366	int status;
21367	int detach = PTHREAD_CREATE_DETACHED;
21368
21369#if HAVE_PTHREADS > 4
21370	/* Final pthreads */
21371	pthread_attr_t attr;
21372
21373	status = pthread_attr_init(&attr);
21374	if( status ) return status;
21375
21376#if HAVE_PTHREADS < 7
21377	status = pthread_attr_setdetachstate(&attr, &detach);
21378	if( status < 0 ) status = errno;
21379#else
21380	status = pthread_attr_setdetachstate(&attr, detach);
21381#endif
21382	if( status ) return status;
21383	status = pthread_create( &t, &attr, task, NULL );
21384#if HAVE_PTHREADS < 7
21385	if( status < 0 ) status = errno;
21386#endif
21387	if( status ) return status;
21388#else
21389	/* Draft 4 pthreads */
21390	status = pthread_create( &t, pthread_attr_default, task, NULL );
21391	if( status ) return errno;
21392
21393	/* give thread a chance to complete */
21394	/* it should remain joinable and hence detachable */
21395	sleep( 1 );
21396
21397	status = pthread_detach( &t );
21398	if( status ) return errno;
21399#endif
21400
21401#ifdef HAVE_LINUX_THREADS
21402	pthread_kill_other_threads_np();
21403#endif
21404
21405	return 0;
21406
21407  ;
21408  return 0;
21409}
21410_ACEOF
21411rm -f conftest.$ac_objext conftest$ac_exeext
21412if { (ac_try="$ac_link"
21413case "(($ac_try" in
21414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415  *) ac_try_echo=$ac_try;;
21416esac
21417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418  (eval "$ac_link") 2>conftest.er1
21419  ac_status=$?
21420  grep -v '^ *+' conftest.er1 >conftest.err
21421  rm -f conftest.er1
21422  cat conftest.err >&5
21423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424  (exit $ac_status); } && {
21425	 test -z "$ac_c_werror_flag" ||
21426	 test ! -s conftest.err
21427       } && test -s conftest$ac_exeext &&
21428       $as_test_x conftest$ac_exeext; then
21429  ol_cv_pthread_pthreads=yes
21430else
21431  echo "$as_me: failed program was:" >&5
21432sed 's/^/| /' conftest.$ac_ext >&5
21433
21434	ol_cv_pthread_pthreads=no
21435fi
21436
21437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21438      conftest$ac_exeext conftest.$ac_ext
21439else
21440  cat >conftest.$ac_ext <<_ACEOF
21441/* confdefs.h.  */
21442_ACEOF
21443cat confdefs.h >>conftest.$ac_ext
21444cat >>conftest.$ac_ext <<_ACEOF
21445/* end confdefs.h.  */
21446
21447/* pthread test headers */
21448#include <pthread.h>
21449#if HAVE_PTHREADS < 7
21450#include <errno.h>
21451#endif
21452#ifndef NULL
21453#define NULL (void*)0
21454#endif
21455
21456static void *task(p)
21457	void *p;
21458{
21459	return (void *) (p == NULL);
21460}
21461
21462
21463int main(argc, argv)
21464	int argc;
21465	char **argv;
21466{
21467
21468	/* pthread test function */
21469#ifndef PTHREAD_CREATE_DETACHED
21470#define	PTHREAD_CREATE_DETACHED	1
21471#endif
21472	pthread_t t;
21473	int status;
21474	int detach = PTHREAD_CREATE_DETACHED;
21475
21476#if HAVE_PTHREADS > 4
21477	/* Final pthreads */
21478	pthread_attr_t attr;
21479
21480	status = pthread_attr_init(&attr);
21481	if( status ) return status;
21482
21483#if HAVE_PTHREADS < 7
21484	status = pthread_attr_setdetachstate(&attr, &detach);
21485	if( status < 0 ) status = errno;
21486#else
21487	status = pthread_attr_setdetachstate(&attr, detach);
21488#endif
21489	if( status ) return status;
21490	status = pthread_create( &t, &attr, task, NULL );
21491#if HAVE_PTHREADS < 7
21492	if( status < 0 ) status = errno;
21493#endif
21494	if( status ) return status;
21495#else
21496	/* Draft 4 pthreads */
21497	status = pthread_create( &t, pthread_attr_default, task, NULL );
21498	if( status ) return errno;
21499
21500	/* give thread a chance to complete */
21501	/* it should remain joinable and hence detachable */
21502	sleep( 1 );
21503
21504	status = pthread_detach( &t );
21505	if( status ) return errno;
21506#endif
21507
21508#ifdef HAVE_LINUX_THREADS
21509	pthread_kill_other_threads_np();
21510#endif
21511
21512	return 0;
21513
21514}
21515
21516_ACEOF
21517rm -f conftest$ac_exeext
21518if { (ac_try="$ac_link"
21519case "(($ac_try" in
21520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521  *) ac_try_echo=$ac_try;;
21522esac
21523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524  (eval "$ac_link") 2>&5
21525  ac_status=$?
21526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21528  { (case "(($ac_try" in
21529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530  *) ac_try_echo=$ac_try;;
21531esac
21532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533  (eval "$ac_try") 2>&5
21534  ac_status=$?
21535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536  (exit $ac_status); }; }; then
21537  ol_cv_pthread_pthreads=yes
21538else
21539  echo "$as_me: program exited with status $ac_status" >&5
21540echo "$as_me: failed program was:" >&5
21541sed 's/^/| /' conftest.$ac_ext >&5
21542
21543( exit $ac_status )
21544ol_cv_pthread_pthreads=no
21545fi
21546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21547fi
21548
21549
21550
21551		# restore the LIBS
21552		LIBS="$ol_LIBS"
21553
21554fi
21555{ echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21556echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21557
21558	if test $ol_cv_pthread_pthreads = yes ; then
21559		ol_link_pthreads="-pthreads"
21560		ol_link_threads=posix
21561	fi
21562fi
21563
21564		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21565if test "$ol_link_threads" = no ; then
21566	# try -mthreads
21567	{ echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21568echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21569if test "${ol_cv_pthread_mthreads+set}" = set; then
21570  echo $ECHO_N "(cached) $ECHO_C" >&6
21571else
21572
21573		# save the flags
21574		ol_LIBS="$LIBS"
21575		LIBS="-mthreads $LIBS"
21576
21577		if test "$cross_compiling" = yes; then
21578  cat >conftest.$ac_ext <<_ACEOF
21579/* confdefs.h.  */
21580_ACEOF
21581cat confdefs.h >>conftest.$ac_ext
21582cat >>conftest.$ac_ext <<_ACEOF
21583/* end confdefs.h.  */
21584
21585/* pthread test headers */
21586#include <pthread.h>
21587#if HAVE_PTHREADS < 7
21588#include <errno.h>
21589#endif
21590#ifndef NULL
21591#define NULL (void*)0
21592#endif
21593
21594static void *task(p)
21595	void *p;
21596{
21597	return (void *) (p == NULL);
21598}
21599
21600int
21601main ()
21602{
21603
21604	/* pthread test function */
21605#ifndef PTHREAD_CREATE_DETACHED
21606#define	PTHREAD_CREATE_DETACHED	1
21607#endif
21608	pthread_t t;
21609	int status;
21610	int detach = PTHREAD_CREATE_DETACHED;
21611
21612#if HAVE_PTHREADS > 4
21613	/* Final pthreads */
21614	pthread_attr_t attr;
21615
21616	status = pthread_attr_init(&attr);
21617	if( status ) return status;
21618
21619#if HAVE_PTHREADS < 7
21620	status = pthread_attr_setdetachstate(&attr, &detach);
21621	if( status < 0 ) status = errno;
21622#else
21623	status = pthread_attr_setdetachstate(&attr, detach);
21624#endif
21625	if( status ) return status;
21626	status = pthread_create( &t, &attr, task, NULL );
21627#if HAVE_PTHREADS < 7
21628	if( status < 0 ) status = errno;
21629#endif
21630	if( status ) return status;
21631#else
21632	/* Draft 4 pthreads */
21633	status = pthread_create( &t, pthread_attr_default, task, NULL );
21634	if( status ) return errno;
21635
21636	/* give thread a chance to complete */
21637	/* it should remain joinable and hence detachable */
21638	sleep( 1 );
21639
21640	status = pthread_detach( &t );
21641	if( status ) return errno;
21642#endif
21643
21644#ifdef HAVE_LINUX_THREADS
21645	pthread_kill_other_threads_np();
21646#endif
21647
21648	return 0;
21649
21650  ;
21651  return 0;
21652}
21653_ACEOF
21654rm -f conftest.$ac_objext conftest$ac_exeext
21655if { (ac_try="$ac_link"
21656case "(($ac_try" in
21657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658  *) ac_try_echo=$ac_try;;
21659esac
21660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661  (eval "$ac_link") 2>conftest.er1
21662  ac_status=$?
21663  grep -v '^ *+' conftest.er1 >conftest.err
21664  rm -f conftest.er1
21665  cat conftest.err >&5
21666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667  (exit $ac_status); } && {
21668	 test -z "$ac_c_werror_flag" ||
21669	 test ! -s conftest.err
21670       } && test -s conftest$ac_exeext &&
21671       $as_test_x conftest$ac_exeext; then
21672  ol_cv_pthread_mthreads=yes
21673else
21674  echo "$as_me: failed program was:" >&5
21675sed 's/^/| /' conftest.$ac_ext >&5
21676
21677	ol_cv_pthread_mthreads=no
21678fi
21679
21680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21681      conftest$ac_exeext conftest.$ac_ext
21682else
21683  cat >conftest.$ac_ext <<_ACEOF
21684/* confdefs.h.  */
21685_ACEOF
21686cat confdefs.h >>conftest.$ac_ext
21687cat >>conftest.$ac_ext <<_ACEOF
21688/* end confdefs.h.  */
21689
21690/* pthread test headers */
21691#include <pthread.h>
21692#if HAVE_PTHREADS < 7
21693#include <errno.h>
21694#endif
21695#ifndef NULL
21696#define NULL (void*)0
21697#endif
21698
21699static void *task(p)
21700	void *p;
21701{
21702	return (void *) (p == NULL);
21703}
21704
21705
21706int main(argc, argv)
21707	int argc;
21708	char **argv;
21709{
21710
21711	/* pthread test function */
21712#ifndef PTHREAD_CREATE_DETACHED
21713#define	PTHREAD_CREATE_DETACHED	1
21714#endif
21715	pthread_t t;
21716	int status;
21717	int detach = PTHREAD_CREATE_DETACHED;
21718
21719#if HAVE_PTHREADS > 4
21720	/* Final pthreads */
21721	pthread_attr_t attr;
21722
21723	status = pthread_attr_init(&attr);
21724	if( status ) return status;
21725
21726#if HAVE_PTHREADS < 7
21727	status = pthread_attr_setdetachstate(&attr, &detach);
21728	if( status < 0 ) status = errno;
21729#else
21730	status = pthread_attr_setdetachstate(&attr, detach);
21731#endif
21732	if( status ) return status;
21733	status = pthread_create( &t, &attr, task, NULL );
21734#if HAVE_PTHREADS < 7
21735	if( status < 0 ) status = errno;
21736#endif
21737	if( status ) return status;
21738#else
21739	/* Draft 4 pthreads */
21740	status = pthread_create( &t, pthread_attr_default, task, NULL );
21741	if( status ) return errno;
21742
21743	/* give thread a chance to complete */
21744	/* it should remain joinable and hence detachable */
21745	sleep( 1 );
21746
21747	status = pthread_detach( &t );
21748	if( status ) return errno;
21749#endif
21750
21751#ifdef HAVE_LINUX_THREADS
21752	pthread_kill_other_threads_np();
21753#endif
21754
21755	return 0;
21756
21757}
21758
21759_ACEOF
21760rm -f conftest$ac_exeext
21761if { (ac_try="$ac_link"
21762case "(($ac_try" in
21763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764  *) ac_try_echo=$ac_try;;
21765esac
21766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767  (eval "$ac_link") 2>&5
21768  ac_status=$?
21769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21771  { (case "(($ac_try" in
21772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773  *) ac_try_echo=$ac_try;;
21774esac
21775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776  (eval "$ac_try") 2>&5
21777  ac_status=$?
21778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779  (exit $ac_status); }; }; then
21780  ol_cv_pthread_mthreads=yes
21781else
21782  echo "$as_me: program exited with status $ac_status" >&5
21783echo "$as_me: failed program was:" >&5
21784sed 's/^/| /' conftest.$ac_ext >&5
21785
21786( exit $ac_status )
21787ol_cv_pthread_mthreads=no
21788fi
21789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21790fi
21791
21792
21793
21794		# restore the LIBS
21795		LIBS="$ol_LIBS"
21796
21797fi
21798{ echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21799echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21800
21801	if test $ol_cv_pthread_mthreads = yes ; then
21802		ol_link_pthreads="-mthreads"
21803		ol_link_threads=posix
21804	fi
21805fi
21806
21807		# Pthread try link: -thread (ol_cv_pthread_thread)
21808if test "$ol_link_threads" = no ; then
21809	# try -thread
21810	{ echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21811echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21812if test "${ol_cv_pthread_thread+set}" = set; then
21813  echo $ECHO_N "(cached) $ECHO_C" >&6
21814else
21815
21816		# save the flags
21817		ol_LIBS="$LIBS"
21818		LIBS="-thread $LIBS"
21819
21820		if test "$cross_compiling" = yes; then
21821  cat >conftest.$ac_ext <<_ACEOF
21822/* confdefs.h.  */
21823_ACEOF
21824cat confdefs.h >>conftest.$ac_ext
21825cat >>conftest.$ac_ext <<_ACEOF
21826/* end confdefs.h.  */
21827
21828/* pthread test headers */
21829#include <pthread.h>
21830#if HAVE_PTHREADS < 7
21831#include <errno.h>
21832#endif
21833#ifndef NULL
21834#define NULL (void*)0
21835#endif
21836
21837static void *task(p)
21838	void *p;
21839{
21840	return (void *) (p == NULL);
21841}
21842
21843int
21844main ()
21845{
21846
21847	/* pthread test function */
21848#ifndef PTHREAD_CREATE_DETACHED
21849#define	PTHREAD_CREATE_DETACHED	1
21850#endif
21851	pthread_t t;
21852	int status;
21853	int detach = PTHREAD_CREATE_DETACHED;
21854
21855#if HAVE_PTHREADS > 4
21856	/* Final pthreads */
21857	pthread_attr_t attr;
21858
21859	status = pthread_attr_init(&attr);
21860	if( status ) return status;
21861
21862#if HAVE_PTHREADS < 7
21863	status = pthread_attr_setdetachstate(&attr, &detach);
21864	if( status < 0 ) status = errno;
21865#else
21866	status = pthread_attr_setdetachstate(&attr, detach);
21867#endif
21868	if( status ) return status;
21869	status = pthread_create( &t, &attr, task, NULL );
21870#if HAVE_PTHREADS < 7
21871	if( status < 0 ) status = errno;
21872#endif
21873	if( status ) return status;
21874#else
21875	/* Draft 4 pthreads */
21876	status = pthread_create( &t, pthread_attr_default, task, NULL );
21877	if( status ) return errno;
21878
21879	/* give thread a chance to complete */
21880	/* it should remain joinable and hence detachable */
21881	sleep( 1 );
21882
21883	status = pthread_detach( &t );
21884	if( status ) return errno;
21885#endif
21886
21887#ifdef HAVE_LINUX_THREADS
21888	pthread_kill_other_threads_np();
21889#endif
21890
21891	return 0;
21892
21893  ;
21894  return 0;
21895}
21896_ACEOF
21897rm -f conftest.$ac_objext conftest$ac_exeext
21898if { (ac_try="$ac_link"
21899case "(($ac_try" in
21900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901  *) ac_try_echo=$ac_try;;
21902esac
21903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904  (eval "$ac_link") 2>conftest.er1
21905  ac_status=$?
21906  grep -v '^ *+' conftest.er1 >conftest.err
21907  rm -f conftest.er1
21908  cat conftest.err >&5
21909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910  (exit $ac_status); } && {
21911	 test -z "$ac_c_werror_flag" ||
21912	 test ! -s conftest.err
21913       } && test -s conftest$ac_exeext &&
21914       $as_test_x conftest$ac_exeext; then
21915  ol_cv_pthread_thread=yes
21916else
21917  echo "$as_me: failed program was:" >&5
21918sed 's/^/| /' conftest.$ac_ext >&5
21919
21920	ol_cv_pthread_thread=no
21921fi
21922
21923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21924      conftest$ac_exeext conftest.$ac_ext
21925else
21926  cat >conftest.$ac_ext <<_ACEOF
21927/* confdefs.h.  */
21928_ACEOF
21929cat confdefs.h >>conftest.$ac_ext
21930cat >>conftest.$ac_ext <<_ACEOF
21931/* end confdefs.h.  */
21932
21933/* pthread test headers */
21934#include <pthread.h>
21935#if HAVE_PTHREADS < 7
21936#include <errno.h>
21937#endif
21938#ifndef NULL
21939#define NULL (void*)0
21940#endif
21941
21942static void *task(p)
21943	void *p;
21944{
21945	return (void *) (p == NULL);
21946}
21947
21948
21949int main(argc, argv)
21950	int argc;
21951	char **argv;
21952{
21953
21954	/* pthread test function */
21955#ifndef PTHREAD_CREATE_DETACHED
21956#define	PTHREAD_CREATE_DETACHED	1
21957#endif
21958	pthread_t t;
21959	int status;
21960	int detach = PTHREAD_CREATE_DETACHED;
21961
21962#if HAVE_PTHREADS > 4
21963	/* Final pthreads */
21964	pthread_attr_t attr;
21965
21966	status = pthread_attr_init(&attr);
21967	if( status ) return status;
21968
21969#if HAVE_PTHREADS < 7
21970	status = pthread_attr_setdetachstate(&attr, &detach);
21971	if( status < 0 ) status = errno;
21972#else
21973	status = pthread_attr_setdetachstate(&attr, detach);
21974#endif
21975	if( status ) return status;
21976	status = pthread_create( &t, &attr, task, NULL );
21977#if HAVE_PTHREADS < 7
21978	if( status < 0 ) status = errno;
21979#endif
21980	if( status ) return status;
21981#else
21982	/* Draft 4 pthreads */
21983	status = pthread_create( &t, pthread_attr_default, task, NULL );
21984	if( status ) return errno;
21985
21986	/* give thread a chance to complete */
21987	/* it should remain joinable and hence detachable */
21988	sleep( 1 );
21989
21990	status = pthread_detach( &t );
21991	if( status ) return errno;
21992#endif
21993
21994#ifdef HAVE_LINUX_THREADS
21995	pthread_kill_other_threads_np();
21996#endif
21997
21998	return 0;
21999
22000}
22001
22002_ACEOF
22003rm -f conftest$ac_exeext
22004if { (ac_try="$ac_link"
22005case "(($ac_try" in
22006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007  *) ac_try_echo=$ac_try;;
22008esac
22009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010  (eval "$ac_link") 2>&5
22011  ac_status=$?
22012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22014  { (case "(($ac_try" in
22015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22016  *) ac_try_echo=$ac_try;;
22017esac
22018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22019  (eval "$ac_try") 2>&5
22020  ac_status=$?
22021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022  (exit $ac_status); }; }; then
22023  ol_cv_pthread_thread=yes
22024else
22025  echo "$as_me: program exited with status $ac_status" >&5
22026echo "$as_me: failed program was:" >&5
22027sed 's/^/| /' conftest.$ac_ext >&5
22028
22029( exit $ac_status )
22030ol_cv_pthread_thread=no
22031fi
22032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22033fi
22034
22035
22036
22037		# restore the LIBS
22038		LIBS="$ol_LIBS"
22039
22040fi
22041{ echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22042echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22043
22044	if test $ol_cv_pthread_thread = yes ; then
22045		ol_link_pthreads="-thread"
22046		ol_link_threads=posix
22047	fi
22048fi
22049
22050
22051		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22052if test "$ol_link_threads" = no ; then
22053	# try -lpthread -lmach -lexc -lc_r
22054	{ echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22055echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22056if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22057  echo $ECHO_N "(cached) $ECHO_C" >&6
22058else
22059
22060		# save the flags
22061		ol_LIBS="$LIBS"
22062		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22063
22064		if test "$cross_compiling" = yes; then
22065  cat >conftest.$ac_ext <<_ACEOF
22066/* confdefs.h.  */
22067_ACEOF
22068cat confdefs.h >>conftest.$ac_ext
22069cat >>conftest.$ac_ext <<_ACEOF
22070/* end confdefs.h.  */
22071
22072/* pthread test headers */
22073#include <pthread.h>
22074#if HAVE_PTHREADS < 7
22075#include <errno.h>
22076#endif
22077#ifndef NULL
22078#define NULL (void*)0
22079#endif
22080
22081static void *task(p)
22082	void *p;
22083{
22084	return (void *) (p == NULL);
22085}
22086
22087int
22088main ()
22089{
22090
22091	/* pthread test function */
22092#ifndef PTHREAD_CREATE_DETACHED
22093#define	PTHREAD_CREATE_DETACHED	1
22094#endif
22095	pthread_t t;
22096	int status;
22097	int detach = PTHREAD_CREATE_DETACHED;
22098
22099#if HAVE_PTHREADS > 4
22100	/* Final pthreads */
22101	pthread_attr_t attr;
22102
22103	status = pthread_attr_init(&attr);
22104	if( status ) return status;
22105
22106#if HAVE_PTHREADS < 7
22107	status = pthread_attr_setdetachstate(&attr, &detach);
22108	if( status < 0 ) status = errno;
22109#else
22110	status = pthread_attr_setdetachstate(&attr, detach);
22111#endif
22112	if( status ) return status;
22113	status = pthread_create( &t, &attr, task, NULL );
22114#if HAVE_PTHREADS < 7
22115	if( status < 0 ) status = errno;
22116#endif
22117	if( status ) return status;
22118#else
22119	/* Draft 4 pthreads */
22120	status = pthread_create( &t, pthread_attr_default, task, NULL );
22121	if( status ) return errno;
22122
22123	/* give thread a chance to complete */
22124	/* it should remain joinable and hence detachable */
22125	sleep( 1 );
22126
22127	status = pthread_detach( &t );
22128	if( status ) return errno;
22129#endif
22130
22131#ifdef HAVE_LINUX_THREADS
22132	pthread_kill_other_threads_np();
22133#endif
22134
22135	return 0;
22136
22137  ;
22138  return 0;
22139}
22140_ACEOF
22141rm -f conftest.$ac_objext conftest$ac_exeext
22142if { (ac_try="$ac_link"
22143case "(($ac_try" in
22144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145  *) ac_try_echo=$ac_try;;
22146esac
22147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148  (eval "$ac_link") 2>conftest.er1
22149  ac_status=$?
22150  grep -v '^ *+' conftest.er1 >conftest.err
22151  rm -f conftest.er1
22152  cat conftest.err >&5
22153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154  (exit $ac_status); } && {
22155	 test -z "$ac_c_werror_flag" ||
22156	 test ! -s conftest.err
22157       } && test -s conftest$ac_exeext &&
22158       $as_test_x conftest$ac_exeext; then
22159  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22160else
22161  echo "$as_me: failed program was:" >&5
22162sed 's/^/| /' conftest.$ac_ext >&5
22163
22164	ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22165fi
22166
22167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22168      conftest$ac_exeext conftest.$ac_ext
22169else
22170  cat >conftest.$ac_ext <<_ACEOF
22171/* confdefs.h.  */
22172_ACEOF
22173cat confdefs.h >>conftest.$ac_ext
22174cat >>conftest.$ac_ext <<_ACEOF
22175/* end confdefs.h.  */
22176
22177/* pthread test headers */
22178#include <pthread.h>
22179#if HAVE_PTHREADS < 7
22180#include <errno.h>
22181#endif
22182#ifndef NULL
22183#define NULL (void*)0
22184#endif
22185
22186static void *task(p)
22187	void *p;
22188{
22189	return (void *) (p == NULL);
22190}
22191
22192
22193int main(argc, argv)
22194	int argc;
22195	char **argv;
22196{
22197
22198	/* pthread test function */
22199#ifndef PTHREAD_CREATE_DETACHED
22200#define	PTHREAD_CREATE_DETACHED	1
22201#endif
22202	pthread_t t;
22203	int status;
22204	int detach = PTHREAD_CREATE_DETACHED;
22205
22206#if HAVE_PTHREADS > 4
22207	/* Final pthreads */
22208	pthread_attr_t attr;
22209
22210	status = pthread_attr_init(&attr);
22211	if( status ) return status;
22212
22213#if HAVE_PTHREADS < 7
22214	status = pthread_attr_setdetachstate(&attr, &detach);
22215	if( status < 0 ) status = errno;
22216#else
22217	status = pthread_attr_setdetachstate(&attr, detach);
22218#endif
22219	if( status ) return status;
22220	status = pthread_create( &t, &attr, task, NULL );
22221#if HAVE_PTHREADS < 7
22222	if( status < 0 ) status = errno;
22223#endif
22224	if( status ) return status;
22225#else
22226	/* Draft 4 pthreads */
22227	status = pthread_create( &t, pthread_attr_default, task, NULL );
22228	if( status ) return errno;
22229
22230	/* give thread a chance to complete */
22231	/* it should remain joinable and hence detachable */
22232	sleep( 1 );
22233
22234	status = pthread_detach( &t );
22235	if( status ) return errno;
22236#endif
22237
22238#ifdef HAVE_LINUX_THREADS
22239	pthread_kill_other_threads_np();
22240#endif
22241
22242	return 0;
22243
22244}
22245
22246_ACEOF
22247rm -f conftest$ac_exeext
22248if { (ac_try="$ac_link"
22249case "(($ac_try" in
22250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251  *) ac_try_echo=$ac_try;;
22252esac
22253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254  (eval "$ac_link") 2>&5
22255  ac_status=$?
22256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22258  { (case "(($ac_try" in
22259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260  *) ac_try_echo=$ac_try;;
22261esac
22262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263  (eval "$ac_try") 2>&5
22264  ac_status=$?
22265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266  (exit $ac_status); }; }; then
22267  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22268else
22269  echo "$as_me: program exited with status $ac_status" >&5
22270echo "$as_me: failed program was:" >&5
22271sed 's/^/| /' conftest.$ac_ext >&5
22272
22273( exit $ac_status )
22274ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22275fi
22276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22277fi
22278
22279
22280
22281		# restore the LIBS
22282		LIBS="$ol_LIBS"
22283
22284fi
22285{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22286echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22287
22288	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22289		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22290		ol_link_threads=posix
22291	fi
22292fi
22293
22294		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22295if test "$ol_link_threads" = no ; then
22296	# try -lpthread -lmach -lexc
22297	{ echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22298echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22299if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22300  echo $ECHO_N "(cached) $ECHO_C" >&6
22301else
22302
22303		# save the flags
22304		ol_LIBS="$LIBS"
22305		LIBS="-lpthread -lmach -lexc $LIBS"
22306
22307		if test "$cross_compiling" = yes; then
22308  cat >conftest.$ac_ext <<_ACEOF
22309/* confdefs.h.  */
22310_ACEOF
22311cat confdefs.h >>conftest.$ac_ext
22312cat >>conftest.$ac_ext <<_ACEOF
22313/* end confdefs.h.  */
22314
22315/* pthread test headers */
22316#include <pthread.h>
22317#if HAVE_PTHREADS < 7
22318#include <errno.h>
22319#endif
22320#ifndef NULL
22321#define NULL (void*)0
22322#endif
22323
22324static void *task(p)
22325	void *p;
22326{
22327	return (void *) (p == NULL);
22328}
22329
22330int
22331main ()
22332{
22333
22334	/* pthread test function */
22335#ifndef PTHREAD_CREATE_DETACHED
22336#define	PTHREAD_CREATE_DETACHED	1
22337#endif
22338	pthread_t t;
22339	int status;
22340	int detach = PTHREAD_CREATE_DETACHED;
22341
22342#if HAVE_PTHREADS > 4
22343	/* Final pthreads */
22344	pthread_attr_t attr;
22345
22346	status = pthread_attr_init(&attr);
22347	if( status ) return status;
22348
22349#if HAVE_PTHREADS < 7
22350	status = pthread_attr_setdetachstate(&attr, &detach);
22351	if( status < 0 ) status = errno;
22352#else
22353	status = pthread_attr_setdetachstate(&attr, detach);
22354#endif
22355	if( status ) return status;
22356	status = pthread_create( &t, &attr, task, NULL );
22357#if HAVE_PTHREADS < 7
22358	if( status < 0 ) status = errno;
22359#endif
22360	if( status ) return status;
22361#else
22362	/* Draft 4 pthreads */
22363	status = pthread_create( &t, pthread_attr_default, task, NULL );
22364	if( status ) return errno;
22365
22366	/* give thread a chance to complete */
22367	/* it should remain joinable and hence detachable */
22368	sleep( 1 );
22369
22370	status = pthread_detach( &t );
22371	if( status ) return errno;
22372#endif
22373
22374#ifdef HAVE_LINUX_THREADS
22375	pthread_kill_other_threads_np();
22376#endif
22377
22378	return 0;
22379
22380  ;
22381  return 0;
22382}
22383_ACEOF
22384rm -f conftest.$ac_objext conftest$ac_exeext
22385if { (ac_try="$ac_link"
22386case "(($ac_try" in
22387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388  *) ac_try_echo=$ac_try;;
22389esac
22390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391  (eval "$ac_link") 2>conftest.er1
22392  ac_status=$?
22393  grep -v '^ *+' conftest.er1 >conftest.err
22394  rm -f conftest.er1
22395  cat conftest.err >&5
22396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397  (exit $ac_status); } && {
22398	 test -z "$ac_c_werror_flag" ||
22399	 test ! -s conftest.err
22400       } && test -s conftest$ac_exeext &&
22401       $as_test_x conftest$ac_exeext; then
22402  ol_cv_pthread_lpthread_lmach_lexc=yes
22403else
22404  echo "$as_me: failed program was:" >&5
22405sed 's/^/| /' conftest.$ac_ext >&5
22406
22407	ol_cv_pthread_lpthread_lmach_lexc=no
22408fi
22409
22410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22411      conftest$ac_exeext conftest.$ac_ext
22412else
22413  cat >conftest.$ac_ext <<_ACEOF
22414/* confdefs.h.  */
22415_ACEOF
22416cat confdefs.h >>conftest.$ac_ext
22417cat >>conftest.$ac_ext <<_ACEOF
22418/* end confdefs.h.  */
22419
22420/* pthread test headers */
22421#include <pthread.h>
22422#if HAVE_PTHREADS < 7
22423#include <errno.h>
22424#endif
22425#ifndef NULL
22426#define NULL (void*)0
22427#endif
22428
22429static void *task(p)
22430	void *p;
22431{
22432	return (void *) (p == NULL);
22433}
22434
22435
22436int main(argc, argv)
22437	int argc;
22438	char **argv;
22439{
22440
22441	/* pthread test function */
22442#ifndef PTHREAD_CREATE_DETACHED
22443#define	PTHREAD_CREATE_DETACHED	1
22444#endif
22445	pthread_t t;
22446	int status;
22447	int detach = PTHREAD_CREATE_DETACHED;
22448
22449#if HAVE_PTHREADS > 4
22450	/* Final pthreads */
22451	pthread_attr_t attr;
22452
22453	status = pthread_attr_init(&attr);
22454	if( status ) return status;
22455
22456#if HAVE_PTHREADS < 7
22457	status = pthread_attr_setdetachstate(&attr, &detach);
22458	if( status < 0 ) status = errno;
22459#else
22460	status = pthread_attr_setdetachstate(&attr, detach);
22461#endif
22462	if( status ) return status;
22463	status = pthread_create( &t, &attr, task, NULL );
22464#if HAVE_PTHREADS < 7
22465	if( status < 0 ) status = errno;
22466#endif
22467	if( status ) return status;
22468#else
22469	/* Draft 4 pthreads */
22470	status = pthread_create( &t, pthread_attr_default, task, NULL );
22471	if( status ) return errno;
22472
22473	/* give thread a chance to complete */
22474	/* it should remain joinable and hence detachable */
22475	sleep( 1 );
22476
22477	status = pthread_detach( &t );
22478	if( status ) return errno;
22479#endif
22480
22481#ifdef HAVE_LINUX_THREADS
22482	pthread_kill_other_threads_np();
22483#endif
22484
22485	return 0;
22486
22487}
22488
22489_ACEOF
22490rm -f conftest$ac_exeext
22491if { (ac_try="$ac_link"
22492case "(($ac_try" in
22493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494  *) ac_try_echo=$ac_try;;
22495esac
22496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497  (eval "$ac_link") 2>&5
22498  ac_status=$?
22499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22501  { (case "(($ac_try" in
22502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503  *) ac_try_echo=$ac_try;;
22504esac
22505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506  (eval "$ac_try") 2>&5
22507  ac_status=$?
22508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509  (exit $ac_status); }; }; then
22510  ol_cv_pthread_lpthread_lmach_lexc=yes
22511else
22512  echo "$as_me: program exited with status $ac_status" >&5
22513echo "$as_me: failed program was:" >&5
22514sed 's/^/| /' conftest.$ac_ext >&5
22515
22516( exit $ac_status )
22517ol_cv_pthread_lpthread_lmach_lexc=no
22518fi
22519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22520fi
22521
22522
22523
22524		# restore the LIBS
22525		LIBS="$ol_LIBS"
22526
22527fi
22528{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22529echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22530
22531	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22532		ol_link_pthreads="-lpthread -lmach -lexc"
22533		ol_link_threads=posix
22534	fi
22535fi
22536
22537
22538		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22539if test "$ol_link_threads" = no ; then
22540	# try -lpthread -Wl,-woff,85
22541	{ echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22542echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22543if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22544  echo $ECHO_N "(cached) $ECHO_C" >&6
22545else
22546
22547		# save the flags
22548		ol_LIBS="$LIBS"
22549		LIBS="-lpthread -Wl,-woff,85 $LIBS"
22550
22551		if test "$cross_compiling" = yes; then
22552  cat >conftest.$ac_ext <<_ACEOF
22553/* confdefs.h.  */
22554_ACEOF
22555cat confdefs.h >>conftest.$ac_ext
22556cat >>conftest.$ac_ext <<_ACEOF
22557/* end confdefs.h.  */
22558
22559/* pthread test headers */
22560#include <pthread.h>
22561#if HAVE_PTHREADS < 7
22562#include <errno.h>
22563#endif
22564#ifndef NULL
22565#define NULL (void*)0
22566#endif
22567
22568static void *task(p)
22569	void *p;
22570{
22571	return (void *) (p == NULL);
22572}
22573
22574int
22575main ()
22576{
22577
22578	/* pthread test function */
22579#ifndef PTHREAD_CREATE_DETACHED
22580#define	PTHREAD_CREATE_DETACHED	1
22581#endif
22582	pthread_t t;
22583	int status;
22584	int detach = PTHREAD_CREATE_DETACHED;
22585
22586#if HAVE_PTHREADS > 4
22587	/* Final pthreads */
22588	pthread_attr_t attr;
22589
22590	status = pthread_attr_init(&attr);
22591	if( status ) return status;
22592
22593#if HAVE_PTHREADS < 7
22594	status = pthread_attr_setdetachstate(&attr, &detach);
22595	if( status < 0 ) status = errno;
22596#else
22597	status = pthread_attr_setdetachstate(&attr, detach);
22598#endif
22599	if( status ) return status;
22600	status = pthread_create( &t, &attr, task, NULL );
22601#if HAVE_PTHREADS < 7
22602	if( status < 0 ) status = errno;
22603#endif
22604	if( status ) return status;
22605#else
22606	/* Draft 4 pthreads */
22607	status = pthread_create( &t, pthread_attr_default, task, NULL );
22608	if( status ) return errno;
22609
22610	/* give thread a chance to complete */
22611	/* it should remain joinable and hence detachable */
22612	sleep( 1 );
22613
22614	status = pthread_detach( &t );
22615	if( status ) return errno;
22616#endif
22617
22618#ifdef HAVE_LINUX_THREADS
22619	pthread_kill_other_threads_np();
22620#endif
22621
22622	return 0;
22623
22624  ;
22625  return 0;
22626}
22627_ACEOF
22628rm -f conftest.$ac_objext conftest$ac_exeext
22629if { (ac_try="$ac_link"
22630case "(($ac_try" in
22631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632  *) ac_try_echo=$ac_try;;
22633esac
22634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635  (eval "$ac_link") 2>conftest.er1
22636  ac_status=$?
22637  grep -v '^ *+' conftest.er1 >conftest.err
22638  rm -f conftest.er1
22639  cat conftest.err >&5
22640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641  (exit $ac_status); } && {
22642	 test -z "$ac_c_werror_flag" ||
22643	 test ! -s conftest.err
22644       } && test -s conftest$ac_exeext &&
22645       $as_test_x conftest$ac_exeext; then
22646  ol_cv_pthread_lib_lpthread_woff=yes
22647else
22648  echo "$as_me: failed program was:" >&5
22649sed 's/^/| /' conftest.$ac_ext >&5
22650
22651	ol_cv_pthread_lib_lpthread_woff=no
22652fi
22653
22654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22655      conftest$ac_exeext conftest.$ac_ext
22656else
22657  cat >conftest.$ac_ext <<_ACEOF
22658/* confdefs.h.  */
22659_ACEOF
22660cat confdefs.h >>conftest.$ac_ext
22661cat >>conftest.$ac_ext <<_ACEOF
22662/* end confdefs.h.  */
22663
22664/* pthread test headers */
22665#include <pthread.h>
22666#if HAVE_PTHREADS < 7
22667#include <errno.h>
22668#endif
22669#ifndef NULL
22670#define NULL (void*)0
22671#endif
22672
22673static void *task(p)
22674	void *p;
22675{
22676	return (void *) (p == NULL);
22677}
22678
22679
22680int main(argc, argv)
22681	int argc;
22682	char **argv;
22683{
22684
22685	/* pthread test function */
22686#ifndef PTHREAD_CREATE_DETACHED
22687#define	PTHREAD_CREATE_DETACHED	1
22688#endif
22689	pthread_t t;
22690	int status;
22691	int detach = PTHREAD_CREATE_DETACHED;
22692
22693#if HAVE_PTHREADS > 4
22694	/* Final pthreads */
22695	pthread_attr_t attr;
22696
22697	status = pthread_attr_init(&attr);
22698	if( status ) return status;
22699
22700#if HAVE_PTHREADS < 7
22701	status = pthread_attr_setdetachstate(&attr, &detach);
22702	if( status < 0 ) status = errno;
22703#else
22704	status = pthread_attr_setdetachstate(&attr, detach);
22705#endif
22706	if( status ) return status;
22707	status = pthread_create( &t, &attr, task, NULL );
22708#if HAVE_PTHREADS < 7
22709	if( status < 0 ) status = errno;
22710#endif
22711	if( status ) return status;
22712#else
22713	/* Draft 4 pthreads */
22714	status = pthread_create( &t, pthread_attr_default, task, NULL );
22715	if( status ) return errno;
22716
22717	/* give thread a chance to complete */
22718	/* it should remain joinable and hence detachable */
22719	sleep( 1 );
22720
22721	status = pthread_detach( &t );
22722	if( status ) return errno;
22723#endif
22724
22725#ifdef HAVE_LINUX_THREADS
22726	pthread_kill_other_threads_np();
22727#endif
22728
22729	return 0;
22730
22731}
22732
22733_ACEOF
22734rm -f conftest$ac_exeext
22735if { (ac_try="$ac_link"
22736case "(($ac_try" in
22737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22738  *) ac_try_echo=$ac_try;;
22739esac
22740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22741  (eval "$ac_link") 2>&5
22742  ac_status=$?
22743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22745  { (case "(($ac_try" in
22746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747  *) ac_try_echo=$ac_try;;
22748esac
22749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22750  (eval "$ac_try") 2>&5
22751  ac_status=$?
22752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753  (exit $ac_status); }; }; then
22754  ol_cv_pthread_lib_lpthread_woff=yes
22755else
22756  echo "$as_me: program exited with status $ac_status" >&5
22757echo "$as_me: failed program was:" >&5
22758sed 's/^/| /' conftest.$ac_ext >&5
22759
22760( exit $ac_status )
22761ol_cv_pthread_lib_lpthread_woff=no
22762fi
22763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22764fi
22765
22766
22767
22768		# restore the LIBS
22769		LIBS="$ol_LIBS"
22770
22771fi
22772{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22773echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22774
22775	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22776		ol_link_pthreads="-lpthread -Wl,-woff,85"
22777		ol_link_threads=posix
22778	fi
22779fi
22780
22781
22782		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22783if test "$ol_link_threads" = no ; then
22784	# try -lpthread
22785	{ echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22786echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22787if test "${ol_cv_pthread_lpthread+set}" = set; then
22788  echo $ECHO_N "(cached) $ECHO_C" >&6
22789else
22790
22791		# save the flags
22792		ol_LIBS="$LIBS"
22793		LIBS="-lpthread $LIBS"
22794
22795		if test "$cross_compiling" = yes; then
22796  cat >conftest.$ac_ext <<_ACEOF
22797/* confdefs.h.  */
22798_ACEOF
22799cat confdefs.h >>conftest.$ac_ext
22800cat >>conftest.$ac_ext <<_ACEOF
22801/* end confdefs.h.  */
22802
22803/* pthread test headers */
22804#include <pthread.h>
22805#if HAVE_PTHREADS < 7
22806#include <errno.h>
22807#endif
22808#ifndef NULL
22809#define NULL (void*)0
22810#endif
22811
22812static void *task(p)
22813	void *p;
22814{
22815	return (void *) (p == NULL);
22816}
22817
22818int
22819main ()
22820{
22821
22822	/* pthread test function */
22823#ifndef PTHREAD_CREATE_DETACHED
22824#define	PTHREAD_CREATE_DETACHED	1
22825#endif
22826	pthread_t t;
22827	int status;
22828	int detach = PTHREAD_CREATE_DETACHED;
22829
22830#if HAVE_PTHREADS > 4
22831	/* Final pthreads */
22832	pthread_attr_t attr;
22833
22834	status = pthread_attr_init(&attr);
22835	if( status ) return status;
22836
22837#if HAVE_PTHREADS < 7
22838	status = pthread_attr_setdetachstate(&attr, &detach);
22839	if( status < 0 ) status = errno;
22840#else
22841	status = pthread_attr_setdetachstate(&attr, detach);
22842#endif
22843	if( status ) return status;
22844	status = pthread_create( &t, &attr, task, NULL );
22845#if HAVE_PTHREADS < 7
22846	if( status < 0 ) status = errno;
22847#endif
22848	if( status ) return status;
22849#else
22850	/* Draft 4 pthreads */
22851	status = pthread_create( &t, pthread_attr_default, task, NULL );
22852	if( status ) return errno;
22853
22854	/* give thread a chance to complete */
22855	/* it should remain joinable and hence detachable */
22856	sleep( 1 );
22857
22858	status = pthread_detach( &t );
22859	if( status ) return errno;
22860#endif
22861
22862#ifdef HAVE_LINUX_THREADS
22863	pthread_kill_other_threads_np();
22864#endif
22865
22866	return 0;
22867
22868  ;
22869  return 0;
22870}
22871_ACEOF
22872rm -f conftest.$ac_objext conftest$ac_exeext
22873if { (ac_try="$ac_link"
22874case "(($ac_try" in
22875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876  *) ac_try_echo=$ac_try;;
22877esac
22878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879  (eval "$ac_link") 2>conftest.er1
22880  ac_status=$?
22881  grep -v '^ *+' conftest.er1 >conftest.err
22882  rm -f conftest.er1
22883  cat conftest.err >&5
22884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885  (exit $ac_status); } && {
22886	 test -z "$ac_c_werror_flag" ||
22887	 test ! -s conftest.err
22888       } && test -s conftest$ac_exeext &&
22889       $as_test_x conftest$ac_exeext; then
22890  ol_cv_pthread_lpthread=yes
22891else
22892  echo "$as_me: failed program was:" >&5
22893sed 's/^/| /' conftest.$ac_ext >&5
22894
22895	ol_cv_pthread_lpthread=no
22896fi
22897
22898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22899      conftest$ac_exeext conftest.$ac_ext
22900else
22901  cat >conftest.$ac_ext <<_ACEOF
22902/* confdefs.h.  */
22903_ACEOF
22904cat confdefs.h >>conftest.$ac_ext
22905cat >>conftest.$ac_ext <<_ACEOF
22906/* end confdefs.h.  */
22907
22908/* pthread test headers */
22909#include <pthread.h>
22910#if HAVE_PTHREADS < 7
22911#include <errno.h>
22912#endif
22913#ifndef NULL
22914#define NULL (void*)0
22915#endif
22916
22917static void *task(p)
22918	void *p;
22919{
22920	return (void *) (p == NULL);
22921}
22922
22923
22924int main(argc, argv)
22925	int argc;
22926	char **argv;
22927{
22928
22929	/* pthread test function */
22930#ifndef PTHREAD_CREATE_DETACHED
22931#define	PTHREAD_CREATE_DETACHED	1
22932#endif
22933	pthread_t t;
22934	int status;
22935	int detach = PTHREAD_CREATE_DETACHED;
22936
22937#if HAVE_PTHREADS > 4
22938	/* Final pthreads */
22939	pthread_attr_t attr;
22940
22941	status = pthread_attr_init(&attr);
22942	if( status ) return status;
22943
22944#if HAVE_PTHREADS < 7
22945	status = pthread_attr_setdetachstate(&attr, &detach);
22946	if( status < 0 ) status = errno;
22947#else
22948	status = pthread_attr_setdetachstate(&attr, detach);
22949#endif
22950	if( status ) return status;
22951	status = pthread_create( &t, &attr, task, NULL );
22952#if HAVE_PTHREADS < 7
22953	if( status < 0 ) status = errno;
22954#endif
22955	if( status ) return status;
22956#else
22957	/* Draft 4 pthreads */
22958	status = pthread_create( &t, pthread_attr_default, task, NULL );
22959	if( status ) return errno;
22960
22961	/* give thread a chance to complete */
22962	/* it should remain joinable and hence detachable */
22963	sleep( 1 );
22964
22965	status = pthread_detach( &t );
22966	if( status ) return errno;
22967#endif
22968
22969#ifdef HAVE_LINUX_THREADS
22970	pthread_kill_other_threads_np();
22971#endif
22972
22973	return 0;
22974
22975}
22976
22977_ACEOF
22978rm -f conftest$ac_exeext
22979if { (ac_try="$ac_link"
22980case "(($ac_try" in
22981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982  *) ac_try_echo=$ac_try;;
22983esac
22984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985  (eval "$ac_link") 2>&5
22986  ac_status=$?
22987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22989  { (case "(($ac_try" in
22990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22991  *) ac_try_echo=$ac_try;;
22992esac
22993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22994  (eval "$ac_try") 2>&5
22995  ac_status=$?
22996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997  (exit $ac_status); }; }; then
22998  ol_cv_pthread_lpthread=yes
22999else
23000  echo "$as_me: program exited with status $ac_status" >&5
23001echo "$as_me: failed program was:" >&5
23002sed 's/^/| /' conftest.$ac_ext >&5
23003
23004( exit $ac_status )
23005ol_cv_pthread_lpthread=no
23006fi
23007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23008fi
23009
23010
23011
23012		# restore the LIBS
23013		LIBS="$ol_LIBS"
23014
23015fi
23016{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23017echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23018
23019	if test $ol_cv_pthread_lpthread = yes ; then
23020		ol_link_pthreads="-lpthread"
23021		ol_link_threads=posix
23022	fi
23023fi
23024
23025		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23026if test "$ol_link_threads" = no ; then
23027	# try -lc_r
23028	{ echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23029echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23030if test "${ol_cv_pthread_lc_r+set}" = set; then
23031  echo $ECHO_N "(cached) $ECHO_C" >&6
23032else
23033
23034		# save the flags
23035		ol_LIBS="$LIBS"
23036		LIBS="-lc_r $LIBS"
23037
23038		if test "$cross_compiling" = yes; then
23039  cat >conftest.$ac_ext <<_ACEOF
23040/* confdefs.h.  */
23041_ACEOF
23042cat confdefs.h >>conftest.$ac_ext
23043cat >>conftest.$ac_ext <<_ACEOF
23044/* end confdefs.h.  */
23045
23046/* pthread test headers */
23047#include <pthread.h>
23048#if HAVE_PTHREADS < 7
23049#include <errno.h>
23050#endif
23051#ifndef NULL
23052#define NULL (void*)0
23053#endif
23054
23055static void *task(p)
23056	void *p;
23057{
23058	return (void *) (p == NULL);
23059}
23060
23061int
23062main ()
23063{
23064
23065	/* pthread test function */
23066#ifndef PTHREAD_CREATE_DETACHED
23067#define	PTHREAD_CREATE_DETACHED	1
23068#endif
23069	pthread_t t;
23070	int status;
23071	int detach = PTHREAD_CREATE_DETACHED;
23072
23073#if HAVE_PTHREADS > 4
23074	/* Final pthreads */
23075	pthread_attr_t attr;
23076
23077	status = pthread_attr_init(&attr);
23078	if( status ) return status;
23079
23080#if HAVE_PTHREADS < 7
23081	status = pthread_attr_setdetachstate(&attr, &detach);
23082	if( status < 0 ) status = errno;
23083#else
23084	status = pthread_attr_setdetachstate(&attr, detach);
23085#endif
23086	if( status ) return status;
23087	status = pthread_create( &t, &attr, task, NULL );
23088#if HAVE_PTHREADS < 7
23089	if( status < 0 ) status = errno;
23090#endif
23091	if( status ) return status;
23092#else
23093	/* Draft 4 pthreads */
23094	status = pthread_create( &t, pthread_attr_default, task, NULL );
23095	if( status ) return errno;
23096
23097	/* give thread a chance to complete */
23098	/* it should remain joinable and hence detachable */
23099	sleep( 1 );
23100
23101	status = pthread_detach( &t );
23102	if( status ) return errno;
23103#endif
23104
23105#ifdef HAVE_LINUX_THREADS
23106	pthread_kill_other_threads_np();
23107#endif
23108
23109	return 0;
23110
23111  ;
23112  return 0;
23113}
23114_ACEOF
23115rm -f conftest.$ac_objext conftest$ac_exeext
23116if { (ac_try="$ac_link"
23117case "(($ac_try" in
23118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119  *) ac_try_echo=$ac_try;;
23120esac
23121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122  (eval "$ac_link") 2>conftest.er1
23123  ac_status=$?
23124  grep -v '^ *+' conftest.er1 >conftest.err
23125  rm -f conftest.er1
23126  cat conftest.err >&5
23127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128  (exit $ac_status); } && {
23129	 test -z "$ac_c_werror_flag" ||
23130	 test ! -s conftest.err
23131       } && test -s conftest$ac_exeext &&
23132       $as_test_x conftest$ac_exeext; then
23133  ol_cv_pthread_lc_r=yes
23134else
23135  echo "$as_me: failed program was:" >&5
23136sed 's/^/| /' conftest.$ac_ext >&5
23137
23138	ol_cv_pthread_lc_r=no
23139fi
23140
23141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23142      conftest$ac_exeext conftest.$ac_ext
23143else
23144  cat >conftest.$ac_ext <<_ACEOF
23145/* confdefs.h.  */
23146_ACEOF
23147cat confdefs.h >>conftest.$ac_ext
23148cat >>conftest.$ac_ext <<_ACEOF
23149/* end confdefs.h.  */
23150
23151/* pthread test headers */
23152#include <pthread.h>
23153#if HAVE_PTHREADS < 7
23154#include <errno.h>
23155#endif
23156#ifndef NULL
23157#define NULL (void*)0
23158#endif
23159
23160static void *task(p)
23161	void *p;
23162{
23163	return (void *) (p == NULL);
23164}
23165
23166
23167int main(argc, argv)
23168	int argc;
23169	char **argv;
23170{
23171
23172	/* pthread test function */
23173#ifndef PTHREAD_CREATE_DETACHED
23174#define	PTHREAD_CREATE_DETACHED	1
23175#endif
23176	pthread_t t;
23177	int status;
23178	int detach = PTHREAD_CREATE_DETACHED;
23179
23180#if HAVE_PTHREADS > 4
23181	/* Final pthreads */
23182	pthread_attr_t attr;
23183
23184	status = pthread_attr_init(&attr);
23185	if( status ) return status;
23186
23187#if HAVE_PTHREADS < 7
23188	status = pthread_attr_setdetachstate(&attr, &detach);
23189	if( status < 0 ) status = errno;
23190#else
23191	status = pthread_attr_setdetachstate(&attr, detach);
23192#endif
23193	if( status ) return status;
23194	status = pthread_create( &t, &attr, task, NULL );
23195#if HAVE_PTHREADS < 7
23196	if( status < 0 ) status = errno;
23197#endif
23198	if( status ) return status;
23199#else
23200	/* Draft 4 pthreads */
23201	status = pthread_create( &t, pthread_attr_default, task, NULL );
23202	if( status ) return errno;
23203
23204	/* give thread a chance to complete */
23205	/* it should remain joinable and hence detachable */
23206	sleep( 1 );
23207
23208	status = pthread_detach( &t );
23209	if( status ) return errno;
23210#endif
23211
23212#ifdef HAVE_LINUX_THREADS
23213	pthread_kill_other_threads_np();
23214#endif
23215
23216	return 0;
23217
23218}
23219
23220_ACEOF
23221rm -f conftest$ac_exeext
23222if { (ac_try="$ac_link"
23223case "(($ac_try" in
23224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225  *) ac_try_echo=$ac_try;;
23226esac
23227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23228  (eval "$ac_link") 2>&5
23229  ac_status=$?
23230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23232  { (case "(($ac_try" in
23233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23234  *) ac_try_echo=$ac_try;;
23235esac
23236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23237  (eval "$ac_try") 2>&5
23238  ac_status=$?
23239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240  (exit $ac_status); }; }; then
23241  ol_cv_pthread_lc_r=yes
23242else
23243  echo "$as_me: program exited with status $ac_status" >&5
23244echo "$as_me: failed program was:" >&5
23245sed 's/^/| /' conftest.$ac_ext >&5
23246
23247( exit $ac_status )
23248ol_cv_pthread_lc_r=no
23249fi
23250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23251fi
23252
23253
23254
23255		# restore the LIBS
23256		LIBS="$ol_LIBS"
23257
23258fi
23259{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23260echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23261
23262	if test $ol_cv_pthread_lc_r = yes ; then
23263		ol_link_pthreads="-lc_r"
23264		ol_link_threads=posix
23265	fi
23266fi
23267
23268
23269		# Pthread try link: -threads (ol_cv_pthread_threads)
23270if test "$ol_link_threads" = no ; then
23271	# try -threads
23272	{ echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23273echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23274if test "${ol_cv_pthread_threads+set}" = set; then
23275  echo $ECHO_N "(cached) $ECHO_C" >&6
23276else
23277
23278		# save the flags
23279		ol_LIBS="$LIBS"
23280		LIBS="-threads $LIBS"
23281
23282		if test "$cross_compiling" = yes; then
23283  cat >conftest.$ac_ext <<_ACEOF
23284/* confdefs.h.  */
23285_ACEOF
23286cat confdefs.h >>conftest.$ac_ext
23287cat >>conftest.$ac_ext <<_ACEOF
23288/* end confdefs.h.  */
23289
23290/* pthread test headers */
23291#include <pthread.h>
23292#if HAVE_PTHREADS < 7
23293#include <errno.h>
23294#endif
23295#ifndef NULL
23296#define NULL (void*)0
23297#endif
23298
23299static void *task(p)
23300	void *p;
23301{
23302	return (void *) (p == NULL);
23303}
23304
23305int
23306main ()
23307{
23308
23309	/* pthread test function */
23310#ifndef PTHREAD_CREATE_DETACHED
23311#define	PTHREAD_CREATE_DETACHED	1
23312#endif
23313	pthread_t t;
23314	int status;
23315	int detach = PTHREAD_CREATE_DETACHED;
23316
23317#if HAVE_PTHREADS > 4
23318	/* Final pthreads */
23319	pthread_attr_t attr;
23320
23321	status = pthread_attr_init(&attr);
23322	if( status ) return status;
23323
23324#if HAVE_PTHREADS < 7
23325	status = pthread_attr_setdetachstate(&attr, &detach);
23326	if( status < 0 ) status = errno;
23327#else
23328	status = pthread_attr_setdetachstate(&attr, detach);
23329#endif
23330	if( status ) return status;
23331	status = pthread_create( &t, &attr, task, NULL );
23332#if HAVE_PTHREADS < 7
23333	if( status < 0 ) status = errno;
23334#endif
23335	if( status ) return status;
23336#else
23337	/* Draft 4 pthreads */
23338	status = pthread_create( &t, pthread_attr_default, task, NULL );
23339	if( status ) return errno;
23340
23341	/* give thread a chance to complete */
23342	/* it should remain joinable and hence detachable */
23343	sleep( 1 );
23344
23345	status = pthread_detach( &t );
23346	if( status ) return errno;
23347#endif
23348
23349#ifdef HAVE_LINUX_THREADS
23350	pthread_kill_other_threads_np();
23351#endif
23352
23353	return 0;
23354
23355  ;
23356  return 0;
23357}
23358_ACEOF
23359rm -f conftest.$ac_objext conftest$ac_exeext
23360if { (ac_try="$ac_link"
23361case "(($ac_try" in
23362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363  *) ac_try_echo=$ac_try;;
23364esac
23365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23366  (eval "$ac_link") 2>conftest.er1
23367  ac_status=$?
23368  grep -v '^ *+' conftest.er1 >conftest.err
23369  rm -f conftest.er1
23370  cat conftest.err >&5
23371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372  (exit $ac_status); } && {
23373	 test -z "$ac_c_werror_flag" ||
23374	 test ! -s conftest.err
23375       } && test -s conftest$ac_exeext &&
23376       $as_test_x conftest$ac_exeext; then
23377  ol_cv_pthread_threads=yes
23378else
23379  echo "$as_me: failed program was:" >&5
23380sed 's/^/| /' conftest.$ac_ext >&5
23381
23382	ol_cv_pthread_threads=no
23383fi
23384
23385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23386      conftest$ac_exeext conftest.$ac_ext
23387else
23388  cat >conftest.$ac_ext <<_ACEOF
23389/* confdefs.h.  */
23390_ACEOF
23391cat confdefs.h >>conftest.$ac_ext
23392cat >>conftest.$ac_ext <<_ACEOF
23393/* end confdefs.h.  */
23394
23395/* pthread test headers */
23396#include <pthread.h>
23397#if HAVE_PTHREADS < 7
23398#include <errno.h>
23399#endif
23400#ifndef NULL
23401#define NULL (void*)0
23402#endif
23403
23404static void *task(p)
23405	void *p;
23406{
23407	return (void *) (p == NULL);
23408}
23409
23410
23411int main(argc, argv)
23412	int argc;
23413	char **argv;
23414{
23415
23416	/* pthread test function */
23417#ifndef PTHREAD_CREATE_DETACHED
23418#define	PTHREAD_CREATE_DETACHED	1
23419#endif
23420	pthread_t t;
23421	int status;
23422	int detach = PTHREAD_CREATE_DETACHED;
23423
23424#if HAVE_PTHREADS > 4
23425	/* Final pthreads */
23426	pthread_attr_t attr;
23427
23428	status = pthread_attr_init(&attr);
23429	if( status ) return status;
23430
23431#if HAVE_PTHREADS < 7
23432	status = pthread_attr_setdetachstate(&attr, &detach);
23433	if( status < 0 ) status = errno;
23434#else
23435	status = pthread_attr_setdetachstate(&attr, detach);
23436#endif
23437	if( status ) return status;
23438	status = pthread_create( &t, &attr, task, NULL );
23439#if HAVE_PTHREADS < 7
23440	if( status < 0 ) status = errno;
23441#endif
23442	if( status ) return status;
23443#else
23444	/* Draft 4 pthreads */
23445	status = pthread_create( &t, pthread_attr_default, task, NULL );
23446	if( status ) return errno;
23447
23448	/* give thread a chance to complete */
23449	/* it should remain joinable and hence detachable */
23450	sleep( 1 );
23451
23452	status = pthread_detach( &t );
23453	if( status ) return errno;
23454#endif
23455
23456#ifdef HAVE_LINUX_THREADS
23457	pthread_kill_other_threads_np();
23458#endif
23459
23460	return 0;
23461
23462}
23463
23464_ACEOF
23465rm -f conftest$ac_exeext
23466if { (ac_try="$ac_link"
23467case "(($ac_try" in
23468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469  *) ac_try_echo=$ac_try;;
23470esac
23471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472  (eval "$ac_link") 2>&5
23473  ac_status=$?
23474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23476  { (case "(($ac_try" in
23477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23478  *) ac_try_echo=$ac_try;;
23479esac
23480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23481  (eval "$ac_try") 2>&5
23482  ac_status=$?
23483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484  (exit $ac_status); }; }; then
23485  ol_cv_pthread_threads=yes
23486else
23487  echo "$as_me: program exited with status $ac_status" >&5
23488echo "$as_me: failed program was:" >&5
23489sed 's/^/| /' conftest.$ac_ext >&5
23490
23491( exit $ac_status )
23492ol_cv_pthread_threads=no
23493fi
23494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23495fi
23496
23497
23498
23499		# restore the LIBS
23500		LIBS="$ol_LIBS"
23501
23502fi
23503{ echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23504echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23505
23506	if test $ol_cv_pthread_threads = yes ; then
23507		ol_link_pthreads="-threads"
23508		ol_link_threads=posix
23509	fi
23510fi
23511
23512
23513		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23514if test "$ol_link_threads" = no ; then
23515	# try -lpthreads -lmach -lexc -lc_r
23516	{ echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23517echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23518if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23519  echo $ECHO_N "(cached) $ECHO_C" >&6
23520else
23521
23522		# save the flags
23523		ol_LIBS="$LIBS"
23524		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23525
23526		if test "$cross_compiling" = yes; then
23527  cat >conftest.$ac_ext <<_ACEOF
23528/* confdefs.h.  */
23529_ACEOF
23530cat confdefs.h >>conftest.$ac_ext
23531cat >>conftest.$ac_ext <<_ACEOF
23532/* end confdefs.h.  */
23533
23534/* pthread test headers */
23535#include <pthread.h>
23536#if HAVE_PTHREADS < 7
23537#include <errno.h>
23538#endif
23539#ifndef NULL
23540#define NULL (void*)0
23541#endif
23542
23543static void *task(p)
23544	void *p;
23545{
23546	return (void *) (p == NULL);
23547}
23548
23549int
23550main ()
23551{
23552
23553	/* pthread test function */
23554#ifndef PTHREAD_CREATE_DETACHED
23555#define	PTHREAD_CREATE_DETACHED	1
23556#endif
23557	pthread_t t;
23558	int status;
23559	int detach = PTHREAD_CREATE_DETACHED;
23560
23561#if HAVE_PTHREADS > 4
23562	/* Final pthreads */
23563	pthread_attr_t attr;
23564
23565	status = pthread_attr_init(&attr);
23566	if( status ) return status;
23567
23568#if HAVE_PTHREADS < 7
23569	status = pthread_attr_setdetachstate(&attr, &detach);
23570	if( status < 0 ) status = errno;
23571#else
23572	status = pthread_attr_setdetachstate(&attr, detach);
23573#endif
23574	if( status ) return status;
23575	status = pthread_create( &t, &attr, task, NULL );
23576#if HAVE_PTHREADS < 7
23577	if( status < 0 ) status = errno;
23578#endif
23579	if( status ) return status;
23580#else
23581	/* Draft 4 pthreads */
23582	status = pthread_create( &t, pthread_attr_default, task, NULL );
23583	if( status ) return errno;
23584
23585	/* give thread a chance to complete */
23586	/* it should remain joinable and hence detachable */
23587	sleep( 1 );
23588
23589	status = pthread_detach( &t );
23590	if( status ) return errno;
23591#endif
23592
23593#ifdef HAVE_LINUX_THREADS
23594	pthread_kill_other_threads_np();
23595#endif
23596
23597	return 0;
23598
23599  ;
23600  return 0;
23601}
23602_ACEOF
23603rm -f conftest.$ac_objext conftest$ac_exeext
23604if { (ac_try="$ac_link"
23605case "(($ac_try" in
23606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23607  *) ac_try_echo=$ac_try;;
23608esac
23609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23610  (eval "$ac_link") 2>conftest.er1
23611  ac_status=$?
23612  grep -v '^ *+' conftest.er1 >conftest.err
23613  rm -f conftest.er1
23614  cat conftest.err >&5
23615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616  (exit $ac_status); } && {
23617	 test -z "$ac_c_werror_flag" ||
23618	 test ! -s conftest.err
23619       } && test -s conftest$ac_exeext &&
23620       $as_test_x conftest$ac_exeext; then
23621  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23622else
23623  echo "$as_me: failed program was:" >&5
23624sed 's/^/| /' conftest.$ac_ext >&5
23625
23626	ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23627fi
23628
23629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23630      conftest$ac_exeext conftest.$ac_ext
23631else
23632  cat >conftest.$ac_ext <<_ACEOF
23633/* confdefs.h.  */
23634_ACEOF
23635cat confdefs.h >>conftest.$ac_ext
23636cat >>conftest.$ac_ext <<_ACEOF
23637/* end confdefs.h.  */
23638
23639/* pthread test headers */
23640#include <pthread.h>
23641#if HAVE_PTHREADS < 7
23642#include <errno.h>
23643#endif
23644#ifndef NULL
23645#define NULL (void*)0
23646#endif
23647
23648static void *task(p)
23649	void *p;
23650{
23651	return (void *) (p == NULL);
23652}
23653
23654
23655int main(argc, argv)
23656	int argc;
23657	char **argv;
23658{
23659
23660	/* pthread test function */
23661#ifndef PTHREAD_CREATE_DETACHED
23662#define	PTHREAD_CREATE_DETACHED	1
23663#endif
23664	pthread_t t;
23665	int status;
23666	int detach = PTHREAD_CREATE_DETACHED;
23667
23668#if HAVE_PTHREADS > 4
23669	/* Final pthreads */
23670	pthread_attr_t attr;
23671
23672	status = pthread_attr_init(&attr);
23673	if( status ) return status;
23674
23675#if HAVE_PTHREADS < 7
23676	status = pthread_attr_setdetachstate(&attr, &detach);
23677	if( status < 0 ) status = errno;
23678#else
23679	status = pthread_attr_setdetachstate(&attr, detach);
23680#endif
23681	if( status ) return status;
23682	status = pthread_create( &t, &attr, task, NULL );
23683#if HAVE_PTHREADS < 7
23684	if( status < 0 ) status = errno;
23685#endif
23686	if( status ) return status;
23687#else
23688	/* Draft 4 pthreads */
23689	status = pthread_create( &t, pthread_attr_default, task, NULL );
23690	if( status ) return errno;
23691
23692	/* give thread a chance to complete */
23693	/* it should remain joinable and hence detachable */
23694	sleep( 1 );
23695
23696	status = pthread_detach( &t );
23697	if( status ) return errno;
23698#endif
23699
23700#ifdef HAVE_LINUX_THREADS
23701	pthread_kill_other_threads_np();
23702#endif
23703
23704	return 0;
23705
23706}
23707
23708_ACEOF
23709rm -f conftest$ac_exeext
23710if { (ac_try="$ac_link"
23711case "(($ac_try" in
23712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713  *) ac_try_echo=$ac_try;;
23714esac
23715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716  (eval "$ac_link") 2>&5
23717  ac_status=$?
23718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23720  { (case "(($ac_try" in
23721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23722  *) ac_try_echo=$ac_try;;
23723esac
23724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23725  (eval "$ac_try") 2>&5
23726  ac_status=$?
23727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728  (exit $ac_status); }; }; then
23729  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23730else
23731  echo "$as_me: program exited with status $ac_status" >&5
23732echo "$as_me: failed program was:" >&5
23733sed 's/^/| /' conftest.$ac_ext >&5
23734
23735( exit $ac_status )
23736ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23737fi
23738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23739fi
23740
23741
23742
23743		# restore the LIBS
23744		LIBS="$ol_LIBS"
23745
23746fi
23747{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23748echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23749
23750	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23751		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23752		ol_link_threads=posix
23753	fi
23754fi
23755
23756		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23757if test "$ol_link_threads" = no ; then
23758	# try -lpthreads -lmach -lexc
23759	{ echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23760echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23761if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23762  echo $ECHO_N "(cached) $ECHO_C" >&6
23763else
23764
23765		# save the flags
23766		ol_LIBS="$LIBS"
23767		LIBS="-lpthreads -lmach -lexc $LIBS"
23768
23769		if test "$cross_compiling" = yes; then
23770  cat >conftest.$ac_ext <<_ACEOF
23771/* confdefs.h.  */
23772_ACEOF
23773cat confdefs.h >>conftest.$ac_ext
23774cat >>conftest.$ac_ext <<_ACEOF
23775/* end confdefs.h.  */
23776
23777/* pthread test headers */
23778#include <pthread.h>
23779#if HAVE_PTHREADS < 7
23780#include <errno.h>
23781#endif
23782#ifndef NULL
23783#define NULL (void*)0
23784#endif
23785
23786static void *task(p)
23787	void *p;
23788{
23789	return (void *) (p == NULL);
23790}
23791
23792int
23793main ()
23794{
23795
23796	/* pthread test function */
23797#ifndef PTHREAD_CREATE_DETACHED
23798#define	PTHREAD_CREATE_DETACHED	1
23799#endif
23800	pthread_t t;
23801	int status;
23802	int detach = PTHREAD_CREATE_DETACHED;
23803
23804#if HAVE_PTHREADS > 4
23805	/* Final pthreads */
23806	pthread_attr_t attr;
23807
23808	status = pthread_attr_init(&attr);
23809	if( status ) return status;
23810
23811#if HAVE_PTHREADS < 7
23812	status = pthread_attr_setdetachstate(&attr, &detach);
23813	if( status < 0 ) status = errno;
23814#else
23815	status = pthread_attr_setdetachstate(&attr, detach);
23816#endif
23817	if( status ) return status;
23818	status = pthread_create( &t, &attr, task, NULL );
23819#if HAVE_PTHREADS < 7
23820	if( status < 0 ) status = errno;
23821#endif
23822	if( status ) return status;
23823#else
23824	/* Draft 4 pthreads */
23825	status = pthread_create( &t, pthread_attr_default, task, NULL );
23826	if( status ) return errno;
23827
23828	/* give thread a chance to complete */
23829	/* it should remain joinable and hence detachable */
23830	sleep( 1 );
23831
23832	status = pthread_detach( &t );
23833	if( status ) return errno;
23834#endif
23835
23836#ifdef HAVE_LINUX_THREADS
23837	pthread_kill_other_threads_np();
23838#endif
23839
23840	return 0;
23841
23842  ;
23843  return 0;
23844}
23845_ACEOF
23846rm -f conftest.$ac_objext conftest$ac_exeext
23847if { (ac_try="$ac_link"
23848case "(($ac_try" in
23849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23850  *) ac_try_echo=$ac_try;;
23851esac
23852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23853  (eval "$ac_link") 2>conftest.er1
23854  ac_status=$?
23855  grep -v '^ *+' conftest.er1 >conftest.err
23856  rm -f conftest.er1
23857  cat conftest.err >&5
23858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859  (exit $ac_status); } && {
23860	 test -z "$ac_c_werror_flag" ||
23861	 test ! -s conftest.err
23862       } && test -s conftest$ac_exeext &&
23863       $as_test_x conftest$ac_exeext; then
23864  ol_cv_pthread_lpthreads_lmach_lexc=yes
23865else
23866  echo "$as_me: failed program was:" >&5
23867sed 's/^/| /' conftest.$ac_ext >&5
23868
23869	ol_cv_pthread_lpthreads_lmach_lexc=no
23870fi
23871
23872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23873      conftest$ac_exeext conftest.$ac_ext
23874else
23875  cat >conftest.$ac_ext <<_ACEOF
23876/* confdefs.h.  */
23877_ACEOF
23878cat confdefs.h >>conftest.$ac_ext
23879cat >>conftest.$ac_ext <<_ACEOF
23880/* end confdefs.h.  */
23881
23882/* pthread test headers */
23883#include <pthread.h>
23884#if HAVE_PTHREADS < 7
23885#include <errno.h>
23886#endif
23887#ifndef NULL
23888#define NULL (void*)0
23889#endif
23890
23891static void *task(p)
23892	void *p;
23893{
23894	return (void *) (p == NULL);
23895}
23896
23897
23898int main(argc, argv)
23899	int argc;
23900	char **argv;
23901{
23902
23903	/* pthread test function */
23904#ifndef PTHREAD_CREATE_DETACHED
23905#define	PTHREAD_CREATE_DETACHED	1
23906#endif
23907	pthread_t t;
23908	int status;
23909	int detach = PTHREAD_CREATE_DETACHED;
23910
23911#if HAVE_PTHREADS > 4
23912	/* Final pthreads */
23913	pthread_attr_t attr;
23914
23915	status = pthread_attr_init(&attr);
23916	if( status ) return status;
23917
23918#if HAVE_PTHREADS < 7
23919	status = pthread_attr_setdetachstate(&attr, &detach);
23920	if( status < 0 ) status = errno;
23921#else
23922	status = pthread_attr_setdetachstate(&attr, detach);
23923#endif
23924	if( status ) return status;
23925	status = pthread_create( &t, &attr, task, NULL );
23926#if HAVE_PTHREADS < 7
23927	if( status < 0 ) status = errno;
23928#endif
23929	if( status ) return status;
23930#else
23931	/* Draft 4 pthreads */
23932	status = pthread_create( &t, pthread_attr_default, task, NULL );
23933	if( status ) return errno;
23934
23935	/* give thread a chance to complete */
23936	/* it should remain joinable and hence detachable */
23937	sleep( 1 );
23938
23939	status = pthread_detach( &t );
23940	if( status ) return errno;
23941#endif
23942
23943#ifdef HAVE_LINUX_THREADS
23944	pthread_kill_other_threads_np();
23945#endif
23946
23947	return 0;
23948
23949}
23950
23951_ACEOF
23952rm -f conftest$ac_exeext
23953if { (ac_try="$ac_link"
23954case "(($ac_try" in
23955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23956  *) ac_try_echo=$ac_try;;
23957esac
23958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23959  (eval "$ac_link") 2>&5
23960  ac_status=$?
23961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23963  { (case "(($ac_try" in
23964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965  *) ac_try_echo=$ac_try;;
23966esac
23967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968  (eval "$ac_try") 2>&5
23969  ac_status=$?
23970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971  (exit $ac_status); }; }; then
23972  ol_cv_pthread_lpthreads_lmach_lexc=yes
23973else
23974  echo "$as_me: program exited with status $ac_status" >&5
23975echo "$as_me: failed program was:" >&5
23976sed 's/^/| /' conftest.$ac_ext >&5
23977
23978( exit $ac_status )
23979ol_cv_pthread_lpthreads_lmach_lexc=no
23980fi
23981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23982fi
23983
23984
23985
23986		# restore the LIBS
23987		LIBS="$ol_LIBS"
23988
23989fi
23990{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23991echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
23992
23993	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23994		ol_link_pthreads="-lpthreads -lmach -lexc"
23995		ol_link_threads=posix
23996	fi
23997fi
23998
23999		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24000if test "$ol_link_threads" = no ; then
24001	# try -lpthreads -lexc
24002	{ echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24003echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24004if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24005  echo $ECHO_N "(cached) $ECHO_C" >&6
24006else
24007
24008		# save the flags
24009		ol_LIBS="$LIBS"
24010		LIBS="-lpthreads -lexc $LIBS"
24011
24012		if test "$cross_compiling" = yes; then
24013  cat >conftest.$ac_ext <<_ACEOF
24014/* confdefs.h.  */
24015_ACEOF
24016cat confdefs.h >>conftest.$ac_ext
24017cat >>conftest.$ac_ext <<_ACEOF
24018/* end confdefs.h.  */
24019
24020/* pthread test headers */
24021#include <pthread.h>
24022#if HAVE_PTHREADS < 7
24023#include <errno.h>
24024#endif
24025#ifndef NULL
24026#define NULL (void*)0
24027#endif
24028
24029static void *task(p)
24030	void *p;
24031{
24032	return (void *) (p == NULL);
24033}
24034
24035int
24036main ()
24037{
24038
24039	/* pthread test function */
24040#ifndef PTHREAD_CREATE_DETACHED
24041#define	PTHREAD_CREATE_DETACHED	1
24042#endif
24043	pthread_t t;
24044	int status;
24045	int detach = PTHREAD_CREATE_DETACHED;
24046
24047#if HAVE_PTHREADS > 4
24048	/* Final pthreads */
24049	pthread_attr_t attr;
24050
24051	status = pthread_attr_init(&attr);
24052	if( status ) return status;
24053
24054#if HAVE_PTHREADS < 7
24055	status = pthread_attr_setdetachstate(&attr, &detach);
24056	if( status < 0 ) status = errno;
24057#else
24058	status = pthread_attr_setdetachstate(&attr, detach);
24059#endif
24060	if( status ) return status;
24061	status = pthread_create( &t, &attr, task, NULL );
24062#if HAVE_PTHREADS < 7
24063	if( status < 0 ) status = errno;
24064#endif
24065	if( status ) return status;
24066#else
24067	/* Draft 4 pthreads */
24068	status = pthread_create( &t, pthread_attr_default, task, NULL );
24069	if( status ) return errno;
24070
24071	/* give thread a chance to complete */
24072	/* it should remain joinable and hence detachable */
24073	sleep( 1 );
24074
24075	status = pthread_detach( &t );
24076	if( status ) return errno;
24077#endif
24078
24079#ifdef HAVE_LINUX_THREADS
24080	pthread_kill_other_threads_np();
24081#endif
24082
24083	return 0;
24084
24085  ;
24086  return 0;
24087}
24088_ACEOF
24089rm -f conftest.$ac_objext conftest$ac_exeext
24090if { (ac_try="$ac_link"
24091case "(($ac_try" in
24092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24093  *) ac_try_echo=$ac_try;;
24094esac
24095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24096  (eval "$ac_link") 2>conftest.er1
24097  ac_status=$?
24098  grep -v '^ *+' conftest.er1 >conftest.err
24099  rm -f conftest.er1
24100  cat conftest.err >&5
24101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102  (exit $ac_status); } && {
24103	 test -z "$ac_c_werror_flag" ||
24104	 test ! -s conftest.err
24105       } && test -s conftest$ac_exeext &&
24106       $as_test_x conftest$ac_exeext; then
24107  ol_cv_pthread_lpthreads_lexc=yes
24108else
24109  echo "$as_me: failed program was:" >&5
24110sed 's/^/| /' conftest.$ac_ext >&5
24111
24112	ol_cv_pthread_lpthreads_lexc=no
24113fi
24114
24115rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24116      conftest$ac_exeext conftest.$ac_ext
24117else
24118  cat >conftest.$ac_ext <<_ACEOF
24119/* confdefs.h.  */
24120_ACEOF
24121cat confdefs.h >>conftest.$ac_ext
24122cat >>conftest.$ac_ext <<_ACEOF
24123/* end confdefs.h.  */
24124
24125/* pthread test headers */
24126#include <pthread.h>
24127#if HAVE_PTHREADS < 7
24128#include <errno.h>
24129#endif
24130#ifndef NULL
24131#define NULL (void*)0
24132#endif
24133
24134static void *task(p)
24135	void *p;
24136{
24137	return (void *) (p == NULL);
24138}
24139
24140
24141int main(argc, argv)
24142	int argc;
24143	char **argv;
24144{
24145
24146	/* pthread test function */
24147#ifndef PTHREAD_CREATE_DETACHED
24148#define	PTHREAD_CREATE_DETACHED	1
24149#endif
24150	pthread_t t;
24151	int status;
24152	int detach = PTHREAD_CREATE_DETACHED;
24153
24154#if HAVE_PTHREADS > 4
24155	/* Final pthreads */
24156	pthread_attr_t attr;
24157
24158	status = pthread_attr_init(&attr);
24159	if( status ) return status;
24160
24161#if HAVE_PTHREADS < 7
24162	status = pthread_attr_setdetachstate(&attr, &detach);
24163	if( status < 0 ) status = errno;
24164#else
24165	status = pthread_attr_setdetachstate(&attr, detach);
24166#endif
24167	if( status ) return status;
24168	status = pthread_create( &t, &attr, task, NULL );
24169#if HAVE_PTHREADS < 7
24170	if( status < 0 ) status = errno;
24171#endif
24172	if( status ) return status;
24173#else
24174	/* Draft 4 pthreads */
24175	status = pthread_create( &t, pthread_attr_default, task, NULL );
24176	if( status ) return errno;
24177
24178	/* give thread a chance to complete */
24179	/* it should remain joinable and hence detachable */
24180	sleep( 1 );
24181
24182	status = pthread_detach( &t );
24183	if( status ) return errno;
24184#endif
24185
24186#ifdef HAVE_LINUX_THREADS
24187	pthread_kill_other_threads_np();
24188#endif
24189
24190	return 0;
24191
24192}
24193
24194_ACEOF
24195rm -f conftest$ac_exeext
24196if { (ac_try="$ac_link"
24197case "(($ac_try" in
24198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24199  *) ac_try_echo=$ac_try;;
24200esac
24201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24202  (eval "$ac_link") 2>&5
24203  ac_status=$?
24204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24206  { (case "(($ac_try" in
24207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24208  *) ac_try_echo=$ac_try;;
24209esac
24210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24211  (eval "$ac_try") 2>&5
24212  ac_status=$?
24213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214  (exit $ac_status); }; }; then
24215  ol_cv_pthread_lpthreads_lexc=yes
24216else
24217  echo "$as_me: program exited with status $ac_status" >&5
24218echo "$as_me: failed program was:" >&5
24219sed 's/^/| /' conftest.$ac_ext >&5
24220
24221( exit $ac_status )
24222ol_cv_pthread_lpthreads_lexc=no
24223fi
24224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24225fi
24226
24227
24228
24229		# restore the LIBS
24230		LIBS="$ol_LIBS"
24231
24232fi
24233{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24234echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24235
24236	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24237		ol_link_pthreads="-lpthreads -lexc"
24238		ol_link_threads=posix
24239	fi
24240fi
24241
24242
24243		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24244if test "$ol_link_threads" = no ; then
24245	# try -lpthreads
24246	{ echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24247echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24248if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24249  echo $ECHO_N "(cached) $ECHO_C" >&6
24250else
24251
24252		# save the flags
24253		ol_LIBS="$LIBS"
24254		LIBS="-lpthreads $LIBS"
24255
24256		if test "$cross_compiling" = yes; then
24257  cat >conftest.$ac_ext <<_ACEOF
24258/* confdefs.h.  */
24259_ACEOF
24260cat confdefs.h >>conftest.$ac_ext
24261cat >>conftest.$ac_ext <<_ACEOF
24262/* end confdefs.h.  */
24263
24264/* pthread test headers */
24265#include <pthread.h>
24266#if HAVE_PTHREADS < 7
24267#include <errno.h>
24268#endif
24269#ifndef NULL
24270#define NULL (void*)0
24271#endif
24272
24273static void *task(p)
24274	void *p;
24275{
24276	return (void *) (p == NULL);
24277}
24278
24279int
24280main ()
24281{
24282
24283	/* pthread test function */
24284#ifndef PTHREAD_CREATE_DETACHED
24285#define	PTHREAD_CREATE_DETACHED	1
24286#endif
24287	pthread_t t;
24288	int status;
24289	int detach = PTHREAD_CREATE_DETACHED;
24290
24291#if HAVE_PTHREADS > 4
24292	/* Final pthreads */
24293	pthread_attr_t attr;
24294
24295	status = pthread_attr_init(&attr);
24296	if( status ) return status;
24297
24298#if HAVE_PTHREADS < 7
24299	status = pthread_attr_setdetachstate(&attr, &detach);
24300	if( status < 0 ) status = errno;
24301#else
24302	status = pthread_attr_setdetachstate(&attr, detach);
24303#endif
24304	if( status ) return status;
24305	status = pthread_create( &t, &attr, task, NULL );
24306#if HAVE_PTHREADS < 7
24307	if( status < 0 ) status = errno;
24308#endif
24309	if( status ) return status;
24310#else
24311	/* Draft 4 pthreads */
24312	status = pthread_create( &t, pthread_attr_default, task, NULL );
24313	if( status ) return errno;
24314
24315	/* give thread a chance to complete */
24316	/* it should remain joinable and hence detachable */
24317	sleep( 1 );
24318
24319	status = pthread_detach( &t );
24320	if( status ) return errno;
24321#endif
24322
24323#ifdef HAVE_LINUX_THREADS
24324	pthread_kill_other_threads_np();
24325#endif
24326
24327	return 0;
24328
24329  ;
24330  return 0;
24331}
24332_ACEOF
24333rm -f conftest.$ac_objext conftest$ac_exeext
24334if { (ac_try="$ac_link"
24335case "(($ac_try" in
24336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337  *) ac_try_echo=$ac_try;;
24338esac
24339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24340  (eval "$ac_link") 2>conftest.er1
24341  ac_status=$?
24342  grep -v '^ *+' conftest.er1 >conftest.err
24343  rm -f conftest.er1
24344  cat conftest.err >&5
24345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346  (exit $ac_status); } && {
24347	 test -z "$ac_c_werror_flag" ||
24348	 test ! -s conftest.err
24349       } && test -s conftest$ac_exeext &&
24350       $as_test_x conftest$ac_exeext; then
24351  ol_cv_pthread_lib_lpthreads=yes
24352else
24353  echo "$as_me: failed program was:" >&5
24354sed 's/^/| /' conftest.$ac_ext >&5
24355
24356	ol_cv_pthread_lib_lpthreads=no
24357fi
24358
24359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24360      conftest$ac_exeext conftest.$ac_ext
24361else
24362  cat >conftest.$ac_ext <<_ACEOF
24363/* confdefs.h.  */
24364_ACEOF
24365cat confdefs.h >>conftest.$ac_ext
24366cat >>conftest.$ac_ext <<_ACEOF
24367/* end confdefs.h.  */
24368
24369/* pthread test headers */
24370#include <pthread.h>
24371#if HAVE_PTHREADS < 7
24372#include <errno.h>
24373#endif
24374#ifndef NULL
24375#define NULL (void*)0
24376#endif
24377
24378static void *task(p)
24379	void *p;
24380{
24381	return (void *) (p == NULL);
24382}
24383
24384
24385int main(argc, argv)
24386	int argc;
24387	char **argv;
24388{
24389
24390	/* pthread test function */
24391#ifndef PTHREAD_CREATE_DETACHED
24392#define	PTHREAD_CREATE_DETACHED	1
24393#endif
24394	pthread_t t;
24395	int status;
24396	int detach = PTHREAD_CREATE_DETACHED;
24397
24398#if HAVE_PTHREADS > 4
24399	/* Final pthreads */
24400	pthread_attr_t attr;
24401
24402	status = pthread_attr_init(&attr);
24403	if( status ) return status;
24404
24405#if HAVE_PTHREADS < 7
24406	status = pthread_attr_setdetachstate(&attr, &detach);
24407	if( status < 0 ) status = errno;
24408#else
24409	status = pthread_attr_setdetachstate(&attr, detach);
24410#endif
24411	if( status ) return status;
24412	status = pthread_create( &t, &attr, task, NULL );
24413#if HAVE_PTHREADS < 7
24414	if( status < 0 ) status = errno;
24415#endif
24416	if( status ) return status;
24417#else
24418	/* Draft 4 pthreads */
24419	status = pthread_create( &t, pthread_attr_default, task, NULL );
24420	if( status ) return errno;
24421
24422	/* give thread a chance to complete */
24423	/* it should remain joinable and hence detachable */
24424	sleep( 1 );
24425
24426	status = pthread_detach( &t );
24427	if( status ) return errno;
24428#endif
24429
24430#ifdef HAVE_LINUX_THREADS
24431	pthread_kill_other_threads_np();
24432#endif
24433
24434	return 0;
24435
24436}
24437
24438_ACEOF
24439rm -f conftest$ac_exeext
24440if { (ac_try="$ac_link"
24441case "(($ac_try" in
24442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443  *) ac_try_echo=$ac_try;;
24444esac
24445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446  (eval "$ac_link") 2>&5
24447  ac_status=$?
24448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24450  { (case "(($ac_try" in
24451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24452  *) ac_try_echo=$ac_try;;
24453esac
24454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24455  (eval "$ac_try") 2>&5
24456  ac_status=$?
24457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458  (exit $ac_status); }; }; then
24459  ol_cv_pthread_lib_lpthreads=yes
24460else
24461  echo "$as_me: program exited with status $ac_status" >&5
24462echo "$as_me: failed program was:" >&5
24463sed 's/^/| /' conftest.$ac_ext >&5
24464
24465( exit $ac_status )
24466ol_cv_pthread_lib_lpthreads=no
24467fi
24468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24469fi
24470
24471
24472
24473		# restore the LIBS
24474		LIBS="$ol_LIBS"
24475
24476fi
24477{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24478echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24479
24480	if test $ol_cv_pthread_lib_lpthreads = yes ; then
24481		ol_link_pthreads="-lpthreads"
24482		ol_link_threads=posix
24483	fi
24484fi
24485
24486
24487		if test $ol_link_threads != no ; then
24488			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24489
24490						save_CPPFLAGS="$CPPFLAGS"
24491			save_LIBS="$LIBS"
24492			LIBS="$LTHREAD_LIBS $LIBS"
24493
24494
24495
24496
24497for ac_func in sched_yield pthread_yield thr_yield
24498do
24499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24500{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24502if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24503  echo $ECHO_N "(cached) $ECHO_C" >&6
24504else
24505  cat >conftest.$ac_ext <<_ACEOF
24506/* confdefs.h.  */
24507_ACEOF
24508cat confdefs.h >>conftest.$ac_ext
24509cat >>conftest.$ac_ext <<_ACEOF
24510/* end confdefs.h.  */
24511/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24512   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24513#define $ac_func innocuous_$ac_func
24514
24515/* System header to define __stub macros and hopefully few prototypes,
24516    which can conflict with char $ac_func (); below.
24517    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24518    <limits.h> exists even on freestanding compilers.  */
24519
24520#ifdef __STDC__
24521# include <limits.h>
24522#else
24523# include <assert.h>
24524#endif
24525
24526#undef $ac_func
24527
24528/* Override any GCC internal prototype to avoid an error.
24529   Use char because int might match the return type of a GCC
24530   builtin and then its argument prototype would still apply.  */
24531#ifdef __cplusplus
24532extern "C"
24533#endif
24534char $ac_func ();
24535/* The GNU C library defines this for functions which it implements
24536    to always fail with ENOSYS.  Some functions are actually named
24537    something starting with __ and the normal name is an alias.  */
24538#if defined __stub_$ac_func || defined __stub___$ac_func
24539choke me
24540#endif
24541
24542int
24543main ()
24544{
24545return $ac_func ();
24546  ;
24547  return 0;
24548}
24549_ACEOF
24550rm -f conftest.$ac_objext conftest$ac_exeext
24551if { (ac_try="$ac_link"
24552case "(($ac_try" in
24553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554  *) ac_try_echo=$ac_try;;
24555esac
24556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557  (eval "$ac_link") 2>conftest.er1
24558  ac_status=$?
24559  grep -v '^ *+' conftest.er1 >conftest.err
24560  rm -f conftest.er1
24561  cat conftest.err >&5
24562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563  (exit $ac_status); } && {
24564	 test -z "$ac_c_werror_flag" ||
24565	 test ! -s conftest.err
24566       } && test -s conftest$ac_exeext &&
24567       $as_test_x conftest$ac_exeext; then
24568  eval "$as_ac_var=yes"
24569else
24570  echo "$as_me: failed program was:" >&5
24571sed 's/^/| /' conftest.$ac_ext >&5
24572
24573	eval "$as_ac_var=no"
24574fi
24575
24576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24577      conftest$ac_exeext conftest.$ac_ext
24578fi
24579ac_res=`eval echo '${'$as_ac_var'}'`
24580	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24581echo "${ECHO_T}$ac_res" >&6; }
24582if test `eval echo '${'$as_ac_var'}'` = yes; then
24583  cat >>confdefs.h <<_ACEOF
24584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24585_ACEOF
24586
24587fi
24588done
24589
24590
24591			if test $ac_cv_func_sched_yield = no &&
24592			   test $ac_cv_func_pthread_yield = no &&
24593			   test $ac_cv_func_thr_yield = no ; then
24594								{ echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24595echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24596if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24597  echo $ECHO_N "(cached) $ECHO_C" >&6
24598else
24599  ac_check_lib_save_LIBS=$LIBS
24600LIBS="-lrt  $LIBS"
24601cat >conftest.$ac_ext <<_ACEOF
24602/* confdefs.h.  */
24603_ACEOF
24604cat confdefs.h >>conftest.$ac_ext
24605cat >>conftest.$ac_ext <<_ACEOF
24606/* end confdefs.h.  */
24607
24608/* Override any GCC internal prototype to avoid an error.
24609   Use char because int might match the return type of a GCC
24610   builtin and then its argument prototype would still apply.  */
24611#ifdef __cplusplus
24612extern "C"
24613#endif
24614char sched_yield ();
24615int
24616main ()
24617{
24618return sched_yield ();
24619  ;
24620  return 0;
24621}
24622_ACEOF
24623rm -f conftest.$ac_objext conftest$ac_exeext
24624if { (ac_try="$ac_link"
24625case "(($ac_try" in
24626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627  *) ac_try_echo=$ac_try;;
24628esac
24629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24630  (eval "$ac_link") 2>conftest.er1
24631  ac_status=$?
24632  grep -v '^ *+' conftest.er1 >conftest.err
24633  rm -f conftest.er1
24634  cat conftest.err >&5
24635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636  (exit $ac_status); } && {
24637	 test -z "$ac_c_werror_flag" ||
24638	 test ! -s conftest.err
24639       } && test -s conftest$ac_exeext &&
24640       $as_test_x conftest$ac_exeext; then
24641  ac_cv_lib_rt_sched_yield=yes
24642else
24643  echo "$as_me: failed program was:" >&5
24644sed 's/^/| /' conftest.$ac_ext >&5
24645
24646	ac_cv_lib_rt_sched_yield=no
24647fi
24648
24649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24650      conftest$ac_exeext conftest.$ac_ext
24651LIBS=$ac_check_lib_save_LIBS
24652fi
24653{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24654echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24655if test $ac_cv_lib_rt_sched_yield = yes; then
24656  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24657
24658cat >>confdefs.h <<\_ACEOF
24659#define HAVE_SCHED_YIELD 1
24660_ACEOF
24661
24662					ac_cv_func_sched_yield=yes
24663else
24664  ac_cv_func_sched_yield=no
24665fi
24666
24667			fi
24668			if test $ac_cv_func_sched_yield = no &&
24669			   test $ac_cv_func_pthread_yield = no &&
24670			   test "$ac_cv_func_thr_yield" = no ; then
24671				{ echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24672echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24673			fi
24674
24675
24676for ac_func in pthread_kill
24677do
24678as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24679{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24680echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24681if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24682  echo $ECHO_N "(cached) $ECHO_C" >&6
24683else
24684  cat >conftest.$ac_ext <<_ACEOF
24685/* confdefs.h.  */
24686_ACEOF
24687cat confdefs.h >>conftest.$ac_ext
24688cat >>conftest.$ac_ext <<_ACEOF
24689/* end confdefs.h.  */
24690/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24691   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24692#define $ac_func innocuous_$ac_func
24693
24694/* System header to define __stub macros and hopefully few prototypes,
24695    which can conflict with char $ac_func (); below.
24696    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24697    <limits.h> exists even on freestanding compilers.  */
24698
24699#ifdef __STDC__
24700# include <limits.h>
24701#else
24702# include <assert.h>
24703#endif
24704
24705#undef $ac_func
24706
24707/* Override any GCC internal prototype to avoid an error.
24708   Use char because int might match the return type of a GCC
24709   builtin and then its argument prototype would still apply.  */
24710#ifdef __cplusplus
24711extern "C"
24712#endif
24713char $ac_func ();
24714/* The GNU C library defines this for functions which it implements
24715    to always fail with ENOSYS.  Some functions are actually named
24716    something starting with __ and the normal name is an alias.  */
24717#if defined __stub_$ac_func || defined __stub___$ac_func
24718choke me
24719#endif
24720
24721int
24722main ()
24723{
24724return $ac_func ();
24725  ;
24726  return 0;
24727}
24728_ACEOF
24729rm -f conftest.$ac_objext conftest$ac_exeext
24730if { (ac_try="$ac_link"
24731case "(($ac_try" in
24732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24733  *) ac_try_echo=$ac_try;;
24734esac
24735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24736  (eval "$ac_link") 2>conftest.er1
24737  ac_status=$?
24738  grep -v '^ *+' conftest.er1 >conftest.err
24739  rm -f conftest.er1
24740  cat conftest.err >&5
24741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742  (exit $ac_status); } && {
24743	 test -z "$ac_c_werror_flag" ||
24744	 test ! -s conftest.err
24745       } && test -s conftest$ac_exeext &&
24746       $as_test_x conftest$ac_exeext; then
24747  eval "$as_ac_var=yes"
24748else
24749  echo "$as_me: failed program was:" >&5
24750sed 's/^/| /' conftest.$ac_ext >&5
24751
24752	eval "$as_ac_var=no"
24753fi
24754
24755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24756      conftest$ac_exeext conftest.$ac_ext
24757fi
24758ac_res=`eval echo '${'$as_ac_var'}'`
24759	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24760echo "${ECHO_T}$ac_res" >&6; }
24761if test `eval echo '${'$as_ac_var'}'` = yes; then
24762  cat >>confdefs.h <<_ACEOF
24763#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24764_ACEOF
24765
24766fi
24767done
24768
24769
24770									{ echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24771echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24772if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24773  echo $ECHO_N "(cached) $ECHO_C" >&6
24774else
24775
24776								cat >conftest.$ac_ext <<_ACEOF
24777/* confdefs.h.  */
24778_ACEOF
24779cat confdefs.h >>conftest.$ac_ext
24780cat >>conftest.$ac_ext <<_ACEOF
24781/* end confdefs.h.  */
24782
24783#include <pthread.h>
24784pthread_rwlock_t rwlock;
24785
24786int
24787main ()
24788{
24789pthread_rwlock_destroy(&rwlock);
24790  ;
24791  return 0;
24792}
24793_ACEOF
24794rm -f conftest.$ac_objext conftest$ac_exeext
24795if { (ac_try="$ac_link"
24796case "(($ac_try" in
24797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798  *) ac_try_echo=$ac_try;;
24799esac
24800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801  (eval "$ac_link") 2>conftest.er1
24802  ac_status=$?
24803  grep -v '^ *+' conftest.er1 >conftest.err
24804  rm -f conftest.er1
24805  cat conftest.err >&5
24806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807  (exit $ac_status); } && {
24808	 test -z "$ac_c_werror_flag" ||
24809	 test ! -s conftest.err
24810       } && test -s conftest$ac_exeext &&
24811       $as_test_x conftest$ac_exeext; then
24812  ol_cv_func_pthread_rwlock_destroy=yes
24813else
24814  echo "$as_me: failed program was:" >&5
24815sed 's/^/| /' conftest.$ac_ext >&5
24816
24817	ol_cv_func_pthread_rwlock_destroy=no
24818fi
24819
24820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24821      conftest$ac_exeext conftest.$ac_ext
24822
24823fi
24824{ echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24825echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24826			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24827
24828cat >>confdefs.h <<\_ACEOF
24829#define HAVE_PTHREAD_RWLOCK_DESTROY 1
24830_ACEOF
24831
24832			fi
24833
24834									{ echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24835echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24836if test "${ol_cv_func_pthread_detach+set}" = set; then
24837  echo $ECHO_N "(cached) $ECHO_C" >&6
24838else
24839
24840								cat >conftest.$ac_ext <<_ACEOF
24841/* confdefs.h.  */
24842_ACEOF
24843cat confdefs.h >>conftest.$ac_ext
24844cat >>conftest.$ac_ext <<_ACEOF
24845/* end confdefs.h.  */
24846
24847#include <pthread.h>
24848#ifndef NULL
24849#define NULL (void*)0
24850#endif
24851
24852int
24853main ()
24854{
24855pthread_detach(NULL);
24856  ;
24857  return 0;
24858}
24859_ACEOF
24860rm -f conftest.$ac_objext conftest$ac_exeext
24861if { (ac_try="$ac_link"
24862case "(($ac_try" in
24863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864  *) ac_try_echo=$ac_try;;
24865esac
24866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867  (eval "$ac_link") 2>conftest.er1
24868  ac_status=$?
24869  grep -v '^ *+' conftest.er1 >conftest.err
24870  rm -f conftest.er1
24871  cat conftest.err >&5
24872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873  (exit $ac_status); } && {
24874	 test -z "$ac_c_werror_flag" ||
24875	 test ! -s conftest.err
24876       } && test -s conftest$ac_exeext &&
24877       $as_test_x conftest$ac_exeext; then
24878  ol_cv_func_pthread_detach=yes
24879else
24880  echo "$as_me: failed program was:" >&5
24881sed 's/^/| /' conftest.$ac_ext >&5
24882
24883	ol_cv_func_pthread_detach=no
24884fi
24885
24886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24887      conftest$ac_exeext conftest.$ac_ext
24888
24889fi
24890{ echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24891echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24892
24893			if test $ol_cv_func_pthread_detach = no ; then
24894				{ { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24895echo "$as_me: error: could not locate pthread_detach()" >&2;}
24896   { (exit 1); exit 1; }; }
24897			fi
24898
24899
24900cat >>confdefs.h <<\_ACEOF
24901#define HAVE_PTHREAD_DETACH 1
24902_ACEOF
24903
24904
24905
24906
24907
24908
24909for ac_func in \
24910				pthread_setconcurrency \
24911				pthread_getconcurrency \
24912				thr_setconcurrency \
24913				thr_getconcurrency \
24914
24915do
24916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24917{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24919if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24920  echo $ECHO_N "(cached) $ECHO_C" >&6
24921else
24922  cat >conftest.$ac_ext <<_ACEOF
24923/* confdefs.h.  */
24924_ACEOF
24925cat confdefs.h >>conftest.$ac_ext
24926cat >>conftest.$ac_ext <<_ACEOF
24927/* end confdefs.h.  */
24928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24929   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24930#define $ac_func innocuous_$ac_func
24931
24932/* System header to define __stub macros and hopefully few prototypes,
24933    which can conflict with char $ac_func (); below.
24934    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24935    <limits.h> exists even on freestanding compilers.  */
24936
24937#ifdef __STDC__
24938# include <limits.h>
24939#else
24940# include <assert.h>
24941#endif
24942
24943#undef $ac_func
24944
24945/* Override any GCC internal prototype to avoid an error.
24946   Use char because int might match the return type of a GCC
24947   builtin and then its argument prototype would still apply.  */
24948#ifdef __cplusplus
24949extern "C"
24950#endif
24951char $ac_func ();
24952/* The GNU C library defines this for functions which it implements
24953    to always fail with ENOSYS.  Some functions are actually named
24954    something starting with __ and the normal name is an alias.  */
24955#if defined __stub_$ac_func || defined __stub___$ac_func
24956choke me
24957#endif
24958
24959int
24960main ()
24961{
24962return $ac_func ();
24963  ;
24964  return 0;
24965}
24966_ACEOF
24967rm -f conftest.$ac_objext conftest$ac_exeext
24968if { (ac_try="$ac_link"
24969case "(($ac_try" in
24970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24971  *) ac_try_echo=$ac_try;;
24972esac
24973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24974  (eval "$ac_link") 2>conftest.er1
24975  ac_status=$?
24976  grep -v '^ *+' conftest.er1 >conftest.err
24977  rm -f conftest.er1
24978  cat conftest.err >&5
24979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980  (exit $ac_status); } && {
24981	 test -z "$ac_c_werror_flag" ||
24982	 test ! -s conftest.err
24983       } && test -s conftest$ac_exeext &&
24984       $as_test_x conftest$ac_exeext; then
24985  eval "$as_ac_var=yes"
24986else
24987  echo "$as_me: failed program was:" >&5
24988sed 's/^/| /' conftest.$ac_ext >&5
24989
24990	eval "$as_ac_var=no"
24991fi
24992
24993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24994      conftest$ac_exeext conftest.$ac_ext
24995fi
24996ac_res=`eval echo '${'$as_ac_var'}'`
24997	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24998echo "${ECHO_T}$ac_res" >&6; }
24999if test `eval echo '${'$as_ac_var'}'` = yes; then
25000  cat >>confdefs.h <<_ACEOF
25001#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25002_ACEOF
25003
25004fi
25005done
25006
25007
25008
25009
25010for ac_func in pthread_kill_other_threads_np
25011do
25012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25013{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25015if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25016  echo $ECHO_N "(cached) $ECHO_C" >&6
25017else
25018  cat >conftest.$ac_ext <<_ACEOF
25019/* confdefs.h.  */
25020_ACEOF
25021cat confdefs.h >>conftest.$ac_ext
25022cat >>conftest.$ac_ext <<_ACEOF
25023/* end confdefs.h.  */
25024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25025   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25026#define $ac_func innocuous_$ac_func
25027
25028/* System header to define __stub macros and hopefully few prototypes,
25029    which can conflict with char $ac_func (); below.
25030    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25031    <limits.h> exists even on freestanding compilers.  */
25032
25033#ifdef __STDC__
25034# include <limits.h>
25035#else
25036# include <assert.h>
25037#endif
25038
25039#undef $ac_func
25040
25041/* Override any GCC internal prototype to avoid an error.
25042   Use char because int might match the return type of a GCC
25043   builtin and then its argument prototype would still apply.  */
25044#ifdef __cplusplus
25045extern "C"
25046#endif
25047char $ac_func ();
25048/* The GNU C library defines this for functions which it implements
25049    to always fail with ENOSYS.  Some functions are actually named
25050    something starting with __ and the normal name is an alias.  */
25051#if defined __stub_$ac_func || defined __stub___$ac_func
25052choke me
25053#endif
25054
25055int
25056main ()
25057{
25058return $ac_func ();
25059  ;
25060  return 0;
25061}
25062_ACEOF
25063rm -f conftest.$ac_objext conftest$ac_exeext
25064if { (ac_try="$ac_link"
25065case "(($ac_try" in
25066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067  *) ac_try_echo=$ac_try;;
25068esac
25069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070  (eval "$ac_link") 2>conftest.er1
25071  ac_status=$?
25072  grep -v '^ *+' conftest.er1 >conftest.err
25073  rm -f conftest.er1
25074  cat conftest.err >&5
25075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076  (exit $ac_status); } && {
25077	 test -z "$ac_c_werror_flag" ||
25078	 test ! -s conftest.err
25079       } && test -s conftest$ac_exeext &&
25080       $as_test_x conftest$ac_exeext; then
25081  eval "$as_ac_var=yes"
25082else
25083  echo "$as_me: failed program was:" >&5
25084sed 's/^/| /' conftest.$ac_ext >&5
25085
25086	eval "$as_ac_var=no"
25087fi
25088
25089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25090      conftest$ac_exeext conftest.$ac_ext
25091fi
25092ac_res=`eval echo '${'$as_ac_var'}'`
25093	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25094echo "${ECHO_T}$ac_res" >&6; }
25095if test `eval echo '${'$as_ac_var'}'` = yes; then
25096  cat >>confdefs.h <<_ACEOF
25097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25098_ACEOF
25099
25100fi
25101done
25102
25103	{ echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25104echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25105if test "${ol_cv_sys_linux_threads+set}" = set; then
25106  echo $ECHO_N "(cached) $ECHO_C" >&6
25107else
25108  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25109fi
25110{ echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25111echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25112
25113
25114
25115
25116	{ echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25117echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25118if test "${ol_cv_linux_threads+set}" = set; then
25119  echo $ECHO_N "(cached) $ECHO_C" >&6
25120else
25121
25122		if test $ol_cv_header_linux_threads = yes &&
25123		   test $ol_cv_sys_linux_threads = yes; then
25124			ol_cv_linux_threads=yes
25125		elif test $ol_cv_header_linux_threads = no &&
25126		     test $ol_cv_sys_linux_threads = no; then
25127			ol_cv_linux_threads=no
25128		else
25129			ol_cv_linux_threads=error
25130		fi
25131
25132fi
25133{ echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25134echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25135
25136
25137			if test $ol_cv_linux_threads = error; then
25138				{ { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25139echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25140   { (exit 1); exit 1; }; };
25141			fi
25142
25143			{ echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25144echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25145if test "${ol_cv_pthread_create_works+set}" = set; then
25146  echo $ECHO_N "(cached) $ECHO_C" >&6
25147else
25148
25149			if test "$cross_compiling" = yes; then
25150  				ol_cv_pthread_create_works=yes
25151else
25152  cat >conftest.$ac_ext <<_ACEOF
25153/* confdefs.h.  */
25154_ACEOF
25155cat confdefs.h >>conftest.$ac_ext
25156cat >>conftest.$ac_ext <<_ACEOF
25157/* end confdefs.h.  */
25158
25159/* pthread test headers */
25160#include <pthread.h>
25161#if HAVE_PTHREADS < 7
25162#include <errno.h>
25163#endif
25164#ifndef NULL
25165#define NULL (void*)0
25166#endif
25167
25168static void *task(p)
25169	void *p;
25170{
25171	return (void *) (p == NULL);
25172}
25173
25174
25175int main(argc, argv)
25176	int argc;
25177	char **argv;
25178{
25179
25180	/* pthread test function */
25181#ifndef PTHREAD_CREATE_DETACHED
25182#define	PTHREAD_CREATE_DETACHED	1
25183#endif
25184	pthread_t t;
25185	int status;
25186	int detach = PTHREAD_CREATE_DETACHED;
25187
25188#if HAVE_PTHREADS > 4
25189	/* Final pthreads */
25190	pthread_attr_t attr;
25191
25192	status = pthread_attr_init(&attr);
25193	if( status ) return status;
25194
25195#if HAVE_PTHREADS < 7
25196	status = pthread_attr_setdetachstate(&attr, &detach);
25197	if( status < 0 ) status = errno;
25198#else
25199	status = pthread_attr_setdetachstate(&attr, detach);
25200#endif
25201	if( status ) return status;
25202	status = pthread_create( &t, &attr, task, NULL );
25203#if HAVE_PTHREADS < 7
25204	if( status < 0 ) status = errno;
25205#endif
25206	if( status ) return status;
25207#else
25208	/* Draft 4 pthreads */
25209	status = pthread_create( &t, pthread_attr_default, task, NULL );
25210	if( status ) return errno;
25211
25212	/* give thread a chance to complete */
25213	/* it should remain joinable and hence detachable */
25214	sleep( 1 );
25215
25216	status = pthread_detach( &t );
25217	if( status ) return errno;
25218#endif
25219
25220#ifdef HAVE_LINUX_THREADS
25221	pthread_kill_other_threads_np();
25222#endif
25223
25224	return 0;
25225
25226}
25227
25228_ACEOF
25229rm -f conftest$ac_exeext
25230if { (ac_try="$ac_link"
25231case "(($ac_try" in
25232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25233  *) ac_try_echo=$ac_try;;
25234esac
25235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25236  (eval "$ac_link") 2>&5
25237  ac_status=$?
25238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25240  { (case "(($ac_try" in
25241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25242  *) ac_try_echo=$ac_try;;
25243esac
25244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25245  (eval "$ac_try") 2>&5
25246  ac_status=$?
25247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248  (exit $ac_status); }; }; then
25249  ol_cv_pthread_create_works=yes
25250else
25251  echo "$as_me: program exited with status $ac_status" >&5
25252echo "$as_me: failed program was:" >&5
25253sed 's/^/| /' conftest.$ac_ext >&5
25254
25255( exit $ac_status )
25256ol_cv_pthread_create_works=no
25257fi
25258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25259fi
25260
25261
25262fi
25263{ echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25264echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25265
25266			if test $ol_cv_pthread_create_works = no ; then
25267				{ { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25268echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25269   { (exit 1); exit 1; }; }
25270			fi
25271
25272			ol_replace_broken_yield=no
25273
25274			if test $ol_replace_broken_yield = yes ; then
25275
25276cat >>confdefs.h <<\_ACEOF
25277#define REPLACE_BROKEN_YIELD 1
25278_ACEOF
25279
25280			fi
25281
25282						if test $ol_with_yielding_select = auto ; then
25283				{ echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25284echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25285if test "${ol_cv_pthread_select_yields+set}" = set; then
25286  echo $ECHO_N "(cached) $ECHO_C" >&6
25287else
25288
25289				if test "$cross_compiling" = yes; then
25290  ol_cv_pthread_select_yields=cross
25291else
25292  cat >conftest.$ac_ext <<_ACEOF
25293/* confdefs.h.  */
25294_ACEOF
25295cat confdefs.h >>conftest.$ac_ext
25296cat >>conftest.$ac_ext <<_ACEOF
25297/* end confdefs.h.  */
25298
25299#include <sys/types.h>
25300#include <sys/time.h>
25301#include <unistd.h>
25302#include <pthread.h>
25303#ifndef NULL
25304#define NULL (void*) 0
25305#endif
25306
25307static int fildes[2];
25308
25309static void *task(p)
25310	void *p;
25311{
25312	int i;
25313	struct timeval tv;
25314
25315	fd_set rfds;
25316
25317	tv.tv_sec=10;
25318	tv.tv_usec=0;
25319
25320	FD_ZERO(&rfds);
25321	FD_SET(fildes[0], &rfds);
25322
25323	/* we're not interested in any fds */
25324	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25325
25326	if(i < 0) {
25327		perror("select");
25328		exit(10);
25329	}
25330
25331	exit(0); /* if we exit here, the select blocked the whole process */
25332}
25333
25334int main(argc, argv)
25335	int argc;
25336	char **argv;
25337{
25338	pthread_t t;
25339
25340	/* create a pipe to select */
25341	if(pipe(&fildes[0])) {
25342		perror("select");
25343		exit(1);
25344	}
25345
25346#ifdef HAVE_PTHREAD_SETCONCURRENCY
25347	(void) pthread_setconcurrency(2);
25348#else
25349#ifdef HAVE_THR_SETCONCURRENCY
25350	/* Set Solaris LWP concurrency to 2 */
25351	thr_setconcurrency(2);
25352#endif
25353#endif
25354
25355#if HAVE_PTHREADS < 6
25356	pthread_create(&t, pthread_attr_default, task, NULL);
25357#else
25358	pthread_create(&t, NULL, task, NULL);
25359#endif
25360
25361	/* make sure task runs first */
25362#ifdef HAVE_THR_YIELD
25363	thr_yield();
25364#elif defined( HAVE_SCHED_YIELD )
25365	sched_yield();
25366#elif defined( HAVE_PTHREAD_YIELD )
25367	pthread_yield();
25368#endif
25369
25370	exit(2);
25371}
25372_ACEOF
25373rm -f conftest$ac_exeext
25374if { (ac_try="$ac_link"
25375case "(($ac_try" in
25376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377  *) ac_try_echo=$ac_try;;
25378esac
25379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380  (eval "$ac_link") 2>&5
25381  ac_status=$?
25382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25384  { (case "(($ac_try" in
25385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25386  *) ac_try_echo=$ac_try;;
25387esac
25388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25389  (eval "$ac_try") 2>&5
25390  ac_status=$?
25391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392  (exit $ac_status); }; }; then
25393  ol_cv_pthread_select_yields=no
25394else
25395  echo "$as_me: program exited with status $ac_status" >&5
25396echo "$as_me: failed program was:" >&5
25397sed 's/^/| /' conftest.$ac_ext >&5
25398
25399( exit $ac_status )
25400ol_cv_pthread_select_yields=yes
25401fi
25402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25403fi
25404
25405
25406fi
25407{ echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25408echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25409
25410				if test $ol_cv_pthread_select_yields = cross ; then
25411					{ { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25412echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25413   { (exit 1); exit 1; }; }
25414				fi
25415
25416				if test $ol_cv_pthread_select_yields = yes ; then
25417					ol_with_yielding_select=yes
25418				fi
25419			fi
25420
25421						CPPFLAGS="$save_CPPFLAGS"
25422			LIBS="$save_LIBS"
25423		else
25424			{ { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25425echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25426   { (exit 1); exit 1; }; }
25427		fi
25428	fi
25429
25430	if test $ol_with_threads = posix ; then
25431		{ { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25432echo "$as_me: error: could not locate POSIX Threads" >&2;}
25433   { (exit 1); exit 1; }; }
25434	fi
25435	;;
25436esac
25437
25438case $ol_with_threads in auto | yes | mach)
25439
25440
25441
25442for ac_header in mach/cthreads.h cthreads.h
25443do
25444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25446  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25449  echo $ECHO_N "(cached) $ECHO_C" >&6
25450fi
25451ac_res=`eval echo '${'$as_ac_Header'}'`
25452	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25453echo "${ECHO_T}$ac_res" >&6; }
25454else
25455  # Is the header compilable?
25456{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25457echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25458cat >conftest.$ac_ext <<_ACEOF
25459/* confdefs.h.  */
25460_ACEOF
25461cat confdefs.h >>conftest.$ac_ext
25462cat >>conftest.$ac_ext <<_ACEOF
25463/* end confdefs.h.  */
25464$ac_includes_default
25465#include <$ac_header>
25466_ACEOF
25467rm -f conftest.$ac_objext
25468if { (ac_try="$ac_compile"
25469case "(($ac_try" in
25470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25471  *) ac_try_echo=$ac_try;;
25472esac
25473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25474  (eval "$ac_compile") 2>conftest.er1
25475  ac_status=$?
25476  grep -v '^ *+' conftest.er1 >conftest.err
25477  rm -f conftest.er1
25478  cat conftest.err >&5
25479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480  (exit $ac_status); } && {
25481	 test -z "$ac_c_werror_flag" ||
25482	 test ! -s conftest.err
25483       } && test -s conftest.$ac_objext; then
25484  ac_header_compiler=yes
25485else
25486  echo "$as_me: failed program was:" >&5
25487sed 's/^/| /' conftest.$ac_ext >&5
25488
25489	ac_header_compiler=no
25490fi
25491
25492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25494echo "${ECHO_T}$ac_header_compiler" >&6; }
25495
25496# Is the header present?
25497{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25499cat >conftest.$ac_ext <<_ACEOF
25500/* confdefs.h.  */
25501_ACEOF
25502cat confdefs.h >>conftest.$ac_ext
25503cat >>conftest.$ac_ext <<_ACEOF
25504/* end confdefs.h.  */
25505#include <$ac_header>
25506_ACEOF
25507if { (ac_try="$ac_cpp conftest.$ac_ext"
25508case "(($ac_try" in
25509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25510  *) ac_try_echo=$ac_try;;
25511esac
25512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25513  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25514  ac_status=$?
25515  grep -v '^ *+' conftest.er1 >conftest.err
25516  rm -f conftest.er1
25517  cat conftest.err >&5
25518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519  (exit $ac_status); } >/dev/null && {
25520	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25521	 test ! -s conftest.err
25522       }; then
25523  ac_header_preproc=yes
25524else
25525  echo "$as_me: failed program was:" >&5
25526sed 's/^/| /' conftest.$ac_ext >&5
25527
25528  ac_header_preproc=no
25529fi
25530
25531rm -f conftest.err conftest.$ac_ext
25532{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25533echo "${ECHO_T}$ac_header_preproc" >&6; }
25534
25535# So?  What about this header?
25536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25537  yes:no: )
25538    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25539echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25540    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25541echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25542    ac_header_preproc=yes
25543    ;;
25544  no:yes:* )
25545    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25547    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25548echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25549    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25550echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25551    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25552echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25553    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25555    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25556echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25557    ( cat <<\_ASBOX
25558## --------------------------------------------- ##
25559## Report this to <http://www.openldap.org/its/> ##
25560## --------------------------------------------- ##
25561_ASBOX
25562     ) | sed "s/^/$as_me: WARNING:     /" >&2
25563    ;;
25564esac
25565{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25568  echo $ECHO_N "(cached) $ECHO_C" >&6
25569else
25570  eval "$as_ac_Header=\$ac_header_preproc"
25571fi
25572ac_res=`eval echo '${'$as_ac_Header'}'`
25573	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25574echo "${ECHO_T}$ac_res" >&6; }
25575
25576fi
25577if test `eval echo '${'$as_ac_Header'}'` = yes; then
25578  cat >>confdefs.h <<_ACEOF
25579#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25580_ACEOF
25581
25582fi
25583
25584done
25585
25586	if test $ac_cv_header_mach_cthreads_h = yes ; then
25587		ol_with_threads=found
25588
25589				{ echo "$as_me:$LINENO: checking for cthread_fork" >&5
25590echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25591if test "${ac_cv_func_cthread_fork+set}" = set; then
25592  echo $ECHO_N "(cached) $ECHO_C" >&6
25593else
25594  cat >conftest.$ac_ext <<_ACEOF
25595/* confdefs.h.  */
25596_ACEOF
25597cat confdefs.h >>conftest.$ac_ext
25598cat >>conftest.$ac_ext <<_ACEOF
25599/* end confdefs.h.  */
25600/* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25601   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25602#define cthread_fork innocuous_cthread_fork
25603
25604/* System header to define __stub macros and hopefully few prototypes,
25605    which can conflict with char cthread_fork (); below.
25606    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25607    <limits.h> exists even on freestanding compilers.  */
25608
25609#ifdef __STDC__
25610# include <limits.h>
25611#else
25612# include <assert.h>
25613#endif
25614
25615#undef cthread_fork
25616
25617/* Override any GCC internal prototype to avoid an error.
25618   Use char because int might match the return type of a GCC
25619   builtin and then its argument prototype would still apply.  */
25620#ifdef __cplusplus
25621extern "C"
25622#endif
25623char cthread_fork ();
25624/* The GNU C library defines this for functions which it implements
25625    to always fail with ENOSYS.  Some functions are actually named
25626    something starting with __ and the normal name is an alias.  */
25627#if defined __stub_cthread_fork || defined __stub___cthread_fork
25628choke me
25629#endif
25630
25631int
25632main ()
25633{
25634return cthread_fork ();
25635  ;
25636  return 0;
25637}
25638_ACEOF
25639rm -f conftest.$ac_objext conftest$ac_exeext
25640if { (ac_try="$ac_link"
25641case "(($ac_try" in
25642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25643  *) ac_try_echo=$ac_try;;
25644esac
25645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25646  (eval "$ac_link") 2>conftest.er1
25647  ac_status=$?
25648  grep -v '^ *+' conftest.er1 >conftest.err
25649  rm -f conftest.er1
25650  cat conftest.err >&5
25651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652  (exit $ac_status); } && {
25653	 test -z "$ac_c_werror_flag" ||
25654	 test ! -s conftest.err
25655       } && test -s conftest$ac_exeext &&
25656       $as_test_x conftest$ac_exeext; then
25657  ac_cv_func_cthread_fork=yes
25658else
25659  echo "$as_me: failed program was:" >&5
25660sed 's/^/| /' conftest.$ac_ext >&5
25661
25662	ac_cv_func_cthread_fork=no
25663fi
25664
25665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25666      conftest$ac_exeext conftest.$ac_ext
25667fi
25668{ echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25669echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25670if test $ac_cv_func_cthread_fork = yes; then
25671  ol_link_threads=yes
25672fi
25673
25674
25675		if test $ol_link_threads = no ; then
25676									{ echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25677echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25678if test "${ol_cv_cthread_all_load+set}" = set; then
25679  echo $ECHO_N "(cached) $ECHO_C" >&6
25680else
25681
25682								save_LIBS="$LIBS"
25683				LIBS="-all_load $LIBS"
25684				cat >conftest.$ac_ext <<_ACEOF
25685/* confdefs.h.  */
25686_ACEOF
25687cat confdefs.h >>conftest.$ac_ext
25688cat >>conftest.$ac_ext <<_ACEOF
25689/* end confdefs.h.  */
25690#include <mach/cthreads.h>
25691int
25692main ()
25693{
25694
25695					cthread_fork((void *)0, (void *)0);
25696
25697  ;
25698  return 0;
25699}
25700_ACEOF
25701rm -f conftest.$ac_objext conftest$ac_exeext
25702if { (ac_try="$ac_link"
25703case "(($ac_try" in
25704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705  *) ac_try_echo=$ac_try;;
25706esac
25707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25708  (eval "$ac_link") 2>conftest.er1
25709  ac_status=$?
25710  grep -v '^ *+' conftest.er1 >conftest.err
25711  rm -f conftest.er1
25712  cat conftest.err >&5
25713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714  (exit $ac_status); } && {
25715	 test -z "$ac_c_werror_flag" ||
25716	 test ! -s conftest.err
25717       } && test -s conftest$ac_exeext &&
25718       $as_test_x conftest$ac_exeext; then
25719  ol_cv_cthread_all_load=yes
25720else
25721  echo "$as_me: failed program was:" >&5
25722sed 's/^/| /' conftest.$ac_ext >&5
25723
25724	ol_cv_cthread_all_load=no
25725fi
25726
25727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25728      conftest$ac_exeext conftest.$ac_ext
25729								LIBS="$save_LIBS"
25730
25731fi
25732{ echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25733echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25734
25735			if test $ol_cv_cthread_all_load = yes ; then
25736				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25737				ol_link_threads=mach
25738				ol_with_threads=found
25739			fi
25740		fi
25741
25742	elif test $ac_cv_header_cthreads_h = yes ; then
25743
25744		ol_with_threads=found
25745
25746				save_LIBS="$LIBS"
25747		LIBS="$LIBS -lthreads"
25748		{ echo "$as_me:$LINENO: checking for cthread_fork" >&5
25749echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25750if test "${ac_cv_func_cthread_fork+set}" = set; then
25751  echo $ECHO_N "(cached) $ECHO_C" >&6
25752else
25753  cat >conftest.$ac_ext <<_ACEOF
25754/* confdefs.h.  */
25755_ACEOF
25756cat confdefs.h >>conftest.$ac_ext
25757cat >>conftest.$ac_ext <<_ACEOF
25758/* end confdefs.h.  */
25759/* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25760   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25761#define cthread_fork innocuous_cthread_fork
25762
25763/* System header to define __stub macros and hopefully few prototypes,
25764    which can conflict with char cthread_fork (); below.
25765    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25766    <limits.h> exists even on freestanding compilers.  */
25767
25768#ifdef __STDC__
25769# include <limits.h>
25770#else
25771# include <assert.h>
25772#endif
25773
25774#undef cthread_fork
25775
25776/* Override any GCC internal prototype to avoid an error.
25777   Use char because int might match the return type of a GCC
25778   builtin and then its argument prototype would still apply.  */
25779#ifdef __cplusplus
25780extern "C"
25781#endif
25782char cthread_fork ();
25783/* The GNU C library defines this for functions which it implements
25784    to always fail with ENOSYS.  Some functions are actually named
25785    something starting with __ and the normal name is an alias.  */
25786#if defined __stub_cthread_fork || defined __stub___cthread_fork
25787choke me
25788#endif
25789
25790int
25791main ()
25792{
25793return cthread_fork ();
25794  ;
25795  return 0;
25796}
25797_ACEOF
25798rm -f conftest.$ac_objext conftest$ac_exeext
25799if { (ac_try="$ac_link"
25800case "(($ac_try" in
25801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802  *) ac_try_echo=$ac_try;;
25803esac
25804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805  (eval "$ac_link") 2>conftest.er1
25806  ac_status=$?
25807  grep -v '^ *+' conftest.er1 >conftest.err
25808  rm -f conftest.er1
25809  cat conftest.err >&5
25810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811  (exit $ac_status); } && {
25812	 test -z "$ac_c_werror_flag" ||
25813	 test ! -s conftest.err
25814       } && test -s conftest$ac_exeext &&
25815       $as_test_x conftest$ac_exeext; then
25816  ac_cv_func_cthread_fork=yes
25817else
25818  echo "$as_me: failed program was:" >&5
25819sed 's/^/| /' conftest.$ac_ext >&5
25820
25821	ac_cv_func_cthread_fork=no
25822fi
25823
25824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25825      conftest$ac_exeext conftest.$ac_ext
25826fi
25827{ echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25828echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25829if test $ac_cv_func_cthread_fork = yes; then
25830  ol_link_threads=yes
25831fi
25832
25833		LIBS="$save_LIBS"
25834
25835		if test $ol_link_threads = yes ; then
25836			LTHREAD_LIBS="-lthreads"
25837			ol_link_threads=mach
25838			ol_with_threads=found
25839		else
25840			{ { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25841echo "$as_me: error: could not link with Mach CThreads" >&2;}
25842   { (exit 1); exit 1; }; }
25843		fi
25844
25845	elif test $ol_with_threads = mach ; then
25846		{ { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25847echo "$as_me: error: could not locate Mach CThreads" >&2;}
25848   { (exit 1); exit 1; }; }
25849	fi
25850
25851	if test $ol_link_threads = mach ; then
25852
25853cat >>confdefs.h <<\_ACEOF
25854#define HAVE_MACH_CTHREADS 1
25855_ACEOF
25856
25857	elif test $ol_with_threads = found ; then
25858		{ { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25859echo "$as_me: error: could not link with Mach CThreads" >&2;}
25860   { (exit 1); exit 1; }; }
25861	fi
25862	;;
25863esac
25864
25865case $ol_with_threads in auto | yes | pth)
25866
25867
25868for ac_header in pth.h
25869do
25870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25872  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25875  echo $ECHO_N "(cached) $ECHO_C" >&6
25876fi
25877ac_res=`eval echo '${'$as_ac_Header'}'`
25878	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25879echo "${ECHO_T}$ac_res" >&6; }
25880else
25881  # Is the header compilable?
25882{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25884cat >conftest.$ac_ext <<_ACEOF
25885/* confdefs.h.  */
25886_ACEOF
25887cat confdefs.h >>conftest.$ac_ext
25888cat >>conftest.$ac_ext <<_ACEOF
25889/* end confdefs.h.  */
25890$ac_includes_default
25891#include <$ac_header>
25892_ACEOF
25893rm -f conftest.$ac_objext
25894if { (ac_try="$ac_compile"
25895case "(($ac_try" in
25896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25897  *) ac_try_echo=$ac_try;;
25898esac
25899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25900  (eval "$ac_compile") 2>conftest.er1
25901  ac_status=$?
25902  grep -v '^ *+' conftest.er1 >conftest.err
25903  rm -f conftest.er1
25904  cat conftest.err >&5
25905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906  (exit $ac_status); } && {
25907	 test -z "$ac_c_werror_flag" ||
25908	 test ! -s conftest.err
25909       } && test -s conftest.$ac_objext; then
25910  ac_header_compiler=yes
25911else
25912  echo "$as_me: failed program was:" >&5
25913sed 's/^/| /' conftest.$ac_ext >&5
25914
25915	ac_header_compiler=no
25916fi
25917
25918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25919{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25920echo "${ECHO_T}$ac_header_compiler" >&6; }
25921
25922# Is the header present?
25923{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25925cat >conftest.$ac_ext <<_ACEOF
25926/* confdefs.h.  */
25927_ACEOF
25928cat confdefs.h >>conftest.$ac_ext
25929cat >>conftest.$ac_ext <<_ACEOF
25930/* end confdefs.h.  */
25931#include <$ac_header>
25932_ACEOF
25933if { (ac_try="$ac_cpp conftest.$ac_ext"
25934case "(($ac_try" in
25935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25936  *) ac_try_echo=$ac_try;;
25937esac
25938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25939  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25940  ac_status=$?
25941  grep -v '^ *+' conftest.er1 >conftest.err
25942  rm -f conftest.er1
25943  cat conftest.err >&5
25944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945  (exit $ac_status); } >/dev/null && {
25946	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25947	 test ! -s conftest.err
25948       }; then
25949  ac_header_preproc=yes
25950else
25951  echo "$as_me: failed program was:" >&5
25952sed 's/^/| /' conftest.$ac_ext >&5
25953
25954  ac_header_preproc=no
25955fi
25956
25957rm -f conftest.err conftest.$ac_ext
25958{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25959echo "${ECHO_T}$ac_header_preproc" >&6; }
25960
25961# So?  What about this header?
25962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25963  yes:no: )
25964    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25965echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25966    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25967echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25968    ac_header_preproc=yes
25969    ;;
25970  no:yes:* )
25971    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25972echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25973    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25974echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25975    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25976echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25977    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25978echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25979    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25981    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25982echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25983    ( cat <<\_ASBOX
25984## --------------------------------------------- ##
25985## Report this to <http://www.openldap.org/its/> ##
25986## --------------------------------------------- ##
25987_ASBOX
25988     ) | sed "s/^/$as_me: WARNING:     /" >&2
25989    ;;
25990esac
25991{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25994  echo $ECHO_N "(cached) $ECHO_C" >&6
25995else
25996  eval "$as_ac_Header=\$ac_header_preproc"
25997fi
25998ac_res=`eval echo '${'$as_ac_Header'}'`
25999	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26000echo "${ECHO_T}$ac_res" >&6; }
26001
26002fi
26003if test `eval echo '${'$as_ac_Header'}'` = yes; then
26004  cat >>confdefs.h <<_ACEOF
26005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26006_ACEOF
26007
26008fi
26009
26010done
26011
26012
26013	if test $ac_cv_header_pth_h = yes ; then
26014		{ echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26015echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26016if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26017  echo $ECHO_N "(cached) $ECHO_C" >&6
26018else
26019  ac_check_lib_save_LIBS=$LIBS
26020LIBS="-lpth  $LIBS"
26021cat >conftest.$ac_ext <<_ACEOF
26022/* confdefs.h.  */
26023_ACEOF
26024cat confdefs.h >>conftest.$ac_ext
26025cat >>conftest.$ac_ext <<_ACEOF
26026/* end confdefs.h.  */
26027
26028/* Override any GCC internal prototype to avoid an error.
26029   Use char because int might match the return type of a GCC
26030   builtin and then its argument prototype would still apply.  */
26031#ifdef __cplusplus
26032extern "C"
26033#endif
26034char pth_version ();
26035int
26036main ()
26037{
26038return pth_version ();
26039  ;
26040  return 0;
26041}
26042_ACEOF
26043rm -f conftest.$ac_objext conftest$ac_exeext
26044if { (ac_try="$ac_link"
26045case "(($ac_try" in
26046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26047  *) ac_try_echo=$ac_try;;
26048esac
26049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26050  (eval "$ac_link") 2>conftest.er1
26051  ac_status=$?
26052  grep -v '^ *+' conftest.er1 >conftest.err
26053  rm -f conftest.er1
26054  cat conftest.err >&5
26055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056  (exit $ac_status); } && {
26057	 test -z "$ac_c_werror_flag" ||
26058	 test ! -s conftest.err
26059       } && test -s conftest$ac_exeext &&
26060       $as_test_x conftest$ac_exeext; then
26061  ac_cv_lib_pth_pth_version=yes
26062else
26063  echo "$as_me: failed program was:" >&5
26064sed 's/^/| /' conftest.$ac_ext >&5
26065
26066	ac_cv_lib_pth_pth_version=no
26067fi
26068
26069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26070      conftest$ac_exeext conftest.$ac_ext
26071LIBS=$ac_check_lib_save_LIBS
26072fi
26073{ echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26074echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26075if test $ac_cv_lib_pth_pth_version = yes; then
26076  have_pth=yes
26077else
26078  have_pth=no
26079fi
26080
26081
26082		if test $have_pth = yes ; then
26083
26084cat >>confdefs.h <<\_ACEOF
26085#define HAVE_GNU_PTH 1
26086_ACEOF
26087
26088			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26089			ol_link_threads=pth
26090			ol_with_threads=found
26091
26092			if test $ol_with_yielding_select = auto ; then
26093				ol_with_yielding_select=yes
26094			fi
26095		fi
26096	fi
26097	;;
26098esac
26099
26100case $ol_with_threads in auto | yes | lwp)
26101
26102
26103
26104for ac_header in thread.h synch.h
26105do
26106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26108  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26111  echo $ECHO_N "(cached) $ECHO_C" >&6
26112fi
26113ac_res=`eval echo '${'$as_ac_Header'}'`
26114	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26115echo "${ECHO_T}$ac_res" >&6; }
26116else
26117  # Is the header compilable?
26118{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26119echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26120cat >conftest.$ac_ext <<_ACEOF
26121/* confdefs.h.  */
26122_ACEOF
26123cat confdefs.h >>conftest.$ac_ext
26124cat >>conftest.$ac_ext <<_ACEOF
26125/* end confdefs.h.  */
26126$ac_includes_default
26127#include <$ac_header>
26128_ACEOF
26129rm -f conftest.$ac_objext
26130if { (ac_try="$ac_compile"
26131case "(($ac_try" in
26132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26133  *) ac_try_echo=$ac_try;;
26134esac
26135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26136  (eval "$ac_compile") 2>conftest.er1
26137  ac_status=$?
26138  grep -v '^ *+' conftest.er1 >conftest.err
26139  rm -f conftest.er1
26140  cat conftest.err >&5
26141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142  (exit $ac_status); } && {
26143	 test -z "$ac_c_werror_flag" ||
26144	 test ! -s conftest.err
26145       } && test -s conftest.$ac_objext; then
26146  ac_header_compiler=yes
26147else
26148  echo "$as_me: failed program was:" >&5
26149sed 's/^/| /' conftest.$ac_ext >&5
26150
26151	ac_header_compiler=no
26152fi
26153
26154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26155{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26156echo "${ECHO_T}$ac_header_compiler" >&6; }
26157
26158# Is the header present?
26159{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26161cat >conftest.$ac_ext <<_ACEOF
26162/* confdefs.h.  */
26163_ACEOF
26164cat confdefs.h >>conftest.$ac_ext
26165cat >>conftest.$ac_ext <<_ACEOF
26166/* end confdefs.h.  */
26167#include <$ac_header>
26168_ACEOF
26169if { (ac_try="$ac_cpp conftest.$ac_ext"
26170case "(($ac_try" in
26171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26172  *) ac_try_echo=$ac_try;;
26173esac
26174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26175  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26176  ac_status=$?
26177  grep -v '^ *+' conftest.er1 >conftest.err
26178  rm -f conftest.er1
26179  cat conftest.err >&5
26180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181  (exit $ac_status); } >/dev/null && {
26182	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26183	 test ! -s conftest.err
26184       }; then
26185  ac_header_preproc=yes
26186else
26187  echo "$as_me: failed program was:" >&5
26188sed 's/^/| /' conftest.$ac_ext >&5
26189
26190  ac_header_preproc=no
26191fi
26192
26193rm -f conftest.err conftest.$ac_ext
26194{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26195echo "${ECHO_T}$ac_header_preproc" >&6; }
26196
26197# So?  What about this header?
26198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26199  yes:no: )
26200    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26202    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26204    ac_header_preproc=yes
26205    ;;
26206  no:yes:* )
26207    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26209    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26210echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26211    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26213    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26214echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26215    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26217    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26219    ( cat <<\_ASBOX
26220## --------------------------------------------- ##
26221## Report this to <http://www.openldap.org/its/> ##
26222## --------------------------------------------- ##
26223_ASBOX
26224     ) | sed "s/^/$as_me: WARNING:     /" >&2
26225    ;;
26226esac
26227{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26230  echo $ECHO_N "(cached) $ECHO_C" >&6
26231else
26232  eval "$as_ac_Header=\$ac_header_preproc"
26233fi
26234ac_res=`eval echo '${'$as_ac_Header'}'`
26235	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26236echo "${ECHO_T}$ac_res" >&6; }
26237
26238fi
26239if test `eval echo '${'$as_ac_Header'}'` = yes; then
26240  cat >>confdefs.h <<_ACEOF
26241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26242_ACEOF
26243
26244fi
26245
26246done
26247
26248	if test $ac_cv_header_thread_h = yes &&
26249	   test $ac_cv_header_synch_h = yes ; then
26250		{ echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26251echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26252if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26253  echo $ECHO_N "(cached) $ECHO_C" >&6
26254else
26255  ac_check_lib_save_LIBS=$LIBS
26256LIBS="-lthread  $LIBS"
26257cat >conftest.$ac_ext <<_ACEOF
26258/* confdefs.h.  */
26259_ACEOF
26260cat confdefs.h >>conftest.$ac_ext
26261cat >>conftest.$ac_ext <<_ACEOF
26262/* end confdefs.h.  */
26263
26264/* Override any GCC internal prototype to avoid an error.
26265   Use char because int might match the return type of a GCC
26266   builtin and then its argument prototype would still apply.  */
26267#ifdef __cplusplus
26268extern "C"
26269#endif
26270char thr_create ();
26271int
26272main ()
26273{
26274return thr_create ();
26275  ;
26276  return 0;
26277}
26278_ACEOF
26279rm -f conftest.$ac_objext conftest$ac_exeext
26280if { (ac_try="$ac_link"
26281case "(($ac_try" in
26282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26283  *) ac_try_echo=$ac_try;;
26284esac
26285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26286  (eval "$ac_link") 2>conftest.er1
26287  ac_status=$?
26288  grep -v '^ *+' conftest.er1 >conftest.err
26289  rm -f conftest.er1
26290  cat conftest.err >&5
26291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292  (exit $ac_status); } && {
26293	 test -z "$ac_c_werror_flag" ||
26294	 test ! -s conftest.err
26295       } && test -s conftest$ac_exeext &&
26296       $as_test_x conftest$ac_exeext; then
26297  ac_cv_lib_thread_thr_create=yes
26298else
26299  echo "$as_me: failed program was:" >&5
26300sed 's/^/| /' conftest.$ac_ext >&5
26301
26302	ac_cv_lib_thread_thr_create=no
26303fi
26304
26305rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26306      conftest$ac_exeext conftest.$ac_ext
26307LIBS=$ac_check_lib_save_LIBS
26308fi
26309{ echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26310echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26311if test $ac_cv_lib_thread_thr_create = yes; then
26312  have_thr=yes
26313else
26314  have_thr=no
26315fi
26316
26317
26318		if test $have_thr = yes ; then
26319
26320cat >>confdefs.h <<\_ACEOF
26321#define HAVE_THR 1
26322_ACEOF
26323
26324			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26325			ol_link_threads=thr
26326
26327			if test $ol_with_yielding_select = auto ; then
26328				ol_with_yielding_select=yes
26329			fi
26330
26331
26332
26333for ac_func in \
26334				thr_setconcurrency \
26335				thr_getconcurrency \
26336
26337do
26338as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26339{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26340echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26341if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26342  echo $ECHO_N "(cached) $ECHO_C" >&6
26343else
26344  cat >conftest.$ac_ext <<_ACEOF
26345/* confdefs.h.  */
26346_ACEOF
26347cat confdefs.h >>conftest.$ac_ext
26348cat >>conftest.$ac_ext <<_ACEOF
26349/* end confdefs.h.  */
26350/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26351   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26352#define $ac_func innocuous_$ac_func
26353
26354/* System header to define __stub macros and hopefully few prototypes,
26355    which can conflict with char $ac_func (); below.
26356    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26357    <limits.h> exists even on freestanding compilers.  */
26358
26359#ifdef __STDC__
26360# include <limits.h>
26361#else
26362# include <assert.h>
26363#endif
26364
26365#undef $ac_func
26366
26367/* Override any GCC internal prototype to avoid an error.
26368   Use char because int might match the return type of a GCC
26369   builtin and then its argument prototype would still apply.  */
26370#ifdef __cplusplus
26371extern "C"
26372#endif
26373char $ac_func ();
26374/* The GNU C library defines this for functions which it implements
26375    to always fail with ENOSYS.  Some functions are actually named
26376    something starting with __ and the normal name is an alias.  */
26377#if defined __stub_$ac_func || defined __stub___$ac_func
26378choke me
26379#endif
26380
26381int
26382main ()
26383{
26384return $ac_func ();
26385  ;
26386  return 0;
26387}
26388_ACEOF
26389rm -f conftest.$ac_objext conftest$ac_exeext
26390if { (ac_try="$ac_link"
26391case "(($ac_try" in
26392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26393  *) ac_try_echo=$ac_try;;
26394esac
26395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26396  (eval "$ac_link") 2>conftest.er1
26397  ac_status=$?
26398  grep -v '^ *+' conftest.er1 >conftest.err
26399  rm -f conftest.er1
26400  cat conftest.err >&5
26401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402  (exit $ac_status); } && {
26403	 test -z "$ac_c_werror_flag" ||
26404	 test ! -s conftest.err
26405       } && test -s conftest$ac_exeext &&
26406       $as_test_x conftest$ac_exeext; then
26407  eval "$as_ac_var=yes"
26408else
26409  echo "$as_me: failed program was:" >&5
26410sed 's/^/| /' conftest.$ac_ext >&5
26411
26412	eval "$as_ac_var=no"
26413fi
26414
26415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26416      conftest$ac_exeext conftest.$ac_ext
26417fi
26418ac_res=`eval echo '${'$as_ac_var'}'`
26419	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26420echo "${ECHO_T}$ac_res" >&6; }
26421if test `eval echo '${'$as_ac_var'}'` = yes; then
26422  cat >>confdefs.h <<_ACEOF
26423#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26424_ACEOF
26425
26426fi
26427done
26428
26429		fi
26430	fi
26431	;;
26432esac
26433
26434if test $ol_with_yielding_select = yes ; then
26435
26436cat >>confdefs.h <<\_ACEOF
26437#define HAVE_YIELDING_SELECT 1
26438_ACEOF
26439
26440fi
26441
26442if test $ol_with_threads = manual ; then
26443		ol_link_threads=yes
26444
26445	{ echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26446echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26447
26448
26449
26450for ac_header in pthread.h sched.h
26451do
26452as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26454  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26457  echo $ECHO_N "(cached) $ECHO_C" >&6
26458fi
26459ac_res=`eval echo '${'$as_ac_Header'}'`
26460	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26461echo "${ECHO_T}$ac_res" >&6; }
26462else
26463  # Is the header compilable?
26464{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26465echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26466cat >conftest.$ac_ext <<_ACEOF
26467/* confdefs.h.  */
26468_ACEOF
26469cat confdefs.h >>conftest.$ac_ext
26470cat >>conftest.$ac_ext <<_ACEOF
26471/* end confdefs.h.  */
26472$ac_includes_default
26473#include <$ac_header>
26474_ACEOF
26475rm -f conftest.$ac_objext
26476if { (ac_try="$ac_compile"
26477case "(($ac_try" in
26478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26479  *) ac_try_echo=$ac_try;;
26480esac
26481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26482  (eval "$ac_compile") 2>conftest.er1
26483  ac_status=$?
26484  grep -v '^ *+' conftest.er1 >conftest.err
26485  rm -f conftest.er1
26486  cat conftest.err >&5
26487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488  (exit $ac_status); } && {
26489	 test -z "$ac_c_werror_flag" ||
26490	 test ! -s conftest.err
26491       } && test -s conftest.$ac_objext; then
26492  ac_header_compiler=yes
26493else
26494  echo "$as_me: failed program was:" >&5
26495sed 's/^/| /' conftest.$ac_ext >&5
26496
26497	ac_header_compiler=no
26498fi
26499
26500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26501{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26502echo "${ECHO_T}$ac_header_compiler" >&6; }
26503
26504# Is the header present?
26505{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26507cat >conftest.$ac_ext <<_ACEOF
26508/* confdefs.h.  */
26509_ACEOF
26510cat confdefs.h >>conftest.$ac_ext
26511cat >>conftest.$ac_ext <<_ACEOF
26512/* end confdefs.h.  */
26513#include <$ac_header>
26514_ACEOF
26515if { (ac_try="$ac_cpp conftest.$ac_ext"
26516case "(($ac_try" in
26517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518  *) ac_try_echo=$ac_try;;
26519esac
26520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26521  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26522  ac_status=$?
26523  grep -v '^ *+' conftest.er1 >conftest.err
26524  rm -f conftest.er1
26525  cat conftest.err >&5
26526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527  (exit $ac_status); } >/dev/null && {
26528	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26529	 test ! -s conftest.err
26530       }; then
26531  ac_header_preproc=yes
26532else
26533  echo "$as_me: failed program was:" >&5
26534sed 's/^/| /' conftest.$ac_ext >&5
26535
26536  ac_header_preproc=no
26537fi
26538
26539rm -f conftest.err conftest.$ac_ext
26540{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26541echo "${ECHO_T}$ac_header_preproc" >&6; }
26542
26543# So?  What about this header?
26544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26545  yes:no: )
26546    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26547echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26548    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26549echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26550    ac_header_preproc=yes
26551    ;;
26552  no:yes:* )
26553    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26554echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26555    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26556echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26557    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26558echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26559    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26560echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26561    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26563    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26564echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26565    ( cat <<\_ASBOX
26566## --------------------------------------------- ##
26567## Report this to <http://www.openldap.org/its/> ##
26568## --------------------------------------------- ##
26569_ASBOX
26570     ) | sed "s/^/$as_me: WARNING:     /" >&2
26571    ;;
26572esac
26573{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26576  echo $ECHO_N "(cached) $ECHO_C" >&6
26577else
26578  eval "$as_ac_Header=\$ac_header_preproc"
26579fi
26580ac_res=`eval echo '${'$as_ac_Header'}'`
26581	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26582echo "${ECHO_T}$ac_res" >&6; }
26583
26584fi
26585if test `eval echo '${'$as_ac_Header'}'` = yes; then
26586  cat >>confdefs.h <<_ACEOF
26587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26588_ACEOF
26589
26590fi
26591
26592done
26593
26594
26595
26596for ac_func in sched_yield pthread_yield
26597do
26598as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26599{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26600echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26601if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26602  echo $ECHO_N "(cached) $ECHO_C" >&6
26603else
26604  cat >conftest.$ac_ext <<_ACEOF
26605/* confdefs.h.  */
26606_ACEOF
26607cat confdefs.h >>conftest.$ac_ext
26608cat >>conftest.$ac_ext <<_ACEOF
26609/* end confdefs.h.  */
26610/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26611   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26612#define $ac_func innocuous_$ac_func
26613
26614/* System header to define __stub macros and hopefully few prototypes,
26615    which can conflict with char $ac_func (); below.
26616    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26617    <limits.h> exists even on freestanding compilers.  */
26618
26619#ifdef __STDC__
26620# include <limits.h>
26621#else
26622# include <assert.h>
26623#endif
26624
26625#undef $ac_func
26626
26627/* Override any GCC internal prototype to avoid an error.
26628   Use char because int might match the return type of a GCC
26629   builtin and then its argument prototype would still apply.  */
26630#ifdef __cplusplus
26631extern "C"
26632#endif
26633char $ac_func ();
26634/* The GNU C library defines this for functions which it implements
26635    to always fail with ENOSYS.  Some functions are actually named
26636    something starting with __ and the normal name is an alias.  */
26637#if defined __stub_$ac_func || defined __stub___$ac_func
26638choke me
26639#endif
26640
26641int
26642main ()
26643{
26644return $ac_func ();
26645  ;
26646  return 0;
26647}
26648_ACEOF
26649rm -f conftest.$ac_objext conftest$ac_exeext
26650if { (ac_try="$ac_link"
26651case "(($ac_try" in
26652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26653  *) ac_try_echo=$ac_try;;
26654esac
26655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26656  (eval "$ac_link") 2>conftest.er1
26657  ac_status=$?
26658  grep -v '^ *+' conftest.er1 >conftest.err
26659  rm -f conftest.er1
26660  cat conftest.err >&5
26661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662  (exit $ac_status); } && {
26663	 test -z "$ac_c_werror_flag" ||
26664	 test ! -s conftest.err
26665       } && test -s conftest$ac_exeext &&
26666       $as_test_x conftest$ac_exeext; then
26667  eval "$as_ac_var=yes"
26668else
26669  echo "$as_me: failed program was:" >&5
26670sed 's/^/| /' conftest.$ac_ext >&5
26671
26672	eval "$as_ac_var=no"
26673fi
26674
26675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26676      conftest$ac_exeext conftest.$ac_ext
26677fi
26678ac_res=`eval echo '${'$as_ac_var'}'`
26679	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26680echo "${ECHO_T}$ac_res" >&6; }
26681if test `eval echo '${'$as_ac_var'}'` = yes; then
26682  cat >>confdefs.h <<_ACEOF
26683#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26684_ACEOF
26685
26686fi
26687done
26688
26689
26690	{ echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26691echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26692if test "${ol_cv_header_linux_threads+set}" = set; then
26693  echo $ECHO_N "(cached) $ECHO_C" >&6
26694else
26695  cat >conftest.$ac_ext <<_ACEOF
26696/* confdefs.h.  */
26697_ACEOF
26698cat confdefs.h >>conftest.$ac_ext
26699cat >>conftest.$ac_ext <<_ACEOF
26700/* end confdefs.h.  */
26701#include <pthread.h>
26702_ACEOF
26703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26704  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26705  ol_cv_header_linux_threads=yes
26706else
26707  ol_cv_header_linux_threads=no
26708fi
26709rm -f -r conftest*
26710
26711
26712fi
26713{ echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26714echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26715	if test $ol_cv_header_linux_threads = yes; then
26716
26717cat >>confdefs.h <<\_ACEOF
26718#define HAVE_LINUX_THREADS 1
26719_ACEOF
26720
26721	fi
26722
26723
26724
26725for ac_header in mach/cthreads.h
26726do
26727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26729  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26732  echo $ECHO_N "(cached) $ECHO_C" >&6
26733fi
26734ac_res=`eval echo '${'$as_ac_Header'}'`
26735	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26736echo "${ECHO_T}$ac_res" >&6; }
26737else
26738  # Is the header compilable?
26739{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26741cat >conftest.$ac_ext <<_ACEOF
26742/* confdefs.h.  */
26743_ACEOF
26744cat confdefs.h >>conftest.$ac_ext
26745cat >>conftest.$ac_ext <<_ACEOF
26746/* end confdefs.h.  */
26747$ac_includes_default
26748#include <$ac_header>
26749_ACEOF
26750rm -f conftest.$ac_objext
26751if { (ac_try="$ac_compile"
26752case "(($ac_try" in
26753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26754  *) ac_try_echo=$ac_try;;
26755esac
26756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26757  (eval "$ac_compile") 2>conftest.er1
26758  ac_status=$?
26759  grep -v '^ *+' conftest.er1 >conftest.err
26760  rm -f conftest.er1
26761  cat conftest.err >&5
26762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763  (exit $ac_status); } && {
26764	 test -z "$ac_c_werror_flag" ||
26765	 test ! -s conftest.err
26766       } && test -s conftest.$ac_objext; then
26767  ac_header_compiler=yes
26768else
26769  echo "$as_me: failed program was:" >&5
26770sed 's/^/| /' conftest.$ac_ext >&5
26771
26772	ac_header_compiler=no
26773fi
26774
26775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26776{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26777echo "${ECHO_T}$ac_header_compiler" >&6; }
26778
26779# Is the header present?
26780{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26782cat >conftest.$ac_ext <<_ACEOF
26783/* confdefs.h.  */
26784_ACEOF
26785cat confdefs.h >>conftest.$ac_ext
26786cat >>conftest.$ac_ext <<_ACEOF
26787/* end confdefs.h.  */
26788#include <$ac_header>
26789_ACEOF
26790if { (ac_try="$ac_cpp conftest.$ac_ext"
26791case "(($ac_try" in
26792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26793  *) ac_try_echo=$ac_try;;
26794esac
26795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26796  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26797  ac_status=$?
26798  grep -v '^ *+' conftest.er1 >conftest.err
26799  rm -f conftest.er1
26800  cat conftest.err >&5
26801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802  (exit $ac_status); } >/dev/null && {
26803	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26804	 test ! -s conftest.err
26805       }; then
26806  ac_header_preproc=yes
26807else
26808  echo "$as_me: failed program was:" >&5
26809sed 's/^/| /' conftest.$ac_ext >&5
26810
26811  ac_header_preproc=no
26812fi
26813
26814rm -f conftest.err conftest.$ac_ext
26815{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26816echo "${ECHO_T}$ac_header_preproc" >&6; }
26817
26818# So?  What about this header?
26819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26820  yes:no: )
26821    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26823    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26825    ac_header_preproc=yes
26826    ;;
26827  no:yes:* )
26828    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26830    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26831echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26832    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26834    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26835echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26836    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26838    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26840    ( cat <<\_ASBOX
26841## --------------------------------------------- ##
26842## Report this to <http://www.openldap.org/its/> ##
26843## --------------------------------------------- ##
26844_ASBOX
26845     ) | sed "s/^/$as_me: WARNING:     /" >&2
26846    ;;
26847esac
26848{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26851  echo $ECHO_N "(cached) $ECHO_C" >&6
26852else
26853  eval "$as_ac_Header=\$ac_header_preproc"
26854fi
26855ac_res=`eval echo '${'$as_ac_Header'}'`
26856	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26857echo "${ECHO_T}$ac_res" >&6; }
26858
26859fi
26860if test `eval echo '${'$as_ac_Header'}'` = yes; then
26861  cat >>confdefs.h <<_ACEOF
26862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26863_ACEOF
26864
26865fi
26866
26867done
26868
26869
26870
26871for ac_header in thread.h synch.h
26872do
26873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26875  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26878  echo $ECHO_N "(cached) $ECHO_C" >&6
26879fi
26880ac_res=`eval echo '${'$as_ac_Header'}'`
26881	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26882echo "${ECHO_T}$ac_res" >&6; }
26883else
26884  # Is the header compilable?
26885{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26887cat >conftest.$ac_ext <<_ACEOF
26888/* confdefs.h.  */
26889_ACEOF
26890cat confdefs.h >>conftest.$ac_ext
26891cat >>conftest.$ac_ext <<_ACEOF
26892/* end confdefs.h.  */
26893$ac_includes_default
26894#include <$ac_header>
26895_ACEOF
26896rm -f conftest.$ac_objext
26897if { (ac_try="$ac_compile"
26898case "(($ac_try" in
26899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26900  *) ac_try_echo=$ac_try;;
26901esac
26902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26903  (eval "$ac_compile") 2>conftest.er1
26904  ac_status=$?
26905  grep -v '^ *+' conftest.er1 >conftest.err
26906  rm -f conftest.er1
26907  cat conftest.err >&5
26908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909  (exit $ac_status); } && {
26910	 test -z "$ac_c_werror_flag" ||
26911	 test ! -s conftest.err
26912       } && test -s conftest.$ac_objext; then
26913  ac_header_compiler=yes
26914else
26915  echo "$as_me: failed program was:" >&5
26916sed 's/^/| /' conftest.$ac_ext >&5
26917
26918	ac_header_compiler=no
26919fi
26920
26921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26922{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26923echo "${ECHO_T}$ac_header_compiler" >&6; }
26924
26925# Is the header present?
26926{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26927echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26928cat >conftest.$ac_ext <<_ACEOF
26929/* confdefs.h.  */
26930_ACEOF
26931cat confdefs.h >>conftest.$ac_ext
26932cat >>conftest.$ac_ext <<_ACEOF
26933/* end confdefs.h.  */
26934#include <$ac_header>
26935_ACEOF
26936if { (ac_try="$ac_cpp conftest.$ac_ext"
26937case "(($ac_try" in
26938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26939  *) ac_try_echo=$ac_try;;
26940esac
26941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26942  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26943  ac_status=$?
26944  grep -v '^ *+' conftest.er1 >conftest.err
26945  rm -f conftest.er1
26946  cat conftest.err >&5
26947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948  (exit $ac_status); } >/dev/null && {
26949	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26950	 test ! -s conftest.err
26951       }; then
26952  ac_header_preproc=yes
26953else
26954  echo "$as_me: failed program was:" >&5
26955sed 's/^/| /' conftest.$ac_ext >&5
26956
26957  ac_header_preproc=no
26958fi
26959
26960rm -f conftest.err conftest.$ac_ext
26961{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26962echo "${ECHO_T}$ac_header_preproc" >&6; }
26963
26964# So?  What about this header?
26965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26966  yes:no: )
26967    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26968echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26969    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26970echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26971    ac_header_preproc=yes
26972    ;;
26973  no:yes:* )
26974    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26975echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26976    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26977echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26978    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26979echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26980    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26981echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26982    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26983echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26984    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26985echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26986    ( cat <<\_ASBOX
26987## --------------------------------------------- ##
26988## Report this to <http://www.openldap.org/its/> ##
26989## --------------------------------------------- ##
26990_ASBOX
26991     ) | sed "s/^/$as_me: WARNING:     /" >&2
26992    ;;
26993esac
26994{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26997  echo $ECHO_N "(cached) $ECHO_C" >&6
26998else
26999  eval "$as_ac_Header=\$ac_header_preproc"
27000fi
27001ac_res=`eval echo '${'$as_ac_Header'}'`
27002	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27003echo "${ECHO_T}$ac_res" >&6; }
27004
27005fi
27006if test `eval echo '${'$as_ac_Header'}'` = yes; then
27007  cat >>confdefs.h <<_ACEOF
27008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27009_ACEOF
27010
27011fi
27012
27013done
27014
27015fi
27016
27017if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27018			cat >>confdefs.h <<\_ACEOF
27019#define REENTRANT 1
27020_ACEOF
27021
27022	cat >>confdefs.h <<\_ACEOF
27023#define _REENTRANT 1
27024_ACEOF
27025
27026	cat >>confdefs.h <<\_ACEOF
27027#define THREAD_SAFE 1
27028_ACEOF
27029
27030	cat >>confdefs.h <<\_ACEOF
27031#define _THREAD_SAFE 1
27032_ACEOF
27033
27034	cat >>confdefs.h <<\_ACEOF
27035#define THREADSAFE 1
27036_ACEOF
27037
27038	cat >>confdefs.h <<\_ACEOF
27039#define _THREADSAFE 1
27040_ACEOF
27041
27042	cat >>confdefs.h <<\_ACEOF
27043#define _SGI_MP_SOURCE 1
27044_ACEOF
27045
27046
27047			{ echo "$as_me:$LINENO: checking for thread specific errno" >&5
27048echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27049if test "${ol_cv_errno_thread_specific+set}" = set; then
27050  echo $ECHO_N "(cached) $ECHO_C" >&6
27051else
27052
27053		cat >conftest.$ac_ext <<_ACEOF
27054/* confdefs.h.  */
27055_ACEOF
27056cat confdefs.h >>conftest.$ac_ext
27057cat >>conftest.$ac_ext <<_ACEOF
27058/* end confdefs.h.  */
27059#include <errno.h>
27060int
27061main ()
27062{
27063errno = 0;
27064  ;
27065  return 0;
27066}
27067_ACEOF
27068rm -f conftest.$ac_objext conftest$ac_exeext
27069if { (ac_try="$ac_link"
27070case "(($ac_try" in
27071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072  *) ac_try_echo=$ac_try;;
27073esac
27074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075  (eval "$ac_link") 2>conftest.er1
27076  ac_status=$?
27077  grep -v '^ *+' conftest.er1 >conftest.err
27078  rm -f conftest.er1
27079  cat conftest.err >&5
27080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081  (exit $ac_status); } && {
27082	 test -z "$ac_c_werror_flag" ||
27083	 test ! -s conftest.err
27084       } && test -s conftest$ac_exeext &&
27085       $as_test_x conftest$ac_exeext; then
27086  ol_cv_errno_thread_specific=yes
27087else
27088  echo "$as_me: failed program was:" >&5
27089sed 's/^/| /' conftest.$ac_ext >&5
27090
27091	ol_cv_errno_thread_specific=no
27092fi
27093
27094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27095      conftest$ac_exeext conftest.$ac_ext
27096
27097fi
27098{ echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27099echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27100
27101			{ echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27102echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27103if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27104  echo $ECHO_N "(cached) $ECHO_C" >&6
27105else
27106
27107		cat >conftest.$ac_ext <<_ACEOF
27108/* confdefs.h.  */
27109_ACEOF
27110cat confdefs.h >>conftest.$ac_ext
27111cat >>conftest.$ac_ext <<_ACEOF
27112/* end confdefs.h.  */
27113#include <netdb.h>
27114int
27115main ()
27116{
27117h_errno = 0;
27118  ;
27119  return 0;
27120}
27121_ACEOF
27122rm -f conftest.$ac_objext conftest$ac_exeext
27123if { (ac_try="$ac_link"
27124case "(($ac_try" in
27125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126  *) ac_try_echo=$ac_try;;
27127esac
27128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27129  (eval "$ac_link") 2>conftest.er1
27130  ac_status=$?
27131  grep -v '^ *+' conftest.er1 >conftest.err
27132  rm -f conftest.er1
27133  cat conftest.err >&5
27134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135  (exit $ac_status); } && {
27136	 test -z "$ac_c_werror_flag" ||
27137	 test ! -s conftest.err
27138       } && test -s conftest$ac_exeext &&
27139       $as_test_x conftest$ac_exeext; then
27140  ol_cv_h_errno_thread_specific=yes
27141else
27142  echo "$as_me: failed program was:" >&5
27143sed 's/^/| /' conftest.$ac_ext >&5
27144
27145	ol_cv_h_errno_thread_specific=no
27146fi
27147
27148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27149      conftest$ac_exeext conftest.$ac_ext
27150
27151fi
27152{ echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27153echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27154
27155	if test $ol_cv_errno_thread_specific != yes ||
27156	   test $ol_cv_h_errno_thread_specific != yes ; then
27157		LIBS="$LTHREAD_LIBS $LIBS"
27158		LTHREAD_LIBS=""
27159	fi
27160
27161fi
27162
27163if test $ol_link_threads = no ; then
27164	if test $ol_with_threads = yes ; then
27165		{ { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27166echo "$as_me: error: no suitable thread support" >&2;}
27167   { (exit 1); exit 1; }; }
27168	fi
27169
27170	if test $ol_with_threads = auto ; then
27171		{ echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27172echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27173		ol_with_threads=no
27174	fi
27175
27176
27177cat >>confdefs.h <<\_ACEOF
27178#define NO_THREADS 1
27179_ACEOF
27180
27181	LTHREAD_LIBS=""
27182	BUILD_THREAD=no
27183else
27184	BUILD_THREAD=yes
27185fi
27186
27187if test $ol_link_threads != no ; then
27188
27189cat >>confdefs.h <<\_ACEOF
27190#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27191_ACEOF
27192
27193fi
27194
27195
27196
27197
27198for ac_func in \
27199	ctime_r			\
27200	gethostbyname_r	gethostbyaddr_r \
27201
27202do
27203as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27204{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27205echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27206if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27207  echo $ECHO_N "(cached) $ECHO_C" >&6
27208else
27209  cat >conftest.$ac_ext <<_ACEOF
27210/* confdefs.h.  */
27211_ACEOF
27212cat confdefs.h >>conftest.$ac_ext
27213cat >>conftest.$ac_ext <<_ACEOF
27214/* end confdefs.h.  */
27215/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27216   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27217#define $ac_func innocuous_$ac_func
27218
27219/* System header to define __stub macros and hopefully few prototypes,
27220    which can conflict with char $ac_func (); below.
27221    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27222    <limits.h> exists even on freestanding compilers.  */
27223
27224#ifdef __STDC__
27225# include <limits.h>
27226#else
27227# include <assert.h>
27228#endif
27229
27230#undef $ac_func
27231
27232/* Override any GCC internal prototype to avoid an error.
27233   Use char because int might match the return type of a GCC
27234   builtin and then its argument prototype would still apply.  */
27235#ifdef __cplusplus
27236extern "C"
27237#endif
27238char $ac_func ();
27239/* The GNU C library defines this for functions which it implements
27240    to always fail with ENOSYS.  Some functions are actually named
27241    something starting with __ and the normal name is an alias.  */
27242#if defined __stub_$ac_func || defined __stub___$ac_func
27243choke me
27244#endif
27245
27246int
27247main ()
27248{
27249return $ac_func ();
27250  ;
27251  return 0;
27252}
27253_ACEOF
27254rm -f conftest.$ac_objext conftest$ac_exeext
27255if { (ac_try="$ac_link"
27256case "(($ac_try" in
27257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27258  *) ac_try_echo=$ac_try;;
27259esac
27260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27261  (eval "$ac_link") 2>conftest.er1
27262  ac_status=$?
27263  grep -v '^ *+' conftest.er1 >conftest.err
27264  rm -f conftest.er1
27265  cat conftest.err >&5
27266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267  (exit $ac_status); } && {
27268	 test -z "$ac_c_werror_flag" ||
27269	 test ! -s conftest.err
27270       } && test -s conftest$ac_exeext &&
27271       $as_test_x conftest$ac_exeext; then
27272  eval "$as_ac_var=yes"
27273else
27274  echo "$as_me: failed program was:" >&5
27275sed 's/^/| /' conftest.$ac_ext >&5
27276
27277	eval "$as_ac_var=no"
27278fi
27279
27280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27281      conftest$ac_exeext conftest.$ac_ext
27282fi
27283ac_res=`eval echo '${'$as_ac_var'}'`
27284	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27285echo "${ECHO_T}$ac_res" >&6; }
27286if test `eval echo '${'$as_ac_var'}'` = yes; then
27287  cat >>confdefs.h <<_ACEOF
27288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27289_ACEOF
27290
27291fi
27292done
27293
27294
27295if test "$ac_cv_func_ctime_r" = no ; then
27296	ol_cv_func_ctime_r_nargs=0
27297else
27298	{ echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27299echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27300if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27301  echo $ECHO_N "(cached) $ECHO_C" >&6
27302else
27303  cat >conftest.$ac_ext <<_ACEOF
27304/* confdefs.h.  */
27305_ACEOF
27306cat confdefs.h >>conftest.$ac_ext
27307cat >>conftest.$ac_ext <<_ACEOF
27308/* end confdefs.h.  */
27309#include <time.h>
27310int
27311main ()
27312{
27313time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27314  ;
27315  return 0;
27316}
27317_ACEOF
27318rm -f conftest.$ac_objext
27319if { (ac_try="$ac_compile"
27320case "(($ac_try" in
27321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322  *) ac_try_echo=$ac_try;;
27323esac
27324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325  (eval "$ac_compile") 2>conftest.er1
27326  ac_status=$?
27327  grep -v '^ *+' conftest.er1 >conftest.err
27328  rm -f conftest.er1
27329  cat conftest.err >&5
27330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331  (exit $ac_status); } && {
27332	 test -z "$ac_c_werror_flag" ||
27333	 test ! -s conftest.err
27334       } && test -s conftest.$ac_objext; then
27335  ol_cv_func_ctime_r_nargs3=yes
27336else
27337  echo "$as_me: failed program was:" >&5
27338sed 's/^/| /' conftest.$ac_ext >&5
27339
27340	ol_cv_func_ctime_r_nargs3=no
27341fi
27342
27343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27344
27345	cat >conftest.$ac_ext <<_ACEOF
27346/* confdefs.h.  */
27347_ACEOF
27348cat confdefs.h >>conftest.$ac_ext
27349cat >>conftest.$ac_ext <<_ACEOF
27350/* end confdefs.h.  */
27351#include <time.h>
27352int
27353main ()
27354{
27355time_t ti; char *buffer; ctime_r(&ti,buffer);
27356  ;
27357  return 0;
27358}
27359_ACEOF
27360rm -f conftest.$ac_objext
27361if { (ac_try="$ac_compile"
27362case "(($ac_try" in
27363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27364  *) ac_try_echo=$ac_try;;
27365esac
27366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27367  (eval "$ac_compile") 2>conftest.er1
27368  ac_status=$?
27369  grep -v '^ *+' conftest.er1 >conftest.err
27370  rm -f conftest.er1
27371  cat conftest.err >&5
27372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373  (exit $ac_status); } && {
27374	 test -z "$ac_c_werror_flag" ||
27375	 test ! -s conftest.err
27376       } && test -s conftest.$ac_objext; then
27377  ol_cv_func_ctime_r_nargs2=yes
27378else
27379  echo "$as_me: failed program was:" >&5
27380sed 's/^/| /' conftest.$ac_ext >&5
27381
27382	ol_cv_func_ctime_r_nargs2=no
27383fi
27384
27385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27386
27387	if test $ol_cv_func_ctime_r_nargs3 = yes &&
27388	   test $ol_cv_func_ctime_r_nargs2 = no ; then
27389
27390		ol_cv_func_ctime_r_nargs=3
27391
27392	elif test $ol_cv_func_ctime_r_nargs3 = no &&
27393	     test $ol_cv_func_ctime_r_nargs2 = yes ; then
27394
27395		ol_cv_func_ctime_r_nargs=2
27396
27397	else
27398		ol_cv_func_ctime_r_nargs=0
27399	fi
27400
27401fi
27402{ echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27403echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27404
27405  if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27406
27407cat >>confdefs.h <<_ACEOF
27408#define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27409_ACEOF
27410
27411  fi
27412
27413fi
27414
27415if test "$ac_cv_func_gethostbyname_r" = yes ; then
27416 	{ echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27417echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27418if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27419  echo $ECHO_N "(cached) $ECHO_C" >&6
27420else
27421  cat >conftest.$ac_ext <<_ACEOF
27422/* confdefs.h.  */
27423_ACEOF
27424cat confdefs.h >>conftest.$ac_ext
27425cat >>conftest.$ac_ext <<_ACEOF
27426/* end confdefs.h.  */
27427#include <sys/types.h>
27428#include <sys/socket.h>
27429#include <netinet/in.h>
27430#include <netdb.h>
27431#define BUFSIZE (sizeof(struct hostent)+10)
27432int
27433main ()
27434{
27435struct hostent hent; char buffer[BUFSIZE];
27436		int bufsize=BUFSIZE;int h_errno;
27437		(void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27438			buffer, bufsize, &h_errno);
27439  ;
27440  return 0;
27441}
27442_ACEOF
27443rm -f conftest.$ac_objext
27444if { (ac_try="$ac_compile"
27445case "(($ac_try" in
27446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447  *) ac_try_echo=$ac_try;;
27448esac
27449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450  (eval "$ac_compile") 2>conftest.er1
27451  ac_status=$?
27452  grep -v '^ *+' conftest.er1 >conftest.err
27453  rm -f conftest.er1
27454  cat conftest.err >&5
27455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456  (exit $ac_status); } && {
27457	 test -z "$ac_c_werror_flag" ||
27458	 test ! -s conftest.err
27459       } && test -s conftest.$ac_objext; then
27460  ol_cv_func_gethostbyname_r_nargs5=yes
27461else
27462  echo "$as_me: failed program was:" >&5
27463sed 's/^/| /' conftest.$ac_ext >&5
27464
27465	ol_cv_func_gethostbyname_r_nargs5=no
27466fi
27467
27468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27469
27470	cat >conftest.$ac_ext <<_ACEOF
27471/* confdefs.h.  */
27472_ACEOF
27473cat confdefs.h >>conftest.$ac_ext
27474cat >>conftest.$ac_ext <<_ACEOF
27475/* end confdefs.h.  */
27476#include <sys/types.h>
27477#include <sys/socket.h>
27478#include <netinet/in.h>
27479#include <netdb.h>
27480#define BUFSIZE (sizeof(struct hostent)+10)
27481int
27482main ()
27483{
27484struct hostent hent;struct hostent *rhent;
27485		char buffer[BUFSIZE];
27486		int bufsize=BUFSIZE;int h_errno;
27487		(void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27488			&rhent, &h_errno);
27489  ;
27490  return 0;
27491}
27492_ACEOF
27493rm -f conftest.$ac_objext
27494if { (ac_try="$ac_compile"
27495case "(($ac_try" in
27496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497  *) ac_try_echo=$ac_try;;
27498esac
27499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27500  (eval "$ac_compile") 2>conftest.er1
27501  ac_status=$?
27502  grep -v '^ *+' conftest.er1 >conftest.err
27503  rm -f conftest.er1
27504  cat conftest.err >&5
27505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506  (exit $ac_status); } && {
27507	 test -z "$ac_c_werror_flag" ||
27508	 test ! -s conftest.err
27509       } && test -s conftest.$ac_objext; then
27510  ol_cv_func_gethostbyname_r_nargs6=yes
27511else
27512  echo "$as_me: failed program was:" >&5
27513sed 's/^/| /' conftest.$ac_ext >&5
27514
27515	ol_cv_func_gethostbyname_r_nargs6=no
27516fi
27517
27518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27519
27520	if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27521	   test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27522
27523		ol_cv_func_gethostbyname_r_nargs=5
27524
27525	elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27526	     test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27527
27528		ol_cv_func_gethostbyname_r_nargs=6
27529
27530	else
27531		ol_cv_func_gethostbyname_r_nargs=0
27532	fi
27533
27534fi
27535{ echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27536echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27537  if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27538
27539cat >>confdefs.h <<_ACEOF
27540#define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27541_ACEOF
27542
27543  fi
27544
27545else
27546 	ol_cv_func_gethostbyname_r_nargs=0
27547fi
27548
27549if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27550 	{ echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27551echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27552if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27553  echo $ECHO_N "(cached) $ECHO_C" >&6
27554else
27555  cat >conftest.$ac_ext <<_ACEOF
27556/* confdefs.h.  */
27557_ACEOF
27558cat confdefs.h >>conftest.$ac_ext
27559cat >>conftest.$ac_ext <<_ACEOF
27560/* end confdefs.h.  */
27561#include <sys/types.h>
27562#include <sys/socket.h>
27563#include <netinet/in.h>
27564#include <netdb.h>
27565#define BUFSIZE (sizeof(struct hostent)+10)
27566int
27567main ()
27568{
27569struct hostent hent; char buffer[BUFSIZE];
27570	    struct in_addr add;
27571	    size_t alen=sizeof(struct in_addr);
27572	    int bufsize=BUFSIZE;int h_errno;
27573		(void)gethostbyaddr_r( (void *)&(add.s_addr),
27574			alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27575  ;
27576  return 0;
27577}
27578_ACEOF
27579rm -f conftest.$ac_objext
27580if { (ac_try="$ac_compile"
27581case "(($ac_try" in
27582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583  *) ac_try_echo=$ac_try;;
27584esac
27585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586  (eval "$ac_compile") 2>conftest.er1
27587  ac_status=$?
27588  grep -v '^ *+' conftest.er1 >conftest.err
27589  rm -f conftest.er1
27590  cat conftest.err >&5
27591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592  (exit $ac_status); } && {
27593	 test -z "$ac_c_werror_flag" ||
27594	 test ! -s conftest.err
27595       } && test -s conftest.$ac_objext; then
27596  ol_cv_func_gethostbyaddr_r_nargs7=yes
27597else
27598  echo "$as_me: failed program was:" >&5
27599sed 's/^/| /' conftest.$ac_ext >&5
27600
27601	ol_cv_func_gethostbyaddr_r_nargs7=no
27602fi
27603
27604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27605
27606	cat >conftest.$ac_ext <<_ACEOF
27607/* confdefs.h.  */
27608_ACEOF
27609cat confdefs.h >>conftest.$ac_ext
27610cat >>conftest.$ac_ext <<_ACEOF
27611/* end confdefs.h.  */
27612#include <sys/types.h>
27613#include <sys/socket.h>
27614#include <netinet/in.h>
27615#include <netdb.h>
27616#define BUFSIZE (sizeof(struct hostent)+10)
27617int
27618main ()
27619{
27620struct hostent hent;
27621		struct hostent *rhent; char buffer[BUFSIZE];
27622		struct in_addr add;
27623		size_t alen=sizeof(struct in_addr);
27624		int bufsize=BUFSIZE;int h_errno;
27625		(void)gethostbyaddr_r( (void *)&(add.s_addr),
27626			alen, AF_INET, &hent, buffer, bufsize,
27627			&rhent, &h_errno);
27628  ;
27629  return 0;
27630}
27631_ACEOF
27632rm -f conftest.$ac_objext
27633if { (ac_try="$ac_compile"
27634case "(($ac_try" in
27635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27636  *) ac_try_echo=$ac_try;;
27637esac
27638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27639  (eval "$ac_compile") 2>conftest.er1
27640  ac_status=$?
27641  grep -v '^ *+' conftest.er1 >conftest.err
27642  rm -f conftest.er1
27643  cat conftest.err >&5
27644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645  (exit $ac_status); } && {
27646	 test -z "$ac_c_werror_flag" ||
27647	 test ! -s conftest.err
27648       } && test -s conftest.$ac_objext; then
27649  ol_cv_func_gethostbyaddr_r_nargs8=yes
27650else
27651  echo "$as_me: failed program was:" >&5
27652sed 's/^/| /' conftest.$ac_ext >&5
27653
27654	ol_cv_func_gethostbyaddr_r_nargs8=no
27655fi
27656
27657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27658
27659	if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27660	   test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27661
27662		ol_cv_func_gethostbyaddr_r_nargs=7
27663
27664	elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27665	     test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27666
27667		ol_cv_func_gethostbyaddr_r_nargs=8
27668
27669	else
27670		ol_cv_func_gethostbyaddr_r_nargs=0
27671	fi
27672
27673fi
27674{ echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27675echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27676  if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27677
27678cat >>confdefs.h <<_ACEOF
27679#define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27680_ACEOF
27681
27682  fi
27683
27684else
27685 	ol_cv_func_gethostbyaddr_r_nargs=0
27686fi
27687
27688ol_link_bdb=no
27689
27690if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27691	ol_cv_berkeley_db=no
27692
27693for ac_header in db.h
27694do
27695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27697  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27700  echo $ECHO_N "(cached) $ECHO_C" >&6
27701fi
27702ac_res=`eval echo '${'$as_ac_Header'}'`
27703	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27704echo "${ECHO_T}$ac_res" >&6; }
27705else
27706  # Is the header compilable?
27707{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27708echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27709cat >conftest.$ac_ext <<_ACEOF
27710/* confdefs.h.  */
27711_ACEOF
27712cat confdefs.h >>conftest.$ac_ext
27713cat >>conftest.$ac_ext <<_ACEOF
27714/* end confdefs.h.  */
27715$ac_includes_default
27716#include <$ac_header>
27717_ACEOF
27718rm -f conftest.$ac_objext
27719if { (ac_try="$ac_compile"
27720case "(($ac_try" in
27721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722  *) ac_try_echo=$ac_try;;
27723esac
27724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27725  (eval "$ac_compile") 2>conftest.er1
27726  ac_status=$?
27727  grep -v '^ *+' conftest.er1 >conftest.err
27728  rm -f conftest.er1
27729  cat conftest.err >&5
27730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731  (exit $ac_status); } && {
27732	 test -z "$ac_c_werror_flag" ||
27733	 test ! -s conftest.err
27734       } && test -s conftest.$ac_objext; then
27735  ac_header_compiler=yes
27736else
27737  echo "$as_me: failed program was:" >&5
27738sed 's/^/| /' conftest.$ac_ext >&5
27739
27740	ac_header_compiler=no
27741fi
27742
27743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27744{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27745echo "${ECHO_T}$ac_header_compiler" >&6; }
27746
27747# Is the header present?
27748{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27750cat >conftest.$ac_ext <<_ACEOF
27751/* confdefs.h.  */
27752_ACEOF
27753cat confdefs.h >>conftest.$ac_ext
27754cat >>conftest.$ac_ext <<_ACEOF
27755/* end confdefs.h.  */
27756#include <$ac_header>
27757_ACEOF
27758if { (ac_try="$ac_cpp conftest.$ac_ext"
27759case "(($ac_try" in
27760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27761  *) ac_try_echo=$ac_try;;
27762esac
27763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27764  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27765  ac_status=$?
27766  grep -v '^ *+' conftest.er1 >conftest.err
27767  rm -f conftest.er1
27768  cat conftest.err >&5
27769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770  (exit $ac_status); } >/dev/null && {
27771	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27772	 test ! -s conftest.err
27773       }; then
27774  ac_header_preproc=yes
27775else
27776  echo "$as_me: failed program was:" >&5
27777sed 's/^/| /' conftest.$ac_ext >&5
27778
27779  ac_header_preproc=no
27780fi
27781
27782rm -f conftest.err conftest.$ac_ext
27783{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27784echo "${ECHO_T}$ac_header_preproc" >&6; }
27785
27786# So?  What about this header?
27787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27788  yes:no: )
27789    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27791    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27793    ac_header_preproc=yes
27794    ;;
27795  no:yes:* )
27796    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27798    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27799echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27800    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27802    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27803echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27804    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27806    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27808    ( cat <<\_ASBOX
27809## --------------------------------------------- ##
27810## Report this to <http://www.openldap.org/its/> ##
27811## --------------------------------------------- ##
27812_ASBOX
27813     ) | sed "s/^/$as_me: WARNING:     /" >&2
27814    ;;
27815esac
27816{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27819  echo $ECHO_N "(cached) $ECHO_C" >&6
27820else
27821  eval "$as_ac_Header=\$ac_header_preproc"
27822fi
27823ac_res=`eval echo '${'$as_ac_Header'}'`
27824	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27825echo "${ECHO_T}$ac_res" >&6; }
27826
27827fi
27828if test `eval echo '${'$as_ac_Header'}'` = yes; then
27829  cat >>confdefs.h <<_ACEOF
27830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27831_ACEOF
27832
27833fi
27834
27835done
27836
27837if test $ac_cv_header_db_h = yes; then
27838	{ echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
27839echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
27840if test "${ol_cv_bdb_major+set}" = set; then
27841  echo $ECHO_N "(cached) $ECHO_C" >&6
27842else
27843
27844	cat >conftest.$ac_ext <<_ACEOF
27845
27846#include <db.h>
27847#ifndef DB_VERSION_MAJOR
27848#	define DB_VERSION_MAJOR 1
27849#endif
27850__db_version DB_VERSION_MAJOR
27851
27852_ACEOF
27853	set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
27854	ol_cv_bdb_major=${3}
27855
27856fi
27857{ echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27858echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
27859case $ol_cv_bdb_major in [1-9]*) : ;; *)
27860	{ { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
27861echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
27862   { (exit 1); exit 1; }; } ;;
27863esac
27864
27865{ echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
27866echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
27867if test "${ol_cv_bdb_minor+set}" = set; then
27868  echo $ECHO_N "(cached) $ECHO_C" >&6
27869else
27870
27871	cat >conftest.$ac_ext <<_ACEOF
27872
27873#include <db.h>
27874#ifndef DB_VERSION_MINOR
27875#	define DB_VERSION_MINOR 0
27876#endif
27877__db_version DB_VERSION_MINOR
27878
27879_ACEOF
27880	set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
27881	ol_cv_bdb_minor=${3}
27882
27883fi
27884{ echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27885echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
27886case $ol_cv_bdb_minor in [0-9]*) : ;; *)
27887	{ { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
27888echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
27889   { (exit 1); exit 1; }; } ;;
27890esac
27891
27892	{ echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
27893echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
27894if test "${ol_cv_bdb_compat+set}" = set; then
27895  echo $ECHO_N "(cached) $ECHO_C" >&6
27896else
27897
27898	cat >conftest.$ac_ext <<_ACEOF
27899/* confdefs.h.  */
27900_ACEOF
27901cat confdefs.h >>conftest.$ac_ext
27902cat >>conftest.$ac_ext <<_ACEOF
27903/* end confdefs.h.  */
27904
27905#include <db.h>
27906
27907 /* this check could be improved */
27908#ifndef DB_VERSION_MAJOR
27909#	define DB_VERSION_MAJOR 1
27910#endif
27911#ifndef DB_VERSION_MINOR
27912#	define DB_VERSION_MINOR 0
27913#endif
27914
27915#define DB_VERSION_MM	((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
27916
27917/* require 4.4 or later */
27918#if DB_VERSION_MM >= 0x0404
27919	__db_version_compat
27920#endif
27921
27922_ACEOF
27923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27924  $EGREP "__db_version_compat" >/dev/null 2>&1; then
27925  ol_cv_bdb_compat=yes
27926else
27927  ol_cv_bdb_compat=no
27928fi
27929rm -f -r conftest*
27930
27931fi
27932{ echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
27933echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
27934
27935
27936	if test $ol_cv_bdb_compat != yes ; then
27937		{ { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
27938echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
27939   { (exit 1); exit 1; }; }
27940	fi
27941
27942	ol_cv_lib_db=no
27943
27944if test $ol_cv_bdb_major = 5 ; then
27945	if test $ol_cv_lib_db = no ; then
27946	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
27947echo $ECHO_N "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
27948if test "${ol_cv_db_db_5_dot_m+set}" = set; then
27949  echo $ECHO_N "(cached) $ECHO_C" >&6
27950else
27951
27952	ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
27953	ol_LIBS=$LIBS
27954	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27955
27956	cat >conftest.$ac_ext <<_ACEOF
27957/* confdefs.h.  */
27958_ACEOF
27959cat confdefs.h >>conftest.$ac_ext
27960cat >>conftest.$ac_ext <<_ACEOF
27961/* end confdefs.h.  */
27962
27963#ifdef HAVE_DB_185_H
27964# include <db_185.h>
27965#else
27966# include <db.h>
27967#endif
27968
27969#ifndef DB_VERSION_MAJOR
27970# define DB_VERSION_MAJOR 1
27971#endif
27972
27973#ifndef NULL
27974#define NULL ((void*)0)
27975#endif
27976
27977int
27978main ()
27979{
27980
27981#if DB_VERSION_MAJOR > 2
27982	db_env_create( NULL, 0 );
27983#elif DB_VERSION_MAJOR > 1
27984	db_appexit( NULL );
27985#else
27986	(void) dbopen( NULL, 0, 0, 0, NULL);
27987#endif
27988
27989  ;
27990  return 0;
27991}
27992_ACEOF
27993rm -f conftest.$ac_objext conftest$ac_exeext
27994if { (ac_try="$ac_link"
27995case "(($ac_try" in
27996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997  *) ac_try_echo=$ac_try;;
27998esac
27999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28000  (eval "$ac_link") 2>conftest.er1
28001  ac_status=$?
28002  grep -v '^ *+' conftest.er1 >conftest.err
28003  rm -f conftest.er1
28004  cat conftest.err >&5
28005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006  (exit $ac_status); } && {
28007	 test -z "$ac_c_werror_flag" ||
28008	 test ! -s conftest.err
28009       } && test -s conftest$ac_exeext &&
28010       $as_test_x conftest$ac_exeext; then
28011  ol_cv_db_db_5_dot_m=yes
28012else
28013  echo "$as_me: failed program was:" >&5
28014sed 's/^/| /' conftest.$ac_ext >&5
28015
28016	ol_cv_db_db_5_dot_m=no
28017fi
28018
28019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28020      conftest$ac_exeext conftest.$ac_ext
28021
28022	LIBS="$ol_LIBS"
28023
28024fi
28025{ echo "$as_me:$LINENO: result: $ol_cv_db_db_5_dot_m" >&5
28026echo "${ECHO_T}$ol_cv_db_db_5_dot_m" >&6; }
28027
28028	if test $ol_cv_db_db_5_dot_m = yes ; then
28029		ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
28030	fi
28031fi
28032
28033	if test $ol_cv_lib_db = no ; then
28034	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
28035echo $ECHO_N "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28036if test "${ol_cv_db_db5m+set}" = set; then
28037  echo $ECHO_N "(cached) $ECHO_C" >&6
28038else
28039
28040	ol_DB_LIB=-ldb5$ol_cv_bdb_minor
28041	ol_LIBS=$LIBS
28042	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28043
28044	cat >conftest.$ac_ext <<_ACEOF
28045/* confdefs.h.  */
28046_ACEOF
28047cat confdefs.h >>conftest.$ac_ext
28048cat >>conftest.$ac_ext <<_ACEOF
28049/* end confdefs.h.  */
28050
28051#ifdef HAVE_DB_185_H
28052# include <db_185.h>
28053#else
28054# include <db.h>
28055#endif
28056
28057#ifndef DB_VERSION_MAJOR
28058# define DB_VERSION_MAJOR 1
28059#endif
28060
28061#ifndef NULL
28062#define NULL ((void*)0)
28063#endif
28064
28065int
28066main ()
28067{
28068
28069#if DB_VERSION_MAJOR > 2
28070	db_env_create( NULL, 0 );
28071#elif DB_VERSION_MAJOR > 1
28072	db_appexit( NULL );
28073#else
28074	(void) dbopen( NULL, 0, 0, 0, NULL);
28075#endif
28076
28077  ;
28078  return 0;
28079}
28080_ACEOF
28081rm -f conftest.$ac_objext conftest$ac_exeext
28082if { (ac_try="$ac_link"
28083case "(($ac_try" in
28084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085  *) ac_try_echo=$ac_try;;
28086esac
28087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088  (eval "$ac_link") 2>conftest.er1
28089  ac_status=$?
28090  grep -v '^ *+' conftest.er1 >conftest.err
28091  rm -f conftest.er1
28092  cat conftest.err >&5
28093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094  (exit $ac_status); } && {
28095	 test -z "$ac_c_werror_flag" ||
28096	 test ! -s conftest.err
28097       } && test -s conftest$ac_exeext &&
28098       $as_test_x conftest$ac_exeext; then
28099  ol_cv_db_db5m=yes
28100else
28101  echo "$as_me: failed program was:" >&5
28102sed 's/^/| /' conftest.$ac_ext >&5
28103
28104	ol_cv_db_db5m=no
28105fi
28106
28107rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28108      conftest$ac_exeext conftest.$ac_ext
28109
28110	LIBS="$ol_LIBS"
28111
28112fi
28113{ echo "$as_me:$LINENO: result: $ol_cv_db_db5m" >&5
28114echo "${ECHO_T}$ol_cv_db_db5m" >&6; }
28115
28116	if test $ol_cv_db_db5m = yes ; then
28117		ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
28118	fi
28119fi
28120
28121	if test $ol_cv_lib_db = no ; then
28122	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
28123echo $ECHO_N "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28124if test "${ol_cv_db_db_5m+set}" = set; then
28125  echo $ECHO_N "(cached) $ECHO_C" >&6
28126else
28127
28128	ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
28129	ol_LIBS=$LIBS
28130	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28131
28132	cat >conftest.$ac_ext <<_ACEOF
28133/* confdefs.h.  */
28134_ACEOF
28135cat confdefs.h >>conftest.$ac_ext
28136cat >>conftest.$ac_ext <<_ACEOF
28137/* end confdefs.h.  */
28138
28139#ifdef HAVE_DB_185_H
28140# include <db_185.h>
28141#else
28142# include <db.h>
28143#endif
28144
28145#ifndef DB_VERSION_MAJOR
28146# define DB_VERSION_MAJOR 1
28147#endif
28148
28149#ifndef NULL
28150#define NULL ((void*)0)
28151#endif
28152
28153int
28154main ()
28155{
28156
28157#if DB_VERSION_MAJOR > 2
28158	db_env_create( NULL, 0 );
28159#elif DB_VERSION_MAJOR > 1
28160	db_appexit( NULL );
28161#else
28162	(void) dbopen( NULL, 0, 0, 0, NULL);
28163#endif
28164
28165  ;
28166  return 0;
28167}
28168_ACEOF
28169rm -f conftest.$ac_objext conftest$ac_exeext
28170if { (ac_try="$ac_link"
28171case "(($ac_try" in
28172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173  *) ac_try_echo=$ac_try;;
28174esac
28175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176  (eval "$ac_link") 2>conftest.er1
28177  ac_status=$?
28178  grep -v '^ *+' conftest.er1 >conftest.err
28179  rm -f conftest.er1
28180  cat conftest.err >&5
28181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182  (exit $ac_status); } && {
28183	 test -z "$ac_c_werror_flag" ||
28184	 test ! -s conftest.err
28185       } && test -s conftest$ac_exeext &&
28186       $as_test_x conftest$ac_exeext; then
28187  ol_cv_db_db_5m=yes
28188else
28189  echo "$as_me: failed program was:" >&5
28190sed 's/^/| /' conftest.$ac_ext >&5
28191
28192	ol_cv_db_db_5m=no
28193fi
28194
28195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28196      conftest$ac_exeext conftest.$ac_ext
28197
28198	LIBS="$ol_LIBS"
28199
28200fi
28201{ echo "$as_me:$LINENO: result: $ol_cv_db_db_5m" >&5
28202echo "${ECHO_T}$ol_cv_db_db_5m" >&6; }
28203
28204	if test $ol_cv_db_db_5m = yes ; then
28205		ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
28206	fi
28207fi
28208
28209	if test $ol_cv_lib_db = no ; then
28210	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
28211echo $ECHO_N "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28212if test "${ol_cv_db_db_5_m+set}" = set; then
28213  echo $ECHO_N "(cached) $ECHO_C" >&6
28214else
28215
28216	ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
28217	ol_LIBS=$LIBS
28218	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28219
28220	cat >conftest.$ac_ext <<_ACEOF
28221/* confdefs.h.  */
28222_ACEOF
28223cat confdefs.h >>conftest.$ac_ext
28224cat >>conftest.$ac_ext <<_ACEOF
28225/* end confdefs.h.  */
28226
28227#ifdef HAVE_DB_185_H
28228# include <db_185.h>
28229#else
28230# include <db.h>
28231#endif
28232
28233#ifndef DB_VERSION_MAJOR
28234# define DB_VERSION_MAJOR 1
28235#endif
28236
28237#ifndef NULL
28238#define NULL ((void*)0)
28239#endif
28240
28241int
28242main ()
28243{
28244
28245#if DB_VERSION_MAJOR > 2
28246	db_env_create( NULL, 0 );
28247#elif DB_VERSION_MAJOR > 1
28248	db_appexit( NULL );
28249#else
28250	(void) dbopen( NULL, 0, 0, 0, NULL);
28251#endif
28252
28253  ;
28254  return 0;
28255}
28256_ACEOF
28257rm -f conftest.$ac_objext conftest$ac_exeext
28258if { (ac_try="$ac_link"
28259case "(($ac_try" in
28260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28261  *) ac_try_echo=$ac_try;;
28262esac
28263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28264  (eval "$ac_link") 2>conftest.er1
28265  ac_status=$?
28266  grep -v '^ *+' conftest.er1 >conftest.err
28267  rm -f conftest.er1
28268  cat conftest.err >&5
28269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270  (exit $ac_status); } && {
28271	 test -z "$ac_c_werror_flag" ||
28272	 test ! -s conftest.err
28273       } && test -s conftest$ac_exeext &&
28274       $as_test_x conftest$ac_exeext; then
28275  ol_cv_db_db_5_m=yes
28276else
28277  echo "$as_me: failed program was:" >&5
28278sed 's/^/| /' conftest.$ac_ext >&5
28279
28280	ol_cv_db_db_5_m=no
28281fi
28282
28283rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28284      conftest$ac_exeext conftest.$ac_ext
28285
28286	LIBS="$ol_LIBS"
28287
28288fi
28289{ echo "$as_me:$LINENO: result: $ol_cv_db_db_5_m" >&5
28290echo "${ECHO_T}$ol_cv_db_db_5_m" >&6; }
28291
28292	if test $ol_cv_db_db_5_m = yes ; then
28293		ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
28294	fi
28295fi
28296
28297	if test $ol_cv_lib_db = no ; then
28298	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5)" >&5
28299echo $ECHO_N "checking for Berkeley DB link (-ldb-5)... $ECHO_C" >&6; }
28300if test "${ol_cv_db_db_5+set}" = set; then
28301  echo $ECHO_N "(cached) $ECHO_C" >&6
28302else
28303
28304	ol_DB_LIB=-ldb-5
28305	ol_LIBS=$LIBS
28306	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28307
28308	cat >conftest.$ac_ext <<_ACEOF
28309/* confdefs.h.  */
28310_ACEOF
28311cat confdefs.h >>conftest.$ac_ext
28312cat >>conftest.$ac_ext <<_ACEOF
28313/* end confdefs.h.  */
28314
28315#ifdef HAVE_DB_185_H
28316# include <db_185.h>
28317#else
28318# include <db.h>
28319#endif
28320
28321#ifndef DB_VERSION_MAJOR
28322# define DB_VERSION_MAJOR 1
28323#endif
28324
28325#ifndef NULL
28326#define NULL ((void*)0)
28327#endif
28328
28329int
28330main ()
28331{
28332
28333#if DB_VERSION_MAJOR > 2
28334	db_env_create( NULL, 0 );
28335#elif DB_VERSION_MAJOR > 1
28336	db_appexit( NULL );
28337#else
28338	(void) dbopen( NULL, 0, 0, 0, NULL);
28339#endif
28340
28341  ;
28342  return 0;
28343}
28344_ACEOF
28345rm -f conftest.$ac_objext conftest$ac_exeext
28346if { (ac_try="$ac_link"
28347case "(($ac_try" in
28348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349  *) ac_try_echo=$ac_try;;
28350esac
28351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352  (eval "$ac_link") 2>conftest.er1
28353  ac_status=$?
28354  grep -v '^ *+' conftest.er1 >conftest.err
28355  rm -f conftest.er1
28356  cat conftest.err >&5
28357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358  (exit $ac_status); } && {
28359	 test -z "$ac_c_werror_flag" ||
28360	 test ! -s conftest.err
28361       } && test -s conftest$ac_exeext &&
28362       $as_test_x conftest$ac_exeext; then
28363  ol_cv_db_db_5=yes
28364else
28365  echo "$as_me: failed program was:" >&5
28366sed 's/^/| /' conftest.$ac_ext >&5
28367
28368	ol_cv_db_db_5=no
28369fi
28370
28371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28372      conftest$ac_exeext conftest.$ac_ext
28373
28374	LIBS="$ol_LIBS"
28375
28376fi
28377{ echo "$as_me:$LINENO: result: $ol_cv_db_db_5" >&5
28378echo "${ECHO_T}$ol_cv_db_db_5" >&6; }
28379
28380	if test $ol_cv_db_db_5 = yes ; then
28381		ol_cv_lib_db=-ldb-5
28382	fi
28383fi
28384
28385	if test $ol_cv_lib_db = no ; then
28386	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5)" >&5
28387echo $ECHO_N "checking for Berkeley DB link (-ldb5)... $ECHO_C" >&6; }
28388if test "${ol_cv_db_db5+set}" = set; then
28389  echo $ECHO_N "(cached) $ECHO_C" >&6
28390else
28391
28392	ol_DB_LIB=-ldb5
28393	ol_LIBS=$LIBS
28394	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28395
28396	cat >conftest.$ac_ext <<_ACEOF
28397/* confdefs.h.  */
28398_ACEOF
28399cat confdefs.h >>conftest.$ac_ext
28400cat >>conftest.$ac_ext <<_ACEOF
28401/* end confdefs.h.  */
28402
28403#ifdef HAVE_DB_185_H
28404# include <db_185.h>
28405#else
28406# include <db.h>
28407#endif
28408
28409#ifndef DB_VERSION_MAJOR
28410# define DB_VERSION_MAJOR 1
28411#endif
28412
28413#ifndef NULL
28414#define NULL ((void*)0)
28415#endif
28416
28417int
28418main ()
28419{
28420
28421#if DB_VERSION_MAJOR > 2
28422	db_env_create( NULL, 0 );
28423#elif DB_VERSION_MAJOR > 1
28424	db_appexit( NULL );
28425#else
28426	(void) dbopen( NULL, 0, 0, 0, NULL);
28427#endif
28428
28429  ;
28430  return 0;
28431}
28432_ACEOF
28433rm -f conftest.$ac_objext conftest$ac_exeext
28434if { (ac_try="$ac_link"
28435case "(($ac_try" in
28436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28437  *) ac_try_echo=$ac_try;;
28438esac
28439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28440  (eval "$ac_link") 2>conftest.er1
28441  ac_status=$?
28442  grep -v '^ *+' conftest.er1 >conftest.err
28443  rm -f conftest.er1
28444  cat conftest.err >&5
28445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446  (exit $ac_status); } && {
28447	 test -z "$ac_c_werror_flag" ||
28448	 test ! -s conftest.err
28449       } && test -s conftest$ac_exeext &&
28450       $as_test_x conftest$ac_exeext; then
28451  ol_cv_db_db5=yes
28452else
28453  echo "$as_me: failed program was:" >&5
28454sed 's/^/| /' conftest.$ac_ext >&5
28455
28456	ol_cv_db_db5=no
28457fi
28458
28459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28460      conftest$ac_exeext conftest.$ac_ext
28461
28462	LIBS="$ol_LIBS"
28463
28464fi
28465{ echo "$as_me:$LINENO: result: $ol_cv_db_db5" >&5
28466echo "${ECHO_T}$ol_cv_db_db5" >&6; }
28467
28468	if test $ol_cv_db_db5 = yes ; then
28469		ol_cv_lib_db=-ldb5
28470	fi
28471fi
28472
28473elif test $ol_cv_bdb_major = 4 ; then
28474	if test $ol_cv_lib_db = no ; then
28475	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28476echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28477if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28478  echo $ECHO_N "(cached) $ECHO_C" >&6
28479else
28480
28481	ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28482	ol_LIBS=$LIBS
28483	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28484
28485	cat >conftest.$ac_ext <<_ACEOF
28486/* confdefs.h.  */
28487_ACEOF
28488cat confdefs.h >>conftest.$ac_ext
28489cat >>conftest.$ac_ext <<_ACEOF
28490/* end confdefs.h.  */
28491
28492#ifdef HAVE_DB_185_H
28493# include <db_185.h>
28494#else
28495# include <db.h>
28496#endif
28497
28498#ifndef DB_VERSION_MAJOR
28499# define DB_VERSION_MAJOR 1
28500#endif
28501
28502#ifndef NULL
28503#define NULL ((void*)0)
28504#endif
28505
28506int
28507main ()
28508{
28509
28510#if DB_VERSION_MAJOR > 2
28511	db_env_create( NULL, 0 );
28512#elif DB_VERSION_MAJOR > 1
28513	db_appexit( NULL );
28514#else
28515	(void) dbopen( NULL, 0, 0, 0, NULL);
28516#endif
28517
28518  ;
28519  return 0;
28520}
28521_ACEOF
28522rm -f conftest.$ac_objext conftest$ac_exeext
28523if { (ac_try="$ac_link"
28524case "(($ac_try" in
28525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28526  *) ac_try_echo=$ac_try;;
28527esac
28528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28529  (eval "$ac_link") 2>conftest.er1
28530  ac_status=$?
28531  grep -v '^ *+' conftest.er1 >conftest.err
28532  rm -f conftest.er1
28533  cat conftest.err >&5
28534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535  (exit $ac_status); } && {
28536	 test -z "$ac_c_werror_flag" ||
28537	 test ! -s conftest.err
28538       } && test -s conftest$ac_exeext &&
28539       $as_test_x conftest$ac_exeext; then
28540  ol_cv_db_db_4_dot_m=yes
28541else
28542  echo "$as_me: failed program was:" >&5
28543sed 's/^/| /' conftest.$ac_ext >&5
28544
28545	ol_cv_db_db_4_dot_m=no
28546fi
28547
28548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28549      conftest$ac_exeext conftest.$ac_ext
28550
28551	LIBS="$ol_LIBS"
28552
28553fi
28554{ echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28555echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28556
28557	if test $ol_cv_db_db_4_dot_m = yes ; then
28558		ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28559	fi
28560fi
28561
28562	if test $ol_cv_lib_db = no ; then
28563	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28564echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28565if test "${ol_cv_db_db4m+set}" = set; then
28566  echo $ECHO_N "(cached) $ECHO_C" >&6
28567else
28568
28569	ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28570	ol_LIBS=$LIBS
28571	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28572
28573	cat >conftest.$ac_ext <<_ACEOF
28574/* confdefs.h.  */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h.  */
28579
28580#ifdef HAVE_DB_185_H
28581# include <db_185.h>
28582#else
28583# include <db.h>
28584#endif
28585
28586#ifndef DB_VERSION_MAJOR
28587# define DB_VERSION_MAJOR 1
28588#endif
28589
28590#ifndef NULL
28591#define NULL ((void*)0)
28592#endif
28593
28594int
28595main ()
28596{
28597
28598#if DB_VERSION_MAJOR > 2
28599	db_env_create( NULL, 0 );
28600#elif DB_VERSION_MAJOR > 1
28601	db_appexit( NULL );
28602#else
28603	(void) dbopen( NULL, 0, 0, 0, NULL);
28604#endif
28605
28606  ;
28607  return 0;
28608}
28609_ACEOF
28610rm -f conftest.$ac_objext conftest$ac_exeext
28611if { (ac_try="$ac_link"
28612case "(($ac_try" in
28613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614  *) ac_try_echo=$ac_try;;
28615esac
28616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617  (eval "$ac_link") 2>conftest.er1
28618  ac_status=$?
28619  grep -v '^ *+' conftest.er1 >conftest.err
28620  rm -f conftest.er1
28621  cat conftest.err >&5
28622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623  (exit $ac_status); } && {
28624	 test -z "$ac_c_werror_flag" ||
28625	 test ! -s conftest.err
28626       } && test -s conftest$ac_exeext &&
28627       $as_test_x conftest$ac_exeext; then
28628  ol_cv_db_db4m=yes
28629else
28630  echo "$as_me: failed program was:" >&5
28631sed 's/^/| /' conftest.$ac_ext >&5
28632
28633	ol_cv_db_db4m=no
28634fi
28635
28636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28637      conftest$ac_exeext conftest.$ac_ext
28638
28639	LIBS="$ol_LIBS"
28640
28641fi
28642{ echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28643echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28644
28645	if test $ol_cv_db_db4m = yes ; then
28646		ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28647	fi
28648fi
28649
28650	if test $ol_cv_lib_db = no ; then
28651	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28652echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28653if test "${ol_cv_db_db_4m+set}" = set; then
28654  echo $ECHO_N "(cached) $ECHO_C" >&6
28655else
28656
28657	ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28658	ol_LIBS=$LIBS
28659	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28660
28661	cat >conftest.$ac_ext <<_ACEOF
28662/* confdefs.h.  */
28663_ACEOF
28664cat confdefs.h >>conftest.$ac_ext
28665cat >>conftest.$ac_ext <<_ACEOF
28666/* end confdefs.h.  */
28667
28668#ifdef HAVE_DB_185_H
28669# include <db_185.h>
28670#else
28671# include <db.h>
28672#endif
28673
28674#ifndef DB_VERSION_MAJOR
28675# define DB_VERSION_MAJOR 1
28676#endif
28677
28678#ifndef NULL
28679#define NULL ((void*)0)
28680#endif
28681
28682int
28683main ()
28684{
28685
28686#if DB_VERSION_MAJOR > 2
28687	db_env_create( NULL, 0 );
28688#elif DB_VERSION_MAJOR > 1
28689	db_appexit( NULL );
28690#else
28691	(void) dbopen( NULL, 0, 0, 0, NULL);
28692#endif
28693
28694  ;
28695  return 0;
28696}
28697_ACEOF
28698rm -f conftest.$ac_objext conftest$ac_exeext
28699if { (ac_try="$ac_link"
28700case "(($ac_try" in
28701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28702  *) ac_try_echo=$ac_try;;
28703esac
28704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28705  (eval "$ac_link") 2>conftest.er1
28706  ac_status=$?
28707  grep -v '^ *+' conftest.er1 >conftest.err
28708  rm -f conftest.er1
28709  cat conftest.err >&5
28710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711  (exit $ac_status); } && {
28712	 test -z "$ac_c_werror_flag" ||
28713	 test ! -s conftest.err
28714       } && test -s conftest$ac_exeext &&
28715       $as_test_x conftest$ac_exeext; then
28716  ol_cv_db_db_4m=yes
28717else
28718  echo "$as_me: failed program was:" >&5
28719sed 's/^/| /' conftest.$ac_ext >&5
28720
28721	ol_cv_db_db_4m=no
28722fi
28723
28724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28725      conftest$ac_exeext conftest.$ac_ext
28726
28727	LIBS="$ol_LIBS"
28728
28729fi
28730{ echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28731echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28732
28733	if test $ol_cv_db_db_4m = yes ; then
28734		ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28735	fi
28736fi
28737
28738	if test $ol_cv_lib_db = no ; then
28739	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28740echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28741if test "${ol_cv_db_db_4_m+set}" = set; then
28742  echo $ECHO_N "(cached) $ECHO_C" >&6
28743else
28744
28745	ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28746	ol_LIBS=$LIBS
28747	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28748
28749	cat >conftest.$ac_ext <<_ACEOF
28750/* confdefs.h.  */
28751_ACEOF
28752cat confdefs.h >>conftest.$ac_ext
28753cat >>conftest.$ac_ext <<_ACEOF
28754/* end confdefs.h.  */
28755
28756#ifdef HAVE_DB_185_H
28757# include <db_185.h>
28758#else
28759# include <db.h>
28760#endif
28761
28762#ifndef DB_VERSION_MAJOR
28763# define DB_VERSION_MAJOR 1
28764#endif
28765
28766#ifndef NULL
28767#define NULL ((void*)0)
28768#endif
28769
28770int
28771main ()
28772{
28773
28774#if DB_VERSION_MAJOR > 2
28775	db_env_create( NULL, 0 );
28776#elif DB_VERSION_MAJOR > 1
28777	db_appexit( NULL );
28778#else
28779	(void) dbopen( NULL, 0, 0, 0, NULL);
28780#endif
28781
28782  ;
28783  return 0;
28784}
28785_ACEOF
28786rm -f conftest.$ac_objext conftest$ac_exeext
28787if { (ac_try="$ac_link"
28788case "(($ac_try" in
28789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28790  *) ac_try_echo=$ac_try;;
28791esac
28792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28793  (eval "$ac_link") 2>conftest.er1
28794  ac_status=$?
28795  grep -v '^ *+' conftest.er1 >conftest.err
28796  rm -f conftest.er1
28797  cat conftest.err >&5
28798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799  (exit $ac_status); } && {
28800	 test -z "$ac_c_werror_flag" ||
28801	 test ! -s conftest.err
28802       } && test -s conftest$ac_exeext &&
28803       $as_test_x conftest$ac_exeext; then
28804  ol_cv_db_db_4_m=yes
28805else
28806  echo "$as_me: failed program was:" >&5
28807sed 's/^/| /' conftest.$ac_ext >&5
28808
28809	ol_cv_db_db_4_m=no
28810fi
28811
28812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28813      conftest$ac_exeext conftest.$ac_ext
28814
28815	LIBS="$ol_LIBS"
28816
28817fi
28818{ echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28819echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28820
28821	if test $ol_cv_db_db_4_m = yes ; then
28822		ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28823	fi
28824fi
28825
28826	if test $ol_cv_lib_db = no ; then
28827	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28828echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28829if test "${ol_cv_db_db_4+set}" = set; then
28830  echo $ECHO_N "(cached) $ECHO_C" >&6
28831else
28832
28833	ol_DB_LIB=-ldb-4
28834	ol_LIBS=$LIBS
28835	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28836
28837	cat >conftest.$ac_ext <<_ACEOF
28838/* confdefs.h.  */
28839_ACEOF
28840cat confdefs.h >>conftest.$ac_ext
28841cat >>conftest.$ac_ext <<_ACEOF
28842/* end confdefs.h.  */
28843
28844#ifdef HAVE_DB_185_H
28845# include <db_185.h>
28846#else
28847# include <db.h>
28848#endif
28849
28850#ifndef DB_VERSION_MAJOR
28851# define DB_VERSION_MAJOR 1
28852#endif
28853
28854#ifndef NULL
28855#define NULL ((void*)0)
28856#endif
28857
28858int
28859main ()
28860{
28861
28862#if DB_VERSION_MAJOR > 2
28863	db_env_create( NULL, 0 );
28864#elif DB_VERSION_MAJOR > 1
28865	db_appexit( NULL );
28866#else
28867	(void) dbopen( NULL, 0, 0, 0, NULL);
28868#endif
28869
28870  ;
28871  return 0;
28872}
28873_ACEOF
28874rm -f conftest.$ac_objext conftest$ac_exeext
28875if { (ac_try="$ac_link"
28876case "(($ac_try" in
28877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28878  *) ac_try_echo=$ac_try;;
28879esac
28880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28881  (eval "$ac_link") 2>conftest.er1
28882  ac_status=$?
28883  grep -v '^ *+' conftest.er1 >conftest.err
28884  rm -f conftest.er1
28885  cat conftest.err >&5
28886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887  (exit $ac_status); } && {
28888	 test -z "$ac_c_werror_flag" ||
28889	 test ! -s conftest.err
28890       } && test -s conftest$ac_exeext &&
28891       $as_test_x conftest$ac_exeext; then
28892  ol_cv_db_db_4=yes
28893else
28894  echo "$as_me: failed program was:" >&5
28895sed 's/^/| /' conftest.$ac_ext >&5
28896
28897	ol_cv_db_db_4=no
28898fi
28899
28900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28901      conftest$ac_exeext conftest.$ac_ext
28902
28903	LIBS="$ol_LIBS"
28904
28905fi
28906{ echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28907echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28908
28909	if test $ol_cv_db_db_4 = yes ; then
28910		ol_cv_lib_db=-ldb-4
28911	fi
28912fi
28913
28914	if test $ol_cv_lib_db = no ; then
28915	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28916echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28917if test "${ol_cv_db_db4+set}" = set; then
28918  echo $ECHO_N "(cached) $ECHO_C" >&6
28919else
28920
28921	ol_DB_LIB=-ldb4
28922	ol_LIBS=$LIBS
28923	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28924
28925	cat >conftest.$ac_ext <<_ACEOF
28926/* confdefs.h.  */
28927_ACEOF
28928cat confdefs.h >>conftest.$ac_ext
28929cat >>conftest.$ac_ext <<_ACEOF
28930/* end confdefs.h.  */
28931
28932#ifdef HAVE_DB_185_H
28933# include <db_185.h>
28934#else
28935# include <db.h>
28936#endif
28937
28938#ifndef DB_VERSION_MAJOR
28939# define DB_VERSION_MAJOR 1
28940#endif
28941
28942#ifndef NULL
28943#define NULL ((void*)0)
28944#endif
28945
28946int
28947main ()
28948{
28949
28950#if DB_VERSION_MAJOR > 2
28951	db_env_create( NULL, 0 );
28952#elif DB_VERSION_MAJOR > 1
28953	db_appexit( NULL );
28954#else
28955	(void) dbopen( NULL, 0, 0, 0, NULL);
28956#endif
28957
28958  ;
28959  return 0;
28960}
28961_ACEOF
28962rm -f conftest.$ac_objext conftest$ac_exeext
28963if { (ac_try="$ac_link"
28964case "(($ac_try" in
28965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28966  *) ac_try_echo=$ac_try;;
28967esac
28968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28969  (eval "$ac_link") 2>conftest.er1
28970  ac_status=$?
28971  grep -v '^ *+' conftest.er1 >conftest.err
28972  rm -f conftest.er1
28973  cat conftest.err >&5
28974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975  (exit $ac_status); } && {
28976	 test -z "$ac_c_werror_flag" ||
28977	 test ! -s conftest.err
28978       } && test -s conftest$ac_exeext &&
28979       $as_test_x conftest$ac_exeext; then
28980  ol_cv_db_db4=yes
28981else
28982  echo "$as_me: failed program was:" >&5
28983sed 's/^/| /' conftest.$ac_ext >&5
28984
28985	ol_cv_db_db4=no
28986fi
28987
28988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28989      conftest$ac_exeext conftest.$ac_ext
28990
28991	LIBS="$ol_LIBS"
28992
28993fi
28994{ echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28995echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28996
28997	if test $ol_cv_db_db4 = yes ; then
28998		ol_cv_lib_db=-ldb4
28999	fi
29000fi
29001
29002fi
29003if test $ol_cv_lib_db = no ; then
29004	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29005echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
29006if test "${ol_cv_db_db+set}" = set; then
29007  echo $ECHO_N "(cached) $ECHO_C" >&6
29008else
29009
29010	ol_DB_LIB=-ldb
29011	ol_LIBS=$LIBS
29012	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29013
29014	cat >conftest.$ac_ext <<_ACEOF
29015/* confdefs.h.  */
29016_ACEOF
29017cat confdefs.h >>conftest.$ac_ext
29018cat >>conftest.$ac_ext <<_ACEOF
29019/* end confdefs.h.  */
29020
29021#ifdef HAVE_DB_185_H
29022# include <db_185.h>
29023#else
29024# include <db.h>
29025#endif
29026
29027#ifndef DB_VERSION_MAJOR
29028# define DB_VERSION_MAJOR 1
29029#endif
29030
29031#ifndef NULL
29032#define NULL ((void*)0)
29033#endif
29034
29035int
29036main ()
29037{
29038
29039#if DB_VERSION_MAJOR > 2
29040	db_env_create( NULL, 0 );
29041#elif DB_VERSION_MAJOR > 1
29042	db_appexit( NULL );
29043#else
29044	(void) dbopen( NULL, 0, 0, 0, NULL);
29045#endif
29046
29047  ;
29048  return 0;
29049}
29050_ACEOF
29051rm -f conftest.$ac_objext conftest$ac_exeext
29052if { (ac_try="$ac_link"
29053case "(($ac_try" in
29054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29055  *) ac_try_echo=$ac_try;;
29056esac
29057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29058  (eval "$ac_link") 2>conftest.er1
29059  ac_status=$?
29060  grep -v '^ *+' conftest.er1 >conftest.err
29061  rm -f conftest.er1
29062  cat conftest.err >&5
29063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064  (exit $ac_status); } && {
29065	 test -z "$ac_c_werror_flag" ||
29066	 test ! -s conftest.err
29067       } && test -s conftest$ac_exeext &&
29068       $as_test_x conftest$ac_exeext; then
29069  ol_cv_db_db=yes
29070else
29071  echo "$as_me: failed program was:" >&5
29072sed 's/^/| /' conftest.$ac_ext >&5
29073
29074	ol_cv_db_db=no
29075fi
29076
29077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29078      conftest$ac_exeext conftest.$ac_ext
29079
29080	LIBS="$ol_LIBS"
29081
29082fi
29083{ echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29084echo "${ECHO_T}$ol_cv_db_db" >&6; }
29085
29086	if test $ol_cv_db_db = yes ; then
29087		ol_cv_lib_db=-ldb
29088	fi
29089fi
29090
29091if test $ol_cv_lib_db = no ; then
29092	{ echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29093echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29094if test "${ol_cv_db_none+set}" = set; then
29095  echo $ECHO_N "(cached) $ECHO_C" >&6
29096else
29097
29098	ol_DB_LIB=
29099	ol_LIBS=$LIBS
29100	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29101
29102	cat >conftest.$ac_ext <<_ACEOF
29103/* confdefs.h.  */
29104_ACEOF
29105cat confdefs.h >>conftest.$ac_ext
29106cat >>conftest.$ac_ext <<_ACEOF
29107/* end confdefs.h.  */
29108
29109#ifdef HAVE_DB_185_H
29110# include <db_185.h>
29111#else
29112# include <db.h>
29113#endif
29114
29115#ifndef DB_VERSION_MAJOR
29116# define DB_VERSION_MAJOR 1
29117#endif
29118
29119#ifndef NULL
29120#define NULL ((void*)0)
29121#endif
29122
29123int
29124main ()
29125{
29126
29127#if DB_VERSION_MAJOR > 2
29128	db_env_create( NULL, 0 );
29129#elif DB_VERSION_MAJOR > 1
29130	db_appexit( NULL );
29131#else
29132	(void) dbopen( NULL, 0, 0, 0, NULL);
29133#endif
29134
29135  ;
29136  return 0;
29137}
29138_ACEOF
29139rm -f conftest.$ac_objext conftest$ac_exeext
29140if { (ac_try="$ac_link"
29141case "(($ac_try" in
29142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29143  *) ac_try_echo=$ac_try;;
29144esac
29145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29146  (eval "$ac_link") 2>conftest.er1
29147  ac_status=$?
29148  grep -v '^ *+' conftest.er1 >conftest.err
29149  rm -f conftest.er1
29150  cat conftest.err >&5
29151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152  (exit $ac_status); } && {
29153	 test -z "$ac_c_werror_flag" ||
29154	 test ! -s conftest.err
29155       } && test -s conftest$ac_exeext &&
29156       $as_test_x conftest$ac_exeext; then
29157  ol_cv_db_none=yes
29158else
29159  echo "$as_me: failed program was:" >&5
29160sed 's/^/| /' conftest.$ac_ext >&5
29161
29162	ol_cv_db_none=no
29163fi
29164
29165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29166      conftest$ac_exeext conftest.$ac_ext
29167
29168	LIBS="$ol_LIBS"
29169
29170fi
29171{ echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29172echo "${ECHO_T}$ol_cv_db_none" >&6; }
29173
29174	if test $ol_cv_db_none = yes ; then
29175		ol_cv_lib_db=yes
29176	fi
29177fi
29178
29179
29180	if test "$ol_cv_lib_db" != no ; then
29181		ol_cv_berkeley_db=yes
29182		{ echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29183echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29184if test "${ol_cv_berkeley_db_version+set}" = set; then
29185  echo $ECHO_N "(cached) $ECHO_C" >&6
29186else
29187
29188	ol_LIBS="$LIBS"
29189	LIBS="$LTHREAD_LIBS $LIBS"
29190	if test $ol_cv_lib_db != yes ; then
29191		LIBS="$ol_cv_lib_db $LIBS"
29192	fi
29193
29194	if test "$cross_compiling" = yes; then
29195  ol_cv_berkeley_db_version=cross
29196else
29197  cat >conftest.$ac_ext <<_ACEOF
29198/* confdefs.h.  */
29199_ACEOF
29200cat confdefs.h >>conftest.$ac_ext
29201cat >>conftest.$ac_ext <<_ACEOF
29202/* end confdefs.h.  */
29203
29204#ifdef HAVE_DB_185_H
29205	choke me;
29206#else
29207#include <db.h>
29208#endif
29209#ifndef DB_VERSION_MAJOR
29210# define DB_VERSION_MAJOR 1
29211#endif
29212#ifndef NULL
29213#define NULL ((void *)0)
29214#endif
29215main()
29216{
29217#if DB_VERSION_MAJOR > 1
29218	char *version;
29219	int major, minor, patch;
29220
29221	version = db_version( &major, &minor, &patch );
29222
29223	if( major != DB_VERSION_MAJOR ||
29224		minor != DB_VERSION_MINOR ||
29225		patch != DB_VERSION_PATCH )
29226	{
29227		printf("Berkeley DB version mismatch\n"
29228			"\theader: %s\n\tlibrary: %s\n",
29229			DB_VERSION_STRING, version);
29230		return 1;
29231	}
29232#endif
29233
29234	return 0;
29235}
29236_ACEOF
29237rm -f conftest$ac_exeext
29238if { (ac_try="$ac_link"
29239case "(($ac_try" in
29240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241  *) ac_try_echo=$ac_try;;
29242esac
29243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244  (eval "$ac_link") 2>&5
29245  ac_status=$?
29246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29248  { (case "(($ac_try" in
29249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29250  *) ac_try_echo=$ac_try;;
29251esac
29252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29253  (eval "$ac_try") 2>&5
29254  ac_status=$?
29255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256  (exit $ac_status); }; }; then
29257  ol_cv_berkeley_db_version=yes
29258else
29259  echo "$as_me: program exited with status $ac_status" >&5
29260echo "$as_me: failed program was:" >&5
29261sed 's/^/| /' conftest.$ac_ext >&5
29262
29263( exit $ac_status )
29264ol_cv_berkeley_db_version=no
29265fi
29266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29267fi
29268
29269
29270
29271	LIBS="$ol_LIBS"
29272
29273fi
29274{ echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29275echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29276
29277	if test $ol_cv_berkeley_db_version = no ; then
29278		{ { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29279echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29280   { (exit 1); exit 1; }; }
29281	fi
29282
29283		{ echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29284echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29285if test "${ol_cv_berkeley_db_thread+set}" = set; then
29286  echo $ECHO_N "(cached) $ECHO_C" >&6
29287else
29288
29289	ol_LIBS="$LIBS"
29290	LIBS="$LTHREAD_LIBS $LIBS"
29291	if test $ol_cv_lib_db != yes ; then
29292		LIBS="$ol_cv_lib_db $LIBS"
29293	fi
29294
29295	if test "$cross_compiling" = yes; then
29296  ol_cv_berkeley_db_thread=cross
29297else
29298  cat >conftest.$ac_ext <<_ACEOF
29299/* confdefs.h.  */
29300_ACEOF
29301cat confdefs.h >>conftest.$ac_ext
29302cat >>conftest.$ac_ext <<_ACEOF
29303/* end confdefs.h.  */
29304
29305#ifdef HAVE_DB_185_H
29306	choke me;
29307#else
29308#include <db.h>
29309#endif
29310#ifndef NULL
29311#define NULL ((void *)0)
29312#endif
29313main()
29314{
29315	int rc;
29316	u_int32_t flags = DB_CREATE |
29317#ifdef DB_PRIVATE
29318		DB_PRIVATE |
29319#endif
29320		DB_THREAD;
29321
29322#if DB_VERSION_MAJOR > 2
29323	DB_ENV *env = NULL;
29324
29325	rc = db_env_create( &env, 0 );
29326
29327	flags |= DB_INIT_MPOOL;
29328#ifdef DB_MPOOL_PRIVATE
29329	flags |= DB_MPOOL_PRIVATE;
29330#endif
29331
29332	if( rc ) {
29333		printf("BerkeleyDB: %s\n", db_strerror(rc) );
29334		return rc;
29335	}
29336
29337#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29338	rc = (env->open)( env, NULL, flags, 0 );
29339#else
29340	rc = (env->open)( env, NULL, NULL, flags, 0 );
29341#endif
29342
29343	if ( rc == 0 ) {
29344		rc = env->close( env, 0 );
29345	}
29346
29347	if( rc ) {
29348		printf("BerkeleyDB: %s\n", db_strerror(rc) );
29349		return rc;
29350	}
29351
29352#else
29353	DB_ENV env;
29354	memset( &env, '\0', sizeof(env) );
29355
29356	rc = db_appinit( NULL, NULL, &env, flags );
29357
29358	if( rc == 0 ) {
29359		db_appexit( &env );
29360	}
29361
29362	unlink("__db_mpool.share");
29363	unlink("__db_lock.share");
29364#endif
29365
29366	return rc;
29367}
29368_ACEOF
29369rm -f conftest$ac_exeext
29370if { (ac_try="$ac_link"
29371case "(($ac_try" in
29372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29373  *) ac_try_echo=$ac_try;;
29374esac
29375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29376  (eval "$ac_link") 2>&5
29377  ac_status=$?
29378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29380  { (case "(($ac_try" in
29381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29382  *) ac_try_echo=$ac_try;;
29383esac
29384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29385  (eval "$ac_try") 2>&5
29386  ac_status=$?
29387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388  (exit $ac_status); }; }; then
29389  ol_cv_berkeley_db_thread=yes
29390else
29391  echo "$as_me: program exited with status $ac_status" >&5
29392echo "$as_me: failed program was:" >&5
29393sed 's/^/| /' conftest.$ac_ext >&5
29394
29395( exit $ac_status )
29396ol_cv_berkeley_db_thread=no
29397fi
29398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29399fi
29400
29401
29402
29403	LIBS="$ol_LIBS"
29404
29405fi
29406{ echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29407echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29408
29409	if test $ol_cv_berkeley_db_thread != no ; then
29410
29411cat >>confdefs.h <<\_ACEOF
29412#define HAVE_BERKELEY_DB_THREAD 1
29413_ACEOF
29414
29415	fi
29416
29417	fi
29418fi
29419
29420
29421	if test $ol_cv_berkeley_db = no ; then
29422		{ { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29423echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29424   { (exit 1); exit 1; }; }
29425	fi
29426
29427
29428cat >>confdefs.h <<\_ACEOF
29429#define HAVE_BERKELEY_DB 1
29430_ACEOF
29431
29432
29433			if test $ol_cv_lib_db != yes ; then
29434		BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29435	fi
29436
29437	{ echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
29438echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
29439if test "${ol_cv_bdb_compat+set}" = set; then
29440  echo $ECHO_N "(cached) $ECHO_C" >&6
29441else
29442
29443	cat >conftest.$ac_ext <<_ACEOF
29444/* confdefs.h.  */
29445_ACEOF
29446cat confdefs.h >>conftest.$ac_ext
29447cat >>conftest.$ac_ext <<_ACEOF
29448/* end confdefs.h.  */
29449
29450#include <db.h>
29451
29452 /* this check could be improved */
29453#ifndef DB_VERSION_MAJOR
29454#	define DB_VERSION_MAJOR 1
29455#endif
29456#ifndef DB_VERSION_MINOR
29457#	define DB_VERSION_MINOR 0
29458#endif
29459
29460#define DB_VERSION_MM	((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
29461
29462/* require 4.4 or later */
29463#if DB_VERSION_MM >= 0x0404
29464	__db_version_compat
29465#endif
29466
29467_ACEOF
29468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29469  $EGREP "__db_version_compat" >/dev/null 2>&1; then
29470  ol_cv_bdb_compat=yes
29471else
29472  ol_cv_bdb_compat=no
29473fi
29474rm -f -r conftest*
29475
29476fi
29477{ echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
29478echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
29479
29480
29481	if test $ol_cv_bdb_compat != yes ; then
29482		{ { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
29483echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
29484   { (exit 1); exit 1; }; }
29485	fi
29486
29487	SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29488
29489	ol_link_bdb=yes
29490fi
29491
29492
29493if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29494	BUILD_LIBS_DYNAMIC=shared
29495
29496cat >>confdefs.h <<\_ACEOF
29497#define LDAP_LIBS_DYNAMIC 1
29498_ACEOF
29499
29500	LTSTATIC=""
29501else
29502	BUILD_LIBS_DYNAMIC=static
29503	LTSTATIC="-static"
29504fi
29505
29506if test $ol_enable_wrappers != no ; then
29507
29508for ac_header in tcpd.h
29509do
29510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29512  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29515  echo $ECHO_N "(cached) $ECHO_C" >&6
29516fi
29517ac_res=`eval echo '${'$as_ac_Header'}'`
29518	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29519echo "${ECHO_T}$ac_res" >&6; }
29520else
29521  # Is the header compilable?
29522{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29524cat >conftest.$ac_ext <<_ACEOF
29525/* confdefs.h.  */
29526_ACEOF
29527cat confdefs.h >>conftest.$ac_ext
29528cat >>conftest.$ac_ext <<_ACEOF
29529/* end confdefs.h.  */
29530$ac_includes_default
29531#include <$ac_header>
29532_ACEOF
29533rm -f conftest.$ac_objext
29534if { (ac_try="$ac_compile"
29535case "(($ac_try" in
29536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29537  *) ac_try_echo=$ac_try;;
29538esac
29539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29540  (eval "$ac_compile") 2>conftest.er1
29541  ac_status=$?
29542  grep -v '^ *+' conftest.er1 >conftest.err
29543  rm -f conftest.er1
29544  cat conftest.err >&5
29545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546  (exit $ac_status); } && {
29547	 test -z "$ac_c_werror_flag" ||
29548	 test ! -s conftest.err
29549       } && test -s conftest.$ac_objext; then
29550  ac_header_compiler=yes
29551else
29552  echo "$as_me: failed program was:" >&5
29553sed 's/^/| /' conftest.$ac_ext >&5
29554
29555	ac_header_compiler=no
29556fi
29557
29558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29559{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29560echo "${ECHO_T}$ac_header_compiler" >&6; }
29561
29562# Is the header present?
29563{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29565cat >conftest.$ac_ext <<_ACEOF
29566/* confdefs.h.  */
29567_ACEOF
29568cat confdefs.h >>conftest.$ac_ext
29569cat >>conftest.$ac_ext <<_ACEOF
29570/* end confdefs.h.  */
29571#include <$ac_header>
29572_ACEOF
29573if { (ac_try="$ac_cpp conftest.$ac_ext"
29574case "(($ac_try" in
29575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29576  *) ac_try_echo=$ac_try;;
29577esac
29578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29579  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29580  ac_status=$?
29581  grep -v '^ *+' conftest.er1 >conftest.err
29582  rm -f conftest.er1
29583  cat conftest.err >&5
29584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585  (exit $ac_status); } >/dev/null && {
29586	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29587	 test ! -s conftest.err
29588       }; then
29589  ac_header_preproc=yes
29590else
29591  echo "$as_me: failed program was:" >&5
29592sed 's/^/| /' conftest.$ac_ext >&5
29593
29594  ac_header_preproc=no
29595fi
29596
29597rm -f conftest.err conftest.$ac_ext
29598{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29599echo "${ECHO_T}$ac_header_preproc" >&6; }
29600
29601# So?  What about this header?
29602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29603  yes:no: )
29604    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29605echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29606    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29607echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29608    ac_header_preproc=yes
29609    ;;
29610  no:yes:* )
29611    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29612echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29613    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29614echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29615    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29616echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29617    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29618echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29619    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29621    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29622echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29623    ( cat <<\_ASBOX
29624## --------------------------------------------- ##
29625## Report this to <http://www.openldap.org/its/> ##
29626## --------------------------------------------- ##
29627_ASBOX
29628     ) | sed "s/^/$as_me: WARNING:     /" >&2
29629    ;;
29630esac
29631{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29634  echo $ECHO_N "(cached) $ECHO_C" >&6
29635else
29636  eval "$as_ac_Header=\$ac_header_preproc"
29637fi
29638ac_res=`eval echo '${'$as_ac_Header'}'`
29639	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29640echo "${ECHO_T}$ac_res" >&6; }
29641
29642fi
29643if test `eval echo '${'$as_ac_Header'}'` = yes; then
29644  cat >>confdefs.h <<_ACEOF
29645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29646_ACEOF
29647
29648		{ echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29649echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29650		save_LIBS="$LIBS"
29651		LIBS="$LIBS -lwrap"
29652		cat >conftest.$ac_ext <<_ACEOF
29653/* confdefs.h.  */
29654_ACEOF
29655cat confdefs.h >>conftest.$ac_ext
29656cat >>conftest.$ac_ext <<_ACEOF
29657/* end confdefs.h.  */
29658
29659#include <tcpd.h>
29660int allow_severity = 0;
29661int deny_severity  = 0;
29662
29663struct request_info *req;
29664
29665int
29666main ()
29667{
29668
29669hosts_access(req)
29670
29671  ;
29672  return 0;
29673}
29674_ACEOF
29675rm -f conftest.$ac_objext conftest$ac_exeext
29676if { (ac_try="$ac_link"
29677case "(($ac_try" in
29678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679  *) ac_try_echo=$ac_try;;
29680esac
29681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682  (eval "$ac_link") 2>conftest.er1
29683  ac_status=$?
29684  grep -v '^ *+' conftest.er1 >conftest.err
29685  rm -f conftest.er1
29686  cat conftest.err >&5
29687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688  (exit $ac_status); } && {
29689	 test -z "$ac_c_werror_flag" ||
29690	 test ! -s conftest.err
29691       } && test -s conftest$ac_exeext &&
29692       $as_test_x conftest$ac_exeext; then
29693  { echo "$as_me:$LINENO: result: -lwrap" >&5
29694echo "${ECHO_T}-lwrap" >&6; }
29695		have_wrappers=yes
29696		LIBS="$save_LIBS"
29697else
29698  echo "$as_me: failed program was:" >&5
29699sed 's/^/| /' conftest.$ac_ext >&5
29700
29701
29702				LIBS="$LIBS -lnsl"
29703		cat >conftest.$ac_ext <<_ACEOF
29704/* confdefs.h.  */
29705_ACEOF
29706cat confdefs.h >>conftest.$ac_ext
29707cat >>conftest.$ac_ext <<_ACEOF
29708/* end confdefs.h.  */
29709
29710#include <tcpd.h>
29711int allow_severity = 0;
29712int deny_severity  = 0;
29713
29714struct request_info *req;
29715
29716int
29717main ()
29718{
29719
29720hosts_access(req)
29721
29722  ;
29723  return 0;
29724}
29725_ACEOF
29726rm -f conftest.$ac_objext conftest$ac_exeext
29727if { (ac_try="$ac_link"
29728case "(($ac_try" in
29729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730  *) ac_try_echo=$ac_try;;
29731esac
29732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733  (eval "$ac_link") 2>conftest.er1
29734  ac_status=$?
29735  grep -v '^ *+' conftest.er1 >conftest.err
29736  rm -f conftest.er1
29737  cat conftest.err >&5
29738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739  (exit $ac_status); } && {
29740	 test -z "$ac_c_werror_flag" ||
29741	 test ! -s conftest.err
29742       } && test -s conftest$ac_exeext &&
29743       $as_test_x conftest$ac_exeext; then
29744  { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29745echo "${ECHO_T}-lwrap -lnsl" >&6; }
29746		have_wrappers=yes
29747		LIBS="$save_LIBS -lnsl"
29748else
29749  echo "$as_me: failed program was:" >&5
29750sed 's/^/| /' conftest.$ac_ext >&5
29751
29752
29753		{ echo "$as_me:$LINENO: result: no" >&5
29754echo "${ECHO_T}no" >&6; }
29755		have_wrappers=no
29756		LIBS=$save_LIBS
29757fi
29758
29759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29760      conftest$ac_exeext conftest.$ac_ext
29761fi
29762
29763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29764      conftest$ac_exeext conftest.$ac_ext
29765else
29766  have_wrappers=no
29767fi
29768
29769done
29770
29771
29772	if test $have_wrappers = yes ; then
29773
29774cat >>confdefs.h <<\_ACEOF
29775#define HAVE_TCPD 1
29776_ACEOF
29777
29778		WRAP_LIBS="-lwrap"
29779	elif test $ol_enable_wrappers = yes ; then
29780		{ { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29781echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29782   { (exit 1); exit 1; }; }
29783	else
29784		{ echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29785echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29786		WRAP_LIBS=""
29787	fi
29788fi
29789
29790if test $ol_enable_syslog != no ; then
29791	{ echo "$as_me:$LINENO: checking for openlog" >&5
29792echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29793if test "${ac_cv_func_openlog+set}" = set; then
29794  echo $ECHO_N "(cached) $ECHO_C" >&6
29795else
29796  cat >conftest.$ac_ext <<_ACEOF
29797/* confdefs.h.  */
29798_ACEOF
29799cat confdefs.h >>conftest.$ac_ext
29800cat >>conftest.$ac_ext <<_ACEOF
29801/* end confdefs.h.  */
29802/* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29803   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29804#define openlog innocuous_openlog
29805
29806/* System header to define __stub macros and hopefully few prototypes,
29807    which can conflict with char openlog (); below.
29808    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29809    <limits.h> exists even on freestanding compilers.  */
29810
29811#ifdef __STDC__
29812# include <limits.h>
29813#else
29814# include <assert.h>
29815#endif
29816
29817#undef openlog
29818
29819/* Override any GCC internal prototype to avoid an error.
29820   Use char because int might match the return type of a GCC
29821   builtin and then its argument prototype would still apply.  */
29822#ifdef __cplusplus
29823extern "C"
29824#endif
29825char openlog ();
29826/* The GNU C library defines this for functions which it implements
29827    to always fail with ENOSYS.  Some functions are actually named
29828    something starting with __ and the normal name is an alias.  */
29829#if defined __stub_openlog || defined __stub___openlog
29830choke me
29831#endif
29832
29833int
29834main ()
29835{
29836return openlog ();
29837  ;
29838  return 0;
29839}
29840_ACEOF
29841rm -f conftest.$ac_objext conftest$ac_exeext
29842if { (ac_try="$ac_link"
29843case "(($ac_try" in
29844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845  *) ac_try_echo=$ac_try;;
29846esac
29847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848  (eval "$ac_link") 2>conftest.er1
29849  ac_status=$?
29850  grep -v '^ *+' conftest.er1 >conftest.err
29851  rm -f conftest.er1
29852  cat conftest.err >&5
29853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854  (exit $ac_status); } && {
29855	 test -z "$ac_c_werror_flag" ||
29856	 test ! -s conftest.err
29857       } && test -s conftest$ac_exeext &&
29858       $as_test_x conftest$ac_exeext; then
29859  ac_cv_func_openlog=yes
29860else
29861  echo "$as_me: failed program was:" >&5
29862sed 's/^/| /' conftest.$ac_ext >&5
29863
29864	ac_cv_func_openlog=no
29865fi
29866
29867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29868      conftest$ac_exeext conftest.$ac_ext
29869fi
29870{ echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29871echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29872
29873	if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29874		{ { echo "$as_me:$LINENO: error: could not find syslog" >&5
29875echo "$as_me: error: could not find syslog" >&2;}
29876   { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29877	fi
29878	ol_enable_syslog=$ac_cv_func_openlog
29879fi
29880
29881ol_link_sql=no
29882if test $ol_enable_sql != no ; then
29883
29884
29885for ac_header in sql.h sqlext.h
29886do
29887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29889  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29892  echo $ECHO_N "(cached) $ECHO_C" >&6
29893fi
29894ac_res=`eval echo '${'$as_ac_Header'}'`
29895	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29896echo "${ECHO_T}$ac_res" >&6; }
29897else
29898  # Is the header compilable?
29899{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29901cat >conftest.$ac_ext <<_ACEOF
29902/* confdefs.h.  */
29903_ACEOF
29904cat confdefs.h >>conftest.$ac_ext
29905cat >>conftest.$ac_ext <<_ACEOF
29906/* end confdefs.h.  */
29907$ac_includes_default
29908#include <$ac_header>
29909_ACEOF
29910rm -f conftest.$ac_objext
29911if { (ac_try="$ac_compile"
29912case "(($ac_try" in
29913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914  *) ac_try_echo=$ac_try;;
29915esac
29916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917  (eval "$ac_compile") 2>conftest.er1
29918  ac_status=$?
29919  grep -v '^ *+' conftest.er1 >conftest.err
29920  rm -f conftest.er1
29921  cat conftest.err >&5
29922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923  (exit $ac_status); } && {
29924	 test -z "$ac_c_werror_flag" ||
29925	 test ! -s conftest.err
29926       } && test -s conftest.$ac_objext; then
29927  ac_header_compiler=yes
29928else
29929  echo "$as_me: failed program was:" >&5
29930sed 's/^/| /' conftest.$ac_ext >&5
29931
29932	ac_header_compiler=no
29933fi
29934
29935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29936{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29937echo "${ECHO_T}$ac_header_compiler" >&6; }
29938
29939# Is the header present?
29940{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29941echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29942cat >conftest.$ac_ext <<_ACEOF
29943/* confdefs.h.  */
29944_ACEOF
29945cat confdefs.h >>conftest.$ac_ext
29946cat >>conftest.$ac_ext <<_ACEOF
29947/* end confdefs.h.  */
29948#include <$ac_header>
29949_ACEOF
29950if { (ac_try="$ac_cpp conftest.$ac_ext"
29951case "(($ac_try" in
29952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29953  *) ac_try_echo=$ac_try;;
29954esac
29955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29956  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29957  ac_status=$?
29958  grep -v '^ *+' conftest.er1 >conftest.err
29959  rm -f conftest.er1
29960  cat conftest.err >&5
29961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962  (exit $ac_status); } >/dev/null && {
29963	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29964	 test ! -s conftest.err
29965       }; then
29966  ac_header_preproc=yes
29967else
29968  echo "$as_me: failed program was:" >&5
29969sed 's/^/| /' conftest.$ac_ext >&5
29970
29971  ac_header_preproc=no
29972fi
29973
29974rm -f conftest.err conftest.$ac_ext
29975{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29976echo "${ECHO_T}$ac_header_preproc" >&6; }
29977
29978# So?  What about this header?
29979case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29980  yes:no: )
29981    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29982echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29983    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29984echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29985    ac_header_preproc=yes
29986    ;;
29987  no:yes:* )
29988    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29989echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29990    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29991echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29992    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29993echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29994    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29995echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29996    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29997echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29998    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29999echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30000    ( cat <<\_ASBOX
30001## --------------------------------------------- ##
30002## Report this to <http://www.openldap.org/its/> ##
30003## --------------------------------------------- ##
30004_ASBOX
30005     ) | sed "s/^/$as_me: WARNING:     /" >&2
30006    ;;
30007esac
30008{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30011  echo $ECHO_N "(cached) $ECHO_C" >&6
30012else
30013  eval "$as_ac_Header=\$ac_header_preproc"
30014fi
30015ac_res=`eval echo '${'$as_ac_Header'}'`
30016	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30017echo "${ECHO_T}$ac_res" >&6; }
30018
30019fi
30020if test `eval echo '${'$as_ac_Header'}'` = yes; then
30021  cat >>confdefs.h <<_ACEOF
30022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30023_ACEOF
30024
30025else
30026
30027		{ { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30028echo "$as_me: error: could not locate SQL headers" >&2;}
30029   { (exit 1); exit 1; }; }
30030
30031fi
30032
30033done
30034
30035
30036	sql_LIBS="$LIBS"
30037	LIBS="$LTHREAD_LIBS"
30038
30039	if test $ol_with_odbc = auto ; then
30040		ol_with_odbc="iodbc unixodbc odbc32"
30041	fi
30042
30043	for odbc in $ol_with_odbc ; do
30044		if test $ol_link_sql = no ; then
30045			case $odbc in
30046			iodbc)
30047				{ echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30048echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
30049if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30050  echo $ECHO_N "(cached) $ECHO_C" >&6
30051else
30052  ac_check_lib_save_LIBS=$LIBS
30053LIBS="-liodbc  $LIBS"
30054cat >conftest.$ac_ext <<_ACEOF
30055/* confdefs.h.  */
30056_ACEOF
30057cat confdefs.h >>conftest.$ac_ext
30058cat >>conftest.$ac_ext <<_ACEOF
30059/* end confdefs.h.  */
30060
30061/* Override any GCC internal prototype to avoid an error.
30062   Use char because int might match the return type of a GCC
30063   builtin and then its argument prototype would still apply.  */
30064#ifdef __cplusplus
30065extern "C"
30066#endif
30067char SQLDriverConnect ();
30068int
30069main ()
30070{
30071return SQLDriverConnect ();
30072  ;
30073  return 0;
30074}
30075_ACEOF
30076rm -f conftest.$ac_objext conftest$ac_exeext
30077if { (ac_try="$ac_link"
30078case "(($ac_try" in
30079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30080  *) ac_try_echo=$ac_try;;
30081esac
30082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30083  (eval "$ac_link") 2>conftest.er1
30084  ac_status=$?
30085  grep -v '^ *+' conftest.er1 >conftest.err
30086  rm -f conftest.er1
30087  cat conftest.err >&5
30088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089  (exit $ac_status); } && {
30090	 test -z "$ac_c_werror_flag" ||
30091	 test ! -s conftest.err
30092       } && test -s conftest$ac_exeext &&
30093       $as_test_x conftest$ac_exeext; then
30094  ac_cv_lib_iodbc_SQLDriverConnect=yes
30095else
30096  echo "$as_me: failed program was:" >&5
30097sed 's/^/| /' conftest.$ac_ext >&5
30098
30099	ac_cv_lib_iodbc_SQLDriverConnect=no
30100fi
30101
30102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30103      conftest$ac_exeext conftest.$ac_ext
30104LIBS=$ac_check_lib_save_LIBS
30105fi
30106{ echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30107echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
30108if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30109  have_iodbc=yes
30110else
30111  have_iodbc=no
30112fi
30113
30114				if test $have_iodbc = yes ; then
30115					ol_link_sql="-liodbc"
30116				fi
30117				;;
30118
30119			unixodbc)
30120				{ echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30121echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
30122if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30123  echo $ECHO_N "(cached) $ECHO_C" >&6
30124else
30125  ac_check_lib_save_LIBS=$LIBS
30126LIBS="-lodbc  $LIBS"
30127cat >conftest.$ac_ext <<_ACEOF
30128/* confdefs.h.  */
30129_ACEOF
30130cat confdefs.h >>conftest.$ac_ext
30131cat >>conftest.$ac_ext <<_ACEOF
30132/* end confdefs.h.  */
30133
30134/* Override any GCC internal prototype to avoid an error.
30135   Use char because int might match the return type of a GCC
30136   builtin and then its argument prototype would still apply.  */
30137#ifdef __cplusplus
30138extern "C"
30139#endif
30140char SQLDriverConnect ();
30141int
30142main ()
30143{
30144return SQLDriverConnect ();
30145  ;
30146  return 0;
30147}
30148_ACEOF
30149rm -f conftest.$ac_objext conftest$ac_exeext
30150if { (ac_try="$ac_link"
30151case "(($ac_try" in
30152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30153  *) ac_try_echo=$ac_try;;
30154esac
30155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30156  (eval "$ac_link") 2>conftest.er1
30157  ac_status=$?
30158  grep -v '^ *+' conftest.er1 >conftest.err
30159  rm -f conftest.er1
30160  cat conftest.err >&5
30161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162  (exit $ac_status); } && {
30163	 test -z "$ac_c_werror_flag" ||
30164	 test ! -s conftest.err
30165       } && test -s conftest$ac_exeext &&
30166       $as_test_x conftest$ac_exeext; then
30167  ac_cv_lib_odbc_SQLDriverConnect=yes
30168else
30169  echo "$as_me: failed program was:" >&5
30170sed 's/^/| /' conftest.$ac_ext >&5
30171
30172	ac_cv_lib_odbc_SQLDriverConnect=no
30173fi
30174
30175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30176      conftest$ac_exeext conftest.$ac_ext
30177LIBS=$ac_check_lib_save_LIBS
30178fi
30179{ echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30180echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30181if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30182  have_odbc=yes
30183else
30184  have_odbc=no
30185fi
30186
30187				if test $have_odbc = yes ; then
30188					ol_link_sql="-lodbc"
30189				fi
30190				;;
30191
30192			odbc32)
30193				{ echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30194echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30195if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30196  echo $ECHO_N "(cached) $ECHO_C" >&6
30197else
30198  ac_check_lib_save_LIBS=$LIBS
30199LIBS="-lodbc32  $LIBS"
30200cat >conftest.$ac_ext <<_ACEOF
30201/* confdefs.h.  */
30202_ACEOF
30203cat confdefs.h >>conftest.$ac_ext
30204cat >>conftest.$ac_ext <<_ACEOF
30205/* end confdefs.h.  */
30206
30207/* Override any GCC internal prototype to avoid an error.
30208   Use char because int might match the return type of a GCC
30209   builtin and then its argument prototype would still apply.  */
30210#ifdef __cplusplus
30211extern "C"
30212#endif
30213char SQLDriverConnect ();
30214int
30215main ()
30216{
30217return SQLDriverConnect ();
30218  ;
30219  return 0;
30220}
30221_ACEOF
30222rm -f conftest.$ac_objext conftest$ac_exeext
30223if { (ac_try="$ac_link"
30224case "(($ac_try" in
30225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226  *) ac_try_echo=$ac_try;;
30227esac
30228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229  (eval "$ac_link") 2>conftest.er1
30230  ac_status=$?
30231  grep -v '^ *+' conftest.er1 >conftest.err
30232  rm -f conftest.er1
30233  cat conftest.err >&5
30234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235  (exit $ac_status); } && {
30236	 test -z "$ac_c_werror_flag" ||
30237	 test ! -s conftest.err
30238       } && test -s conftest$ac_exeext &&
30239       $as_test_x conftest$ac_exeext; then
30240  ac_cv_lib_odbc32_SQLDriverConnect=yes
30241else
30242  echo "$as_me: failed program was:" >&5
30243sed 's/^/| /' conftest.$ac_ext >&5
30244
30245	ac_cv_lib_odbc32_SQLDriverConnect=no
30246fi
30247
30248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30249      conftest$ac_exeext conftest.$ac_ext
30250LIBS=$ac_check_lib_save_LIBS
30251fi
30252{ echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30253echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30254if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30255  have_odbc32=yes
30256else
30257  have_odbc32=no
30258fi
30259
30260				if test $have_odbc32 = yes ; then
30261					ol_link_sql="-lodbc32"
30262				fi
30263				;;
30264
30265			*)
30266				{ { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30267echo "$as_me: error: unknown ODBC library" >&2;}
30268   { (exit 1); exit 1; }; }
30269				;;
30270			esac
30271		fi
30272	done
30273
30274	LIBS="$sql_LIBS"
30275
30276	if test $ol_link_sql != no ; then
30277		SLAPD_SQL_LIBS="$ol_link_sql"
30278
30279	elif test $ol_enable_sql != auto ; then
30280		{ { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30281echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30282   { (exit 1); exit 1; }; }
30283	fi
30284fi
30285
30286ol_icu=no
30287
30288for ac_header in unicode/utypes.h
30289do
30290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30292  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30295  echo $ECHO_N "(cached) $ECHO_C" >&6
30296fi
30297ac_res=`eval echo '${'$as_ac_Header'}'`
30298	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30299echo "${ECHO_T}$ac_res" >&6; }
30300else
30301  # Is the header compilable?
30302{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30303echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30304cat >conftest.$ac_ext <<_ACEOF
30305/* confdefs.h.  */
30306_ACEOF
30307cat confdefs.h >>conftest.$ac_ext
30308cat >>conftest.$ac_ext <<_ACEOF
30309/* end confdefs.h.  */
30310$ac_includes_default
30311#include <$ac_header>
30312_ACEOF
30313rm -f conftest.$ac_objext
30314if { (ac_try="$ac_compile"
30315case "(($ac_try" in
30316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30317  *) ac_try_echo=$ac_try;;
30318esac
30319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30320  (eval "$ac_compile") 2>conftest.er1
30321  ac_status=$?
30322  grep -v '^ *+' conftest.er1 >conftest.err
30323  rm -f conftest.er1
30324  cat conftest.err >&5
30325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326  (exit $ac_status); } && {
30327	 test -z "$ac_c_werror_flag" ||
30328	 test ! -s conftest.err
30329       } && test -s conftest.$ac_objext; then
30330  ac_header_compiler=yes
30331else
30332  echo "$as_me: failed program was:" >&5
30333sed 's/^/| /' conftest.$ac_ext >&5
30334
30335	ac_header_compiler=no
30336fi
30337
30338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30339{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30340echo "${ECHO_T}$ac_header_compiler" >&6; }
30341
30342# Is the header present?
30343{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30345cat >conftest.$ac_ext <<_ACEOF
30346/* confdefs.h.  */
30347_ACEOF
30348cat confdefs.h >>conftest.$ac_ext
30349cat >>conftest.$ac_ext <<_ACEOF
30350/* end confdefs.h.  */
30351#include <$ac_header>
30352_ACEOF
30353if { (ac_try="$ac_cpp conftest.$ac_ext"
30354case "(($ac_try" in
30355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30356  *) ac_try_echo=$ac_try;;
30357esac
30358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30359  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30360  ac_status=$?
30361  grep -v '^ *+' conftest.er1 >conftest.err
30362  rm -f conftest.er1
30363  cat conftest.err >&5
30364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365  (exit $ac_status); } >/dev/null && {
30366	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30367	 test ! -s conftest.err
30368       }; then
30369  ac_header_preproc=yes
30370else
30371  echo "$as_me: failed program was:" >&5
30372sed 's/^/| /' conftest.$ac_ext >&5
30373
30374  ac_header_preproc=no
30375fi
30376
30377rm -f conftest.err conftest.$ac_ext
30378{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30379echo "${ECHO_T}$ac_header_preproc" >&6; }
30380
30381# So?  What about this header?
30382case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30383  yes:no: )
30384    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30386    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30387echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30388    ac_header_preproc=yes
30389    ;;
30390  no:yes:* )
30391    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30392echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30393    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30394echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30395    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30396echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30397    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30398echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30399    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30401    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30402echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30403    ( cat <<\_ASBOX
30404## --------------------------------------------- ##
30405## Report this to <http://www.openldap.org/its/> ##
30406## --------------------------------------------- ##
30407_ASBOX
30408     ) | sed "s/^/$as_me: WARNING:     /" >&2
30409    ;;
30410esac
30411{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30414  echo $ECHO_N "(cached) $ECHO_C" >&6
30415else
30416  eval "$as_ac_Header=\$ac_header_preproc"
30417fi
30418ac_res=`eval echo '${'$as_ac_Header'}'`
30419	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30420echo "${ECHO_T}$ac_res" >&6; }
30421
30422fi
30423if test `eval echo '${'$as_ac_Header'}'` = yes; then
30424  cat >>confdefs.h <<_ACEOF
30425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30426_ACEOF
30427
30428fi
30429
30430done
30431
30432if test $ac_cv_header_unicode_utypes_h = yes ; then
30433		OL_ICULIBS="-licuuc -licudata"
30434
30435	{ echo "$as_me:$LINENO: checking for ICU libraries" >&5
30436echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30437if test "${ol_cv_lib_icu+set}" = set; then
30438  echo $ECHO_N "(cached) $ECHO_C" >&6
30439else
30440
30441		ol_LIBS="$LIBS"
30442		LIBS="$OL_ICULIBS $LIBS"
30443		cat >conftest.$ac_ext <<_ACEOF
30444/* confdefs.h.  */
30445_ACEOF
30446cat confdefs.h >>conftest.$ac_ext
30447cat >>conftest.$ac_ext <<_ACEOF
30448/* end confdefs.h.  */
30449
30450#include <unicode/utypes.h>
30451
30452int
30453main ()
30454{
30455
30456(void) u_errorName(0);
30457
30458  ;
30459  return 0;
30460}
30461_ACEOF
30462rm -f conftest.$ac_objext conftest$ac_exeext
30463if { (ac_try="$ac_link"
30464case "(($ac_try" in
30465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30466  *) ac_try_echo=$ac_try;;
30467esac
30468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30469  (eval "$ac_link") 2>conftest.er1
30470  ac_status=$?
30471  grep -v '^ *+' conftest.er1 >conftest.err
30472  rm -f conftest.er1
30473  cat conftest.err >&5
30474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475  (exit $ac_status); } && {
30476	 test -z "$ac_c_werror_flag" ||
30477	 test ! -s conftest.err
30478       } && test -s conftest$ac_exeext &&
30479       $as_test_x conftest$ac_exeext; then
30480  ol_cv_lib_icu=yes
30481else
30482  echo "$as_me: failed program was:" >&5
30483sed 's/^/| /' conftest.$ac_ext >&5
30484
30485	ol_cv_lib_icu=no
30486fi
30487
30488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30489      conftest$ac_exeext conftest.$ac_ext
30490		LIBS="$ol_LIBS"
30491
30492fi
30493{ echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30494echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30495
30496	if test $ol_cv_lib_icu != no ; then
30497		ol_icu="$OL_ICULIBS"
30498
30499cat >>confdefs.h <<\_ACEOF
30500#define HAVE_ICU 1
30501_ACEOF
30502
30503	fi
30504fi
30505
30506if test "$ol_icu" = no ; then
30507	{ echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30508echo "$as_me: WARNING: ICU not available" >&2;}
30509else
30510	ICU_LIBS="$ol_icu"
30511fi
30512WITH_SASL=no
30513ol_link_sasl=no
30514ol_link_spasswd=no
30515if test $ol_with_cyrus_sasl != no ; then
30516
30517
30518for ac_header in sasl/sasl.h sasl.h
30519do
30520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30522  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30525  echo $ECHO_N "(cached) $ECHO_C" >&6
30526fi
30527ac_res=`eval echo '${'$as_ac_Header'}'`
30528	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30529echo "${ECHO_T}$ac_res" >&6; }
30530else
30531  # Is the header compilable?
30532{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30534cat >conftest.$ac_ext <<_ACEOF
30535/* confdefs.h.  */
30536_ACEOF
30537cat confdefs.h >>conftest.$ac_ext
30538cat >>conftest.$ac_ext <<_ACEOF
30539/* end confdefs.h.  */
30540$ac_includes_default
30541#include <$ac_header>
30542_ACEOF
30543rm -f conftest.$ac_objext
30544if { (ac_try="$ac_compile"
30545case "(($ac_try" in
30546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30547  *) ac_try_echo=$ac_try;;
30548esac
30549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30550  (eval "$ac_compile") 2>conftest.er1
30551  ac_status=$?
30552  grep -v '^ *+' conftest.er1 >conftest.err
30553  rm -f conftest.er1
30554  cat conftest.err >&5
30555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556  (exit $ac_status); } && {
30557	 test -z "$ac_c_werror_flag" ||
30558	 test ! -s conftest.err
30559       } && test -s conftest.$ac_objext; then
30560  ac_header_compiler=yes
30561else
30562  echo "$as_me: failed program was:" >&5
30563sed 's/^/| /' conftest.$ac_ext >&5
30564
30565	ac_header_compiler=no
30566fi
30567
30568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30570echo "${ECHO_T}$ac_header_compiler" >&6; }
30571
30572# Is the header present?
30573{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30575cat >conftest.$ac_ext <<_ACEOF
30576/* confdefs.h.  */
30577_ACEOF
30578cat confdefs.h >>conftest.$ac_ext
30579cat >>conftest.$ac_ext <<_ACEOF
30580/* end confdefs.h.  */
30581#include <$ac_header>
30582_ACEOF
30583if { (ac_try="$ac_cpp conftest.$ac_ext"
30584case "(($ac_try" in
30585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586  *) ac_try_echo=$ac_try;;
30587esac
30588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30590  ac_status=$?
30591  grep -v '^ *+' conftest.er1 >conftest.err
30592  rm -f conftest.er1
30593  cat conftest.err >&5
30594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595  (exit $ac_status); } >/dev/null && {
30596	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30597	 test ! -s conftest.err
30598       }; then
30599  ac_header_preproc=yes
30600else
30601  echo "$as_me: failed program was:" >&5
30602sed 's/^/| /' conftest.$ac_ext >&5
30603
30604  ac_header_preproc=no
30605fi
30606
30607rm -f conftest.err conftest.$ac_ext
30608{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30609echo "${ECHO_T}$ac_header_preproc" >&6; }
30610
30611# So?  What about this header?
30612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30613  yes:no: )
30614    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30616    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30618    ac_header_preproc=yes
30619    ;;
30620  no:yes:* )
30621    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30623    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30624echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30625    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30627    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30628echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30629    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30631    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30633    ( cat <<\_ASBOX
30634## --------------------------------------------- ##
30635## Report this to <http://www.openldap.org/its/> ##
30636## --------------------------------------------- ##
30637_ASBOX
30638     ) | sed "s/^/$as_me: WARNING:     /" >&2
30639    ;;
30640esac
30641{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30644  echo $ECHO_N "(cached) $ECHO_C" >&6
30645else
30646  eval "$as_ac_Header=\$ac_header_preproc"
30647fi
30648ac_res=`eval echo '${'$as_ac_Header'}'`
30649	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30650echo "${ECHO_T}$ac_res" >&6; }
30651
30652fi
30653if test `eval echo '${'$as_ac_Header'}'` = yes; then
30654  cat >>confdefs.h <<_ACEOF
30655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30656_ACEOF
30657
30658fi
30659
30660done
30661
30662
30663	if test $ac_cv_header_sasl_sasl_h = yes ||
30664	   test $ac_cv_header_sasl_h = yes; then
30665		{ echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30666echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30667if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30668  echo $ECHO_N "(cached) $ECHO_C" >&6
30669else
30670  ac_check_lib_save_LIBS=$LIBS
30671LIBS="-lsasl2  $LIBS"
30672cat >conftest.$ac_ext <<_ACEOF
30673/* confdefs.h.  */
30674_ACEOF
30675cat confdefs.h >>conftest.$ac_ext
30676cat >>conftest.$ac_ext <<_ACEOF
30677/* end confdefs.h.  */
30678
30679/* Override any GCC internal prototype to avoid an error.
30680   Use char because int might match the return type of a GCC
30681   builtin and then its argument prototype would still apply.  */
30682#ifdef __cplusplus
30683extern "C"
30684#endif
30685char sasl_client_init ();
30686int
30687main ()
30688{
30689return sasl_client_init ();
30690  ;
30691  return 0;
30692}
30693_ACEOF
30694rm -f conftest.$ac_objext conftest$ac_exeext
30695if { (ac_try="$ac_link"
30696case "(($ac_try" in
30697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698  *) ac_try_echo=$ac_try;;
30699esac
30700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30701  (eval "$ac_link") 2>conftest.er1
30702  ac_status=$?
30703  grep -v '^ *+' conftest.er1 >conftest.err
30704  rm -f conftest.er1
30705  cat conftest.err >&5
30706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707  (exit $ac_status); } && {
30708	 test -z "$ac_c_werror_flag" ||
30709	 test ! -s conftest.err
30710       } && test -s conftest$ac_exeext &&
30711       $as_test_x conftest$ac_exeext; then
30712  ac_cv_lib_sasl2_sasl_client_init=yes
30713else
30714  echo "$as_me: failed program was:" >&5
30715sed 's/^/| /' conftest.$ac_ext >&5
30716
30717	ac_cv_lib_sasl2_sasl_client_init=no
30718fi
30719
30720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30721      conftest$ac_exeext conftest.$ac_ext
30722LIBS=$ac_check_lib_save_LIBS
30723fi
30724{ echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30725echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30726if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30727  ol_link_sasl="-lsasl2"
30728else
30729  { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30730echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30731if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30732  echo $ECHO_N "(cached) $ECHO_C" >&6
30733else
30734  ac_check_lib_save_LIBS=$LIBS
30735LIBS="-lsasl  $LIBS"
30736cat >conftest.$ac_ext <<_ACEOF
30737/* confdefs.h.  */
30738_ACEOF
30739cat confdefs.h >>conftest.$ac_ext
30740cat >>conftest.$ac_ext <<_ACEOF
30741/* end confdefs.h.  */
30742
30743/* Override any GCC internal prototype to avoid an error.
30744   Use char because int might match the return type of a GCC
30745   builtin and then its argument prototype would still apply.  */
30746#ifdef __cplusplus
30747extern "C"
30748#endif
30749char sasl_client_init ();
30750int
30751main ()
30752{
30753return sasl_client_init ();
30754  ;
30755  return 0;
30756}
30757_ACEOF
30758rm -f conftest.$ac_objext conftest$ac_exeext
30759if { (ac_try="$ac_link"
30760case "(($ac_try" in
30761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30762  *) ac_try_echo=$ac_try;;
30763esac
30764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30765  (eval "$ac_link") 2>conftest.er1
30766  ac_status=$?
30767  grep -v '^ *+' conftest.er1 >conftest.err
30768  rm -f conftest.er1
30769  cat conftest.err >&5
30770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771  (exit $ac_status); } && {
30772	 test -z "$ac_c_werror_flag" ||
30773	 test ! -s conftest.err
30774       } && test -s conftest$ac_exeext &&
30775       $as_test_x conftest$ac_exeext; then
30776  ac_cv_lib_sasl_sasl_client_init=yes
30777else
30778  echo "$as_me: failed program was:" >&5
30779sed 's/^/| /' conftest.$ac_ext >&5
30780
30781	ac_cv_lib_sasl_sasl_client_init=no
30782fi
30783
30784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30785      conftest$ac_exeext conftest.$ac_ext
30786LIBS=$ac_check_lib_save_LIBS
30787fi
30788{ echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30789echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30790if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30791  ol_link_sasl="-lsasl"
30792fi
30793
30794fi
30795
30796	fi
30797
30798	if test $ol_link_sasl = no ; then
30799		if test $ol_with_cyrus_sasl != auto ; then
30800			{ { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30801echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30802   { (exit 1); exit 1; }; }
30803		else
30804			{ echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30805echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30806			{ echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30807echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30808			if test $ol_link_tls = no ; then
30809				{ echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30810echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30811			fi
30812		fi
30813	else
30814		{ echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30815echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30816if test "${ol_cv_sasl_compat+set}" = set; then
30817  echo $ECHO_N "(cached) $ECHO_C" >&6
30818else
30819
30820	cat >conftest.$ac_ext <<_ACEOF
30821/* confdefs.h.  */
30822_ACEOF
30823cat confdefs.h >>conftest.$ac_ext
30824cat >>conftest.$ac_ext <<_ACEOF
30825/* end confdefs.h.  */
30826
30827#ifdef HAVE_SASL_SASL_H
30828#include <sasl/sasl.h>
30829#else
30830#include <sasl.h>
30831#endif
30832
30833/* Require 2.1.15+ */
30834#if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30835	char *__sasl_compat = "2.2+ or better okay (we guess)";
30836#elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30837	&& SASL_VERSION_STEP >=15
30838	char *__sasl_compat = "2.1.15+ or better okay";
30839#endif
30840
30841_ACEOF
30842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30843  $EGREP "__sasl_compat" >/dev/null 2>&1; then
30844  ol_cv_sasl_compat=yes
30845else
30846  ol_cv_sasl_compat=no
30847fi
30848rm -f -r conftest*
30849
30850fi
30851{ echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30852echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30853
30854		if test $ol_cv_sasl_compat = no ; then
30855			ol_link_sasl=no
30856			{ { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30857echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30858   { (exit 1); exit 1; }; }
30859		fi
30860
30861
30862cat >>confdefs.h <<\_ACEOF
30863#define HAVE_CYRUS_SASL 1
30864_ACEOF
30865
30866		SASL_LIBS="$ol_link_sasl"
30867		if test $ol_enable_spasswd != no ; then
30868			ol_link_spasswd=yes
30869		fi
30870
30871		ac_save_LIBS="$LIBS"
30872		LIBS="$LIBS $ol_link_sasl"
30873		{ echo "$as_me:$LINENO: checking for sasl_version" >&5
30874echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30875if test "${ac_cv_func_sasl_version+set}" = set; then
30876  echo $ECHO_N "(cached) $ECHO_C" >&6
30877else
30878  cat >conftest.$ac_ext <<_ACEOF
30879/* confdefs.h.  */
30880_ACEOF
30881cat confdefs.h >>conftest.$ac_ext
30882cat >>conftest.$ac_ext <<_ACEOF
30883/* end confdefs.h.  */
30884/* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30885   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30886#define sasl_version innocuous_sasl_version
30887
30888/* System header to define __stub macros and hopefully few prototypes,
30889    which can conflict with char sasl_version (); below.
30890    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30891    <limits.h> exists even on freestanding compilers.  */
30892
30893#ifdef __STDC__
30894# include <limits.h>
30895#else
30896# include <assert.h>
30897#endif
30898
30899#undef sasl_version
30900
30901/* Override any GCC internal prototype to avoid an error.
30902   Use char because int might match the return type of a GCC
30903   builtin and then its argument prototype would still apply.  */
30904#ifdef __cplusplus
30905extern "C"
30906#endif
30907char sasl_version ();
30908/* The GNU C library defines this for functions which it implements
30909    to always fail with ENOSYS.  Some functions are actually named
30910    something starting with __ and the normal name is an alias.  */
30911#if defined __stub_sasl_version || defined __stub___sasl_version
30912choke me
30913#endif
30914
30915int
30916main ()
30917{
30918return sasl_version ();
30919  ;
30920  return 0;
30921}
30922_ACEOF
30923rm -f conftest.$ac_objext conftest$ac_exeext
30924if { (ac_try="$ac_link"
30925case "(($ac_try" in
30926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30927  *) ac_try_echo=$ac_try;;
30928esac
30929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30930  (eval "$ac_link") 2>conftest.er1
30931  ac_status=$?
30932  grep -v '^ *+' conftest.er1 >conftest.err
30933  rm -f conftest.er1
30934  cat conftest.err >&5
30935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936  (exit $ac_status); } && {
30937	 test -z "$ac_c_werror_flag" ||
30938	 test ! -s conftest.err
30939       } && test -s conftest$ac_exeext &&
30940       $as_test_x conftest$ac_exeext; then
30941  ac_cv_func_sasl_version=yes
30942else
30943  echo "$as_me: failed program was:" >&5
30944sed 's/^/| /' conftest.$ac_ext >&5
30945
30946	ac_cv_func_sasl_version=no
30947fi
30948
30949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30950      conftest$ac_exeext conftest.$ac_ext
30951fi
30952{ echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30953echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30954if test $ac_cv_func_sasl_version = yes; then
30955
30956cat >>confdefs.h <<\_ACEOF
30957#define HAVE_SASL_VERSION 1
30958_ACEOF
30959
30960fi
30961
30962		LIBS="$ac_save_LIBS"
30963
30964		WITH_SASL=yes
30965	fi
30966
30967else
30968	{ echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30969echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30970	if test $ol_link_tls = no ; then
30971		{ echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30972echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30973	fi
30974fi
30975
30976if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30977	dev=no
30978	if test -r /dev/urandom ; then
30979		dev="/dev/urandom";
30980	elif test -r /idev/urandom ; then
30981		dev="/idev/urandom";
30982	elif test -r /dev/srandom ; then
30983		dev="/dev/srandom";
30984	elif test -r /dev/random ; then
30985		dev="/dev/random";
30986	elif test -r /idev/random ; then
30987		dev="/idev/random";
30988	fi
30989
30990	if test $dev != no ; then
30991
30992cat >>confdefs.h <<_ACEOF
30993#define URANDOM_DEVICE "$dev"
30994_ACEOF
30995
30996	fi
30997fi
30998
30999ol_link_fetch=no
31000if test $ol_with_fetch != no ; then
31001	ol_LIBS=$LIBS
31002LIBS="-lfetch -lcom_err $LIBS"
31003{ echo "$as_me:$LINENO: checking fetch(3) library" >&5
31004echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31005if test "${ol_cv_lib_fetch+set}" = set; then
31006  echo $ECHO_N "(cached) $ECHO_C" >&6
31007else
31008
31009	cat >conftest.$ac_ext <<_ACEOF
31010/* confdefs.h.  */
31011_ACEOF
31012cat confdefs.h >>conftest.$ac_ext
31013cat >>conftest.$ac_ext <<_ACEOF
31014/* end confdefs.h.  */
31015
31016#ifdef HAVE_SYS_PARAM_H
31017#include <sys/param.h>
31018#endif
31019#include <stdio.h>
31020#include <fetch.h>
31021int
31022main ()
31023{
31024struct url *u = fetchParseURL("file:///");
31025  ;
31026  return 0;
31027}
31028_ACEOF
31029rm -f conftest.$ac_objext conftest$ac_exeext
31030if { (ac_try="$ac_link"
31031case "(($ac_try" in
31032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31033  *) ac_try_echo=$ac_try;;
31034esac
31035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31036  (eval "$ac_link") 2>conftest.er1
31037  ac_status=$?
31038  grep -v '^ *+' conftest.er1 >conftest.err
31039  rm -f conftest.er1
31040  cat conftest.err >&5
31041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042  (exit $ac_status); } && {
31043	 test -z "$ac_c_werror_flag" ||
31044	 test ! -s conftest.err
31045       } && test -s conftest$ac_exeext &&
31046       $as_test_x conftest$ac_exeext; then
31047  ol_cv_lib_fetch=yes
31048else
31049  echo "$as_me: failed program was:" >&5
31050sed 's/^/| /' conftest.$ac_ext >&5
31051
31052	ol_cv_lib_fetch=no
31053fi
31054
31055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31056      conftest$ac_exeext conftest.$ac_ext
31057fi
31058{ echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31059echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31060LIBS=$ol_LIBS
31061if test $ol_cv_lib_fetch != no ; then
31062	ol_link_fetch="-lfetch -lcom_err"
31063
31064cat >>confdefs.h <<\_ACEOF
31065#define HAVE_FETCH 1
31066_ACEOF
31067
31068fi
31069
31070
31071	if test $ol_cv_lib_fetch != no ; then
31072		LIBS="$LIBS $ol_link_fetch"
31073		ol_link_fetch=freebsd
31074
31075	elif test $ol_with_fetch != auto ; then
31076		{ { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31077echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31078   { (exit 1); exit 1; }; }
31079	fi
31080fi
31081
31082if test $ol_enable_crypt != no ; then
31083	save_LIBS="$LIBS"
31084	LIBS="$TLS_LIBS $LIBS"
31085
31086	{ echo "$as_me:$LINENO: checking for crypt" >&5
31087echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31088if test "${ac_cv_func_crypt+set}" = set; then
31089  echo $ECHO_N "(cached) $ECHO_C" >&6
31090else
31091  cat >conftest.$ac_ext <<_ACEOF
31092/* confdefs.h.  */
31093_ACEOF
31094cat confdefs.h >>conftest.$ac_ext
31095cat >>conftest.$ac_ext <<_ACEOF
31096/* end confdefs.h.  */
31097/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31098   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31099#define crypt innocuous_crypt
31100
31101/* System header to define __stub macros and hopefully few prototypes,
31102    which can conflict with char crypt (); below.
31103    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31104    <limits.h> exists even on freestanding compilers.  */
31105
31106#ifdef __STDC__
31107# include <limits.h>
31108#else
31109# include <assert.h>
31110#endif
31111
31112#undef crypt
31113
31114/* Override any GCC internal prototype to avoid an error.
31115   Use char because int might match the return type of a GCC
31116   builtin and then its argument prototype would still apply.  */
31117#ifdef __cplusplus
31118extern "C"
31119#endif
31120char crypt ();
31121/* The GNU C library defines this for functions which it implements
31122    to always fail with ENOSYS.  Some functions are actually named
31123    something starting with __ and the normal name is an alias.  */
31124#if defined __stub_crypt || defined __stub___crypt
31125choke me
31126#endif
31127
31128int
31129main ()
31130{
31131return crypt ();
31132  ;
31133  return 0;
31134}
31135_ACEOF
31136rm -f conftest.$ac_objext conftest$ac_exeext
31137if { (ac_try="$ac_link"
31138case "(($ac_try" in
31139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31140  *) ac_try_echo=$ac_try;;
31141esac
31142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31143  (eval "$ac_link") 2>conftest.er1
31144  ac_status=$?
31145  grep -v '^ *+' conftest.er1 >conftest.err
31146  rm -f conftest.er1
31147  cat conftest.err >&5
31148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149  (exit $ac_status); } && {
31150	 test -z "$ac_c_werror_flag" ||
31151	 test ! -s conftest.err
31152       } && test -s conftest$ac_exeext &&
31153       $as_test_x conftest$ac_exeext; then
31154  ac_cv_func_crypt=yes
31155else
31156  echo "$as_me: failed program was:" >&5
31157sed 's/^/| /' conftest.$ac_ext >&5
31158
31159	ac_cv_func_crypt=no
31160fi
31161
31162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31163      conftest$ac_exeext conftest.$ac_ext
31164fi
31165{ echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31166echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31167if test $ac_cv_func_crypt = yes; then
31168  have_crypt=yes
31169else
31170
31171		LIBS="$save_LIBS"
31172		{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31173echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31174if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31175  echo $ECHO_N "(cached) $ECHO_C" >&6
31176else
31177  ac_check_lib_save_LIBS=$LIBS
31178LIBS="-lcrypt  $LIBS"
31179cat >conftest.$ac_ext <<_ACEOF
31180/* confdefs.h.  */
31181_ACEOF
31182cat confdefs.h >>conftest.$ac_ext
31183cat >>conftest.$ac_ext <<_ACEOF
31184/* end confdefs.h.  */
31185
31186/* Override any GCC internal prototype to avoid an error.
31187   Use char because int might match the return type of a GCC
31188   builtin and then its argument prototype would still apply.  */
31189#ifdef __cplusplus
31190extern "C"
31191#endif
31192char crypt ();
31193int
31194main ()
31195{
31196return crypt ();
31197  ;
31198  return 0;
31199}
31200_ACEOF
31201rm -f conftest.$ac_objext conftest$ac_exeext
31202if { (ac_try="$ac_link"
31203case "(($ac_try" in
31204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205  *) ac_try_echo=$ac_try;;
31206esac
31207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208  (eval "$ac_link") 2>conftest.er1
31209  ac_status=$?
31210  grep -v '^ *+' conftest.er1 >conftest.err
31211  rm -f conftest.er1
31212  cat conftest.err >&5
31213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214  (exit $ac_status); } && {
31215	 test -z "$ac_c_werror_flag" ||
31216	 test ! -s conftest.err
31217       } && test -s conftest$ac_exeext &&
31218       $as_test_x conftest$ac_exeext; then
31219  ac_cv_lib_crypt_crypt=yes
31220else
31221  echo "$as_me: failed program was:" >&5
31222sed 's/^/| /' conftest.$ac_ext >&5
31223
31224	ac_cv_lib_crypt_crypt=no
31225fi
31226
31227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31228      conftest$ac_exeext conftest.$ac_ext
31229LIBS=$ac_check_lib_save_LIBS
31230fi
31231{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31232echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31233if test $ac_cv_lib_crypt_crypt = yes; then
31234  LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31235			have_crypt=yes
31236else
31237  have_crypt=no
31238fi
31239
31240fi
31241
31242
31243	LIBS="$save_LIBS"
31244
31245	if test $have_crypt = yes ; then
31246
31247cat >>confdefs.h <<\_ACEOF
31248#define HAVE_CRYPT 1
31249_ACEOF
31250
31251	else
31252		{ echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31253echo "$as_me: WARNING: could not find crypt" >&2;}
31254		if test $ol_enable_crypt = yes ; then
31255			{ { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31256echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31257   { (exit 1); exit 1; }; }
31258		fi
31259
31260		{ echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31261echo "$as_me: WARNING: disabling crypt support" >&2;}
31262		ol_enable_crypt=no
31263	fi
31264fi
31265
31266if test $ol_enable_proctitle != no ; then
31267	{ echo "$as_me:$LINENO: checking for setproctitle" >&5
31268echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31269if test "${ac_cv_func_setproctitle+set}" = set; then
31270  echo $ECHO_N "(cached) $ECHO_C" >&6
31271else
31272  cat >conftest.$ac_ext <<_ACEOF
31273/* confdefs.h.  */
31274_ACEOF
31275cat confdefs.h >>conftest.$ac_ext
31276cat >>conftest.$ac_ext <<_ACEOF
31277/* end confdefs.h.  */
31278/* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31279   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31280#define setproctitle innocuous_setproctitle
31281
31282/* System header to define __stub macros and hopefully few prototypes,
31283    which can conflict with char setproctitle (); below.
31284    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31285    <limits.h> exists even on freestanding compilers.  */
31286
31287#ifdef __STDC__
31288# include <limits.h>
31289#else
31290# include <assert.h>
31291#endif
31292
31293#undef setproctitle
31294
31295/* Override any GCC internal prototype to avoid an error.
31296   Use char because int might match the return type of a GCC
31297   builtin and then its argument prototype would still apply.  */
31298#ifdef __cplusplus
31299extern "C"
31300#endif
31301char setproctitle ();
31302/* The GNU C library defines this for functions which it implements
31303    to always fail with ENOSYS.  Some functions are actually named
31304    something starting with __ and the normal name is an alias.  */
31305#if defined __stub_setproctitle || defined __stub___setproctitle
31306choke me
31307#endif
31308
31309int
31310main ()
31311{
31312return setproctitle ();
31313  ;
31314  return 0;
31315}
31316_ACEOF
31317rm -f conftest.$ac_objext conftest$ac_exeext
31318if { (ac_try="$ac_link"
31319case "(($ac_try" in
31320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31321  *) ac_try_echo=$ac_try;;
31322esac
31323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31324  (eval "$ac_link") 2>conftest.er1
31325  ac_status=$?
31326  grep -v '^ *+' conftest.er1 >conftest.err
31327  rm -f conftest.er1
31328  cat conftest.err >&5
31329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330  (exit $ac_status); } && {
31331	 test -z "$ac_c_werror_flag" ||
31332	 test ! -s conftest.err
31333       } && test -s conftest$ac_exeext &&
31334       $as_test_x conftest$ac_exeext; then
31335  ac_cv_func_setproctitle=yes
31336else
31337  echo "$as_me: failed program was:" >&5
31338sed 's/^/| /' conftest.$ac_ext >&5
31339
31340	ac_cv_func_setproctitle=no
31341fi
31342
31343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31344      conftest$ac_exeext conftest.$ac_ext
31345fi
31346{ echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31347echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31348if test $ac_cv_func_setproctitle = yes; then
31349  have_setproctitle=yes
31350else
31351
31352		{ echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31353echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31354if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31355  echo $ECHO_N "(cached) $ECHO_C" >&6
31356else
31357  ac_check_lib_save_LIBS=$LIBS
31358LIBS="-lutil  $LIBS"
31359cat >conftest.$ac_ext <<_ACEOF
31360/* confdefs.h.  */
31361_ACEOF
31362cat confdefs.h >>conftest.$ac_ext
31363cat >>conftest.$ac_ext <<_ACEOF
31364/* end confdefs.h.  */
31365
31366/* Override any GCC internal prototype to avoid an error.
31367   Use char because int might match the return type of a GCC
31368   builtin and then its argument prototype would still apply.  */
31369#ifdef __cplusplus
31370extern "C"
31371#endif
31372char setproctitle ();
31373int
31374main ()
31375{
31376return setproctitle ();
31377  ;
31378  return 0;
31379}
31380_ACEOF
31381rm -f conftest.$ac_objext conftest$ac_exeext
31382if { (ac_try="$ac_link"
31383case "(($ac_try" in
31384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385  *) ac_try_echo=$ac_try;;
31386esac
31387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388  (eval "$ac_link") 2>conftest.er1
31389  ac_status=$?
31390  grep -v '^ *+' conftest.er1 >conftest.err
31391  rm -f conftest.er1
31392  cat conftest.err >&5
31393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394  (exit $ac_status); } && {
31395	 test -z "$ac_c_werror_flag" ||
31396	 test ! -s conftest.err
31397       } && test -s conftest$ac_exeext &&
31398       $as_test_x conftest$ac_exeext; then
31399  ac_cv_lib_util_setproctitle=yes
31400else
31401  echo "$as_me: failed program was:" >&5
31402sed 's/^/| /' conftest.$ac_ext >&5
31403
31404	ac_cv_lib_util_setproctitle=no
31405fi
31406
31407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31408      conftest$ac_exeext conftest.$ac_ext
31409LIBS=$ac_check_lib_save_LIBS
31410fi
31411{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31412echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31413if test $ac_cv_lib_util_setproctitle = yes; then
31414  have_setproctitle=yes
31415			LUTIL_LIBS="$LUTIL_LIBS -lutil"
31416else
31417  have_setproctitle=no
31418			case " $LIBOBJS " in
31419  *" setproctitle.$ac_objext "* ) ;;
31420  *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31421 ;;
31422esac
31423
31424			LIBSRCS="$LIBSRCS setproctitle.c"
31425fi
31426
31427fi
31428
31429
31430	if test $have_setproctitle = yes ; then
31431
31432cat >>confdefs.h <<\_ACEOF
31433#define HAVE_SETPROCTITLE 1
31434_ACEOF
31435
31436	fi
31437fi
31438
31439if test $ol_enable_slp != no ; then
31440
31441for ac_header in slp.h
31442do
31443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31445  { echo "$as_me:$LINENO: checking for $ac_header" >&5
31446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31448  echo $ECHO_N "(cached) $ECHO_C" >&6
31449fi
31450ac_res=`eval echo '${'$as_ac_Header'}'`
31451	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31452echo "${ECHO_T}$ac_res" >&6; }
31453else
31454  # Is the header compilable?
31455{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31457cat >conftest.$ac_ext <<_ACEOF
31458/* confdefs.h.  */
31459_ACEOF
31460cat confdefs.h >>conftest.$ac_ext
31461cat >>conftest.$ac_ext <<_ACEOF
31462/* end confdefs.h.  */
31463$ac_includes_default
31464#include <$ac_header>
31465_ACEOF
31466rm -f conftest.$ac_objext
31467if { (ac_try="$ac_compile"
31468case "(($ac_try" in
31469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31470  *) ac_try_echo=$ac_try;;
31471esac
31472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31473  (eval "$ac_compile") 2>conftest.er1
31474  ac_status=$?
31475  grep -v '^ *+' conftest.er1 >conftest.err
31476  rm -f conftest.er1
31477  cat conftest.err >&5
31478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479  (exit $ac_status); } && {
31480	 test -z "$ac_c_werror_flag" ||
31481	 test ! -s conftest.err
31482       } && test -s conftest.$ac_objext; then
31483  ac_header_compiler=yes
31484else
31485  echo "$as_me: failed program was:" >&5
31486sed 's/^/| /' conftest.$ac_ext >&5
31487
31488	ac_header_compiler=no
31489fi
31490
31491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31492{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31493echo "${ECHO_T}$ac_header_compiler" >&6; }
31494
31495# Is the header present?
31496{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31497echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31498cat >conftest.$ac_ext <<_ACEOF
31499/* confdefs.h.  */
31500_ACEOF
31501cat confdefs.h >>conftest.$ac_ext
31502cat >>conftest.$ac_ext <<_ACEOF
31503/* end confdefs.h.  */
31504#include <$ac_header>
31505_ACEOF
31506if { (ac_try="$ac_cpp conftest.$ac_ext"
31507case "(($ac_try" in
31508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31509  *) ac_try_echo=$ac_try;;
31510esac
31511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31512  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31513  ac_status=$?
31514  grep -v '^ *+' conftest.er1 >conftest.err
31515  rm -f conftest.er1
31516  cat conftest.err >&5
31517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518  (exit $ac_status); } >/dev/null && {
31519	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31520	 test ! -s conftest.err
31521       }; then
31522  ac_header_preproc=yes
31523else
31524  echo "$as_me: failed program was:" >&5
31525sed 's/^/| /' conftest.$ac_ext >&5
31526
31527  ac_header_preproc=no
31528fi
31529
31530rm -f conftest.err conftest.$ac_ext
31531{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31532echo "${ECHO_T}$ac_header_preproc" >&6; }
31533
31534# So?  What about this header?
31535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31536  yes:no: )
31537    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31538echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31539    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31540echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31541    ac_header_preproc=yes
31542    ;;
31543  no:yes:* )
31544    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31545echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31546    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31547echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31548    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31549echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31550    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31551echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31552    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31553echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31554    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31555echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31556    ( cat <<\_ASBOX
31557## --------------------------------------------- ##
31558## Report this to <http://www.openldap.org/its/> ##
31559## --------------------------------------------- ##
31560_ASBOX
31561     ) | sed "s/^/$as_me: WARNING:     /" >&2
31562    ;;
31563esac
31564{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31567  echo $ECHO_N "(cached) $ECHO_C" >&6
31568else
31569  eval "$as_ac_Header=\$ac_header_preproc"
31570fi
31571ac_res=`eval echo '${'$as_ac_Header'}'`
31572	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31573echo "${ECHO_T}$ac_res" >&6; }
31574
31575fi
31576if test `eval echo '${'$as_ac_Header'}'` = yes; then
31577  cat >>confdefs.h <<_ACEOF
31578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31579_ACEOF
31580
31581fi
31582
31583done
31584
31585
31586	if test $ac_cv_header_slp_h = yes ; then
31587		{ echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31588echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31589if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31590  echo $ECHO_N "(cached) $ECHO_C" >&6
31591else
31592  ac_check_lib_save_LIBS=$LIBS
31593LIBS="-lslp  $LIBS"
31594cat >conftest.$ac_ext <<_ACEOF
31595/* confdefs.h.  */
31596_ACEOF
31597cat confdefs.h >>conftest.$ac_ext
31598cat >>conftest.$ac_ext <<_ACEOF
31599/* end confdefs.h.  */
31600
31601/* Override any GCC internal prototype to avoid an error.
31602   Use char because int might match the return type of a GCC
31603   builtin and then its argument prototype would still apply.  */
31604#ifdef __cplusplus
31605extern "C"
31606#endif
31607char SLPOpen ();
31608int
31609main ()
31610{
31611return SLPOpen ();
31612  ;
31613  return 0;
31614}
31615_ACEOF
31616rm -f conftest.$ac_objext conftest$ac_exeext
31617if { (ac_try="$ac_link"
31618case "(($ac_try" in
31619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620  *) ac_try_echo=$ac_try;;
31621esac
31622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623  (eval "$ac_link") 2>conftest.er1
31624  ac_status=$?
31625  grep -v '^ *+' conftest.er1 >conftest.err
31626  rm -f conftest.er1
31627  cat conftest.err >&5
31628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629  (exit $ac_status); } && {
31630	 test -z "$ac_c_werror_flag" ||
31631	 test ! -s conftest.err
31632       } && test -s conftest$ac_exeext &&
31633       $as_test_x conftest$ac_exeext; then
31634  ac_cv_lib_slp_SLPOpen=yes
31635else
31636  echo "$as_me: failed program was:" >&5
31637sed 's/^/| /' conftest.$ac_ext >&5
31638
31639	ac_cv_lib_slp_SLPOpen=no
31640fi
31641
31642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31643      conftest$ac_exeext conftest.$ac_ext
31644LIBS=$ac_check_lib_save_LIBS
31645fi
31646{ echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31647echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31648if test $ac_cv_lib_slp_SLPOpen = yes; then
31649  have_slp=yes
31650else
31651  have_slp=no
31652fi
31653
31654		if test $have_slp = yes ; then
31655
31656cat >>confdefs.h <<\_ACEOF
31657#define HAVE_SLP 1
31658_ACEOF
31659
31660			SLAPD_SLP_LIBS=-lslp
31661		fi
31662
31663	elif test $ol_enable_slp = yes ; then
31664		{ { echo "$as_me:$LINENO: error: SLP not found" >&5
31665echo "$as_me: error: SLP not found" >&2;}
31666   { (exit 1); exit 1; }; }
31667	fi
31668fi
31669
31670
31671{ echo "$as_me:$LINENO: checking for mode_t" >&5
31672echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31673if test "${ac_cv_type_mode_t+set}" = set; then
31674  echo $ECHO_N "(cached) $ECHO_C" >&6
31675else
31676  cat >conftest.$ac_ext <<_ACEOF
31677/* confdefs.h.  */
31678_ACEOF
31679cat confdefs.h >>conftest.$ac_ext
31680cat >>conftest.$ac_ext <<_ACEOF
31681/* end confdefs.h.  */
31682$ac_includes_default
31683typedef mode_t ac__type_new_;
31684int
31685main ()
31686{
31687if ((ac__type_new_ *) 0)
31688  return 0;
31689if (sizeof (ac__type_new_))
31690  return 0;
31691  ;
31692  return 0;
31693}
31694_ACEOF
31695rm -f conftest.$ac_objext
31696if { (ac_try="$ac_compile"
31697case "(($ac_try" in
31698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31699  *) ac_try_echo=$ac_try;;
31700esac
31701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31702  (eval "$ac_compile") 2>conftest.er1
31703  ac_status=$?
31704  grep -v '^ *+' conftest.er1 >conftest.err
31705  rm -f conftest.er1
31706  cat conftest.err >&5
31707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708  (exit $ac_status); } && {
31709	 test -z "$ac_c_werror_flag" ||
31710	 test ! -s conftest.err
31711       } && test -s conftest.$ac_objext; then
31712  ac_cv_type_mode_t=yes
31713else
31714  echo "$as_me: failed program was:" >&5
31715sed 's/^/| /' conftest.$ac_ext >&5
31716
31717	ac_cv_type_mode_t=no
31718fi
31719
31720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31721fi
31722{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31723echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31724if test $ac_cv_type_mode_t = yes; then
31725  :
31726else
31727
31728cat >>confdefs.h <<_ACEOF
31729#define mode_t int
31730_ACEOF
31731
31732fi
31733
31734{ echo "$as_me:$LINENO: checking for off_t" >&5
31735echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31736if test "${ac_cv_type_off_t+set}" = set; then
31737  echo $ECHO_N "(cached) $ECHO_C" >&6
31738else
31739  cat >conftest.$ac_ext <<_ACEOF
31740/* confdefs.h.  */
31741_ACEOF
31742cat confdefs.h >>conftest.$ac_ext
31743cat >>conftest.$ac_ext <<_ACEOF
31744/* end confdefs.h.  */
31745$ac_includes_default
31746typedef off_t ac__type_new_;
31747int
31748main ()
31749{
31750if ((ac__type_new_ *) 0)
31751  return 0;
31752if (sizeof (ac__type_new_))
31753  return 0;
31754  ;
31755  return 0;
31756}
31757_ACEOF
31758rm -f conftest.$ac_objext
31759if { (ac_try="$ac_compile"
31760case "(($ac_try" in
31761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31762  *) ac_try_echo=$ac_try;;
31763esac
31764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765  (eval "$ac_compile") 2>conftest.er1
31766  ac_status=$?
31767  grep -v '^ *+' conftest.er1 >conftest.err
31768  rm -f conftest.er1
31769  cat conftest.err >&5
31770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771  (exit $ac_status); } && {
31772	 test -z "$ac_c_werror_flag" ||
31773	 test ! -s conftest.err
31774       } && test -s conftest.$ac_objext; then
31775  ac_cv_type_off_t=yes
31776else
31777  echo "$as_me: failed program was:" >&5
31778sed 's/^/| /' conftest.$ac_ext >&5
31779
31780	ac_cv_type_off_t=no
31781fi
31782
31783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31784fi
31785{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31786echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31787if test $ac_cv_type_off_t = yes; then
31788  :
31789else
31790
31791cat >>confdefs.h <<_ACEOF
31792#define off_t long
31793_ACEOF
31794
31795fi
31796
31797{ echo "$as_me:$LINENO: checking for pid_t" >&5
31798echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31799if test "${ac_cv_type_pid_t+set}" = set; then
31800  echo $ECHO_N "(cached) $ECHO_C" >&6
31801else
31802  cat >conftest.$ac_ext <<_ACEOF
31803/* confdefs.h.  */
31804_ACEOF
31805cat confdefs.h >>conftest.$ac_ext
31806cat >>conftest.$ac_ext <<_ACEOF
31807/* end confdefs.h.  */
31808$ac_includes_default
31809typedef pid_t ac__type_new_;
31810int
31811main ()
31812{
31813if ((ac__type_new_ *) 0)
31814  return 0;
31815if (sizeof (ac__type_new_))
31816  return 0;
31817  ;
31818  return 0;
31819}
31820_ACEOF
31821rm -f conftest.$ac_objext
31822if { (ac_try="$ac_compile"
31823case "(($ac_try" in
31824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825  *) ac_try_echo=$ac_try;;
31826esac
31827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31828  (eval "$ac_compile") 2>conftest.er1
31829  ac_status=$?
31830  grep -v '^ *+' conftest.er1 >conftest.err
31831  rm -f conftest.er1
31832  cat conftest.err >&5
31833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834  (exit $ac_status); } && {
31835	 test -z "$ac_c_werror_flag" ||
31836	 test ! -s conftest.err
31837       } && test -s conftest.$ac_objext; then
31838  ac_cv_type_pid_t=yes
31839else
31840  echo "$as_me: failed program was:" >&5
31841sed 's/^/| /' conftest.$ac_ext >&5
31842
31843	ac_cv_type_pid_t=no
31844fi
31845
31846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31847fi
31848{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31849echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31850if test $ac_cv_type_pid_t = yes; then
31851  :
31852else
31853
31854cat >>confdefs.h <<_ACEOF
31855#define pid_t int
31856_ACEOF
31857
31858fi
31859
31860{ echo "$as_me:$LINENO: checking for ssize_t" >&5
31861echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31862if test "${ac_cv_type_ssize_t+set}" = set; then
31863  echo $ECHO_N "(cached) $ECHO_C" >&6
31864else
31865  cat >conftest.$ac_ext <<_ACEOF
31866/* confdefs.h.  */
31867_ACEOF
31868cat confdefs.h >>conftest.$ac_ext
31869cat >>conftest.$ac_ext <<_ACEOF
31870/* end confdefs.h.  */
31871$ac_includes_default
31872typedef ssize_t ac__type_new_;
31873int
31874main ()
31875{
31876if ((ac__type_new_ *) 0)
31877  return 0;
31878if (sizeof (ac__type_new_))
31879  return 0;
31880  ;
31881  return 0;
31882}
31883_ACEOF
31884rm -f conftest.$ac_objext
31885if { (ac_try="$ac_compile"
31886case "(($ac_try" in
31887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888  *) ac_try_echo=$ac_try;;
31889esac
31890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891  (eval "$ac_compile") 2>conftest.er1
31892  ac_status=$?
31893  grep -v '^ *+' conftest.er1 >conftest.err
31894  rm -f conftest.er1
31895  cat conftest.err >&5
31896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897  (exit $ac_status); } && {
31898	 test -z "$ac_c_werror_flag" ||
31899	 test ! -s conftest.err
31900       } && test -s conftest.$ac_objext; then
31901  ac_cv_type_ssize_t=yes
31902else
31903  echo "$as_me: failed program was:" >&5
31904sed 's/^/| /' conftest.$ac_ext >&5
31905
31906	ac_cv_type_ssize_t=no
31907fi
31908
31909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31910fi
31911{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31912echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31913if test $ac_cv_type_ssize_t = yes; then
31914  :
31915else
31916
31917cat >>confdefs.h <<_ACEOF
31918#define ssize_t signed int
31919_ACEOF
31920
31921fi
31922
31923{ echo "$as_me:$LINENO: checking for caddr_t" >&5
31924echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31925if test "${ac_cv_type_caddr_t+set}" = set; then
31926  echo $ECHO_N "(cached) $ECHO_C" >&6
31927else
31928  cat >conftest.$ac_ext <<_ACEOF
31929/* confdefs.h.  */
31930_ACEOF
31931cat confdefs.h >>conftest.$ac_ext
31932cat >>conftest.$ac_ext <<_ACEOF
31933/* end confdefs.h.  */
31934$ac_includes_default
31935typedef caddr_t ac__type_new_;
31936int
31937main ()
31938{
31939if ((ac__type_new_ *) 0)
31940  return 0;
31941if (sizeof (ac__type_new_))
31942  return 0;
31943  ;
31944  return 0;
31945}
31946_ACEOF
31947rm -f conftest.$ac_objext
31948if { (ac_try="$ac_compile"
31949case "(($ac_try" in
31950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31951  *) ac_try_echo=$ac_try;;
31952esac
31953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31954  (eval "$ac_compile") 2>conftest.er1
31955  ac_status=$?
31956  grep -v '^ *+' conftest.er1 >conftest.err
31957  rm -f conftest.er1
31958  cat conftest.err >&5
31959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960  (exit $ac_status); } && {
31961	 test -z "$ac_c_werror_flag" ||
31962	 test ! -s conftest.err
31963       } && test -s conftest.$ac_objext; then
31964  ac_cv_type_caddr_t=yes
31965else
31966  echo "$as_me: failed program was:" >&5
31967sed 's/^/| /' conftest.$ac_ext >&5
31968
31969	ac_cv_type_caddr_t=no
31970fi
31971
31972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31973fi
31974{ echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31975echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
31976if test $ac_cv_type_caddr_t = yes; then
31977  :
31978else
31979
31980cat >>confdefs.h <<_ACEOF
31981#define caddr_t char *
31982_ACEOF
31983
31984fi
31985
31986{ echo "$as_me:$LINENO: checking for size_t" >&5
31987echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31988if test "${ac_cv_type_size_t+set}" = set; then
31989  echo $ECHO_N "(cached) $ECHO_C" >&6
31990else
31991  cat >conftest.$ac_ext <<_ACEOF
31992/* confdefs.h.  */
31993_ACEOF
31994cat confdefs.h >>conftest.$ac_ext
31995cat >>conftest.$ac_ext <<_ACEOF
31996/* end confdefs.h.  */
31997$ac_includes_default
31998typedef size_t ac__type_new_;
31999int
32000main ()
32001{
32002if ((ac__type_new_ *) 0)
32003  return 0;
32004if (sizeof (ac__type_new_))
32005  return 0;
32006  ;
32007  return 0;
32008}
32009_ACEOF
32010rm -f conftest.$ac_objext
32011if { (ac_try="$ac_compile"
32012case "(($ac_try" in
32013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014  *) ac_try_echo=$ac_try;;
32015esac
32016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017  (eval "$ac_compile") 2>conftest.er1
32018  ac_status=$?
32019  grep -v '^ *+' conftest.er1 >conftest.err
32020  rm -f conftest.er1
32021  cat conftest.err >&5
32022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023  (exit $ac_status); } && {
32024	 test -z "$ac_c_werror_flag" ||
32025	 test ! -s conftest.err
32026       } && test -s conftest.$ac_objext; then
32027  ac_cv_type_size_t=yes
32028else
32029  echo "$as_me: failed program was:" >&5
32030sed 's/^/| /' conftest.$ac_ext >&5
32031
32032	ac_cv_type_size_t=no
32033fi
32034
32035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32036fi
32037{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32038echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32039if test $ac_cv_type_size_t = yes; then
32040  :
32041else
32042
32043cat >>confdefs.h <<_ACEOF
32044#define size_t unsigned
32045_ACEOF
32046
32047fi
32048
32049
32050{ echo "$as_me:$LINENO: checking for long long" >&5
32051echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32052if test "${ac_cv_type_long_long+set}" = set; then
32053  echo $ECHO_N "(cached) $ECHO_C" >&6
32054else
32055  cat >conftest.$ac_ext <<_ACEOF
32056/* confdefs.h.  */
32057_ACEOF
32058cat confdefs.h >>conftest.$ac_ext
32059cat >>conftest.$ac_ext <<_ACEOF
32060/* end confdefs.h.  */
32061$ac_includes_default
32062typedef long long ac__type_new_;
32063int
32064main ()
32065{
32066if ((ac__type_new_ *) 0)
32067  return 0;
32068if (sizeof (ac__type_new_))
32069  return 0;
32070  ;
32071  return 0;
32072}
32073_ACEOF
32074rm -f conftest.$ac_objext
32075if { (ac_try="$ac_compile"
32076case "(($ac_try" in
32077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078  *) ac_try_echo=$ac_try;;
32079esac
32080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081  (eval "$ac_compile") 2>conftest.er1
32082  ac_status=$?
32083  grep -v '^ *+' conftest.er1 >conftest.err
32084  rm -f conftest.er1
32085  cat conftest.err >&5
32086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087  (exit $ac_status); } && {
32088	 test -z "$ac_c_werror_flag" ||
32089	 test ! -s conftest.err
32090       } && test -s conftest.$ac_objext; then
32091  ac_cv_type_long_long=yes
32092else
32093  echo "$as_me: failed program was:" >&5
32094sed 's/^/| /' conftest.$ac_ext >&5
32095
32096	ac_cv_type_long_long=no
32097fi
32098
32099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32100fi
32101{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32102echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32103if test $ac_cv_type_long_long = yes; then
32104
32105cat >>confdefs.h <<_ACEOF
32106#define HAVE_LONG_LONG 1
32107_ACEOF
32108
32109
32110fi
32111
32112{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32113echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32114if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32115  echo $ECHO_N "(cached) $ECHO_C" >&6
32116else
32117  cat >conftest.$ac_ext <<_ACEOF
32118/* confdefs.h.  */
32119_ACEOF
32120cat confdefs.h >>conftest.$ac_ext
32121cat >>conftest.$ac_ext <<_ACEOF
32122/* end confdefs.h.  */
32123$ac_includes_default
32124typedef ptrdiff_t ac__type_new_;
32125int
32126main ()
32127{
32128if ((ac__type_new_ *) 0)
32129  return 0;
32130if (sizeof (ac__type_new_))
32131  return 0;
32132  ;
32133  return 0;
32134}
32135_ACEOF
32136rm -f conftest.$ac_objext
32137if { (ac_try="$ac_compile"
32138case "(($ac_try" in
32139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32140  *) ac_try_echo=$ac_try;;
32141esac
32142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32143  (eval "$ac_compile") 2>conftest.er1
32144  ac_status=$?
32145  grep -v '^ *+' conftest.er1 >conftest.err
32146  rm -f conftest.er1
32147  cat conftest.err >&5
32148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149  (exit $ac_status); } && {
32150	 test -z "$ac_c_werror_flag" ||
32151	 test ! -s conftest.err
32152       } && test -s conftest.$ac_objext; then
32153  ac_cv_type_ptrdiff_t=yes
32154else
32155  echo "$as_me: failed program was:" >&5
32156sed 's/^/| /' conftest.$ac_ext >&5
32157
32158	ac_cv_type_ptrdiff_t=no
32159fi
32160
32161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32162fi
32163{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32164echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32165if test $ac_cv_type_ptrdiff_t = yes; then
32166
32167cat >>confdefs.h <<_ACEOF
32168#define HAVE_PTRDIFF_T 1
32169_ACEOF
32170
32171
32172fi
32173
32174
32175
32176{ echo "$as_me:$LINENO: checking for socklen_t" >&5
32177echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32178if test "${ac_cv_type_socklen_t+set}" = set; then
32179  echo $ECHO_N "(cached) $ECHO_C" >&6
32180else
32181  cat >conftest.$ac_ext <<_ACEOF
32182/* confdefs.h.  */
32183_ACEOF
32184cat confdefs.h >>conftest.$ac_ext
32185cat >>conftest.$ac_ext <<_ACEOF
32186/* end confdefs.h.  */
32187$ac_includes_default
32188#ifdef HAVE_SYS_SOCKET_H
32189#include <sys/socket.h>
32190#endif
32191
32192typedef socklen_t ac__type_new_;
32193int
32194main ()
32195{
32196if ((ac__type_new_ *) 0)
32197  return 0;
32198if (sizeof (ac__type_new_))
32199  return 0;
32200  ;
32201  return 0;
32202}
32203_ACEOF
32204rm -f conftest.$ac_objext
32205if { (ac_try="$ac_compile"
32206case "(($ac_try" in
32207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208  *) ac_try_echo=$ac_try;;
32209esac
32210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32211  (eval "$ac_compile") 2>conftest.er1
32212  ac_status=$?
32213  grep -v '^ *+' conftest.er1 >conftest.err
32214  rm -f conftest.er1
32215  cat conftest.err >&5
32216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217  (exit $ac_status); } && {
32218	 test -z "$ac_c_werror_flag" ||
32219	 test ! -s conftest.err
32220       } && test -s conftest.$ac_objext; then
32221  ac_cv_type_socklen_t=yes
32222else
32223  echo "$as_me: failed program was:" >&5
32224sed 's/^/| /' conftest.$ac_ext >&5
32225
32226	ac_cv_type_socklen_t=no
32227fi
32228
32229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32230fi
32231{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32232echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32233
32234
32235{ echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32236echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32237if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32238  echo $ECHO_N "(cached) $ECHO_C" >&6
32239else
32240
32241	set socklen_t int unsigned "unsigned long" long size_t
32242	test "$ac_cv_type_socklen_t" = yes || shift
32243	ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32244	for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32245		cat >conftest.$ac_ext <<_ACEOF
32246/* confdefs.h.  */
32247_ACEOF
32248cat confdefs.h >>conftest.$ac_ext
32249cat >>conftest.$ac_ext <<_ACEOF
32250/* end confdefs.h.  */
32251$ac_includes_default
32252#ifdef HAVE_SYS_SOCKET_H
32253#include <sys/socket.h>
32254#endif
32255extern int accept(int s, $addrtype *ap, $lentype *lp);
32256
32257int
32258main ()
32259{
32260
32261accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32262
32263  ;
32264  return 0;
32265}
32266_ACEOF
32267rm -f conftest.$ac_objext
32268if { (ac_try="$ac_compile"
32269case "(($ac_try" in
32270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32271  *) ac_try_echo=$ac_try;;
32272esac
32273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32274  (eval "$ac_compile") 2>conftest.er1
32275  ac_status=$?
32276  grep -v '^ *+' conftest.er1 >conftest.err
32277  rm -f conftest.er1
32278  cat conftest.err >&5
32279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280  (exit $ac_status); } && {
32281	 test -z "$ac_c_werror_flag" ||
32282	 test ! -s conftest.err
32283       } && test -s conftest.$ac_objext; then
32284  ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32285else
32286  echo "$as_me: failed program was:" >&5
32287sed 's/^/| /' conftest.$ac_ext >&5
32288
32289
32290fi
32291
32292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32293	done ; done
32294fi
32295
32296{ echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32297echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32298
32299cat >>confdefs.h <<_ACEOF
32300#define ber_socklen_t $ol_cv_type_ber_socklen_t
32301_ACEOF
32302
32303
32304if test "$ac_cv_type_socklen_t" != yes; then
32305
32306cat >>confdefs.h <<_ACEOF
32307#define socklen_t $ol_cv_type_ber_socklen_t
32308_ACEOF
32309
32310fi
32311
32312
32313{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32314echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32315if test "${ac_cv_type_signal+set}" = set; then
32316  echo $ECHO_N "(cached) $ECHO_C" >&6
32317else
32318  cat >conftest.$ac_ext <<_ACEOF
32319/* confdefs.h.  */
32320_ACEOF
32321cat confdefs.h >>conftest.$ac_ext
32322cat >>conftest.$ac_ext <<_ACEOF
32323/* end confdefs.h.  */
32324#include <sys/types.h>
32325#include <signal.h>
32326
32327int
32328main ()
32329{
32330return *(signal (0, 0)) (0) == 1;
32331  ;
32332  return 0;
32333}
32334_ACEOF
32335rm -f conftest.$ac_objext
32336if { (ac_try="$ac_compile"
32337case "(($ac_try" in
32338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32339  *) ac_try_echo=$ac_try;;
32340esac
32341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32342  (eval "$ac_compile") 2>conftest.er1
32343  ac_status=$?
32344  grep -v '^ *+' conftest.er1 >conftest.err
32345  rm -f conftest.er1
32346  cat conftest.err >&5
32347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348  (exit $ac_status); } && {
32349	 test -z "$ac_c_werror_flag" ||
32350	 test ! -s conftest.err
32351       } && test -s conftest.$ac_objext; then
32352  ac_cv_type_signal=int
32353else
32354  echo "$as_me: failed program was:" >&5
32355sed 's/^/| /' conftest.$ac_ext >&5
32356
32357	ac_cv_type_signal=void
32358fi
32359
32360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32361fi
32362{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32363echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32364
32365cat >>confdefs.h <<_ACEOF
32366#define RETSIGTYPE $ac_cv_type_signal
32367_ACEOF
32368
32369
32370
32371{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32372echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32373if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32374  echo $ECHO_N "(cached) $ECHO_C" >&6
32375else
32376  cat >conftest.$ac_ext <<_ACEOF
32377/* confdefs.h.  */
32378_ACEOF
32379cat confdefs.h >>conftest.$ac_ext
32380cat >>conftest.$ac_ext <<_ACEOF
32381/* end confdefs.h.  */
32382$ac_includes_default
32383#include <signal.h>
32384
32385
32386typedef sig_atomic_t ac__type_new_;
32387int
32388main ()
32389{
32390if ((ac__type_new_ *) 0)
32391  return 0;
32392if (sizeof (ac__type_new_))
32393  return 0;
32394  ;
32395  return 0;
32396}
32397_ACEOF
32398rm -f conftest.$ac_objext
32399if { (ac_try="$ac_compile"
32400case "(($ac_try" in
32401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32402  *) ac_try_echo=$ac_try;;
32403esac
32404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32405  (eval "$ac_compile") 2>conftest.er1
32406  ac_status=$?
32407  grep -v '^ *+' conftest.er1 >conftest.err
32408  rm -f conftest.er1
32409  cat conftest.err >&5
32410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411  (exit $ac_status); } && {
32412	 test -z "$ac_c_werror_flag" ||
32413	 test ! -s conftest.err
32414       } && test -s conftest.$ac_objext; then
32415  ac_cv_type_sig_atomic_t=yes
32416else
32417  echo "$as_me: failed program was:" >&5
32418sed 's/^/| /' conftest.$ac_ext >&5
32419
32420	ac_cv_type_sig_atomic_t=no
32421fi
32422
32423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32424fi
32425{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32426echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32427if test $ac_cv_type_sig_atomic_t = yes; then
32428  :
32429else
32430
32431cat >>confdefs.h <<_ACEOF
32432#define sig_atomic_t int
32433_ACEOF
32434
32435fi
32436
32437
32438{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32439echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32440if test "${ac_cv_type_uid_t+set}" = set; then
32441  echo $ECHO_N "(cached) $ECHO_C" >&6
32442else
32443  cat >conftest.$ac_ext <<_ACEOF
32444/* confdefs.h.  */
32445_ACEOF
32446cat confdefs.h >>conftest.$ac_ext
32447cat >>conftest.$ac_ext <<_ACEOF
32448/* end confdefs.h.  */
32449#include <sys/types.h>
32450
32451_ACEOF
32452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32453  $EGREP "uid_t" >/dev/null 2>&1; then
32454  ac_cv_type_uid_t=yes
32455else
32456  ac_cv_type_uid_t=no
32457fi
32458rm -f -r conftest*
32459
32460fi
32461{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32462echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32463if test $ac_cv_type_uid_t = no; then
32464
32465cat >>confdefs.h <<\_ACEOF
32466#define uid_t int
32467_ACEOF
32468
32469
32470cat >>confdefs.h <<\_ACEOF
32471#define gid_t int
32472_ACEOF
32473
32474fi
32475
32476
32477{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32478echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32479if test "${ac_cv_header_time+set}" = set; then
32480  echo $ECHO_N "(cached) $ECHO_C" >&6
32481else
32482  cat >conftest.$ac_ext <<_ACEOF
32483/* confdefs.h.  */
32484_ACEOF
32485cat confdefs.h >>conftest.$ac_ext
32486cat >>conftest.$ac_ext <<_ACEOF
32487/* end confdefs.h.  */
32488#include <sys/types.h>
32489#include <sys/time.h>
32490#include <time.h>
32491
32492int
32493main ()
32494{
32495if ((struct tm *) 0)
32496return 0;
32497  ;
32498  return 0;
32499}
32500_ACEOF
32501rm -f conftest.$ac_objext
32502if { (ac_try="$ac_compile"
32503case "(($ac_try" in
32504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32505  *) ac_try_echo=$ac_try;;
32506esac
32507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32508  (eval "$ac_compile") 2>conftest.er1
32509  ac_status=$?
32510  grep -v '^ *+' conftest.er1 >conftest.err
32511  rm -f conftest.er1
32512  cat conftest.err >&5
32513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514  (exit $ac_status); } && {
32515	 test -z "$ac_c_werror_flag" ||
32516	 test ! -s conftest.err
32517       } && test -s conftest.$ac_objext; then
32518  ac_cv_header_time=yes
32519else
32520  echo "$as_me: failed program was:" >&5
32521sed 's/^/| /' conftest.$ac_ext >&5
32522
32523	ac_cv_header_time=no
32524fi
32525
32526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32527fi
32528{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32529echo "${ECHO_T}$ac_cv_header_time" >&6; }
32530if test $ac_cv_header_time = yes; then
32531
32532cat >>confdefs.h <<\_ACEOF
32533#define TIME_WITH_SYS_TIME 1
32534_ACEOF
32535
32536fi
32537
32538{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32539echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32540if test "${ac_cv_struct_tm+set}" = set; then
32541  echo $ECHO_N "(cached) $ECHO_C" >&6
32542else
32543  cat >conftest.$ac_ext <<_ACEOF
32544/* confdefs.h.  */
32545_ACEOF
32546cat confdefs.h >>conftest.$ac_ext
32547cat >>conftest.$ac_ext <<_ACEOF
32548/* end confdefs.h.  */
32549#include <sys/types.h>
32550#include <time.h>
32551
32552int
32553main ()
32554{
32555struct tm tm;
32556				     int *p = &tm.tm_sec;
32557 				     return !p;
32558  ;
32559  return 0;
32560}
32561_ACEOF
32562rm -f conftest.$ac_objext
32563if { (ac_try="$ac_compile"
32564case "(($ac_try" in
32565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32566  *) ac_try_echo=$ac_try;;
32567esac
32568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32569  (eval "$ac_compile") 2>conftest.er1
32570  ac_status=$?
32571  grep -v '^ *+' conftest.er1 >conftest.err
32572  rm -f conftest.er1
32573  cat conftest.err >&5
32574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575  (exit $ac_status); } && {
32576	 test -z "$ac_c_werror_flag" ||
32577	 test ! -s conftest.err
32578       } && test -s conftest.$ac_objext; then
32579  ac_cv_struct_tm=time.h
32580else
32581  echo "$as_me: failed program was:" >&5
32582sed 's/^/| /' conftest.$ac_ext >&5
32583
32584	ac_cv_struct_tm=sys/time.h
32585fi
32586
32587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32588fi
32589{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32590echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32591if test $ac_cv_struct_tm = sys/time.h; then
32592
32593cat >>confdefs.h <<\_ACEOF
32594#define TM_IN_SYS_TIME 1
32595_ACEOF
32596
32597fi
32598
32599{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32600echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32601if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32602  echo $ECHO_N "(cached) $ECHO_C" >&6
32603else
32604  cat >conftest.$ac_ext <<_ACEOF
32605/* confdefs.h.  */
32606_ACEOF
32607cat confdefs.h >>conftest.$ac_ext
32608cat >>conftest.$ac_ext <<_ACEOF
32609/* end confdefs.h.  */
32610$ac_includes_default
32611int
32612main ()
32613{
32614static struct stat ac_aggr;
32615if (ac_aggr.st_blksize)
32616return 0;
32617  ;
32618  return 0;
32619}
32620_ACEOF
32621rm -f conftest.$ac_objext
32622if { (ac_try="$ac_compile"
32623case "(($ac_try" in
32624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32625  *) ac_try_echo=$ac_try;;
32626esac
32627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32628  (eval "$ac_compile") 2>conftest.er1
32629  ac_status=$?
32630  grep -v '^ *+' conftest.er1 >conftest.err
32631  rm -f conftest.er1
32632  cat conftest.err >&5
32633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634  (exit $ac_status); } && {
32635	 test -z "$ac_c_werror_flag" ||
32636	 test ! -s conftest.err
32637       } && test -s conftest.$ac_objext; then
32638  ac_cv_member_struct_stat_st_blksize=yes
32639else
32640  echo "$as_me: failed program was:" >&5
32641sed 's/^/| /' conftest.$ac_ext >&5
32642
32643	cat >conftest.$ac_ext <<_ACEOF
32644/* confdefs.h.  */
32645_ACEOF
32646cat confdefs.h >>conftest.$ac_ext
32647cat >>conftest.$ac_ext <<_ACEOF
32648/* end confdefs.h.  */
32649$ac_includes_default
32650int
32651main ()
32652{
32653static struct stat ac_aggr;
32654if (sizeof ac_aggr.st_blksize)
32655return 0;
32656  ;
32657  return 0;
32658}
32659_ACEOF
32660rm -f conftest.$ac_objext
32661if { (ac_try="$ac_compile"
32662case "(($ac_try" in
32663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32664  *) ac_try_echo=$ac_try;;
32665esac
32666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32667  (eval "$ac_compile") 2>conftest.er1
32668  ac_status=$?
32669  grep -v '^ *+' conftest.er1 >conftest.err
32670  rm -f conftest.er1
32671  cat conftest.err >&5
32672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673  (exit $ac_status); } && {
32674	 test -z "$ac_c_werror_flag" ||
32675	 test ! -s conftest.err
32676       } && test -s conftest.$ac_objext; then
32677  ac_cv_member_struct_stat_st_blksize=yes
32678else
32679  echo "$as_me: failed program was:" >&5
32680sed 's/^/| /' conftest.$ac_ext >&5
32681
32682	ac_cv_member_struct_stat_st_blksize=no
32683fi
32684
32685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32686fi
32687
32688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32689fi
32690{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32691echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32692if test $ac_cv_member_struct_stat_st_blksize = yes; then
32693
32694cat >>confdefs.h <<_ACEOF
32695#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32696_ACEOF
32697
32698
32699fi
32700
32701{ echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32702echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32703if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32704  echo $ECHO_N "(cached) $ECHO_C" >&6
32705else
32706  cat >conftest.$ac_ext <<_ACEOF
32707/* confdefs.h.  */
32708_ACEOF
32709cat confdefs.h >>conftest.$ac_ext
32710cat >>conftest.$ac_ext <<_ACEOF
32711/* end confdefs.h.  */
32712$ac_includes_default
32713#include <pwd.h>
32714
32715int
32716main ()
32717{
32718static struct passwd ac_aggr;
32719if (ac_aggr.pw_gecos)
32720return 0;
32721  ;
32722  return 0;
32723}
32724_ACEOF
32725rm -f conftest.$ac_objext
32726if { (ac_try="$ac_compile"
32727case "(($ac_try" in
32728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32729  *) ac_try_echo=$ac_try;;
32730esac
32731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32732  (eval "$ac_compile") 2>conftest.er1
32733  ac_status=$?
32734  grep -v '^ *+' conftest.er1 >conftest.err
32735  rm -f conftest.er1
32736  cat conftest.err >&5
32737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738  (exit $ac_status); } && {
32739	 test -z "$ac_c_werror_flag" ||
32740	 test ! -s conftest.err
32741       } && test -s conftest.$ac_objext; then
32742  ac_cv_member_struct_passwd_pw_gecos=yes
32743else
32744  echo "$as_me: failed program was:" >&5
32745sed 's/^/| /' conftest.$ac_ext >&5
32746
32747	cat >conftest.$ac_ext <<_ACEOF
32748/* confdefs.h.  */
32749_ACEOF
32750cat confdefs.h >>conftest.$ac_ext
32751cat >>conftest.$ac_ext <<_ACEOF
32752/* end confdefs.h.  */
32753$ac_includes_default
32754#include <pwd.h>
32755
32756int
32757main ()
32758{
32759static struct passwd ac_aggr;
32760if (sizeof ac_aggr.pw_gecos)
32761return 0;
32762  ;
32763  return 0;
32764}
32765_ACEOF
32766rm -f conftest.$ac_objext
32767if { (ac_try="$ac_compile"
32768case "(($ac_try" in
32769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770  *) ac_try_echo=$ac_try;;
32771esac
32772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773  (eval "$ac_compile") 2>conftest.er1
32774  ac_status=$?
32775  grep -v '^ *+' conftest.er1 >conftest.err
32776  rm -f conftest.er1
32777  cat conftest.err >&5
32778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779  (exit $ac_status); } && {
32780	 test -z "$ac_c_werror_flag" ||
32781	 test ! -s conftest.err
32782       } && test -s conftest.$ac_objext; then
32783  ac_cv_member_struct_passwd_pw_gecos=yes
32784else
32785  echo "$as_me: failed program was:" >&5
32786sed 's/^/| /' conftest.$ac_ext >&5
32787
32788	ac_cv_member_struct_passwd_pw_gecos=no
32789fi
32790
32791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32792fi
32793
32794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32795fi
32796{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32797echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32798if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32799
32800cat >>confdefs.h <<_ACEOF
32801#define HAVE_STRUCT_PASSWD_PW_GECOS 1
32802_ACEOF
32803
32804
32805fi
32806
32807{ echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32808echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32809if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32810  echo $ECHO_N "(cached) $ECHO_C" >&6
32811else
32812  cat >conftest.$ac_ext <<_ACEOF
32813/* confdefs.h.  */
32814_ACEOF
32815cat confdefs.h >>conftest.$ac_ext
32816cat >>conftest.$ac_ext <<_ACEOF
32817/* end confdefs.h.  */
32818$ac_includes_default
32819#include <pwd.h>
32820
32821int
32822main ()
32823{
32824static struct passwd ac_aggr;
32825if (ac_aggr.pw_passwd)
32826return 0;
32827  ;
32828  return 0;
32829}
32830_ACEOF
32831rm -f conftest.$ac_objext
32832if { (ac_try="$ac_compile"
32833case "(($ac_try" in
32834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835  *) ac_try_echo=$ac_try;;
32836esac
32837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838  (eval "$ac_compile") 2>conftest.er1
32839  ac_status=$?
32840  grep -v '^ *+' conftest.er1 >conftest.err
32841  rm -f conftest.er1
32842  cat conftest.err >&5
32843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844  (exit $ac_status); } && {
32845	 test -z "$ac_c_werror_flag" ||
32846	 test ! -s conftest.err
32847       } && test -s conftest.$ac_objext; then
32848  ac_cv_member_struct_passwd_pw_passwd=yes
32849else
32850  echo "$as_me: failed program was:" >&5
32851sed 's/^/| /' conftest.$ac_ext >&5
32852
32853	cat >conftest.$ac_ext <<_ACEOF
32854/* confdefs.h.  */
32855_ACEOF
32856cat confdefs.h >>conftest.$ac_ext
32857cat >>conftest.$ac_ext <<_ACEOF
32858/* end confdefs.h.  */
32859$ac_includes_default
32860#include <pwd.h>
32861
32862int
32863main ()
32864{
32865static struct passwd ac_aggr;
32866if (sizeof ac_aggr.pw_passwd)
32867return 0;
32868  ;
32869  return 0;
32870}
32871_ACEOF
32872rm -f conftest.$ac_objext
32873if { (ac_try="$ac_compile"
32874case "(($ac_try" in
32875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32876  *) ac_try_echo=$ac_try;;
32877esac
32878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32879  (eval "$ac_compile") 2>conftest.er1
32880  ac_status=$?
32881  grep -v '^ *+' conftest.er1 >conftest.err
32882  rm -f conftest.er1
32883  cat conftest.err >&5
32884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885  (exit $ac_status); } && {
32886	 test -z "$ac_c_werror_flag" ||
32887	 test ! -s conftest.err
32888       } && test -s conftest.$ac_objext; then
32889  ac_cv_member_struct_passwd_pw_passwd=yes
32890else
32891  echo "$as_me: failed program was:" >&5
32892sed 's/^/| /' conftest.$ac_ext >&5
32893
32894	ac_cv_member_struct_passwd_pw_passwd=no
32895fi
32896
32897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32898fi
32899
32900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32901fi
32902{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32903echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32904if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32905
32906cat >>confdefs.h <<_ACEOF
32907#define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32908_ACEOF
32909
32910
32911fi
32912
32913
32914{ echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32915echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32916if test "${ol_cv_c_upper_lower+set}" = set; then
32917  echo $ECHO_N "(cached) $ECHO_C" >&6
32918else
32919
32920	if test "$cross_compiling" = yes; then
32921  ol_cv_c_upper_lower=safe
32922else
32923  cat >conftest.$ac_ext <<_ACEOF
32924/* confdefs.h.  */
32925_ACEOF
32926cat confdefs.h >>conftest.$ac_ext
32927cat >>conftest.$ac_ext <<_ACEOF
32928/* end confdefs.h.  */
32929
32930#include <ctype.h>
32931main()
32932{
32933	if ('C' == toupper('C'))
32934		exit(0);
32935	else
32936		exit(1);
32937}
32938_ACEOF
32939rm -f conftest$ac_exeext
32940if { (ac_try="$ac_link"
32941case "(($ac_try" in
32942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32943  *) ac_try_echo=$ac_try;;
32944esac
32945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32946  (eval "$ac_link") 2>&5
32947  ac_status=$?
32948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32950  { (case "(($ac_try" in
32951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32952  *) ac_try_echo=$ac_try;;
32953esac
32954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32955  (eval "$ac_try") 2>&5
32956  ac_status=$?
32957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958  (exit $ac_status); }; }; then
32959  ol_cv_c_upper_lower=no
32960else
32961  echo "$as_me: program exited with status $ac_status" >&5
32962echo "$as_me: failed program was:" >&5
32963sed 's/^/| /' conftest.$ac_ext >&5
32964
32965( exit $ac_status )
32966ol_cv_c_upper_lower=yes
32967fi
32968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32969fi
32970
32971
32972fi
32973{ echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32974echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
32975if test $ol_cv_c_upper_lower != no ; then
32976
32977cat >>confdefs.h <<\_ACEOF
32978#define C_UPPER_LOWER 1
32979_ACEOF
32980
32981fi
32982
32983{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32984echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32985if test "${ac_cv_c_const+set}" = set; then
32986  echo $ECHO_N "(cached) $ECHO_C" >&6
32987else
32988  cat >conftest.$ac_ext <<_ACEOF
32989/* confdefs.h.  */
32990_ACEOF
32991cat confdefs.h >>conftest.$ac_ext
32992cat >>conftest.$ac_ext <<_ACEOF
32993/* end confdefs.h.  */
32994
32995int
32996main ()
32997{
32998/* FIXME: Include the comments suggested by Paul. */
32999#ifndef __cplusplus
33000  /* Ultrix mips cc rejects this.  */
33001  typedef int charset[2];
33002  const charset cs;
33003  /* SunOS 4.1.1 cc rejects this.  */
33004  char const *const *pcpcc;
33005  char **ppc;
33006  /* NEC SVR4.0.2 mips cc rejects this.  */
33007  struct point {int x, y;};
33008  static struct point const zero = {0,0};
33009  /* AIX XL C 1.02.0.0 rejects this.
33010     It does not let you subtract one const X* pointer from another in
33011     an arm of an if-expression whose if-part is not a constant
33012     expression */
33013  const char *g = "string";
33014  pcpcc = &g + (g ? g-g : 0);
33015  /* HPUX 7.0 cc rejects these. */
33016  ++pcpcc;
33017  ppc = (char**) pcpcc;
33018  pcpcc = (char const *const *) ppc;
33019  { /* SCO 3.2v4 cc rejects this.  */
33020    char *t;
33021    char const *s = 0 ? (char *) 0 : (char const *) 0;
33022
33023    *t++ = 0;
33024    if (s) return 0;
33025  }
33026  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33027    int x[] = {25, 17};
33028    const int *foo = &x[0];
33029    ++foo;
33030  }
33031  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33032    typedef const int *iptr;
33033    iptr p = 0;
33034    ++p;
33035  }
33036  { /* AIX XL C 1.02.0.0 rejects this saying
33037       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33038    struct s { int j; const int *ap[3]; };
33039    struct s *b; b->j = 5;
33040  }
33041  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33042    const int foo = 10;
33043    if (!foo) return 0;
33044  }
33045  return !cs[0] && !zero.x;
33046#endif
33047
33048  ;
33049  return 0;
33050}
33051_ACEOF
33052rm -f conftest.$ac_objext
33053if { (ac_try="$ac_compile"
33054case "(($ac_try" in
33055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33056  *) ac_try_echo=$ac_try;;
33057esac
33058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33059  (eval "$ac_compile") 2>conftest.er1
33060  ac_status=$?
33061  grep -v '^ *+' conftest.er1 >conftest.err
33062  rm -f conftest.er1
33063  cat conftest.err >&5
33064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065  (exit $ac_status); } && {
33066	 test -z "$ac_c_werror_flag" ||
33067	 test ! -s conftest.err
33068       } && test -s conftest.$ac_objext; then
33069  ac_cv_c_const=yes
33070else
33071  echo "$as_me: failed program was:" >&5
33072sed 's/^/| /' conftest.$ac_ext >&5
33073
33074	ac_cv_c_const=no
33075fi
33076
33077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33078fi
33079{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33080echo "${ECHO_T}$ac_cv_c_const" >&6; }
33081if test $ac_cv_c_const = no; then
33082
33083cat >>confdefs.h <<\_ACEOF
33084#define const
33085_ACEOF
33086
33087fi
33088
33089{ echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33090echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33091if test "${ol_cv_c_volatile+set}" = set; then
33092  echo $ECHO_N "(cached) $ECHO_C" >&6
33093else
33094  cat >conftest.$ac_ext <<_ACEOF
33095/* confdefs.h.  */
33096_ACEOF
33097cat confdefs.h >>conftest.$ac_ext
33098cat >>conftest.$ac_ext <<_ACEOF
33099/* end confdefs.h.  */
33100int x, y, z;
33101int
33102main ()
33103{
33104volatile int a; int * volatile b = x ? &y : &z;
33105      /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33106      *b = 0;
33107  ;
33108  return 0;
33109}
33110_ACEOF
33111rm -f conftest.$ac_objext
33112if { (ac_try="$ac_compile"
33113case "(($ac_try" in
33114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33115  *) ac_try_echo=$ac_try;;
33116esac
33117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33118  (eval "$ac_compile") 2>conftest.er1
33119  ac_status=$?
33120  grep -v '^ *+' conftest.er1 >conftest.err
33121  rm -f conftest.er1
33122  cat conftest.err >&5
33123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124  (exit $ac_status); } && {
33125	 test -z "$ac_c_werror_flag" ||
33126	 test ! -s conftest.err
33127       } && test -s conftest.$ac_objext; then
33128  ol_cv_c_volatile=yes
33129else
33130  echo "$as_me: failed program was:" >&5
33131sed 's/^/| /' conftest.$ac_ext >&5
33132
33133	ol_cv_c_volatile=no
33134fi
33135
33136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33137fi
33138{ echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33139echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33140  if test $ol_cv_c_volatile = yes; then
33141    :
33142  else
33143
33144cat >>confdefs.h <<\_ACEOF
33145#define volatile
33146_ACEOF
33147
33148  fi
33149
33150
33151#if test $cross_compiling = yes ; then
33152#	AC_MSG_WARN([Crossing compiling... all bets are off!])
33153#	AC_DEFINE(CROSS_COMPILING, 1, [define if cross compiling])
33154#else
33155#	AC_C_BIGENDIAN
33156#fi
33157
33158{ echo "$as_me:$LINENO: checking for short" >&5
33159echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33160if test "${ac_cv_type_short+set}" = set; then
33161  echo $ECHO_N "(cached) $ECHO_C" >&6
33162else
33163  cat >conftest.$ac_ext <<_ACEOF
33164/* confdefs.h.  */
33165_ACEOF
33166cat confdefs.h >>conftest.$ac_ext
33167cat >>conftest.$ac_ext <<_ACEOF
33168/* end confdefs.h.  */
33169$ac_includes_default
33170typedef short ac__type_new_;
33171int
33172main ()
33173{
33174if ((ac__type_new_ *) 0)
33175  return 0;
33176if (sizeof (ac__type_new_))
33177  return 0;
33178  ;
33179  return 0;
33180}
33181_ACEOF
33182rm -f conftest.$ac_objext
33183if { (ac_try="$ac_compile"
33184case "(($ac_try" in
33185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33186  *) ac_try_echo=$ac_try;;
33187esac
33188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33189  (eval "$ac_compile") 2>conftest.er1
33190  ac_status=$?
33191  grep -v '^ *+' conftest.er1 >conftest.err
33192  rm -f conftest.er1
33193  cat conftest.err >&5
33194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195  (exit $ac_status); } && {
33196	 test -z "$ac_c_werror_flag" ||
33197	 test ! -s conftest.err
33198       } && test -s conftest.$ac_objext; then
33199  ac_cv_type_short=yes
33200else
33201  echo "$as_me: failed program was:" >&5
33202sed 's/^/| /' conftest.$ac_ext >&5
33203
33204	ac_cv_type_short=no
33205fi
33206
33207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33208fi
33209{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33210echo "${ECHO_T}$ac_cv_type_short" >&6; }
33211
33212# The cast to long int works around a bug in the HP C Compiler
33213# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33214# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33215# This bug is HP SR number 8606223364.
33216{ echo "$as_me:$LINENO: checking size of short" >&5
33217echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33218if test "${ac_cv_sizeof_short+set}" = set; then
33219  echo $ECHO_N "(cached) $ECHO_C" >&6
33220else
33221  if test "$cross_compiling" = yes; then
33222  # Depending upon the size, compute the lo and hi bounds.
33223cat >conftest.$ac_ext <<_ACEOF
33224/* confdefs.h.  */
33225_ACEOF
33226cat confdefs.h >>conftest.$ac_ext
33227cat >>conftest.$ac_ext <<_ACEOF
33228/* end confdefs.h.  */
33229$ac_includes_default
33230   typedef short ac__type_sizeof_;
33231int
33232main ()
33233{
33234static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33235test_array [0] = 0
33236
33237  ;
33238  return 0;
33239}
33240_ACEOF
33241rm -f conftest.$ac_objext
33242if { (ac_try="$ac_compile"
33243case "(($ac_try" in
33244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245  *) ac_try_echo=$ac_try;;
33246esac
33247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248  (eval "$ac_compile") 2>conftest.er1
33249  ac_status=$?
33250  grep -v '^ *+' conftest.er1 >conftest.err
33251  rm -f conftest.er1
33252  cat conftest.err >&5
33253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254  (exit $ac_status); } && {
33255	 test -z "$ac_c_werror_flag" ||
33256	 test ! -s conftest.err
33257       } && test -s conftest.$ac_objext; then
33258  ac_lo=0 ac_mid=0
33259  while :; do
33260    cat >conftest.$ac_ext <<_ACEOF
33261/* confdefs.h.  */
33262_ACEOF
33263cat confdefs.h >>conftest.$ac_ext
33264cat >>conftest.$ac_ext <<_ACEOF
33265/* end confdefs.h.  */
33266$ac_includes_default
33267   typedef short ac__type_sizeof_;
33268int
33269main ()
33270{
33271static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33272test_array [0] = 0
33273
33274  ;
33275  return 0;
33276}
33277_ACEOF
33278rm -f conftest.$ac_objext
33279if { (ac_try="$ac_compile"
33280case "(($ac_try" in
33281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33282  *) ac_try_echo=$ac_try;;
33283esac
33284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33285  (eval "$ac_compile") 2>conftest.er1
33286  ac_status=$?
33287  grep -v '^ *+' conftest.er1 >conftest.err
33288  rm -f conftest.er1
33289  cat conftest.err >&5
33290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291  (exit $ac_status); } && {
33292	 test -z "$ac_c_werror_flag" ||
33293	 test ! -s conftest.err
33294       } && test -s conftest.$ac_objext; then
33295  ac_hi=$ac_mid; break
33296else
33297  echo "$as_me: failed program was:" >&5
33298sed 's/^/| /' conftest.$ac_ext >&5
33299
33300	ac_lo=`expr $ac_mid + 1`
33301			if test $ac_lo -le $ac_mid; then
33302			  ac_lo= ac_hi=
33303			  break
33304			fi
33305			ac_mid=`expr 2 '*' $ac_mid + 1`
33306fi
33307
33308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33309  done
33310else
33311  echo "$as_me: failed program was:" >&5
33312sed 's/^/| /' conftest.$ac_ext >&5
33313
33314	cat >conftest.$ac_ext <<_ACEOF
33315/* confdefs.h.  */
33316_ACEOF
33317cat confdefs.h >>conftest.$ac_ext
33318cat >>conftest.$ac_ext <<_ACEOF
33319/* end confdefs.h.  */
33320$ac_includes_default
33321   typedef short ac__type_sizeof_;
33322int
33323main ()
33324{
33325static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33326test_array [0] = 0
33327
33328  ;
33329  return 0;
33330}
33331_ACEOF
33332rm -f conftest.$ac_objext
33333if { (ac_try="$ac_compile"
33334case "(($ac_try" in
33335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33336  *) ac_try_echo=$ac_try;;
33337esac
33338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33339  (eval "$ac_compile") 2>conftest.er1
33340  ac_status=$?
33341  grep -v '^ *+' conftest.er1 >conftest.err
33342  rm -f conftest.er1
33343  cat conftest.err >&5
33344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345  (exit $ac_status); } && {
33346	 test -z "$ac_c_werror_flag" ||
33347	 test ! -s conftest.err
33348       } && test -s conftest.$ac_objext; then
33349  ac_hi=-1 ac_mid=-1
33350  while :; do
33351    cat >conftest.$ac_ext <<_ACEOF
33352/* confdefs.h.  */
33353_ACEOF
33354cat confdefs.h >>conftest.$ac_ext
33355cat >>conftest.$ac_ext <<_ACEOF
33356/* end confdefs.h.  */
33357$ac_includes_default
33358   typedef short ac__type_sizeof_;
33359int
33360main ()
33361{
33362static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33363test_array [0] = 0
33364
33365  ;
33366  return 0;
33367}
33368_ACEOF
33369rm -f conftest.$ac_objext
33370if { (ac_try="$ac_compile"
33371case "(($ac_try" in
33372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33373  *) ac_try_echo=$ac_try;;
33374esac
33375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33376  (eval "$ac_compile") 2>conftest.er1
33377  ac_status=$?
33378  grep -v '^ *+' conftest.er1 >conftest.err
33379  rm -f conftest.er1
33380  cat conftest.err >&5
33381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382  (exit $ac_status); } && {
33383	 test -z "$ac_c_werror_flag" ||
33384	 test ! -s conftest.err
33385       } && test -s conftest.$ac_objext; then
33386  ac_lo=$ac_mid; break
33387else
33388  echo "$as_me: failed program was:" >&5
33389sed 's/^/| /' conftest.$ac_ext >&5
33390
33391	ac_hi=`expr '(' $ac_mid ')' - 1`
33392			if test $ac_mid -le $ac_hi; then
33393			  ac_lo= ac_hi=
33394			  break
33395			fi
33396			ac_mid=`expr 2 '*' $ac_mid`
33397fi
33398
33399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33400  done
33401else
33402  echo "$as_me: failed program was:" >&5
33403sed 's/^/| /' conftest.$ac_ext >&5
33404
33405	ac_lo= ac_hi=
33406fi
33407
33408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33409fi
33410
33411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33412# Binary search between lo and hi bounds.
33413while test "x$ac_lo" != "x$ac_hi"; do
33414  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33415  cat >conftest.$ac_ext <<_ACEOF
33416/* confdefs.h.  */
33417_ACEOF
33418cat confdefs.h >>conftest.$ac_ext
33419cat >>conftest.$ac_ext <<_ACEOF
33420/* end confdefs.h.  */
33421$ac_includes_default
33422   typedef short ac__type_sizeof_;
33423int
33424main ()
33425{
33426static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33427test_array [0] = 0
33428
33429  ;
33430  return 0;
33431}
33432_ACEOF
33433rm -f conftest.$ac_objext
33434if { (ac_try="$ac_compile"
33435case "(($ac_try" in
33436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33437  *) ac_try_echo=$ac_try;;
33438esac
33439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33440  (eval "$ac_compile") 2>conftest.er1
33441  ac_status=$?
33442  grep -v '^ *+' conftest.er1 >conftest.err
33443  rm -f conftest.er1
33444  cat conftest.err >&5
33445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446  (exit $ac_status); } && {
33447	 test -z "$ac_c_werror_flag" ||
33448	 test ! -s conftest.err
33449       } && test -s conftest.$ac_objext; then
33450  ac_hi=$ac_mid
33451else
33452  echo "$as_me: failed program was:" >&5
33453sed 's/^/| /' conftest.$ac_ext >&5
33454
33455	ac_lo=`expr '(' $ac_mid ')' + 1`
33456fi
33457
33458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33459done
33460case $ac_lo in
33461?*) ac_cv_sizeof_short=$ac_lo;;
33462'') if test "$ac_cv_type_short" = yes; then
33463     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33464See \`config.log' for more details." >&5
33465echo "$as_me: error: cannot compute sizeof (short)
33466See \`config.log' for more details." >&2;}
33467   { (exit 77); exit 77; }; }
33468   else
33469     ac_cv_sizeof_short=0
33470   fi ;;
33471esac
33472else
33473  cat >conftest.$ac_ext <<_ACEOF
33474/* confdefs.h.  */
33475_ACEOF
33476cat confdefs.h >>conftest.$ac_ext
33477cat >>conftest.$ac_ext <<_ACEOF
33478/* end confdefs.h.  */
33479$ac_includes_default
33480   typedef short ac__type_sizeof_;
33481static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33482static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33483#include <stdio.h>
33484#include <stdlib.h>
33485int
33486main ()
33487{
33488
33489  FILE *f = fopen ("conftest.val", "w");
33490  if (! f)
33491    return 1;
33492  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33493    {
33494      long int i = longval ();
33495      if (i != ((long int) (sizeof (ac__type_sizeof_))))
33496	return 1;
33497      fprintf (f, "%ld\n", i);
33498    }
33499  else
33500    {
33501      unsigned long int i = ulongval ();
33502      if (i != ((long int) (sizeof (ac__type_sizeof_))))
33503	return 1;
33504      fprintf (f, "%lu\n", i);
33505    }
33506  return ferror (f) || fclose (f) != 0;
33507
33508  ;
33509  return 0;
33510}
33511_ACEOF
33512rm -f conftest$ac_exeext
33513if { (ac_try="$ac_link"
33514case "(($ac_try" in
33515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33516  *) ac_try_echo=$ac_try;;
33517esac
33518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33519  (eval "$ac_link") 2>&5
33520  ac_status=$?
33521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33523  { (case "(($ac_try" in
33524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33525  *) ac_try_echo=$ac_try;;
33526esac
33527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33528  (eval "$ac_try") 2>&5
33529  ac_status=$?
33530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531  (exit $ac_status); }; }; then
33532  ac_cv_sizeof_short=`cat conftest.val`
33533else
33534  echo "$as_me: program exited with status $ac_status" >&5
33535echo "$as_me: failed program was:" >&5
33536sed 's/^/| /' conftest.$ac_ext >&5
33537
33538( exit $ac_status )
33539if test "$ac_cv_type_short" = yes; then
33540     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33541See \`config.log' for more details." >&5
33542echo "$as_me: error: cannot compute sizeof (short)
33543See \`config.log' for more details." >&2;}
33544   { (exit 77); exit 77; }; }
33545   else
33546     ac_cv_sizeof_short=0
33547   fi
33548fi
33549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33550fi
33551rm -f conftest.val
33552fi
33553{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33554echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33555
33556
33557
33558cat >>confdefs.h <<_ACEOF
33559#define SIZEOF_SHORT $ac_cv_sizeof_short
33560_ACEOF
33561
33562
33563{ echo "$as_me:$LINENO: checking for int" >&5
33564echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33565if test "${ac_cv_type_int+set}" = set; then
33566  echo $ECHO_N "(cached) $ECHO_C" >&6
33567else
33568  cat >conftest.$ac_ext <<_ACEOF
33569/* confdefs.h.  */
33570_ACEOF
33571cat confdefs.h >>conftest.$ac_ext
33572cat >>conftest.$ac_ext <<_ACEOF
33573/* end confdefs.h.  */
33574$ac_includes_default
33575typedef int ac__type_new_;
33576int
33577main ()
33578{
33579if ((ac__type_new_ *) 0)
33580  return 0;
33581if (sizeof (ac__type_new_))
33582  return 0;
33583  ;
33584  return 0;
33585}
33586_ACEOF
33587rm -f conftest.$ac_objext
33588if { (ac_try="$ac_compile"
33589case "(($ac_try" in
33590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33591  *) ac_try_echo=$ac_try;;
33592esac
33593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33594  (eval "$ac_compile") 2>conftest.er1
33595  ac_status=$?
33596  grep -v '^ *+' conftest.er1 >conftest.err
33597  rm -f conftest.er1
33598  cat conftest.err >&5
33599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600  (exit $ac_status); } && {
33601	 test -z "$ac_c_werror_flag" ||
33602	 test ! -s conftest.err
33603       } && test -s conftest.$ac_objext; then
33604  ac_cv_type_int=yes
33605else
33606  echo "$as_me: failed program was:" >&5
33607sed 's/^/| /' conftest.$ac_ext >&5
33608
33609	ac_cv_type_int=no
33610fi
33611
33612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33613fi
33614{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33615echo "${ECHO_T}$ac_cv_type_int" >&6; }
33616
33617# The cast to long int works around a bug in the HP C Compiler
33618# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33619# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33620# This bug is HP SR number 8606223364.
33621{ echo "$as_me:$LINENO: checking size of int" >&5
33622echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33623if test "${ac_cv_sizeof_int+set}" = set; then
33624  echo $ECHO_N "(cached) $ECHO_C" >&6
33625else
33626  if test "$cross_compiling" = yes; then
33627  # Depending upon the size, compute the lo and hi bounds.
33628cat >conftest.$ac_ext <<_ACEOF
33629/* confdefs.h.  */
33630_ACEOF
33631cat confdefs.h >>conftest.$ac_ext
33632cat >>conftest.$ac_ext <<_ACEOF
33633/* end confdefs.h.  */
33634$ac_includes_default
33635   typedef int ac__type_sizeof_;
33636int
33637main ()
33638{
33639static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33640test_array [0] = 0
33641
33642  ;
33643  return 0;
33644}
33645_ACEOF
33646rm -f conftest.$ac_objext
33647if { (ac_try="$ac_compile"
33648case "(($ac_try" in
33649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33650  *) ac_try_echo=$ac_try;;
33651esac
33652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33653  (eval "$ac_compile") 2>conftest.er1
33654  ac_status=$?
33655  grep -v '^ *+' conftest.er1 >conftest.err
33656  rm -f conftest.er1
33657  cat conftest.err >&5
33658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659  (exit $ac_status); } && {
33660	 test -z "$ac_c_werror_flag" ||
33661	 test ! -s conftest.err
33662       } && test -s conftest.$ac_objext; then
33663  ac_lo=0 ac_mid=0
33664  while :; do
33665    cat >conftest.$ac_ext <<_ACEOF
33666/* confdefs.h.  */
33667_ACEOF
33668cat confdefs.h >>conftest.$ac_ext
33669cat >>conftest.$ac_ext <<_ACEOF
33670/* end confdefs.h.  */
33671$ac_includes_default
33672   typedef int ac__type_sizeof_;
33673int
33674main ()
33675{
33676static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33677test_array [0] = 0
33678
33679  ;
33680  return 0;
33681}
33682_ACEOF
33683rm -f conftest.$ac_objext
33684if { (ac_try="$ac_compile"
33685case "(($ac_try" in
33686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33687  *) ac_try_echo=$ac_try;;
33688esac
33689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33690  (eval "$ac_compile") 2>conftest.er1
33691  ac_status=$?
33692  grep -v '^ *+' conftest.er1 >conftest.err
33693  rm -f conftest.er1
33694  cat conftest.err >&5
33695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33696  (exit $ac_status); } && {
33697	 test -z "$ac_c_werror_flag" ||
33698	 test ! -s conftest.err
33699       } && test -s conftest.$ac_objext; then
33700  ac_hi=$ac_mid; break
33701else
33702  echo "$as_me: failed program was:" >&5
33703sed 's/^/| /' conftest.$ac_ext >&5
33704
33705	ac_lo=`expr $ac_mid + 1`
33706			if test $ac_lo -le $ac_mid; then
33707			  ac_lo= ac_hi=
33708			  break
33709			fi
33710			ac_mid=`expr 2 '*' $ac_mid + 1`
33711fi
33712
33713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33714  done
33715else
33716  echo "$as_me: failed program was:" >&5
33717sed 's/^/| /' conftest.$ac_ext >&5
33718
33719	cat >conftest.$ac_ext <<_ACEOF
33720/* confdefs.h.  */
33721_ACEOF
33722cat confdefs.h >>conftest.$ac_ext
33723cat >>conftest.$ac_ext <<_ACEOF
33724/* end confdefs.h.  */
33725$ac_includes_default
33726   typedef int ac__type_sizeof_;
33727int
33728main ()
33729{
33730static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33731test_array [0] = 0
33732
33733  ;
33734  return 0;
33735}
33736_ACEOF
33737rm -f conftest.$ac_objext
33738if { (ac_try="$ac_compile"
33739case "(($ac_try" in
33740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33741  *) ac_try_echo=$ac_try;;
33742esac
33743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33744  (eval "$ac_compile") 2>conftest.er1
33745  ac_status=$?
33746  grep -v '^ *+' conftest.er1 >conftest.err
33747  rm -f conftest.er1
33748  cat conftest.err >&5
33749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750  (exit $ac_status); } && {
33751	 test -z "$ac_c_werror_flag" ||
33752	 test ! -s conftest.err
33753       } && test -s conftest.$ac_objext; then
33754  ac_hi=-1 ac_mid=-1
33755  while :; do
33756    cat >conftest.$ac_ext <<_ACEOF
33757/* confdefs.h.  */
33758_ACEOF
33759cat confdefs.h >>conftest.$ac_ext
33760cat >>conftest.$ac_ext <<_ACEOF
33761/* end confdefs.h.  */
33762$ac_includes_default
33763   typedef int ac__type_sizeof_;
33764int
33765main ()
33766{
33767static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33768test_array [0] = 0
33769
33770  ;
33771  return 0;
33772}
33773_ACEOF
33774rm -f conftest.$ac_objext
33775if { (ac_try="$ac_compile"
33776case "(($ac_try" in
33777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33778  *) ac_try_echo=$ac_try;;
33779esac
33780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33781  (eval "$ac_compile") 2>conftest.er1
33782  ac_status=$?
33783  grep -v '^ *+' conftest.er1 >conftest.err
33784  rm -f conftest.er1
33785  cat conftest.err >&5
33786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787  (exit $ac_status); } && {
33788	 test -z "$ac_c_werror_flag" ||
33789	 test ! -s conftest.err
33790       } && test -s conftest.$ac_objext; then
33791  ac_lo=$ac_mid; break
33792else
33793  echo "$as_me: failed program was:" >&5
33794sed 's/^/| /' conftest.$ac_ext >&5
33795
33796	ac_hi=`expr '(' $ac_mid ')' - 1`
33797			if test $ac_mid -le $ac_hi; then
33798			  ac_lo= ac_hi=
33799			  break
33800			fi
33801			ac_mid=`expr 2 '*' $ac_mid`
33802fi
33803
33804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33805  done
33806else
33807  echo "$as_me: failed program was:" >&5
33808sed 's/^/| /' conftest.$ac_ext >&5
33809
33810	ac_lo= ac_hi=
33811fi
33812
33813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33814fi
33815
33816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33817# Binary search between lo and hi bounds.
33818while test "x$ac_lo" != "x$ac_hi"; do
33819  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33820  cat >conftest.$ac_ext <<_ACEOF
33821/* confdefs.h.  */
33822_ACEOF
33823cat confdefs.h >>conftest.$ac_ext
33824cat >>conftest.$ac_ext <<_ACEOF
33825/* end confdefs.h.  */
33826$ac_includes_default
33827   typedef int ac__type_sizeof_;
33828int
33829main ()
33830{
33831static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33832test_array [0] = 0
33833
33834  ;
33835  return 0;
33836}
33837_ACEOF
33838rm -f conftest.$ac_objext
33839if { (ac_try="$ac_compile"
33840case "(($ac_try" in
33841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33842  *) ac_try_echo=$ac_try;;
33843esac
33844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33845  (eval "$ac_compile") 2>conftest.er1
33846  ac_status=$?
33847  grep -v '^ *+' conftest.er1 >conftest.err
33848  rm -f conftest.er1
33849  cat conftest.err >&5
33850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33851  (exit $ac_status); } && {
33852	 test -z "$ac_c_werror_flag" ||
33853	 test ! -s conftest.err
33854       } && test -s conftest.$ac_objext; then
33855  ac_hi=$ac_mid
33856else
33857  echo "$as_me: failed program was:" >&5
33858sed 's/^/| /' conftest.$ac_ext >&5
33859
33860	ac_lo=`expr '(' $ac_mid ')' + 1`
33861fi
33862
33863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33864done
33865case $ac_lo in
33866?*) ac_cv_sizeof_int=$ac_lo;;
33867'') if test "$ac_cv_type_int" = yes; then
33868     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33869See \`config.log' for more details." >&5
33870echo "$as_me: error: cannot compute sizeof (int)
33871See \`config.log' for more details." >&2;}
33872   { (exit 77); exit 77; }; }
33873   else
33874     ac_cv_sizeof_int=0
33875   fi ;;
33876esac
33877else
33878  cat >conftest.$ac_ext <<_ACEOF
33879/* confdefs.h.  */
33880_ACEOF
33881cat confdefs.h >>conftest.$ac_ext
33882cat >>conftest.$ac_ext <<_ACEOF
33883/* end confdefs.h.  */
33884$ac_includes_default
33885   typedef int ac__type_sizeof_;
33886static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33887static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33888#include <stdio.h>
33889#include <stdlib.h>
33890int
33891main ()
33892{
33893
33894  FILE *f = fopen ("conftest.val", "w");
33895  if (! f)
33896    return 1;
33897  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33898    {
33899      long int i = longval ();
33900      if (i != ((long int) (sizeof (ac__type_sizeof_))))
33901	return 1;
33902      fprintf (f, "%ld\n", i);
33903    }
33904  else
33905    {
33906      unsigned long int i = ulongval ();
33907      if (i != ((long int) (sizeof (ac__type_sizeof_))))
33908	return 1;
33909      fprintf (f, "%lu\n", i);
33910    }
33911  return ferror (f) || fclose (f) != 0;
33912
33913  ;
33914  return 0;
33915}
33916_ACEOF
33917rm -f conftest$ac_exeext
33918if { (ac_try="$ac_link"
33919case "(($ac_try" in
33920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33921  *) ac_try_echo=$ac_try;;
33922esac
33923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33924  (eval "$ac_link") 2>&5
33925  ac_status=$?
33926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33928  { (case "(($ac_try" in
33929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930  *) ac_try_echo=$ac_try;;
33931esac
33932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33933  (eval "$ac_try") 2>&5
33934  ac_status=$?
33935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936  (exit $ac_status); }; }; then
33937  ac_cv_sizeof_int=`cat conftest.val`
33938else
33939  echo "$as_me: program exited with status $ac_status" >&5
33940echo "$as_me: failed program was:" >&5
33941sed 's/^/| /' conftest.$ac_ext >&5
33942
33943( exit $ac_status )
33944if test "$ac_cv_type_int" = yes; then
33945     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33946See \`config.log' for more details." >&5
33947echo "$as_me: error: cannot compute sizeof (int)
33948See \`config.log' for more details." >&2;}
33949   { (exit 77); exit 77; }; }
33950   else
33951     ac_cv_sizeof_int=0
33952   fi
33953fi
33954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33955fi
33956rm -f conftest.val
33957fi
33958{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
33959echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
33960
33961
33962
33963cat >>confdefs.h <<_ACEOF
33964#define SIZEOF_INT $ac_cv_sizeof_int
33965_ACEOF
33966
33967
33968# disable for cross compiling
33969#AC_CHECK_SIZEOF(long)
33970{ echo "$as_me:$LINENO: checking for long long" >&5
33971echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
33972if test "${ac_cv_type_long_long+set}" = set; then
33973  echo $ECHO_N "(cached) $ECHO_C" >&6
33974else
33975  cat >conftest.$ac_ext <<_ACEOF
33976/* confdefs.h.  */
33977_ACEOF
33978cat confdefs.h >>conftest.$ac_ext
33979cat >>conftest.$ac_ext <<_ACEOF
33980/* end confdefs.h.  */
33981$ac_includes_default
33982typedef long long ac__type_new_;
33983int
33984main ()
33985{
33986if ((ac__type_new_ *) 0)
33987  return 0;
33988if (sizeof (ac__type_new_))
33989  return 0;
33990  ;
33991  return 0;
33992}
33993_ACEOF
33994rm -f conftest.$ac_objext
33995if { (ac_try="$ac_compile"
33996case "(($ac_try" in
33997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33998  *) ac_try_echo=$ac_try;;
33999esac
34000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34001  (eval "$ac_compile") 2>conftest.er1
34002  ac_status=$?
34003  grep -v '^ *+' conftest.er1 >conftest.err
34004  rm -f conftest.er1
34005  cat conftest.err >&5
34006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007  (exit $ac_status); } && {
34008	 test -z "$ac_c_werror_flag" ||
34009	 test ! -s conftest.err
34010       } && test -s conftest.$ac_objext; then
34011  ac_cv_type_long_long=yes
34012else
34013  echo "$as_me: failed program was:" >&5
34014sed 's/^/| /' conftest.$ac_ext >&5
34015
34016	ac_cv_type_long_long=no
34017fi
34018
34019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34020fi
34021{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34022echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34023
34024# The cast to long int works around a bug in the HP C Compiler
34025# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34026# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34027# This bug is HP SR number 8606223364.
34028{ echo "$as_me:$LINENO: checking size of long long" >&5
34029echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34030if test "${ac_cv_sizeof_long_long+set}" = set; then
34031  echo $ECHO_N "(cached) $ECHO_C" >&6
34032else
34033  if test "$cross_compiling" = yes; then
34034  # Depending upon the size, compute the lo and hi bounds.
34035cat >conftest.$ac_ext <<_ACEOF
34036/* confdefs.h.  */
34037_ACEOF
34038cat confdefs.h >>conftest.$ac_ext
34039cat >>conftest.$ac_ext <<_ACEOF
34040/* end confdefs.h.  */
34041$ac_includes_default
34042   typedef long long ac__type_sizeof_;
34043int
34044main ()
34045{
34046static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34047test_array [0] = 0
34048
34049  ;
34050  return 0;
34051}
34052_ACEOF
34053rm -f conftest.$ac_objext
34054if { (ac_try="$ac_compile"
34055case "(($ac_try" in
34056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057  *) ac_try_echo=$ac_try;;
34058esac
34059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060  (eval "$ac_compile") 2>conftest.er1
34061  ac_status=$?
34062  grep -v '^ *+' conftest.er1 >conftest.err
34063  rm -f conftest.er1
34064  cat conftest.err >&5
34065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066  (exit $ac_status); } && {
34067	 test -z "$ac_c_werror_flag" ||
34068	 test ! -s conftest.err
34069       } && test -s conftest.$ac_objext; then
34070  ac_lo=0 ac_mid=0
34071  while :; do
34072    cat >conftest.$ac_ext <<_ACEOF
34073/* confdefs.h.  */
34074_ACEOF
34075cat confdefs.h >>conftest.$ac_ext
34076cat >>conftest.$ac_ext <<_ACEOF
34077/* end confdefs.h.  */
34078$ac_includes_default
34079   typedef long long ac__type_sizeof_;
34080int
34081main ()
34082{
34083static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34084test_array [0] = 0
34085
34086  ;
34087  return 0;
34088}
34089_ACEOF
34090rm -f conftest.$ac_objext
34091if { (ac_try="$ac_compile"
34092case "(($ac_try" in
34093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34094  *) ac_try_echo=$ac_try;;
34095esac
34096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34097  (eval "$ac_compile") 2>conftest.er1
34098  ac_status=$?
34099  grep -v '^ *+' conftest.er1 >conftest.err
34100  rm -f conftest.er1
34101  cat conftest.err >&5
34102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103  (exit $ac_status); } && {
34104	 test -z "$ac_c_werror_flag" ||
34105	 test ! -s conftest.err
34106       } && test -s conftest.$ac_objext; then
34107  ac_hi=$ac_mid; break
34108else
34109  echo "$as_me: failed program was:" >&5
34110sed 's/^/| /' conftest.$ac_ext >&5
34111
34112	ac_lo=`expr $ac_mid + 1`
34113			if test $ac_lo -le $ac_mid; then
34114			  ac_lo= ac_hi=
34115			  break
34116			fi
34117			ac_mid=`expr 2 '*' $ac_mid + 1`
34118fi
34119
34120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34121  done
34122else
34123  echo "$as_me: failed program was:" >&5
34124sed 's/^/| /' conftest.$ac_ext >&5
34125
34126	cat >conftest.$ac_ext <<_ACEOF
34127/* confdefs.h.  */
34128_ACEOF
34129cat confdefs.h >>conftest.$ac_ext
34130cat >>conftest.$ac_ext <<_ACEOF
34131/* end confdefs.h.  */
34132$ac_includes_default
34133   typedef long long ac__type_sizeof_;
34134int
34135main ()
34136{
34137static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34138test_array [0] = 0
34139
34140  ;
34141  return 0;
34142}
34143_ACEOF
34144rm -f conftest.$ac_objext
34145if { (ac_try="$ac_compile"
34146case "(($ac_try" in
34147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34148  *) ac_try_echo=$ac_try;;
34149esac
34150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34151  (eval "$ac_compile") 2>conftest.er1
34152  ac_status=$?
34153  grep -v '^ *+' conftest.er1 >conftest.err
34154  rm -f conftest.er1
34155  cat conftest.err >&5
34156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157  (exit $ac_status); } && {
34158	 test -z "$ac_c_werror_flag" ||
34159	 test ! -s conftest.err
34160       } && test -s conftest.$ac_objext; then
34161  ac_hi=-1 ac_mid=-1
34162  while :; do
34163    cat >conftest.$ac_ext <<_ACEOF
34164/* confdefs.h.  */
34165_ACEOF
34166cat confdefs.h >>conftest.$ac_ext
34167cat >>conftest.$ac_ext <<_ACEOF
34168/* end confdefs.h.  */
34169$ac_includes_default
34170   typedef long long ac__type_sizeof_;
34171int
34172main ()
34173{
34174static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34175test_array [0] = 0
34176
34177  ;
34178  return 0;
34179}
34180_ACEOF
34181rm -f conftest.$ac_objext
34182if { (ac_try="$ac_compile"
34183case "(($ac_try" in
34184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34185  *) ac_try_echo=$ac_try;;
34186esac
34187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34188  (eval "$ac_compile") 2>conftest.er1
34189  ac_status=$?
34190  grep -v '^ *+' conftest.er1 >conftest.err
34191  rm -f conftest.er1
34192  cat conftest.err >&5
34193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194  (exit $ac_status); } && {
34195	 test -z "$ac_c_werror_flag" ||
34196	 test ! -s conftest.err
34197       } && test -s conftest.$ac_objext; then
34198  ac_lo=$ac_mid; break
34199else
34200  echo "$as_me: failed program was:" >&5
34201sed 's/^/| /' conftest.$ac_ext >&5
34202
34203	ac_hi=`expr '(' $ac_mid ')' - 1`
34204			if test $ac_mid -le $ac_hi; then
34205			  ac_lo= ac_hi=
34206			  break
34207			fi
34208			ac_mid=`expr 2 '*' $ac_mid`
34209fi
34210
34211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34212  done
34213else
34214  echo "$as_me: failed program was:" >&5
34215sed 's/^/| /' conftest.$ac_ext >&5
34216
34217	ac_lo= ac_hi=
34218fi
34219
34220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34221fi
34222
34223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34224# Binary search between lo and hi bounds.
34225while test "x$ac_lo" != "x$ac_hi"; do
34226  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34227  cat >conftest.$ac_ext <<_ACEOF
34228/* confdefs.h.  */
34229_ACEOF
34230cat confdefs.h >>conftest.$ac_ext
34231cat >>conftest.$ac_ext <<_ACEOF
34232/* end confdefs.h.  */
34233$ac_includes_default
34234   typedef long long ac__type_sizeof_;
34235int
34236main ()
34237{
34238static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34239test_array [0] = 0
34240
34241  ;
34242  return 0;
34243}
34244_ACEOF
34245rm -f conftest.$ac_objext
34246if { (ac_try="$ac_compile"
34247case "(($ac_try" in
34248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34249  *) ac_try_echo=$ac_try;;
34250esac
34251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34252  (eval "$ac_compile") 2>conftest.er1
34253  ac_status=$?
34254  grep -v '^ *+' conftest.er1 >conftest.err
34255  rm -f conftest.er1
34256  cat conftest.err >&5
34257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258  (exit $ac_status); } && {
34259	 test -z "$ac_c_werror_flag" ||
34260	 test ! -s conftest.err
34261       } && test -s conftest.$ac_objext; then
34262  ac_hi=$ac_mid
34263else
34264  echo "$as_me: failed program was:" >&5
34265sed 's/^/| /' conftest.$ac_ext >&5
34266
34267	ac_lo=`expr '(' $ac_mid ')' + 1`
34268fi
34269
34270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34271done
34272case $ac_lo in
34273?*) ac_cv_sizeof_long_long=$ac_lo;;
34274'') if test "$ac_cv_type_long_long" = yes; then
34275     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34276See \`config.log' for more details." >&5
34277echo "$as_me: error: cannot compute sizeof (long long)
34278See \`config.log' for more details." >&2;}
34279   { (exit 77); exit 77; }; }
34280   else
34281     ac_cv_sizeof_long_long=0
34282   fi ;;
34283esac
34284else
34285  cat >conftest.$ac_ext <<_ACEOF
34286/* confdefs.h.  */
34287_ACEOF
34288cat confdefs.h >>conftest.$ac_ext
34289cat >>conftest.$ac_ext <<_ACEOF
34290/* end confdefs.h.  */
34291$ac_includes_default
34292   typedef long long ac__type_sizeof_;
34293static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34294static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34295#include <stdio.h>
34296#include <stdlib.h>
34297int
34298main ()
34299{
34300
34301  FILE *f = fopen ("conftest.val", "w");
34302  if (! f)
34303    return 1;
34304  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34305    {
34306      long int i = longval ();
34307      if (i != ((long int) (sizeof (ac__type_sizeof_))))
34308	return 1;
34309      fprintf (f, "%ld\n", i);
34310    }
34311  else
34312    {
34313      unsigned long int i = ulongval ();
34314      if (i != ((long int) (sizeof (ac__type_sizeof_))))
34315	return 1;
34316      fprintf (f, "%lu\n", i);
34317    }
34318  return ferror (f) || fclose (f) != 0;
34319
34320  ;
34321  return 0;
34322}
34323_ACEOF
34324rm -f conftest$ac_exeext
34325if { (ac_try="$ac_link"
34326case "(($ac_try" in
34327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34328  *) ac_try_echo=$ac_try;;
34329esac
34330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34331  (eval "$ac_link") 2>&5
34332  ac_status=$?
34333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34335  { (case "(($ac_try" in
34336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34337  *) ac_try_echo=$ac_try;;
34338esac
34339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34340  (eval "$ac_try") 2>&5
34341  ac_status=$?
34342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343  (exit $ac_status); }; }; then
34344  ac_cv_sizeof_long_long=`cat conftest.val`
34345else
34346  echo "$as_me: program exited with status $ac_status" >&5
34347echo "$as_me: failed program was:" >&5
34348sed 's/^/| /' conftest.$ac_ext >&5
34349
34350( exit $ac_status )
34351if test "$ac_cv_type_long_long" = yes; then
34352     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34353See \`config.log' for more details." >&5
34354echo "$as_me: error: cannot compute sizeof (long long)
34355See \`config.log' for more details." >&2;}
34356   { (exit 77); exit 77; }; }
34357   else
34358     ac_cv_sizeof_long_long=0
34359   fi
34360fi
34361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34362fi
34363rm -f conftest.val
34364fi
34365{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
34366echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
34367
34368
34369
34370cat >>confdefs.h <<_ACEOF
34371#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34372_ACEOF
34373
34374
34375{ echo "$as_me:$LINENO: checking for wchar_t" >&5
34376echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
34377if test "${ac_cv_type_wchar_t+set}" = set; then
34378  echo $ECHO_N "(cached) $ECHO_C" >&6
34379else
34380  cat >conftest.$ac_ext <<_ACEOF
34381/* confdefs.h.  */
34382_ACEOF
34383cat confdefs.h >>conftest.$ac_ext
34384cat >>conftest.$ac_ext <<_ACEOF
34385/* end confdefs.h.  */
34386$ac_includes_default
34387typedef wchar_t ac__type_new_;
34388int
34389main ()
34390{
34391if ((ac__type_new_ *) 0)
34392  return 0;
34393if (sizeof (ac__type_new_))
34394  return 0;
34395  ;
34396  return 0;
34397}
34398_ACEOF
34399rm -f conftest.$ac_objext
34400if { (ac_try="$ac_compile"
34401case "(($ac_try" in
34402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34403  *) ac_try_echo=$ac_try;;
34404esac
34405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34406  (eval "$ac_compile") 2>conftest.er1
34407  ac_status=$?
34408  grep -v '^ *+' conftest.er1 >conftest.err
34409  rm -f conftest.er1
34410  cat conftest.err >&5
34411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34412  (exit $ac_status); } && {
34413	 test -z "$ac_c_werror_flag" ||
34414	 test ! -s conftest.err
34415       } && test -s conftest.$ac_objext; then
34416  ac_cv_type_wchar_t=yes
34417else
34418  echo "$as_me: failed program was:" >&5
34419sed 's/^/| /' conftest.$ac_ext >&5
34420
34421	ac_cv_type_wchar_t=no
34422fi
34423
34424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34425fi
34426{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
34427echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
34428
34429# The cast to long int works around a bug in the HP C Compiler
34430# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34431# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34432# This bug is HP SR number 8606223364.
34433{ echo "$as_me:$LINENO: checking size of wchar_t" >&5
34434echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
34435if test "${ac_cv_sizeof_wchar_t+set}" = set; then
34436  echo $ECHO_N "(cached) $ECHO_C" >&6
34437else
34438  if test "$cross_compiling" = yes; then
34439  # Depending upon the size, compute the lo and hi bounds.
34440cat >conftest.$ac_ext <<_ACEOF
34441/* confdefs.h.  */
34442_ACEOF
34443cat confdefs.h >>conftest.$ac_ext
34444cat >>conftest.$ac_ext <<_ACEOF
34445/* end confdefs.h.  */
34446$ac_includes_default
34447   typedef wchar_t ac__type_sizeof_;
34448int
34449main ()
34450{
34451static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34452test_array [0] = 0
34453
34454  ;
34455  return 0;
34456}
34457_ACEOF
34458rm -f conftest.$ac_objext
34459if { (ac_try="$ac_compile"
34460case "(($ac_try" in
34461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34462  *) ac_try_echo=$ac_try;;
34463esac
34464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34465  (eval "$ac_compile") 2>conftest.er1
34466  ac_status=$?
34467  grep -v '^ *+' conftest.er1 >conftest.err
34468  rm -f conftest.er1
34469  cat conftest.err >&5
34470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471  (exit $ac_status); } && {
34472	 test -z "$ac_c_werror_flag" ||
34473	 test ! -s conftest.err
34474       } && test -s conftest.$ac_objext; then
34475  ac_lo=0 ac_mid=0
34476  while :; do
34477    cat >conftest.$ac_ext <<_ACEOF
34478/* confdefs.h.  */
34479_ACEOF
34480cat confdefs.h >>conftest.$ac_ext
34481cat >>conftest.$ac_ext <<_ACEOF
34482/* end confdefs.h.  */
34483$ac_includes_default
34484   typedef wchar_t ac__type_sizeof_;
34485int
34486main ()
34487{
34488static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34489test_array [0] = 0
34490
34491  ;
34492  return 0;
34493}
34494_ACEOF
34495rm -f conftest.$ac_objext
34496if { (ac_try="$ac_compile"
34497case "(($ac_try" in
34498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34499  *) ac_try_echo=$ac_try;;
34500esac
34501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34502  (eval "$ac_compile") 2>conftest.er1
34503  ac_status=$?
34504  grep -v '^ *+' conftest.er1 >conftest.err
34505  rm -f conftest.er1
34506  cat conftest.err >&5
34507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34508  (exit $ac_status); } && {
34509	 test -z "$ac_c_werror_flag" ||
34510	 test ! -s conftest.err
34511       } && test -s conftest.$ac_objext; then
34512  ac_hi=$ac_mid; break
34513else
34514  echo "$as_me: failed program was:" >&5
34515sed 's/^/| /' conftest.$ac_ext >&5
34516
34517	ac_lo=`expr $ac_mid + 1`
34518			if test $ac_lo -le $ac_mid; then
34519			  ac_lo= ac_hi=
34520			  break
34521			fi
34522			ac_mid=`expr 2 '*' $ac_mid + 1`
34523fi
34524
34525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34526  done
34527else
34528  echo "$as_me: failed program was:" >&5
34529sed 's/^/| /' conftest.$ac_ext >&5
34530
34531	cat >conftest.$ac_ext <<_ACEOF
34532/* confdefs.h.  */
34533_ACEOF
34534cat confdefs.h >>conftest.$ac_ext
34535cat >>conftest.$ac_ext <<_ACEOF
34536/* end confdefs.h.  */
34537$ac_includes_default
34538   typedef wchar_t ac__type_sizeof_;
34539int
34540main ()
34541{
34542static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34543test_array [0] = 0
34544
34545  ;
34546  return 0;
34547}
34548_ACEOF
34549rm -f conftest.$ac_objext
34550if { (ac_try="$ac_compile"
34551case "(($ac_try" in
34552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34553  *) ac_try_echo=$ac_try;;
34554esac
34555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34556  (eval "$ac_compile") 2>conftest.er1
34557  ac_status=$?
34558  grep -v '^ *+' conftest.er1 >conftest.err
34559  rm -f conftest.er1
34560  cat conftest.err >&5
34561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562  (exit $ac_status); } && {
34563	 test -z "$ac_c_werror_flag" ||
34564	 test ! -s conftest.err
34565       } && test -s conftest.$ac_objext; then
34566  ac_hi=-1 ac_mid=-1
34567  while :; do
34568    cat >conftest.$ac_ext <<_ACEOF
34569/* confdefs.h.  */
34570_ACEOF
34571cat confdefs.h >>conftest.$ac_ext
34572cat >>conftest.$ac_ext <<_ACEOF
34573/* end confdefs.h.  */
34574$ac_includes_default
34575   typedef wchar_t ac__type_sizeof_;
34576int
34577main ()
34578{
34579static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34580test_array [0] = 0
34581
34582  ;
34583  return 0;
34584}
34585_ACEOF
34586rm -f conftest.$ac_objext
34587if { (ac_try="$ac_compile"
34588case "(($ac_try" in
34589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34590  *) ac_try_echo=$ac_try;;
34591esac
34592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34593  (eval "$ac_compile") 2>conftest.er1
34594  ac_status=$?
34595  grep -v '^ *+' conftest.er1 >conftest.err
34596  rm -f conftest.er1
34597  cat conftest.err >&5
34598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599  (exit $ac_status); } && {
34600	 test -z "$ac_c_werror_flag" ||
34601	 test ! -s conftest.err
34602       } && test -s conftest.$ac_objext; then
34603  ac_lo=$ac_mid; break
34604else
34605  echo "$as_me: failed program was:" >&5
34606sed 's/^/| /' conftest.$ac_ext >&5
34607
34608	ac_hi=`expr '(' $ac_mid ')' - 1`
34609			if test $ac_mid -le $ac_hi; then
34610			  ac_lo= ac_hi=
34611			  break
34612			fi
34613			ac_mid=`expr 2 '*' $ac_mid`
34614fi
34615
34616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34617  done
34618else
34619  echo "$as_me: failed program was:" >&5
34620sed 's/^/| /' conftest.$ac_ext >&5
34621
34622	ac_lo= ac_hi=
34623fi
34624
34625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34626fi
34627
34628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34629# Binary search between lo and hi bounds.
34630while test "x$ac_lo" != "x$ac_hi"; do
34631  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34632  cat >conftest.$ac_ext <<_ACEOF
34633/* confdefs.h.  */
34634_ACEOF
34635cat confdefs.h >>conftest.$ac_ext
34636cat >>conftest.$ac_ext <<_ACEOF
34637/* end confdefs.h.  */
34638$ac_includes_default
34639   typedef wchar_t ac__type_sizeof_;
34640int
34641main ()
34642{
34643static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34644test_array [0] = 0
34645
34646  ;
34647  return 0;
34648}
34649_ACEOF
34650rm -f conftest.$ac_objext
34651if { (ac_try="$ac_compile"
34652case "(($ac_try" in
34653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34654  *) ac_try_echo=$ac_try;;
34655esac
34656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34657  (eval "$ac_compile") 2>conftest.er1
34658  ac_status=$?
34659  grep -v '^ *+' conftest.er1 >conftest.err
34660  rm -f conftest.er1
34661  cat conftest.err >&5
34662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663  (exit $ac_status); } && {
34664	 test -z "$ac_c_werror_flag" ||
34665	 test ! -s conftest.err
34666       } && test -s conftest.$ac_objext; then
34667  ac_hi=$ac_mid
34668else
34669  echo "$as_me: failed program was:" >&5
34670sed 's/^/| /' conftest.$ac_ext >&5
34671
34672	ac_lo=`expr '(' $ac_mid ')' + 1`
34673fi
34674
34675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34676done
34677case $ac_lo in
34678?*) ac_cv_sizeof_wchar_t=$ac_lo;;
34679'') if test "$ac_cv_type_wchar_t" = yes; then
34680     { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
34681See \`config.log' for more details." >&5
34682echo "$as_me: error: cannot compute sizeof (wchar_t)
34683See \`config.log' for more details." >&2;}
34684   { (exit 77); exit 77; }; }
34685   else
34686     ac_cv_sizeof_wchar_t=0
34687   fi ;;
34688esac
34689else
34690  cat >conftest.$ac_ext <<_ACEOF
34691/* confdefs.h.  */
34692_ACEOF
34693cat confdefs.h >>conftest.$ac_ext
34694cat >>conftest.$ac_ext <<_ACEOF
34695/* end confdefs.h.  */
34696$ac_includes_default
34697   typedef wchar_t ac__type_sizeof_;
34698static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34699static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34700#include <stdio.h>
34701#include <stdlib.h>
34702int
34703main ()
34704{
34705
34706  FILE *f = fopen ("conftest.val", "w");
34707  if (! f)
34708    return 1;
34709  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34710    {
34711      long int i = longval ();
34712      if (i != ((long int) (sizeof (ac__type_sizeof_))))
34713	return 1;
34714      fprintf (f, "%ld\n", i);
34715    }
34716  else
34717    {
34718      unsigned long int i = ulongval ();
34719      if (i != ((long int) (sizeof (ac__type_sizeof_))))
34720	return 1;
34721      fprintf (f, "%lu\n", i);
34722    }
34723  return ferror (f) || fclose (f) != 0;
34724
34725  ;
34726  return 0;
34727}
34728_ACEOF
34729rm -f conftest$ac_exeext
34730if { (ac_try="$ac_link"
34731case "(($ac_try" in
34732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34733  *) ac_try_echo=$ac_try;;
34734esac
34735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34736  (eval "$ac_link") 2>&5
34737  ac_status=$?
34738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34740  { (case "(($ac_try" in
34741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34742  *) ac_try_echo=$ac_try;;
34743esac
34744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34745  (eval "$ac_try") 2>&5
34746  ac_status=$?
34747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748  (exit $ac_status); }; }; then
34749  ac_cv_sizeof_wchar_t=`cat conftest.val`
34750else
34751  echo "$as_me: program exited with status $ac_status" >&5
34752echo "$as_me: failed program was:" >&5
34753sed 's/^/| /' conftest.$ac_ext >&5
34754
34755( exit $ac_status )
34756if test "$ac_cv_type_wchar_t" = yes; then
34757     { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
34758See \`config.log' for more details." >&5
34759echo "$as_me: error: cannot compute sizeof (wchar_t)
34760See \`config.log' for more details." >&2;}
34761   { (exit 77); exit 77; }; }
34762   else
34763     ac_cv_sizeof_wchar_t=0
34764   fi
34765fi
34766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34767fi
34768rm -f conftest.val
34769fi
34770{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
34771echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
34772
34773
34774
34775cat >>confdefs.h <<_ACEOF
34776#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
34777_ACEOF
34778
34779
34780
34781if test "$ac_cv_sizeof_int" -lt 4 ; then
34782	{ echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
34783echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
34784
34785
34786cat >>confdefs.h <<\_ACEOF
34787#define LBER_INT_T long
34788_ACEOF
34789
34790else
34791
34792cat >>confdefs.h <<\_ACEOF
34793#define LBER_INT_T int
34794_ACEOF
34795
34796fi
34797
34798
34799cat >>confdefs.h <<\_ACEOF
34800#define LBER_LEN_T long
34801_ACEOF
34802
34803
34804cat >>confdefs.h <<\_ACEOF
34805#define LBER_SOCKET_T int
34806_ACEOF
34807
34808
34809cat >>confdefs.h <<\_ACEOF
34810#define LBER_TAG_T long
34811_ACEOF
34812
34813
34814if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
34815	if test $ac_cv_sizeof_long_long -gt 4 ; then
34816		ol_with_mp=longlong
34817
34818cat >>confdefs.h <<\_ACEOF
34819#define USE_MP_LONG_LONG 1
34820_ACEOF
34821
34822	elif test $ol_with_mp = longlong ; then
34823		{ { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
34824echo "$as_me: error: long long unusable for multiple precision" >&2;}
34825   { (exit 1); exit 1; }; }
34826	fi
34827fi
34828if test $ol_with_mp = long || test $ol_with_mp = auto ; then
34829	if test $ac_cv_sizeof_long -gt 4 ; then
34830		ol_with_mp=long
34831
34832cat >>confdefs.h <<\_ACEOF
34833#define USE_MP_LONG 1
34834_ACEOF
34835
34836	elif test $ol_with_mp = long ; then
34837		{ { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
34838echo "$as_me: error: long unusable for multiple precision" >&2;}
34839   { (exit 1); exit 1; }; }
34840	fi
34841fi
34842if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
34843
34844for ac_header in openssl/bn.h
34845do
34846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34848  { echo "$as_me:$LINENO: checking for $ac_header" >&5
34849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34851  echo $ECHO_N "(cached) $ECHO_C" >&6
34852fi
34853ac_res=`eval echo '${'$as_ac_Header'}'`
34854	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34855echo "${ECHO_T}$ac_res" >&6; }
34856else
34857  # Is the header compilable?
34858{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34860cat >conftest.$ac_ext <<_ACEOF
34861/* confdefs.h.  */
34862_ACEOF
34863cat confdefs.h >>conftest.$ac_ext
34864cat >>conftest.$ac_ext <<_ACEOF
34865/* end confdefs.h.  */
34866$ac_includes_default
34867#include <$ac_header>
34868_ACEOF
34869rm -f conftest.$ac_objext
34870if { (ac_try="$ac_compile"
34871case "(($ac_try" in
34872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34873  *) ac_try_echo=$ac_try;;
34874esac
34875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34876  (eval "$ac_compile") 2>conftest.er1
34877  ac_status=$?
34878  grep -v '^ *+' conftest.er1 >conftest.err
34879  rm -f conftest.er1
34880  cat conftest.err >&5
34881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882  (exit $ac_status); } && {
34883	 test -z "$ac_c_werror_flag" ||
34884	 test ! -s conftest.err
34885       } && test -s conftest.$ac_objext; then
34886  ac_header_compiler=yes
34887else
34888  echo "$as_me: failed program was:" >&5
34889sed 's/^/| /' conftest.$ac_ext >&5
34890
34891	ac_header_compiler=no
34892fi
34893
34894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34895{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34896echo "${ECHO_T}$ac_header_compiler" >&6; }
34897
34898# Is the header present?
34899{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34901cat >conftest.$ac_ext <<_ACEOF
34902/* confdefs.h.  */
34903_ACEOF
34904cat confdefs.h >>conftest.$ac_ext
34905cat >>conftest.$ac_ext <<_ACEOF
34906/* end confdefs.h.  */
34907#include <$ac_header>
34908_ACEOF
34909if { (ac_try="$ac_cpp conftest.$ac_ext"
34910case "(($ac_try" in
34911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34912  *) ac_try_echo=$ac_try;;
34913esac
34914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34915  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34916  ac_status=$?
34917  grep -v '^ *+' conftest.er1 >conftest.err
34918  rm -f conftest.er1
34919  cat conftest.err >&5
34920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921  (exit $ac_status); } >/dev/null && {
34922	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34923	 test ! -s conftest.err
34924       }; then
34925  ac_header_preproc=yes
34926else
34927  echo "$as_me: failed program was:" >&5
34928sed 's/^/| /' conftest.$ac_ext >&5
34929
34930  ac_header_preproc=no
34931fi
34932
34933rm -f conftest.err conftest.$ac_ext
34934{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34935echo "${ECHO_T}$ac_header_preproc" >&6; }
34936
34937# So?  What about this header?
34938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34939  yes:no: )
34940    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34941echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34942    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34943echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34944    ac_header_preproc=yes
34945    ;;
34946  no:yes:* )
34947    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34948echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34949    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34950echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34951    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34952echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34953    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34954echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34955    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34956echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34957    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34958echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34959    ( cat <<\_ASBOX
34960## --------------------------------------------- ##
34961## Report this to <http://www.openldap.org/its/> ##
34962## --------------------------------------------- ##
34963_ASBOX
34964     ) | sed "s/^/$as_me: WARNING:     /" >&2
34965    ;;
34966esac
34967{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34970  echo $ECHO_N "(cached) $ECHO_C" >&6
34971else
34972  eval "$as_ac_Header=\$ac_header_preproc"
34973fi
34974ac_res=`eval echo '${'$as_ac_Header'}'`
34975	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34976echo "${ECHO_T}$ac_res" >&6; }
34977
34978fi
34979if test `eval echo '${'$as_ac_Header'}'` = yes; then
34980  cat >>confdefs.h <<_ACEOF
34981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34982_ACEOF
34983
34984fi
34985
34986done
34987
34988
34989for ac_header in openssl/crypto.h
34990do
34991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34993  { echo "$as_me:$LINENO: checking for $ac_header" >&5
34994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34996  echo $ECHO_N "(cached) $ECHO_C" >&6
34997fi
34998ac_res=`eval echo '${'$as_ac_Header'}'`
34999	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35000echo "${ECHO_T}$ac_res" >&6; }
35001else
35002  # Is the header compilable?
35003{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35005cat >conftest.$ac_ext <<_ACEOF
35006/* confdefs.h.  */
35007_ACEOF
35008cat confdefs.h >>conftest.$ac_ext
35009cat >>conftest.$ac_ext <<_ACEOF
35010/* end confdefs.h.  */
35011$ac_includes_default
35012#include <$ac_header>
35013_ACEOF
35014rm -f conftest.$ac_objext
35015if { (ac_try="$ac_compile"
35016case "(($ac_try" in
35017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35018  *) ac_try_echo=$ac_try;;
35019esac
35020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35021  (eval "$ac_compile") 2>conftest.er1
35022  ac_status=$?
35023  grep -v '^ *+' conftest.er1 >conftest.err
35024  rm -f conftest.er1
35025  cat conftest.err >&5
35026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35027  (exit $ac_status); } && {
35028	 test -z "$ac_c_werror_flag" ||
35029	 test ! -s conftest.err
35030       } && test -s conftest.$ac_objext; then
35031  ac_header_compiler=yes
35032else
35033  echo "$as_me: failed program was:" >&5
35034sed 's/^/| /' conftest.$ac_ext >&5
35035
35036	ac_header_compiler=no
35037fi
35038
35039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35040{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35041echo "${ECHO_T}$ac_header_compiler" >&6; }
35042
35043# Is the header present?
35044{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35045echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35046cat >conftest.$ac_ext <<_ACEOF
35047/* confdefs.h.  */
35048_ACEOF
35049cat confdefs.h >>conftest.$ac_ext
35050cat >>conftest.$ac_ext <<_ACEOF
35051/* end confdefs.h.  */
35052#include <$ac_header>
35053_ACEOF
35054if { (ac_try="$ac_cpp conftest.$ac_ext"
35055case "(($ac_try" in
35056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35057  *) ac_try_echo=$ac_try;;
35058esac
35059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35060  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35061  ac_status=$?
35062  grep -v '^ *+' conftest.er1 >conftest.err
35063  rm -f conftest.er1
35064  cat conftest.err >&5
35065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066  (exit $ac_status); } >/dev/null && {
35067	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35068	 test ! -s conftest.err
35069       }; then
35070  ac_header_preproc=yes
35071else
35072  echo "$as_me: failed program was:" >&5
35073sed 's/^/| /' conftest.$ac_ext >&5
35074
35075  ac_header_preproc=no
35076fi
35077
35078rm -f conftest.err conftest.$ac_ext
35079{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35080echo "${ECHO_T}$ac_header_preproc" >&6; }
35081
35082# So?  What about this header?
35083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35084  yes:no: )
35085    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35088echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35089    ac_header_preproc=yes
35090    ;;
35091  no:yes:* )
35092    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35093echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35094    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35095echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35096    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35097echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35098    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35099echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35100    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35101echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35102    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35103echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35104    ( cat <<\_ASBOX
35105## --------------------------------------------- ##
35106## Report this to <http://www.openldap.org/its/> ##
35107## --------------------------------------------- ##
35108_ASBOX
35109     ) | sed "s/^/$as_me: WARNING:     /" >&2
35110    ;;
35111esac
35112{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35115  echo $ECHO_N "(cached) $ECHO_C" >&6
35116else
35117  eval "$as_ac_Header=\$ac_header_preproc"
35118fi
35119ac_res=`eval echo '${'$as_ac_Header'}'`
35120	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35121echo "${ECHO_T}$ac_res" >&6; }
35122
35123fi
35124if test `eval echo '${'$as_ac_Header'}'` = yes; then
35125  cat >>confdefs.h <<_ACEOF
35126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35127_ACEOF
35128
35129fi
35130
35131done
35132
35133	if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35134		test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35135		test "$ol_with_tls" = "found" ; then
35136		ol_with_mp=bignum
35137
35138cat >>confdefs.h <<\_ACEOF
35139#define USE_MP_BIGNUM 1
35140_ACEOF
35141
35142	elif test $ol_with_mp = bignum ; then
35143		{ { echo "$as_me:$LINENO: error: bignum not available" >&5
35144echo "$as_me: error: bignum not available" >&2;}
35145   { (exit 1); exit 1; }; }
35146	fi
35147fi
35148if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35149
35150for ac_header in gmp.h
35151do
35152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35154  { echo "$as_me:$LINENO: checking for $ac_header" >&5
35155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35157  echo $ECHO_N "(cached) $ECHO_C" >&6
35158fi
35159ac_res=`eval echo '${'$as_ac_Header'}'`
35160	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35161echo "${ECHO_T}$ac_res" >&6; }
35162else
35163  # Is the header compilable?
35164{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35165echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35166cat >conftest.$ac_ext <<_ACEOF
35167/* confdefs.h.  */
35168_ACEOF
35169cat confdefs.h >>conftest.$ac_ext
35170cat >>conftest.$ac_ext <<_ACEOF
35171/* end confdefs.h.  */
35172$ac_includes_default
35173#include <$ac_header>
35174_ACEOF
35175rm -f conftest.$ac_objext
35176if { (ac_try="$ac_compile"
35177case "(($ac_try" in
35178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35179  *) ac_try_echo=$ac_try;;
35180esac
35181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35182  (eval "$ac_compile") 2>conftest.er1
35183  ac_status=$?
35184  grep -v '^ *+' conftest.er1 >conftest.err
35185  rm -f conftest.er1
35186  cat conftest.err >&5
35187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35188  (exit $ac_status); } && {
35189	 test -z "$ac_c_werror_flag" ||
35190	 test ! -s conftest.err
35191       } && test -s conftest.$ac_objext; then
35192  ac_header_compiler=yes
35193else
35194  echo "$as_me: failed program was:" >&5
35195sed 's/^/| /' conftest.$ac_ext >&5
35196
35197	ac_header_compiler=no
35198fi
35199
35200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35201{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35202echo "${ECHO_T}$ac_header_compiler" >&6; }
35203
35204# Is the header present?
35205{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35206echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35207cat >conftest.$ac_ext <<_ACEOF
35208/* confdefs.h.  */
35209_ACEOF
35210cat confdefs.h >>conftest.$ac_ext
35211cat >>conftest.$ac_ext <<_ACEOF
35212/* end confdefs.h.  */
35213#include <$ac_header>
35214_ACEOF
35215if { (ac_try="$ac_cpp conftest.$ac_ext"
35216case "(($ac_try" in
35217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35218  *) ac_try_echo=$ac_try;;
35219esac
35220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35221  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35222  ac_status=$?
35223  grep -v '^ *+' conftest.er1 >conftest.err
35224  rm -f conftest.er1
35225  cat conftest.err >&5
35226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227  (exit $ac_status); } >/dev/null && {
35228	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35229	 test ! -s conftest.err
35230       }; then
35231  ac_header_preproc=yes
35232else
35233  echo "$as_me: failed program was:" >&5
35234sed 's/^/| /' conftest.$ac_ext >&5
35235
35236  ac_header_preproc=no
35237fi
35238
35239rm -f conftest.err conftest.$ac_ext
35240{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35241echo "${ECHO_T}$ac_header_preproc" >&6; }
35242
35243# So?  What about this header?
35244case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35245  yes:no: )
35246    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35247echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35248    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35249echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35250    ac_header_preproc=yes
35251    ;;
35252  no:yes:* )
35253    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35254echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35255    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35256echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35257    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35258echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35259    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35260echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35261    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35262echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35263    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35264echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35265    ( cat <<\_ASBOX
35266## --------------------------------------------- ##
35267## Report this to <http://www.openldap.org/its/> ##
35268## --------------------------------------------- ##
35269_ASBOX
35270     ) | sed "s/^/$as_me: WARNING:     /" >&2
35271    ;;
35272esac
35273{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35276  echo $ECHO_N "(cached) $ECHO_C" >&6
35277else
35278  eval "$as_ac_Header=\$ac_header_preproc"
35279fi
35280ac_res=`eval echo '${'$as_ac_Header'}'`
35281	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35282echo "${ECHO_T}$ac_res" >&6; }
35283
35284fi
35285if test `eval echo '${'$as_ac_Header'}'` = yes; then
35286  cat >>confdefs.h <<_ACEOF
35287#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35288_ACEOF
35289
35290fi
35291
35292done
35293
35294
35295{ echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35296echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35297if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35298  echo $ECHO_N "(cached) $ECHO_C" >&6
35299else
35300  ac_check_lib_save_LIBS=$LIBS
35301LIBS="-lgmp  $LIBS"
35302cat >conftest.$ac_ext <<_ACEOF
35303/* confdefs.h.  */
35304_ACEOF
35305cat confdefs.h >>conftest.$ac_ext
35306cat >>conftest.$ac_ext <<_ACEOF
35307/* end confdefs.h.  */
35308
35309/* Override any GCC internal prototype to avoid an error.
35310   Use char because int might match the return type of a GCC
35311   builtin and then its argument prototype would still apply.  */
35312#ifdef __cplusplus
35313extern "C"
35314#endif
35315char __gmpz_add_ui ();
35316int
35317main ()
35318{
35319return __gmpz_add_ui ();
35320  ;
35321  return 0;
35322}
35323_ACEOF
35324rm -f conftest.$ac_objext conftest$ac_exeext
35325if { (ac_try="$ac_link"
35326case "(($ac_try" in
35327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35328  *) ac_try_echo=$ac_try;;
35329esac
35330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35331  (eval "$ac_link") 2>conftest.er1
35332  ac_status=$?
35333  grep -v '^ *+' conftest.er1 >conftest.err
35334  rm -f conftest.er1
35335  cat conftest.err >&5
35336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337  (exit $ac_status); } && {
35338	 test -z "$ac_c_werror_flag" ||
35339	 test ! -s conftest.err
35340       } && test -s conftest$ac_exeext &&
35341       $as_test_x conftest$ac_exeext; then
35342  ac_cv_lib_gmp___gmpz_add_ui=yes
35343else
35344  echo "$as_me: failed program was:" >&5
35345sed 's/^/| /' conftest.$ac_ext >&5
35346
35347	ac_cv_lib_gmp___gmpz_add_ui=no
35348fi
35349
35350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35351      conftest$ac_exeext conftest.$ac_ext
35352LIBS=$ac_check_lib_save_LIBS
35353fi
35354{ echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
35355echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
35356if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
35357  cat >>confdefs.h <<_ACEOF
35358#define HAVE_LIBGMP 1
35359_ACEOF
35360
35361  LIBS="-lgmp $LIBS"
35362
35363fi
35364
35365	if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
35366
35367cat >>confdefs.h <<\_ACEOF
35368#define USE_MP_GMP 1
35369_ACEOF
35370
35371		ol_with_mp=gmp
35372	elif test $ol_with_mp = gmp ; then
35373		{ { echo "$as_me:$LINENO: error: gmp not available" >&5
35374echo "$as_me: error: gmp not available" >&2;}
35375   { (exit 1); exit 1; }; }
35376	fi
35377fi
35378if test $ol_with_mp = auto ; then
35379	ol_with_mp=no
35380fi
35381
35382{ echo "$as_me:$LINENO: checking for working memcmp" >&5
35383echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
35384if test "${ac_cv_func_memcmp_working+set}" = set; then
35385  echo $ECHO_N "(cached) $ECHO_C" >&6
35386else
35387  if test "$cross_compiling" = yes; then
35388  ac_cv_func_memcmp_working=no
35389else
35390  cat >conftest.$ac_ext <<_ACEOF
35391/* confdefs.h.  */
35392_ACEOF
35393cat confdefs.h >>conftest.$ac_ext
35394cat >>conftest.$ac_ext <<_ACEOF
35395/* end confdefs.h.  */
35396$ac_includes_default
35397int
35398main ()
35399{
35400
35401  /* Some versions of memcmp are not 8-bit clean.  */
35402  char c0 = '\100', c1 = '\200', c2 = '\201';
35403  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
35404    return 1;
35405
35406  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
35407     or more and with at least one buffer not starting on a 4-byte boundary.
35408     William Lewis provided this test program.   */
35409  {
35410    char foo[21];
35411    char bar[21];
35412    int i;
35413    for (i = 0; i < 4; i++)
35414      {
35415	char *a = foo + i;
35416	char *b = bar + i;
35417	strcpy (a, "--------01111111");
35418	strcpy (b, "--------10000000");
35419	if (memcmp (a, b, 16) >= 0)
35420	  return 1;
35421      }
35422    return 0;
35423  }
35424
35425  ;
35426  return 0;
35427}
35428_ACEOF
35429rm -f conftest$ac_exeext
35430if { (ac_try="$ac_link"
35431case "(($ac_try" in
35432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35433  *) ac_try_echo=$ac_try;;
35434esac
35435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35436  (eval "$ac_link") 2>&5
35437  ac_status=$?
35438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35440  { (case "(($ac_try" in
35441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35442  *) ac_try_echo=$ac_try;;
35443esac
35444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35445  (eval "$ac_try") 2>&5
35446  ac_status=$?
35447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448  (exit $ac_status); }; }; then
35449  ac_cv_func_memcmp_working=yes
35450else
35451  echo "$as_me: program exited with status $ac_status" >&5
35452echo "$as_me: failed program was:" >&5
35453sed 's/^/| /' conftest.$ac_ext >&5
35454
35455( exit $ac_status )
35456ac_cv_func_memcmp_working=no
35457fi
35458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35459fi
35460
35461
35462fi
35463{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
35464echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
35465test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
35466  *" memcmp.$ac_objext "* ) ;;
35467  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
35468 ;;
35469esac
35470
35471
35472
35473if test $ac_cv_func_memcmp_working = no ; then
35474
35475cat >>confdefs.h <<\_ACEOF
35476#define NEED_MEMCMP_REPLACEMENT 1
35477_ACEOF
35478
35479fi
35480
35481
35482for ac_func in strftime
35483do
35484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35485{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35487if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35488  echo $ECHO_N "(cached) $ECHO_C" >&6
35489else
35490  cat >conftest.$ac_ext <<_ACEOF
35491/* confdefs.h.  */
35492_ACEOF
35493cat confdefs.h >>conftest.$ac_ext
35494cat >>conftest.$ac_ext <<_ACEOF
35495/* end confdefs.h.  */
35496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35497   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35498#define $ac_func innocuous_$ac_func
35499
35500/* System header to define __stub macros and hopefully few prototypes,
35501    which can conflict with char $ac_func (); below.
35502    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35503    <limits.h> exists even on freestanding compilers.  */
35504
35505#ifdef __STDC__
35506# include <limits.h>
35507#else
35508# include <assert.h>
35509#endif
35510
35511#undef $ac_func
35512
35513/* Override any GCC internal prototype to avoid an error.
35514   Use char because int might match the return type of a GCC
35515   builtin and then its argument prototype would still apply.  */
35516#ifdef __cplusplus
35517extern "C"
35518#endif
35519char $ac_func ();
35520/* The GNU C library defines this for functions which it implements
35521    to always fail with ENOSYS.  Some functions are actually named
35522    something starting with __ and the normal name is an alias.  */
35523#if defined __stub_$ac_func || defined __stub___$ac_func
35524choke me
35525#endif
35526
35527int
35528main ()
35529{
35530return $ac_func ();
35531  ;
35532  return 0;
35533}
35534_ACEOF
35535rm -f conftest.$ac_objext conftest$ac_exeext
35536if { (ac_try="$ac_link"
35537case "(($ac_try" in
35538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35539  *) ac_try_echo=$ac_try;;
35540esac
35541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35542  (eval "$ac_link") 2>conftest.er1
35543  ac_status=$?
35544  grep -v '^ *+' conftest.er1 >conftest.err
35545  rm -f conftest.er1
35546  cat conftest.err >&5
35547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548  (exit $ac_status); } && {
35549	 test -z "$ac_c_werror_flag" ||
35550	 test ! -s conftest.err
35551       } && test -s conftest$ac_exeext &&
35552       $as_test_x conftest$ac_exeext; then
35553  eval "$as_ac_var=yes"
35554else
35555  echo "$as_me: failed program was:" >&5
35556sed 's/^/| /' conftest.$ac_ext >&5
35557
35558	eval "$as_ac_var=no"
35559fi
35560
35561rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35562      conftest$ac_exeext conftest.$ac_ext
35563fi
35564ac_res=`eval echo '${'$as_ac_var'}'`
35565	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35566echo "${ECHO_T}$ac_res" >&6; }
35567if test `eval echo '${'$as_ac_var'}'` = yes; then
35568  cat >>confdefs.h <<_ACEOF
35569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35570_ACEOF
35571
35572else
35573  # strftime is in -lintl on SCO UNIX.
35574{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
35575echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
35576if test "${ac_cv_lib_intl_strftime+set}" = set; then
35577  echo $ECHO_N "(cached) $ECHO_C" >&6
35578else
35579  ac_check_lib_save_LIBS=$LIBS
35580LIBS="-lintl  $LIBS"
35581cat >conftest.$ac_ext <<_ACEOF
35582/* confdefs.h.  */
35583_ACEOF
35584cat confdefs.h >>conftest.$ac_ext
35585cat >>conftest.$ac_ext <<_ACEOF
35586/* end confdefs.h.  */
35587
35588/* Override any GCC internal prototype to avoid an error.
35589   Use char because int might match the return type of a GCC
35590   builtin and then its argument prototype would still apply.  */
35591#ifdef __cplusplus
35592extern "C"
35593#endif
35594char strftime ();
35595int
35596main ()
35597{
35598return strftime ();
35599  ;
35600  return 0;
35601}
35602_ACEOF
35603rm -f conftest.$ac_objext conftest$ac_exeext
35604if { (ac_try="$ac_link"
35605case "(($ac_try" in
35606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35607  *) ac_try_echo=$ac_try;;
35608esac
35609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35610  (eval "$ac_link") 2>conftest.er1
35611  ac_status=$?
35612  grep -v '^ *+' conftest.er1 >conftest.err
35613  rm -f conftest.er1
35614  cat conftest.err >&5
35615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35616  (exit $ac_status); } && {
35617	 test -z "$ac_c_werror_flag" ||
35618	 test ! -s conftest.err
35619       } && test -s conftest$ac_exeext &&
35620       $as_test_x conftest$ac_exeext; then
35621  ac_cv_lib_intl_strftime=yes
35622else
35623  echo "$as_me: failed program was:" >&5
35624sed 's/^/| /' conftest.$ac_ext >&5
35625
35626	ac_cv_lib_intl_strftime=no
35627fi
35628
35629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35630      conftest$ac_exeext conftest.$ac_ext
35631LIBS=$ac_check_lib_save_LIBS
35632fi
35633{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
35634echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
35635if test $ac_cv_lib_intl_strftime = yes; then
35636  cat >>confdefs.h <<\_ACEOF
35637#define HAVE_STRFTIME 1
35638_ACEOF
35639
35640LIBS="-lintl $LIBS"
35641fi
35642
35643fi
35644done
35645
35646
35647{ echo "$as_me:$LINENO: checking for inet_aton()" >&5
35648echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
35649if test "${ol_cv_func_inet_aton+set}" = set; then
35650  echo $ECHO_N "(cached) $ECHO_C" >&6
35651else
35652  cat >conftest.$ac_ext <<_ACEOF
35653/* confdefs.h.  */
35654_ACEOF
35655cat confdefs.h >>conftest.$ac_ext
35656cat >>conftest.$ac_ext <<_ACEOF
35657/* end confdefs.h.  */
35658
35659#ifdef HAVE_SYS_TYPES_H
35660#	include <sys/types.h>
35661#endif
35662#ifdef HAVE_SYS_SOCKET_H
35663#	include <sys/socket.h>
35664#	ifdef HAVE_SYS_SELECT_H
35665#		include <sys/select.h>
35666#	endif
35667#	include <netinet/in.h>
35668#	ifdef HAVE_ARPA_INET_H
35669#		include <arpa/inet.h>
35670#	endif
35671#endif
35672
35673int
35674main ()
35675{
35676struct in_addr in;
35677int rc = inet_aton( "255.255.255.255", &in );
35678  ;
35679  return 0;
35680}
35681_ACEOF
35682rm -f conftest.$ac_objext conftest$ac_exeext
35683if { (ac_try="$ac_link"
35684case "(($ac_try" in
35685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35686  *) ac_try_echo=$ac_try;;
35687esac
35688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35689  (eval "$ac_link") 2>conftest.er1
35690  ac_status=$?
35691  grep -v '^ *+' conftest.er1 >conftest.err
35692  rm -f conftest.er1
35693  cat conftest.err >&5
35694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695  (exit $ac_status); } && {
35696	 test -z "$ac_c_werror_flag" ||
35697	 test ! -s conftest.err
35698       } && test -s conftest$ac_exeext &&
35699       $as_test_x conftest$ac_exeext; then
35700  ol_cv_func_inet_aton=yes
35701else
35702  echo "$as_me: failed program was:" >&5
35703sed 's/^/| /' conftest.$ac_ext >&5
35704
35705	ol_cv_func_inet_aton=no
35706fi
35707
35708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35709      conftest$ac_exeext conftest.$ac_ext
35710fi
35711{ echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
35712echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
35713  if test $ol_cv_func_inet_aton != no; then
35714
35715cat >>confdefs.h <<\_ACEOF
35716#define HAVE_INET_ATON 1
35717_ACEOF
35718
35719  fi
35720
35721
35722{ echo "$as_me:$LINENO: checking for _spawnlp" >&5
35723echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
35724if test "${ac_cv_func__spawnlp+set}" = set; then
35725  echo $ECHO_N "(cached) $ECHO_C" >&6
35726else
35727  cat >conftest.$ac_ext <<_ACEOF
35728/* confdefs.h.  */
35729_ACEOF
35730cat confdefs.h >>conftest.$ac_ext
35731cat >>conftest.$ac_ext <<_ACEOF
35732/* end confdefs.h.  */
35733/* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
35734   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35735#define _spawnlp innocuous__spawnlp
35736
35737/* System header to define __stub macros and hopefully few prototypes,
35738    which can conflict with char _spawnlp (); below.
35739    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35740    <limits.h> exists even on freestanding compilers.  */
35741
35742#ifdef __STDC__
35743# include <limits.h>
35744#else
35745# include <assert.h>
35746#endif
35747
35748#undef _spawnlp
35749
35750/* Override any GCC internal prototype to avoid an error.
35751   Use char because int might match the return type of a GCC
35752   builtin and then its argument prototype would still apply.  */
35753#ifdef __cplusplus
35754extern "C"
35755#endif
35756char _spawnlp ();
35757/* The GNU C library defines this for functions which it implements
35758    to always fail with ENOSYS.  Some functions are actually named
35759    something starting with __ and the normal name is an alias.  */
35760#if defined __stub__spawnlp || defined __stub____spawnlp
35761choke me
35762#endif
35763
35764int
35765main ()
35766{
35767return _spawnlp ();
35768  ;
35769  return 0;
35770}
35771_ACEOF
35772rm -f conftest.$ac_objext conftest$ac_exeext
35773if { (ac_try="$ac_link"
35774case "(($ac_try" in
35775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35776  *) ac_try_echo=$ac_try;;
35777esac
35778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35779  (eval "$ac_link") 2>conftest.er1
35780  ac_status=$?
35781  grep -v '^ *+' conftest.er1 >conftest.err
35782  rm -f conftest.er1
35783  cat conftest.err >&5
35784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35785  (exit $ac_status); } && {
35786	 test -z "$ac_c_werror_flag" ||
35787	 test ! -s conftest.err
35788       } && test -s conftest$ac_exeext &&
35789       $as_test_x conftest$ac_exeext; then
35790  ac_cv_func__spawnlp=yes
35791else
35792  echo "$as_me: failed program was:" >&5
35793sed 's/^/| /' conftest.$ac_ext >&5
35794
35795	ac_cv_func__spawnlp=no
35796fi
35797
35798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35799      conftest$ac_exeext conftest.$ac_ext
35800fi
35801{ echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
35802echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
35803if test $ac_cv_func__spawnlp = yes; then
35804
35805cat >>confdefs.h <<\_ACEOF
35806#define HAVE_SPAWNLP 1
35807_ACEOF
35808
35809fi
35810
35811
35812{ echo "$as_me:$LINENO: checking for _snprintf" >&5
35813echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
35814if test "${ac_cv_func__snprintf+set}" = set; then
35815  echo $ECHO_N "(cached) $ECHO_C" >&6
35816else
35817  cat >conftest.$ac_ext <<_ACEOF
35818/* confdefs.h.  */
35819_ACEOF
35820cat confdefs.h >>conftest.$ac_ext
35821cat >>conftest.$ac_ext <<_ACEOF
35822/* end confdefs.h.  */
35823/* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
35824   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35825#define _snprintf innocuous__snprintf
35826
35827/* System header to define __stub macros and hopefully few prototypes,
35828    which can conflict with char _snprintf (); below.
35829    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35830    <limits.h> exists even on freestanding compilers.  */
35831
35832#ifdef __STDC__
35833# include <limits.h>
35834#else
35835# include <assert.h>
35836#endif
35837
35838#undef _snprintf
35839
35840/* Override any GCC internal prototype to avoid an error.
35841   Use char because int might match the return type of a GCC
35842   builtin and then its argument prototype would still apply.  */
35843#ifdef __cplusplus
35844extern "C"
35845#endif
35846char _snprintf ();
35847/* The GNU C library defines this for functions which it implements
35848    to always fail with ENOSYS.  Some functions are actually named
35849    something starting with __ and the normal name is an alias.  */
35850#if defined __stub__snprintf || defined __stub____snprintf
35851choke me
35852#endif
35853
35854int
35855main ()
35856{
35857return _snprintf ();
35858  ;
35859  return 0;
35860}
35861_ACEOF
35862rm -f conftest.$ac_objext conftest$ac_exeext
35863if { (ac_try="$ac_link"
35864case "(($ac_try" in
35865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35866  *) ac_try_echo=$ac_try;;
35867esac
35868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35869  (eval "$ac_link") 2>conftest.er1
35870  ac_status=$?
35871  grep -v '^ *+' conftest.er1 >conftest.err
35872  rm -f conftest.er1
35873  cat conftest.err >&5
35874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35875  (exit $ac_status); } && {
35876	 test -z "$ac_c_werror_flag" ||
35877	 test ! -s conftest.err
35878       } && test -s conftest$ac_exeext &&
35879       $as_test_x conftest$ac_exeext; then
35880  ac_cv_func__snprintf=yes
35881else
35882  echo "$as_me: failed program was:" >&5
35883sed 's/^/| /' conftest.$ac_ext >&5
35884
35885	ac_cv_func__snprintf=no
35886fi
35887
35888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35889      conftest$ac_exeext conftest.$ac_ext
35890fi
35891{ echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
35892echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
35893if test $ac_cv_func__snprintf = yes; then
35894  ac_cv_func_snprintf=yes
35895
35896cat >>confdefs.h <<\_ACEOF
35897#define snprintf _snprintf
35898_ACEOF
35899
35900
35901fi
35902
35903
35904
35905
35906for ac_func in vsnprintf _vsnprintf
35907do
35908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35909{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35912  echo $ECHO_N "(cached) $ECHO_C" >&6
35913else
35914  cat >conftest.$ac_ext <<_ACEOF
35915/* confdefs.h.  */
35916_ACEOF
35917cat confdefs.h >>conftest.$ac_ext
35918cat >>conftest.$ac_ext <<_ACEOF
35919/* end confdefs.h.  */
35920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35921   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35922#define $ac_func innocuous_$ac_func
35923
35924/* System header to define __stub macros and hopefully few prototypes,
35925    which can conflict with char $ac_func (); below.
35926    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35927    <limits.h> exists even on freestanding compilers.  */
35928
35929#ifdef __STDC__
35930# include <limits.h>
35931#else
35932# include <assert.h>
35933#endif
35934
35935#undef $ac_func
35936
35937/* Override any GCC internal prototype to avoid an error.
35938   Use char because int might match the return type of a GCC
35939   builtin and then its argument prototype would still apply.  */
35940#ifdef __cplusplus
35941extern "C"
35942#endif
35943char $ac_func ();
35944/* The GNU C library defines this for functions which it implements
35945    to always fail with ENOSYS.  Some functions are actually named
35946    something starting with __ and the normal name is an alias.  */
35947#if defined __stub_$ac_func || defined __stub___$ac_func
35948choke me
35949#endif
35950
35951int
35952main ()
35953{
35954return $ac_func ();
35955  ;
35956  return 0;
35957}
35958_ACEOF
35959rm -f conftest.$ac_objext conftest$ac_exeext
35960if { (ac_try="$ac_link"
35961case "(($ac_try" in
35962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35963  *) ac_try_echo=$ac_try;;
35964esac
35965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35966  (eval "$ac_link") 2>conftest.er1
35967  ac_status=$?
35968  grep -v '^ *+' conftest.er1 >conftest.err
35969  rm -f conftest.er1
35970  cat conftest.err >&5
35971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35972  (exit $ac_status); } && {
35973	 test -z "$ac_c_werror_flag" ||
35974	 test ! -s conftest.err
35975       } && test -s conftest$ac_exeext &&
35976       $as_test_x conftest$ac_exeext; then
35977  eval "$as_ac_var=yes"
35978else
35979  echo "$as_me: failed program was:" >&5
35980sed 's/^/| /' conftest.$ac_ext >&5
35981
35982	eval "$as_ac_var=no"
35983fi
35984
35985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35986      conftest$ac_exeext conftest.$ac_ext
35987fi
35988ac_res=`eval echo '${'$as_ac_var'}'`
35989	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35990echo "${ECHO_T}$ac_res" >&6; }
35991if test `eval echo '${'$as_ac_var'}'` = yes; then
35992  cat >>confdefs.h <<_ACEOF
35993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35994_ACEOF
35995
35996fi
35997done
35998
35999
36000if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36001	ac_cv_func_vsnprintf=yes
36002
36003cat >>confdefs.h <<\_ACEOF
36004#define vsnprintf _vsnprintf
36005_ACEOF
36006
36007fi
36008
36009
36010for ac_func in vprintf
36011do
36012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36013{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36015if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36016  echo $ECHO_N "(cached) $ECHO_C" >&6
36017else
36018  cat >conftest.$ac_ext <<_ACEOF
36019/* confdefs.h.  */
36020_ACEOF
36021cat confdefs.h >>conftest.$ac_ext
36022cat >>conftest.$ac_ext <<_ACEOF
36023/* end confdefs.h.  */
36024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36025   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36026#define $ac_func innocuous_$ac_func
36027
36028/* System header to define __stub macros and hopefully few prototypes,
36029    which can conflict with char $ac_func (); below.
36030    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36031    <limits.h> exists even on freestanding compilers.  */
36032
36033#ifdef __STDC__
36034# include <limits.h>
36035#else
36036# include <assert.h>
36037#endif
36038
36039#undef $ac_func
36040
36041/* Override any GCC internal prototype to avoid an error.
36042   Use char because int might match the return type of a GCC
36043   builtin and then its argument prototype would still apply.  */
36044#ifdef __cplusplus
36045extern "C"
36046#endif
36047char $ac_func ();
36048/* The GNU C library defines this for functions which it implements
36049    to always fail with ENOSYS.  Some functions are actually named
36050    something starting with __ and the normal name is an alias.  */
36051#if defined __stub_$ac_func || defined __stub___$ac_func
36052choke me
36053#endif
36054
36055int
36056main ()
36057{
36058return $ac_func ();
36059  ;
36060  return 0;
36061}
36062_ACEOF
36063rm -f conftest.$ac_objext conftest$ac_exeext
36064if { (ac_try="$ac_link"
36065case "(($ac_try" in
36066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36067  *) ac_try_echo=$ac_try;;
36068esac
36069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36070  (eval "$ac_link") 2>conftest.er1
36071  ac_status=$?
36072  grep -v '^ *+' conftest.er1 >conftest.err
36073  rm -f conftest.er1
36074  cat conftest.err >&5
36075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076  (exit $ac_status); } && {
36077	 test -z "$ac_c_werror_flag" ||
36078	 test ! -s conftest.err
36079       } && test -s conftest$ac_exeext &&
36080       $as_test_x conftest$ac_exeext; then
36081  eval "$as_ac_var=yes"
36082else
36083  echo "$as_me: failed program was:" >&5
36084sed 's/^/| /' conftest.$ac_ext >&5
36085
36086	eval "$as_ac_var=no"
36087fi
36088
36089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36090      conftest$ac_exeext conftest.$ac_ext
36091fi
36092ac_res=`eval echo '${'$as_ac_var'}'`
36093	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36094echo "${ECHO_T}$ac_res" >&6; }
36095if test `eval echo '${'$as_ac_var'}'` = yes; then
36096  cat >>confdefs.h <<_ACEOF
36097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36098_ACEOF
36099
36100{ echo "$as_me:$LINENO: checking for _doprnt" >&5
36101echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36102if test "${ac_cv_func__doprnt+set}" = set; then
36103  echo $ECHO_N "(cached) $ECHO_C" >&6
36104else
36105  cat >conftest.$ac_ext <<_ACEOF
36106/* confdefs.h.  */
36107_ACEOF
36108cat confdefs.h >>conftest.$ac_ext
36109cat >>conftest.$ac_ext <<_ACEOF
36110/* end confdefs.h.  */
36111/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36112   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36113#define _doprnt innocuous__doprnt
36114
36115/* System header to define __stub macros and hopefully few prototypes,
36116    which can conflict with char _doprnt (); below.
36117    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36118    <limits.h> exists even on freestanding compilers.  */
36119
36120#ifdef __STDC__
36121# include <limits.h>
36122#else
36123# include <assert.h>
36124#endif
36125
36126#undef _doprnt
36127
36128/* Override any GCC internal prototype to avoid an error.
36129   Use char because int might match the return type of a GCC
36130   builtin and then its argument prototype would still apply.  */
36131#ifdef __cplusplus
36132extern "C"
36133#endif
36134char _doprnt ();
36135/* The GNU C library defines this for functions which it implements
36136    to always fail with ENOSYS.  Some functions are actually named
36137    something starting with __ and the normal name is an alias.  */
36138#if defined __stub__doprnt || defined __stub____doprnt
36139choke me
36140#endif
36141
36142int
36143main ()
36144{
36145return _doprnt ();
36146  ;
36147  return 0;
36148}
36149_ACEOF
36150rm -f conftest.$ac_objext conftest$ac_exeext
36151if { (ac_try="$ac_link"
36152case "(($ac_try" in
36153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36154  *) ac_try_echo=$ac_try;;
36155esac
36156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36157  (eval "$ac_link") 2>conftest.er1
36158  ac_status=$?
36159  grep -v '^ *+' conftest.er1 >conftest.err
36160  rm -f conftest.er1
36161  cat conftest.err >&5
36162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163  (exit $ac_status); } && {
36164	 test -z "$ac_c_werror_flag" ||
36165	 test ! -s conftest.err
36166       } && test -s conftest$ac_exeext &&
36167       $as_test_x conftest$ac_exeext; then
36168  ac_cv_func__doprnt=yes
36169else
36170  echo "$as_me: failed program was:" >&5
36171sed 's/^/| /' conftest.$ac_ext >&5
36172
36173	ac_cv_func__doprnt=no
36174fi
36175
36176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36177      conftest$ac_exeext conftest.$ac_ext
36178fi
36179{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36180echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36181if test $ac_cv_func__doprnt = yes; then
36182
36183cat >>confdefs.h <<\_ACEOF
36184#define HAVE_DOPRNT 1
36185_ACEOF
36186
36187fi
36188
36189fi
36190done
36191
36192
36193
36194if test $ac_cv_func_vprintf = yes ; then
36195
36196
36197for ac_func in snprintf vsnprintf
36198do
36199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36200{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36202if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36203  echo $ECHO_N "(cached) $ECHO_C" >&6
36204else
36205  cat >conftest.$ac_ext <<_ACEOF
36206/* confdefs.h.  */
36207_ACEOF
36208cat confdefs.h >>conftest.$ac_ext
36209cat >>conftest.$ac_ext <<_ACEOF
36210/* end confdefs.h.  */
36211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36212   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36213#define $ac_func innocuous_$ac_func
36214
36215/* System header to define __stub macros and hopefully few prototypes,
36216    which can conflict with char $ac_func (); below.
36217    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36218    <limits.h> exists even on freestanding compilers.  */
36219
36220#ifdef __STDC__
36221# include <limits.h>
36222#else
36223# include <assert.h>
36224#endif
36225
36226#undef $ac_func
36227
36228/* Override any GCC internal prototype to avoid an error.
36229   Use char because int might match the return type of a GCC
36230   builtin and then its argument prototype would still apply.  */
36231#ifdef __cplusplus
36232extern "C"
36233#endif
36234char $ac_func ();
36235/* The GNU C library defines this for functions which it implements
36236    to always fail with ENOSYS.  Some functions are actually named
36237    something starting with __ and the normal name is an alias.  */
36238#if defined __stub_$ac_func || defined __stub___$ac_func
36239choke me
36240#endif
36241
36242int
36243main ()
36244{
36245return $ac_func ();
36246  ;
36247  return 0;
36248}
36249_ACEOF
36250rm -f conftest.$ac_objext conftest$ac_exeext
36251if { (ac_try="$ac_link"
36252case "(($ac_try" in
36253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36254  *) ac_try_echo=$ac_try;;
36255esac
36256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36257  (eval "$ac_link") 2>conftest.er1
36258  ac_status=$?
36259  grep -v '^ *+' conftest.er1 >conftest.err
36260  rm -f conftest.er1
36261  cat conftest.err >&5
36262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36263  (exit $ac_status); } && {
36264	 test -z "$ac_c_werror_flag" ||
36265	 test ! -s conftest.err
36266       } && test -s conftest$ac_exeext &&
36267       $as_test_x conftest$ac_exeext; then
36268  eval "$as_ac_var=yes"
36269else
36270  echo "$as_me: failed program was:" >&5
36271sed 's/^/| /' conftest.$ac_ext >&5
36272
36273	eval "$as_ac_var=no"
36274fi
36275
36276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36277      conftest$ac_exeext conftest.$ac_ext
36278fi
36279ac_res=`eval echo '${'$as_ac_var'}'`
36280	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36281echo "${ECHO_T}$ac_res" >&6; }
36282if test `eval echo '${'$as_ac_var'}'` = yes; then
36283  cat >>confdefs.h <<_ACEOF
36284#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36285_ACEOF
36286
36287fi
36288done
36289
36290fi
36291
36292
36293
36294
36295
36296
36297
36298
36299
36300
36301
36302
36303
36304
36305
36306
36307
36308
36309
36310
36311
36312
36313
36314
36315
36316
36317
36318
36319
36320
36321
36322
36323
36324
36325
36326
36327
36328
36329
36330
36331
36332
36333
36334
36335
36336
36337
36338
36339
36340
36341
36342
36343
36344
36345
36346
36347
36348for ac_func in \
36349	bcopy			\
36350	closesocket		\
36351	chroot			\
36352	endgrent		\
36353	endpwent		\
36354	fcntl			\
36355	flock			\
36356	fstat			\
36357	getdtablesize		\
36358	geteuid			\
36359	getgrgid		\
36360	gethostname		\
36361	getpassphrase		\
36362	getpwuid		\
36363	getpwnam		\
36364	getspnam		\
36365	gettimeofday		\
36366	initgroups		\
36367	inet_ntoa_b		\
36368	ioctl			\
36369	lockf			\
36370	memcpy			\
36371	memmove			\
36372	memrchr			\
36373	mkstemp			\
36374	mktemp			\
36375	pipe			\
36376	read			\
36377	recv			\
36378	recvfrom		\
36379	setpwfile		\
36380	setgid			\
36381	setegid			\
36382	setsid			\
36383	setuid			\
36384	seteuid			\
36385	signal			\
36386	strdup			\
36387	strpbrk			\
36388	strrchr			\
36389	strsep			\
36390	strstr			\
36391	strtol			\
36392	strtoul			\
36393	strtoq			\
36394	strtouq			\
36395	strtoll			\
36396	strtoull		\
36397	strspn			\
36398	sysconf			\
36399	waitpid			\
36400	wait4			\
36401	write			\
36402	send			\
36403	sendmsg			\
36404	sendto			\
36405
36406do
36407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36408{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36410if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36411  echo $ECHO_N "(cached) $ECHO_C" >&6
36412else
36413  cat >conftest.$ac_ext <<_ACEOF
36414/* confdefs.h.  */
36415_ACEOF
36416cat confdefs.h >>conftest.$ac_ext
36417cat >>conftest.$ac_ext <<_ACEOF
36418/* end confdefs.h.  */
36419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36420   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36421#define $ac_func innocuous_$ac_func
36422
36423/* System header to define __stub macros and hopefully few prototypes,
36424    which can conflict with char $ac_func (); below.
36425    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36426    <limits.h> exists even on freestanding compilers.  */
36427
36428#ifdef __STDC__
36429# include <limits.h>
36430#else
36431# include <assert.h>
36432#endif
36433
36434#undef $ac_func
36435
36436/* Override any GCC internal prototype to avoid an error.
36437   Use char because int might match the return type of a GCC
36438   builtin and then its argument prototype would still apply.  */
36439#ifdef __cplusplus
36440extern "C"
36441#endif
36442char $ac_func ();
36443/* The GNU C library defines this for functions which it implements
36444    to always fail with ENOSYS.  Some functions are actually named
36445    something starting with __ and the normal name is an alias.  */
36446#if defined __stub_$ac_func || defined __stub___$ac_func
36447choke me
36448#endif
36449
36450int
36451main ()
36452{
36453return $ac_func ();
36454  ;
36455  return 0;
36456}
36457_ACEOF
36458rm -f conftest.$ac_objext conftest$ac_exeext
36459if { (ac_try="$ac_link"
36460case "(($ac_try" in
36461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36462  *) ac_try_echo=$ac_try;;
36463esac
36464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36465  (eval "$ac_link") 2>conftest.er1
36466  ac_status=$?
36467  grep -v '^ *+' conftest.er1 >conftest.err
36468  rm -f conftest.er1
36469  cat conftest.err >&5
36470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471  (exit $ac_status); } && {
36472	 test -z "$ac_c_werror_flag" ||
36473	 test ! -s conftest.err
36474       } && test -s conftest$ac_exeext &&
36475       $as_test_x conftest$ac_exeext; then
36476  eval "$as_ac_var=yes"
36477else
36478  echo "$as_me: failed program was:" >&5
36479sed 's/^/| /' conftest.$ac_ext >&5
36480
36481	eval "$as_ac_var=no"
36482fi
36483
36484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36485      conftest$ac_exeext conftest.$ac_ext
36486fi
36487ac_res=`eval echo '${'$as_ac_var'}'`
36488	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36489echo "${ECHO_T}$ac_res" >&6; }
36490if test `eval echo '${'$as_ac_var'}'` = yes; then
36491  cat >>confdefs.h <<_ACEOF
36492#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36493_ACEOF
36494
36495fi
36496done
36497
36498
36499
36500
36501for ac_func in getopt getpeereid
36502do
36503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36504{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36506if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36507  echo $ECHO_N "(cached) $ECHO_C" >&6
36508else
36509  cat >conftest.$ac_ext <<_ACEOF
36510/* confdefs.h.  */
36511_ACEOF
36512cat confdefs.h >>conftest.$ac_ext
36513cat >>conftest.$ac_ext <<_ACEOF
36514/* end confdefs.h.  */
36515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36516   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36517#define $ac_func innocuous_$ac_func
36518
36519/* System header to define __stub macros and hopefully few prototypes,
36520    which can conflict with char $ac_func (); below.
36521    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36522    <limits.h> exists even on freestanding compilers.  */
36523
36524#ifdef __STDC__
36525# include <limits.h>
36526#else
36527# include <assert.h>
36528#endif
36529
36530#undef $ac_func
36531
36532/* Override any GCC internal prototype to avoid an error.
36533   Use char because int might match the return type of a GCC
36534   builtin and then its argument prototype would still apply.  */
36535#ifdef __cplusplus
36536extern "C"
36537#endif
36538char $ac_func ();
36539/* The GNU C library defines this for functions which it implements
36540    to always fail with ENOSYS.  Some functions are actually named
36541    something starting with __ and the normal name is an alias.  */
36542#if defined __stub_$ac_func || defined __stub___$ac_func
36543choke me
36544#endif
36545
36546int
36547main ()
36548{
36549return $ac_func ();
36550  ;
36551  return 0;
36552}
36553_ACEOF
36554rm -f conftest.$ac_objext conftest$ac_exeext
36555if { (ac_try="$ac_link"
36556case "(($ac_try" in
36557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36558  *) ac_try_echo=$ac_try;;
36559esac
36560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36561  (eval "$ac_link") 2>conftest.er1
36562  ac_status=$?
36563  grep -v '^ *+' conftest.er1 >conftest.err
36564  rm -f conftest.er1
36565  cat conftest.err >&5
36566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567  (exit $ac_status); } && {
36568	 test -z "$ac_c_werror_flag" ||
36569	 test ! -s conftest.err
36570       } && test -s conftest$ac_exeext &&
36571       $as_test_x conftest$ac_exeext; then
36572  eval "$as_ac_var=yes"
36573else
36574  echo "$as_me: failed program was:" >&5
36575sed 's/^/| /' conftest.$ac_ext >&5
36576
36577	eval "$as_ac_var=no"
36578fi
36579
36580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36581      conftest$ac_exeext conftest.$ac_ext
36582fi
36583ac_res=`eval echo '${'$as_ac_var'}'`
36584	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36585echo "${ECHO_T}$ac_res" >&6; }
36586if test `eval echo '${'$as_ac_var'}'` = yes; then
36587  cat >>confdefs.h <<_ACEOF
36588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36589_ACEOF
36590
36591else
36592  case " $LIBOBJS " in
36593  *" $ac_func.$ac_objext "* ) ;;
36594  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
36595 ;;
36596esac
36597
36598fi
36599done
36600
36601
36602
36603if test "$ac_cv_func_getopt" != yes; then
36604	LIBSRCS="$LIBSRCS getopt.c"
36605fi
36606
36607if test "$ac_cv_func_getpeereid" != yes; then
36608
36609for ac_func in getpeerucred
36610do
36611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36612{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36615  echo $ECHO_N "(cached) $ECHO_C" >&6
36616else
36617  cat >conftest.$ac_ext <<_ACEOF
36618/* confdefs.h.  */
36619_ACEOF
36620cat confdefs.h >>conftest.$ac_ext
36621cat >>conftest.$ac_ext <<_ACEOF
36622/* end confdefs.h.  */
36623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36624   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36625#define $ac_func innocuous_$ac_func
36626
36627/* System header to define __stub macros and hopefully few prototypes,
36628    which can conflict with char $ac_func (); below.
36629    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36630    <limits.h> exists even on freestanding compilers.  */
36631
36632#ifdef __STDC__
36633# include <limits.h>
36634#else
36635# include <assert.h>
36636#endif
36637
36638#undef $ac_func
36639
36640/* Override any GCC internal prototype to avoid an error.
36641   Use char because int might match the return type of a GCC
36642   builtin and then its argument prototype would still apply.  */
36643#ifdef __cplusplus
36644extern "C"
36645#endif
36646char $ac_func ();
36647/* The GNU C library defines this for functions which it implements
36648    to always fail with ENOSYS.  Some functions are actually named
36649    something starting with __ and the normal name is an alias.  */
36650#if defined __stub_$ac_func || defined __stub___$ac_func
36651choke me
36652#endif
36653
36654int
36655main ()
36656{
36657return $ac_func ();
36658  ;
36659  return 0;
36660}
36661_ACEOF
36662rm -f conftest.$ac_objext conftest$ac_exeext
36663if { (ac_try="$ac_link"
36664case "(($ac_try" in
36665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36666  *) ac_try_echo=$ac_try;;
36667esac
36668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36669  (eval "$ac_link") 2>conftest.er1
36670  ac_status=$?
36671  grep -v '^ *+' conftest.er1 >conftest.err
36672  rm -f conftest.er1
36673  cat conftest.err >&5
36674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675  (exit $ac_status); } && {
36676	 test -z "$ac_c_werror_flag" ||
36677	 test ! -s conftest.err
36678       } && test -s conftest$ac_exeext &&
36679       $as_test_x conftest$ac_exeext; then
36680  eval "$as_ac_var=yes"
36681else
36682  echo "$as_me: failed program was:" >&5
36683sed 's/^/| /' conftest.$ac_ext >&5
36684
36685	eval "$as_ac_var=no"
36686fi
36687
36688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36689      conftest$ac_exeext conftest.$ac_ext
36690fi
36691ac_res=`eval echo '${'$as_ac_var'}'`
36692	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36693echo "${ECHO_T}$ac_res" >&6; }
36694if test `eval echo '${'$as_ac_var'}'` = yes; then
36695  cat >>confdefs.h <<_ACEOF
36696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36697_ACEOF
36698
36699fi
36700done
36701
36702	if test "$ac_cv_func_getpeerucred" != yes ; then
36703		{ echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
36704echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
36705if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
36706  echo $ECHO_N "(cached) $ECHO_C" >&6
36707else
36708  cat >conftest.$ac_ext <<_ACEOF
36709/* confdefs.h.  */
36710_ACEOF
36711cat confdefs.h >>conftest.$ac_ext
36712cat >>conftest.$ac_ext <<_ACEOF
36713/* end confdefs.h.  */
36714$ac_includes_default
36715#ifdef HAVE_SYS_SOCKET_H
36716#include <sys/socket.h>
36717#endif
36718
36719int
36720main ()
36721{
36722static struct msghdr ac_aggr;
36723if (ac_aggr.msg_accrightslen)
36724return 0;
36725  ;
36726  return 0;
36727}
36728_ACEOF
36729rm -f conftest.$ac_objext
36730if { (ac_try="$ac_compile"
36731case "(($ac_try" in
36732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36733  *) ac_try_echo=$ac_try;;
36734esac
36735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36736  (eval "$ac_compile") 2>conftest.er1
36737  ac_status=$?
36738  grep -v '^ *+' conftest.er1 >conftest.err
36739  rm -f conftest.er1
36740  cat conftest.err >&5
36741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36742  (exit $ac_status); } && {
36743	 test -z "$ac_c_werror_flag" ||
36744	 test ! -s conftest.err
36745       } && test -s conftest.$ac_objext; then
36746  ac_cv_member_struct_msghdr_msg_accrightslen=yes
36747else
36748  echo "$as_me: failed program was:" >&5
36749sed 's/^/| /' conftest.$ac_ext >&5
36750
36751	cat >conftest.$ac_ext <<_ACEOF
36752/* confdefs.h.  */
36753_ACEOF
36754cat confdefs.h >>conftest.$ac_ext
36755cat >>conftest.$ac_ext <<_ACEOF
36756/* end confdefs.h.  */
36757$ac_includes_default
36758#ifdef HAVE_SYS_SOCKET_H
36759#include <sys/socket.h>
36760#endif
36761
36762int
36763main ()
36764{
36765static struct msghdr ac_aggr;
36766if (sizeof ac_aggr.msg_accrightslen)
36767return 0;
36768  ;
36769  return 0;
36770}
36771_ACEOF
36772rm -f conftest.$ac_objext
36773if { (ac_try="$ac_compile"
36774case "(($ac_try" in
36775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36776  *) ac_try_echo=$ac_try;;
36777esac
36778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36779  (eval "$ac_compile") 2>conftest.er1
36780  ac_status=$?
36781  grep -v '^ *+' conftest.er1 >conftest.err
36782  rm -f conftest.er1
36783  cat conftest.err >&5
36784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36785  (exit $ac_status); } && {
36786	 test -z "$ac_c_werror_flag" ||
36787	 test ! -s conftest.err
36788       } && test -s conftest.$ac_objext; then
36789  ac_cv_member_struct_msghdr_msg_accrightslen=yes
36790else
36791  echo "$as_me: failed program was:" >&5
36792sed 's/^/| /' conftest.$ac_ext >&5
36793
36794	ac_cv_member_struct_msghdr_msg_accrightslen=no
36795fi
36796
36797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36798fi
36799
36800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36801fi
36802{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
36803echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
36804if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
36805
36806cat >>confdefs.h <<_ACEOF
36807#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
36808_ACEOF
36809
36810
36811fi
36812
36813		if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
36814			{ echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
36815echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
36816if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
36817  echo $ECHO_N "(cached) $ECHO_C" >&6
36818else
36819  cat >conftest.$ac_ext <<_ACEOF
36820/* confdefs.h.  */
36821_ACEOF
36822cat confdefs.h >>conftest.$ac_ext
36823cat >>conftest.$ac_ext <<_ACEOF
36824/* end confdefs.h.  */
36825$ac_includes_default
36826#ifdef HAVE_SYS_SOCKET_H
36827#include <sys/socket.h>
36828#endif
36829
36830int
36831main ()
36832{
36833static struct msghdr ac_aggr;
36834if (ac_aggr.msg_control)
36835return 0;
36836  ;
36837  return 0;
36838}
36839_ACEOF
36840rm -f conftest.$ac_objext
36841if { (ac_try="$ac_compile"
36842case "(($ac_try" in
36843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36844  *) ac_try_echo=$ac_try;;
36845esac
36846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36847  (eval "$ac_compile") 2>conftest.er1
36848  ac_status=$?
36849  grep -v '^ *+' conftest.er1 >conftest.err
36850  rm -f conftest.er1
36851  cat conftest.err >&5
36852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853  (exit $ac_status); } && {
36854	 test -z "$ac_c_werror_flag" ||
36855	 test ! -s conftest.err
36856       } && test -s conftest.$ac_objext; then
36857  ac_cv_member_struct_msghdr_msg_control=yes
36858else
36859  echo "$as_me: failed program was:" >&5
36860sed 's/^/| /' conftest.$ac_ext >&5
36861
36862	cat >conftest.$ac_ext <<_ACEOF
36863/* confdefs.h.  */
36864_ACEOF
36865cat confdefs.h >>conftest.$ac_ext
36866cat >>conftest.$ac_ext <<_ACEOF
36867/* end confdefs.h.  */
36868$ac_includes_default
36869#ifdef HAVE_SYS_SOCKET_H
36870#include <sys/socket.h>
36871#endif
36872
36873int
36874main ()
36875{
36876static struct msghdr ac_aggr;
36877if (sizeof ac_aggr.msg_control)
36878return 0;
36879  ;
36880  return 0;
36881}
36882_ACEOF
36883rm -f conftest.$ac_objext
36884if { (ac_try="$ac_compile"
36885case "(($ac_try" in
36886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36887  *) ac_try_echo=$ac_try;;
36888esac
36889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36890  (eval "$ac_compile") 2>conftest.er1
36891  ac_status=$?
36892  grep -v '^ *+' conftest.er1 >conftest.err
36893  rm -f conftest.er1
36894  cat conftest.err >&5
36895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36896  (exit $ac_status); } && {
36897	 test -z "$ac_c_werror_flag" ||
36898	 test ! -s conftest.err
36899       } && test -s conftest.$ac_objext; then
36900  ac_cv_member_struct_msghdr_msg_control=yes
36901else
36902  echo "$as_me: failed program was:" >&5
36903sed 's/^/| /' conftest.$ac_ext >&5
36904
36905	ac_cv_member_struct_msghdr_msg_control=no
36906fi
36907
36908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36909fi
36910
36911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36912fi
36913{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
36914echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
36915if test $ac_cv_member_struct_msghdr_msg_control = yes; then
36916
36917cat >>confdefs.h <<_ACEOF
36918#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
36919_ACEOF
36920
36921
36922fi
36923
36924		fi
36925		{ echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
36926echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
36927if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
36928  echo $ECHO_N "(cached) $ECHO_C" >&6
36929else
36930  cat >conftest.$ac_ext <<_ACEOF
36931/* confdefs.h.  */
36932_ACEOF
36933cat confdefs.h >>conftest.$ac_ext
36934cat >>conftest.$ac_ext <<_ACEOF
36935/* end confdefs.h.  */
36936$ac_includes_default
36937int
36938main ()
36939{
36940static struct stat ac_aggr;
36941if (ac_aggr.st_fstype)
36942return 0;
36943  ;
36944  return 0;
36945}
36946_ACEOF
36947rm -f conftest.$ac_objext
36948if { (ac_try="$ac_compile"
36949case "(($ac_try" in
36950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36951  *) ac_try_echo=$ac_try;;
36952esac
36953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36954  (eval "$ac_compile") 2>conftest.er1
36955  ac_status=$?
36956  grep -v '^ *+' conftest.er1 >conftest.err
36957  rm -f conftest.er1
36958  cat conftest.err >&5
36959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960  (exit $ac_status); } && {
36961	 test -z "$ac_c_werror_flag" ||
36962	 test ! -s conftest.err
36963       } && test -s conftest.$ac_objext; then
36964  ac_cv_member_struct_stat_st_fstype=yes
36965else
36966  echo "$as_me: failed program was:" >&5
36967sed 's/^/| /' conftest.$ac_ext >&5
36968
36969	cat >conftest.$ac_ext <<_ACEOF
36970/* confdefs.h.  */
36971_ACEOF
36972cat confdefs.h >>conftest.$ac_ext
36973cat >>conftest.$ac_ext <<_ACEOF
36974/* end confdefs.h.  */
36975$ac_includes_default
36976int
36977main ()
36978{
36979static struct stat ac_aggr;
36980if (sizeof ac_aggr.st_fstype)
36981return 0;
36982  ;
36983  return 0;
36984}
36985_ACEOF
36986rm -f conftest.$ac_objext
36987if { (ac_try="$ac_compile"
36988case "(($ac_try" in
36989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36990  *) ac_try_echo=$ac_try;;
36991esac
36992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36993  (eval "$ac_compile") 2>conftest.er1
36994  ac_status=$?
36995  grep -v '^ *+' conftest.er1 >conftest.err
36996  rm -f conftest.er1
36997  cat conftest.err >&5
36998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999  (exit $ac_status); } && {
37000	 test -z "$ac_c_werror_flag" ||
37001	 test ! -s conftest.err
37002       } && test -s conftest.$ac_objext; then
37003  ac_cv_member_struct_stat_st_fstype=yes
37004else
37005  echo "$as_me: failed program was:" >&5
37006sed 's/^/| /' conftest.$ac_ext >&5
37007
37008	ac_cv_member_struct_stat_st_fstype=no
37009fi
37010
37011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37012fi
37013
37014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37015fi
37016{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37017echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37018if test $ac_cv_member_struct_stat_st_fstype = yes; then
37019
37020cat >>confdefs.h <<_ACEOF
37021#define HAVE_STRUCT_STAT_ST_FSTYPE 1
37022_ACEOF
37023
37024
37025fi
37026{ echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37027echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37028if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37029  echo $ECHO_N "(cached) $ECHO_C" >&6
37030else
37031  cat >conftest.$ac_ext <<_ACEOF
37032/* confdefs.h.  */
37033_ACEOF
37034cat confdefs.h >>conftest.$ac_ext
37035cat >>conftest.$ac_ext <<_ACEOF
37036/* end confdefs.h.  */
37037$ac_includes_default
37038int
37039main ()
37040{
37041static struct stat ac_aggr;
37042if (ac_aggr.st_vfstype)
37043return 0;
37044  ;
37045  return 0;
37046}
37047_ACEOF
37048rm -f conftest.$ac_objext
37049if { (ac_try="$ac_compile"
37050case "(($ac_try" in
37051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37052  *) ac_try_echo=$ac_try;;
37053esac
37054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37055  (eval "$ac_compile") 2>conftest.er1
37056  ac_status=$?
37057  grep -v '^ *+' conftest.er1 >conftest.err
37058  rm -f conftest.er1
37059  cat conftest.err >&5
37060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061  (exit $ac_status); } && {
37062	 test -z "$ac_c_werror_flag" ||
37063	 test ! -s conftest.err
37064       } && test -s conftest.$ac_objext; then
37065  ac_cv_member_struct_stat_st_vfstype=yes
37066else
37067  echo "$as_me: failed program was:" >&5
37068sed 's/^/| /' conftest.$ac_ext >&5
37069
37070	cat >conftest.$ac_ext <<_ACEOF
37071/* confdefs.h.  */
37072_ACEOF
37073cat confdefs.h >>conftest.$ac_ext
37074cat >>conftest.$ac_ext <<_ACEOF
37075/* end confdefs.h.  */
37076$ac_includes_default
37077int
37078main ()
37079{
37080static struct stat ac_aggr;
37081if (sizeof ac_aggr.st_vfstype)
37082return 0;
37083  ;
37084  return 0;
37085}
37086_ACEOF
37087rm -f conftest.$ac_objext
37088if { (ac_try="$ac_compile"
37089case "(($ac_try" in
37090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37091  *) ac_try_echo=$ac_try;;
37092esac
37093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37094  (eval "$ac_compile") 2>conftest.er1
37095  ac_status=$?
37096  grep -v '^ *+' conftest.er1 >conftest.err
37097  rm -f conftest.er1
37098  cat conftest.err >&5
37099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37100  (exit $ac_status); } && {
37101	 test -z "$ac_c_werror_flag" ||
37102	 test ! -s conftest.err
37103       } && test -s conftest.$ac_objext; then
37104  ac_cv_member_struct_stat_st_vfstype=yes
37105else
37106  echo "$as_me: failed program was:" >&5
37107sed 's/^/| /' conftest.$ac_ext >&5
37108
37109	ac_cv_member_struct_stat_st_vfstype=no
37110fi
37111
37112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37113fi
37114
37115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37116fi
37117{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37118echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37119if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37120
37121cat >>confdefs.h <<_ACEOF
37122#define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37123_ACEOF
37124
37125
37126fi
37127
37128		if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37129			cat >conftest.$ac_ext <<_ACEOF
37130struct stat st; char *ptr=st.st_fstype;
37131_ACEOF
37132rm -f conftest.$ac_objext
37133if { (ac_try="$ac_compile"
37134case "(($ac_try" in
37135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37136  *) ac_try_echo=$ac_try;;
37137esac
37138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37139  (eval "$ac_compile") 2>conftest.er1
37140  ac_status=$?
37141  grep -v '^ *+' conftest.er1 >conftest.err
37142  rm -f conftest.er1
37143  cat conftest.err >&5
37144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37145  (exit $ac_status); } && {
37146	 test -z "$ac_c_werror_flag" ||
37147	 test ! -s conftest.err
37148       } && test -s conftest.$ac_objext; then
37149
37150cat >>confdefs.h <<\_ACEOF
37151#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37152_ACEOF
37153
37154else
37155  echo "$as_me: failed program was:" >&5
37156sed 's/^/| /' conftest.$ac_ext >&5
37157
37158
37159cat >>confdefs.h <<\_ACEOF
37160#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37161_ACEOF
37162
37163fi
37164
37165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37166		fi
37167	fi
37168	LIBSRCS="$LIBSRCS getpeereid.c"
37169fi
37170
37171if test "$ac_cv_func_snprintf" != yes ||
37172   test "$ac_cv_func_vsnprintf" != yes; then
37173	if test "$ac_cv_func_snprintf" != yes; then
37174
37175cat >>confdefs.h <<\_ACEOF
37176#define snprintf ber_pvt_snprintf
37177_ACEOF
37178
37179	fi
37180	if test "$ac_cv_func_vsnprintf" != yes; then
37181
37182cat >>confdefs.h <<\_ACEOF
37183#define vsnprintf ber_pvt_vsnprintf
37184_ACEOF
37185
37186	fi
37187fi
37188
37189
37190if test "$ol_enable_slapi" != no ; then
37191
37192for ac_header in ltdl.h
37193do
37194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37196  { echo "$as_me:$LINENO: checking for $ac_header" >&5
37197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37199  echo $ECHO_N "(cached) $ECHO_C" >&6
37200fi
37201ac_res=`eval echo '${'$as_ac_Header'}'`
37202	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37203echo "${ECHO_T}$ac_res" >&6; }
37204else
37205  # Is the header compilable?
37206{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
37207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37208cat >conftest.$ac_ext <<_ACEOF
37209/* confdefs.h.  */
37210_ACEOF
37211cat confdefs.h >>conftest.$ac_ext
37212cat >>conftest.$ac_ext <<_ACEOF
37213/* end confdefs.h.  */
37214$ac_includes_default
37215#include <$ac_header>
37216_ACEOF
37217rm -f conftest.$ac_objext
37218if { (ac_try="$ac_compile"
37219case "(($ac_try" in
37220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37221  *) ac_try_echo=$ac_try;;
37222esac
37223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37224  (eval "$ac_compile") 2>conftest.er1
37225  ac_status=$?
37226  grep -v '^ *+' conftest.er1 >conftest.err
37227  rm -f conftest.er1
37228  cat conftest.err >&5
37229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230  (exit $ac_status); } && {
37231	 test -z "$ac_c_werror_flag" ||
37232	 test ! -s conftest.err
37233       } && test -s conftest.$ac_objext; then
37234  ac_header_compiler=yes
37235else
37236  echo "$as_me: failed program was:" >&5
37237sed 's/^/| /' conftest.$ac_ext >&5
37238
37239	ac_header_compiler=no
37240fi
37241
37242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37243{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37244echo "${ECHO_T}$ac_header_compiler" >&6; }
37245
37246# Is the header present?
37247{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
37248echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37249cat >conftest.$ac_ext <<_ACEOF
37250/* confdefs.h.  */
37251_ACEOF
37252cat confdefs.h >>conftest.$ac_ext
37253cat >>conftest.$ac_ext <<_ACEOF
37254/* end confdefs.h.  */
37255#include <$ac_header>
37256_ACEOF
37257if { (ac_try="$ac_cpp conftest.$ac_ext"
37258case "(($ac_try" in
37259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37260  *) ac_try_echo=$ac_try;;
37261esac
37262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37263  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37264  ac_status=$?
37265  grep -v '^ *+' conftest.er1 >conftest.err
37266  rm -f conftest.er1
37267  cat conftest.err >&5
37268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37269  (exit $ac_status); } >/dev/null && {
37270	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37271	 test ! -s conftest.err
37272       }; then
37273  ac_header_preproc=yes
37274else
37275  echo "$as_me: failed program was:" >&5
37276sed 's/^/| /' conftest.$ac_ext >&5
37277
37278  ac_header_preproc=no
37279fi
37280
37281rm -f conftest.err conftest.$ac_ext
37282{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37283echo "${ECHO_T}$ac_header_preproc" >&6; }
37284
37285# So?  What about this header?
37286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37287  yes:no: )
37288    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37290    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37292    ac_header_preproc=yes
37293    ;;
37294  no:yes:* )
37295    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37297    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37298echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37299    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37301    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37302echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37305    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37307    ( cat <<\_ASBOX
37308## --------------------------------------------- ##
37309## Report this to <http://www.openldap.org/its/> ##
37310## --------------------------------------------- ##
37311_ASBOX
37312     ) | sed "s/^/$as_me: WARNING:     /" >&2
37313    ;;
37314esac
37315{ echo "$as_me:$LINENO: checking for $ac_header" >&5
37316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37318  echo $ECHO_N "(cached) $ECHO_C" >&6
37319else
37320  eval "$as_ac_Header=\$ac_header_preproc"
37321fi
37322ac_res=`eval echo '${'$as_ac_Header'}'`
37323	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37324echo "${ECHO_T}$ac_res" >&6; }
37325
37326fi
37327if test `eval echo '${'$as_ac_Header'}'` = yes; then
37328  cat >>confdefs.h <<_ACEOF
37329#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37330_ACEOF
37331
37332fi
37333
37334done
37335
37336
37337	if test $ac_cv_header_ltdl_h != yes ; then
37338		{ { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37339echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37340   { (exit 1); exit 1; }; }
37341	fi
37342	{ echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
37343echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
37344if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
37345  echo $ECHO_N "(cached) $ECHO_C" >&6
37346else
37347  ac_check_lib_save_LIBS=$LIBS
37348LIBS="-lltdl  $LIBS"
37349cat >conftest.$ac_ext <<_ACEOF
37350/* confdefs.h.  */
37351_ACEOF
37352cat confdefs.h >>conftest.$ac_ext
37353cat >>conftest.$ac_ext <<_ACEOF
37354/* end confdefs.h.  */
37355
37356/* Override any GCC internal prototype to avoid an error.
37357   Use char because int might match the return type of a GCC
37358   builtin and then its argument prototype would still apply.  */
37359#ifdef __cplusplus
37360extern "C"
37361#endif
37362char lt_dlinit ();
37363int
37364main ()
37365{
37366return lt_dlinit ();
37367  ;
37368  return 0;
37369}
37370_ACEOF
37371rm -f conftest.$ac_objext conftest$ac_exeext
37372if { (ac_try="$ac_link"
37373case "(($ac_try" in
37374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37375  *) ac_try_echo=$ac_try;;
37376esac
37377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37378  (eval "$ac_link") 2>conftest.er1
37379  ac_status=$?
37380  grep -v '^ *+' conftest.er1 >conftest.err
37381  rm -f conftest.er1
37382  cat conftest.err >&5
37383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37384  (exit $ac_status); } && {
37385	 test -z "$ac_c_werror_flag" ||
37386	 test ! -s conftest.err
37387       } && test -s conftest$ac_exeext &&
37388       $as_test_x conftest$ac_exeext; then
37389  ac_cv_lib_ltdl_lt_dlinit=yes
37390else
37391  echo "$as_me: failed program was:" >&5
37392sed 's/^/| /' conftest.$ac_ext >&5
37393
37394	ac_cv_lib_ltdl_lt_dlinit=no
37395fi
37396
37397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37398      conftest$ac_exeext conftest.$ac_ext
37399LIBS=$ac_check_lib_save_LIBS
37400fi
37401{ echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
37402echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
37403if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
37404
37405		SLAPI_LIBS=-lltdl
37406		LIBSLAPI=libslapi.a
37407		LIBSLAPITOOLS=../libslapi.a
37408
37409cat >>confdefs.h <<\_ACEOF
37410#define HAVE_LIBLTDL 1
37411_ACEOF
37412
37413
37414else
37415  { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
37416echo "$as_me: error: could not locate libtool -lltdl" >&2;}
37417   { (exit 1); exit 1; }; }
37418fi
37419
37420
37421
37422cat >>confdefs.h <<\_ACEOF
37423#define LDAP_SLAPI 1
37424_ACEOF
37425
37426fi
37427
37428if test "$ol_enable_debug" != no ; then
37429	if test "$ol_enable_debug" = traditional; then
37430
37431cat >>confdefs.h <<\_ACEOF
37432#define OLD_DEBUG 1
37433_ACEOF
37434
37435	fi
37436
37437cat >>confdefs.h <<\_ACEOF
37438#define LDAP_DEBUG 1
37439_ACEOF
37440
37441fi
37442if test "$ol_enable_syslog" = yes ; then
37443
37444cat >>confdefs.h <<\_ACEOF
37445#define LDAP_SYSLOG 1
37446_ACEOF
37447
37448fi
37449if test "$ol_enable_proctitle" != no ; then
37450
37451cat >>confdefs.h <<\_ACEOF
37452#define LDAP_PROCTITLE 1
37453_ACEOF
37454
37455fi
37456if test "$ol_enable_referrals" != no ; then
37457
37458cat >>confdefs.h <<\_ACEOF
37459#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
37460_ACEOF
37461
37462fi
37463if test "$ol_enable_local" != no; then
37464
37465cat >>confdefs.h <<\_ACEOF
37466#define LDAP_PF_LOCAL 1
37467_ACEOF
37468
37469fi
37470if test "$ol_link_ipv6" != no; then
37471
37472cat >>confdefs.h <<\_ACEOF
37473#define LDAP_PF_INET6 1
37474_ACEOF
37475
37476fi
37477if test "$ol_enable_cleartext" != no ; then
37478
37479cat >>confdefs.h <<\_ACEOF
37480#define SLAPD_CLEARTEXT 1
37481_ACEOF
37482
37483fi
37484if test "$ol_enable_crypt" != no ; then
37485
37486cat >>confdefs.h <<\_ACEOF
37487#define SLAPD_CRYPT 1
37488_ACEOF
37489
37490fi
37491if test "$ol_link_spasswd" != no ; then
37492
37493cat >>confdefs.h <<\_ACEOF
37494#define SLAPD_SPASSWD 1
37495_ACEOF
37496
37497fi
37498if test "$ol_enable_rlookups" != no ; then
37499
37500cat >>confdefs.h <<\_ACEOF
37501#define SLAPD_RLOOKUPS 1
37502_ACEOF
37503
37504fi
37505if test "$ol_enable_aci" != no ; then
37506	if test $ol_enable_dynacl = no ; then
37507		ol_enable_dynacl=yes
37508		{ echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
37509echo "$as_me: WARNING: ACIs need dynacl" >&2;}
37510	fi
37511	if test "$ol_enable_aci" = mod ; then
37512		MFLAG=SLAPD_MOD_DYNAMIC
37513				{ { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
37514echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
37515   { (exit 1); exit 1; }; }
37516	else
37517		MFLAG=SLAPD_MOD_STATIC
37518	fi
37519	WITH_ACI_ENABLED=$ol_enable_aci
37520
37521cat >>confdefs.h <<_ACEOF
37522#define SLAPD_ACI_ENABLED $MFLAG
37523_ACEOF
37524
37525else
37526	WITH_ACI_ENABLED=no
37527fi
37528if test "$ol_enable_dynacl" != no ; then
37529
37530cat >>confdefs.h <<\_ACEOF
37531#define SLAP_DYNACL 1
37532_ACEOF
37533
37534fi
37535
37536if test "$ol_link_modules" != no ; then
37537
37538cat >>confdefs.h <<\_ACEOF
37539#define SLAPD_MODULES 1
37540_ACEOF
37541
37542	BUILD_SLAPD=yes
37543	SLAPD_MODULES_LDFLAGS="-dlopen self"
37544fi
37545
37546
37547cat >>confdefs.h <<\_ACEOF
37548#define SLAPD_MOD_STATIC 1
37549_ACEOF
37550
37551
37552cat >>confdefs.h <<\_ACEOF
37553#define SLAPD_MOD_DYNAMIC 2
37554_ACEOF
37555
37556
37557if test "$ol_enable_monitor" != no ; then
37558	BUILD_SLAPD=yes
37559	BUILD_MONITOR=$ol_enable_monitor
37560	if test "$ol_enable_monitor" = mod ; then
37561		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
37562		MFLAG=SLAPD_MOD_DYNAMIC
37563	else
37564		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
37565		MFLAG=SLAPD_MOD_STATIC
37566	fi
37567
37568cat >>confdefs.h <<_ACEOF
37569#define SLAPD_MONITOR $MFLAG
37570_ACEOF
37571
37572fi
37573
37574if test "$ol_enable_bdb" != no ; then
37575	BUILD_SLAPD=yes
37576	BUILD_BDB=$ol_enable_bdb
37577	if test "$ol_enable_bdb" = mod ; then
37578		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
37579		MFLAG=SLAPD_MOD_DYNAMIC
37580	else
37581		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
37582		MFLAG=SLAPD_MOD_STATIC
37583	fi
37584
37585cat >>confdefs.h <<_ACEOF
37586#define SLAPD_BDB $MFLAG
37587_ACEOF
37588
37589fi
37590
37591if test "$ol_enable_dnssrv" != no ; then
37592	BUILD_SLAPD=yes
37593	BUILD_DNSSRV=$ol_enable_dnssrv
37594	if test "$ol_enable_dnssrv" = mod ; then
37595		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
37596		MFLAG=SLAPD_MOD_DYNAMIC
37597	else
37598		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
37599		MFLAG=SLAPD_MOD_STATIC
37600	fi
37601
37602cat >>confdefs.h <<_ACEOF
37603#define SLAPD_DNSSRV $MFLAG
37604_ACEOF
37605
37606fi
37607
37608if test "$ol_enable_hdb" != no ; then
37609	BUILD_SLAPD=yes
37610	BUILD_HDB=$ol_enable_hdb
37611	if test "$ol_enable_hdb" = mod ; then
37612		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
37613		MFLAG=SLAPD_MOD_DYNAMIC
37614	else
37615		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
37616		MFLAG=SLAPD_MOD_STATIC
37617	fi
37618
37619cat >>confdefs.h <<_ACEOF
37620#define SLAPD_HDB $MFLAG
37621_ACEOF
37622
37623fi
37624
37625if test "$ol_enable_ldap" != no ; then
37626	BUILD_SLAPD=yes
37627	BUILD_LDAP=$ol_enable_ldap
37628	if test "$ol_enable_ldap" = mod ; then
37629		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
37630		MFLAG=SLAPD_MOD_DYNAMIC
37631	else
37632		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
37633		MFLAG=SLAPD_MOD_STATIC
37634	fi
37635
37636cat >>confdefs.h <<_ACEOF
37637#define SLAPD_LDAP $MFLAG
37638_ACEOF
37639
37640fi
37641
37642if test "$ol_enable_meta" != no ; then
37643	BUILD_SLAPD=yes
37644	BUILD_META=$ol_enable_meta
37645	BUILD_REWRITE=yes
37646	if test "$ol_enable_meta" = mod ; then
37647		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
37648		MFLAG=SLAPD_MOD_DYNAMIC
37649	else
37650		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
37651		MFLAG=SLAPD_MOD_STATIC
37652	fi
37653
37654cat >>confdefs.h <<_ACEOF
37655#define SLAPD_META $MFLAG
37656_ACEOF
37657
37658fi
37659
37660if test "$ol_enable_null" != no ; then
37661	BUILD_SLAPD=yes
37662	BUILD_NULL=$ol_enable_null
37663	if test "$ol_enable_null" = mod ; then
37664		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
37665		MFLAG=SLAPD_MOD_DYNAMIC
37666	else
37667		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
37668		MFLAG=SLAPD_MOD_STATIC
37669	fi
37670
37671cat >>confdefs.h <<_ACEOF
37672#define SLAPD_NULL $MFLAG
37673_ACEOF
37674
37675fi
37676
37677if test "$ol_enable_passwd" != no ; then
37678	BUILD_SLAPD=yes
37679	BUILD_PASSWD=$ol_enable_passwd
37680	if test "$ol_enable_passwd" = mod ; then
37681		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
37682		MFLAG=SLAPD_MOD_DYNAMIC
37683	else
37684		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
37685		MFLAG=SLAPD_MOD_STATIC
37686	fi
37687
37688cat >>confdefs.h <<_ACEOF
37689#define SLAPD_PASSWD $MFLAG
37690_ACEOF
37691
37692fi
37693
37694if test "$ol_link_perl" != no ; then
37695	BUILD_SLAPD=yes
37696	BUILD_PERL=$ol_enable_perl
37697	if test "$ol_enable_perl" = mod ; then
37698		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
37699		MFLAG=SLAPD_MOD_DYNAMIC
37700	else
37701		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
37702		MFLAG=SLAPD_MOD_STATIC
37703	fi
37704
37705cat >>confdefs.h <<_ACEOF
37706#define SLAPD_PERL $MFLAG
37707_ACEOF
37708
37709fi
37710
37711if test "$ol_enable_relay" != no ; then
37712	BUILD_SLAPD=yes
37713	BUILD_RELAY=$ol_enable_relay
37714	if test "$ol_enable_relay" = mod ; then
37715		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
37716		MFLAG=SLAPD_MOD_DYNAMIC
37717	else
37718		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
37719		MFLAG=SLAPD_MOD_STATIC
37720	fi
37721
37722cat >>confdefs.h <<_ACEOF
37723#define SLAPD_RELAY $MFLAG
37724_ACEOF
37725
37726fi
37727
37728if test "$ol_enable_shell" != no ; then
37729	if test "$ol_link_threads" != no ; then
37730		{ echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
37731echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
37732	fi
37733	BUILD_SLAPD=yes
37734	BUILD_SHELL=$ol_enable_shell
37735	if test "$ol_enable_shell" = mod ; then
37736		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
37737		MFLAG=SLAPD_MOD_DYNAMIC
37738	else
37739		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
37740		MFLAG=SLAPD_MOD_STATIC
37741	fi
37742
37743cat >>confdefs.h <<_ACEOF
37744#define SLAPD_SHELL $MFLAG
37745_ACEOF
37746
37747fi
37748
37749if test "$ol_enable_sock" != no ; then
37750	BUILD_SLAPD=yes
37751	BUILD_SOCK=$ol_enable_sock
37752	if test "$ol_enable_sock" = mod ; then
37753		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
37754		MFLAG=SLAPD_MOD_DYNAMIC
37755	else
37756		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
37757		MFLAG=SLAPD_MOD_STATIC
37758	fi
37759
37760cat >>confdefs.h <<_ACEOF
37761#define SLAPD_SOCK $MFLAG
37762_ACEOF
37763
37764fi
37765
37766if test "$ol_link_sql" != no ; then
37767	BUILD_SLAPD=yes
37768	BUILD_SQL=$ol_enable_sql
37769	if test "$ol_enable_sql" = mod; then
37770		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
37771		MFLAG=SLAPD_MOD_DYNAMIC
37772	else
37773		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
37774		MFLAG=SLAPD_MOD_STATIC
37775	fi
37776
37777cat >>confdefs.h <<_ACEOF
37778#define SLAPD_SQL $MFLAG
37779_ACEOF
37780
37781fi
37782
37783if test "$ol_enable_accesslog" != no ; then
37784	BUILD_ACCESSLOG=$ol_enable_accesslog
37785	if test "$ol_enable_accesslog" = mod ; then
37786		MFLAG=SLAPD_MOD_DYNAMIC
37787		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
37788	else
37789		MFLAG=SLAPD_MOD_STATIC
37790		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
37791	fi
37792
37793cat >>confdefs.h <<_ACEOF
37794#define SLAPD_OVER_ACCESSLOG $MFLAG
37795_ACEOF
37796
37797fi
37798
37799if test "$ol_enable_dynid" != no ; then
37800	BUILD_DYNID=$ol_enable_dynid
37801	if test "$ol_enable_dynid" = mod ; then
37802		MFLAG=SLAPD_MOD_DYNAMIC
37803		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynid.la"
37804	else
37805		MFLAG=SLAPD_MOD_STATIC
37806		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynid.o"
37807	fi
37808
37809cat >>confdefs.h <<_ACEOF
37810#define SLAPD_OVER_DYNID $MFLAG
37811_ACEOF
37812
37813fi
37814
37815if test "$ol_enable_odlocales" != no ; then
37816	BUILD_ODLOCALES=$ol_enable_odlocales
37817	if test "$ol_enable_odlocales" = mod ; then
37818		MFLAG=SLAPD_MOD_DYNAMIC
37819		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS odlocales.la"
37820	else
37821		MFLAG=SLAPD_MOD_STATIC
37822		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS odlocales.o"
37823	fi
37824
37825cat >>confdefs.h <<_ACEOF
37826#define SLAPD_OVER_ODLOCALES $MFLAG
37827_ACEOF
37828
37829fi
37830
37831if test "$ol_enable_odusers" != no ; then
37832	BUILD_ODUSERS=$ol_enable_odusers
37833	if test "$ol_enable_odusers" = mod ; then
37834		MFLAG=SLAPD_MOD_DYNAMIC
37835		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS odusers.la"
37836	else
37837		MFLAG=SLAPD_MOD_STATIC
37838		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS odusers.o"
37839	fi
37840
37841cat >>confdefs.h <<_ACEOF
37842#define SLAPD_OVER_ODUSERS $MFLAG
37843_ACEOF
37844
37845fi
37846
37847if test "$ol_enable_auditlog" != no ; then
37848	BUILD_AUDITLOG=$ol_enable_auditlog
37849	if test "$ol_enable_auditlog" = mod ; then
37850		MFLAG=SLAPD_MOD_DYNAMIC
37851		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
37852	else
37853		MFLAG=SLAPD_MOD_STATIC
37854		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
37855	fi
37856
37857cat >>confdefs.h <<_ACEOF
37858#define SLAPD_OVER_AUDITLOG $MFLAG
37859_ACEOF
37860
37861fi
37862
37863if test "$ol_enable_constraint" != no ; then
37864	BUILD_CONSTRAINT=$ol_enable_constraint
37865	if test "$ol_enable_constraint" = mod ; then
37866		MFLAG=SLAPD_MOD_DYNAMIC
37867		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
37868	else
37869		MFLAG=SLAPD_MOD_STATIC
37870		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
37871	fi
37872
37873cat >>confdefs.h <<_ACEOF
37874#define SLAPD_OVER_CONSTRAINT $MFLAG
37875_ACEOF
37876
37877fi
37878
37879if test "$ol_enable_dds" != no ; then
37880	BUILD_DDS=$ol_enable_dds
37881	if test "$ol_enable_dds" = mod ; then
37882		MFLAG=SLAPD_MOD_DYNAMIC
37883		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
37884	else
37885		MFLAG=SLAPD_MOD_STATIC
37886		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
37887	fi
37888
37889cat >>confdefs.h <<_ACEOF
37890#define SLAPD_OVER_DDS $MFLAG
37891_ACEOF
37892
37893fi
37894
37895if test "$ol_enable_deref" != no ; then
37896	BUILD_DEREF=$ol_enable_deref
37897	if test "$ol_enable_deref" = mod ; then
37898		MFLAG=SLAPD_MOD_DYNAMIC
37899		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
37900	else
37901		MFLAG=SLAPD_MOD_STATIC
37902		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
37903	fi
37904
37905cat >>confdefs.h <<_ACEOF
37906#define SLAPD_OVER_DEREF $MFLAG
37907_ACEOF
37908
37909fi
37910
37911if test "$ol_enable_dyngroup" != no ; then
37912	BUILD_DYNGROUP=$ol_enable_dyngroup
37913	if test "$ol_enable_dyngroup" = mod ; then
37914		MFLAG=SLAPD_MOD_DYNAMIC
37915		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
37916	else
37917		MFLAG=SLAPD_MOD_STATIC
37918		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
37919	fi
37920
37921cat >>confdefs.h <<_ACEOF
37922#define SLAPD_OVER_DYNGROUP $MFLAG
37923_ACEOF
37924
37925fi
37926if test "$ol_enable_nestedgroup" != no ; then
37927	BUILD_DYNGROUP=$ol_enable_nestedgroup
37928	if test "$ol_enable_nestedgroup" = mod ; then
37929		MFLAG=SLAPD_MOD_DYNAMIC
37930		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS nestedgroup.la"
37931	else
37932		MFLAG=SLAPD_MOD_STATIC
37933		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS nestedgroup.o"
37934	fi
37935
37936cat >>confdefs.h <<_ACEOF
37937#define SLAPD_OVER_NESTEDGROUP $MFLAG
37938_ACEOF
37939
37940fi
37941
37942if test "$ol_enable_dynlist" != no ; then
37943	BUILD_DYNLIST=$ol_enable_dynlist
37944	if test "$ol_enable_dynlist" = mod ; then
37945		MFLAG=SLAPD_MOD_DYNAMIC
37946		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
37947	else
37948		MFLAG=SLAPD_MOD_STATIC
37949		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
37950	fi
37951
37952cat >>confdefs.h <<_ACEOF
37953#define SLAPD_OVER_DYNLIST $MFLAG
37954_ACEOF
37955
37956fi
37957
37958if test "$ol_enable_memberof" != no ; then
37959	BUILD_MEMBEROF=$ol_enable_memberof
37960	if test "$ol_enable_memberof" = mod ; then
37961		MFLAG=SLAPD_MOD_DYNAMIC
37962		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
37963	else
37964		MFLAG=SLAPD_MOD_STATIC
37965		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
37966	fi
37967
37968cat >>confdefs.h <<_ACEOF
37969#define SLAPD_OVER_MEMBEROF $MFLAG
37970_ACEOF
37971
37972fi
37973
37974if test "$ol_enable_ppolicy" != no ; then
37975	BUILD_PPOLICY=$ol_enable_ppolicy
37976	if test "$ol_enable_ppolicy" = mod ; then
37977		MFLAG=SLAPD_MOD_DYNAMIC
37978		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
37979	else
37980		MFLAG=SLAPD_MOD_STATIC
37981		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
37982	fi
37983
37984cat >>confdefs.h <<_ACEOF
37985#define SLAPD_OVER_PPOLICY $MFLAG
37986_ACEOF
37987
37988fi
37989
37990if test "$ol_enable_proxycache" != no ; then
37991	BUILD_PROXYCACHE=$ol_enable_proxycache
37992	if test "$ol_enable_proxycache" = mod ; then
37993		MFLAG=SLAPD_MOD_DYNAMIC
37994		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
37995	else
37996		MFLAG=SLAPD_MOD_STATIC
37997		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
37998	fi
37999
38000cat >>confdefs.h <<_ACEOF
38001#define SLAPD_OVER_PROXYCACHE $MFLAG
38002_ACEOF
38003
38004fi
38005
38006if test "$ol_enable_refint" != no ; then
38007	BUILD_REFINT=$ol_enable_refint
38008	if test "$ol_enable_refint" = mod ; then
38009		MFLAG=SLAPD_MOD_DYNAMIC
38010		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38011	else
38012		MFLAG=SLAPD_MOD_STATIC
38013		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38014	fi
38015
38016cat >>confdefs.h <<_ACEOF
38017#define SLAPD_OVER_REFINT $MFLAG
38018_ACEOF
38019
38020fi
38021
38022if test "$ol_enable_retcode" != no ; then
38023	BUILD_RETCODE=$ol_enable_retcode
38024	if test "$ol_enable_retcode" = mod ; then
38025		MFLAG=SLAPD_MOD_DYNAMIC
38026		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38027	else
38028		MFLAG=SLAPD_MOD_STATIC
38029		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38030	fi
38031
38032cat >>confdefs.h <<_ACEOF
38033#define SLAPD_OVER_RETCODE $MFLAG
38034_ACEOF
38035
38036fi
38037
38038if test "$ol_enable_seqmod" != no ; then
38039	BUILD_SEQMOD=$ol_enable_seqmod
38040	if test "$ol_enable_seqmod" = mod ; then
38041		MFLAG=SLAPD_MOD_DYNAMIC
38042		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38043	else
38044		MFLAG=SLAPD_MOD_STATIC
38045		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38046	fi
38047
38048cat >>confdefs.h <<_ACEOF
38049#define SLAPD_OVER_SEQMOD $MFLAG
38050_ACEOF
38051
38052fi
38053
38054if test "$ol_enable_syncprov" != no ; then
38055	BUILD_SYNCPROV=$ol_enable_syncprov
38056	if test "$ol_enable_syncprov" = mod ; then
38057		MFLAG=SLAPD_MOD_DYNAMIC
38058		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38059	else
38060		MFLAG=SLAPD_MOD_STATIC
38061		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38062	fi
38063
38064cat >>confdefs.h <<_ACEOF
38065#define SLAPD_OVER_SYNCPROV $MFLAG
38066_ACEOF
38067
38068fi
38069
38070if test "$ol_enable_translucent" != no ; then
38071	BUILD_TRANSLUCENT=$ol_enable_translucent
38072	if test "$ol_enable_translucent" = mod ; then
38073		MFLAG=SLAPD_MOD_DYNAMIC
38074		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38075	else
38076		MFLAG=SLAPD_MOD_STATIC
38077		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38078	fi
38079
38080cat >>confdefs.h <<_ACEOF
38081#define SLAPD_OVER_TRANSLUCENT $MFLAG
38082_ACEOF
38083
38084fi
38085
38086if test "$ol_enable_unique" != no ; then
38087	BUILD_UNIQUE=$ol_enable_unique
38088	if test "$ol_enable_unique" = mod ; then
38089		MFLAG=SLAPD_MOD_DYNAMIC
38090		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38091	else
38092		MFLAG=SLAPD_MOD_STATIC
38093		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38094	fi
38095
38096cat >>confdefs.h <<_ACEOF
38097#define SLAPD_OVER_UNIQUE $MFLAG
38098_ACEOF
38099
38100fi
38101
38102if test "$ol_enable_valsort" != no ; then
38103	BUILD_VALSORT=$ol_enable_valsort
38104	if test "$ol_enable_valsort" = mod ; then
38105		MFLAG=SLAPD_MOD_DYNAMIC
38106		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38107	else
38108		MFLAG=SLAPD_MOD_STATIC
38109		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38110	fi
38111
38112cat >>confdefs.h <<_ACEOF
38113#define SLAPD_OVER_VALSORT $MFLAG
38114_ACEOF
38115
38116fi
38117
38118if test "$ol_enable_rewrite" != no ; then
38119
38120cat >>confdefs.h <<\_ACEOF
38121#define ENABLE_REWRITE 1
38122_ACEOF
38123
38124	BUILD_REWRITE=yes
38125fi
38126
38127if test "$ol_enable_slapi" != no ; then
38128
38129cat >>confdefs.h <<\_ACEOF
38130#define ENABLE_SLAPI 1
38131_ACEOF
38132
38133	BUILD_SLAPI=yes
38134	SLAPD_SLAPI_DEPEND=libslapi.a
38135fi
38136
38137
38138
38139if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38140	PLAT=NT
38141	SLAPD_MODULES_LDFLAGS=
38142else
38143	PLAT=UNIX
38144fi
38145
38146
38147
38148
38149
38150
38151
38152
38153
38154
38155
38156
38157
38158
38159
38160
38161
38162
38163
38164
38165
38166
38167
38168
38169
38170
38171
38172
38173
38174
38175
38176
38177
38178
38179
38180
38181
38182
38183
38184
38185
38186
38187
38188
38189
38190
38191
38192
38193
38194
38195
38196
38197
38198
38199
38200
38201
38202
38203
38204
38205
38206
38207
38208
38209
38210
38211
38212
38213
38214
38215
38216
38217
38218
38219
38220
38221
38222
38223
38224
38225
38226
38227
38228
38229
38230
38231
38232
38233# Check whether --with-xxinstall was given.
38234if test "${with_xxinstall+set}" = set; then
38235  withval=$with_xxinstall;
38236fi
38237
38238
38239
38240ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.am:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
38241
38242
38243ac_config_commands="$ac_config_commands default"
38244
38245
38246
38247test "x$prefix" = xNONE && prefix=$ac_default_prefix
38248# Let make expand exec_prefix.
38249test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38250
38251DEFS=-DHAVE_CONFIG_H
38252
38253ac_libobjs=
38254ac_ltlibobjs=
38255for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38256  # 1. Remove the extension, and $U if already installed.
38257  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38258  ac_i=`echo "$ac_i" | sed "$ac_script"`
38259  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38260  #    will be set to the directory where LIBOBJS objects are built.
38261  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38262  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38263done
38264LIBOBJS=$ac_libobjs
38265
38266LTLIBOBJS=$ac_ltlibobjs
38267
38268
38269if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38270  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38271Usually this means the macro was only invoked conditionally." >&5
38272echo "$as_me: error: conditional \"AMDEP\" was never defined.
38273Usually this means the macro was only invoked conditionally." >&2;}
38274   { (exit 1); exit 1; }; }
38275fi
38276if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38277  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38278Usually this means the macro was only invoked conditionally." >&5
38279echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38280Usually this means the macro was only invoked conditionally." >&2;}
38281   { (exit 1); exit 1; }; }
38282fi
38283if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38284  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38285Usually this means the macro was only invoked conditionally." >&5
38286echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38287Usually this means the macro was only invoked conditionally." >&2;}
38288   { (exit 1); exit 1; }; }
38289fi
38290
38291: ${CONFIG_STATUS=./config.status}
38292ac_clean_files_save=$ac_clean_files
38293ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38294{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38295echo "$as_me: creating $CONFIG_STATUS" >&6;}
38296cat >$CONFIG_STATUS <<_ACEOF
38297#! $SHELL
38298# Generated by $as_me.
38299# Run this file to recreate the current configuration.
38300# Compiler output produced by configure, useful for debugging
38301# configure, is in config.log if it exists.
38302
38303debug=false
38304ac_cs_recheck=false
38305ac_cs_silent=false
38306SHELL=\${CONFIG_SHELL-$SHELL}
38307_ACEOF
38308
38309cat >>$CONFIG_STATUS <<\_ACEOF
38310## --------------------- ##
38311## M4sh Initialization.  ##
38312## --------------------- ##
38313
38314# Be more Bourne compatible
38315DUALCASE=1; export DUALCASE # for MKS sh
38316if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38317  emulate sh
38318  NULLCMD=:
38319  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38320  # is contrary to our usage.  Disable this feature.
38321  alias -g '${1+"$@"}'='"$@"'
38322  setopt NO_GLOB_SUBST
38323else
38324  case `(set -o) 2>/dev/null` in
38325  *posix*) set -o posix ;;
38326esac
38327
38328fi
38329
38330
38331
38332
38333# PATH needs CR
38334# Avoid depending upon Character Ranges.
38335as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38336as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38337as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38338as_cr_digits='0123456789'
38339as_cr_alnum=$as_cr_Letters$as_cr_digits
38340
38341# The user is always right.
38342if test "${PATH_SEPARATOR+set}" != set; then
38343  echo "#! /bin/sh" >conf$$.sh
38344  echo  "exit 0"   >>conf$$.sh
38345  chmod +x conf$$.sh
38346  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38347    PATH_SEPARATOR=';'
38348  else
38349    PATH_SEPARATOR=:
38350  fi
38351  rm -f conf$$.sh
38352fi
38353
38354# Support unset when possible.
38355if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38356  as_unset=unset
38357else
38358  as_unset=false
38359fi
38360
38361
38362# IFS
38363# We need space, tab and new line, in precisely that order.  Quoting is
38364# there to prevent editors from complaining about space-tab.
38365# (If _AS_PATH_WALK were called with IFS unset, it would disable word
38366# splitting by setting IFS to empty value.)
38367as_nl='
38368'
38369IFS=" ""	$as_nl"
38370
38371# Find who we are.  Look in the path if we contain no directory separator.
38372case $0 in
38373  *[\\/]* ) as_myself=$0 ;;
38374  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38375for as_dir in $PATH
38376do
38377  IFS=$as_save_IFS
38378  test -z "$as_dir" && as_dir=.
38379  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38380done
38381IFS=$as_save_IFS
38382
38383     ;;
38384esac
38385# We did not find ourselves, most probably we were run as `sh COMMAND'
38386# in which case we are not to be found in the path.
38387if test "x$as_myself" = x; then
38388  as_myself=$0
38389fi
38390if test ! -f "$as_myself"; then
38391  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38392  { (exit 1); exit 1; }
38393fi
38394
38395# Work around bugs in pre-3.0 UWIN ksh.
38396for as_var in ENV MAIL MAILPATH
38397do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38398done
38399PS1='$ '
38400PS2='> '
38401PS4='+ '
38402
38403# NLS nuisances.
38404for as_var in \
38405  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38406  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38407  LC_TELEPHONE LC_TIME
38408do
38409  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38410    eval $as_var=C; export $as_var
38411  else
38412    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38413  fi
38414done
38415
38416# Required to use basename.
38417if expr a : '\(a\)' >/dev/null 2>&1 &&
38418   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38419  as_expr=expr
38420else
38421  as_expr=false
38422fi
38423
38424if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38425  as_basename=basename
38426else
38427  as_basename=false
38428fi
38429
38430
38431# Name of the executable.
38432as_me=`$as_basename -- "$0" ||
38433$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38434	 X"$0" : 'X\(//\)$' \| \
38435	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38436echo X/"$0" |
38437    sed '/^.*\/\([^/][^/]*\)\/*$/{
38438	    s//\1/
38439	    q
38440	  }
38441	  /^X\/\(\/\/\)$/{
38442	    s//\1/
38443	    q
38444	  }
38445	  /^X\/\(\/\).*/{
38446	    s//\1/
38447	    q
38448	  }
38449	  s/.*/./; q'`
38450
38451# CDPATH.
38452$as_unset CDPATH
38453
38454
38455
38456  as_lineno_1=$LINENO
38457  as_lineno_2=$LINENO
38458  test "x$as_lineno_1" != "x$as_lineno_2" &&
38459  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38460
38461  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38462  # uniformly replaced by the line number.  The first 'sed' inserts a
38463  # line-number line after each line using $LINENO; the second 'sed'
38464  # does the real work.  The second script uses 'N' to pair each
38465  # line-number line with the line containing $LINENO, and appends
38466  # trailing '-' during substitution so that $LINENO is not a special
38467  # case at line end.
38468  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38469  # scripts with optimization help from Paolo Bonzini.  Blame Lee
38470  # E. McMahon (1931-1989) for sed's syntax.  :-)
38471  sed -n '
38472    p
38473    /[$]LINENO/=
38474  ' <$as_myself |
38475    sed '
38476      s/[$]LINENO.*/&-/
38477      t lineno
38478      b
38479      :lineno
38480      N
38481      :loop
38482      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38483      t loop
38484      s/-\n.*//
38485    ' >$as_me.lineno &&
38486  chmod +x "$as_me.lineno" ||
38487    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38488   { (exit 1); exit 1; }; }
38489
38490  # Don't try to exec as it changes $[0], causing all sort of problems
38491  # (the dirname of $[0] is not the place where we might find the
38492  # original and so on.  Autoconf is especially sensitive to this).
38493  . "./$as_me.lineno"
38494  # Exit status is that of the last command.
38495  exit
38496}
38497
38498
38499if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38500  as_dirname=dirname
38501else
38502  as_dirname=false
38503fi
38504
38505ECHO_C= ECHO_N= ECHO_T=
38506case `echo -n x` in
38507-n*)
38508  case `echo 'x\c'` in
38509  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
38510  *)   ECHO_C='\c';;
38511  esac;;
38512*)
38513  ECHO_N='-n';;
38514esac
38515
38516if expr a : '\(a\)' >/dev/null 2>&1 &&
38517   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38518  as_expr=expr
38519else
38520  as_expr=false
38521fi
38522
38523rm -f conf$$ conf$$.exe conf$$.file
38524if test -d conf$$.dir; then
38525  rm -f conf$$.dir/conf$$.file
38526else
38527  rm -f conf$$.dir
38528  mkdir conf$$.dir
38529fi
38530echo >conf$$.file
38531if ln -s conf$$.file conf$$ 2>/dev/null; then
38532  as_ln_s='ln -s'
38533  # ... but there are two gotchas:
38534  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38535  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38536  # In both cases, we have to default to `cp -p'.
38537  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38538    as_ln_s='cp -p'
38539elif ln conf$$.file conf$$ 2>/dev/null; then
38540  as_ln_s=ln
38541else
38542  as_ln_s='cp -p'
38543fi
38544rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
38545rmdir conf$$.dir 2>/dev/null
38546
38547if mkdir -p . 2>/dev/null; then
38548  as_mkdir_p=:
38549else
38550  test -d ./-p && rmdir ./-p
38551  as_mkdir_p=false
38552fi
38553
38554if test -x / >/dev/null 2>&1; then
38555  as_test_x='test -x'
38556else
38557  if ls -dL / >/dev/null 2>&1; then
38558    as_ls_L_option=L
38559  else
38560    as_ls_L_option=
38561  fi
38562  as_test_x='
38563    eval sh -c '\''
38564      if test -d "$1"; then
38565        test -d "$1/.";
38566      else
38567	case $1 in
38568        -*)set "./$1";;
38569	esac;
38570	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
38571	???[sx]*):;;*)false;;esac;fi
38572    '\'' sh
38573  '
38574fi
38575as_executable_p=$as_test_x
38576
38577# Sed expression to map a string onto a valid CPP name.
38578as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38579
38580# Sed expression to map a string onto a valid variable name.
38581as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38582
38583
38584exec 6>&1
38585
38586# Save the log message, to keep $[0] and so on meaningful, and to
38587# report actual input values of CONFIG_FILES etc. instead of their
38588# values after options handling.
38589ac_log="
38590This file was extended by $as_me, which was
38591generated by GNU Autoconf 2.61.  Invocation command line was
38592
38593  CONFIG_FILES    = $CONFIG_FILES
38594  CONFIG_HEADERS  = $CONFIG_HEADERS
38595  CONFIG_LINKS    = $CONFIG_LINKS
38596  CONFIG_COMMANDS = $CONFIG_COMMANDS
38597  $ $0 $@
38598
38599on `(hostname || uname -n) 2>/dev/null | sed 1q`
38600"
38601
38602_ACEOF
38603
38604cat >>$CONFIG_STATUS <<_ACEOF
38605# Files that config.status was made for.
38606config_files="$ac_config_files"
38607config_headers="$ac_config_headers"
38608config_commands="$ac_config_commands"
38609
38610_ACEOF
38611
38612cat >>$CONFIG_STATUS <<\_ACEOF
38613ac_cs_usage="\
38614\`$as_me' instantiates files from templates according to the
38615current configuration.
38616
38617Usage: $0 [OPTIONS] [FILE]...
38618
38619  -h, --help       print this help, then exit
38620  -V, --version    print version number and configuration settings, then exit
38621  -q, --quiet      do not print progress messages
38622  -d, --debug      don't remove temporary files
38623      --recheck    update $as_me by reconfiguring in the same conditions
38624  --file=FILE[:TEMPLATE]
38625		   instantiate the configuration file FILE
38626  --header=FILE[:TEMPLATE]
38627		   instantiate the configuration header FILE
38628
38629Configuration files:
38630$config_files
38631
38632Configuration headers:
38633$config_headers
38634
38635Configuration commands:
38636$config_commands
38637
38638Report bugs to <bug-autoconf@gnu.org>."
38639
38640_ACEOF
38641cat >>$CONFIG_STATUS <<_ACEOF
38642ac_cs_version="\\
38643config.status
38644configured by $0, generated by GNU Autoconf 2.61,
38645  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
38646
38647Copyright (C) 2006 Free Software Foundation, Inc.
38648This config.status script is free software; the Free Software Foundation
38649gives unlimited permission to copy, distribute and modify it."
38650
38651ac_pwd='$ac_pwd'
38652srcdir='$srcdir'
38653INSTALL='$INSTALL'
38654_ACEOF
38655
38656cat >>$CONFIG_STATUS <<\_ACEOF
38657# If no file are specified by the user, then we need to provide default
38658# value.  By we need to know if files were specified by the user.
38659ac_need_defaults=:
38660while test $# != 0
38661do
38662  case $1 in
38663  --*=*)
38664    ac_option=`expr "X$1" : 'X\([^=]*\)='`
38665    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
38666    ac_shift=:
38667    ;;
38668  *)
38669    ac_option=$1
38670    ac_optarg=$2
38671    ac_shift=shift
38672    ;;
38673  esac
38674
38675  case $ac_option in
38676  # Handling of the options.
38677  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38678    ac_cs_recheck=: ;;
38679  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
38680    echo "$ac_cs_version"; exit ;;
38681  --debug | --debu | --deb | --de | --d | -d )
38682    debug=: ;;
38683  --file | --fil | --fi | --f )
38684    $ac_shift
38685    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
38686    ac_need_defaults=false;;
38687  --header | --heade | --head | --hea )
38688    $ac_shift
38689    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
38690    ac_need_defaults=false;;
38691  --he | --h)
38692    # Conflict between --help and --header
38693    { echo "$as_me: error: ambiguous option: $1
38694Try \`$0 --help' for more information." >&2
38695   { (exit 1); exit 1; }; };;
38696  --help | --hel | -h )
38697    echo "$ac_cs_usage"; exit ;;
38698  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38699  | -silent | --silent | --silen | --sile | --sil | --si | --s)
38700    ac_cs_silent=: ;;
38701
38702  # This is an error.
38703  -*) { echo "$as_me: error: unrecognized option: $1
38704Try \`$0 --help' for more information." >&2
38705   { (exit 1); exit 1; }; } ;;
38706
38707  *) ac_config_targets="$ac_config_targets $1"
38708     ac_need_defaults=false ;;
38709
38710  esac
38711  shift
38712done
38713
38714ac_configure_extra_args=
38715
38716if $ac_cs_silent; then
38717  exec 6>/dev/null
38718  ac_configure_extra_args="$ac_configure_extra_args --silent"
38719fi
38720
38721_ACEOF
38722cat >>$CONFIG_STATUS <<_ACEOF
38723if \$ac_cs_recheck; then
38724  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
38725  CONFIG_SHELL=$SHELL
38726  export CONFIG_SHELL
38727  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38728fi
38729
38730_ACEOF
38731cat >>$CONFIG_STATUS <<\_ACEOF
38732exec 5>>config.log
38733{
38734  echo
38735  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38736## Running $as_me. ##
38737_ASBOX
38738  echo "$ac_log"
38739} >&5
38740
38741_ACEOF
38742cat >>$CONFIG_STATUS <<_ACEOF
38743#
38744# INIT-COMMANDS
38745#
38746AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38747
38748STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
38749STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
38750
38751
38752_ACEOF
38753
38754cat >>$CONFIG_STATUS <<\_ACEOF
38755
38756# Handling of arguments.
38757for ac_config_target in $ac_config_targets
38758do
38759  case $ac_config_target in
38760    "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
38761    "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
38762    "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
38763    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38764    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.am:Makefile.in:build/dir.mk" ;;
38765    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
38766    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
38767    "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
38768    "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
38769    "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
38770    "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
38771    "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
38772    "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
38773    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
38774    "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
38775    "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
38776    "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
38777    "libraries/libldap_r/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
38778    "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
38779    "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
38780    "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
38781    "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
38782    "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
38783    "servers/slapd/back-bdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk" ;;
38784    "servers/slapd/back-dnssrv/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk" ;;
38785    "servers/slapd/back-hdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk" ;;
38786    "servers/slapd/back-ldap/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk" ;;
38787    "servers/slapd/back-ldif/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk" ;;
38788    "servers/slapd/back-meta/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk" ;;
38789    "servers/slapd/back-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk" ;;
38790    "servers/slapd/back-null/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk" ;;
38791    "servers/slapd/back-passwd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk" ;;
38792    "servers/slapd/back-perl/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk" ;;
38793    "servers/slapd/back-relay/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk" ;;
38794    "servers/slapd/back-shell/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk" ;;
38795    "servers/slapd/back-sock/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
38796    "servers/slapd/back-sql/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk" ;;
38797    "servers/slapd/shell-backends/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk" ;;
38798    "servers/slapd/slapi/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
38799    "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
38800    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
38801    "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
38802    "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
38803    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
38804
38805  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
38806echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
38807   { (exit 1); exit 1; }; };;
38808  esac
38809done
38810
38811
38812# If the user did not use the arguments to specify the items to instantiate,
38813# then the envvar interface is used.  Set only those that are not.
38814# We use the long form for the default assignment because of an extremely
38815# bizarre bug on SunOS 4.1.3.
38816if $ac_need_defaults; then
38817  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38818  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38819  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38820fi
38821
38822# Have a temporary directory for convenience.  Make it in the build tree
38823# simply because there is no reason against having it here, and in addition,
38824# creating and moving files from /tmp can sometimes cause problems.
38825# Hook for its removal unless debugging.
38826# Note that there is a small window in which the directory will not be cleaned:
38827# after its creation but before its name has been assigned to `$tmp'.
38828$debug ||
38829{
38830  tmp=
38831  trap 'exit_status=$?
38832  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
38833' 0
38834  trap '{ (exit 1); exit 1; }' 1 2 13 15
38835}
38836# Create a (secure) tmp directory for tmp files.
38837
38838{
38839  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38840  test -n "$tmp" && test -d "$tmp"
38841}  ||
38842{
38843  tmp=./conf$$-$RANDOM
38844  (umask 077 && mkdir "$tmp")
38845} ||
38846{
38847   echo "$me: cannot create a temporary directory in ." >&2
38848   { (exit 1); exit 1; }
38849}
38850
38851#
38852# Set up the sed scripts for CONFIG_FILES section.
38853#
38854
38855# No need to generate the scripts if there are no CONFIG_FILES.
38856# This happens for instance when ./config.status config.h
38857if test -n "$CONFIG_FILES"; then
38858
38859_ACEOF
38860
38861
38862
38863ac_delim='%!_!# '
38864for ac_last_try in false false false false false :; do
38865  cat >conf$$subs.sed <<_ACEOF
38866SHELL!$SHELL$ac_delim
38867PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
38868PACKAGE_NAME!$PACKAGE_NAME$ac_delim
38869PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
38870PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
38871PACKAGE_STRING!$PACKAGE_STRING$ac_delim
38872PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
38873exec_prefix!$exec_prefix$ac_delim
38874prefix!$prefix$ac_delim
38875program_transform_name!$program_transform_name$ac_delim
38876bindir!$bindir$ac_delim
38877sbindir!$sbindir$ac_delim
38878libexecdir!$libexecdir$ac_delim
38879datarootdir!$datarootdir$ac_delim
38880datadir!$datadir$ac_delim
38881sysconfdir!$sysconfdir$ac_delim
38882sharedstatedir!$sharedstatedir$ac_delim
38883localstatedir!$localstatedir$ac_delim
38884includedir!$includedir$ac_delim
38885oldincludedir!$oldincludedir$ac_delim
38886docdir!$docdir$ac_delim
38887infodir!$infodir$ac_delim
38888htmldir!$htmldir$ac_delim
38889dvidir!$dvidir$ac_delim
38890pdfdir!$pdfdir$ac_delim
38891psdir!$psdir$ac_delim
38892libdir!$libdir$ac_delim
38893localedir!$localedir$ac_delim
38894mandir!$mandir$ac_delim
38895DEFS!$DEFS$ac_delim
38896ECHO_C!$ECHO_C$ac_delim
38897ECHO_N!$ECHO_N$ac_delim
38898ECHO_T!$ECHO_T$ac_delim
38899LIBS!$LIBS$ac_delim
38900build_alias!$build_alias$ac_delim
38901host_alias!$host_alias$ac_delim
38902target_alias!$target_alias$ac_delim
38903build!$build$ac_delim
38904build_cpu!$build_cpu$ac_delim
38905build_vendor!$build_vendor$ac_delim
38906build_os!$build_os$ac_delim
38907host!$host$ac_delim
38908host_cpu!$host_cpu$ac_delim
38909host_vendor!$host_vendor$ac_delim
38910host_os!$host_os$ac_delim
38911target!$target$ac_delim
38912target_cpu!$target_cpu$ac_delim
38913target_vendor!$target_vendor$ac_delim
38914target_os!$target_os$ac_delim
38915INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
38916INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
38917INSTALL_DATA!$INSTALL_DATA$ac_delim
38918CYGPATH_W!$CYGPATH_W$ac_delim
38919PACKAGE!$PACKAGE$ac_delim
38920VERSION!$VERSION$ac_delim
38921ACLOCAL!$ACLOCAL$ac_delim
38922AUTOCONF!$AUTOCONF$ac_delim
38923AUTOMAKE!$AUTOMAKE$ac_delim
38924AUTOHEADER!$AUTOHEADER$ac_delim
38925MAKEINFO!$MAKEINFO$ac_delim
38926install_sh!$install_sh$ac_delim
38927STRIP!$STRIP$ac_delim
38928INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
38929mkdir_p!$mkdir_p$ac_delim
38930AWK!$AWK$ac_delim
38931SET_MAKE!$SET_MAKE$ac_delim
38932am__leading_dot!$am__leading_dot$ac_delim
38933AMTAR!$AMTAR$ac_delim
38934am__tar!$am__tar$ac_delim
38935am__untar!$am__untar$ac_delim
38936OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
38937OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
38938OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
38939top_builddir!$top_builddir$ac_delim
38940ldap_subdir!$ldap_subdir$ac_delim
38941CC!$CC$ac_delim
38942AR!$AR$ac_delim
38943CFLAGS!$CFLAGS$ac_delim
38944LDFLAGS!$LDFLAGS$ac_delim
38945CPPFLAGS!$CPPFLAGS$ac_delim
38946ac_ct_CC!$ac_ct_CC$ac_delim
38947EXEEXT!$EXEEXT$ac_delim
38948OBJEXT!$OBJEXT$ac_delim
38949DEPDIR!$DEPDIR$ac_delim
38950am__include!$am__include$ac_delim
38951am__quote!$am__quote$ac_delim
38952AMDEP_TRUE!$AMDEP_TRUE$ac_delim
38953AMDEP_FALSE!$AMDEP_FALSE$ac_delim
38954AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
38955CCDEPMODE!$CCDEPMODE$ac_delim
38956am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
38957am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
38958GREP!$GREP$ac_delim
38959EGREP!$EGREP$ac_delim
38960LN_S!$LN_S$ac_delim
38961ECHO!$ECHO$ac_delim
38962RANLIB!$RANLIB$ac_delim
38963_ACEOF
38964
38965  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38966    break
38967  elif $ac_last_try; then
38968    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38969echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38970   { (exit 1); exit 1; }; }
38971  else
38972    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38973  fi
38974done
38975
38976ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38977if test -n "$ac_eof"; then
38978  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38979  ac_eof=`expr $ac_eof + 1`
38980fi
38981
38982cat >>$CONFIG_STATUS <<_ACEOF
38983cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
38984/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38985_ACEOF
38986sed '
38987s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38988s/^/s,@/; s/!/@,|#_!!_#|/
38989:n
38990t n
38991s/'"$ac_delim"'$/,g/; t
38992s/$/\\/; p
38993N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38994' >>$CONFIG_STATUS <conf$$subs.sed
38995rm -f conf$$subs.sed
38996cat >>$CONFIG_STATUS <<_ACEOF
38997CEOF$ac_eof
38998_ACEOF
38999
39000
39001ac_delim='%!_!# '
39002for ac_last_try in false false false false false :; do
39003  cat >conf$$subs.sed <<_ACEOF
39004DLLTOOL!$DLLTOOL$ac_delim
39005AS!$AS$ac_delim
39006OBJDUMP!$OBJDUMP$ac_delim
39007CPP!$CPP$ac_delim
39008LIBTOOL!$LIBTOOL$ac_delim
39009PERLBIN!$PERLBIN$ac_delim
39010OL_MKDEP!$OL_MKDEP$ac_delim
39011OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39012LTSTATIC!$LTSTATIC$ac_delim
39013LIBOBJS!$LIBOBJS$ac_delim
39014LIBSRCS!$LIBSRCS$ac_delim
39015PLAT!$PLAT$ac_delim
39016WITH_SASL!$WITH_SASL$ac_delim
39017WITH_TLS!$WITH_TLS$ac_delim
39018WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39019WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39020BUILD_THREAD!$BUILD_THREAD$ac_delim
39021BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39022BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39023BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39024SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39025BUILD_BDB!$BUILD_BDB$ac_delim
39026BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39027BUILD_HDB!$BUILD_HDB$ac_delim
39028BUILD_LDAP!$BUILD_LDAP$ac_delim
39029BUILD_META!$BUILD_META$ac_delim
39030BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39031BUILD_NULL!$BUILD_NULL$ac_delim
39032BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39033BUILD_RELAY!$BUILD_RELAY$ac_delim
39034BUILD_PERL!$BUILD_PERL$ac_delim
39035BUILD_SHELL!$BUILD_SHELL$ac_delim
39036BUILD_SOCK!$BUILD_SOCK$ac_delim
39037BUILD_SQL!$BUILD_SQL$ac_delim
39038BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39039BUILD_DYNID!$BUILD_DYNID$ac_delim
39040BUILD_ODLOCALES!$BUILD_ODLOCALES$ac_delim
39041BUILD_ODUSERS!$BUILD_ODUSERS$ac_delim
39042BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39043BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39044BUILD_DDS!$BUILD_DDS$ac_delim
39045BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39046BUILD_DEREF!$BUILD_DEREF$ac_delim
39047BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39048BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39049BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39050BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39051BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39052BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39053BUILD_REFINT!$BUILD_REFINT$ac_delim
39054BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39055BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39056BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39057BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39058BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39059BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39060LDAP_LIBS!$LDAP_LIBS$ac_delim
39061SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39062BDB_LIBS!$BDB_LIBS$ac_delim
39063LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39064LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39065WRAP_LIBS!$WRAP_LIBS$ac_delim
39066SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39067SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39068SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39069SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39070SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39071SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39072SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39073PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39074SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39075MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39076KRB4_LIBS!$KRB4_LIBS$ac_delim
39077KRB5_LIBS!$KRB5_LIBS$ac_delim
39078SASL_LIBS!$SASL_LIBS$ac_delim
39079TLS_LIBS!$TLS_LIBS$ac_delim
39080MODULES_LIBS!$MODULES_LIBS$ac_delim
39081SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39082LIBSLAPI!$LIBSLAPI$ac_delim
39083LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39084AUTH_LIBS!$AUTH_LIBS$ac_delim
39085ICU_LIBS!$ICU_LIBS$ac_delim
39086SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39087SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39088SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39089SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39090SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39091LTLIBOBJS!$LTLIBOBJS$ac_delim
39092_ACEOF
39093
39094  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
39095    break
39096  elif $ac_last_try; then
39097    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39098echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39099   { (exit 1); exit 1; }; }
39100  else
39101    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39102  fi
39103done
39104
39105ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39106if test -n "$ac_eof"; then
39107  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39108  ac_eof=`expr $ac_eof + 1`
39109fi
39110
39111cat >>$CONFIG_STATUS <<_ACEOF
39112cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39113/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39114_ACEOF
39115sed '
39116s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39117s/^/s,@/; s/!/@,|#_!!_#|/
39118:n
39119t n
39120s/'"$ac_delim"'$/,g/; t
39121s/$/\\/; p
39122N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39123' >>$CONFIG_STATUS <conf$$subs.sed
39124rm -f conf$$subs.sed
39125cat >>$CONFIG_STATUS <<_ACEOF
39126:end
39127s/|#_!!_#|//g
39128CEOF$ac_eof
39129_ACEOF
39130
39131
39132# VPATH may cause trouble with some makes, so we remove $(srcdir),
39133# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39134# trailing colons and then remove the whole line if VPATH becomes empty
39135# (actually we leave an empty line to preserve line numbers).
39136if test "x$srcdir" = x.; then
39137  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
39138s/:*\$(srcdir):*/:/
39139s/:*\${srcdir}:*/:/
39140s/:*@srcdir@:*/:/
39141s/^\([^=]*=[	 ]*\):*/\1/
39142s/:*$//
39143s/^[^=]*=[	 ]*$//
39144}'
39145fi
39146
39147cat >>$CONFIG_STATUS <<\_ACEOF
39148fi # test -n "$CONFIG_FILES"
39149
39150
39151for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39152do
39153  case $ac_tag in
39154  :[FHLC]) ac_mode=$ac_tag; continue;;
39155  esac
39156  case $ac_mode$ac_tag in
39157  :[FHL]*:*);;
39158  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39159echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39160   { (exit 1); exit 1; }; };;
39161  :[FH]-) ac_tag=-:-;;
39162  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39163  esac
39164  ac_save_IFS=$IFS
39165  IFS=:
39166  set x $ac_tag
39167  IFS=$ac_save_IFS
39168  shift
39169  ac_file=$1
39170  shift
39171
39172  case $ac_mode in
39173  :L) ac_source=$1;;
39174  :[FH])
39175    ac_file_inputs=
39176    for ac_f
39177    do
39178      case $ac_f in
39179      -) ac_f="$tmp/stdin";;
39180      *) # Look for the file first in the build tree, then in the source tree
39181	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
39182	 # because $ac_f cannot contain `:'.
39183	 test -f "$ac_f" ||
39184	   case $ac_f in
39185	   [\\/$]*) false;;
39186	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39187	   esac ||
39188	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39189echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39190   { (exit 1); exit 1; }; };;
39191      esac
39192      ac_file_inputs="$ac_file_inputs $ac_f"
39193    done
39194
39195    # Let's still pretend it is `configure' which instantiates (i.e., don't
39196    # use $as_me), people would be surprised to read:
39197    #    /* config.h.  Generated by config.status.  */
39198    configure_input="Generated from "`IFS=:
39199	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39200    if test x"$ac_file" != x-; then
39201      configure_input="$ac_file.  $configure_input"
39202      { echo "$as_me:$LINENO: creating $ac_file" >&5
39203echo "$as_me: creating $ac_file" >&6;}
39204    fi
39205
39206    case $ac_tag in
39207    *:-:* | *:-) cat >"$tmp/stdin";;
39208    esac
39209    ;;
39210  esac
39211
39212  ac_dir=`$as_dirname -- "$ac_file" ||
39213$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39214	 X"$ac_file" : 'X\(//\)[^/]' \| \
39215	 X"$ac_file" : 'X\(//\)$' \| \
39216	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39217echo X"$ac_file" |
39218    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39219	    s//\1/
39220	    q
39221	  }
39222	  /^X\(\/\/\)[^/].*/{
39223	    s//\1/
39224	    q
39225	  }
39226	  /^X\(\/\/\)$/{
39227	    s//\1/
39228	    q
39229	  }
39230	  /^X\(\/\).*/{
39231	    s//\1/
39232	    q
39233	  }
39234	  s/.*/./; q'`
39235  { as_dir="$ac_dir"
39236  case $as_dir in #(
39237  -*) as_dir=./$as_dir;;
39238  esac
39239  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39240    as_dirs=
39241    while :; do
39242      case $as_dir in #(
39243      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39244      *) as_qdir=$as_dir;;
39245      esac
39246      as_dirs="'$as_qdir' $as_dirs"
39247      as_dir=`$as_dirname -- "$as_dir" ||
39248$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39249	 X"$as_dir" : 'X\(//\)[^/]' \| \
39250	 X"$as_dir" : 'X\(//\)$' \| \
39251	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39252echo X"$as_dir" |
39253    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39254	    s//\1/
39255	    q
39256	  }
39257	  /^X\(\/\/\)[^/].*/{
39258	    s//\1/
39259	    q
39260	  }
39261	  /^X\(\/\/\)$/{
39262	    s//\1/
39263	    q
39264	  }
39265	  /^X\(\/\).*/{
39266	    s//\1/
39267	    q
39268	  }
39269	  s/.*/./; q'`
39270      test -d "$as_dir" && break
39271    done
39272    test -z "$as_dirs" || eval "mkdir $as_dirs"
39273  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39274echo "$as_me: error: cannot create directory $as_dir" >&2;}
39275   { (exit 1); exit 1; }; }; }
39276  ac_builddir=.
39277
39278case "$ac_dir" in
39279.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39280*)
39281  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39282  # A ".." for each directory in $ac_dir_suffix.
39283  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39284  case $ac_top_builddir_sub in
39285  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39286  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39287  esac ;;
39288esac
39289ac_abs_top_builddir=$ac_pwd
39290ac_abs_builddir=$ac_pwd$ac_dir_suffix
39291# for backward compatibility:
39292ac_top_builddir=$ac_top_build_prefix
39293
39294case $srcdir in
39295  .)  # We are building in place.
39296    ac_srcdir=.
39297    ac_top_srcdir=$ac_top_builddir_sub
39298    ac_abs_top_srcdir=$ac_pwd ;;
39299  [\\/]* | ?:[\\/]* )  # Absolute name.
39300    ac_srcdir=$srcdir$ac_dir_suffix;
39301    ac_top_srcdir=$srcdir
39302    ac_abs_top_srcdir=$srcdir ;;
39303  *) # Relative name.
39304    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39305    ac_top_srcdir=$ac_top_build_prefix$srcdir
39306    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39307esac
39308ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39309
39310
39311  case $ac_mode in
39312  :F)
39313  #
39314  # CONFIG_FILE
39315  #
39316
39317  case $INSTALL in
39318  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39319  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39320  esac
39321_ACEOF
39322
39323cat >>$CONFIG_STATUS <<\_ACEOF
39324# If the template does not know about datarootdir, expand it.
39325# FIXME: This hack should be removed a few years after 2.60.
39326ac_datarootdir_hack=; ac_datarootdir_seen=
39327
39328case `sed -n '/datarootdir/ {
39329  p
39330  q
39331}
39332/@datadir@/p
39333/@docdir@/p
39334/@infodir@/p
39335/@localedir@/p
39336/@mandir@/p
39337' $ac_file_inputs` in
39338*datarootdir*) ac_datarootdir_seen=yes;;
39339*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39340  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39341echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39342_ACEOF
39343cat >>$CONFIG_STATUS <<_ACEOF
39344  ac_datarootdir_hack='
39345  s&@datadir@&$datadir&g
39346  s&@docdir@&$docdir&g
39347  s&@infodir@&$infodir&g
39348  s&@localedir@&$localedir&g
39349  s&@mandir@&$mandir&g
39350    s&\\\${datarootdir}&$datarootdir&g' ;;
39351esac
39352_ACEOF
39353
39354# Neutralize VPATH when `$srcdir' = `.'.
39355# Shell code in configure.ac might set extrasub.
39356# FIXME: do we really want to maintain this feature?
39357cat >>$CONFIG_STATUS <<_ACEOF
39358  sed "$ac_vpsub
39359$extrasub
39360_ACEOF
39361cat >>$CONFIG_STATUS <<\_ACEOF
39362:t
39363/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39364s&@configure_input@&$configure_input&;t t
39365s&@top_builddir@&$ac_top_builddir_sub&;t t
39366s&@srcdir@&$ac_srcdir&;t t
39367s&@abs_srcdir@&$ac_abs_srcdir&;t t
39368s&@top_srcdir@&$ac_top_srcdir&;t t
39369s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39370s&@builddir@&$ac_builddir&;t t
39371s&@abs_builddir@&$ac_abs_builddir&;t t
39372s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39373s&@INSTALL@&$ac_INSTALL&;t t
39374$ac_datarootdir_hack
39375" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
39376
39377test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39378  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39379  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39380  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39381which seems to be undefined.  Please make sure it is defined." >&5
39382echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39383which seems to be undefined.  Please make sure it is defined." >&2;}
39384
39385  rm -f "$tmp/stdin"
39386  case $ac_file in
39387  -) cat "$tmp/out"; rm -f "$tmp/out";;
39388  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39389  esac
39390 ;;
39391  :H)
39392  #
39393  # CONFIG_HEADER
39394  #
39395_ACEOF
39396
39397# Transform confdefs.h into a sed script `conftest.defines', that
39398# substitutes the proper values into config.h.in to produce config.h.
39399rm -f conftest.defines conftest.tail
39400# First, append a space to every undef/define line, to ease matching.
39401echo 's/$/ /' >conftest.defines
39402# Then, protect against being on the right side of a sed subst, or in
39403# an unquoted here document, in config.status.  If some macros were
39404# called several times there might be several #defines for the same
39405# symbol, which is useless.  But do not sort them, since the last
39406# AC_DEFINE must be honored.
39407ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39408# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39409# NAME is the cpp macro being defined, VALUE is the value it is being given.
39410# PARAMS is the parameter list in the macro definition--in most cases, it's
39411# just an empty string.
39412ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
39413ac_dB='\\)[	 (].*,\\1define\\2'
39414ac_dC=' '
39415ac_dD=' ,'
39416
39417uniq confdefs.h |
39418  sed -n '
39419	t rset
39420	:rset
39421	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
39422	t ok
39423	d
39424	:ok
39425	s/[\\&,]/\\&/g
39426	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39427	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39428  ' >>conftest.defines
39429
39430# Remove the space that was appended to ease matching.
39431# Then replace #undef with comments.  This is necessary, for
39432# example, in the case of _POSIX_SOURCE, which is predefined and required
39433# on some systems where configure will not decide to define it.
39434# (The regexp can be short, since the line contains either #define or #undef.)
39435echo 's/ $//
39436s,^[	 #]*u.*,/* & */,' >>conftest.defines
39437
39438# Break up conftest.defines:
39439ac_max_sed_lines=50
39440
39441# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39442# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39443# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39444# et cetera.
39445ac_in='$ac_file_inputs'
39446ac_out='"$tmp/out1"'
39447ac_nxt='"$tmp/out2"'
39448
39449while :
39450do
39451  # Write a here document:
39452    cat >>$CONFIG_STATUS <<_ACEOF
39453    # First, check the format of the line:
39454    cat >"\$tmp/defines.sed" <<\\CEOF
39455/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*/b def
39456/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
39457b
39458:def
39459_ACEOF
39460  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39461  echo 'CEOF
39462    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39463  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39464  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39465  grep . conftest.tail >/dev/null || break
39466  rm -f conftest.defines
39467  mv conftest.tail conftest.defines
39468done
39469rm -f conftest.defines conftest.tail
39470
39471echo "ac_result=$ac_in" >>$CONFIG_STATUS
39472cat >>$CONFIG_STATUS <<\_ACEOF
39473  if test x"$ac_file" != x-; then
39474    echo "/* $configure_input  */" >"$tmp/config.h"
39475    cat "$ac_result" >>"$tmp/config.h"
39476    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39477      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39478echo "$as_me: $ac_file is unchanged" >&6;}
39479    else
39480      rm -f $ac_file
39481      mv "$tmp/config.h" $ac_file
39482    fi
39483  else
39484    echo "/* $configure_input  */"
39485    cat "$ac_result"
39486  fi
39487  rm -f "$tmp/out12"
39488# Compute $ac_file's index in $config_headers.
39489_am_stamp_count=1
39490for _am_header in $config_headers :; do
39491  case $_am_header in
39492    $ac_file | $ac_file:* )
39493      break ;;
39494    * )
39495      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39496  esac
39497done
39498echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
39499$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39500	 X$ac_file : 'X\(//\)[^/]' \| \
39501	 X$ac_file : 'X\(//\)$' \| \
39502	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
39503echo X$ac_file |
39504    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39505	    s//\1/
39506	    q
39507	  }
39508	  /^X\(\/\/\)[^/].*/{
39509	    s//\1/
39510	    q
39511	  }
39512	  /^X\(\/\/\)$/{
39513	    s//\1/
39514	    q
39515	  }
39516	  /^X\(\/\).*/{
39517	    s//\1/
39518	    q
39519	  }
39520	  s/.*/./; q'`/stamp-h$_am_stamp_count
39521 ;;
39522
39523  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39524echo "$as_me: executing $ac_file commands" >&6;}
39525 ;;
39526  esac
39527
39528
39529  case $ac_file$ac_mode in
39530    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39531  # Strip MF so we end up with the name of the file.
39532  mf=`echo "$mf" | sed -e 's/:.*$//'`
39533  # Check whether this is an Automake generated Makefile or not.
39534  # We used to match only the files named `Makefile.in', but
39535  # some people rename them; so instead we look at the file content.
39536  # Grep'ing the first line is not enough: some people post-process
39537  # each Makefile.in and add a new line on top of each file to say so.
39538  # So let's grep whole file.
39539  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
39540    dirpart=`$as_dirname -- "$mf" ||
39541$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39542	 X"$mf" : 'X\(//\)[^/]' \| \
39543	 X"$mf" : 'X\(//\)$' \| \
39544	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39545echo X"$mf" |
39546    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39547	    s//\1/
39548	    q
39549	  }
39550	  /^X\(\/\/\)[^/].*/{
39551	    s//\1/
39552	    q
39553	  }
39554	  /^X\(\/\/\)$/{
39555	    s//\1/
39556	    q
39557	  }
39558	  /^X\(\/\).*/{
39559	    s//\1/
39560	    q
39561	  }
39562	  s/.*/./; q'`
39563  else
39564    continue
39565  fi
39566  # Extract the definition of DEPDIR, am__include, and am__quote
39567  # from the Makefile without running `make'.
39568  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39569  test -z "$DEPDIR" && continue
39570  am__include=`sed -n 's/^am__include = //p' < "$mf"`
39571  test -z "am__include" && continue
39572  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39573  # When using ansi2knr, U may be empty or an underscore; expand it
39574  U=`sed -n 's/^U = //p' < "$mf"`
39575  # Find all dependency output files, they are included files with
39576  # $(DEPDIR) in their names.  We invoke sed twice because it is the
39577  # simplest approach to changing $(DEPDIR) to its actual value in the
39578  # expansion.
39579  for file in `sed -n "
39580    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39581       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39582    # Make sure the directory exists.
39583    test -f "$dirpart/$file" && continue
39584    fdir=`$as_dirname -- "$file" ||
39585$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39586	 X"$file" : 'X\(//\)[^/]' \| \
39587	 X"$file" : 'X\(//\)$' \| \
39588	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39589echo X"$file" |
39590    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39591	    s//\1/
39592	    q
39593	  }
39594	  /^X\(\/\/\)[^/].*/{
39595	    s//\1/
39596	    q
39597	  }
39598	  /^X\(\/\/\)$/{
39599	    s//\1/
39600	    q
39601	  }
39602	  /^X\(\/\).*/{
39603	    s//\1/
39604	    q
39605	  }
39606	  s/.*/./; q'`
39607    { as_dir=$dirpart/$fdir
39608  case $as_dir in #(
39609  -*) as_dir=./$as_dir;;
39610  esac
39611  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39612    as_dirs=
39613    while :; do
39614      case $as_dir in #(
39615      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39616      *) as_qdir=$as_dir;;
39617      esac
39618      as_dirs="'$as_qdir' $as_dirs"
39619      as_dir=`$as_dirname -- "$as_dir" ||
39620$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39621	 X"$as_dir" : 'X\(//\)[^/]' \| \
39622	 X"$as_dir" : 'X\(//\)$' \| \
39623	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39624echo X"$as_dir" |
39625    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39626	    s//\1/
39627	    q
39628	  }
39629	  /^X\(\/\/\)[^/].*/{
39630	    s//\1/
39631	    q
39632	  }
39633	  /^X\(\/\/\)$/{
39634	    s//\1/
39635	    q
39636	  }
39637	  /^X\(\/\).*/{
39638	    s//\1/
39639	    q
39640	  }
39641	  s/.*/./; q'`
39642      test -d "$as_dir" && break
39643    done
39644    test -z "$as_dirs" || eval "mkdir $as_dirs"
39645  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39646echo "$as_me: error: cannot create directory $as_dir" >&2;}
39647   { (exit 1); exit 1; }; }; }
39648    # echo "creating $dirpart/$file"
39649    echo '# dummy' > "$dirpart/$file"
39650  done
39651done
39652 ;;
39653    "default":C)
39654chmod +x tests/run
39655date > stamp-h
39656BACKENDSC="servers/slapd/backends.c"
39657echo "Making $BACKENDSC"
39658rm -f $BACKENDSC
39659cat > $BACKENDSC << ENDX
39660/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
39661 *
39662 * Copyright 1998-2011 The OpenLDAP Foundation.
39663 * All rights reserved.
39664 *
39665 * Redistribution and use in source and binary forms, with or without
39666 * modification, are permitted only as authorized by the OpenLDAP
39667 * Public License.
39668 *
39669 * A copy of this license is available in the file LICENSE in the
39670 * top-level directory of the distribution or, alternatively, at
39671 * <http://www.OpenLDAP.org/license.html>.
39672 */
39673/* This file is automatically generated by configure; please do not edit. */
39674
39675#include "portable.h"
39676#include "slap.h"
39677
39678ENDX
39679if test "${STATIC_BACKENDS}"; then
39680	for b in config ${STATIC_BACKENDS}; do
39681		bb=`echo "${b}" | sed -e 's/back-//'`
39682		cat >> $BACKENDSC << ENDX
39683extern BI_init ${bb}_back_initialize;
39684ENDX
39685	done
39686
39687	cat >> $BACKENDSC << ENDX
39688
39689BackendInfo slap_binfo[] = {
39690ENDX
39691
39692	for b in config ${STATIC_BACKENDS}; do
39693		bb=`echo "${b}" | sed -e 's/back-//'`
39694		echo "    Add ${bb} ..."
39695		cat >> $BACKENDSC << ENDX
39696	{ "${bb}", ${bb}_back_initialize },
39697ENDX
39698	done
39699
39700	cat >> $BACKENDSC << ENDX
39701	{ NULL, NULL },
39702};
39703
39704/* end of generated file */
39705ENDX
39706fi
39707OVERLAYSC="servers/slapd/overlays/statover.c"
39708echo "Making $OVERLAYSC"
39709rm -f $OVERLAYSC
39710cat > $OVERLAYSC << ENDX
39711/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
39712 *
39713 * Copyright 1998-2011 The OpenLDAP Foundation.
39714 * All rights reserved.
39715 *
39716 * Redistribution and use in source and binary forms, with or without
39717 * modification, are permitted only as authorized by the OpenLDAP
39718 * Public License.
39719 *
39720 * A copy of this license is available in the file LICENSE in the
39721 * top-level directory of the distribution or, alternatively, at
39722 * <http://www.OpenLDAP.org/license.html>.
39723 */
39724/* This file is automatically generated by configure; please do not edit. */
39725
39726#include "portable.h"
39727#include "slap.h"
39728
39729ENDX
39730if test "${STATIC_OVERLAYS}"; then
39731	for o in ${STATIC_OVERLAYS}; do
39732		oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
39733		cat >> $OVERLAYSC << ENDX
39734extern OV_init ${oo}_initialize;
39735ENDX
39736	done
39737fi
39738
39739cat >> $OVERLAYSC << ENDX
39740
39741OverlayInit slap_oinfo[] = {
39742ENDX
39743
39744if test "${STATIC_OVERLAYS}"; then
39745	for o in ${STATIC_OVERLAYS}; do
39746		oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
39747		echo "    Add ${oo} ..."
39748		cat >> $OVERLAYSC << ENDX
39749	{ "${oo}", ${oo}_initialize },
39750ENDX
39751	done
39752fi
39753
39754	cat >> $OVERLAYSC << ENDX
39755	{ NULL, NULL },
39756};
39757
39758/* end of generated file */
39759ENDX
39760
39761if test "${ol_cv_mkdep}" = no; then
39762	echo '(Do not "make depend"; we do not know how to build dependencies)'
39763else
39764	echo 'Please run "make depend" to build dependencies'
39765fi
39766 ;;
39767
39768  esac
39769done # for ac_tag
39770
39771
39772{ (exit 0); exit 0; }
39773_ACEOF
39774chmod +x $CONFIG_STATUS
39775ac_clean_files=$ac_clean_files_save
39776
39777
39778# configure is writing to config.log, and then calls config.status.
39779# config.status does its own redirection, appending to config.log.
39780# Unfortunately, on DOS this fails, as config.log is still kept open
39781# by configure, so config.status won't be able to write to it; its
39782# output is simply discarded.  So we exec the FD to /dev/null,
39783# effectively closing config.log, so it can be properly (re)opened and
39784# appended to by config.status.  When coming back to configure, we
39785# need to make the FD available again.
39786if test "$no_create" != yes; then
39787  ac_cs_success=:
39788  ac_config_status_args=
39789  test "$silent" = yes &&
39790    ac_config_status_args="$ac_config_status_args --quiet"
39791  exec 5>/dev/null
39792  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39793  exec 5>>config.log
39794  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39795  # would make configure fail if this is the last instruction.
39796  $ac_cs_success || { (exit 1); exit 1; }
39797fi
39798
39799