1#! /bin/sh
2# From configure.ac Id: 1c372d9fe8d80795909df859a01abd486462d0a2 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69.
5#
6# Copyright 1998-2021 The OpenLDAP Foundation. All rights reserved.
7# Restrictions apply, see COPYRIGHT and LICENSE files.
8#
9#
10# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139# Use a proper internal environment variable to ensure we don't fall
140  # into an infinite loop, continuously re-executing ourselves.
141  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142    _as_can_reexec=no; export _as_can_reexec;
143    # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151  *v*x* | *x*v* ) as_opts=-vx ;;
152  *v* ) as_opts=-v ;;
153  *x* ) as_opts=-x ;;
154  * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161  fi
162  # We don't want this to propagate to other subprocesses.
163          { _as_can_reexec=; unset _as_can_reexec;}
164if test "x$CONFIG_SHELL" = x; then
165  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166  emulate sh
167  NULLCMD=:
168  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169  # is contrary to our usage.  Disable this feature.
170  alias -g '\${1+\"\$@\"}'='\"\$@\"'
171  setopt NO_GLOB_SUBST
172else
173  case \`(set -o) 2>/dev/null\` in #(
174  *posix*) :
175    set -o posix ;; #(
176  *) :
177     ;;
178esac
179fi
180"
181  as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195  exitcode=1; echo positional parameters were not saved.
196fi
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
199  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203
204  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208    PATH=/empty FPATH=/empty; export PATH FPATH
209    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
211test \$(( 1 + 1 )) = 2 || exit 1"
212  if (eval "$as_required") 2>/dev/null; then :
213  as_have_required=yes
214else
215  as_have_required=no
216fi
217  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219else
220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221as_found=false
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  as_found=:
227  case $as_dir in #(
228	 /*)
229	   for as_base in sh bash ksh sh5; do
230	     # Try only shells that exist, to save several forks.
231	     as_shell=$as_dir/$as_base
232	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  CONFIG_SHELL=$as_shell as_have_required=yes
235		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236  break 2
237fi
238fi
239	   done;;
240       esac
241  as_found=false
242done
243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245  CONFIG_SHELL=$SHELL as_have_required=yes
246fi; }
247IFS=$as_save_IFS
248
249
250      if test "x$CONFIG_SHELL" != x; then :
251  export CONFIG_SHELL
252             # We cannot yet assume a decent shell, so we have to provide a
253# neutralization value for shells without unset; and this also
254# works around shells that cannot unset nonexistent variables.
255# Preserve -v and -x to the replacement shell.
256BASH_ENV=/dev/null
257ENV=/dev/null
258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259case $- in # ((((
260  *v*x* | *x*v* ) as_opts=-vx ;;
261  *v* ) as_opts=-v ;;
262  *x* ) as_opts=-x ;;
263  * ) as_opts= ;;
264esac
265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266# Admittedly, this is quite paranoid, since all the known shells bail
267# out after a failed `exec'.
268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269exit 255
270fi
271
272    if test x$as_have_required = xno; then :
273  $as_echo "$0: This script requires a shell more modern than all"
274  $as_echo "$0: the shells that I found on your system."
275  if test x${ZSH_VERSION+set} = xset ; then
276    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278  else
279    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
280$0: including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME=
593PACKAGE_TARNAME=
594PACKAGE_VERSION=
595PACKAGE_STRING=
596PACKAGE_BUGREPORT=
597PACKAGE_URL=
598
599ac_unique_file="OpenLDAP"
600ac_unique_file="build/version.sh"
601ac_default_prefix=/usr/local
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
605#ifdef HAVE_SYS_TYPES_H
606# include <sys/types.h>
607#endif
608#ifdef HAVE_SYS_STAT_H
609# include <sys/stat.h>
610#endif
611#ifdef STDC_HEADERS
612# include <stdlib.h>
613# include <stddef.h>
614#else
615# ifdef HAVE_STDLIB_H
616#  include <stdlib.h>
617# endif
618#endif
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621#  include <memory.h>
622# endif
623# include <string.h>
624#endif
625#ifdef HAVE_STRINGS_H
626# include <strings.h>
627#endif
628#ifdef HAVE_INTTYPES_H
629# include <inttypes.h>
630#endif
631#ifdef HAVE_STDINT_H
632# include <stdint.h>
633#endif
634#ifdef HAVE_UNISTD_H
635# include <unistd.h>
636#endif"
637
638ac_subst_vars='LTLIBOBJS
639BALANCER_INCLUDE
640SLAPD_SQL_INCLUDES
641SLAPD_SQL_LIBS
642SLAPD_SQL_LDFLAGS
643SLAPD_GMP_LIBS
644SLAPD_SLP_LIBS
645SYSTEMD_LIBS
646ARGON2_LIBS
647AUTH_LIBS
648LIBSLAPI
649SLAPI_LIBS
650MODULES_LIBS
651WITH_TLS_TYPE
652TLS_LIBS
653SASL_LIBS
654MOD_PERL_LDFLAGS
655SLAPD_PERL_LDFLAGS
656PERL_CPPFLAGS
657SLAPD_DYNAMIC_PWMODS
658SLAPD_DYNAMIC_OVERLAYS
659SLAPD_STATIC_OVERLAYS
660SLAPD_DYNAMIC_BACKENDS
661SLAPD_STATIC_BACKENDS
662SLAPD_NO_STATIC
663SLAPD_MODULES_LDFLAGS
664SLAPD_MODULES_CPPFLAGS
665WRAP_LIBS
666LEVENT_LIBS
667LUTIL_LIBS
668LTHREAD_LIBS
669SLAPD_NDB_INCS
670SLAPD_NDB_LIBS
671BALANCER_LIBS
672SLAPD_LIBS
673CLIENT_LIBS
674LDAP_LIBS
675BUILD_PW_ARGON2
676BUILD_BALANCER
677BUILD_VALSORT
678BUILD_UNIQUE
679BUILD_TRANSLUCENT
680BUILD_SYNCPROV
681BUILD_SSSVLV
682BUILD_SEQMOD
683BUILD_RWM
684BUILD_RETCODE
685BUILD_REMOTEAUTH
686BUILD_REFINT
687BUILD_PROXYCACHE
688BUILD_PPOLICY
689BUILD_OTP
690BUILD_MEMBEROF
691BUILD_HOMEDIR
692BUILD_LASTMOD
693BUILD_DYNLIST
694BUILD_DYNGROUP
695BUILD_DEREF
696BUILD_DENYOP
697BUILD_DDS
698BUILD_CONSTRAINT
699BUILD_COLLECT
700BUILD_AUTOCA
701BUILD_AUDITLOG
702BUILD_ACCESSLOG
703BUILD_WT
704BUILD_SQL
705BUILD_SOCK
706BUILD_SHELL
707BUILD_PERL
708BUILD_RELAY
709BUILD_PASSWD
710BUILD_NULL
711BUILD_NDB
712BUILD_ASYNCMETA
713BUILD_META
714BUILD_MDB
715BUILD_LDAP
716BUILD_DNSSRV
717SLAPD_SLAPI_DEPEND
718BUILD_SLAPI
719BUILD_SLAPD
720OL_VERSIONED_SYMBOLS
721BUILD_LIBS_DYNAMIC
722BUILD_THREAD
723WITH_SYSTEMD
724WITH_ACI_ENABLED
725WITH_MODULES_ENABLED
726WITH_TLS
727WITH_SASL
728PLAT
729LIBSRCS
730LIBOBJS
731systemdsystemunitdir
732WT_LIBS
733WT_CFLAGS
734PKG_CONFIG_LIBDIR
735PKG_CONFIG_PATH
736PKG_CONFIG
737MYSQL
738LTSTATIC
739OL_MKDEP_FLAGS
740OL_MKDEP
741RC
742PERLBIN
743CPP
744LT_SYS_LIBRARY_PATH
745OTOOL64
746OTOOL
747LIPO
748NMEDIT
749DSYMUTIL
750MANIFEST_TOOL
751AWK
752RANLIB
753ac_ct_AR
754LN_S
755NM
756ac_ct_DUMPBIN
757DUMPBIN
758LD
759FGREP
760EGREP
761GREP
762SED
763OBJEXT
764EXEEXT
765ac_ct_CC
766CPPFLAGS
767LDFLAGS
768CFLAGS
769LIBTOOL
770SET_MAKE
771OBJDUMP
772DLLTOOL
773AS
774STRIP
775AR
776CC
777ldap_subdir
778top_builddir
779OPENLDAP_RELEASE_DATE
780OPENLDAP_LIBVERSION
781OPENLDAP_LIBRELEASE
782VERSION
783PACKAGE
784target_os
785target_vendor
786target_cpu
787target
788host_os
789host_vendor
790host_cpu
791host
792build_os
793build_vendor
794build_cpu
795build
796target_alias
797host_alias
798build_alias
799LIBS
800ECHO_T
801ECHO_N
802ECHO_C
803DEFS
804mandir
805localedir
806libdir
807psdir
808pdfdir
809dvidir
810htmldir
811infodir
812docdir
813oldincludedir
814includedir
815runstatedir
816localstatedir
817sharedstatedir
818sysconfdir
819datadir
820datarootdir
821libexecdir
822sbindir
823bindir
824program_transform_name
825prefix
826exec_prefix
827PACKAGE_URL
828PACKAGE_BUGREPORT
829PACKAGE_STRING
830PACKAGE_VERSION
831PACKAGE_TARNAME
832PACKAGE_NAME
833PATH_SEPARATOR
834SHELL'
835ac_subst_files=''
836ac_user_opts='
837enable_option_checking
838with_subdir
839enable_debug
840enable_dynamic
841enable_syslog
842enable_ipv6
843enable_local
844with_cyrus_sasl
845with_systemd
846with_fetch
847with_threads
848with_tls
849with_yielding_select
850with_mp
851with_odbc
852enable_xxslapdoptions
853enable_slapd
854enable_dynacl
855enable_aci
856enable_cleartext
857enable_crypt
858enable_spasswd
859enable_modules
860enable_rlookups
861enable_slapi
862enable_slp
863enable_wrappers
864enable_xxslapbackends
865enable_backends
866enable_dnssrv
867enable_ldap
868enable_mdb
869enable_meta
870enable_asyncmeta
871enable_ndb
872enable_null
873enable_passwd
874enable_perl
875enable_relay
876enable_sock
877enable_sql
878enable_wt
879enable_xxslapoverlays
880enable_overlays
881enable_accesslog
882enable_auditlog
883enable_autoca
884enable_collect
885enable_constraint
886enable_dds
887enable_deref
888enable_dyngroup
889enable_dynlist
890enable_homedir
891enable_memberof
892enable_otp
893enable_ppolicy
894enable_proxycache
895enable_refint
896enable_remoteauth
897enable_retcode
898enable_rwm
899enable_seqmod
900enable_sssvlv
901enable_syncprov
902enable_translucent
903enable_unique
904enable_valsort
905enable_pwmodoptions
906enable_argon2
907with_argon2
908enable_balanceroptions
909enable_balancer
910enable_xxliboptions
911enable_static
912enable_shared
913enable_versioning
914with_pic
915enable_fast_install
916with_aix_soname
917with_gnu_ld
918with_sysroot
919enable_libtool_lock
920with_xxinstall
921'
922      ac_precious_vars='build_alias
923host_alias
924target_alias
925CC
926CFLAGS
927LDFLAGS
928LIBS
929CPPFLAGS
930LT_SYS_LIBRARY_PATH
931CPP
932PKG_CONFIG
933PKG_CONFIG_PATH
934PKG_CONFIG_LIBDIR
935WT_CFLAGS
936WT_LIBS
937systemdsystemunitdir'
938
939
940# Initialize some variables set by options.
941ac_init_help=
942ac_init_version=false
943ac_unrecognized_opts=
944ac_unrecognized_sep=
945# The variables have the same names as the options, with
946# dashes changed to underlines.
947cache_file=/dev/null
948exec_prefix=NONE
949no_create=
950no_recursion=
951prefix=NONE
952program_prefix=NONE
953program_suffix=NONE
954program_transform_name=s,x,x,
955silent=
956site=
957srcdir=
958verbose=
959x_includes=NONE
960x_libraries=NONE
961
962# Installation directory options.
963# These are left unexpanded so users can "make install exec_prefix=/foo"
964# and all the variables that are supposed to be based on exec_prefix
965# by default will actually change.
966# Use braces instead of parens because sh, perl, etc. also accept them.
967# (The list follows the same order as the GNU Coding Standards.)
968bindir='${exec_prefix}/bin'
969sbindir='${exec_prefix}/sbin'
970libexecdir='${exec_prefix}/libexec'
971datarootdir='${prefix}/share'
972datadir='${datarootdir}'
973sysconfdir='${prefix}/etc'
974sharedstatedir='${prefix}/com'
975localstatedir='${prefix}/var'
976runstatedir='${localstatedir}/run'
977includedir='${prefix}/include'
978oldincludedir='/usr/include'
979docdir='${datarootdir}/doc/${PACKAGE}'
980infodir='${datarootdir}/info'
981htmldir='${docdir}'
982dvidir='${docdir}'
983pdfdir='${docdir}'
984psdir='${docdir}'
985libdir='${exec_prefix}/lib'
986localedir='${datarootdir}/locale'
987mandir='${datarootdir}/man'
988
989ac_prev=
990ac_dashdash=
991for ac_option
992do
993  # If the previous option needs an argument, assign it.
994  if test -n "$ac_prev"; then
995    eval $ac_prev=\$ac_option
996    ac_prev=
997    continue
998  fi
999
1000  case $ac_option in
1001  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002  *=)   ac_optarg= ;;
1003  *)    ac_optarg=yes ;;
1004  esac
1005
1006  # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008  case $ac_dashdash$ac_option in
1009  --)
1010    ac_dashdash=yes ;;
1011
1012  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013    ac_prev=bindir ;;
1014  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015    bindir=$ac_optarg ;;
1016
1017  -build | --build | --buil | --bui | --bu)
1018    ac_prev=build_alias ;;
1019  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020    build_alias=$ac_optarg ;;
1021
1022  -cache-file | --cache-file | --cache-fil | --cache-fi \
1023  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024    ac_prev=cache_file ;;
1025  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027    cache_file=$ac_optarg ;;
1028
1029  --config-cache | -C)
1030    cache_file=config.cache ;;
1031
1032  -datadir | --datadir | --datadi | --datad)
1033    ac_prev=datadir ;;
1034  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035    datadir=$ac_optarg ;;
1036
1037  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038  | --dataroo | --dataro | --datar)
1039    ac_prev=datarootdir ;;
1040  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042    datarootdir=$ac_optarg ;;
1043
1044  -disable-* | --disable-*)
1045    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048      as_fn_error $? "invalid feature name: $ac_useropt"
1049    ac_useropt_orig=$ac_useropt
1050    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051    case $ac_user_opts in
1052      *"
1053"enable_$ac_useropt"
1054"*) ;;
1055      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056	 ac_unrecognized_sep=', ';;
1057    esac
1058    eval enable_$ac_useropt=no ;;
1059
1060  -docdir | --docdir | --docdi | --doc | --do)
1061    ac_prev=docdir ;;
1062  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063    docdir=$ac_optarg ;;
1064
1065  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066    ac_prev=dvidir ;;
1067  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068    dvidir=$ac_optarg ;;
1069
1070  -enable-* | --enable-*)
1071    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072    # Reject names that are not valid shell variable names.
1073    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074      as_fn_error $? "invalid feature name: $ac_useropt"
1075    ac_useropt_orig=$ac_useropt
1076    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077    case $ac_user_opts in
1078      *"
1079"enable_$ac_useropt"
1080"*) ;;
1081      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082	 ac_unrecognized_sep=', ';;
1083    esac
1084    eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088  | --exec | --exe | --ex)
1089    ac_prev=exec_prefix ;;
1090  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092  | --exec=* | --exe=* | --ex=*)
1093    exec_prefix=$ac_optarg ;;
1094
1095  -gas | --gas | --ga | --g)
1096    # Obsolete; use --with-gas.
1097    with_gas=yes ;;
1098
1099  -help | --help | --hel | --he | -h)
1100    ac_init_help=long ;;
1101  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102    ac_init_help=recursive ;;
1103  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104    ac_init_help=short ;;
1105
1106  -host | --host | --hos | --ho)
1107    ac_prev=host_alias ;;
1108  -host=* | --host=* | --hos=* | --ho=*)
1109    host_alias=$ac_optarg ;;
1110
1111  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112    ac_prev=htmldir ;;
1113  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114  | --ht=*)
1115    htmldir=$ac_optarg ;;
1116
1117  -includedir | --includedir | --includedi | --included | --include \
1118  | --includ | --inclu | --incl | --inc)
1119    ac_prev=includedir ;;
1120  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121  | --includ=* | --inclu=* | --incl=* | --inc=*)
1122    includedir=$ac_optarg ;;
1123
1124  -infodir | --infodir | --infodi | --infod | --info | --inf)
1125    ac_prev=infodir ;;
1126  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127    infodir=$ac_optarg ;;
1128
1129  -libdir | --libdir | --libdi | --libd)
1130    ac_prev=libdir ;;
1131  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132    libdir=$ac_optarg ;;
1133
1134  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135  | --libexe | --libex | --libe)
1136    ac_prev=libexecdir ;;
1137  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138  | --libexe=* | --libex=* | --libe=*)
1139    libexecdir=$ac_optarg ;;
1140
1141  -localedir | --localedir | --localedi | --localed | --locale)
1142    ac_prev=localedir ;;
1143  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144    localedir=$ac_optarg ;;
1145
1146  -localstatedir | --localstatedir | --localstatedi | --localstated \
1147  | --localstate | --localstat | --localsta | --localst | --locals)
1148    ac_prev=localstatedir ;;
1149  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151    localstatedir=$ac_optarg ;;
1152
1153  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154    ac_prev=mandir ;;
1155  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156    mandir=$ac_optarg ;;
1157
1158  -nfp | --nfp | --nf)
1159    # Obsolete; use --without-fp.
1160    with_fp=no ;;
1161
1162  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163  | --no-cr | --no-c | -n)
1164    no_create=yes ;;
1165
1166  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168    no_recursion=yes ;;
1169
1170  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172  | --oldin | --oldi | --old | --ol | --o)
1173    ac_prev=oldincludedir ;;
1174  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177    oldincludedir=$ac_optarg ;;
1178
1179  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180    ac_prev=prefix ;;
1181  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182    prefix=$ac_optarg ;;
1183
1184  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185  | --program-pre | --program-pr | --program-p)
1186    ac_prev=program_prefix ;;
1187  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189    program_prefix=$ac_optarg ;;
1190
1191  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192  | --program-suf | --program-su | --program-s)
1193    ac_prev=program_suffix ;;
1194  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196    program_suffix=$ac_optarg ;;
1197
1198  -program-transform-name | --program-transform-name \
1199  | --program-transform-nam | --program-transform-na \
1200  | --program-transform-n | --program-transform- \
1201  | --program-transform | --program-transfor \
1202  | --program-transfo | --program-transf \
1203  | --program-trans | --program-tran \
1204  | --progr-tra | --program-tr | --program-t)
1205    ac_prev=program_transform_name ;;
1206  -program-transform-name=* | --program-transform-name=* \
1207  | --program-transform-nam=* | --program-transform-na=* \
1208  | --program-transform-n=* | --program-transform-=* \
1209  | --program-transform=* | --program-transfor=* \
1210  | --program-transfo=* | --program-transf=* \
1211  | --program-trans=* | --program-tran=* \
1212  | --progr-tra=* | --program-tr=* | --program-t=*)
1213    program_transform_name=$ac_optarg ;;
1214
1215  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216    ac_prev=pdfdir ;;
1217  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218    pdfdir=$ac_optarg ;;
1219
1220  -psdir | --psdir | --psdi | --psd | --ps)
1221    ac_prev=psdir ;;
1222  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223    psdir=$ac_optarg ;;
1224
1225  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226  | -silent | --silent | --silen | --sile | --sil)
1227    silent=yes ;;
1228
1229  -runstatedir | --runstatedir | --runstatedi | --runstated \
1230  | --runstate | --runstat | --runsta | --runst | --runs \
1231  | --run | --ru | --r)
1232    ac_prev=runstatedir ;;
1233  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1234  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1235  | --run=* | --ru=* | --r=*)
1236    runstatedir=$ac_optarg ;;
1237
1238  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239    ac_prev=sbindir ;;
1240  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241  | --sbi=* | --sb=*)
1242    sbindir=$ac_optarg ;;
1243
1244  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246  | --sharedst | --shareds | --shared | --share | --shar \
1247  | --sha | --sh)
1248    ac_prev=sharedstatedir ;;
1249  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252  | --sha=* | --sh=*)
1253    sharedstatedir=$ac_optarg ;;
1254
1255  -site | --site | --sit)
1256    ac_prev=site ;;
1257  -site=* | --site=* | --sit=*)
1258    site=$ac_optarg ;;
1259
1260  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261    ac_prev=srcdir ;;
1262  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263    srcdir=$ac_optarg ;;
1264
1265  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266  | --syscon | --sysco | --sysc | --sys | --sy)
1267    ac_prev=sysconfdir ;;
1268  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270    sysconfdir=$ac_optarg ;;
1271
1272  -target | --target | --targe | --targ | --tar | --ta | --t)
1273    ac_prev=target_alias ;;
1274  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275    target_alias=$ac_optarg ;;
1276
1277  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278    verbose=yes ;;
1279
1280  -version | --version | --versio | --versi | --vers | -V)
1281    ac_init_version=: ;;
1282
1283  -with-* | --with-*)
1284    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285    # Reject names that are not valid shell variable names.
1286    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287      as_fn_error $? "invalid package name: $ac_useropt"
1288    ac_useropt_orig=$ac_useropt
1289    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290    case $ac_user_opts in
1291      *"
1292"with_$ac_useropt"
1293"*) ;;
1294      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295	 ac_unrecognized_sep=', ';;
1296    esac
1297    eval with_$ac_useropt=\$ac_optarg ;;
1298
1299  -without-* | --without-*)
1300    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301    # Reject names that are not valid shell variable names.
1302    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303      as_fn_error $? "invalid package name: $ac_useropt"
1304    ac_useropt_orig=$ac_useropt
1305    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306    case $ac_user_opts in
1307      *"
1308"with_$ac_useropt"
1309"*) ;;
1310      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311	 ac_unrecognized_sep=', ';;
1312    esac
1313    eval with_$ac_useropt=no ;;
1314
1315  --x)
1316    # Obsolete; use --with-x.
1317    with_x=yes ;;
1318
1319  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320  | --x-incl | --x-inc | --x-in | --x-i)
1321    ac_prev=x_includes ;;
1322  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324    x_includes=$ac_optarg ;;
1325
1326  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328    ac_prev=x_libraries ;;
1329  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331    x_libraries=$ac_optarg ;;
1332
1333  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1334Try \`$0 --help' for more information"
1335    ;;
1336
1337  *=*)
1338    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339    # Reject names that are not valid shell variable names.
1340    case $ac_envvar in #(
1341      '' | [0-9]* | *[!_$as_cr_alnum]* )
1342      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1343    esac
1344    eval $ac_envvar=\$ac_optarg
1345    export $ac_envvar ;;
1346
1347  *)
1348    # FIXME: should be removed in autoconf 3.0.
1349    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1353    ;;
1354
1355  esac
1356done
1357
1358if test -n "$ac_prev"; then
1359  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360  as_fn_error $? "missing argument to $ac_option"
1361fi
1362
1363if test -n "$ac_unrecognized_opts"; then
1364  case $enable_option_checking in
1365    no) ;;
1366    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1367    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368  esac
1369fi
1370
1371# Check all directory arguments for consistency.
1372for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373		datadir sysconfdir sharedstatedir localstatedir includedir \
1374		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375		libdir localedir mandir runstatedir
1376do
1377  eval ac_val=\$$ac_var
1378  # Remove trailing slashes.
1379  case $ac_val in
1380    */ )
1381      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382      eval $ac_var=\$ac_val;;
1383  esac
1384  # Be sure to have absolute directory names.
1385  case $ac_val in
1386    [\\/$]* | ?:[\\/]* )  continue;;
1387    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388  esac
1389  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1390done
1391
1392# There might be people who depend on the old broken behavior: `$host'
1393# used to hold the argument of --host etc.
1394# FIXME: To remove some day.
1395build=$build_alias
1396host=$host_alias
1397target=$target_alias
1398
1399# FIXME: To remove some day.
1400if test "x$host_alias" != x; then
1401  if test "x$build_alias" = x; then
1402    cross_compiling=maybe
1403  elif test "x$build_alias" != "x$host_alias"; then
1404    cross_compiling=yes
1405  fi
1406fi
1407
1408ac_tool_prefix=
1409test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411test "$silent" = yes && exec 6>/dev/null
1412
1413
1414ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415ac_ls_di=`ls -di .` &&
1416ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417  as_fn_error $? "working directory cannot be determined"
1418test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419  as_fn_error $? "pwd does not report name of working directory"
1420
1421
1422# Find the source files, if location was not specified.
1423if test -z "$srcdir"; then
1424  ac_srcdir_defaulted=yes
1425  # Try the directory containing this script, then the parent directory.
1426  ac_confdir=`$as_dirname -- "$as_myself" ||
1427$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428	 X"$as_myself" : 'X\(//\)[^/]' \| \
1429	 X"$as_myself" : 'X\(//\)$' \| \
1430	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431$as_echo X"$as_myself" |
1432    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433	    s//\1/
1434	    q
1435	  }
1436	  /^X\(\/\/\)[^/].*/{
1437	    s//\1/
1438	    q
1439	  }
1440	  /^X\(\/\/\)$/{
1441	    s//\1/
1442	    q
1443	  }
1444	  /^X\(\/\).*/{
1445	    s//\1/
1446	    q
1447	  }
1448	  s/.*/./; q'`
1449  srcdir=$ac_confdir
1450  if test ! -r "$srcdir/$ac_unique_file"; then
1451    srcdir=..
1452  fi
1453else
1454  ac_srcdir_defaulted=no
1455fi
1456if test ! -r "$srcdir/$ac_unique_file"; then
1457  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1459fi
1460ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461ac_abs_confdir=`(
1462	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1463	pwd)`
1464# When building in place, set srcdir=.
1465if test "$ac_abs_confdir" = "$ac_pwd"; then
1466  srcdir=.
1467fi
1468# Remove unnecessary trailing slashes from srcdir.
1469# Double slashes in file names in object file debugging info
1470# mess up M-x gdb in Emacs.
1471case $srcdir in
1472*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473esac
1474for ac_var in $ac_precious_vars; do
1475  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476  eval ac_env_${ac_var}_value=\$${ac_var}
1477  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479done
1480
1481#
1482# Report the --help message.
1483#
1484if test "$ac_init_help" = "long"; then
1485  # Omit some internal or obsolete options to make the list less imposing.
1486  # This message is too long to be a string in the A/UX 3.1 sh.
1487  cat <<_ACEOF
1488\`configure' configures this package to adapt to many kinds of systems.
1489
1490Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493VAR=VALUE.  See below for descriptions of some of the useful variables.
1494
1495Defaults for the options are specified in brackets.
1496
1497Configuration:
1498  -h, --help              display this help and exit
1499      --help=short        display options specific to this package
1500      --help=recursive    display the short help of all the included packages
1501  -V, --version           display version information and exit
1502  -q, --quiet, --silent   do not print \`checking ...' messages
1503      --cache-file=FILE   cache test results in FILE [disabled]
1504  -C, --config-cache      alias for \`--cache-file=config.cache'
1505  -n, --no-create         do not create output files
1506      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1507
1508Installation directories:
1509  --prefix=PREFIX         install architecture-independent files in PREFIX
1510                          [$ac_default_prefix]
1511  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1512                          [PREFIX]
1513
1514By default, \`make install' will install all the files in
1515\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1516an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517for instance \`--prefix=\$HOME'.
1518
1519For better control, use the options below.
1520
1521Fine tuning of the installation directories:
1522  --bindir=DIR            user executables [EPREFIX/bin]
1523  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1524  --libexecdir=DIR        program executables [EPREFIX/libexec]
1525  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1526  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1527  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1528  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1529  --libdir=DIR            object code libraries [EPREFIX/lib]
1530  --includedir=DIR        C header files [PREFIX/include]
1531  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1532  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1533  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1534  --infodir=DIR           info documentation [DATAROOTDIR/info]
1535  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1536  --mandir=DIR            man documentation [DATAROOTDIR/man]
1537  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1538  --htmldir=DIR           html documentation [DOCDIR]
1539  --dvidir=DIR            dvi documentation [DOCDIR]
1540  --pdfdir=DIR            pdf documentation [DOCDIR]
1541  --psdir=DIR             ps documentation [DOCDIR]
1542_ACEOF
1543
1544  cat <<\_ACEOF
1545
1546System types:
1547  --build=BUILD     configure for building on BUILD [guessed]
1548  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1549  --target=TARGET   configure for building compilers for TARGET [HOST]
1550_ACEOF
1551fi
1552
1553if test -n "$ac_init_help"; then
1554
1555  cat <<\_ACEOF
1556
1557Optional Features:
1558  --disable-option-checking  ignore unrecognized --enable/--with options
1559  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1560  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1561  --enable-debug          enable debugging no|yes|traditional [yes]
1562  --enable-dynamic        enable linking built binaries with dynamic libs [auto]
1563  --enable-syslog         enable syslog support [auto]
1564  --enable-ipv6           enable IPv6 support [auto]
1565  --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1566
1567SLAPD (Standalone LDAP Daemon) Options:
1568  --enable-slapd          enable building slapd [yes]
1569  --enable-dynacl         enable run-time loadable ACL support (experimental) [no]
1570  --enable-aci            enable per-object ACIs (experimental) no|yes|mod [no]
1571  --enable-cleartext      enable cleartext passwords [yes]
1572  --enable-crypt          enable crypt(3) passwords [no]
1573  --enable-spasswd        enable (Cyrus) SASL password verification [no]
1574  --enable-modules        enable dynamic module support [no]
1575  --enable-rlookups       enable reverse lookups of client hostnames [no]
1576  --enable-slapi          enable SLAPI support (experimental) [no]
1577  --enable-slp            enable SLPv2 support [no]
1578  --enable-wrappers       enable tcp wrapper support [no]
1579
1580SLAPD Backend Options:
1581  --enable-backends       enable all available backends no|yes|mod
1582  --enable-dnssrv         enable dnssrv backend no|yes|mod [no]
1583  --enable-ldap           enable ldap backend no|yes|mod [no]
1584  --enable-mdb            enable mdb database backend no|yes|mod [yes]
1585  --enable-meta           enable metadirectory backend no|yes|mod [no]
1586  --enable-asyncmeta      enable asynchronous metadirectory backend no|yes|mod [no]
1587  --enable-ndb            enable MySQL NDB Cluster backend no|yes|mod [no]
1588  --enable-null           enable null backend no|yes|mod [no]
1589  --enable-passwd         enable passwd backend no|yes|mod [no]
1590  --enable-perl           enable perl backend no|yes|mod [no]
1591  --enable-relay          enable relay backend no|yes|mod [yes]
1592  --enable-sock           enable sock backend no|yes|mod [no]
1593  --enable-sql            enable sql backend no|yes|mod [no]
1594  --enable-wt             enable WiredTiger backend no|yes|mod [no]
1595
1596SLAPD Overlay Options:
1597  --enable-overlays       enable all available overlays no|yes|mod
1598  --enable-accesslog      In-Directory Access Logging overlay no|yes|mod [no]
1599  --enable-auditlog       Audit Logging overlay no|yes|mod [no]
1600  --enable-autoca         Automatic Certificate Authority overlay no|yes|mod [no]
1601  --enable-collect        Collect overlay no|yes|mod [no]
1602  --enable-constraint     Attribute Constraint overlay no|yes|mod [no]
1603  --enable-dds            Dynamic Directory Services overlay no|yes|mod [no]
1604  --enable-deref          Dereference overlay no|yes|mod [no]
1605  --enable-dyngroup       Dynamic Group overlay no|yes|mod [no]
1606  --enable-dynlist        Dynamic List overlay no|yes|mod [no]
1607  --enable-homedir        Home Directory Management overlay no|yes|mod [no]
1608  --enable-memberof       Reverse Group Membership overlay no|yes|mod [no]
1609  --enable-otp            OTP 2-factor authentication overlay no|yes|mod [no]
1610  --enable-ppolicy        Password Policy overlay no|yes|mod [no]
1611  --enable-proxycache     Proxy Cache overlay no|yes|mod [no]
1612  --enable-refint         Referential Integrity overlay no|yes|mod [no]
1613  --enable-remoteauth     Deferred Authentication overlay no|yes|mod [no]
1614  --enable-retcode        Return Code testing overlay no|yes|mod [no]
1615  --enable-rwm            Rewrite/Remap overlay no|yes|mod [no]
1616  --enable-seqmod         Sequential Modify overlay no|yes|mod [no]
1617  --enable-sssvlv         ServerSideSort/VLV overlay no|yes|mod [no]
1618  --enable-syncprov       Syncrepl Provider overlay no|yes|mod [yes]
1619  --enable-translucent    Translucent Proxy overlay no|yes|mod [no]
1620  --enable-unique         Attribute Uniqueness overlay no|yes|mod [no]
1621  --enable-valsort        Value Sorting overlay no|yes|mod [no]
1622
1623SLAPD Password Module Options:
1624  --enable-argon2         Argon2 password hashing module no|yes [no]
1625
1626LLOADD (Load Balancer Daemon) Options:
1627  --enable-balancer       enable load balancer no|yes|mod [no]
1628
1629Library Generation & Linking Options
1630  --enable-static[=PKGS]  build static libraries [default=yes]
1631  --enable-shared[=PKGS]  build shared libraries [default=yes]
1632  --enable-versioning     Enable versioned symbols in shared library no|yes|auto [auto]
1633  --enable-fast-install[=PKGS]
1634                          optimize for fast installation [default=yes]
1635  --disable-libtool-lock  avoid locking (might break parallel builds)
1636
1637Optional Packages:
1638  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1639  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1640  --with-subdir=DIR       change default subdirectory used for installs
1641  --with-cyrus-sasl       with Cyrus SASL support [auto]
1642  --with-systemd          with systemd service notification support [auto]
1643  --with-fetch            with fetch(3) URL support [auto]
1644  --with-threads          with threads library auto|nt|posix|pth|lwp|manual [auto]
1645  --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1646  --with-yielding-select  with implicitly yielding select [auto]
1647  --with-mp               with multiple precision statistics
1648                          auto|longlong|long|bignum|gmp [auto]
1649  --with-odbc             with specific ODBC support
1650                          iodbc|unixodbc|odbc32|auto [auto]
1651  --with-argon2           with argon2 support library auto|libsodium|libargon2 [auto]
1652  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1653                          both]
1654  --with-aix-soname=aix|svr4|both
1655                          shared library versioning (aka "SONAME") variant to
1656                          provide on AIX, [default=aix].
1657  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1658  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1659                          compiler's sysroot if not specified).
1660
1661See INSTALL file for further details.
1662
1663Some influential environment variables:
1664  CC          C compiler command
1665  CFLAGS      C compiler flags
1666  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1667              nonstandard directory <lib dir>
1668  LIBS        libraries to pass to the linker, e.g. -l<library>
1669  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1670              you have headers in a nonstandard directory <include dir>
1671  LT_SYS_LIBRARY_PATH
1672              User-defined run-time library search path.
1673  CPP         C preprocessor
1674  PKG_CONFIG  path to pkg-config utility
1675  PKG_CONFIG_PATH
1676              directories to add to pkg-config's search path
1677  PKG_CONFIG_LIBDIR
1678              path overriding pkg-config's built-in search path
1679  WT_CFLAGS   C compiler flags for WT, overriding pkg-config
1680  WT_LIBS     linker flags for WT, overriding pkg-config
1681  systemdsystemunitdir
1682              value of systemdsystemunitdir for systemd, overriding pkg-config
1683
1684Use these variables to override the choices made by `configure' or to help
1685it to find libraries and programs with nonstandard names/locations.
1686
1687Report bugs to the package provider.
1688_ACEOF
1689ac_status=$?
1690fi
1691
1692if test "$ac_init_help" = "recursive"; then
1693  # If there are subdirs, report their specific --help.
1694  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1695    test -d "$ac_dir" ||
1696      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1697      continue
1698    ac_builddir=.
1699
1700case "$ac_dir" in
1701.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702*)
1703  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1704  # A ".." for each directory in $ac_dir_suffix.
1705  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1706  case $ac_top_builddir_sub in
1707  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1709  esac ;;
1710esac
1711ac_abs_top_builddir=$ac_pwd
1712ac_abs_builddir=$ac_pwd$ac_dir_suffix
1713# for backward compatibility:
1714ac_top_builddir=$ac_top_build_prefix
1715
1716case $srcdir in
1717  .)  # We are building in place.
1718    ac_srcdir=.
1719    ac_top_srcdir=$ac_top_builddir_sub
1720    ac_abs_top_srcdir=$ac_pwd ;;
1721  [\\/]* | ?:[\\/]* )  # Absolute name.
1722    ac_srcdir=$srcdir$ac_dir_suffix;
1723    ac_top_srcdir=$srcdir
1724    ac_abs_top_srcdir=$srcdir ;;
1725  *) # Relative name.
1726    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1727    ac_top_srcdir=$ac_top_build_prefix$srcdir
1728    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1729esac
1730ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1731
1732    cd "$ac_dir" || { ac_status=$?; continue; }
1733    # Check for guested configure.
1734    if test -f "$ac_srcdir/configure.gnu"; then
1735      echo &&
1736      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1737    elif test -f "$ac_srcdir/configure"; then
1738      echo &&
1739      $SHELL "$ac_srcdir/configure" --help=recursive
1740    else
1741      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1742    fi || ac_status=$?
1743    cd "$ac_pwd" || { ac_status=$?; break; }
1744  done
1745fi
1746
1747test -n "$ac_init_help" && exit $ac_status
1748if $ac_init_version; then
1749  cat <<\_ACEOF
1750configure
1751generated by GNU Autoconf 2.69
1752
1753Copyright (C) 2012 Free Software Foundation, Inc.
1754This configure script is free software; the Free Software Foundation
1755gives unlimited permission to copy, distribute and modify it.
1756
1757Copyright 1998-2021 The OpenLDAP Foundation. All rights reserved.
1758Restrictions apply, see COPYRIGHT and LICENSE files.
1759_ACEOF
1760  exit
1761fi
1762
1763## ------------------------ ##
1764## Autoconf initialization. ##
1765## ------------------------ ##
1766
1767# ac_fn_c_try_compile LINENO
1768# --------------------------
1769# Try to compile conftest.$ac_ext, and return whether this succeeded.
1770ac_fn_c_try_compile ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  rm -f conftest.$ac_objext
1774  if { { ac_try="$ac_compile"
1775case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781  (eval "$ac_compile") 2>conftest.err
1782  ac_status=$?
1783  if test -s conftest.err; then
1784    grep -v '^ *+' conftest.err >conftest.er1
1785    cat conftest.er1 >&5
1786    mv -f conftest.er1 conftest.err
1787  fi
1788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789  test $ac_status = 0; } && {
1790	 test -z "$ac_c_werror_flag" ||
1791	 test ! -s conftest.err
1792       } && test -s conftest.$ac_objext; then :
1793  ac_retval=0
1794else
1795  $as_echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798	ac_retval=1
1799fi
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801  as_fn_set_status $ac_retval
1802
1803} # ac_fn_c_try_compile
1804
1805# ac_fn_c_try_link LINENO
1806# -----------------------
1807# Try to link conftest.$ac_ext, and return whether this succeeded.
1808ac_fn_c_try_link ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  rm -f conftest.$ac_objext conftest$ac_exeext
1812  if { { ac_try="$ac_link"
1813case "(($ac_try" in
1814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815  *) ac_try_echo=$ac_try;;
1816esac
1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818$as_echo "$ac_try_echo"; } >&5
1819  (eval "$ac_link") 2>conftest.err
1820  ac_status=$?
1821  if test -s conftest.err; then
1822    grep -v '^ *+' conftest.err >conftest.er1
1823    cat conftest.er1 >&5
1824    mv -f conftest.er1 conftest.err
1825  fi
1826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827  test $ac_status = 0; } && {
1828	 test -z "$ac_c_werror_flag" ||
1829	 test ! -s conftest.err
1830       } && test -s conftest$ac_exeext && {
1831	 test "$cross_compiling" = yes ||
1832	 test -x conftest$ac_exeext
1833       }; then :
1834  ac_retval=0
1835else
1836  $as_echo "$as_me: failed program was:" >&5
1837sed 's/^/| /' conftest.$ac_ext >&5
1838
1839	ac_retval=1
1840fi
1841  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1842  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1843  # interfere with the next link command; also delete a directory that is
1844  # left behind by Apple's compiler.  We do this before executing the actions.
1845  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847  as_fn_set_status $ac_retval
1848
1849} # ac_fn_c_try_link
1850
1851# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1852# -------------------------------------------------------
1853# Tests whether HEADER exists and can be compiled using the include files in
1854# INCLUDES, setting the cache variable VAR accordingly.
1855ac_fn_c_check_header_compile ()
1856{
1857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
1860if eval \${$3+:} false; then :
1861  $as_echo_n "(cached) " >&6
1862else
1863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h.  */
1865$4
1866#include <$2>
1867_ACEOF
1868if ac_fn_c_try_compile "$LINENO"; then :
1869  eval "$3=yes"
1870else
1871  eval "$3=no"
1872fi
1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874fi
1875eval ac_res=\$$3
1876	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880} # ac_fn_c_check_header_compile
1881
1882# ac_fn_c_try_cpp LINENO
1883# ----------------------
1884# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1885ac_fn_c_try_cpp ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  if { { ac_try="$ac_cpp conftest.$ac_ext"
1889case "(($ac_try" in
1890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891  *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
1895  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1896  ac_status=$?
1897  if test -s conftest.err; then
1898    grep -v '^ *+' conftest.err >conftest.er1
1899    cat conftest.er1 >&5
1900    mv -f conftest.er1 conftest.err
1901  fi
1902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903  test $ac_status = 0; } > conftest.i && {
1904	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1905	 test ! -s conftest.err
1906       }; then :
1907  ac_retval=0
1908else
1909  $as_echo "$as_me: failed program was:" >&5
1910sed 's/^/| /' conftest.$ac_ext >&5
1911
1912    ac_retval=1
1913fi
1914  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915  as_fn_set_status $ac_retval
1916
1917} # ac_fn_c_try_cpp
1918
1919# ac_fn_c_try_run LINENO
1920# ----------------------
1921# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1922# that executables *can* be run.
1923ac_fn_c_try_run ()
1924{
1925  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926  if { { ac_try="$ac_link"
1927case "(($ac_try" in
1928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929  *) ac_try_echo=$ac_try;;
1930esac
1931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932$as_echo "$ac_try_echo"; } >&5
1933  (eval "$ac_link") 2>&5
1934  ac_status=$?
1935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1937  { { case "(($ac_try" in
1938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939  *) ac_try_echo=$ac_try;;
1940esac
1941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942$as_echo "$ac_try_echo"; } >&5
1943  (eval "$ac_try") 2>&5
1944  ac_status=$?
1945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946  test $ac_status = 0; }; }; then :
1947  ac_retval=0
1948else
1949  $as_echo "$as_me: program exited with status $ac_status" >&5
1950       $as_echo "$as_me: failed program was:" >&5
1951sed 's/^/| /' conftest.$ac_ext >&5
1952
1953       ac_retval=$ac_status
1954fi
1955  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1956  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957  as_fn_set_status $ac_retval
1958
1959} # ac_fn_c_try_run
1960
1961# ac_fn_c_check_func LINENO FUNC VAR
1962# ----------------------------------
1963# Tests whether FUNC exists, setting the cache variable VAR accordingly
1964ac_fn_c_check_func ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968$as_echo_n "checking for $2... " >&6; }
1969if eval \${$3+:} false; then :
1970  $as_echo_n "(cached) " >&6
1971else
1972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h.  */
1974/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1975   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1976#define $2 innocuous_$2
1977
1978/* System header to define __stub macros and hopefully few prototypes,
1979    which can conflict with char $2 (); below.
1980    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1981    <limits.h> exists even on freestanding compilers.  */
1982
1983#ifdef __STDC__
1984# include <limits.h>
1985#else
1986# include <assert.h>
1987#endif
1988
1989#undef $2
1990
1991/* Override any GCC internal prototype to avoid an error.
1992   Use char because int might match the return type of a GCC
1993   builtin and then its argument prototype would still apply.  */
1994#ifdef __cplusplus
1995extern "C"
1996#endif
1997char $2 ();
1998/* The GNU C library defines this for functions which it implements
1999    to always fail with ENOSYS.  Some functions are actually named
2000    something starting with __ and the normal name is an alias.  */
2001#if defined __stub_$2 || defined __stub___$2
2002choke me
2003#endif
2004
2005int
2006main ()
2007{
2008return $2 ();
2009  ;
2010  return 0;
2011}
2012_ACEOF
2013if ac_fn_c_try_link "$LINENO"; then :
2014  eval "$3=yes"
2015else
2016  eval "$3=no"
2017fi
2018rm -f core conftest.err conftest.$ac_objext \
2019    conftest$ac_exeext conftest.$ac_ext
2020fi
2021eval ac_res=\$$3
2022	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023$as_echo "$ac_res" >&6; }
2024  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025
2026} # ac_fn_c_check_func
2027
2028# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2029# -------------------------------------------------------
2030# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2031# the include files in INCLUDES and setting the cache variable VAR
2032# accordingly.
2033ac_fn_c_check_header_mongrel ()
2034{
2035  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036  if eval \${$3+:} false; then :
2037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038$as_echo_n "checking for $2... " >&6; }
2039if eval \${$3+:} false; then :
2040  $as_echo_n "(cached) " >&6
2041fi
2042eval ac_res=\$$3
2043	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045else
2046  # Is the header compilable?
2047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2048$as_echo_n "checking $2 usability... " >&6; }
2049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050/* end confdefs.h.  */
2051$4
2052#include <$2>
2053_ACEOF
2054if ac_fn_c_try_compile "$LINENO"; then :
2055  ac_header_compiler=yes
2056else
2057  ac_header_compiler=no
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2061$as_echo "$ac_header_compiler" >&6; }
2062
2063# Is the header present?
2064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2065$as_echo_n "checking $2 presence... " >&6; }
2066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h.  */
2068#include <$2>
2069_ACEOF
2070if ac_fn_c_try_cpp "$LINENO"; then :
2071  ac_header_preproc=yes
2072else
2073  ac_header_preproc=no
2074fi
2075rm -f conftest.err conftest.i conftest.$ac_ext
2076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2077$as_echo "$ac_header_preproc" >&6; }
2078
2079# So?  What about this header?
2080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2081  yes:no: )
2082    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2083$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2085$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086    ;;
2087  no:yes:* )
2088    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2089$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2090    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2091$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2092    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2093$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2094    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2095$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2096    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2097$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2098    ;;
2099esac
2100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101$as_echo_n "checking for $2... " >&6; }
2102if eval \${$3+:} false; then :
2103  $as_echo_n "(cached) " >&6
2104else
2105  eval "$3=\$ac_header_compiler"
2106fi
2107eval ac_res=\$$3
2108	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109$as_echo "$ac_res" >&6; }
2110fi
2111  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113} # ac_fn_c_check_header_mongrel
2114
2115# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2116# -------------------------------------------
2117# Tests whether TYPE exists after having included INCLUDES, setting cache
2118# variable VAR accordingly.
2119ac_fn_c_check_type ()
2120{
2121  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123$as_echo_n "checking for $2... " >&6; }
2124if eval \${$3+:} false; then :
2125  $as_echo_n "(cached) " >&6
2126else
2127  eval "$3=no"
2128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h.  */
2130$4
2131int
2132main ()
2133{
2134if (sizeof ($2))
2135	 return 0;
2136  ;
2137  return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h.  */
2143$4
2144int
2145main ()
2146{
2147if (sizeof (($2)))
2148	    return 0;
2149  ;
2150  return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154
2155else
2156  eval "$3=yes"
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161fi
2162eval ac_res=\$$3
2163	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164$as_echo "$ac_res" >&6; }
2165  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167} # ac_fn_c_check_type
2168
2169# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2170# ----------------------------------------------------
2171# Tries to find if the field MEMBER exists in type AGGR, after including
2172# INCLUDES, setting cache variable VAR accordingly.
2173ac_fn_c_check_member ()
2174{
2175  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2177$as_echo_n "checking for $2.$3... " >&6; }
2178if eval \${$4+:} false; then :
2179  $as_echo_n "(cached) " >&6
2180else
2181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h.  */
2183$5
2184int
2185main ()
2186{
2187static $2 ac_aggr;
2188if (ac_aggr.$3)
2189return 0;
2190  ;
2191  return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"; then :
2195  eval "$4=yes"
2196else
2197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h.  */
2199$5
2200int
2201main ()
2202{
2203static $2 ac_aggr;
2204if (sizeof ac_aggr.$3)
2205return 0;
2206  ;
2207  return 0;
2208}
2209_ACEOF
2210if ac_fn_c_try_compile "$LINENO"; then :
2211  eval "$4=yes"
2212else
2213  eval "$4=no"
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219eval ac_res=\$$4
2220	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221$as_echo "$ac_res" >&6; }
2222  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223
2224} # ac_fn_c_check_member
2225
2226# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2227# --------------------------------------------
2228# Tries to find the compile-time value of EXPR in a program that includes
2229# INCLUDES, setting VAR accordingly. Returns whether the value could be
2230# computed
2231ac_fn_c_compute_int ()
2232{
2233  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234  if test "$cross_compiling" = yes; then
2235    # Depending upon the size, compute the lo and hi bounds.
2236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237/* end confdefs.h.  */
2238$4
2239int
2240main ()
2241{
2242static int test_array [1 - 2 * !(($2) >= 0)];
2243test_array [0] = 0;
2244return test_array [0];
2245
2246  ;
2247  return 0;
2248}
2249_ACEOF
2250if ac_fn_c_try_compile "$LINENO"; then :
2251  ac_lo=0 ac_mid=0
2252  while :; do
2253    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254/* end confdefs.h.  */
2255$4
2256int
2257main ()
2258{
2259static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2260test_array [0] = 0;
2261return test_array [0];
2262
2263  ;
2264  return 0;
2265}
2266_ACEOF
2267if ac_fn_c_try_compile "$LINENO"; then :
2268  ac_hi=$ac_mid; break
2269else
2270  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2271			if test $ac_lo -le $ac_mid; then
2272			  ac_lo= ac_hi=
2273			  break
2274			fi
2275			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2276fi
2277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278  done
2279else
2280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281/* end confdefs.h.  */
2282$4
2283int
2284main ()
2285{
2286static int test_array [1 - 2 * !(($2) < 0)];
2287test_array [0] = 0;
2288return test_array [0];
2289
2290  ;
2291  return 0;
2292}
2293_ACEOF
2294if ac_fn_c_try_compile "$LINENO"; then :
2295  ac_hi=-1 ac_mid=-1
2296  while :; do
2297    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298/* end confdefs.h.  */
2299$4
2300int
2301main ()
2302{
2303static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2304test_array [0] = 0;
2305return test_array [0];
2306
2307  ;
2308  return 0;
2309}
2310_ACEOF
2311if ac_fn_c_try_compile "$LINENO"; then :
2312  ac_lo=$ac_mid; break
2313else
2314  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2315			if test $ac_mid -le $ac_hi; then
2316			  ac_lo= ac_hi=
2317			  break
2318			fi
2319			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2320fi
2321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322  done
2323else
2324  ac_lo= ac_hi=
2325fi
2326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327fi
2328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329# Binary search between lo and hi bounds.
2330while test "x$ac_lo" != "x$ac_hi"; do
2331  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333/* end confdefs.h.  */
2334$4
2335int
2336main ()
2337{
2338static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2339test_array [0] = 0;
2340return test_array [0];
2341
2342  ;
2343  return 0;
2344}
2345_ACEOF
2346if ac_fn_c_try_compile "$LINENO"; then :
2347  ac_hi=$ac_mid
2348else
2349  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2350fi
2351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352done
2353case $ac_lo in #((
2354?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2355'') ac_retval=1 ;;
2356esac
2357  else
2358    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359/* end confdefs.h.  */
2360$4
2361static long int longval () { return $2; }
2362static unsigned long int ulongval () { return $2; }
2363#include <stdio.h>
2364#include <stdlib.h>
2365int
2366main ()
2367{
2368
2369  FILE *f = fopen ("conftest.val", "w");
2370  if (! f)
2371    return 1;
2372  if (($2) < 0)
2373    {
2374      long int i = longval ();
2375      if (i != ($2))
2376	return 1;
2377      fprintf (f, "%ld", i);
2378    }
2379  else
2380    {
2381      unsigned long int i = ulongval ();
2382      if (i != ($2))
2383	return 1;
2384      fprintf (f, "%lu", i);
2385    }
2386  /* Do not output a trailing newline, as this causes \r\n confusion
2387     on some platforms.  */
2388  return ferror (f) || fclose (f) != 0;
2389
2390  ;
2391  return 0;
2392}
2393_ACEOF
2394if ac_fn_c_try_run "$LINENO"; then :
2395  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2396else
2397  ac_retval=1
2398fi
2399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2400  conftest.$ac_objext conftest.beam conftest.$ac_ext
2401rm -f conftest.val
2402
2403  fi
2404  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2405  as_fn_set_status $ac_retval
2406
2407} # ac_fn_c_compute_int
2408cat >config.log <<_ACEOF
2409This file contains any messages produced by compilers while
2410running configure, to aid debugging if configure makes a mistake.
2411
2412It was created by $as_me, which was
2413generated by GNU Autoconf 2.69.  Invocation command line was
2414
2415  $ $0 $@
2416
2417_ACEOF
2418exec 5>>config.log
2419{
2420cat <<_ASUNAME
2421## --------- ##
2422## Platform. ##
2423## --------- ##
2424
2425hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2426uname -m = `(uname -m) 2>/dev/null || echo unknown`
2427uname -r = `(uname -r) 2>/dev/null || echo unknown`
2428uname -s = `(uname -s) 2>/dev/null || echo unknown`
2429uname -v = `(uname -v) 2>/dev/null || echo unknown`
2430
2431/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2432/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2433
2434/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2435/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2436/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2437/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2438/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2439/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2440/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2441
2442_ASUNAME
2443
2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447  IFS=$as_save_IFS
2448  test -z "$as_dir" && as_dir=.
2449    $as_echo "PATH: $as_dir"
2450  done
2451IFS=$as_save_IFS
2452
2453} >&5
2454
2455cat >&5 <<_ACEOF
2456
2457
2458## ----------- ##
2459## Core tests. ##
2460## ----------- ##
2461
2462_ACEOF
2463
2464
2465# Keep a trace of the command line.
2466# Strip out --no-create and --no-recursion so they do not pile up.
2467# Strip out --silent because we don't want to record it for future runs.
2468# Also quote any args containing shell meta-characters.
2469# Make two passes to allow for proper duplicate-argument suppression.
2470ac_configure_args=
2471ac_configure_args0=
2472ac_configure_args1=
2473ac_must_keep_next=false
2474for ac_pass in 1 2
2475do
2476  for ac_arg
2477  do
2478    case $ac_arg in
2479    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2480    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2481    | -silent | --silent | --silen | --sile | --sil)
2482      continue ;;
2483    *\'*)
2484      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2485    esac
2486    case $ac_pass in
2487    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2488    2)
2489      as_fn_append ac_configure_args1 " '$ac_arg'"
2490      if test $ac_must_keep_next = true; then
2491	ac_must_keep_next=false # Got value, back to normal.
2492      else
2493	case $ac_arg in
2494	  *=* | --config-cache | -C | -disable-* | --disable-* \
2495	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2496	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2497	  | -with-* | --with-* | -without-* | --without-* | --x)
2498	    case "$ac_configure_args0 " in
2499	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2500	    esac
2501	    ;;
2502	  -* ) ac_must_keep_next=true ;;
2503	esac
2504      fi
2505      as_fn_append ac_configure_args " '$ac_arg'"
2506      ;;
2507    esac
2508  done
2509done
2510{ ac_configure_args0=; unset ac_configure_args0;}
2511{ ac_configure_args1=; unset ac_configure_args1;}
2512
2513# When interrupted or exit'd, cleanup temporary files, and complete
2514# config.log.  We remove comments because anyway the quotes in there
2515# would cause problems or look ugly.
2516# WARNING: Use '\'' to represent an apostrophe within the trap.
2517# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2518trap 'exit_status=$?
2519  # Save into config.log some information that might help in debugging.
2520  {
2521    echo
2522
2523    $as_echo "## ---------------- ##
2524## Cache variables. ##
2525## ---------------- ##"
2526    echo
2527    # The following way of writing the cache mishandles newlines in values,
2528(
2529  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2530    eval ac_val=\$$ac_var
2531    case $ac_val in #(
2532    *${as_nl}*)
2533      case $ac_var in #(
2534      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2535$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2536      esac
2537      case $ac_var in #(
2538      _ | IFS | as_nl) ;; #(
2539      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2540      *) { eval $ac_var=; unset $ac_var;} ;;
2541      esac ;;
2542    esac
2543  done
2544  (set) 2>&1 |
2545    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2546    *${as_nl}ac_space=\ *)
2547      sed -n \
2548	"s/'\''/'\''\\\\'\'''\''/g;
2549	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2550      ;; #(
2551    *)
2552      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2553      ;;
2554    esac |
2555    sort
2556)
2557    echo
2558
2559    $as_echo "## ----------------- ##
2560## Output variables. ##
2561## ----------------- ##"
2562    echo
2563    for ac_var in $ac_subst_vars
2564    do
2565      eval ac_val=\$$ac_var
2566      case $ac_val in
2567      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2568      esac
2569      $as_echo "$ac_var='\''$ac_val'\''"
2570    done | sort
2571    echo
2572
2573    if test -n "$ac_subst_files"; then
2574      $as_echo "## ------------------- ##
2575## File substitutions. ##
2576## ------------------- ##"
2577      echo
2578      for ac_var in $ac_subst_files
2579      do
2580	eval ac_val=\$$ac_var
2581	case $ac_val in
2582	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2583	esac
2584	$as_echo "$ac_var='\''$ac_val'\''"
2585      done | sort
2586      echo
2587    fi
2588
2589    if test -s confdefs.h; then
2590      $as_echo "## ----------- ##
2591## confdefs.h. ##
2592## ----------- ##"
2593      echo
2594      cat confdefs.h
2595      echo
2596    fi
2597    test "$ac_signal" != 0 &&
2598      $as_echo "$as_me: caught signal $ac_signal"
2599    $as_echo "$as_me: exit $exit_status"
2600  } >&5
2601  rm -f core *.core core.conftest.* &&
2602    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2603    exit $exit_status
2604' 0
2605for ac_signal in 1 2 13 15; do
2606  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2607done
2608ac_signal=0
2609
2610# confdefs.h avoids OS command line length limits that DEFS can exceed.
2611rm -f -r conftest* confdefs.h
2612
2613$as_echo "/* confdefs.h */" > confdefs.h
2614
2615# Predefined preprocessor variables.
2616
2617cat >>confdefs.h <<_ACEOF
2618#define PACKAGE_NAME "$PACKAGE_NAME"
2619_ACEOF
2620
2621cat >>confdefs.h <<_ACEOF
2622#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2623_ACEOF
2624
2625cat >>confdefs.h <<_ACEOF
2626#define PACKAGE_VERSION "$PACKAGE_VERSION"
2627_ACEOF
2628
2629cat >>confdefs.h <<_ACEOF
2630#define PACKAGE_STRING "$PACKAGE_STRING"
2631_ACEOF
2632
2633cat >>confdefs.h <<_ACEOF
2634#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2635_ACEOF
2636
2637cat >>confdefs.h <<_ACEOF
2638#define PACKAGE_URL "$PACKAGE_URL"
2639_ACEOF
2640
2641
2642# Let the site file select an alternate cache file if it wants to.
2643# Prefer an explicitly selected file to automatically selected ones.
2644ac_site_file1=NONE
2645ac_site_file2=NONE
2646if test -n "$CONFIG_SITE"; then
2647  # We do not want a PATH search for config.site.
2648  case $CONFIG_SITE in #((
2649    -*)  ac_site_file1=./$CONFIG_SITE;;
2650    */*) ac_site_file1=$CONFIG_SITE;;
2651    *)   ac_site_file1=./$CONFIG_SITE;;
2652  esac
2653elif test "x$prefix" != xNONE; then
2654  ac_site_file1=$prefix/share/config.site
2655  ac_site_file2=$prefix/etc/config.site
2656else
2657  ac_site_file1=$ac_default_prefix/share/config.site
2658  ac_site_file2=$ac_default_prefix/etc/config.site
2659fi
2660for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2661do
2662  test "x$ac_site_file" = xNONE && continue
2663  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2664    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2665$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2666    sed 's/^/| /' "$ac_site_file" >&5
2667    . "$ac_site_file" \
2668      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670as_fn_error $? "failed to load site script $ac_site_file
2671See \`config.log' for more details" "$LINENO" 5; }
2672  fi
2673done
2674
2675
2676# Check that the precious variables saved in the cache have kept the same
2677# value.
2678ac_cache_corrupted=false
2679for ac_var in $ac_precious_vars; do
2680  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2681  eval ac_new_set=\$ac_env_${ac_var}_set
2682  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2683  eval ac_new_val=\$ac_env_${ac_var}_value
2684  case $ac_old_set,$ac_new_set in
2685    set,)
2686      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2687$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2688      ac_cache_corrupted=: ;;
2689    ,set)
2690      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2691$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2692      ac_cache_corrupted=: ;;
2693    ,);;
2694    *)
2695      if test "x$ac_old_val" != "x$ac_new_val"; then
2696	# differences in whitespace do not lead to failure.
2697	ac_old_val_w=`echo x $ac_old_val`
2698	ac_new_val_w=`echo x $ac_new_val`
2699	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2700	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2701$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2702	  ac_cache_corrupted=:
2703	else
2704	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2705$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2706	  eval $ac_var=\$ac_old_val
2707	fi
2708	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2709$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2710	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2711$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2712      fi;;
2713  esac
2714  # Pass precious variables to config.status.
2715  if test "$ac_new_set" = set; then
2716    case $ac_new_val in
2717    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2718    *) ac_arg=$ac_var=$ac_new_val ;;
2719    esac
2720    case " $ac_configure_args " in
2721      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2722      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2723    esac
2724  fi
2725done
2726if $ac_cache_corrupted; then
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2730$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2731  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2732fi
2733## -------------------- ##
2734## Main body of script. ##
2735## -------------------- ##
2736
2737ac_ext=c
2738ac_cpp='$CPP $CPPFLAGS'
2739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763ac_aux_dir=
2764for ac_dir in build "$srcdir"/build; do
2765  if test -f "$ac_dir/install-sh"; then
2766    ac_aux_dir=$ac_dir
2767    ac_install_sh="$ac_aux_dir/install-sh -c"
2768    break
2769  elif test -f "$ac_dir/install.sh"; then
2770    ac_aux_dir=$ac_dir
2771    ac_install_sh="$ac_aux_dir/install.sh -c"
2772    break
2773  elif test -f "$ac_dir/shtool"; then
2774    ac_aux_dir=$ac_dir
2775    ac_install_sh="$ac_aux_dir/shtool install -c"
2776    break
2777  fi
2778done
2779if test -z "$ac_aux_dir"; then
2780  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2781fi
2782
2783# These three variables are undocumented and unsupported,
2784# and are intended to be withdrawn in a future Autoconf release.
2785# They can cause serious problems if a builder's source tree is in a directory
2786# whose full name contains unusual characters.
2787ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2788ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2789ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2790
2791
2792
2793eval `$ac_aux_dir/version.sh`
2794if test -z "$OL_STRING"; then
2795	as_fn_error $? "could not determine version" "$LINENO" 5
2796fi
2797
2798if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2799	ac_cv_shtool="$ac_aux_dir/shtool"
2800else
2801	as_fn_error $? "no shtool found in $ac_aux_dir" "$LINENO" 5
2802fi
2803
2804SHTOOL="$ac_cv_shtool"
2805
2806TB="" TN=""
2807if test -t 1; then
2808	TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2809	TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2810fi
2811
2812OPENLDAP_REPO=""
2813if test -d $ac_aux_dir/../.git; then
2814	OPENLDAP_REPO="(from Git clone) "
2815elif test -d $ac_aux_dir/CVS; then
2816	OPENLDAP_REPO="(from CVS checkout) "
2817fi
2818
2819echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2820
2821# Make sure we can run config.sub.
2822$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2823  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2824
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2826$as_echo_n "checking build system type... " >&6; }
2827if ${ac_cv_build+:} false; then :
2828  $as_echo_n "(cached) " >&6
2829else
2830  ac_build_alias=$build_alias
2831test "x$ac_build_alias" = x &&
2832  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2833test "x$ac_build_alias" = x &&
2834  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2835ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2836  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2837
2838fi
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2840$as_echo "$ac_cv_build" >&6; }
2841case $ac_cv_build in
2842*-*-*) ;;
2843*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2844esac
2845build=$ac_cv_build
2846ac_save_IFS=$IFS; IFS='-'
2847set x $ac_cv_build
2848shift
2849build_cpu=$1
2850build_vendor=$2
2851shift; shift
2852# Remember, the first character of IFS is used to create $*,
2853# except with old shells:
2854build_os=$*
2855IFS=$ac_save_IFS
2856case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2857
2858
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2860$as_echo_n "checking host system type... " >&6; }
2861if ${ac_cv_host+:} false; then :
2862  $as_echo_n "(cached) " >&6
2863else
2864  if test "x$host_alias" = x; then
2865  ac_cv_host=$ac_cv_build
2866else
2867  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2868    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2869fi
2870
2871fi
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2873$as_echo "$ac_cv_host" >&6; }
2874case $ac_cv_host in
2875*-*-*) ;;
2876*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2877esac
2878host=$ac_cv_host
2879ac_save_IFS=$IFS; IFS='-'
2880set x $ac_cv_host
2881shift
2882host_cpu=$1
2883host_vendor=$2
2884shift; shift
2885# Remember, the first character of IFS is used to create $*,
2886# except with old shells:
2887host_os=$*
2888IFS=$ac_save_IFS
2889case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2890
2891
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2893$as_echo_n "checking target system type... " >&6; }
2894if ${ac_cv_target+:} false; then :
2895  $as_echo_n "(cached) " >&6
2896else
2897  if test "x$target_alias" = x; then
2898  ac_cv_target=$ac_cv_host
2899else
2900  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2901    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2902fi
2903
2904fi
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2906$as_echo "$ac_cv_target" >&6; }
2907case $ac_cv_target in
2908*-*-*) ;;
2909*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2910esac
2911target=$ac_cv_target
2912ac_save_IFS=$IFS; IFS='-'
2913set x $ac_cv_target
2914shift
2915target_cpu=$1
2916target_vendor=$2
2917shift; shift
2918# Remember, the first character of IFS is used to create $*,
2919# except with old shells:
2920target_os=$*
2921IFS=$ac_save_IFS
2922case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2923
2924
2925# The aliases save the names the user supplied, while $host etc.
2926# will get canonicalized.
2927test -n "$target_alias" &&
2928  test "$program_prefix$program_suffix$program_transform_name" = \
2929    NONENONEs,x,x, &&
2930  program_prefix=${target_alias}-
2931
2932PACKAGE=$OL_PACKAGE
2933VERSION=$OL_VERSION
2934
2935cat >>confdefs.h <<_ACEOF
2936#define OPENLDAP_PACKAGE "$PACKAGE"
2937_ACEOF
2938
2939
2940cat >>confdefs.h <<_ACEOF
2941#define OPENLDAP_VERSION "$VERSION"
2942_ACEOF
2943
2944
2945
2946cat >>confdefs.h <<_ACEOF
2947#define LDAP_VENDOR_VERSION $OL_API_INC
2948_ACEOF
2949
2950
2951cat >>confdefs.h <<_ACEOF
2952#define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2953_ACEOF
2954
2955
2956cat >>confdefs.h <<_ACEOF
2957#define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2958_ACEOF
2959
2960
2961cat >>confdefs.h <<_ACEOF
2962#define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2963_ACEOF
2964
2965
2966OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2967
2968OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2969
2970OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2971
2972
2973
2974
2975
2976ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2977
2978ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2979
2980ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2981
2982
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking configure arguments" >&5
2984$as_echo_n "checking configure arguments... " >&6; }
2985
2986
2987top_builddir=`pwd`
2988
2989ldap_subdir="/openldap"
2990
2991
2992# Check whether --with-subdir was given.
2993if test "${with_subdir+set}" = set; then :
2994  withval=$with_subdir; case "$withval" in
2995	no) ldap_subdir=""
2996		;;
2997	yes)
2998		;;
2999	/*|\\*)
3000		ldap_subdir="$withval"
3001		;;
3002	*)
3003		ldap_subdir="/$withval"
3004		;;
3005esac
3006
3007fi
3008
3009
3010# OpenLDAP --enable-debug
3011
3012	# Check whether --enable-debug was given.
3013if test "${enable_debug+set}" = set; then :
3014  enableval=$enable_debug;
3015	ol_arg=invalid
3016	for ol_val in no yes traditional ; do
3017		if test "$enableval" = "$ol_val" ; then
3018			ol_arg="$ol_val"
3019		fi
3020	done
3021	if test "$ol_arg" = "invalid" ; then
3022		as_fn_error $? "bad value $enableval for --enable-debug" "$LINENO" 5
3023	fi
3024	ol_enable_debug="$ol_arg"
3025
3026else
3027  	ol_enable_debug=yes
3028fi
3029
3030# end --enable-debug
3031# OpenLDAP --enable-dynamic
3032
3033	# Check whether --enable-dynamic was given.
3034if test "${enable_dynamic+set}" = set; then :
3035  enableval=$enable_dynamic;
3036	ol_arg=invalid
3037	for ol_val in auto yes no ; do
3038		if test "$enableval" = "$ol_val" ; then
3039			ol_arg="$ol_val"
3040		fi
3041	done
3042	if test "$ol_arg" = "invalid" ; then
3043		as_fn_error $? "bad value $enableval for --enable-dynamic" "$LINENO" 5
3044	fi
3045	ol_enable_dynamic="$ol_arg"
3046
3047else
3048  	ol_enable_dynamic=auto
3049fi
3050
3051# end --enable-dynamic
3052# OpenLDAP --enable-syslog
3053
3054	# Check whether --enable-syslog was given.
3055if test "${enable_syslog+set}" = set; then :
3056  enableval=$enable_syslog;
3057	ol_arg=invalid
3058	for ol_val in auto yes no ; do
3059		if test "$enableval" = "$ol_val" ; then
3060			ol_arg="$ol_val"
3061		fi
3062	done
3063	if test "$ol_arg" = "invalid" ; then
3064		as_fn_error $? "bad value $enableval for --enable-syslog" "$LINENO" 5
3065	fi
3066	ol_enable_syslog="$ol_arg"
3067
3068else
3069  	ol_enable_syslog=auto
3070fi
3071
3072# end --enable-syslog
3073ol_enable_referrals=${ol_enable_referrals-no}
3074# OpenLDAP --enable-ipv6
3075
3076	# Check whether --enable-ipv6 was given.
3077if test "${enable_ipv6+set}" = set; then :
3078  enableval=$enable_ipv6;
3079	ol_arg=invalid
3080	for ol_val in auto yes no ; do
3081		if test "$enableval" = "$ol_val" ; then
3082			ol_arg="$ol_val"
3083		fi
3084	done
3085	if test "$ol_arg" = "invalid" ; then
3086		as_fn_error $? "bad value $enableval for --enable-ipv6" "$LINENO" 5
3087	fi
3088	ol_enable_ipv6="$ol_arg"
3089
3090else
3091  	ol_enable_ipv6=auto
3092fi
3093
3094# end --enable-ipv6
3095# OpenLDAP --enable-local
3096
3097	# Check whether --enable-local was given.
3098if test "${enable_local+set}" = set; then :
3099  enableval=$enable_local;
3100	ol_arg=invalid
3101	for ol_val in auto yes no ; do
3102		if test "$enableval" = "$ol_val" ; then
3103			ol_arg="$ol_val"
3104		fi
3105	done
3106	if test "$ol_arg" = "invalid" ; then
3107		as_fn_error $? "bad value $enableval for --enable-local" "$LINENO" 5
3108	fi
3109	ol_enable_local="$ol_arg"
3110
3111else
3112  	ol_enable_local=auto
3113fi
3114
3115# end --enable-local
3116
3117# OpenLDAP --with-cyrus_sasl
3118
3119# Check whether --with-cyrus_sasl was given.
3120if test "${with_cyrus_sasl+set}" = set; then :
3121  withval=$with_cyrus_sasl;
3122	ol_arg=invalid
3123	for ol_val in auto yes no  ; do
3124		if test "$withval" = "$ol_val" ; then
3125			ol_arg="$ol_val"
3126		fi
3127	done
3128	if test "$ol_arg" = "invalid" ; then
3129		as_fn_error $? "bad value $withval for --with-cyrus_sasl" "$LINENO" 5
3130	fi
3131	ol_with_cyrus_sasl="$ol_arg"
3132
3133else
3134  	ol_with_cyrus_sasl="auto"
3135fi
3136# end --with-cyrus_sasl
3137
3138# OpenLDAP --with-systemd
3139
3140# Check whether --with-systemd was given.
3141if test "${with_systemd+set}" = set; then :
3142  withval=$with_systemd;
3143	ol_arg=invalid
3144	for ol_val in auto yes no  ; do
3145		if test "$withval" = "$ol_val" ; then
3146			ol_arg="$ol_val"
3147		fi
3148	done
3149	if test "$ol_arg" = "invalid" ; then
3150		as_fn_error $? "bad value $withval for --with-systemd" "$LINENO" 5
3151	fi
3152	ol_with_systemd="$ol_arg"
3153
3154else
3155  	ol_with_systemd="auto"
3156fi
3157# end --with-systemd
3158
3159# OpenLDAP --with-fetch
3160
3161# Check whether --with-fetch was given.
3162if test "${with_fetch+set}" = set; then :
3163  withval=$with_fetch;
3164	ol_arg=invalid
3165	for ol_val in auto yes no  ; do
3166		if test "$withval" = "$ol_val" ; then
3167			ol_arg="$ol_val"
3168		fi
3169	done
3170	if test "$ol_arg" = "invalid" ; then
3171		as_fn_error $? "bad value $withval for --with-fetch" "$LINENO" 5
3172	fi
3173	ol_with_fetch="$ol_arg"
3174
3175else
3176  	ol_with_fetch="auto"
3177fi
3178# end --with-fetch
3179
3180# OpenLDAP --with-threads
3181
3182# Check whether --with-threads was given.
3183if test "${with_threads+set}" = set; then :
3184  withval=$with_threads;
3185	ol_arg=invalid
3186	for ol_val in auto nt posix pth lwp yes no manual  ; do
3187		if test "$withval" = "$ol_val" ; then
3188			ol_arg="$ol_val"
3189		fi
3190	done
3191	if test "$ol_arg" = "invalid" ; then
3192		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
3193	fi
3194	ol_with_threads="$ol_arg"
3195
3196else
3197  	ol_with_threads="auto"
3198fi
3199# end --with-threads
3200
3201# OpenLDAP --with-tls
3202
3203# Check whether --with-tls was given.
3204if test "${with_tls+set}" = set; then :
3205  withval=$with_tls;
3206	ol_arg=invalid
3207	for ol_val in auto openssl gnutls yes no  ; do
3208		if test "$withval" = "$ol_val" ; then
3209			ol_arg="$ol_val"
3210		fi
3211	done
3212	if test "$ol_arg" = "invalid" ; then
3213		as_fn_error $? "bad value $withval for --with-tls" "$LINENO" 5
3214	fi
3215	ol_with_tls="$ol_arg"
3216
3217else
3218  	ol_with_tls="auto"
3219fi
3220# end --with-tls
3221
3222# OpenLDAP --with-yielding_select
3223
3224# Check whether --with-yielding_select was given.
3225if test "${with_yielding_select+set}" = set; then :
3226  withval=$with_yielding_select;
3227	ol_arg=invalid
3228	for ol_val in auto yes no manual  ; do
3229		if test "$withval" = "$ol_val" ; then
3230			ol_arg="$ol_val"
3231		fi
3232	done
3233	if test "$ol_arg" = "invalid" ; then
3234		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
3235	fi
3236	ol_with_yielding_select="$ol_arg"
3237
3238else
3239  	ol_with_yielding_select="auto"
3240fi
3241# end --with-yielding_select
3242
3243# OpenLDAP --with-mp
3244
3245# Check whether --with-mp was given.
3246if test "${with_mp+set}" = set; then :
3247  withval=$with_mp;
3248	ol_arg=invalid
3249	for ol_val in auto longlong long bignum gmp yes no ; do
3250		if test "$withval" = "$ol_val" ; then
3251			ol_arg="$ol_val"
3252		fi
3253	done
3254	if test "$ol_arg" = "invalid" ; then
3255		as_fn_error $? "bad value $withval for --with-mp" "$LINENO" 5
3256	fi
3257	ol_with_mp="$ol_arg"
3258
3259else
3260  	ol_with_mp="auto"
3261fi
3262# end --with-mp
3263
3264# OpenLDAP --with-odbc
3265
3266# Check whether --with-odbc was given.
3267if test "${with_odbc+set}" = set; then :
3268  withval=$with_odbc;
3269	ol_arg=invalid
3270	for ol_val in auto iodbc unixodbc odbc32  ; do
3271		if test "$withval" = "$ol_val" ; then
3272			ol_arg="$ol_val"
3273		fi
3274	done
3275	if test "$ol_arg" = "invalid" ; then
3276		as_fn_error $? "bad value $withval for --with-odbc" "$LINENO" 5
3277	fi
3278	ol_with_odbc="$ol_arg"
3279
3280else
3281  	ol_with_odbc="auto"
3282fi
3283# end --with-odbc
3284
3285
3286
3287SlapdOptions="dynacl \
3288	aci \
3289	cleartext \
3290	crypt \
3291	spasswd \
3292	modules \
3293	rlookups \
3294	slapi \
3295	slp \
3296	wrappers"
3297
3298# Check whether --enable-xxslapdoptions was given.
3299if test "${enable_xxslapdoptions+set}" = set; then :
3300  enableval=$enable_xxslapdoptions;
3301fi
3302
3303
3304# OpenLDAP --enable-slapd
3305
3306	# Check whether --enable-slapd was given.
3307if test "${enable_slapd+set}" = set; then :
3308  enableval=$enable_slapd;
3309	ol_arg=invalid
3310	for ol_val in auto yes no ; do
3311		if test "$enableval" = "$ol_val" ; then
3312			ol_arg="$ol_val"
3313		fi
3314	done
3315	if test "$ol_arg" = "invalid" ; then
3316		as_fn_error $? "bad value $enableval for --enable-slapd" "$LINENO" 5
3317	fi
3318	ol_enable_slapd="$ol_arg"
3319
3320else
3321  	ol_enable_slapd=yes
3322fi
3323
3324# end --enable-slapd
3325# OpenLDAP --enable-dynacl
3326
3327	# Check whether --enable-dynacl was given.
3328if test "${enable_dynacl+set}" = set; then :
3329  enableval=$enable_dynacl;
3330	ol_arg=invalid
3331	for ol_val in auto yes no ; do
3332		if test "$enableval" = "$ol_val" ; then
3333			ol_arg="$ol_val"
3334		fi
3335	done
3336	if test "$ol_arg" = "invalid" ; then
3337		as_fn_error $? "bad value $enableval for --enable-dynacl" "$LINENO" 5
3338	fi
3339	ol_enable_dynacl="$ol_arg"
3340
3341else
3342  	ol_enable_dynacl=no
3343fi
3344
3345# end --enable-dynacl
3346# OpenLDAP --enable-aci
3347
3348	# Check whether --enable-aci was given.
3349if test "${enable_aci+set}" = set; then :
3350  enableval=$enable_aci;
3351	ol_arg=invalid
3352	for ol_val in no yes mod ; do
3353		if test "$enableval" = "$ol_val" ; then
3354			ol_arg="$ol_val"
3355		fi
3356	done
3357	if test "$ol_arg" = "invalid" ; then
3358		as_fn_error $? "bad value $enableval for --enable-aci" "$LINENO" 5
3359	fi
3360	ol_enable_aci="$ol_arg"
3361
3362else
3363  	ol_enable_aci=no
3364fi
3365
3366# end --enable-aci
3367# OpenLDAP --enable-cleartext
3368
3369	# Check whether --enable-cleartext was given.
3370if test "${enable_cleartext+set}" = set; then :
3371  enableval=$enable_cleartext;
3372	ol_arg=invalid
3373	for ol_val in auto yes no ; do
3374		if test "$enableval" = "$ol_val" ; then
3375			ol_arg="$ol_val"
3376		fi
3377	done
3378	if test "$ol_arg" = "invalid" ; then
3379		as_fn_error $? "bad value $enableval for --enable-cleartext" "$LINENO" 5
3380	fi
3381	ol_enable_cleartext="$ol_arg"
3382
3383else
3384  	ol_enable_cleartext=yes
3385fi
3386
3387# end --enable-cleartext
3388# OpenLDAP --enable-crypt
3389
3390	# Check whether --enable-crypt was given.
3391if test "${enable_crypt+set}" = set; then :
3392  enableval=$enable_crypt;
3393	ol_arg=invalid
3394	for ol_val in auto yes no ; do
3395		if test "$enableval" = "$ol_val" ; then
3396			ol_arg="$ol_val"
3397		fi
3398	done
3399	if test "$ol_arg" = "invalid" ; then
3400		as_fn_error $? "bad value $enableval for --enable-crypt" "$LINENO" 5
3401	fi
3402	ol_enable_crypt="$ol_arg"
3403
3404else
3405  	ol_enable_crypt=no
3406fi
3407
3408# end --enable-crypt
3409# OpenLDAP --enable-spasswd
3410
3411	# Check whether --enable-spasswd was given.
3412if test "${enable_spasswd+set}" = set; then :
3413  enableval=$enable_spasswd;
3414	ol_arg=invalid
3415	for ol_val in auto yes no ; do
3416		if test "$enableval" = "$ol_val" ; then
3417			ol_arg="$ol_val"
3418		fi
3419	done
3420	if test "$ol_arg" = "invalid" ; then
3421		as_fn_error $? "bad value $enableval for --enable-spasswd" "$LINENO" 5
3422	fi
3423	ol_enable_spasswd="$ol_arg"
3424
3425else
3426  	ol_enable_spasswd=no
3427fi
3428
3429# end --enable-spasswd
3430# OpenLDAP --enable-modules
3431
3432	# Check whether --enable-modules was given.
3433if test "${enable_modules+set}" = set; then :
3434  enableval=$enable_modules;
3435	ol_arg=invalid
3436	for ol_val in auto yes no ; do
3437		if test "$enableval" = "$ol_val" ; then
3438			ol_arg="$ol_val"
3439		fi
3440	done
3441	if test "$ol_arg" = "invalid" ; then
3442		as_fn_error $? "bad value $enableval for --enable-modules" "$LINENO" 5
3443	fi
3444	ol_enable_modules="$ol_arg"
3445
3446else
3447  	ol_enable_modules=no
3448fi
3449
3450# end --enable-modules
3451# OpenLDAP --enable-rlookups
3452
3453	# Check whether --enable-rlookups was given.
3454if test "${enable_rlookups+set}" = set; then :
3455  enableval=$enable_rlookups;
3456	ol_arg=invalid
3457	for ol_val in auto yes no ; do
3458		if test "$enableval" = "$ol_val" ; then
3459			ol_arg="$ol_val"
3460		fi
3461	done
3462	if test "$ol_arg" = "invalid" ; then
3463		as_fn_error $? "bad value $enableval for --enable-rlookups" "$LINENO" 5
3464	fi
3465	ol_enable_rlookups="$ol_arg"
3466
3467else
3468  	ol_enable_rlookups=no
3469fi
3470
3471# end --enable-rlookups
3472# OpenLDAP --enable-slapi
3473
3474	# Check whether --enable-slapi was given.
3475if test "${enable_slapi+set}" = set; then :
3476  enableval=$enable_slapi;
3477	ol_arg=invalid
3478	for ol_val in auto yes no ; do
3479		if test "$enableval" = "$ol_val" ; then
3480			ol_arg="$ol_val"
3481		fi
3482	done
3483	if test "$ol_arg" = "invalid" ; then
3484		as_fn_error $? "bad value $enableval for --enable-slapi" "$LINENO" 5
3485	fi
3486	ol_enable_slapi="$ol_arg"
3487
3488else
3489  	ol_enable_slapi=no
3490fi
3491
3492# end --enable-slapi
3493# OpenLDAP --enable-slp
3494
3495	# Check whether --enable-slp was given.
3496if test "${enable_slp+set}" = set; then :
3497  enableval=$enable_slp;
3498	ol_arg=invalid
3499	for ol_val in auto yes no ; do
3500		if test "$enableval" = "$ol_val" ; then
3501			ol_arg="$ol_val"
3502		fi
3503	done
3504	if test "$ol_arg" = "invalid" ; then
3505		as_fn_error $? "bad value $enableval for --enable-slp" "$LINENO" 5
3506	fi
3507	ol_enable_slp="$ol_arg"
3508
3509else
3510  	ol_enable_slp=no
3511fi
3512
3513# end --enable-slp
3514# OpenLDAP --enable-wrappers
3515
3516	# Check whether --enable-wrappers was given.
3517if test "${enable_wrappers+set}" = set; then :
3518  enableval=$enable_wrappers;
3519	ol_arg=invalid
3520	for ol_val in auto yes no ; do
3521		if test "$enableval" = "$ol_val" ; then
3522			ol_arg="$ol_val"
3523		fi
3524	done
3525	if test "$ol_arg" = "invalid" ; then
3526		as_fn_error $? "bad value $enableval for --enable-wrappers" "$LINENO" 5
3527	fi
3528	ol_enable_wrappers="$ol_arg"
3529
3530else
3531  	ol_enable_wrappers=no
3532fi
3533
3534# end --enable-wrappers
3535
3536Backends="dnssrv \
3537	ldap \
3538	mdb \
3539	meta \
3540	asyncmeta \
3541	ndb \
3542	null \
3543	passwd \
3544	perl \
3545	relay \
3546	sock \
3547	sql \
3548	wt"
3549
3550# Check whether --enable-xxslapbackends was given.
3551if test "${enable_xxslapbackends+set}" = set; then :
3552  enableval=$enable_xxslapbackends;
3553fi
3554
3555
3556# OpenLDAP --enable-backends
3557
3558	# Check whether --enable-backends was given.
3559if test "${enable_backends+set}" = set; then :
3560  enableval=$enable_backends;
3561	ol_arg=invalid
3562	for ol_val in no yes mod ; do
3563		if test "$enableval" = "$ol_val" ; then
3564			ol_arg="$ol_val"
3565		fi
3566	done
3567	if test "$ol_arg" = "invalid" ; then
3568		as_fn_error $? "bad value $enableval for --enable-backends" "$LINENO" 5
3569	fi
3570	ol_enable_backends="$ol_arg"
3571
3572fi
3573
3574# end --enable-backends
3575# OpenLDAP --enable-dnssrv
3576
3577	# Check whether --enable-dnssrv was given.
3578if test "${enable_dnssrv+set}" = set; then :
3579  enableval=$enable_dnssrv;
3580	ol_arg=invalid
3581	for ol_val in no yes mod ; do
3582		if test "$enableval" = "$ol_val" ; then
3583			ol_arg="$ol_val"
3584		fi
3585	done
3586	if test "$ol_arg" = "invalid" ; then
3587		as_fn_error $? "bad value $enableval for --enable-dnssrv" "$LINENO" 5
3588	fi
3589	ol_enable_dnssrv="$ol_arg"
3590
3591else
3592  	ol_enable_dnssrv=${ol_enable_backends:-no}
3593fi
3594
3595# end --enable-dnssrv
3596# OpenLDAP --enable-ldap
3597
3598	# Check whether --enable-ldap was given.
3599if test "${enable_ldap+set}" = set; then :
3600  enableval=$enable_ldap;
3601	ol_arg=invalid
3602	for ol_val in no yes mod ; do
3603		if test "$enableval" = "$ol_val" ; then
3604			ol_arg="$ol_val"
3605		fi
3606	done
3607	if test "$ol_arg" = "invalid" ; then
3608		as_fn_error $? "bad value $enableval for --enable-ldap" "$LINENO" 5
3609	fi
3610	ol_enable_ldap="$ol_arg"
3611
3612else
3613  	ol_enable_ldap=${ol_enable_backends:-no}
3614fi
3615
3616# end --enable-ldap
3617# OpenLDAP --enable-mdb
3618
3619	# Check whether --enable-mdb was given.
3620if test "${enable_mdb+set}" = set; then :
3621  enableval=$enable_mdb;
3622	ol_arg=invalid
3623	for ol_val in no yes mod ; do
3624		if test "$enableval" = "$ol_val" ; then
3625			ol_arg="$ol_val"
3626		fi
3627	done
3628	if test "$ol_arg" = "invalid" ; then
3629		as_fn_error $? "bad value $enableval for --enable-mdb" "$LINENO" 5
3630	fi
3631	ol_enable_mdb="$ol_arg"
3632
3633else
3634  	ol_enable_mdb=${ol_enable_backends:-yes}
3635fi
3636
3637# end --enable-mdb
3638# OpenLDAP --enable-meta
3639
3640	# Check whether --enable-meta was given.
3641if test "${enable_meta+set}" = set; then :
3642  enableval=$enable_meta;
3643	ol_arg=invalid
3644	for ol_val in no yes mod ; do
3645		if test "$enableval" = "$ol_val" ; then
3646			ol_arg="$ol_val"
3647		fi
3648	done
3649	if test "$ol_arg" = "invalid" ; then
3650		as_fn_error $? "bad value $enableval for --enable-meta" "$LINENO" 5
3651	fi
3652	ol_enable_meta="$ol_arg"
3653
3654else
3655  	ol_enable_meta=${ol_enable_backends:-no}
3656fi
3657
3658# end --enable-meta
3659# OpenLDAP --enable-asyncmeta
3660
3661	# Check whether --enable-asyncmeta was given.
3662if test "${enable_asyncmeta+set}" = set; then :
3663  enableval=$enable_asyncmeta;
3664	ol_arg=invalid
3665	for ol_val in no yes mod ; do
3666		if test "$enableval" = "$ol_val" ; then
3667			ol_arg="$ol_val"
3668		fi
3669	done
3670	if test "$ol_arg" = "invalid" ; then
3671		as_fn_error $? "bad value $enableval for --enable-asyncmeta" "$LINENO" 5
3672	fi
3673	ol_enable_asyncmeta="$ol_arg"
3674
3675else
3676  	ol_enable_asyncmeta=${ol_enable_backends:-no}
3677fi
3678
3679# end --enable-asyncmeta
3680# OpenLDAP --enable-ndb
3681
3682	# Check whether --enable-ndb was given.
3683if test "${enable_ndb+set}" = set; then :
3684  enableval=$enable_ndb;
3685	ol_arg=invalid
3686	for ol_val in no yes mod ; do
3687		if test "$enableval" = "$ol_val" ; then
3688			ol_arg="$ol_val"
3689		fi
3690	done
3691	if test "$ol_arg" = "invalid" ; then
3692		as_fn_error $? "bad value $enableval for --enable-ndb" "$LINENO" 5
3693	fi
3694	ol_enable_ndb="$ol_arg"
3695
3696else
3697  	ol_enable_ndb=no
3698fi
3699
3700# end --enable-ndb
3701# OpenLDAP --enable-null
3702
3703	# Check whether --enable-null was given.
3704if test "${enable_null+set}" = set; then :
3705  enableval=$enable_null;
3706	ol_arg=invalid
3707	for ol_val in no yes mod ; do
3708		if test "$enableval" = "$ol_val" ; then
3709			ol_arg="$ol_val"
3710		fi
3711	done
3712	if test "$ol_arg" = "invalid" ; then
3713		as_fn_error $? "bad value $enableval for --enable-null" "$LINENO" 5
3714	fi
3715	ol_enable_null="$ol_arg"
3716
3717else
3718  	ol_enable_null=${ol_enable_backends:-no}
3719fi
3720
3721# end --enable-null
3722# OpenLDAP --enable-passwd
3723
3724	# Check whether --enable-passwd was given.
3725if test "${enable_passwd+set}" = set; then :
3726  enableval=$enable_passwd;
3727	ol_arg=invalid
3728	for ol_val in no yes mod ; do
3729		if test "$enableval" = "$ol_val" ; then
3730			ol_arg="$ol_val"
3731		fi
3732	done
3733	if test "$ol_arg" = "invalid" ; then
3734		as_fn_error $? "bad value $enableval for --enable-passwd" "$LINENO" 5
3735	fi
3736	ol_enable_passwd="$ol_arg"
3737
3738else
3739  	ol_enable_passwd=${ol_enable_backends:-no}
3740fi
3741
3742# end --enable-passwd
3743# OpenLDAP --enable-perl
3744
3745	# Check whether --enable-perl was given.
3746if test "${enable_perl+set}" = set; then :
3747  enableval=$enable_perl;
3748	ol_arg=invalid
3749	for ol_val in no yes mod ; do
3750		if test "$enableval" = "$ol_val" ; then
3751			ol_arg="$ol_val"
3752		fi
3753	done
3754	if test "$ol_arg" = "invalid" ; then
3755		as_fn_error $? "bad value $enableval for --enable-perl" "$LINENO" 5
3756	fi
3757	ol_enable_perl="$ol_arg"
3758
3759else
3760  	ol_enable_perl=no
3761fi
3762
3763# end --enable-perl
3764# OpenLDAP --enable-relay
3765
3766	# Check whether --enable-relay was given.
3767if test "${enable_relay+set}" = set; then :
3768  enableval=$enable_relay;
3769	ol_arg=invalid
3770	for ol_val in no yes mod ; do
3771		if test "$enableval" = "$ol_val" ; then
3772			ol_arg="$ol_val"
3773		fi
3774	done
3775	if test "$ol_arg" = "invalid" ; then
3776		as_fn_error $? "bad value $enableval for --enable-relay" "$LINENO" 5
3777	fi
3778	ol_enable_relay="$ol_arg"
3779
3780else
3781  	ol_enable_relay=${ol_enable_backends:-yes}
3782fi
3783
3784# end --enable-relay
3785# OpenLDAP --enable-sock
3786
3787	# Check whether --enable-sock was given.
3788if test "${enable_sock+set}" = set; then :
3789  enableval=$enable_sock;
3790	ol_arg=invalid
3791	for ol_val in no yes mod ; do
3792		if test "$enableval" = "$ol_val" ; then
3793			ol_arg="$ol_val"
3794		fi
3795	done
3796	if test "$ol_arg" = "invalid" ; then
3797		as_fn_error $? "bad value $enableval for --enable-sock" "$LINENO" 5
3798	fi
3799	ol_enable_sock="$ol_arg"
3800
3801else
3802  	ol_enable_sock=${ol_enable_backends:-no}
3803fi
3804
3805# end --enable-sock
3806# OpenLDAP --enable-sql
3807
3808	# Check whether --enable-sql was given.
3809if test "${enable_sql+set}" = set; then :
3810  enableval=$enable_sql;
3811	ol_arg=invalid
3812	for ol_val in no yes mod ; do
3813		if test "$enableval" = "$ol_val" ; then
3814			ol_arg="$ol_val"
3815		fi
3816	done
3817	if test "$ol_arg" = "invalid" ; then
3818		as_fn_error $? "bad value $enableval for --enable-sql" "$LINENO" 5
3819	fi
3820	ol_enable_sql="$ol_arg"
3821
3822else
3823  	ol_enable_sql=no
3824fi
3825
3826# end --enable-sql
3827# OpenLDAP --enable-wt
3828
3829	# Check whether --enable-wt was given.
3830if test "${enable_wt+set}" = set; then :
3831  enableval=$enable_wt;
3832	ol_arg=invalid
3833	for ol_val in no yes mod ; do
3834		if test "$enableval" = "$ol_val" ; then
3835			ol_arg="$ol_val"
3836		fi
3837	done
3838	if test "$ol_arg" = "invalid" ; then
3839		as_fn_error $? "bad value $enableval for --enable-wt" "$LINENO" 5
3840	fi
3841	ol_enable_wt="$ol_arg"
3842
3843else
3844  	ol_enable_wt=${ol_enable_backends:-no}
3845fi
3846
3847# end --enable-wt
3848
3849Overlays="accesslog \
3850	auditlog \
3851	autoca \
3852	collect \
3853	constraint \
3854	dds \
3855	deref \
3856	dyngroup \
3857	dynlist \
3858	homedir \
3859	memberof \
3860	otp \
3861	ppolicy \
3862	proxycache \
3863	refint \
3864	remoteauth \
3865	retcode \
3866	rwm \
3867	seqmod \
3868	sssvlv \
3869	syncprov \
3870	translucent \
3871	unique \
3872	valsort"
3873
3874Pwmods="argon2"
3875
3876# Check whether --enable-xxslapoverlays was given.
3877if test "${enable_xxslapoverlays+set}" = set; then :
3878  enableval=$enable_xxslapoverlays;
3879fi
3880
3881
3882# OpenLDAP --enable-overlays
3883
3884	# Check whether --enable-overlays was given.
3885if test "${enable_overlays+set}" = set; then :
3886  enableval=$enable_overlays;
3887	ol_arg=invalid
3888	for ol_val in no yes mod ; do
3889		if test "$enableval" = "$ol_val" ; then
3890			ol_arg="$ol_val"
3891		fi
3892	done
3893	if test "$ol_arg" = "invalid" ; then
3894		as_fn_error $? "bad value $enableval for --enable-overlays" "$LINENO" 5
3895	fi
3896	ol_enable_overlays="$ol_arg"
3897
3898fi
3899
3900# end --enable-overlays
3901# OpenLDAP --enable-accesslog
3902
3903	# Check whether --enable-accesslog was given.
3904if test "${enable_accesslog+set}" = set; then :
3905  enableval=$enable_accesslog;
3906	ol_arg=invalid
3907	for ol_val in no yes mod ; do
3908		if test "$enableval" = "$ol_val" ; then
3909			ol_arg="$ol_val"
3910		fi
3911	done
3912	if test "$ol_arg" = "invalid" ; then
3913		as_fn_error $? "bad value $enableval for --enable-accesslog" "$LINENO" 5
3914	fi
3915	ol_enable_accesslog="$ol_arg"
3916
3917else
3918  	ol_enable_accesslog=${ol_enable_overlays:-no}
3919fi
3920
3921# end --enable-accesslog
3922
3923# OpenLDAP --enable-auditlog
3924
3925	# Check whether --enable-auditlog was given.
3926if test "${enable_auditlog+set}" = set; then :
3927  enableval=$enable_auditlog;
3928	ol_arg=invalid
3929	for ol_val in no yes mod ; do
3930		if test "$enableval" = "$ol_val" ; then
3931			ol_arg="$ol_val"
3932		fi
3933	done
3934	if test "$ol_arg" = "invalid" ; then
3935		as_fn_error $? "bad value $enableval for --enable-auditlog" "$LINENO" 5
3936	fi
3937	ol_enable_auditlog="$ol_arg"
3938
3939else
3940  	ol_enable_auditlog=${ol_enable_overlays:-no}
3941fi
3942
3943# end --enable-auditlog
3944
3945# OpenLDAP --enable-autoca
3946
3947	# Check whether --enable-autoca was given.
3948if test "${enable_autoca+set}" = set; then :
3949  enableval=$enable_autoca;
3950	ol_arg=invalid
3951	for ol_val in no yes mod ; do
3952		if test "$enableval" = "$ol_val" ; then
3953			ol_arg="$ol_val"
3954		fi
3955	done
3956	if test "$ol_arg" = "invalid" ; then
3957		as_fn_error $? "bad value $enableval for --enable-autoca" "$LINENO" 5
3958	fi
3959	ol_enable_autoca="$ol_arg"
3960
3961else
3962  	ol_enable_autoca=${ol_enable_overlays:-no}
3963fi
3964
3965# end --enable-autoca
3966
3967# OpenLDAP --enable-collect
3968
3969	# Check whether --enable-collect was given.
3970if test "${enable_collect+set}" = set; then :
3971  enableval=$enable_collect;
3972	ol_arg=invalid
3973	for ol_val in no yes mod ; do
3974		if test "$enableval" = "$ol_val" ; then
3975			ol_arg="$ol_val"
3976		fi
3977	done
3978	if test "$ol_arg" = "invalid" ; then
3979		as_fn_error $? "bad value $enableval for --enable-collect" "$LINENO" 5
3980	fi
3981	ol_enable_collect="$ol_arg"
3982
3983else
3984  	ol_enable_collect=${ol_enable_overlays:-no}
3985fi
3986
3987# end --enable-collect
3988
3989# OpenLDAP --enable-constraint
3990
3991	# Check whether --enable-constraint was given.
3992if test "${enable_constraint+set}" = set; then :
3993  enableval=$enable_constraint;
3994	ol_arg=invalid
3995	for ol_val in no yes mod ; do
3996		if test "$enableval" = "$ol_val" ; then
3997			ol_arg="$ol_val"
3998		fi
3999	done
4000	if test "$ol_arg" = "invalid" ; then
4001		as_fn_error $? "bad value $enableval for --enable-constraint" "$LINENO" 5
4002	fi
4003	ol_enable_constraint="$ol_arg"
4004
4005else
4006  	ol_enable_constraint=${ol_enable_overlays:-no}
4007fi
4008
4009# end --enable-constraint
4010
4011# OpenLDAP --enable-dds
4012
4013	# Check whether --enable-dds was given.
4014if test "${enable_dds+set}" = set; then :
4015  enableval=$enable_dds;
4016	ol_arg=invalid
4017	for ol_val in no yes mod ; do
4018		if test "$enableval" = "$ol_val" ; then
4019			ol_arg="$ol_val"
4020		fi
4021	done
4022	if test "$ol_arg" = "invalid" ; then
4023		as_fn_error $? "bad value $enableval for --enable-dds" "$LINENO" 5
4024	fi
4025	ol_enable_dds="$ol_arg"
4026
4027else
4028  	ol_enable_dds=${ol_enable_overlays:-no}
4029fi
4030
4031# end --enable-dds
4032
4033# OpenLDAP --enable-deref
4034
4035	# Check whether --enable-deref was given.
4036if test "${enable_deref+set}" = set; then :
4037  enableval=$enable_deref;
4038	ol_arg=invalid
4039	for ol_val in no yes mod ; do
4040		if test "$enableval" = "$ol_val" ; then
4041			ol_arg="$ol_val"
4042		fi
4043	done
4044	if test "$ol_arg" = "invalid" ; then
4045		as_fn_error $? "bad value $enableval for --enable-deref" "$LINENO" 5
4046	fi
4047	ol_enable_deref="$ol_arg"
4048
4049else
4050  	ol_enable_deref=${ol_enable_overlays:-no}
4051fi
4052
4053# end --enable-deref
4054
4055# OpenLDAP --enable-dyngroup
4056
4057	# Check whether --enable-dyngroup was given.
4058if test "${enable_dyngroup+set}" = set; then :
4059  enableval=$enable_dyngroup;
4060	ol_arg=invalid
4061	for ol_val in no yes mod ; do
4062		if test "$enableval" = "$ol_val" ; then
4063			ol_arg="$ol_val"
4064		fi
4065	done
4066	if test "$ol_arg" = "invalid" ; then
4067		as_fn_error $? "bad value $enableval for --enable-dyngroup" "$LINENO" 5
4068	fi
4069	ol_enable_dyngroup="$ol_arg"
4070
4071else
4072  	ol_enable_dyngroup=${ol_enable_overlays:-no}
4073fi
4074
4075# end --enable-dyngroup
4076
4077# OpenLDAP --enable-dynlist
4078
4079	# Check whether --enable-dynlist was given.
4080if test "${enable_dynlist+set}" = set; then :
4081  enableval=$enable_dynlist;
4082	ol_arg=invalid
4083	for ol_val in no yes mod ; do
4084		if test "$enableval" = "$ol_val" ; then
4085			ol_arg="$ol_val"
4086		fi
4087	done
4088	if test "$ol_arg" = "invalid" ; then
4089		as_fn_error $? "bad value $enableval for --enable-dynlist" "$LINENO" 5
4090	fi
4091	ol_enable_dynlist="$ol_arg"
4092
4093else
4094  	ol_enable_dynlist=${ol_enable_overlays:-no}
4095fi
4096
4097# end --enable-dynlist
4098
4099# OpenLDAP --enable-homedir
4100
4101	# Check whether --enable-homedir was given.
4102if test "${enable_homedir+set}" = set; then :
4103  enableval=$enable_homedir;
4104	ol_arg=invalid
4105	for ol_val in no yes mod ; do
4106		if test "$enableval" = "$ol_val" ; then
4107			ol_arg="$ol_val"
4108		fi
4109	done
4110	if test "$ol_arg" = "invalid" ; then
4111		as_fn_error $? "bad value $enableval for --enable-homedir" "$LINENO" 5
4112	fi
4113	ol_enable_homedir="$ol_arg"
4114
4115else
4116  	ol_enable_homedir=${ol_enable_overlays:-no}
4117fi
4118
4119# end --enable-homedir
4120
4121# OpenLDAP --enable-memberof
4122
4123	# Check whether --enable-memberof was given.
4124if test "${enable_memberof+set}" = set; then :
4125  enableval=$enable_memberof;
4126	ol_arg=invalid
4127	for ol_val in no yes mod ; do
4128		if test "$enableval" = "$ol_val" ; then
4129			ol_arg="$ol_val"
4130		fi
4131	done
4132	if test "$ol_arg" = "invalid" ; then
4133		as_fn_error $? "bad value $enableval for --enable-memberof" "$LINENO" 5
4134	fi
4135	ol_enable_memberof="$ol_arg"
4136
4137else
4138  	ol_enable_memberof=${ol_enable_overlays:-no}
4139fi
4140
4141# end --enable-memberof
4142
4143# OpenLDAP --enable-otp
4144
4145	# Check whether --enable-otp was given.
4146if test "${enable_otp+set}" = set; then :
4147  enableval=$enable_otp;
4148	ol_arg=invalid
4149	for ol_val in no yes mod ; do
4150		if test "$enableval" = "$ol_val" ; then
4151			ol_arg="$ol_val"
4152		fi
4153	done
4154	if test "$ol_arg" = "invalid" ; then
4155		as_fn_error $? "bad value $enableval for --enable-otp" "$LINENO" 5
4156	fi
4157	ol_enable_otp="$ol_arg"
4158
4159else
4160  	ol_enable_otp=${ol_enable_overlays:-no}
4161fi
4162
4163# end --enable-otp
4164
4165# OpenLDAP --enable-ppolicy
4166
4167	# Check whether --enable-ppolicy was given.
4168if test "${enable_ppolicy+set}" = set; then :
4169  enableval=$enable_ppolicy;
4170	ol_arg=invalid
4171	for ol_val in no yes mod ; do
4172		if test "$enableval" = "$ol_val" ; then
4173			ol_arg="$ol_val"
4174		fi
4175	done
4176	if test "$ol_arg" = "invalid" ; then
4177		as_fn_error $? "bad value $enableval for --enable-ppolicy" "$LINENO" 5
4178	fi
4179	ol_enable_ppolicy="$ol_arg"
4180
4181else
4182  	ol_enable_ppolicy=${ol_enable_overlays:-no}
4183fi
4184
4185# end --enable-ppolicy
4186
4187# OpenLDAP --enable-proxycache
4188
4189	# Check whether --enable-proxycache was given.
4190if test "${enable_proxycache+set}" = set; then :
4191  enableval=$enable_proxycache;
4192	ol_arg=invalid
4193	for ol_val in no yes mod ; do
4194		if test "$enableval" = "$ol_val" ; then
4195			ol_arg="$ol_val"
4196		fi
4197	done
4198	if test "$ol_arg" = "invalid" ; then
4199		as_fn_error $? "bad value $enableval for --enable-proxycache" "$LINENO" 5
4200	fi
4201	ol_enable_proxycache="$ol_arg"
4202
4203else
4204  	ol_enable_proxycache=${ol_enable_overlays:-no}
4205fi
4206
4207# end --enable-proxycache
4208
4209# OpenLDAP --enable-refint
4210
4211	# Check whether --enable-refint was given.
4212if test "${enable_refint+set}" = set; then :
4213  enableval=$enable_refint;
4214	ol_arg=invalid
4215	for ol_val in no yes mod ; do
4216		if test "$enableval" = "$ol_val" ; then
4217			ol_arg="$ol_val"
4218		fi
4219	done
4220	if test "$ol_arg" = "invalid" ; then
4221		as_fn_error $? "bad value $enableval for --enable-refint" "$LINENO" 5
4222	fi
4223	ol_enable_refint="$ol_arg"
4224
4225else
4226  	ol_enable_refint=${ol_enable_overlays:-no}
4227fi
4228
4229# end --enable-refint
4230
4231# OpenLDAP --enable-remoteauth
4232
4233	# Check whether --enable-remoteauth was given.
4234if test "${enable_remoteauth+set}" = set; then :
4235  enableval=$enable_remoteauth;
4236	ol_arg=invalid
4237	for ol_val in no yes mod ; do
4238		if test "$enableval" = "$ol_val" ; then
4239			ol_arg="$ol_val"
4240		fi
4241	done
4242	if test "$ol_arg" = "invalid" ; then
4243		as_fn_error $? "bad value $enableval for --enable-remoteauth" "$LINENO" 5
4244	fi
4245	ol_enable_remoteauth="$ol_arg"
4246
4247else
4248  	ol_enable_remoteauth=${ol_enable_overlays:-no}
4249fi
4250
4251# end --enable-remoteauth
4252
4253# OpenLDAP --enable-retcode
4254
4255	# Check whether --enable-retcode was given.
4256if test "${enable_retcode+set}" = set; then :
4257  enableval=$enable_retcode;
4258	ol_arg=invalid
4259	for ol_val in no yes mod ; do
4260		if test "$enableval" = "$ol_val" ; then
4261			ol_arg="$ol_val"
4262		fi
4263	done
4264	if test "$ol_arg" = "invalid" ; then
4265		as_fn_error $? "bad value $enableval for --enable-retcode" "$LINENO" 5
4266	fi
4267	ol_enable_retcode="$ol_arg"
4268
4269else
4270  	ol_enable_retcode=${ol_enable_overlays:-no}
4271fi
4272
4273# end --enable-retcode
4274
4275# OpenLDAP --enable-rwm
4276
4277	# Check whether --enable-rwm was given.
4278if test "${enable_rwm+set}" = set; then :
4279  enableval=$enable_rwm;
4280	ol_arg=invalid
4281	for ol_val in no yes mod ; do
4282		if test "$enableval" = "$ol_val" ; then
4283			ol_arg="$ol_val"
4284		fi
4285	done
4286	if test "$ol_arg" = "invalid" ; then
4287		as_fn_error $? "bad value $enableval for --enable-rwm" "$LINENO" 5
4288	fi
4289	ol_enable_rwm="$ol_arg"
4290
4291else
4292  	ol_enable_rwm=${ol_enable_overlays:-no}
4293fi
4294
4295# end --enable-rwm
4296
4297# OpenLDAP --enable-seqmod
4298
4299	# Check whether --enable-seqmod was given.
4300if test "${enable_seqmod+set}" = set; then :
4301  enableval=$enable_seqmod;
4302	ol_arg=invalid
4303	for ol_val in no yes mod ; do
4304		if test "$enableval" = "$ol_val" ; then
4305			ol_arg="$ol_val"
4306		fi
4307	done
4308	if test "$ol_arg" = "invalid" ; then
4309		as_fn_error $? "bad value $enableval for --enable-seqmod" "$LINENO" 5
4310	fi
4311	ol_enable_seqmod="$ol_arg"
4312
4313else
4314  	ol_enable_seqmod=${ol_enable_overlays:-no}
4315fi
4316
4317# end --enable-seqmod
4318
4319# OpenLDAP --enable-sssvlv
4320
4321	# Check whether --enable-sssvlv was given.
4322if test "${enable_sssvlv+set}" = set; then :
4323  enableval=$enable_sssvlv;
4324	ol_arg=invalid
4325	for ol_val in no yes mod ; do
4326		if test "$enableval" = "$ol_val" ; then
4327			ol_arg="$ol_val"
4328		fi
4329	done
4330	if test "$ol_arg" = "invalid" ; then
4331		as_fn_error $? "bad value $enableval for --enable-sssvlv" "$LINENO" 5
4332	fi
4333	ol_enable_sssvlv="$ol_arg"
4334
4335else
4336  	ol_enable_sssvlv=${ol_enable_overlays:-no}
4337fi
4338
4339# end --enable-sssvlv
4340
4341# OpenLDAP --enable-syncprov
4342
4343	# Check whether --enable-syncprov was given.
4344if test "${enable_syncprov+set}" = set; then :
4345  enableval=$enable_syncprov;
4346	ol_arg=invalid
4347	for ol_val in no yes mod ; do
4348		if test "$enableval" = "$ol_val" ; then
4349			ol_arg="$ol_val"
4350		fi
4351	done
4352	if test "$ol_arg" = "invalid" ; then
4353		as_fn_error $? "bad value $enableval for --enable-syncprov" "$LINENO" 5
4354	fi
4355	ol_enable_syncprov="$ol_arg"
4356
4357else
4358  	ol_enable_syncprov=${ol_enable_overlays:-yes}
4359fi
4360
4361# end --enable-syncprov
4362
4363# OpenLDAP --enable-translucent
4364
4365	# Check whether --enable-translucent was given.
4366if test "${enable_translucent+set}" = set; then :
4367  enableval=$enable_translucent;
4368	ol_arg=invalid
4369	for ol_val in no yes mod ; do
4370		if test "$enableval" = "$ol_val" ; then
4371			ol_arg="$ol_val"
4372		fi
4373	done
4374	if test "$ol_arg" = "invalid" ; then
4375		as_fn_error $? "bad value $enableval for --enable-translucent" "$LINENO" 5
4376	fi
4377	ol_enable_translucent="$ol_arg"
4378
4379else
4380  	ol_enable_translucent=${ol_enable_overlays:-no}
4381fi
4382
4383# end --enable-translucent
4384
4385# OpenLDAP --enable-unique
4386
4387	# Check whether --enable-unique was given.
4388if test "${enable_unique+set}" = set; then :
4389  enableval=$enable_unique;
4390	ol_arg=invalid
4391	for ol_val in no yes mod ; do
4392		if test "$enableval" = "$ol_val" ; then
4393			ol_arg="$ol_val"
4394		fi
4395	done
4396	if test "$ol_arg" = "invalid" ; then
4397		as_fn_error $? "bad value $enableval for --enable-unique" "$LINENO" 5
4398	fi
4399	ol_enable_unique="$ol_arg"
4400
4401else
4402  	ol_enable_unique=${ol_enable_overlays:-no}
4403fi
4404
4405# end --enable-unique
4406
4407# OpenLDAP --enable-valsort
4408
4409	# Check whether --enable-valsort was given.
4410if test "${enable_valsort+set}" = set; then :
4411  enableval=$enable_valsort;
4412	ol_arg=invalid
4413	for ol_val in no yes mod ; do
4414		if test "$enableval" = "$ol_val" ; then
4415			ol_arg="$ol_val"
4416		fi
4417	done
4418	if test "$ol_arg" = "invalid" ; then
4419		as_fn_error $? "bad value $enableval for --enable-valsort" "$LINENO" 5
4420	fi
4421	ol_enable_valsort="$ol_arg"
4422
4423else
4424  	ol_enable_valsort=${ol_enable_overlays:-no}
4425fi
4426
4427# end --enable-valsort
4428
4429
4430# Check whether --enable-pwmodoptions was given.
4431if test "${enable_pwmodoptions+set}" = set; then :
4432  enableval=$enable_pwmodoptions;
4433fi
4434
4435# OpenLDAP --enable-argon2
4436
4437	# Check whether --enable-argon2 was given.
4438if test "${enable_argon2+set}" = set; then :
4439  enableval=$enable_argon2;
4440	ol_arg=invalid
4441	for ol_val in no yes ; do
4442		if test "$enableval" = "$ol_val" ; then
4443			ol_arg="$ol_val"
4444		fi
4445	done
4446	if test "$ol_arg" = "invalid" ; then
4447		as_fn_error $? "bad value $enableval for --enable-argon2" "$LINENO" 5
4448	fi
4449	ol_enable_argon2="$ol_arg"
4450
4451else
4452  	ol_enable_argon2=${ol_enable_pwmodules:-no}
4453fi
4454
4455# end --enable-argon2
4456
4457# OpenLDAP --with-argon2
4458
4459# Check whether --with-argon2 was given.
4460if test "${with_argon2+set}" = set; then :
4461  withval=$with_argon2;
4462	ol_arg=invalid
4463	for ol_val in auto libsodium libargon2 yes no  ; do
4464		if test "$withval" = "$ol_val" ; then
4465			ol_arg="$ol_val"
4466		fi
4467	done
4468	if test "$ol_arg" = "invalid" ; then
4469		as_fn_error $? "bad value $withval for --with-argon2" "$LINENO" 5
4470	fi
4471	ol_with_argon2="$ol_arg"
4472
4473else
4474  	ol_with_argon2="auto"
4475fi
4476# end --with-argon2
4477
4478
4479# Check whether --enable-balanceroptions was given.
4480if test "${enable_balanceroptions+set}" = set; then :
4481  enableval=$enable_balanceroptions;
4482fi
4483
4484# OpenLDAP --enable-balancer
4485
4486	# Check whether --enable-balancer was given.
4487if test "${enable_balancer+set}" = set; then :
4488  enableval=$enable_balancer;
4489	ol_arg=invalid
4490	for ol_val in no yes mod ; do
4491		if test "$enableval" = "$ol_val" ; then
4492			ol_arg="$ol_val"
4493		fi
4494	done
4495	if test "$ol_arg" = "invalid" ; then
4496		as_fn_error $? "bad value $enableval for --enable-balancer" "$LINENO" 5
4497	fi
4498	ol_enable_balancer="$ol_arg"
4499
4500else
4501  	ol_enable_balancer=no
4502fi
4503
4504# end --enable-balancer
4505
4506
4507# Check whether --enable-xxliboptions was given.
4508if test "${enable_xxliboptions+set}" = set; then :
4509  enableval=$enable_xxliboptions;
4510fi
4511
4512# Check whether --enable-static was given.
4513if test "${enable_static+set}" = set; then :
4514  enableval=$enable_static; p=${PACKAGE-default}
4515    case $enableval in
4516    yes) enable_static=yes ;;
4517    no) enable_static=no ;;
4518    *)
4519     enable_static=no
4520      # Look at the argument we got.  We use all the common list separators.
4521      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4522      for pkg in $enableval; do
4523	IFS=$lt_save_ifs
4524	if test "X$pkg" = "X$p"; then
4525	  enable_static=yes
4526	fi
4527      done
4528      IFS=$lt_save_ifs
4529      ;;
4530    esac
4531else
4532  enable_static=yes
4533fi
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543# Check whether --enable-shared was given.
4544if test "${enable_shared+set}" = set; then :
4545  enableval=$enable_shared; p=${PACKAGE-default}
4546    case $enableval in
4547    yes) enable_shared=yes ;;
4548    no) enable_shared=no ;;
4549    *)
4550      enable_shared=no
4551      # Look at the argument we got.  We use all the common list separators.
4552      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4553      for pkg in $enableval; do
4554	IFS=$lt_save_ifs
4555	if test "X$pkg" = "X$p"; then
4556	  enable_shared=yes
4557	fi
4558      done
4559      IFS=$lt_save_ifs
4560      ;;
4561    esac
4562else
4563  enable_shared=yes
4564fi
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574# OpenLDAP --enable-versioning
4575
4576	# Check whether --enable-versioning was given.
4577if test "${enable_versioning+set}" = set; then :
4578  enableval=$enable_versioning;
4579	ol_arg=invalid
4580	for ol_val in no yes auto ; do
4581		if test "$enableval" = "$ol_val" ; then
4582			ol_arg="$ol_val"
4583		fi
4584	done
4585	if test "$ol_arg" = "invalid" ; then
4586		as_fn_error $? "bad value $enableval for --enable-versioning" "$LINENO" 5
4587	fi
4588	ol_enable_versioning="$ol_arg"
4589
4590else
4591  	ol_enable_versioning=auto
4592fi
4593
4594# end --enable-versioning
4595
4596
4597if test $ol_enable_slapd = no ; then
4598
4599	for i in $SlapdOptions; do
4600		eval "ol_tmp=\$ol_enable_$i"
4601		if test $ol_tmp = yes ; then
4602			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4603$as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4604			eval "ol_enable_$i=no"
4605		fi
4606	done
4607
4608	for i in $Backends $Overlays $Pwmods; do
4609		eval "ol_tmp=\$ol_enable_$i"
4610		if test $ol_tmp != no ; then
4611			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4612$as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4613			eval "ol_enable_$i=no"
4614		fi
4615	done
4616
4617	if test $ol_enable_balancer = mod ; then
4618		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-balancer=mod argument" >&5
4619$as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-balancer=mod argument" >&2;}
4620		ol_enable_balancer=no
4621	fi
4622else
4623
4624	if test $ol_enable_modules = no; then
4625
4626		for i in backends overlays balancer $Backends $Overlays; do
4627			eval "ol_tmp=\$ol_enable_$i"
4628			if test -n "$ol_tmp" && test "$ol_tmp" = mod ; then
4629				as_fn_error $? "--enable-$i=mod requires --enable-modules" "$LINENO" 5
4630			fi
4631		done
4632
4633		for i in $Pwmods; do
4634			eval "ol_tmp=\$ol_enable_$i"
4635			if test -n "$ol_tmp" && test "$ol_tmp" = yes ; then
4636				as_fn_error $? "--enable-$i=yes requires --enable-modules" "$LINENO" 5
4637			fi
4638		done
4639
4640		ol_any_backend=no
4641		for i in $Backends; do
4642			eval "ol_tmp=\$ol_enable_$i"
4643			if test $ol_tmp = yes; then
4644				ol_any_backend=yes
4645			fi
4646		done
4647
4648		if test $ol_any_backend = no; then
4649			as_fn_error $? "slapd requires a backend" "$LINENO" 5
4650		fi
4651	fi
4652fi
4653
4654if test $ol_enable_aci = yes ; then
4655	if test $ol_enable_dynacl = no ; then
4656		as_fn_error $? "--enable-aci requires --enable-dynacl" "$LINENO" 5
4657	fi
4658elif test $ol_enable_aci = mod ; then
4659	as_fn_error $? "ACI build as dynamic module not supported (yet)" "$LINENO" 5
4660fi
4661
4662if test $ol_enable_modules = yes ; then
4663	if test $ol_enable_dynamic = no ; then
4664		as_fn_error $? "--enable-modules requires --enable-dynamic" "$LINENO" 5
4665	fi
4666	ol_enable_dynamic=yes
4667fi
4668
4669if test $ol_enable_balancer != no ; then
4670		if test $ol_with_threads = no ; then
4671		as_fn_error $? "Load balancer requires threads" "$LINENO" 5
4672	fi
4673fi
4674
4675if test $ol_enable_spasswd = yes ; then
4676	if test $ol_with_cyrus_sasl = no ; then
4677		as_fn_error $? "--enable-spasswd requires --with-cyrus-sasl" "$LINENO" 5
4678	fi
4679	ol_with_cyrus_sasl=yes
4680fi
4681
4682if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4683	as_fn_error $? "--enable-meta requires --enable-ldap" "$LINENO" 5
4684fi
4685
4686if test $ol_enable_asyncmeta/$ol_enable_ldap = yes/no ; then
4687	as_fn_error $? "--enable-asyncmeta requires --enable-ldap" "$LINENO" 5
4688fi
4689
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
4691$as_echo "done" >&6; }
4692
4693LDAP_LIBS=
4694SLAPD_NDB_LIBS=
4695SLAPD_NDB_INCS=
4696LTHREAD_LIBS=
4697LEVENT_LIBS=
4698LUTIL_LIBS=
4699
4700CLIENT_LIBS=
4701
4702SLAPD_LIBS=
4703BALANCER_LIBS=
4704BALANCER_INCLUDE=
4705
4706BUILD_SLAPD=no
4707BUILD_BALANCER=no
4708
4709BUILD_THREAD=no
4710
4711BUILD_SLAPI=no
4712SLAPD_SLAPI_DEPEND=
4713
4714BUILD_DNSSRV=no
4715BUILD_LDAP=no
4716BUILD_MDB=no
4717BUILD_META=no
4718BUILD_ASYNCMETA=no
4719BUILD_NDB=no
4720BUILD_NULL=no
4721BUILD_PASSWD=no
4722BUILD_PERL=no
4723BUILD_RELAY=no
4724BUILD_SHELL=no
4725BUILD_SOCK=no
4726BUILD_SQL=no
4727BUILD_WT=no
4728
4729BUILD_ACCESSLOG=no
4730BUILD_AUDITLOG=no
4731BUILD_AUTOCA=no
4732BUILD_CONSTRAINT=no
4733BUILD_DDS=no
4734BUILD_DENYOP=no
4735BUILD_DEREF=no
4736BUILD_DYNGROUP=no
4737BUILD_DYNLIST=no
4738BUILD_LASTMOD=no
4739BUILD_HOMEDIR=no
4740BUILD_MEMBEROF=no
4741BUILD_OTP=no
4742BUILD_PPOLICY=no
4743BUILD_PROXYCACHE=no
4744BUILD_REFINT=no
4745BUILD_REMOTEAUTH=no
4746BUILD_RETCODE=no
4747BUILD_RWM=no
4748BUILD_SEQMOD=no
4749BUILD_SSSVLV=no
4750BUILD_SYNCPROV=no
4751BUILD_TRANSLUCENT=no
4752BUILD_UNIQUE=no
4753BUILD_VALSORT=no
4754
4755BUILD_PW_ARGON2=no
4756
4757SLAPD_STATIC_OVERLAYS=
4758SLAPD_DYNAMIC_OVERLAYS=
4759
4760SLAPD_DYNAMIC_PWMODS=
4761
4762SLAPD_MODULES_LDFLAGS=
4763SLAPD_MODULES_CPPFLAGS=
4764
4765SLAPD_STATIC_BACKENDS="back-ldif back-monitor"
4766SLAPD_DYNAMIC_BACKENDS=
4767
4768SLAPD_PERL_LDFLAGS=
4769MOD_PERL_LDFLAGS=
4770PERL_CPPFLAGS=
4771
4772SLAPD_SQL_LDFLAGS=
4773SLAPD_SQL_LIBS=
4774SLAPD_SQL_INCLUDES=
4775
4776SASL_LIBS=
4777TLS_LIBS=
4778WITH_TLS_TYPE=no
4779MODULES_LIBS=
4780SLAPI_LIBS=
4781LIBSLAPI=
4782AUTH_LIBS=
4783SYSTEMD_LIBS=
4784
4785SLAPD_SLP_LIBS=
4786SLAPD_GMP_LIBS=
4787
4788
4789
4790$as_echo "#define HAVE_MKVERSION 1" >>confdefs.h
4791
4792
4793
4794
4795ol_aix_threads=no
4796case "$target" in
4797*-*-aix*) 	if test -z "$CC" ; then
4798		case "$ol_with_threads" in
4799		auto | yes |  posix) ol_aix_threads=yes ;;
4800		esac
4801	fi
4802;;
4803esac
4804
4805if test $ol_aix_threads = yes ; then
4806	if test -z "${CC}" ; then
4807		for ac_prog in cc_r xlc_r cc
4808do
4809  # Extract the first word of "$ac_prog", so it can be a program name with args.
4810set dummy $ac_prog; ac_word=$2
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812$as_echo_n "checking for $ac_word... " >&6; }
4813if ${ac_cv_prog_CC+:} false; then :
4814  $as_echo_n "(cached) " >&6
4815else
4816  if test -n "$CC"; then
4817  ac_cv_prog_CC="$CC" # Let the user override the test.
4818else
4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820for as_dir in $PATH
4821do
4822  IFS=$as_save_IFS
4823  test -z "$as_dir" && as_dir=.
4824    for ac_exec_ext in '' $ac_executable_extensions; do
4825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826    ac_cv_prog_CC="$ac_prog"
4827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828    break 2
4829  fi
4830done
4831  done
4832IFS=$as_save_IFS
4833
4834fi
4835fi
4836CC=$ac_cv_prog_CC
4837if test -n "$CC"; then
4838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4839$as_echo "$CC" >&6; }
4840else
4841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842$as_echo "no" >&6; }
4843fi
4844
4845
4846  test -n "$CC" && break
4847done
4848
4849
4850		if test "$CC" = cc ; then
4851						if test $ol_with_threads != auto ; then
4852				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
4853			else
4854				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
4855$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4856			fi
4857			ol_with_threads=no
4858  		fi
4859	fi
4860
4861	case ${CC} in cc_r | xlc_r)
4862		ol_with_threads=posix
4863		ol_cv_pthread_create=yes
4864		;;
4865	esac
4866fi
4867
4868if test -z "${CC}"; then
4869	for ac_prog in cc gcc
4870do
4871  # Extract the first word of "$ac_prog", so it can be a program name with args.
4872set dummy $ac_prog; ac_word=$2
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874$as_echo_n "checking for $ac_word... " >&6; }
4875if ${ac_cv_prog_CC+:} false; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878  if test -n "$CC"; then
4879  ac_cv_prog_CC="$CC" # Let the user override the test.
4880else
4881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882for as_dir in $PATH
4883do
4884  IFS=$as_save_IFS
4885  test -z "$as_dir" && as_dir=.
4886    for ac_exec_ext in '' $ac_executable_extensions; do
4887  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4888    ac_cv_prog_CC="$ac_prog"
4889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890    break 2
4891  fi
4892done
4893  done
4894IFS=$as_save_IFS
4895
4896fi
4897fi
4898CC=$ac_cv_prog_CC
4899if test -n "$CC"; then
4900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4901$as_echo "$CC" >&6; }
4902else
4903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904$as_echo "no" >&6; }
4905fi
4906
4907
4908  test -n "$CC" && break
4909done
4910test -n "$CC" || CC="missing"
4911
4912
4913	if test "${CC}" = "missing" ; then
4914		as_fn_error $? "Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." "$LINENO" 5
4915	fi
4916fi
4917
4918if test -z "${AR}"; then
4919	for ac_prog in ar gar
4920do
4921  # Extract the first word of "$ac_prog", so it can be a program name with args.
4922set dummy $ac_prog; ac_word=$2
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924$as_echo_n "checking for $ac_word... " >&6; }
4925if ${ac_cv_prog_AR+:} false; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928  if test -n "$AR"; then
4929  ac_cv_prog_AR="$AR" # Let the user override the test.
4930else
4931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932for as_dir in $PATH
4933do
4934  IFS=$as_save_IFS
4935  test -z "$as_dir" && as_dir=.
4936    for ac_exec_ext in '' $ac_executable_extensions; do
4937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938    ac_cv_prog_AR="$ac_prog"
4939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940    break 2
4941  fi
4942done
4943  done
4944IFS=$as_save_IFS
4945
4946fi
4947fi
4948AR=$ac_cv_prog_AR
4949if test -n "$AR"; then
4950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4951$as_echo "$AR" >&6; }
4952else
4953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954$as_echo "no" >&6; }
4955fi
4956
4957
4958  test -n "$AR" && break
4959done
4960test -n "$AR" || AR="missing"
4961
4962
4963	if test "${AR}" = "missing" ; then
4964		as_fn_error $? "Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." "$LINENO" 5
4965	fi
4966fi
4967
4968if test -z "${STRIP}"; then
4969	for ac_prog in strip
4970do
4971  # Extract the first word of "$ac_prog", so it can be a program name with args.
4972set dummy $ac_prog; ac_word=$2
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974$as_echo_n "checking for $ac_word... " >&6; }
4975if ${ac_cv_prog_STRIP+:} false; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  if test -n "$STRIP"; then
4979  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4980else
4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982for as_dir in $PATH
4983do
4984  IFS=$as_save_IFS
4985  test -z "$as_dir" && as_dir=.
4986    for ac_exec_ext in '' $ac_executable_extensions; do
4987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988    ac_cv_prog_STRIP="$ac_prog"
4989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990    break 2
4991  fi
4992done
4993  done
4994IFS=$as_save_IFS
4995
4996fi
4997fi
4998STRIP=$ac_cv_prog_STRIP
4999if test -n "$STRIP"; then
5000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5001$as_echo "$STRIP" >&6; }
5002else
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004$as_echo "no" >&6; }
5005fi
5006
5007
5008  test -n "$STRIP" && break
5009done
5010test -n "$STRIP" || STRIP="missing"
5011
5012
5013	if test "${STRIP}" = "missing" ; then
5014		as_fn_error $? "Unable to locate strip(1) or suitable replacement.  Check PATH or set STRIP." "$LINENO" 5
5015	fi
5016fi
5017
5018
5019enable_win32_dll=yes
5020
5021case $host in
5022*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5023  if test -n "$ac_tool_prefix"; then
5024  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5025set dummy ${ac_tool_prefix}as; ac_word=$2
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027$as_echo_n "checking for $ac_word... " >&6; }
5028if ${ac_cv_prog_AS+:} false; then :
5029  $as_echo_n "(cached) " >&6
5030else
5031  if test -n "$AS"; then
5032  ac_cv_prog_AS="$AS" # Let the user override the test.
5033else
5034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037  IFS=$as_save_IFS
5038  test -z "$as_dir" && as_dir=.
5039    for ac_exec_ext in '' $ac_executable_extensions; do
5040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041    ac_cv_prog_AS="${ac_tool_prefix}as"
5042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043    break 2
5044  fi
5045done
5046  done
5047IFS=$as_save_IFS
5048
5049fi
5050fi
5051AS=$ac_cv_prog_AS
5052if test -n "$AS"; then
5053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5054$as_echo "$AS" >&6; }
5055else
5056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057$as_echo "no" >&6; }
5058fi
5059
5060
5061fi
5062if test -z "$ac_cv_prog_AS"; then
5063  ac_ct_AS=$AS
5064  # Extract the first word of "as", so it can be a program name with args.
5065set dummy as; ac_word=$2
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067$as_echo_n "checking for $ac_word... " >&6; }
5068if ${ac_cv_prog_ac_ct_AS+:} false; then :
5069  $as_echo_n "(cached) " >&6
5070else
5071  if test -n "$ac_ct_AS"; then
5072  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077  IFS=$as_save_IFS
5078  test -z "$as_dir" && as_dir=.
5079    for ac_exec_ext in '' $ac_executable_extensions; do
5080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081    ac_cv_prog_ac_ct_AS="as"
5082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083    break 2
5084  fi
5085done
5086  done
5087IFS=$as_save_IFS
5088
5089fi
5090fi
5091ac_ct_AS=$ac_cv_prog_ac_ct_AS
5092if test -n "$ac_ct_AS"; then
5093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5094$as_echo "$ac_ct_AS" >&6; }
5095else
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097$as_echo "no" >&6; }
5098fi
5099
5100  if test "x$ac_ct_AS" = x; then
5101    AS="false"
5102  else
5103    case $cross_compiling:$ac_tool_warned in
5104yes:)
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5107ac_tool_warned=yes ;;
5108esac
5109    AS=$ac_ct_AS
5110  fi
5111else
5112  AS="$ac_cv_prog_AS"
5113fi
5114
5115  if test -n "$ac_tool_prefix"; then
5116  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5117set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119$as_echo_n "checking for $ac_word... " >&6; }
5120if ${ac_cv_prog_DLLTOOL+:} false; then :
5121  $as_echo_n "(cached) " >&6
5122else
5123  if test -n "$DLLTOOL"; then
5124  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5125else
5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129  IFS=$as_save_IFS
5130  test -z "$as_dir" && as_dir=.
5131    for ac_exec_ext in '' $ac_executable_extensions; do
5132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135    break 2
5136  fi
5137done
5138  done
5139IFS=$as_save_IFS
5140
5141fi
5142fi
5143DLLTOOL=$ac_cv_prog_DLLTOOL
5144if test -n "$DLLTOOL"; then
5145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5146$as_echo "$DLLTOOL" >&6; }
5147else
5148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149$as_echo "no" >&6; }
5150fi
5151
5152
5153fi
5154if test -z "$ac_cv_prog_DLLTOOL"; then
5155  ac_ct_DLLTOOL=$DLLTOOL
5156  # Extract the first word of "dlltool", so it can be a program name with args.
5157set dummy dlltool; ac_word=$2
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159$as_echo_n "checking for $ac_word... " >&6; }
5160if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5161  $as_echo_n "(cached) " >&6
5162else
5163  if test -n "$ac_ct_DLLTOOL"; then
5164  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5165else
5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169  IFS=$as_save_IFS
5170  test -z "$as_dir" && as_dir=.
5171    for ac_exec_ext in '' $ac_executable_extensions; do
5172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175    break 2
5176  fi
5177done
5178  done
5179IFS=$as_save_IFS
5180
5181fi
5182fi
5183ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5184if test -n "$ac_ct_DLLTOOL"; then
5185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5186$as_echo "$ac_ct_DLLTOOL" >&6; }
5187else
5188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189$as_echo "no" >&6; }
5190fi
5191
5192  if test "x$ac_ct_DLLTOOL" = x; then
5193    DLLTOOL="false"
5194  else
5195    case $cross_compiling:$ac_tool_warned in
5196yes:)
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5199ac_tool_warned=yes ;;
5200esac
5201    DLLTOOL=$ac_ct_DLLTOOL
5202  fi
5203else
5204  DLLTOOL="$ac_cv_prog_DLLTOOL"
5205fi
5206
5207  if test -n "$ac_tool_prefix"; then
5208  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5209set dummy ${ac_tool_prefix}objdump; ac_word=$2
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211$as_echo_n "checking for $ac_word... " >&6; }
5212if ${ac_cv_prog_OBJDUMP+:} false; then :
5213  $as_echo_n "(cached) " >&6
5214else
5215  if test -n "$OBJDUMP"; then
5216  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221  IFS=$as_save_IFS
5222  test -z "$as_dir" && as_dir=.
5223    for ac_exec_ext in '' $ac_executable_extensions; do
5224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227    break 2
5228  fi
5229done
5230  done
5231IFS=$as_save_IFS
5232
5233fi
5234fi
5235OBJDUMP=$ac_cv_prog_OBJDUMP
5236if test -n "$OBJDUMP"; then
5237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5238$as_echo "$OBJDUMP" >&6; }
5239else
5240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241$as_echo "no" >&6; }
5242fi
5243
5244
5245fi
5246if test -z "$ac_cv_prog_OBJDUMP"; then
5247  ac_ct_OBJDUMP=$OBJDUMP
5248  # Extract the first word of "objdump", so it can be a program name with args.
5249set dummy objdump; ac_word=$2
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251$as_echo_n "checking for $ac_word... " >&6; }
5252if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  if test -n "$ac_ct_OBJDUMP"; then
5256  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5257else
5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261  IFS=$as_save_IFS
5262  test -z "$as_dir" && as_dir=.
5263    for ac_exec_ext in '' $ac_executable_extensions; do
5264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267    break 2
5268  fi
5269done
5270  done
5271IFS=$as_save_IFS
5272
5273fi
5274fi
5275ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5276if test -n "$ac_ct_OBJDUMP"; then
5277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5278$as_echo "$ac_ct_OBJDUMP" >&6; }
5279else
5280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281$as_echo "no" >&6; }
5282fi
5283
5284  if test "x$ac_ct_OBJDUMP" = x; then
5285    OBJDUMP="false"
5286  else
5287    case $cross_compiling:$ac_tool_warned in
5288yes:)
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291ac_tool_warned=yes ;;
5292esac
5293    OBJDUMP=$ac_ct_OBJDUMP
5294  fi
5295else
5296  OBJDUMP="$ac_cv_prog_OBJDUMP"
5297fi
5298
5299  ;;
5300esac
5301
5302test -z "$AS" && AS=as
5303
5304
5305
5306
5307
5308test -z "$DLLTOOL" && DLLTOOL=dlltool
5309
5310
5311
5312
5313
5314test -z "$OBJDUMP" && OBJDUMP=objdump
5315
5316
5317
5318
5319
5320
5321
5322enable_dlopen=yes
5323
5324
5325
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5327$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5328set x ${MAKE-make}
5329ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5330if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5331  $as_echo_n "(cached) " >&6
5332else
5333  cat >conftest.make <<\_ACEOF
5334SHELL = /bin/sh
5335all:
5336	@echo '@@@%%%=$(MAKE)=@@@%%%'
5337_ACEOF
5338# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5339case `${MAKE-make} -f conftest.make 2>/dev/null` in
5340  *@@@%%%=?*=@@@%%%*)
5341    eval ac_cv_prog_make_${ac_make}_set=yes;;
5342  *)
5343    eval ac_cv_prog_make_${ac_make}_set=no;;
5344esac
5345rm -f conftest.make
5346fi
5347if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5349$as_echo "yes" >&6; }
5350  SET_MAKE=
5351else
5352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353$as_echo "no" >&6; }
5354  SET_MAKE="MAKE=${MAKE-make}"
5355fi
5356
5357case `pwd` in
5358  *\ * | *\	*)
5359    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5360$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5361esac
5362
5363
5364
5365macro_version='2.4.6'
5366macro_revision='2.4.6'
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380ltmain=$ac_aux_dir/ltmain.sh
5381
5382# Backslashify metacharacters that are still active within
5383# double-quoted strings.
5384sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5385
5386# Same as above, but do not quote variable references.
5387double_quote_subst='s/\(["`\\]\)/\\\1/g'
5388
5389# Sed substitution to delay expansion of an escaped shell variable in a
5390# double_quote_subst'ed string.
5391delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5392
5393# Sed substitution to delay expansion of an escaped single quote.
5394delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5395
5396# Sed substitution to avoid accidental globbing in evaled expressions
5397no_glob_subst='s/\*/\\\*/g'
5398
5399ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5400ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5401ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5402
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5404$as_echo_n "checking how to print strings... " >&6; }
5405# Test print first, because it will be a builtin if present.
5406if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5407   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5408  ECHO='print -r --'
5409elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5410  ECHO='printf %s\n'
5411else
5412  # Use this function as a fallback that always works.
5413  func_fallback_echo ()
5414  {
5415    eval 'cat <<_LTECHO_EOF
5416$1
5417_LTECHO_EOF'
5418  }
5419  ECHO='func_fallback_echo'
5420fi
5421
5422# func_echo_all arg...
5423# Invoke $ECHO with all args, space-separated.
5424func_echo_all ()
5425{
5426    $ECHO ""
5427}
5428
5429case $ECHO in
5430  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5431$as_echo "printf" >&6; } ;;
5432  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5433$as_echo "print -r" >&6; } ;;
5434  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5435$as_echo "cat" >&6; } ;;
5436esac
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451ac_ext=c
5452ac_cpp='$CPP $CPPFLAGS'
5453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455ac_compiler_gnu=$ac_cv_c_compiler_gnu
5456if test -n "$ac_tool_prefix"; then
5457  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5458set dummy ${ac_tool_prefix}gcc; ac_word=$2
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460$as_echo_n "checking for $ac_word... " >&6; }
5461if ${ac_cv_prog_CC+:} false; then :
5462  $as_echo_n "(cached) " >&6
5463else
5464  if test -n "$CC"; then
5465  ac_cv_prog_CC="$CC" # Let the user override the test.
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470  IFS=$as_save_IFS
5471  test -z "$as_dir" && as_dir=.
5472    for ac_exec_ext in '' $ac_executable_extensions; do
5473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476    break 2
5477  fi
5478done
5479  done
5480IFS=$as_save_IFS
5481
5482fi
5483fi
5484CC=$ac_cv_prog_CC
5485if test -n "$CC"; then
5486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5487$as_echo "$CC" >&6; }
5488else
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490$as_echo "no" >&6; }
5491fi
5492
5493
5494fi
5495if test -z "$ac_cv_prog_CC"; then
5496  ac_ct_CC=$CC
5497  # Extract the first word of "gcc", so it can be a program name with args.
5498set dummy gcc; ac_word=$2
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500$as_echo_n "checking for $ac_word... " >&6; }
5501if ${ac_cv_prog_ac_ct_CC+:} false; then :
5502  $as_echo_n "(cached) " >&6
5503else
5504  if test -n "$ac_ct_CC"; then
5505  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510  IFS=$as_save_IFS
5511  test -z "$as_dir" && as_dir=.
5512    for ac_exec_ext in '' $ac_executable_extensions; do
5513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514    ac_cv_prog_ac_ct_CC="gcc"
5515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516    break 2
5517  fi
5518done
5519  done
5520IFS=$as_save_IFS
5521
5522fi
5523fi
5524ac_ct_CC=$ac_cv_prog_ac_ct_CC
5525if test -n "$ac_ct_CC"; then
5526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5527$as_echo "$ac_ct_CC" >&6; }
5528else
5529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530$as_echo "no" >&6; }
5531fi
5532
5533  if test "x$ac_ct_CC" = x; then
5534    CC=""
5535  else
5536    case $cross_compiling:$ac_tool_warned in
5537yes:)
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5540ac_tool_warned=yes ;;
5541esac
5542    CC=$ac_ct_CC
5543  fi
5544else
5545  CC="$ac_cv_prog_CC"
5546fi
5547
5548if test -z "$CC"; then
5549          if test -n "$ac_tool_prefix"; then
5550    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5551set dummy ${ac_tool_prefix}cc; ac_word=$2
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553$as_echo_n "checking for $ac_word... " >&6; }
5554if ${ac_cv_prog_CC+:} false; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557  if test -n "$CC"; then
5558  ac_cv_prog_CC="$CC" # Let the user override the test.
5559else
5560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH
5562do
5563  IFS=$as_save_IFS
5564  test -z "$as_dir" && as_dir=.
5565    for ac_exec_ext in '' $ac_executable_extensions; do
5566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567    ac_cv_prog_CC="${ac_tool_prefix}cc"
5568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569    break 2
5570  fi
5571done
5572  done
5573IFS=$as_save_IFS
5574
5575fi
5576fi
5577CC=$ac_cv_prog_CC
5578if test -n "$CC"; then
5579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5580$as_echo "$CC" >&6; }
5581else
5582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583$as_echo "no" >&6; }
5584fi
5585
5586
5587  fi
5588fi
5589if test -z "$CC"; then
5590  # Extract the first word of "cc", so it can be a program name with args.
5591set dummy cc; ac_word=$2
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593$as_echo_n "checking for $ac_word... " >&6; }
5594if ${ac_cv_prog_CC+:} false; then :
5595  $as_echo_n "(cached) " >&6
5596else
5597  if test -n "$CC"; then
5598  ac_cv_prog_CC="$CC" # Let the user override the test.
5599else
5600  ac_prog_rejected=no
5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604  IFS=$as_save_IFS
5605  test -z "$as_dir" && as_dir=.
5606    for ac_exec_ext in '' $ac_executable_extensions; do
5607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5609       ac_prog_rejected=yes
5610       continue
5611     fi
5612    ac_cv_prog_CC="cc"
5613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614    break 2
5615  fi
5616done
5617  done
5618IFS=$as_save_IFS
5619
5620if test $ac_prog_rejected = yes; then
5621  # We found a bogon in the path, so make sure we never use it.
5622  set dummy $ac_cv_prog_CC
5623  shift
5624  if test $# != 0; then
5625    # We chose a different compiler from the bogus one.
5626    # However, it has the same basename, so the bogon will be chosen
5627    # first if we set CC to just the basename; use the full file name.
5628    shift
5629    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5630  fi
5631fi
5632fi
5633fi
5634CC=$ac_cv_prog_CC
5635if test -n "$CC"; then
5636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5637$as_echo "$CC" >&6; }
5638else
5639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }
5641fi
5642
5643
5644fi
5645if test -z "$CC"; then
5646  if test -n "$ac_tool_prefix"; then
5647  for ac_prog in cl.exe
5648  do
5649    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652$as_echo_n "checking for $ac_word... " >&6; }
5653if ${ac_cv_prog_CC+:} false; then :
5654  $as_echo_n "(cached) " >&6
5655else
5656  if test -n "$CC"; then
5657  ac_cv_prog_CC="$CC" # Let the user override the test.
5658else
5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660for as_dir in $PATH
5661do
5662  IFS=$as_save_IFS
5663  test -z "$as_dir" && as_dir=.
5664    for ac_exec_ext in '' $ac_executable_extensions; do
5665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5666    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668    break 2
5669  fi
5670done
5671  done
5672IFS=$as_save_IFS
5673
5674fi
5675fi
5676CC=$ac_cv_prog_CC
5677if test -n "$CC"; then
5678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5679$as_echo "$CC" >&6; }
5680else
5681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682$as_echo "no" >&6; }
5683fi
5684
5685
5686    test -n "$CC" && break
5687  done
5688fi
5689if test -z "$CC"; then
5690  ac_ct_CC=$CC
5691  for ac_prog in cl.exe
5692do
5693  # Extract the first word of "$ac_prog", so it can be a program name with args.
5694set dummy $ac_prog; ac_word=$2
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696$as_echo_n "checking for $ac_word... " >&6; }
5697if ${ac_cv_prog_ac_ct_CC+:} false; then :
5698  $as_echo_n "(cached) " >&6
5699else
5700  if test -n "$ac_ct_CC"; then
5701  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5702else
5703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704for as_dir in $PATH
5705do
5706  IFS=$as_save_IFS
5707  test -z "$as_dir" && as_dir=.
5708    for ac_exec_ext in '' $ac_executable_extensions; do
5709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710    ac_cv_prog_ac_ct_CC="$ac_prog"
5711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712    break 2
5713  fi
5714done
5715  done
5716IFS=$as_save_IFS
5717
5718fi
5719fi
5720ac_ct_CC=$ac_cv_prog_ac_ct_CC
5721if test -n "$ac_ct_CC"; then
5722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5723$as_echo "$ac_ct_CC" >&6; }
5724else
5725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726$as_echo "no" >&6; }
5727fi
5728
5729
5730  test -n "$ac_ct_CC" && break
5731done
5732
5733  if test "x$ac_ct_CC" = x; then
5734    CC=""
5735  else
5736    case $cross_compiling:$ac_tool_warned in
5737yes:)
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5740ac_tool_warned=yes ;;
5741esac
5742    CC=$ac_ct_CC
5743  fi
5744fi
5745
5746fi
5747
5748
5749test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5751as_fn_error $? "no acceptable C compiler found in \$PATH
5752See \`config.log' for more details" "$LINENO" 5; }
5753
5754# Provide some information about the compiler.
5755$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5756set X $ac_compile
5757ac_compiler=$2
5758for ac_option in --version -v -V -qversion; do
5759  { { ac_try="$ac_compiler $ac_option >&5"
5760case "(($ac_try" in
5761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762  *) ac_try_echo=$ac_try;;
5763esac
5764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5765$as_echo "$ac_try_echo"; } >&5
5766  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5767  ac_status=$?
5768  if test -s conftest.err; then
5769    sed '10a\
5770... rest of stderr output deleted ...
5771         10q' conftest.err >conftest.er1
5772    cat conftest.er1 >&5
5773  fi
5774  rm -f conftest.er1 conftest.err
5775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5776  test $ac_status = 0; }
5777done
5778
5779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h.  */
5781
5782int
5783main ()
5784{
5785
5786  ;
5787  return 0;
5788}
5789_ACEOF
5790ac_clean_files_save=$ac_clean_files
5791ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5792# Try to create an executable without -o first, disregard a.out.
5793# It will help us diagnose broken compilers, and finding out an intuition
5794# of exeext.
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5796$as_echo_n "checking whether the C compiler works... " >&6; }
5797ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5798
5799# The possible output files:
5800ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5801
5802ac_rmfiles=
5803for ac_file in $ac_files
5804do
5805  case $ac_file in
5806    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5807    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5808  esac
5809done
5810rm -f $ac_rmfiles
5811
5812if { { ac_try="$ac_link_default"
5813case "(($ac_try" in
5814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815  *) ac_try_echo=$ac_try;;
5816esac
5817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5818$as_echo "$ac_try_echo"; } >&5
5819  (eval "$ac_link_default") 2>&5
5820  ac_status=$?
5821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5822  test $ac_status = 0; }; then :
5823  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5824# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5825# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5826# so that the user can short-circuit this test for compilers unknown to
5827# Autoconf.
5828for ac_file in $ac_files ''
5829do
5830  test -f "$ac_file" || continue
5831  case $ac_file in
5832    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5833	;;
5834    [ab].out )
5835	# We found the default executable, but exeext='' is most
5836	# certainly right.
5837	break;;
5838    *.* )
5839	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5840	then :; else
5841	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5842	fi
5843	# We set ac_cv_exeext here because the later test for it is not
5844	# safe: cross compilers may not add the suffix if given an `-o'
5845	# argument, so we may need to know it at that point already.
5846	# Even if this section looks crufty: it has the advantage of
5847	# actually working.
5848	break;;
5849    * )
5850	break;;
5851  esac
5852done
5853test "$ac_cv_exeext" = no && ac_cv_exeext=
5854
5855else
5856  ac_file=''
5857fi
5858if test -z "$ac_file"; then :
5859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860$as_echo "no" >&6; }
5861$as_echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
5863
5864{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5866as_fn_error 77 "C compiler cannot create executables
5867See \`config.log' for more details" "$LINENO" 5; }
5868else
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5870$as_echo "yes" >&6; }
5871fi
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5873$as_echo_n "checking for C compiler default output file name... " >&6; }
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5875$as_echo "$ac_file" >&6; }
5876ac_exeext=$ac_cv_exeext
5877
5878rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5879ac_clean_files=$ac_clean_files_save
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5881$as_echo_n "checking for suffix of executables... " >&6; }
5882if { { ac_try="$ac_link"
5883case "(($ac_try" in
5884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885  *) ac_try_echo=$ac_try;;
5886esac
5887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5888$as_echo "$ac_try_echo"; } >&5
5889  (eval "$ac_link") 2>&5
5890  ac_status=$?
5891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5892  test $ac_status = 0; }; then :
5893  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5894# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5895# work properly (i.e., refer to `conftest.exe'), while it won't with
5896# `rm'.
5897for ac_file in conftest.exe conftest conftest.*; do
5898  test -f "$ac_file" || continue
5899  case $ac_file in
5900    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5901    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5902	  break;;
5903    * ) break;;
5904  esac
5905done
5906else
5907  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5909as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5910See \`config.log' for more details" "$LINENO" 5; }
5911fi
5912rm -f conftest conftest$ac_cv_exeext
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5914$as_echo "$ac_cv_exeext" >&6; }
5915
5916rm -f conftest.$ac_ext
5917EXEEXT=$ac_cv_exeext
5918ac_exeext=$EXEEXT
5919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921#include <stdio.h>
5922int
5923main ()
5924{
5925FILE *f = fopen ("conftest.out", "w");
5926 return ferror (f) || fclose (f) != 0;
5927
5928  ;
5929  return 0;
5930}
5931_ACEOF
5932ac_clean_files="$ac_clean_files conftest.out"
5933# Check that the compiler produces executables we can run.  If not, either
5934# the compiler is broken, or we cross compile.
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5936$as_echo_n "checking whether we are cross compiling... " >&6; }
5937if test "$cross_compiling" != yes; then
5938  { { ac_try="$ac_link"
5939case "(($ac_try" in
5940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941  *) ac_try_echo=$ac_try;;
5942esac
5943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5944$as_echo "$ac_try_echo"; } >&5
5945  (eval "$ac_link") 2>&5
5946  ac_status=$?
5947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5948  test $ac_status = 0; }
5949  if { ac_try='./conftest$ac_cv_exeext'
5950  { { case "(($ac_try" in
5951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952  *) ac_try_echo=$ac_try;;
5953esac
5954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5955$as_echo "$ac_try_echo"; } >&5
5956  (eval "$ac_try") 2>&5
5957  ac_status=$?
5958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5959  test $ac_status = 0; }; }; then
5960    cross_compiling=no
5961  else
5962    if test "$cross_compiling" = maybe; then
5963	cross_compiling=yes
5964    else
5965	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967as_fn_error $? "cannot run C compiled programs.
5968If you meant to cross compile, use \`--host'.
5969See \`config.log' for more details" "$LINENO" 5; }
5970    fi
5971  fi
5972fi
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5974$as_echo "$cross_compiling" >&6; }
5975
5976rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5977ac_clean_files=$ac_clean_files_save
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5979$as_echo_n "checking for suffix of object files... " >&6; }
5980if ${ac_cv_objext+:} false; then :
5981  $as_echo_n "(cached) " >&6
5982else
5983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984/* end confdefs.h.  */
5985
5986int
5987main ()
5988{
5989
5990  ;
5991  return 0;
5992}
5993_ACEOF
5994rm -f conftest.o conftest.obj
5995if { { ac_try="$ac_compile"
5996case "(($ac_try" in
5997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998  *) ac_try_echo=$ac_try;;
5999esac
6000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6001$as_echo "$ac_try_echo"; } >&5
6002  (eval "$ac_compile") 2>&5
6003  ac_status=$?
6004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005  test $ac_status = 0; }; then :
6006  for ac_file in conftest.o conftest.obj conftest.*; do
6007  test -f "$ac_file" || continue;
6008  case $ac_file in
6009    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6010    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6011       break;;
6012  esac
6013done
6014else
6015  $as_echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6020as_fn_error $? "cannot compute suffix of object files: cannot compile
6021See \`config.log' for more details" "$LINENO" 5; }
6022fi
6023rm -f conftest.$ac_cv_objext conftest.$ac_ext
6024fi
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6026$as_echo "$ac_cv_objext" >&6; }
6027OBJEXT=$ac_cv_objext
6028ac_objext=$OBJEXT
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6030$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6031if ${ac_cv_c_compiler_gnu+:} false; then :
6032  $as_echo_n "(cached) " >&6
6033else
6034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035/* end confdefs.h.  */
6036
6037int
6038main ()
6039{
6040#ifndef __GNUC__
6041       choke me
6042#endif
6043
6044  ;
6045  return 0;
6046}
6047_ACEOF
6048if ac_fn_c_try_compile "$LINENO"; then :
6049  ac_compiler_gnu=yes
6050else
6051  ac_compiler_gnu=no
6052fi
6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054ac_cv_c_compiler_gnu=$ac_compiler_gnu
6055
6056fi
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6058$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6059if test $ac_compiler_gnu = yes; then
6060  GCC=yes
6061else
6062  GCC=
6063fi
6064ac_test_CFLAGS=${CFLAGS+set}
6065ac_save_CFLAGS=$CFLAGS
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6067$as_echo_n "checking whether $CC accepts -g... " >&6; }
6068if ${ac_cv_prog_cc_g+:} false; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  ac_save_c_werror_flag=$ac_c_werror_flag
6072   ac_c_werror_flag=yes
6073   ac_cv_prog_cc_g=no
6074   CFLAGS="-g"
6075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h.  */
6077
6078int
6079main ()
6080{
6081
6082  ;
6083  return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_compile "$LINENO"; then :
6087  ac_cv_prog_cc_g=yes
6088else
6089  CFLAGS=""
6090      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091/* end confdefs.h.  */
6092
6093int
6094main ()
6095{
6096
6097  ;
6098  return 0;
6099}
6100_ACEOF
6101if ac_fn_c_try_compile "$LINENO"; then :
6102
6103else
6104  ac_c_werror_flag=$ac_save_c_werror_flag
6105	 CFLAGS="-g"
6106	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107/* end confdefs.h.  */
6108
6109int
6110main ()
6111{
6112
6113  ;
6114  return 0;
6115}
6116_ACEOF
6117if ac_fn_c_try_compile "$LINENO"; then :
6118  ac_cv_prog_cc_g=yes
6119fi
6120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121fi
6122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123fi
6124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125   ac_c_werror_flag=$ac_save_c_werror_flag
6126fi
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6128$as_echo "$ac_cv_prog_cc_g" >&6; }
6129if test "$ac_test_CFLAGS" = set; then
6130  CFLAGS=$ac_save_CFLAGS
6131elif test $ac_cv_prog_cc_g = yes; then
6132  if test "$GCC" = yes; then
6133    CFLAGS="-g -O2"
6134  else
6135    CFLAGS="-g"
6136  fi
6137else
6138  if test "$GCC" = yes; then
6139    CFLAGS="-O2"
6140  else
6141    CFLAGS=
6142  fi
6143fi
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6145$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6146if ${ac_cv_prog_cc_c89+:} false; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149  ac_cv_prog_cc_c89=no
6150ac_save_CC=$CC
6151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h.  */
6153#include <stdarg.h>
6154#include <stdio.h>
6155struct stat;
6156/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6157struct buf { int x; };
6158FILE * (*rcsopen) (struct buf *, struct stat *, int);
6159static char *e (p, i)
6160     char **p;
6161     int i;
6162{
6163  return p[i];
6164}
6165static char *f (char * (*g) (char **, int), char **p, ...)
6166{
6167  char *s;
6168  va_list v;
6169  va_start (v,p);
6170  s = g (p, va_arg (v,int));
6171  va_end (v);
6172  return s;
6173}
6174
6175/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6176   function prototypes and stuff, but not '\xHH' hex character constants.
6177   These don't provoke an error unfortunately, instead are silently treated
6178   as 'x'.  The following induces an error, until -std is added to get
6179   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6180   array size at least.  It's necessary to write '\x00'==0 to get something
6181   that's true only with -std.  */
6182int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6183
6184/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6185   inside strings and character constants.  */
6186#define FOO(x) 'x'
6187int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6188
6189int test (int i, double x);
6190struct s1 {int (*f) (int a);};
6191struct s2 {int (*f) (double a);};
6192int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6193int argc;
6194char **argv;
6195int
6196main ()
6197{
6198return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6199  ;
6200  return 0;
6201}
6202_ACEOF
6203for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6204	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6205do
6206  CC="$ac_save_CC $ac_arg"
6207  if ac_fn_c_try_compile "$LINENO"; then :
6208  ac_cv_prog_cc_c89=$ac_arg
6209fi
6210rm -f core conftest.err conftest.$ac_objext
6211  test "x$ac_cv_prog_cc_c89" != "xno" && break
6212done
6213rm -f conftest.$ac_ext
6214CC=$ac_save_CC
6215
6216fi
6217# AC_CACHE_VAL
6218case "x$ac_cv_prog_cc_c89" in
6219  x)
6220    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6221$as_echo "none needed" >&6; } ;;
6222  xno)
6223    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6224$as_echo "unsupported" >&6; } ;;
6225  *)
6226    CC="$CC $ac_cv_prog_cc_c89"
6227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6228$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6229esac
6230if test "x$ac_cv_prog_cc_c89" != xno; then :
6231
6232fi
6233
6234ac_ext=c
6235ac_cpp='$CPP $CPPFLAGS'
6236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6241$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6242if ${ac_cv_path_SED+:} false; then :
6243  $as_echo_n "(cached) " >&6
6244else
6245            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6246     for ac_i in 1 2 3 4 5 6 7; do
6247       ac_script="$ac_script$as_nl$ac_script"
6248     done
6249     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6250     { ac_script=; unset ac_script;}
6251     if test -z "$SED"; then
6252  ac_path_SED_found=false
6253  # Loop through the user's path and test for each of PROGNAME-LIST
6254  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257  IFS=$as_save_IFS
6258  test -z "$as_dir" && as_dir=.
6259    for ac_prog in sed gsed; do
6260    for ac_exec_ext in '' $ac_executable_extensions; do
6261      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6262      as_fn_executable_p "$ac_path_SED" || continue
6263# Check for GNU ac_path_SED and select it if it is found.
6264  # Check for GNU $ac_path_SED
6265case `"$ac_path_SED" --version 2>&1` in
6266*GNU*)
6267  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6268*)
6269  ac_count=0
6270  $as_echo_n 0123456789 >"conftest.in"
6271  while :
6272  do
6273    cat "conftest.in" "conftest.in" >"conftest.tmp"
6274    mv "conftest.tmp" "conftest.in"
6275    cp "conftest.in" "conftest.nl"
6276    $as_echo '' >> "conftest.nl"
6277    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6278    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6279    as_fn_arith $ac_count + 1 && ac_count=$as_val
6280    if test $ac_count -gt ${ac_path_SED_max-0}; then
6281      # Best one so far, save it but keep looking for a better one
6282      ac_cv_path_SED="$ac_path_SED"
6283      ac_path_SED_max=$ac_count
6284    fi
6285    # 10*(2^10) chars as input seems more than enough
6286    test $ac_count -gt 10 && break
6287  done
6288  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6289esac
6290
6291      $ac_path_SED_found && break 3
6292    done
6293  done
6294  done
6295IFS=$as_save_IFS
6296  if test -z "$ac_cv_path_SED"; then
6297    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6298  fi
6299else
6300  ac_cv_path_SED=$SED
6301fi
6302
6303fi
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6305$as_echo "$ac_cv_path_SED" >&6; }
6306 SED="$ac_cv_path_SED"
6307  rm -f conftest.sed
6308
6309test -z "$SED" && SED=sed
6310Xsed="$SED -e 1s/^X//"
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6323$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6324if ${ac_cv_path_GREP+:} false; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  if test -z "$GREP"; then
6328  ac_path_GREP_found=false
6329  # Loop through the user's path and test for each of PROGNAME-LIST
6330  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6332do
6333  IFS=$as_save_IFS
6334  test -z "$as_dir" && as_dir=.
6335    for ac_prog in grep ggrep; do
6336    for ac_exec_ext in '' $ac_executable_extensions; do
6337      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6338      as_fn_executable_p "$ac_path_GREP" || continue
6339# Check for GNU ac_path_GREP and select it if it is found.
6340  # Check for GNU $ac_path_GREP
6341case `"$ac_path_GREP" --version 2>&1` in
6342*GNU*)
6343  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6344*)
6345  ac_count=0
6346  $as_echo_n 0123456789 >"conftest.in"
6347  while :
6348  do
6349    cat "conftest.in" "conftest.in" >"conftest.tmp"
6350    mv "conftest.tmp" "conftest.in"
6351    cp "conftest.in" "conftest.nl"
6352    $as_echo 'GREP' >> "conftest.nl"
6353    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6354    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6355    as_fn_arith $ac_count + 1 && ac_count=$as_val
6356    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6357      # Best one so far, save it but keep looking for a better one
6358      ac_cv_path_GREP="$ac_path_GREP"
6359      ac_path_GREP_max=$ac_count
6360    fi
6361    # 10*(2^10) chars as input seems more than enough
6362    test $ac_count -gt 10 && break
6363  done
6364  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6365esac
6366
6367      $ac_path_GREP_found && break 3
6368    done
6369  done
6370  done
6371IFS=$as_save_IFS
6372  if test -z "$ac_cv_path_GREP"; then
6373    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6374  fi
6375else
6376  ac_cv_path_GREP=$GREP
6377fi
6378
6379fi
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6381$as_echo "$ac_cv_path_GREP" >&6; }
6382 GREP="$ac_cv_path_GREP"
6383
6384
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6386$as_echo_n "checking for egrep... " >&6; }
6387if ${ac_cv_path_EGREP+:} false; then :
6388  $as_echo_n "(cached) " >&6
6389else
6390  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6391   then ac_cv_path_EGREP="$GREP -E"
6392   else
6393     if test -z "$EGREP"; then
6394  ac_path_EGREP_found=false
6395  # Loop through the user's path and test for each of PROGNAME-LIST
6396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6398do
6399  IFS=$as_save_IFS
6400  test -z "$as_dir" && as_dir=.
6401    for ac_prog in egrep; do
6402    for ac_exec_ext in '' $ac_executable_extensions; do
6403      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6404      as_fn_executable_p "$ac_path_EGREP" || continue
6405# Check for GNU ac_path_EGREP and select it if it is found.
6406  # Check for GNU $ac_path_EGREP
6407case `"$ac_path_EGREP" --version 2>&1` in
6408*GNU*)
6409  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6410*)
6411  ac_count=0
6412  $as_echo_n 0123456789 >"conftest.in"
6413  while :
6414  do
6415    cat "conftest.in" "conftest.in" >"conftest.tmp"
6416    mv "conftest.tmp" "conftest.in"
6417    cp "conftest.in" "conftest.nl"
6418    $as_echo 'EGREP' >> "conftest.nl"
6419    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6420    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6421    as_fn_arith $ac_count + 1 && ac_count=$as_val
6422    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6423      # Best one so far, save it but keep looking for a better one
6424      ac_cv_path_EGREP="$ac_path_EGREP"
6425      ac_path_EGREP_max=$ac_count
6426    fi
6427    # 10*(2^10) chars as input seems more than enough
6428    test $ac_count -gt 10 && break
6429  done
6430  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6431esac
6432
6433      $ac_path_EGREP_found && break 3
6434    done
6435  done
6436  done
6437IFS=$as_save_IFS
6438  if test -z "$ac_cv_path_EGREP"; then
6439    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6440  fi
6441else
6442  ac_cv_path_EGREP=$EGREP
6443fi
6444
6445   fi
6446fi
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6448$as_echo "$ac_cv_path_EGREP" >&6; }
6449 EGREP="$ac_cv_path_EGREP"
6450
6451
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6453$as_echo_n "checking for fgrep... " >&6; }
6454if ${ac_cv_path_FGREP+:} false; then :
6455  $as_echo_n "(cached) " >&6
6456else
6457  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6458   then ac_cv_path_FGREP="$GREP -F"
6459   else
6460     if test -z "$FGREP"; then
6461  ac_path_FGREP_found=false
6462  # Loop through the user's path and test for each of PROGNAME-LIST
6463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6465do
6466  IFS=$as_save_IFS
6467  test -z "$as_dir" && as_dir=.
6468    for ac_prog in fgrep; do
6469    for ac_exec_ext in '' $ac_executable_extensions; do
6470      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6471      as_fn_executable_p "$ac_path_FGREP" || continue
6472# Check for GNU ac_path_FGREP and select it if it is found.
6473  # Check for GNU $ac_path_FGREP
6474case `"$ac_path_FGREP" --version 2>&1` in
6475*GNU*)
6476  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6477*)
6478  ac_count=0
6479  $as_echo_n 0123456789 >"conftest.in"
6480  while :
6481  do
6482    cat "conftest.in" "conftest.in" >"conftest.tmp"
6483    mv "conftest.tmp" "conftest.in"
6484    cp "conftest.in" "conftest.nl"
6485    $as_echo 'FGREP' >> "conftest.nl"
6486    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6487    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6488    as_fn_arith $ac_count + 1 && ac_count=$as_val
6489    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6490      # Best one so far, save it but keep looking for a better one
6491      ac_cv_path_FGREP="$ac_path_FGREP"
6492      ac_path_FGREP_max=$ac_count
6493    fi
6494    # 10*(2^10) chars as input seems more than enough
6495    test $ac_count -gt 10 && break
6496  done
6497  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6498esac
6499
6500      $ac_path_FGREP_found && break 3
6501    done
6502  done
6503  done
6504IFS=$as_save_IFS
6505  if test -z "$ac_cv_path_FGREP"; then
6506    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6507  fi
6508else
6509  ac_cv_path_FGREP=$FGREP
6510fi
6511
6512   fi
6513fi
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6515$as_echo "$ac_cv_path_FGREP" >&6; }
6516 FGREP="$ac_cv_path_FGREP"
6517
6518
6519test -z "$GREP" && GREP=grep
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539# Check whether --with-gnu-ld was given.
6540if test "${with_gnu_ld+set}" = set; then :
6541  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6542else
6543  with_gnu_ld=no
6544fi
6545
6546ac_prog=ld
6547if test yes = "$GCC"; then
6548  # Check if gcc -print-prog-name=ld gives a path.
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6550$as_echo_n "checking for ld used by $CC... " >&6; }
6551  case $host in
6552  *-*-mingw*)
6553    # gcc leaves a trailing carriage return, which upsets mingw
6554    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6555  *)
6556    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6557  esac
6558  case $ac_prog in
6559    # Accept absolute paths.
6560    [\\/]* | ?:[\\/]*)
6561      re_direlt='/[^/][^/]*/\.\./'
6562      # Canonicalize the pathname of ld
6563      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6564      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6565	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6566      done
6567      test -z "$LD" && LD=$ac_prog
6568      ;;
6569  "")
6570    # If it fails, then pretend we aren't using GCC.
6571    ac_prog=ld
6572    ;;
6573  *)
6574    # If it is relative, then search for the first ld in PATH.
6575    with_gnu_ld=unknown
6576    ;;
6577  esac
6578elif test yes = "$with_gnu_ld"; then
6579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6580$as_echo_n "checking for GNU ld... " >&6; }
6581else
6582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6583$as_echo_n "checking for non-GNU ld... " >&6; }
6584fi
6585if ${lt_cv_path_LD+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  if test -z "$LD"; then
6589  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6590  for ac_dir in $PATH; do
6591    IFS=$lt_save_ifs
6592    test -z "$ac_dir" && ac_dir=.
6593    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6594      lt_cv_path_LD=$ac_dir/$ac_prog
6595      # Check to see if the program is GNU ld.  I'd rather use --version,
6596      # but apparently some variants of GNU ld only accept -v.
6597      # Break only if it was the GNU/non-GNU ld that we prefer.
6598      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6599      *GNU* | *'with BFD'*)
6600	test no != "$with_gnu_ld" && break
6601	;;
6602      *)
6603	test yes != "$with_gnu_ld" && break
6604	;;
6605      esac
6606    fi
6607  done
6608  IFS=$lt_save_ifs
6609else
6610  lt_cv_path_LD=$LD # Let the user override the test with a path.
6611fi
6612fi
6613
6614LD=$lt_cv_path_LD
6615if test -n "$LD"; then
6616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6617$as_echo "$LD" >&6; }
6618else
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620$as_echo "no" >&6; }
6621fi
6622test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6624$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6625if ${lt_cv_prog_gnu_ld+:} false; then :
6626  $as_echo_n "(cached) " >&6
6627else
6628  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6629case `$LD -v 2>&1 </dev/null` in
6630*GNU* | *'with BFD'*)
6631  lt_cv_prog_gnu_ld=yes
6632  ;;
6633*)
6634  lt_cv_prog_gnu_ld=no
6635  ;;
6636esac
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6639$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6640with_gnu_ld=$lt_cv_prog_gnu_ld
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6651$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6652if ${lt_cv_path_NM+:} false; then :
6653  $as_echo_n "(cached) " >&6
6654else
6655  if test -n "$NM"; then
6656  # Let the user override the test.
6657  lt_cv_path_NM=$NM
6658else
6659  lt_nm_to_check=${ac_tool_prefix}nm
6660  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6661    lt_nm_to_check="$lt_nm_to_check nm"
6662  fi
6663  for lt_tmp_nm in $lt_nm_to_check; do
6664    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6665    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6666      IFS=$lt_save_ifs
6667      test -z "$ac_dir" && ac_dir=.
6668      tmp_nm=$ac_dir/$lt_tmp_nm
6669      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6670	# Check to see if the nm accepts a BSD-compat flag.
6671	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6672	#   nm: unknown option "B" ignored
6673	# Tru64's nm complains that /dev/null is an invalid object file
6674	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6675	case $build_os in
6676	mingw*) lt_bad_file=conftest.nm/nofile ;;
6677	*) lt_bad_file=/dev/null ;;
6678	esac
6679	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6680	*$lt_bad_file* | *'Invalid file or object type'*)
6681	  lt_cv_path_NM="$tmp_nm -B"
6682	  break 2
6683	  ;;
6684	*)
6685	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6686	  */dev/null*)
6687	    lt_cv_path_NM="$tmp_nm -p"
6688	    break 2
6689	    ;;
6690	  *)
6691	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6692	    continue # so that we can try to find one that supports BSD flags
6693	    ;;
6694	  esac
6695	  ;;
6696	esac
6697      fi
6698    done
6699    IFS=$lt_save_ifs
6700  done
6701  : ${lt_cv_path_NM=no}
6702fi
6703fi
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6705$as_echo "$lt_cv_path_NM" >&6; }
6706if test no != "$lt_cv_path_NM"; then
6707  NM=$lt_cv_path_NM
6708else
6709  # Didn't find any BSD compatible name lister, look for dumpbin.
6710  if test -n "$DUMPBIN"; then :
6711    # Let the user override the test.
6712  else
6713    if test -n "$ac_tool_prefix"; then
6714  for ac_prog in dumpbin "link -dump"
6715  do
6716    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6717set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if ${ac_cv_prog_DUMPBIN+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  if test -n "$DUMPBIN"; then
6724  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  test -z "$as_dir" && as_dir=.
6731    for ac_exec_ext in '' $ac_executable_extensions; do
6732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735    break 2
6736  fi
6737done
6738  done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743DUMPBIN=$ac_cv_prog_DUMPBIN
6744if test -n "$DUMPBIN"; then
6745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6746$as_echo "$DUMPBIN" >&6; }
6747else
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
6750fi
6751
6752
6753    test -n "$DUMPBIN" && break
6754  done
6755fi
6756if test -z "$DUMPBIN"; then
6757  ac_ct_DUMPBIN=$DUMPBIN
6758  for ac_prog in dumpbin "link -dump"
6759do
6760  # Extract the first word of "$ac_prog", so it can be a program name with args.
6761set dummy $ac_prog; ac_word=$2
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763$as_echo_n "checking for $ac_word... " >&6; }
6764if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6765  $as_echo_n "(cached) " >&6
6766else
6767  if test -n "$ac_ct_DUMPBIN"; then
6768  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6769else
6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771for as_dir in $PATH
6772do
6773  IFS=$as_save_IFS
6774  test -z "$as_dir" && as_dir=.
6775    for ac_exec_ext in '' $ac_executable_extensions; do
6776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6777    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779    break 2
6780  fi
6781done
6782  done
6783IFS=$as_save_IFS
6784
6785fi
6786fi
6787ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6788if test -n "$ac_ct_DUMPBIN"; then
6789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6790$as_echo "$ac_ct_DUMPBIN" >&6; }
6791else
6792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793$as_echo "no" >&6; }
6794fi
6795
6796
6797  test -n "$ac_ct_DUMPBIN" && break
6798done
6799
6800  if test "x$ac_ct_DUMPBIN" = x; then
6801    DUMPBIN=":"
6802  else
6803    case $cross_compiling:$ac_tool_warned in
6804yes:)
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807ac_tool_warned=yes ;;
6808esac
6809    DUMPBIN=$ac_ct_DUMPBIN
6810  fi
6811fi
6812
6813    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6814    *COFF*)
6815      DUMPBIN="$DUMPBIN -symbols -headers"
6816      ;;
6817    *)
6818      DUMPBIN=:
6819      ;;
6820    esac
6821  fi
6822
6823  if test : != "$DUMPBIN"; then
6824    NM=$DUMPBIN
6825  fi
6826fi
6827test -z "$NM" && NM=nm
6828
6829
6830
6831
6832
6833
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6835$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6836if ${lt_cv_nm_interface+:} false; then :
6837  $as_echo_n "(cached) " >&6
6838else
6839  lt_cv_nm_interface="BSD nm"
6840  echo "int some_variable = 0;" > conftest.$ac_ext
6841  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6842  (eval "$ac_compile" 2>conftest.err)
6843  cat conftest.err >&5
6844  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6845  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6846  cat conftest.err >&5
6847  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6848  cat conftest.out >&5
6849  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6850    lt_cv_nm_interface="MS dumpbin"
6851  fi
6852  rm -f conftest*
6853fi
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6855$as_echo "$lt_cv_nm_interface" >&6; }
6856
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6858$as_echo_n "checking whether ln -s works... " >&6; }
6859LN_S=$as_ln_s
6860if test "$LN_S" = "ln -s"; then
6861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6862$as_echo "yes" >&6; }
6863else
6864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6865$as_echo "no, using $LN_S" >&6; }
6866fi
6867
6868# find the maximum length of command line arguments
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6870$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6871if ${lt_cv_sys_max_cmd_len+:} false; then :
6872  $as_echo_n "(cached) " >&6
6873else
6874    i=0
6875  teststring=ABCD
6876
6877  case $build_os in
6878  msdosdjgpp*)
6879    # On DJGPP, this test can blow up pretty badly due to problems in libc
6880    # (any single argument exceeding 2000 bytes causes a buffer overrun
6881    # during glob expansion).  Even if it were fixed, the result of this
6882    # check would be larger than it should be.
6883    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6884    ;;
6885
6886  gnu*)
6887    # Under GNU Hurd, this test is not required because there is
6888    # no limit to the length of command line arguments.
6889    # Libtool will interpret -1 as no limit whatsoever
6890    lt_cv_sys_max_cmd_len=-1;
6891    ;;
6892
6893  cygwin* | mingw* | cegcc*)
6894    # On Win9x/ME, this test blows up -- it succeeds, but takes
6895    # about 5 minutes as the teststring grows exponentially.
6896    # Worse, since 9x/ME are not pre-emptively multitasking,
6897    # you end up with a "frozen" computer, even though with patience
6898    # the test eventually succeeds (with a max line length of 256k).
6899    # Instead, let's just punt: use the minimum linelength reported by
6900    # all of the supported platforms: 8192 (on NT/2K/XP).
6901    lt_cv_sys_max_cmd_len=8192;
6902    ;;
6903
6904  mint*)
6905    # On MiNT this can take a long time and run out of memory.
6906    lt_cv_sys_max_cmd_len=8192;
6907    ;;
6908
6909  amigaos*)
6910    # On AmigaOS with pdksh, this test takes hours, literally.
6911    # So we just punt and use a minimum line length of 8192.
6912    lt_cv_sys_max_cmd_len=8192;
6913    ;;
6914
6915  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6916    # This has been around since 386BSD, at least.  Likely further.
6917    if test -x /sbin/sysctl; then
6918      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6919    elif test -x /usr/sbin/sysctl; then
6920      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6921    else
6922      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6923    fi
6924    # And add a safety zone
6925    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6926    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6927    ;;
6928
6929  interix*)
6930    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6931    lt_cv_sys_max_cmd_len=196608
6932    ;;
6933
6934  os2*)
6935    # The test takes a long time on OS/2.
6936    lt_cv_sys_max_cmd_len=8192
6937    ;;
6938
6939  osf*)
6940    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6941    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6942    # nice to cause kernel panics so lets avoid the loop below.
6943    # First set a reasonable default.
6944    lt_cv_sys_max_cmd_len=16384
6945    #
6946    if test -x /sbin/sysconfig; then
6947      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6948        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6949      esac
6950    fi
6951    ;;
6952  sco3.2v5*)
6953    lt_cv_sys_max_cmd_len=102400
6954    ;;
6955  sysv5* | sco5v6* | sysv4.2uw2*)
6956    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6957    if test -n "$kargmax"; then
6958      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6959    else
6960      lt_cv_sys_max_cmd_len=32768
6961    fi
6962    ;;
6963  *)
6964    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6965    if test -n "$lt_cv_sys_max_cmd_len" && \
6966       test undefined != "$lt_cv_sys_max_cmd_len"; then
6967      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6968      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6969    else
6970      # Make teststring a little bigger before we do anything with it.
6971      # a 1K string should be a reasonable start.
6972      for i in 1 2 3 4 5 6 7 8; do
6973        teststring=$teststring$teststring
6974      done
6975      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6976      # If test is not a shell built-in, we'll probably end up computing a
6977      # maximum length that is only half of the actual maximum length, but
6978      # we can't tell.
6979      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6980	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6981	      test 17 != "$i" # 1/2 MB should be enough
6982      do
6983        i=`expr $i + 1`
6984        teststring=$teststring$teststring
6985      done
6986      # Only check the string length outside the loop.
6987      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6988      teststring=
6989      # Add a significant safety factor because C++ compilers can tack on
6990      # massive amounts of additional arguments before passing them to the
6991      # linker.  It appears as though 1/2 is a usable value.
6992      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6993    fi
6994    ;;
6995  esac
6996
6997fi
6998
6999if test -n "$lt_cv_sys_max_cmd_len"; then
7000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7001$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7002else
7003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7004$as_echo "none" >&6; }
7005fi
7006max_cmd_len=$lt_cv_sys_max_cmd_len
7007
7008
7009
7010
7011
7012
7013: ${CP="cp -f"}
7014: ${MV="mv -f"}
7015: ${RM="rm -f"}
7016
7017if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7018  lt_unset=unset
7019else
7020  lt_unset=false
7021fi
7022
7023
7024
7025
7026
7027# test EBCDIC or ASCII
7028case `echo X|tr X '\101'` in
7029 A) # ASCII based system
7030    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7031  lt_SP2NL='tr \040 \012'
7032  lt_NL2SP='tr \015\012 \040\040'
7033  ;;
7034 *) # EBCDIC based system
7035  lt_SP2NL='tr \100 \n'
7036  lt_NL2SP='tr \r\n \100\100'
7037  ;;
7038esac
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7049$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7050if ${lt_cv_to_host_file_cmd+:} false; then :
7051  $as_echo_n "(cached) " >&6
7052else
7053  case $host in
7054  *-*-mingw* )
7055    case $build in
7056      *-*-mingw* ) # actually msys
7057        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7058        ;;
7059      *-*-cygwin* )
7060        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7061        ;;
7062      * ) # otherwise, assume *nix
7063        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7064        ;;
7065    esac
7066    ;;
7067  *-*-cygwin* )
7068    case $build in
7069      *-*-mingw* ) # actually msys
7070        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7071        ;;
7072      *-*-cygwin* )
7073        lt_cv_to_host_file_cmd=func_convert_file_noop
7074        ;;
7075      * ) # otherwise, assume *nix
7076        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7077        ;;
7078    esac
7079    ;;
7080  * ) # unhandled hosts (and "normal" native builds)
7081    lt_cv_to_host_file_cmd=func_convert_file_noop
7082    ;;
7083esac
7084
7085fi
7086
7087to_host_file_cmd=$lt_cv_to_host_file_cmd
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7089$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7090
7091
7092
7093
7094
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7096$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7097if ${lt_cv_to_tool_file_cmd+:} false; then :
7098  $as_echo_n "(cached) " >&6
7099else
7100  #assume ordinary cross tools, or native build.
7101lt_cv_to_tool_file_cmd=func_convert_file_noop
7102case $host in
7103  *-*-mingw* )
7104    case $build in
7105      *-*-mingw* ) # actually msys
7106        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7107        ;;
7108    esac
7109    ;;
7110esac
7111
7112fi
7113
7114to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7116$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7117
7118
7119
7120
7121
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7123$as_echo_n "checking for $LD option to reload object files... " >&6; }
7124if ${lt_cv_ld_reload_flag+:} false; then :
7125  $as_echo_n "(cached) " >&6
7126else
7127  lt_cv_ld_reload_flag='-r'
7128fi
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7130$as_echo "$lt_cv_ld_reload_flag" >&6; }
7131reload_flag=$lt_cv_ld_reload_flag
7132case $reload_flag in
7133"" | " "*) ;;
7134*) reload_flag=" $reload_flag" ;;
7135esac
7136reload_cmds='$LD$reload_flag -o $output$reload_objs'
7137case $host_os in
7138  cygwin* | mingw* | pw32* | cegcc*)
7139    if test yes != "$GCC"; then
7140      reload_cmds=false
7141    fi
7142    ;;
7143  darwin*)
7144    if test yes = "$GCC"; then
7145      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7146    else
7147      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7148    fi
7149    ;;
7150esac
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160if test -n "$ac_tool_prefix"; then
7161  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7162set dummy ${ac_tool_prefix}objdump; ac_word=$2
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164$as_echo_n "checking for $ac_word... " >&6; }
7165if ${ac_cv_prog_OBJDUMP+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  if test -n "$OBJDUMP"; then
7169  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7170else
7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176    for ac_exec_ext in '' $ac_executable_extensions; do
7177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183  done
7184IFS=$as_save_IFS
7185
7186fi
7187fi
7188OBJDUMP=$ac_cv_prog_OBJDUMP
7189if test -n "$OBJDUMP"; then
7190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7191$as_echo "$OBJDUMP" >&6; }
7192else
7193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194$as_echo "no" >&6; }
7195fi
7196
7197
7198fi
7199if test -z "$ac_cv_prog_OBJDUMP"; then
7200  ac_ct_OBJDUMP=$OBJDUMP
7201  # Extract the first word of "objdump", so it can be a program name with args.
7202set dummy objdump; ac_word=$2
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204$as_echo_n "checking for $ac_word... " >&6; }
7205if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7206  $as_echo_n "(cached) " >&6
7207else
7208  if test -n "$ac_ct_OBJDUMP"; then
7209  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7210else
7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214  IFS=$as_save_IFS
7215  test -z "$as_dir" && as_dir=.
7216    for ac_exec_ext in '' $ac_executable_extensions; do
7217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220    break 2
7221  fi
7222done
7223  done
7224IFS=$as_save_IFS
7225
7226fi
7227fi
7228ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7229if test -n "$ac_ct_OBJDUMP"; then
7230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7231$as_echo "$ac_ct_OBJDUMP" >&6; }
7232else
7233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234$as_echo "no" >&6; }
7235fi
7236
7237  if test "x$ac_ct_OBJDUMP" = x; then
7238    OBJDUMP="false"
7239  else
7240    case $cross_compiling:$ac_tool_warned in
7241yes:)
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244ac_tool_warned=yes ;;
7245esac
7246    OBJDUMP=$ac_ct_OBJDUMP
7247  fi
7248else
7249  OBJDUMP="$ac_cv_prog_OBJDUMP"
7250fi
7251
7252test -z "$OBJDUMP" && OBJDUMP=objdump
7253
7254
7255
7256
7257
7258
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7260$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7261if ${lt_cv_deplibs_check_method+:} false; then :
7262  $as_echo_n "(cached) " >&6
7263else
7264  lt_cv_file_magic_cmd='$MAGIC_CMD'
7265lt_cv_file_magic_test_file=
7266lt_cv_deplibs_check_method='unknown'
7267# Need to set the preceding variable on all platforms that support
7268# interlibrary dependencies.
7269# 'none' -- dependencies not supported.
7270# 'unknown' -- same as none, but documents that we really don't know.
7271# 'pass_all' -- all dependencies passed with no checks.
7272# 'test_compile' -- check by making test program.
7273# 'file_magic [[regex]]' -- check by looking for files in library path
7274# that responds to the $file_magic_cmd with a given extended regex.
7275# If you have 'file' or equivalent on your system and you're not sure
7276# whether 'pass_all' will *always* work, you probably want this one.
7277
7278case $host_os in
7279aix[4-9]*)
7280  lt_cv_deplibs_check_method=pass_all
7281  ;;
7282
7283beos*)
7284  lt_cv_deplibs_check_method=pass_all
7285  ;;
7286
7287bsdi[45]*)
7288  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7289  lt_cv_file_magic_cmd='/usr/bin/file -L'
7290  lt_cv_file_magic_test_file=/shlib/libc.so
7291  ;;
7292
7293cygwin*)
7294  # func_win32_libid is a shell function defined in ltmain.sh
7295  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7296  lt_cv_file_magic_cmd='func_win32_libid'
7297  ;;
7298
7299mingw* | pw32*)
7300  # Base MSYS/MinGW do not provide the 'file' command needed by
7301  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7302  # unless we find 'file', for example because we are cross-compiling.
7303  if ( file / ) >/dev/null 2>&1; then
7304    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7305    lt_cv_file_magic_cmd='func_win32_libid'
7306  else
7307    # Keep this pattern in sync with the one in func_win32_libid.
7308    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7309    lt_cv_file_magic_cmd='$OBJDUMP -f'
7310  fi
7311  ;;
7312
7313cegcc*)
7314  # use the weaker test based on 'objdump'. See mingw*.
7315  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7316  lt_cv_file_magic_cmd='$OBJDUMP -f'
7317  ;;
7318
7319darwin* | rhapsody*)
7320  lt_cv_deplibs_check_method=pass_all
7321  ;;
7322
7323freebsd* | dragonfly*)
7324  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7325    case $host_cpu in
7326    i*86 )
7327      # Not sure whether the presence of OpenBSD here was a mistake.
7328      # Let's accept both of them until this is cleared up.
7329      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7330      lt_cv_file_magic_cmd=/usr/bin/file
7331      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7332      ;;
7333    esac
7334  else
7335    lt_cv_deplibs_check_method=pass_all
7336  fi
7337  ;;
7338
7339haiku*)
7340  lt_cv_deplibs_check_method=pass_all
7341  ;;
7342
7343hpux10.20* | hpux11*)
7344  lt_cv_file_magic_cmd=/usr/bin/file
7345  case $host_cpu in
7346  ia64*)
7347    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7348    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7349    ;;
7350  hppa*64*)
7351    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7352    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7353    ;;
7354  *)
7355    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7356    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7357    ;;
7358  esac
7359  ;;
7360
7361interix[3-9]*)
7362  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7363  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7364  ;;
7365
7366irix5* | irix6* | nonstopux*)
7367  case $LD in
7368  *-32|*"-32 ") libmagic=32-bit;;
7369  *-n32|*"-n32 ") libmagic=N32;;
7370  *-64|*"-64 ") libmagic=64-bit;;
7371  *) libmagic=never-match;;
7372  esac
7373  lt_cv_deplibs_check_method=pass_all
7374  ;;
7375
7376# This must be glibc/ELF.
7377linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7378  lt_cv_deplibs_check_method=pass_all
7379  ;;
7380
7381netbsd*)
7382  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7383    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7384  else
7385    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7386  fi
7387  ;;
7388
7389newos6*)
7390  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7391  lt_cv_file_magic_cmd=/usr/bin/file
7392  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7393  ;;
7394
7395*nto* | *qnx*)
7396  lt_cv_deplibs_check_method=pass_all
7397  ;;
7398
7399openbsd* | bitrig*)
7400  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7401    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7402  else
7403    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7404  fi
7405  ;;
7406
7407osf3* | osf4* | osf5*)
7408  lt_cv_deplibs_check_method=pass_all
7409  ;;
7410
7411rdos*)
7412  lt_cv_deplibs_check_method=pass_all
7413  ;;
7414
7415solaris*)
7416  lt_cv_deplibs_check_method=pass_all
7417  ;;
7418
7419sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7420  lt_cv_deplibs_check_method=pass_all
7421  ;;
7422
7423sysv4 | sysv4.3*)
7424  case $host_vendor in
7425  motorola)
7426    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]'
7427    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7428    ;;
7429  ncr)
7430    lt_cv_deplibs_check_method=pass_all
7431    ;;
7432  sequent)
7433    lt_cv_file_magic_cmd='/bin/file'
7434    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7435    ;;
7436  sni)
7437    lt_cv_file_magic_cmd='/bin/file'
7438    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7439    lt_cv_file_magic_test_file=/lib/libc.so
7440    ;;
7441  siemens)
7442    lt_cv_deplibs_check_method=pass_all
7443    ;;
7444  pc)
7445    lt_cv_deplibs_check_method=pass_all
7446    ;;
7447  esac
7448  ;;
7449
7450tpf*)
7451  lt_cv_deplibs_check_method=pass_all
7452  ;;
7453os2*)
7454  lt_cv_deplibs_check_method=pass_all
7455  ;;
7456esac
7457
7458fi
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7460$as_echo "$lt_cv_deplibs_check_method" >&6; }
7461
7462file_magic_glob=
7463want_nocaseglob=no
7464if test "$build" = "$host"; then
7465  case $host_os in
7466  mingw* | pw32*)
7467    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7468      want_nocaseglob=yes
7469    else
7470      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7471    fi
7472    ;;
7473  esac
7474fi
7475
7476file_magic_cmd=$lt_cv_file_magic_cmd
7477deplibs_check_method=$lt_cv_deplibs_check_method
7478test -z "$deplibs_check_method" && deplibs_check_method=unknown
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501if test -n "$ac_tool_prefix"; then
7502  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7503set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505$as_echo_n "checking for $ac_word... " >&6; }
7506if ${ac_cv_prog_DLLTOOL+:} false; then :
7507  $as_echo_n "(cached) " >&6
7508else
7509  if test -n "$DLLTOOL"; then
7510  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7511else
7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515  IFS=$as_save_IFS
7516  test -z "$as_dir" && as_dir=.
7517    for ac_exec_ext in '' $ac_executable_extensions; do
7518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521    break 2
7522  fi
7523done
7524  done
7525IFS=$as_save_IFS
7526
7527fi
7528fi
7529DLLTOOL=$ac_cv_prog_DLLTOOL
7530if test -n "$DLLTOOL"; then
7531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7532$as_echo "$DLLTOOL" >&6; }
7533else
7534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535$as_echo "no" >&6; }
7536fi
7537
7538
7539fi
7540if test -z "$ac_cv_prog_DLLTOOL"; then
7541  ac_ct_DLLTOOL=$DLLTOOL
7542  # Extract the first word of "dlltool", so it can be a program name with args.
7543set dummy dlltool; ac_word=$2
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545$as_echo_n "checking for $ac_word... " >&6; }
7546if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7547  $as_echo_n "(cached) " >&6
7548else
7549  if test -n "$ac_ct_DLLTOOL"; then
7550  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7551else
7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555  IFS=$as_save_IFS
7556  test -z "$as_dir" && as_dir=.
7557    for ac_exec_ext in '' $ac_executable_extensions; do
7558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561    break 2
7562  fi
7563done
7564  done
7565IFS=$as_save_IFS
7566
7567fi
7568fi
7569ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7570if test -n "$ac_ct_DLLTOOL"; then
7571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7572$as_echo "$ac_ct_DLLTOOL" >&6; }
7573else
7574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575$as_echo "no" >&6; }
7576fi
7577
7578  if test "x$ac_ct_DLLTOOL" = x; then
7579    DLLTOOL="false"
7580  else
7581    case $cross_compiling:$ac_tool_warned in
7582yes:)
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585ac_tool_warned=yes ;;
7586esac
7587    DLLTOOL=$ac_ct_DLLTOOL
7588  fi
7589else
7590  DLLTOOL="$ac_cv_prog_DLLTOOL"
7591fi
7592
7593test -z "$DLLTOOL" && DLLTOOL=dlltool
7594
7595
7596
7597
7598
7599
7600
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7602$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7603if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  lt_cv_sharedlib_from_linklib_cmd='unknown'
7607
7608case $host_os in
7609cygwin* | mingw* | pw32* | cegcc*)
7610  # two different shell functions defined in ltmain.sh;
7611  # decide which one to use based on capabilities of $DLLTOOL
7612  case `$DLLTOOL --help 2>&1` in
7613  *--identify-strict*)
7614    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7615    ;;
7616  *)
7617    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7618    ;;
7619  esac
7620  ;;
7621*)
7622  # fallback: assume linklib IS sharedlib
7623  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7624  ;;
7625esac
7626
7627fi
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7629$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7630sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7631test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7632
7633
7634
7635
7636
7637
7638
7639
7640if test -n "$ac_tool_prefix"; then
7641  for ac_prog in ar
7642  do
7643    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7644set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646$as_echo_n "checking for $ac_word... " >&6; }
7647if ${ac_cv_prog_AR+:} false; then :
7648  $as_echo_n "(cached) " >&6
7649else
7650  if test -n "$AR"; then
7651  ac_cv_prog_AR="$AR" # Let the user override the test.
7652else
7653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656  IFS=$as_save_IFS
7657  test -z "$as_dir" && as_dir=.
7658    for ac_exec_ext in '' $ac_executable_extensions; do
7659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662    break 2
7663  fi
7664done
7665  done
7666IFS=$as_save_IFS
7667
7668fi
7669fi
7670AR=$ac_cv_prog_AR
7671if test -n "$AR"; then
7672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7673$as_echo "$AR" >&6; }
7674else
7675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676$as_echo "no" >&6; }
7677fi
7678
7679
7680    test -n "$AR" && break
7681  done
7682fi
7683if test -z "$AR"; then
7684  ac_ct_AR=$AR
7685  for ac_prog in ar
7686do
7687  # Extract the first word of "$ac_prog", so it can be a program name with args.
7688set dummy $ac_prog; ac_word=$2
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690$as_echo_n "checking for $ac_word... " >&6; }
7691if ${ac_cv_prog_ac_ct_AR+:} false; then :
7692  $as_echo_n "(cached) " >&6
7693else
7694  if test -n "$ac_ct_AR"; then
7695  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7696else
7697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698for as_dir in $PATH
7699do
7700  IFS=$as_save_IFS
7701  test -z "$as_dir" && as_dir=.
7702    for ac_exec_ext in '' $ac_executable_extensions; do
7703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704    ac_cv_prog_ac_ct_AR="$ac_prog"
7705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706    break 2
7707  fi
7708done
7709  done
7710IFS=$as_save_IFS
7711
7712fi
7713fi
7714ac_ct_AR=$ac_cv_prog_ac_ct_AR
7715if test -n "$ac_ct_AR"; then
7716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7717$as_echo "$ac_ct_AR" >&6; }
7718else
7719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720$as_echo "no" >&6; }
7721fi
7722
7723
7724  test -n "$ac_ct_AR" && break
7725done
7726
7727  if test "x$ac_ct_AR" = x; then
7728    AR="false"
7729  else
7730    case $cross_compiling:$ac_tool_warned in
7731yes:)
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7734ac_tool_warned=yes ;;
7735esac
7736    AR=$ac_ct_AR
7737  fi
7738fi
7739
7740: ${AR=ar}
7741: ${AR_FLAGS=cru}
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7754$as_echo_n "checking for archiver @FILE support... " >&6; }
7755if ${lt_cv_ar_at_file+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  lt_cv_ar_at_file=no
7759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760/* end confdefs.h.  */
7761
7762int
7763main ()
7764{
7765
7766  ;
7767  return 0;
7768}
7769_ACEOF
7770if ac_fn_c_try_compile "$LINENO"; then :
7771  echo conftest.$ac_objext > conftest.lst
7772      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7773      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7774  (eval $lt_ar_try) 2>&5
7775  ac_status=$?
7776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777  test $ac_status = 0; }
7778      if test 0 -eq "$ac_status"; then
7779	# Ensure the archiver fails upon bogus file names.
7780	rm -f conftest.$ac_objext libconftest.a
7781	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7782  (eval $lt_ar_try) 2>&5
7783  ac_status=$?
7784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785  test $ac_status = 0; }
7786	if test 0 -ne "$ac_status"; then
7787          lt_cv_ar_at_file=@
7788        fi
7789      fi
7790      rm -f conftest.* libconftest.a
7791
7792fi
7793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794
7795fi
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7797$as_echo "$lt_cv_ar_at_file" >&6; }
7798
7799if test no = "$lt_cv_ar_at_file"; then
7800  archiver_list_spec=
7801else
7802  archiver_list_spec=$lt_cv_ar_at_file
7803fi
7804
7805
7806
7807
7808
7809
7810
7811if test -n "$ac_tool_prefix"; then
7812  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7813set dummy ${ac_tool_prefix}strip; ac_word=$2
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815$as_echo_n "checking for $ac_word... " >&6; }
7816if ${ac_cv_prog_STRIP+:} false; then :
7817  $as_echo_n "(cached) " >&6
7818else
7819  if test -n "$STRIP"; then
7820  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7821else
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825  IFS=$as_save_IFS
7826  test -z "$as_dir" && as_dir=.
7827    for ac_exec_ext in '' $ac_executable_extensions; do
7828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831    break 2
7832  fi
7833done
7834  done
7835IFS=$as_save_IFS
7836
7837fi
7838fi
7839STRIP=$ac_cv_prog_STRIP
7840if test -n "$STRIP"; then
7841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7842$as_echo "$STRIP" >&6; }
7843else
7844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
7846fi
7847
7848
7849fi
7850if test -z "$ac_cv_prog_STRIP"; then
7851  ac_ct_STRIP=$STRIP
7852  # Extract the first word of "strip", so it can be a program name with args.
7853set dummy strip; ac_word=$2
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855$as_echo_n "checking for $ac_word... " >&6; }
7856if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7857  $as_echo_n "(cached) " >&6
7858else
7859  if test -n "$ac_ct_STRIP"; then
7860  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7861else
7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865  IFS=$as_save_IFS
7866  test -z "$as_dir" && as_dir=.
7867    for ac_exec_ext in '' $ac_executable_extensions; do
7868  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869    ac_cv_prog_ac_ct_STRIP="strip"
7870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871    break 2
7872  fi
7873done
7874  done
7875IFS=$as_save_IFS
7876
7877fi
7878fi
7879ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7880if test -n "$ac_ct_STRIP"; then
7881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7882$as_echo "$ac_ct_STRIP" >&6; }
7883else
7884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
7886fi
7887
7888  if test "x$ac_ct_STRIP" = x; then
7889    STRIP=":"
7890  else
7891    case $cross_compiling:$ac_tool_warned in
7892yes:)
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895ac_tool_warned=yes ;;
7896esac
7897    STRIP=$ac_ct_STRIP
7898  fi
7899else
7900  STRIP="$ac_cv_prog_STRIP"
7901fi
7902
7903test -z "$STRIP" && STRIP=:
7904
7905
7906
7907
7908
7909
7910if test -n "$ac_tool_prefix"; then
7911  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7912set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914$as_echo_n "checking for $ac_word... " >&6; }
7915if ${ac_cv_prog_RANLIB+:} false; then :
7916  $as_echo_n "(cached) " >&6
7917else
7918  if test -n "$RANLIB"; then
7919  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7920else
7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924  IFS=$as_save_IFS
7925  test -z "$as_dir" && as_dir=.
7926    for ac_exec_ext in '' $ac_executable_extensions; do
7927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930    break 2
7931  fi
7932done
7933  done
7934IFS=$as_save_IFS
7935
7936fi
7937fi
7938RANLIB=$ac_cv_prog_RANLIB
7939if test -n "$RANLIB"; then
7940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7941$as_echo "$RANLIB" >&6; }
7942else
7943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944$as_echo "no" >&6; }
7945fi
7946
7947
7948fi
7949if test -z "$ac_cv_prog_RANLIB"; then
7950  ac_ct_RANLIB=$RANLIB
7951  # Extract the first word of "ranlib", so it can be a program name with args.
7952set dummy ranlib; ac_word=$2
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954$as_echo_n "checking for $ac_word... " >&6; }
7955if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7956  $as_echo_n "(cached) " >&6
7957else
7958  if test -n "$ac_ct_RANLIB"; then
7959  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7960else
7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964  IFS=$as_save_IFS
7965  test -z "$as_dir" && as_dir=.
7966    for ac_exec_ext in '' $ac_executable_extensions; do
7967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7968    ac_cv_prog_ac_ct_RANLIB="ranlib"
7969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970    break 2
7971  fi
7972done
7973  done
7974IFS=$as_save_IFS
7975
7976fi
7977fi
7978ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7979if test -n "$ac_ct_RANLIB"; then
7980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7981$as_echo "$ac_ct_RANLIB" >&6; }
7982else
7983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984$as_echo "no" >&6; }
7985fi
7986
7987  if test "x$ac_ct_RANLIB" = x; then
7988    RANLIB=":"
7989  else
7990    case $cross_compiling:$ac_tool_warned in
7991yes:)
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7994ac_tool_warned=yes ;;
7995esac
7996    RANLIB=$ac_ct_RANLIB
7997  fi
7998else
7999  RANLIB="$ac_cv_prog_RANLIB"
8000fi
8001
8002test -z "$RANLIB" && RANLIB=:
8003
8004
8005
8006
8007
8008
8009# Determine commands to create old-style static archives.
8010old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8011old_postinstall_cmds='chmod 644 $oldlib'
8012old_postuninstall_cmds=
8013
8014if test -n "$RANLIB"; then
8015  case $host_os in
8016  bitrig* | openbsd*)
8017    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8018    ;;
8019  *)
8020    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8021    ;;
8022  esac
8023  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8024fi
8025
8026case $host_os in
8027  darwin*)
8028    lock_old_archive_extraction=yes ;;
8029  *)
8030    lock_old_archive_extraction=no ;;
8031esac
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053for ac_prog in gawk mawk nawk awk
8054do
8055  # Extract the first word of "$ac_prog", so it can be a program name with args.
8056set dummy $ac_prog; ac_word=$2
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058$as_echo_n "checking for $ac_word... " >&6; }
8059if ${ac_cv_prog_AWK+:} false; then :
8060  $as_echo_n "(cached) " >&6
8061else
8062  if test -n "$AWK"; then
8063  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8064else
8065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066for as_dir in $PATH
8067do
8068  IFS=$as_save_IFS
8069  test -z "$as_dir" && as_dir=.
8070    for ac_exec_ext in '' $ac_executable_extensions; do
8071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072    ac_cv_prog_AWK="$ac_prog"
8073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074    break 2
8075  fi
8076done
8077  done
8078IFS=$as_save_IFS
8079
8080fi
8081fi
8082AWK=$ac_cv_prog_AWK
8083if test -n "$AWK"; then
8084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8085$as_echo "$AWK" >&6; }
8086else
8087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088$as_echo "no" >&6; }
8089fi
8090
8091
8092  test -n "$AWK" && break
8093done
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113# If no C compiler was specified, use CC.
8114LTCC=${LTCC-"$CC"}
8115
8116# If no C compiler flags were specified, use CFLAGS.
8117LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8118
8119# Allow CC to be a program name with arguments.
8120compiler=$CC
8121
8122
8123# Check for command to grab the raw symbol name followed by C symbol from nm.
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8125$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8126if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8127  $as_echo_n "(cached) " >&6
8128else
8129
8130# These are sane defaults that work on at least a few old systems.
8131# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8132
8133# Character class describing NM global symbol codes.
8134symcode='[BCDEGRST]'
8135
8136# Regexp to match symbols that can be accessed directly from C.
8137sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8138
8139# Define system-specific variables.
8140case $host_os in
8141aix*)
8142  symcode='[BCDT]'
8143  ;;
8144cygwin* | mingw* | pw32* | cegcc*)
8145  symcode='[ABCDGISTW]'
8146  ;;
8147hpux*)
8148  if test ia64 = "$host_cpu"; then
8149    symcode='[ABCDEGRST]'
8150  fi
8151  ;;
8152irix* | nonstopux*)
8153  symcode='[BCDEGRST]'
8154  ;;
8155osf*)
8156  symcode='[BCDEGQRST]'
8157  ;;
8158solaris*)
8159  symcode='[BDRT]'
8160  ;;
8161sco3.2v5*)
8162  symcode='[DT]'
8163  ;;
8164sysv4.2uw2*)
8165  symcode='[DT]'
8166  ;;
8167sysv5* | sco5v6* | unixware* | OpenUNIX*)
8168  symcode='[ABDT]'
8169  ;;
8170sysv4)
8171  symcode='[DFNSTU]'
8172  ;;
8173esac
8174
8175# If we're using GNU nm, then use its standard symbol codes.
8176case `$NM -V 2>&1` in
8177*GNU* | *'with BFD'*)
8178  symcode='[ABCDGIRSTW]' ;;
8179esac
8180
8181if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8182  # Gets list of data symbols to import.
8183  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8184  # Adjust the below global symbol transforms to fixup imported variables.
8185  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8186  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8187  lt_c_name_lib_hook="\
8188  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8189  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8190else
8191  # Disable hooks by default.
8192  lt_cv_sys_global_symbol_to_import=
8193  lt_cdecl_hook=
8194  lt_c_name_hook=
8195  lt_c_name_lib_hook=
8196fi
8197
8198# Transform an extracted symbol line into a proper C declaration.
8199# Some systems (esp. on ia64) link data and code symbols differently,
8200# so use this general approach.
8201lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8202$lt_cdecl_hook\
8203" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8204" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8205
8206# Transform an extracted symbol line into symbol name and symbol address
8207lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8208$lt_c_name_hook\
8209" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8210" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8211
8212# Transform an extracted symbol line into symbol name with lib prefix and
8213# symbol address.
8214lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8215$lt_c_name_lib_hook\
8216" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8217" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8218" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8219
8220# Handle CRLF in mingw tool chain
8221opt_cr=
8222case $build_os in
8223mingw*)
8224  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8225  ;;
8226esac
8227
8228# Try without a prefix underscore, then with it.
8229for ac_symprfx in "" "_"; do
8230
8231  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8232  symxfrm="\\1 $ac_symprfx\\2 \\2"
8233
8234  # Write the raw and C identifiers.
8235  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8236    # Fake it for dumpbin and say T for any non-static function,
8237    # D for any global variable and I for any imported variable.
8238    # Also find C++ and __fastcall symbols from MSVC++,
8239    # which start with @ or ?.
8240    lt_cv_sys_global_symbol_pipe="$AWK '"\
8241"     {last_section=section; section=\$ 3};"\
8242"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8243"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8244"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8245"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8246"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8247"     \$ 0!~/External *\|/{next};"\
8248"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8249"     {if(hide[section]) next};"\
8250"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8251"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8252"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8253"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8254"     ' prfx=^$ac_symprfx"
8255  else
8256    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8257  fi
8258  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8259
8260  # Check to see that the pipe works correctly.
8261  pipe_works=no
8262
8263  rm -f conftest*
8264  cat > conftest.$ac_ext <<_LT_EOF
8265#ifdef __cplusplus
8266extern "C" {
8267#endif
8268char nm_test_var;
8269void nm_test_func(void);
8270void nm_test_func(void){}
8271#ifdef __cplusplus
8272}
8273#endif
8274int main(){nm_test_var='a';nm_test_func();return(0);}
8275_LT_EOF
8276
8277  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8278  (eval $ac_compile) 2>&5
8279  ac_status=$?
8280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8281  test $ac_status = 0; }; then
8282    # Now try to grab the symbols.
8283    nlist=conftest.nm
8284    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8285  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8286  ac_status=$?
8287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8288  test $ac_status = 0; } && test -s "$nlist"; then
8289      # Try sorting and uniquifying the output.
8290      if sort "$nlist" | uniq > "$nlist"T; then
8291	mv -f "$nlist"T "$nlist"
8292      else
8293	rm -f "$nlist"T
8294      fi
8295
8296      # Make sure that we snagged all the symbols we need.
8297      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8298	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8299	  cat <<_LT_EOF > conftest.$ac_ext
8300/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8301#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8302/* DATA imports from DLLs on WIN32 can't be const, because runtime
8303   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8304# define LT_DLSYM_CONST
8305#elif defined __osf__
8306/* This system does not cope well with relocations in const data.  */
8307# define LT_DLSYM_CONST
8308#else
8309# define LT_DLSYM_CONST const
8310#endif
8311
8312#ifdef __cplusplus
8313extern "C" {
8314#endif
8315
8316_LT_EOF
8317	  # Now generate the symbol file.
8318	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8319
8320	  cat <<_LT_EOF >> conftest.$ac_ext
8321
8322/* The mapping between symbol names and symbols.  */
8323LT_DLSYM_CONST struct {
8324  const char *name;
8325  void       *address;
8326}
8327lt__PROGRAM__LTX_preloaded_symbols[] =
8328{
8329  { "@PROGRAM@", (void *) 0 },
8330_LT_EOF
8331	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8332	  cat <<\_LT_EOF >> conftest.$ac_ext
8333  {0, (void *) 0}
8334};
8335
8336/* This works around a problem in FreeBSD linker */
8337#ifdef FREEBSD_WORKAROUND
8338static const void *lt_preloaded_setup() {
8339  return lt__PROGRAM__LTX_preloaded_symbols;
8340}
8341#endif
8342
8343#ifdef __cplusplus
8344}
8345#endif
8346_LT_EOF
8347	  # Now try linking the two files.
8348	  mv conftest.$ac_objext conftstm.$ac_objext
8349	  lt_globsym_save_LIBS=$LIBS
8350	  lt_globsym_save_CFLAGS=$CFLAGS
8351	  LIBS=conftstm.$ac_objext
8352	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8353	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8354  (eval $ac_link) 2>&5
8355  ac_status=$?
8356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8357  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8358	    pipe_works=yes
8359	  fi
8360	  LIBS=$lt_globsym_save_LIBS
8361	  CFLAGS=$lt_globsym_save_CFLAGS
8362	else
8363	  echo "cannot find nm_test_func in $nlist" >&5
8364	fi
8365      else
8366	echo "cannot find nm_test_var in $nlist" >&5
8367      fi
8368    else
8369      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8370    fi
8371  else
8372    echo "$progname: failed program was:" >&5
8373    cat conftest.$ac_ext >&5
8374  fi
8375  rm -rf conftest* conftst*
8376
8377  # Do not use the global_symbol_pipe unless it works.
8378  if test yes = "$pipe_works"; then
8379    break
8380  else
8381    lt_cv_sys_global_symbol_pipe=
8382  fi
8383done
8384
8385fi
8386
8387if test -z "$lt_cv_sys_global_symbol_pipe"; then
8388  lt_cv_sys_global_symbol_to_cdecl=
8389fi
8390if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8392$as_echo "failed" >&6; }
8393else
8394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8395$as_echo "ok" >&6; }
8396fi
8397
8398# Response file support.
8399if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8400  nm_file_list_spec='@'
8401elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8402  nm_file_list_spec='@'
8403fi
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8442$as_echo_n "checking for sysroot... " >&6; }
8443
8444# Check whether --with-sysroot was given.
8445if test "${with_sysroot+set}" = set; then :
8446  withval=$with_sysroot;
8447else
8448  with_sysroot=no
8449fi
8450
8451
8452lt_sysroot=
8453case $with_sysroot in #(
8454 yes)
8455   if test yes = "$GCC"; then
8456     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8457   fi
8458   ;; #(
8459 /*)
8460   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8461   ;; #(
8462 no|'')
8463   ;; #(
8464 *)
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8466$as_echo "$with_sysroot" >&6; }
8467   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8468   ;;
8469esac
8470
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8472$as_echo "${lt_sysroot:-no}" >&6; }
8473
8474
8475
8476
8477
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8479$as_echo_n "checking for a working dd... " >&6; }
8480if ${ac_cv_path_lt_DD+:} false; then :
8481  $as_echo_n "(cached) " >&6
8482else
8483  printf 0123456789abcdef0123456789abcdef >conftest.i
8484cat conftest.i conftest.i >conftest2.i
8485: ${lt_DD:=$DD}
8486if test -z "$lt_DD"; then
8487  ac_path_lt_DD_found=false
8488  # Loop through the user's path and test for each of PROGNAME-LIST
8489  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490for as_dir in $PATH
8491do
8492  IFS=$as_save_IFS
8493  test -z "$as_dir" && as_dir=.
8494    for ac_prog in dd; do
8495    for ac_exec_ext in '' $ac_executable_extensions; do
8496      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8497      as_fn_executable_p "$ac_path_lt_DD" || continue
8498if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8499  cmp -s conftest.i conftest.out \
8500  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8501fi
8502      $ac_path_lt_DD_found && break 3
8503    done
8504  done
8505  done
8506IFS=$as_save_IFS
8507  if test -z "$ac_cv_path_lt_DD"; then
8508    :
8509  fi
8510else
8511  ac_cv_path_lt_DD=$lt_DD
8512fi
8513
8514rm -f conftest.i conftest2.i conftest.out
8515fi
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8517$as_echo "$ac_cv_path_lt_DD" >&6; }
8518
8519
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8521$as_echo_n "checking how to truncate binary pipes... " >&6; }
8522if ${lt_cv_truncate_bin+:} false; then :
8523  $as_echo_n "(cached) " >&6
8524else
8525  printf 0123456789abcdef0123456789abcdef >conftest.i
8526cat conftest.i conftest.i >conftest2.i
8527lt_cv_truncate_bin=
8528if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8529  cmp -s conftest.i conftest.out \
8530  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8531fi
8532rm -f conftest.i conftest2.i conftest.out
8533test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8534fi
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8536$as_echo "$lt_cv_truncate_bin" >&6; }
8537
8538
8539
8540
8541
8542
8543
8544# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8545func_cc_basename ()
8546{
8547    for cc_temp in $*""; do
8548      case $cc_temp in
8549        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8550        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8551        \-*) ;;
8552        *) break;;
8553      esac
8554    done
8555    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8556}
8557
8558# Check whether --enable-libtool-lock was given.
8559if test "${enable_libtool_lock+set}" = set; then :
8560  enableval=$enable_libtool_lock;
8561fi
8562
8563test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8564
8565# Some flags need to be propagated to the compiler or linker for good
8566# libtool support.
8567case $host in
8568ia64-*-hpux*)
8569  # Find out what ABI is being produced by ac_compile, and set mode
8570  # options accordingly.
8571  echo 'int i;' > conftest.$ac_ext
8572  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8573  (eval $ac_compile) 2>&5
8574  ac_status=$?
8575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8576  test $ac_status = 0; }; then
8577    case `/usr/bin/file conftest.$ac_objext` in
8578      *ELF-32*)
8579	HPUX_IA64_MODE=32
8580	;;
8581      *ELF-64*)
8582	HPUX_IA64_MODE=64
8583	;;
8584    esac
8585  fi
8586  rm -rf conftest*
8587  ;;
8588*-*-irix6*)
8589  # Find out what ABI is being produced by ac_compile, and set linker
8590  # options accordingly.
8591  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8592  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8593  (eval $ac_compile) 2>&5
8594  ac_status=$?
8595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8596  test $ac_status = 0; }; then
8597    if test yes = "$lt_cv_prog_gnu_ld"; then
8598      case `/usr/bin/file conftest.$ac_objext` in
8599	*32-bit*)
8600	  LD="${LD-ld} -melf32bsmip"
8601	  ;;
8602	*N32*)
8603	  LD="${LD-ld} -melf32bmipn32"
8604	  ;;
8605	*64-bit*)
8606	  LD="${LD-ld} -melf64bmip"
8607	;;
8608      esac
8609    else
8610      case `/usr/bin/file conftest.$ac_objext` in
8611	*32-bit*)
8612	  LD="${LD-ld} -32"
8613	  ;;
8614	*N32*)
8615	  LD="${LD-ld} -n32"
8616	  ;;
8617	*64-bit*)
8618	  LD="${LD-ld} -64"
8619	  ;;
8620      esac
8621    fi
8622  fi
8623  rm -rf conftest*
8624  ;;
8625
8626mips64*-*linux*)
8627  # Find out what ABI is being produced by ac_compile, and set linker
8628  # options accordingly.
8629  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8630  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8631  (eval $ac_compile) 2>&5
8632  ac_status=$?
8633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8634  test $ac_status = 0; }; then
8635    emul=elf
8636    case `/usr/bin/file conftest.$ac_objext` in
8637      *32-bit*)
8638	emul="${emul}32"
8639	;;
8640      *64-bit*)
8641	emul="${emul}64"
8642	;;
8643    esac
8644    case `/usr/bin/file conftest.$ac_objext` in
8645      *MSB*)
8646	emul="${emul}btsmip"
8647	;;
8648      *LSB*)
8649	emul="${emul}ltsmip"
8650	;;
8651    esac
8652    case `/usr/bin/file conftest.$ac_objext` in
8653      *N32*)
8654	emul="${emul}n32"
8655	;;
8656    esac
8657    LD="${LD-ld} -m $emul"
8658  fi
8659  rm -rf conftest*
8660  ;;
8661
8662x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8663s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8664  # Find out what ABI is being produced by ac_compile, and set linker
8665  # options accordingly.  Note that the listed cases only cover the
8666  # situations where additional linker options are needed (such as when
8667  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8668  # vice versa); the common cases where no linker options are needed do
8669  # not appear in the list.
8670  echo 'int i;' > conftest.$ac_ext
8671  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8672  (eval $ac_compile) 2>&5
8673  ac_status=$?
8674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8675  test $ac_status = 0; }; then
8676    case `/usr/bin/file conftest.o` in
8677      *32-bit*)
8678	case $host in
8679	  x86_64-*kfreebsd*-gnu)
8680	    LD="${LD-ld} -m elf_i386_fbsd"
8681	    ;;
8682	  x86_64-*linux*)
8683	    case `/usr/bin/file conftest.o` in
8684	      *x86-64*)
8685		LD="${LD-ld} -m elf32_x86_64"
8686		;;
8687	      *)
8688		LD="${LD-ld} -m elf_i386"
8689		;;
8690	    esac
8691	    ;;
8692	  powerpc64le-*linux*)
8693	    LD="${LD-ld} -m elf32lppclinux"
8694	    ;;
8695	  powerpc64-*linux*)
8696	    LD="${LD-ld} -m elf32ppclinux"
8697	    ;;
8698	  s390x-*linux*)
8699	    LD="${LD-ld} -m elf_s390"
8700	    ;;
8701	  sparc64-*linux*)
8702	    LD="${LD-ld} -m elf32_sparc"
8703	    ;;
8704	esac
8705	;;
8706      *64-bit*)
8707	case $host in
8708	  x86_64-*kfreebsd*-gnu)
8709	    LD="${LD-ld} -m elf_x86_64_fbsd"
8710	    ;;
8711	  x86_64-*linux*)
8712	    LD="${LD-ld} -m elf_x86_64"
8713	    ;;
8714	  powerpcle-*linux*)
8715	    LD="${LD-ld} -m elf64lppc"
8716	    ;;
8717	  powerpc-*linux*)
8718	    LD="${LD-ld} -m elf64ppc"
8719	    ;;
8720	  s390*-*linux*|s390*-*tpf*)
8721	    LD="${LD-ld} -m elf64_s390"
8722	    ;;
8723	  sparc*-*linux*)
8724	    LD="${LD-ld} -m elf64_sparc"
8725	    ;;
8726	esac
8727	;;
8728    esac
8729  fi
8730  rm -rf conftest*
8731  ;;
8732
8733*-*-sco3.2v5*)
8734  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8735  SAVE_CFLAGS=$CFLAGS
8736  CFLAGS="$CFLAGS -belf"
8737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8738$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8739if ${lt_cv_cc_needs_belf+:} false; then :
8740  $as_echo_n "(cached) " >&6
8741else
8742  ac_ext=c
8743ac_cpp='$CPP $CPPFLAGS'
8744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746ac_compiler_gnu=$ac_cv_c_compiler_gnu
8747
8748     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h.  */
8750
8751int
8752main ()
8753{
8754
8755  ;
8756  return 0;
8757}
8758_ACEOF
8759if ac_fn_c_try_link "$LINENO"; then :
8760  lt_cv_cc_needs_belf=yes
8761else
8762  lt_cv_cc_needs_belf=no
8763fi
8764rm -f core conftest.err conftest.$ac_objext \
8765    conftest$ac_exeext conftest.$ac_ext
8766     ac_ext=c
8767ac_cpp='$CPP $CPPFLAGS'
8768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8770ac_compiler_gnu=$ac_cv_c_compiler_gnu
8771
8772fi
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8774$as_echo "$lt_cv_cc_needs_belf" >&6; }
8775  if test yes != "$lt_cv_cc_needs_belf"; then
8776    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8777    CFLAGS=$SAVE_CFLAGS
8778  fi
8779  ;;
8780*-*solaris*)
8781  # Find out what ABI is being produced by ac_compile, and set linker
8782  # options accordingly.
8783  echo 'int i;' > conftest.$ac_ext
8784  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8785  (eval $ac_compile) 2>&5
8786  ac_status=$?
8787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8788  test $ac_status = 0; }; then
8789    case `/usr/bin/file conftest.o` in
8790    *64-bit*)
8791      case $lt_cv_prog_gnu_ld in
8792      yes*)
8793        case $host in
8794        i?86-*-solaris*|x86_64-*-solaris*)
8795          LD="${LD-ld} -m elf_x86_64"
8796          ;;
8797        sparc*-*-solaris*)
8798          LD="${LD-ld} -m elf64_sparc"
8799          ;;
8800        esac
8801        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8802        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8803          LD=${LD-ld}_sol2
8804        fi
8805        ;;
8806      *)
8807	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8808	  LD="${LD-ld} -64"
8809	fi
8810	;;
8811      esac
8812      ;;
8813    esac
8814  fi
8815  rm -rf conftest*
8816  ;;
8817esac
8818
8819need_locks=$enable_libtool_lock
8820
8821if test -n "$ac_tool_prefix"; then
8822  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8823set dummy ${ac_tool_prefix}mt; ac_word=$2
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825$as_echo_n "checking for $ac_word... " >&6; }
8826if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8827  $as_echo_n "(cached) " >&6
8828else
8829  if test -n "$MANIFEST_TOOL"; then
8830  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8831else
8832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833for as_dir in $PATH
8834do
8835  IFS=$as_save_IFS
8836  test -z "$as_dir" && as_dir=.
8837    for ac_exec_ext in '' $ac_executable_extensions; do
8838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841    break 2
8842  fi
8843done
8844  done
8845IFS=$as_save_IFS
8846
8847fi
8848fi
8849MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8850if test -n "$MANIFEST_TOOL"; then
8851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8852$as_echo "$MANIFEST_TOOL" >&6; }
8853else
8854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855$as_echo "no" >&6; }
8856fi
8857
8858
8859fi
8860if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8861  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8862  # Extract the first word of "mt", so it can be a program name with args.
8863set dummy mt; ac_word=$2
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865$as_echo_n "checking for $ac_word... " >&6; }
8866if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  if test -n "$ac_ct_MANIFEST_TOOL"; then
8870  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8871else
8872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873for as_dir in $PATH
8874do
8875  IFS=$as_save_IFS
8876  test -z "$as_dir" && as_dir=.
8877    for ac_exec_ext in '' $ac_executable_extensions; do
8878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8879    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881    break 2
8882  fi
8883done
8884  done
8885IFS=$as_save_IFS
8886
8887fi
8888fi
8889ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8890if test -n "$ac_ct_MANIFEST_TOOL"; then
8891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8892$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8893else
8894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895$as_echo "no" >&6; }
8896fi
8897
8898  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8899    MANIFEST_TOOL=":"
8900  else
8901    case $cross_compiling:$ac_tool_warned in
8902yes:)
8903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8905ac_tool_warned=yes ;;
8906esac
8907    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8908  fi
8909else
8910  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8911fi
8912
8913test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8915$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8916if ${lt_cv_path_mainfest_tool+:} false; then :
8917  $as_echo_n "(cached) " >&6
8918else
8919  lt_cv_path_mainfest_tool=no
8920  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8921  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8922  cat conftest.err >&5
8923  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8924    lt_cv_path_mainfest_tool=yes
8925  fi
8926  rm -f conftest*
8927fi
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8929$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8930if test yes != "$lt_cv_path_mainfest_tool"; then
8931  MANIFEST_TOOL=:
8932fi
8933
8934
8935
8936
8937
8938
8939  case $host_os in
8940    rhapsody* | darwin*)
8941    if test -n "$ac_tool_prefix"; then
8942  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8943set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945$as_echo_n "checking for $ac_word... " >&6; }
8946if ${ac_cv_prog_DSYMUTIL+:} false; then :
8947  $as_echo_n "(cached) " >&6
8948else
8949  if test -n "$DSYMUTIL"; then
8950  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8951else
8952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953for as_dir in $PATH
8954do
8955  IFS=$as_save_IFS
8956  test -z "$as_dir" && as_dir=.
8957    for ac_exec_ext in '' $ac_executable_extensions; do
8958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8959    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8961    break 2
8962  fi
8963done
8964  done
8965IFS=$as_save_IFS
8966
8967fi
8968fi
8969DSYMUTIL=$ac_cv_prog_DSYMUTIL
8970if test -n "$DSYMUTIL"; then
8971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8972$as_echo "$DSYMUTIL" >&6; }
8973else
8974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975$as_echo "no" >&6; }
8976fi
8977
8978
8979fi
8980if test -z "$ac_cv_prog_DSYMUTIL"; then
8981  ac_ct_DSYMUTIL=$DSYMUTIL
8982  # Extract the first word of "dsymutil", so it can be a program name with args.
8983set dummy dsymutil; ac_word=$2
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985$as_echo_n "checking for $ac_word... " >&6; }
8986if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8987  $as_echo_n "(cached) " >&6
8988else
8989  if test -n "$ac_ct_DSYMUTIL"; then
8990  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8991else
8992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993for as_dir in $PATH
8994do
8995  IFS=$as_save_IFS
8996  test -z "$as_dir" && as_dir=.
8997    for ac_exec_ext in '' $ac_executable_extensions; do
8998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8999    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9001    break 2
9002  fi
9003done
9004  done
9005IFS=$as_save_IFS
9006
9007fi
9008fi
9009ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9010if test -n "$ac_ct_DSYMUTIL"; then
9011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9012$as_echo "$ac_ct_DSYMUTIL" >&6; }
9013else
9014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015$as_echo "no" >&6; }
9016fi
9017
9018  if test "x$ac_ct_DSYMUTIL" = x; then
9019    DSYMUTIL=":"
9020  else
9021    case $cross_compiling:$ac_tool_warned in
9022yes:)
9023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9025ac_tool_warned=yes ;;
9026esac
9027    DSYMUTIL=$ac_ct_DSYMUTIL
9028  fi
9029else
9030  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9031fi
9032
9033    if test -n "$ac_tool_prefix"; then
9034  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9035set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037$as_echo_n "checking for $ac_word... " >&6; }
9038if ${ac_cv_prog_NMEDIT+:} false; then :
9039  $as_echo_n "(cached) " >&6
9040else
9041  if test -n "$NMEDIT"; then
9042  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9043else
9044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045for as_dir in $PATH
9046do
9047  IFS=$as_save_IFS
9048  test -z "$as_dir" && as_dir=.
9049    for ac_exec_ext in '' $ac_executable_extensions; do
9050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9051    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9053    break 2
9054  fi
9055done
9056  done
9057IFS=$as_save_IFS
9058
9059fi
9060fi
9061NMEDIT=$ac_cv_prog_NMEDIT
9062if test -n "$NMEDIT"; then
9063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9064$as_echo "$NMEDIT" >&6; }
9065else
9066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067$as_echo "no" >&6; }
9068fi
9069
9070
9071fi
9072if test -z "$ac_cv_prog_NMEDIT"; then
9073  ac_ct_NMEDIT=$NMEDIT
9074  # Extract the first word of "nmedit", so it can be a program name with args.
9075set dummy nmedit; ac_word=$2
9076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9077$as_echo_n "checking for $ac_word... " >&6; }
9078if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9079  $as_echo_n "(cached) " >&6
9080else
9081  if test -n "$ac_ct_NMEDIT"; then
9082  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9083else
9084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085for as_dir in $PATH
9086do
9087  IFS=$as_save_IFS
9088  test -z "$as_dir" && as_dir=.
9089    for ac_exec_ext in '' $ac_executable_extensions; do
9090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9091    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9093    break 2
9094  fi
9095done
9096  done
9097IFS=$as_save_IFS
9098
9099fi
9100fi
9101ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9102if test -n "$ac_ct_NMEDIT"; then
9103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9104$as_echo "$ac_ct_NMEDIT" >&6; }
9105else
9106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107$as_echo "no" >&6; }
9108fi
9109
9110  if test "x$ac_ct_NMEDIT" = x; then
9111    NMEDIT=":"
9112  else
9113    case $cross_compiling:$ac_tool_warned in
9114yes:)
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9117ac_tool_warned=yes ;;
9118esac
9119    NMEDIT=$ac_ct_NMEDIT
9120  fi
9121else
9122  NMEDIT="$ac_cv_prog_NMEDIT"
9123fi
9124
9125    if test -n "$ac_tool_prefix"; then
9126  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9127set dummy ${ac_tool_prefix}lipo; ac_word=$2
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129$as_echo_n "checking for $ac_word... " >&6; }
9130if ${ac_cv_prog_LIPO+:} false; then :
9131  $as_echo_n "(cached) " >&6
9132else
9133  if test -n "$LIPO"; then
9134  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9135else
9136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137for as_dir in $PATH
9138do
9139  IFS=$as_save_IFS
9140  test -z "$as_dir" && as_dir=.
9141    for ac_exec_ext in '' $ac_executable_extensions; do
9142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145    break 2
9146  fi
9147done
9148  done
9149IFS=$as_save_IFS
9150
9151fi
9152fi
9153LIPO=$ac_cv_prog_LIPO
9154if test -n "$LIPO"; then
9155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9156$as_echo "$LIPO" >&6; }
9157else
9158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159$as_echo "no" >&6; }
9160fi
9161
9162
9163fi
9164if test -z "$ac_cv_prog_LIPO"; then
9165  ac_ct_LIPO=$LIPO
9166  # Extract the first word of "lipo", so it can be a program name with args.
9167set dummy lipo; ac_word=$2
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9169$as_echo_n "checking for $ac_word... " >&6; }
9170if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9171  $as_echo_n "(cached) " >&6
9172else
9173  if test -n "$ac_ct_LIPO"; then
9174  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9175else
9176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177for as_dir in $PATH
9178do
9179  IFS=$as_save_IFS
9180  test -z "$as_dir" && as_dir=.
9181    for ac_exec_ext in '' $ac_executable_extensions; do
9182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9183    ac_cv_prog_ac_ct_LIPO="lipo"
9184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185    break 2
9186  fi
9187done
9188  done
9189IFS=$as_save_IFS
9190
9191fi
9192fi
9193ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9194if test -n "$ac_ct_LIPO"; then
9195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9196$as_echo "$ac_ct_LIPO" >&6; }
9197else
9198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199$as_echo "no" >&6; }
9200fi
9201
9202  if test "x$ac_ct_LIPO" = x; then
9203    LIPO=":"
9204  else
9205    case $cross_compiling:$ac_tool_warned in
9206yes:)
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9209ac_tool_warned=yes ;;
9210esac
9211    LIPO=$ac_ct_LIPO
9212  fi
9213else
9214  LIPO="$ac_cv_prog_LIPO"
9215fi
9216
9217    if test -n "$ac_tool_prefix"; then
9218  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9219set dummy ${ac_tool_prefix}otool; ac_word=$2
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221$as_echo_n "checking for $ac_word... " >&6; }
9222if ${ac_cv_prog_OTOOL+:} false; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225  if test -n "$OTOOL"; then
9226  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9227else
9228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229for as_dir in $PATH
9230do
9231  IFS=$as_save_IFS
9232  test -z "$as_dir" && as_dir=.
9233    for ac_exec_ext in '' $ac_executable_extensions; do
9234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9235    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237    break 2
9238  fi
9239done
9240  done
9241IFS=$as_save_IFS
9242
9243fi
9244fi
9245OTOOL=$ac_cv_prog_OTOOL
9246if test -n "$OTOOL"; then
9247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9248$as_echo "$OTOOL" >&6; }
9249else
9250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251$as_echo "no" >&6; }
9252fi
9253
9254
9255fi
9256if test -z "$ac_cv_prog_OTOOL"; then
9257  ac_ct_OTOOL=$OTOOL
9258  # Extract the first word of "otool", so it can be a program name with args.
9259set dummy otool; ac_word=$2
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261$as_echo_n "checking for $ac_word... " >&6; }
9262if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9263  $as_echo_n "(cached) " >&6
9264else
9265  if test -n "$ac_ct_OTOOL"; then
9266  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9267else
9268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269for as_dir in $PATH
9270do
9271  IFS=$as_save_IFS
9272  test -z "$as_dir" && as_dir=.
9273    for ac_exec_ext in '' $ac_executable_extensions; do
9274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9275    ac_cv_prog_ac_ct_OTOOL="otool"
9276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9277    break 2
9278  fi
9279done
9280  done
9281IFS=$as_save_IFS
9282
9283fi
9284fi
9285ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9286if test -n "$ac_ct_OTOOL"; then
9287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9288$as_echo "$ac_ct_OTOOL" >&6; }
9289else
9290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291$as_echo "no" >&6; }
9292fi
9293
9294  if test "x$ac_ct_OTOOL" = x; then
9295    OTOOL=":"
9296  else
9297    case $cross_compiling:$ac_tool_warned in
9298yes:)
9299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9301ac_tool_warned=yes ;;
9302esac
9303    OTOOL=$ac_ct_OTOOL
9304  fi
9305else
9306  OTOOL="$ac_cv_prog_OTOOL"
9307fi
9308
9309    if test -n "$ac_tool_prefix"; then
9310  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9311set dummy ${ac_tool_prefix}otool64; ac_word=$2
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313$as_echo_n "checking for $ac_word... " >&6; }
9314if ${ac_cv_prog_OTOOL64+:} false; then :
9315  $as_echo_n "(cached) " >&6
9316else
9317  if test -n "$OTOOL64"; then
9318  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9319else
9320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321for as_dir in $PATH
9322do
9323  IFS=$as_save_IFS
9324  test -z "$as_dir" && as_dir=.
9325    for ac_exec_ext in '' $ac_executable_extensions; do
9326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9327    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9329    break 2
9330  fi
9331done
9332  done
9333IFS=$as_save_IFS
9334
9335fi
9336fi
9337OTOOL64=$ac_cv_prog_OTOOL64
9338if test -n "$OTOOL64"; then
9339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9340$as_echo "$OTOOL64" >&6; }
9341else
9342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343$as_echo "no" >&6; }
9344fi
9345
9346
9347fi
9348if test -z "$ac_cv_prog_OTOOL64"; then
9349  ac_ct_OTOOL64=$OTOOL64
9350  # Extract the first word of "otool64", so it can be a program name with args.
9351set dummy otool64; ac_word=$2
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353$as_echo_n "checking for $ac_word... " >&6; }
9354if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9355  $as_echo_n "(cached) " >&6
9356else
9357  if test -n "$ac_ct_OTOOL64"; then
9358  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9359else
9360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361for as_dir in $PATH
9362do
9363  IFS=$as_save_IFS
9364  test -z "$as_dir" && as_dir=.
9365    for ac_exec_ext in '' $ac_executable_extensions; do
9366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9367    ac_cv_prog_ac_ct_OTOOL64="otool64"
9368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9369    break 2
9370  fi
9371done
9372  done
9373IFS=$as_save_IFS
9374
9375fi
9376fi
9377ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9378if test -n "$ac_ct_OTOOL64"; then
9379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9380$as_echo "$ac_ct_OTOOL64" >&6; }
9381else
9382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383$as_echo "no" >&6; }
9384fi
9385
9386  if test "x$ac_ct_OTOOL64" = x; then
9387    OTOOL64=":"
9388  else
9389    case $cross_compiling:$ac_tool_warned in
9390yes:)
9391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9393ac_tool_warned=yes ;;
9394esac
9395    OTOOL64=$ac_ct_OTOOL64
9396  fi
9397else
9398  OTOOL64="$ac_cv_prog_OTOOL64"
9399fi
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9428$as_echo_n "checking for -single_module linker flag... " >&6; }
9429if ${lt_cv_apple_cc_single_mod+:} false; then :
9430  $as_echo_n "(cached) " >&6
9431else
9432  lt_cv_apple_cc_single_mod=no
9433      if test -z "$LT_MULTI_MODULE"; then
9434	# By default we will add the -single_module flag. You can override
9435	# by either setting the environment variable LT_MULTI_MODULE
9436	# non-empty at configure time, or by adding -multi_module to the
9437	# link flags.
9438	rm -rf libconftest.dylib*
9439	echo "int foo(void){return 1;}" > conftest.c
9440	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9441-dynamiclib -Wl,-single_module conftest.c" >&5
9442	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9443	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9444        _lt_result=$?
9445	# If there is a non-empty error log, and "single_module"
9446	# appears in it, assume the flag caused a linker warning
9447        if test -s conftest.err && $GREP single_module conftest.err; then
9448	  cat conftest.err >&5
9449	# Otherwise, if the output was created with a 0 exit code from
9450	# the compiler, it worked.
9451	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9452	  lt_cv_apple_cc_single_mod=yes
9453	else
9454	  cat conftest.err >&5
9455	fi
9456	rm -rf libconftest.dylib*
9457	rm -f conftest.*
9458      fi
9459fi
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9461$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9462
9463    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9464$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9465if ${lt_cv_ld_exported_symbols_list+:} false; then :
9466  $as_echo_n "(cached) " >&6
9467else
9468  lt_cv_ld_exported_symbols_list=no
9469      save_LDFLAGS=$LDFLAGS
9470      echo "_main" > conftest.sym
9471      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9472      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474
9475int
9476main ()
9477{
9478
9479  ;
9480  return 0;
9481}
9482_ACEOF
9483if ac_fn_c_try_link "$LINENO"; then :
9484  lt_cv_ld_exported_symbols_list=yes
9485else
9486  lt_cv_ld_exported_symbols_list=no
9487fi
9488rm -f core conftest.err conftest.$ac_objext \
9489    conftest$ac_exeext conftest.$ac_ext
9490	LDFLAGS=$save_LDFLAGS
9491
9492fi
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9494$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9495
9496    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9497$as_echo_n "checking for -force_load linker flag... " >&6; }
9498if ${lt_cv_ld_force_load+:} false; then :
9499  $as_echo_n "(cached) " >&6
9500else
9501  lt_cv_ld_force_load=no
9502      cat > conftest.c << _LT_EOF
9503int forced_loaded() { return 2;}
9504_LT_EOF
9505      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9506      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9507      echo "$AR cru libconftest.a conftest.o" >&5
9508      $AR cru libconftest.a conftest.o 2>&5
9509      echo "$RANLIB libconftest.a" >&5
9510      $RANLIB libconftest.a 2>&5
9511      cat > conftest.c << _LT_EOF
9512int main() { return 0;}
9513_LT_EOF
9514      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9515      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9516      _lt_result=$?
9517      if test -s conftest.err && $GREP force_load conftest.err; then
9518	cat conftest.err >&5
9519      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9520	lt_cv_ld_force_load=yes
9521      else
9522	cat conftest.err >&5
9523      fi
9524        rm -f conftest.err libconftest.a conftest conftest.c
9525        rm -rf conftest.dSYM
9526
9527fi
9528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9529$as_echo "$lt_cv_ld_force_load" >&6; }
9530    case $host_os in
9531    rhapsody* | darwin1.[012])
9532      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9533    darwin1.*)
9534      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9535    darwin*) # darwin 5.x on
9536      # if running on 10.5 or later, the deployment target defaults
9537      # to the OS version, if on x86, and 10.4, the deployment
9538      # target defaults to 10.4. Don't you love it?
9539      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9540	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9541	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9542	10.[012][,.]*)
9543	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9544	10.*)
9545	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9546      esac
9547    ;;
9548  esac
9549    if test yes = "$lt_cv_apple_cc_single_mod"; then
9550      _lt_dar_single_mod='$single_module'
9551    fi
9552    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9553      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9554    else
9555      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9556    fi
9557    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9558      _lt_dsymutil='~$DSYMUTIL $lib || :'
9559    else
9560      _lt_dsymutil=
9561    fi
9562    ;;
9563  esac
9564
9565# func_munge_path_list VARIABLE PATH
9566# -----------------------------------
9567# VARIABLE is name of variable containing _space_ separated list of
9568# directories to be munged by the contents of PATH, which is string
9569# having a format:
9570# "DIR[:DIR]:"
9571#       string "DIR[ DIR]" will be prepended to VARIABLE
9572# ":DIR[:DIR]"
9573#       string "DIR[ DIR]" will be appended to VARIABLE
9574# "DIRP[:DIRP]::[DIRA:]DIRA"
9575#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9576#       "DIRA[ DIRA]" will be appended to VARIABLE
9577# "DIR[:DIR]"
9578#       VARIABLE will be replaced by "DIR[ DIR]"
9579func_munge_path_list ()
9580{
9581    case x$2 in
9582    x)
9583        ;;
9584    *:)
9585        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9586        ;;
9587    x:*)
9588        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9589        ;;
9590    *::*)
9591        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9592        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9593        ;;
9594    *)
9595        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9596        ;;
9597    esac
9598}
9599
9600ac_ext=c
9601ac_cpp='$CPP $CPPFLAGS'
9602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9604ac_compiler_gnu=$ac_cv_c_compiler_gnu
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9606$as_echo_n "checking how to run the C preprocessor... " >&6; }
9607# On Suns, sometimes $CPP names a directory.
9608if test -n "$CPP" && test -d "$CPP"; then
9609  CPP=
9610fi
9611if test -z "$CPP"; then
9612  if ${ac_cv_prog_CPP+:} false; then :
9613  $as_echo_n "(cached) " >&6
9614else
9615      # Double quotes because CPP needs to be expanded
9616    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9617    do
9618      ac_preproc_ok=false
9619for ac_c_preproc_warn_flag in '' yes
9620do
9621  # Use a header file that comes with gcc, so configuring glibc
9622  # with a fresh cross-compiler works.
9623  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624  # <limits.h> exists even on freestanding compilers.
9625  # On the NeXT, cc -E runs the code through the compiler's parser,
9626  # not just through cpp. "Syntax error" is here to catch this case.
9627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628/* end confdefs.h.  */
9629#ifdef __STDC__
9630# include <limits.h>
9631#else
9632# include <assert.h>
9633#endif
9634		     Syntax error
9635_ACEOF
9636if ac_fn_c_try_cpp "$LINENO"; then :
9637
9638else
9639  # Broken: fails on valid input.
9640continue
9641fi
9642rm -f conftest.err conftest.i conftest.$ac_ext
9643
9644  # OK, works on sane cases.  Now check whether nonexistent headers
9645  # can be detected and how.
9646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647/* end confdefs.h.  */
9648#include <ac_nonexistent.h>
9649_ACEOF
9650if ac_fn_c_try_cpp "$LINENO"; then :
9651  # Broken: success on invalid input.
9652continue
9653else
9654  # Passes both tests.
9655ac_preproc_ok=:
9656break
9657fi
9658rm -f conftest.err conftest.i conftest.$ac_ext
9659
9660done
9661# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9662rm -f conftest.i conftest.err conftest.$ac_ext
9663if $ac_preproc_ok; then :
9664  break
9665fi
9666
9667    done
9668    ac_cv_prog_CPP=$CPP
9669
9670fi
9671  CPP=$ac_cv_prog_CPP
9672else
9673  ac_cv_prog_CPP=$CPP
9674fi
9675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9676$as_echo "$CPP" >&6; }
9677ac_preproc_ok=false
9678for ac_c_preproc_warn_flag in '' yes
9679do
9680  # Use a header file that comes with gcc, so configuring glibc
9681  # with a fresh cross-compiler works.
9682  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9683  # <limits.h> exists even on freestanding compilers.
9684  # On the NeXT, cc -E runs the code through the compiler's parser,
9685  # not just through cpp. "Syntax error" is here to catch this case.
9686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687/* end confdefs.h.  */
9688#ifdef __STDC__
9689# include <limits.h>
9690#else
9691# include <assert.h>
9692#endif
9693		     Syntax error
9694_ACEOF
9695if ac_fn_c_try_cpp "$LINENO"; then :
9696
9697else
9698  # Broken: fails on valid input.
9699continue
9700fi
9701rm -f conftest.err conftest.i conftest.$ac_ext
9702
9703  # OK, works on sane cases.  Now check whether nonexistent headers
9704  # can be detected and how.
9705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706/* end confdefs.h.  */
9707#include <ac_nonexistent.h>
9708_ACEOF
9709if ac_fn_c_try_cpp "$LINENO"; then :
9710  # Broken: success on invalid input.
9711continue
9712else
9713  # Passes both tests.
9714ac_preproc_ok=:
9715break
9716fi
9717rm -f conftest.err conftest.i conftest.$ac_ext
9718
9719done
9720# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9721rm -f conftest.i conftest.err conftest.$ac_ext
9722if $ac_preproc_ok; then :
9723
9724else
9725  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9727as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9728See \`config.log' for more details" "$LINENO" 5; }
9729fi
9730
9731ac_ext=c
9732ac_cpp='$CPP $CPPFLAGS'
9733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9735ac_compiler_gnu=$ac_cv_c_compiler_gnu
9736
9737
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9739$as_echo_n "checking for ANSI C header files... " >&6; }
9740if ${ac_cv_header_stdc+:} false; then :
9741  $as_echo_n "(cached) " >&6
9742else
9743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h.  */
9745#include <stdlib.h>
9746#include <stdarg.h>
9747#include <string.h>
9748#include <float.h>
9749
9750int
9751main ()
9752{
9753
9754  ;
9755  return 0;
9756}
9757_ACEOF
9758if ac_fn_c_try_compile "$LINENO"; then :
9759  ac_cv_header_stdc=yes
9760else
9761  ac_cv_header_stdc=no
9762fi
9763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764
9765if test $ac_cv_header_stdc = yes; then
9766  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768/* end confdefs.h.  */
9769#include <string.h>
9770
9771_ACEOF
9772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9773  $EGREP "memchr" >/dev/null 2>&1; then :
9774
9775else
9776  ac_cv_header_stdc=no
9777fi
9778rm -f conftest*
9779
9780fi
9781
9782if test $ac_cv_header_stdc = yes; then
9783  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785/* end confdefs.h.  */
9786#include <stdlib.h>
9787
9788_ACEOF
9789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9790  $EGREP "free" >/dev/null 2>&1; then :
9791
9792else
9793  ac_cv_header_stdc=no
9794fi
9795rm -f conftest*
9796
9797fi
9798
9799if test $ac_cv_header_stdc = yes; then
9800  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9801  if test "$cross_compiling" = yes; then :
9802  :
9803else
9804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805/* end confdefs.h.  */
9806#include <ctype.h>
9807#include <stdlib.h>
9808#if ((' ' & 0x0FF) == 0x020)
9809# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9810# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9811#else
9812# define ISLOWER(c) \
9813		   (('a' <= (c) && (c) <= 'i') \
9814		     || ('j' <= (c) && (c) <= 'r') \
9815		     || ('s' <= (c) && (c) <= 'z'))
9816# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9817#endif
9818
9819#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9820int
9821main ()
9822{
9823  int i;
9824  for (i = 0; i < 256; i++)
9825    if (XOR (islower (i), ISLOWER (i))
9826	|| toupper (i) != TOUPPER (i))
9827      return 2;
9828  return 0;
9829}
9830_ACEOF
9831if ac_fn_c_try_run "$LINENO"; then :
9832
9833else
9834  ac_cv_header_stdc=no
9835fi
9836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9837  conftest.$ac_objext conftest.beam conftest.$ac_ext
9838fi
9839
9840fi
9841fi
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9843$as_echo "$ac_cv_header_stdc" >&6; }
9844if test $ac_cv_header_stdc = yes; then
9845
9846$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9847
9848fi
9849
9850# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9851for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9852		  inttypes.h stdint.h unistd.h
9853do :
9854  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9855ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9856"
9857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9858  cat >>confdefs.h <<_ACEOF
9859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9860_ACEOF
9861
9862fi
9863
9864done
9865
9866
9867for ac_header in dlfcn.h
9868do :
9869  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9870"
9871if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9872  cat >>confdefs.h <<_ACEOF
9873#define HAVE_DLFCN_H 1
9874_ACEOF
9875
9876fi
9877
9878done
9879
9880
9881
9882
9883
9884# Set options
9885
9886
9887
9888
9889
9890
9891
9892
9893# Check whether --with-pic was given.
9894if test "${with_pic+set}" = set; then :
9895  withval=$with_pic; lt_p=${PACKAGE-default}
9896    case $withval in
9897    yes|no) pic_mode=$withval ;;
9898    *)
9899      pic_mode=default
9900      # Look at the argument we got.  We use all the common list separators.
9901      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9902      for lt_pkg in $withval; do
9903	IFS=$lt_save_ifs
9904	if test "X$lt_pkg" = "X$lt_p"; then
9905	  pic_mode=yes
9906	fi
9907      done
9908      IFS=$lt_save_ifs
9909      ;;
9910    esac
9911else
9912  pic_mode=default
9913fi
9914
9915
9916
9917
9918
9919
9920
9921
9922  # Check whether --enable-fast-install was given.
9923if test "${enable_fast_install+set}" = set; then :
9924  enableval=$enable_fast_install; p=${PACKAGE-default}
9925    case $enableval in
9926    yes) enable_fast_install=yes ;;
9927    no) enable_fast_install=no ;;
9928    *)
9929      enable_fast_install=no
9930      # Look at the argument we got.  We use all the common list separators.
9931      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9932      for pkg in $enableval; do
9933	IFS=$lt_save_ifs
9934	if test "X$pkg" = "X$p"; then
9935	  enable_fast_install=yes
9936	fi
9937      done
9938      IFS=$lt_save_ifs
9939      ;;
9940    esac
9941else
9942  enable_fast_install=yes
9943fi
9944
9945
9946
9947
9948
9949
9950
9951
9952  shared_archive_member_spec=
9953case $host,$enable_shared in
9954power*-*-aix[5-9]*,yes)
9955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9956$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9957
9958# Check whether --with-aix-soname was given.
9959if test "${with_aix_soname+set}" = set; then :
9960  withval=$with_aix_soname; case $withval in
9961    aix|svr4|both)
9962      ;;
9963    *)
9964      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9965      ;;
9966    esac
9967    lt_cv_with_aix_soname=$with_aix_soname
9968else
9969  if ${lt_cv_with_aix_soname+:} false; then :
9970  $as_echo_n "(cached) " >&6
9971else
9972  lt_cv_with_aix_soname=aix
9973fi
9974
9975    with_aix_soname=$lt_cv_with_aix_soname
9976fi
9977
9978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9979$as_echo "$with_aix_soname" >&6; }
9980  if test aix != "$with_aix_soname"; then
9981    # For the AIX way of multilib, we name the shared archive member
9982    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9983    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9984    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9985    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9986    if test 64 = "${OBJECT_MODE-32}"; then
9987      shared_archive_member_spec=shr_64
9988    else
9989      shared_archive_member_spec=shr
9990    fi
9991  fi
9992  ;;
9993*)
9994  with_aix_soname=aix
9995  ;;
9996esac
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007# This can be used to rebuild libtool when needed
10008LIBTOOL_DEPS=$ltmain
10009
10010# Always use our own libtool.
10011LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042test -z "$LN_S" && LN_S="ln -s"
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057if test -n "${ZSH_VERSION+set}"; then
10058   setopt NO_GLOB_SUBST
10059fi
10060
10061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10062$as_echo_n "checking for objdir... " >&6; }
10063if ${lt_cv_objdir+:} false; then :
10064  $as_echo_n "(cached) " >&6
10065else
10066  rm -f .libs 2>/dev/null
10067mkdir .libs 2>/dev/null
10068if test -d .libs; then
10069  lt_cv_objdir=.libs
10070else
10071  # MS-DOS does not allow filenames that begin with a dot.
10072  lt_cv_objdir=_libs
10073fi
10074rmdir .libs 2>/dev/null
10075fi
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10077$as_echo "$lt_cv_objdir" >&6; }
10078objdir=$lt_cv_objdir
10079
10080
10081
10082
10083
10084cat >>confdefs.h <<_ACEOF
10085#define LT_OBJDIR "$lt_cv_objdir/"
10086_ACEOF
10087
10088
10089
10090
10091case $host_os in
10092aix3*)
10093  # AIX sometimes has problems with the GCC collect2 program.  For some
10094  # reason, if we set the COLLECT_NAMES environment variable, the problems
10095  # vanish in a puff of smoke.
10096  if test set != "${COLLECT_NAMES+set}"; then
10097    COLLECT_NAMES=
10098    export COLLECT_NAMES
10099  fi
10100  ;;
10101esac
10102
10103# Global variables:
10104ofile=libtool
10105can_build_shared=yes
10106
10107# All known linkers require a '.a' archive for static linking (except MSVC,
10108# which needs '.lib').
10109libext=a
10110
10111with_gnu_ld=$lt_cv_prog_gnu_ld
10112
10113old_CC=$CC
10114old_CFLAGS=$CFLAGS
10115
10116# Set sane defaults for various variables
10117test -z "$CC" && CC=cc
10118test -z "$LTCC" && LTCC=$CC
10119test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10120test -z "$LD" && LD=ld
10121test -z "$ac_objext" && ac_objext=o
10122
10123func_cc_basename $compiler
10124cc_basename=$func_cc_basename_result
10125
10126
10127# Only perform the check for file, if the check method requires it
10128test -z "$MAGIC_CMD" && MAGIC_CMD=file
10129case $deplibs_check_method in
10130file_magic*)
10131  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10133$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10134if ${lt_cv_path_MAGIC_CMD+:} false; then :
10135  $as_echo_n "(cached) " >&6
10136else
10137  case $MAGIC_CMD in
10138[\\/*] |  ?:[\\/]*)
10139  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10140  ;;
10141*)
10142  lt_save_MAGIC_CMD=$MAGIC_CMD
10143  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10144  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10145  for ac_dir in $ac_dummy; do
10146    IFS=$lt_save_ifs
10147    test -z "$ac_dir" && ac_dir=.
10148    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10149      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10150      if test -n "$file_magic_test_file"; then
10151	case $deplibs_check_method in
10152	"file_magic "*)
10153	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10154	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10155	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10156	    $EGREP "$file_magic_regex" > /dev/null; then
10157	    :
10158	  else
10159	    cat <<_LT_EOF 1>&2
10160
10161*** Warning: the command libtool uses to detect shared libraries,
10162*** $file_magic_cmd, produces output that libtool cannot recognize.
10163*** The result is that libtool may fail to recognize shared libraries
10164*** as such.  This will affect the creation of libtool libraries that
10165*** depend on shared libraries, but programs linked with such libtool
10166*** libraries will work regardless of this problem.  Nevertheless, you
10167*** may want to report the problem to your system manager and/or to
10168*** bug-libtool@gnu.org
10169
10170_LT_EOF
10171	  fi ;;
10172	esac
10173      fi
10174      break
10175    fi
10176  done
10177  IFS=$lt_save_ifs
10178  MAGIC_CMD=$lt_save_MAGIC_CMD
10179  ;;
10180esac
10181fi
10182
10183MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10184if test -n "$MAGIC_CMD"; then
10185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10186$as_echo "$MAGIC_CMD" >&6; }
10187else
10188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189$as_echo "no" >&6; }
10190fi
10191
10192
10193
10194
10195
10196if test -z "$lt_cv_path_MAGIC_CMD"; then
10197  if test -n "$ac_tool_prefix"; then
10198    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10199$as_echo_n "checking for file... " >&6; }
10200if ${lt_cv_path_MAGIC_CMD+:} false; then :
10201  $as_echo_n "(cached) " >&6
10202else
10203  case $MAGIC_CMD in
10204[\\/*] |  ?:[\\/]*)
10205  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10206  ;;
10207*)
10208  lt_save_MAGIC_CMD=$MAGIC_CMD
10209  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10210  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10211  for ac_dir in $ac_dummy; do
10212    IFS=$lt_save_ifs
10213    test -z "$ac_dir" && ac_dir=.
10214    if test -f "$ac_dir/file"; then
10215      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10216      if test -n "$file_magic_test_file"; then
10217	case $deplibs_check_method in
10218	"file_magic "*)
10219	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10220	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10221	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10222	    $EGREP "$file_magic_regex" > /dev/null; then
10223	    :
10224	  else
10225	    cat <<_LT_EOF 1>&2
10226
10227*** Warning: the command libtool uses to detect shared libraries,
10228*** $file_magic_cmd, produces output that libtool cannot recognize.
10229*** The result is that libtool may fail to recognize shared libraries
10230*** as such.  This will affect the creation of libtool libraries that
10231*** depend on shared libraries, but programs linked with such libtool
10232*** libraries will work regardless of this problem.  Nevertheless, you
10233*** may want to report the problem to your system manager and/or to
10234*** bug-libtool@gnu.org
10235
10236_LT_EOF
10237	  fi ;;
10238	esac
10239      fi
10240      break
10241    fi
10242  done
10243  IFS=$lt_save_ifs
10244  MAGIC_CMD=$lt_save_MAGIC_CMD
10245  ;;
10246esac
10247fi
10248
10249MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10250if test -n "$MAGIC_CMD"; then
10251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10252$as_echo "$MAGIC_CMD" >&6; }
10253else
10254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255$as_echo "no" >&6; }
10256fi
10257
10258
10259  else
10260    MAGIC_CMD=:
10261  fi
10262fi
10263
10264  fi
10265  ;;
10266esac
10267
10268# Use C for the default configuration in the libtool script
10269
10270lt_save_CC=$CC
10271ac_ext=c
10272ac_cpp='$CPP $CPPFLAGS'
10273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10275ac_compiler_gnu=$ac_cv_c_compiler_gnu
10276
10277
10278# Source file extension for C test sources.
10279ac_ext=c
10280
10281# Object file extension for compiled C test sources.
10282objext=o
10283objext=$objext
10284
10285# Code to be used in simple compile tests
10286lt_simple_compile_test_code="int some_variable = 0;"
10287
10288# Code to be used in simple link tests
10289lt_simple_link_test_code='int main(){return(0);}'
10290
10291
10292
10293
10294
10295
10296
10297# If no C compiler was specified, use CC.
10298LTCC=${LTCC-"$CC"}
10299
10300# If no C compiler flags were specified, use CFLAGS.
10301LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10302
10303# Allow CC to be a program name with arguments.
10304compiler=$CC
10305
10306# Save the default compiler, since it gets overwritten when the other
10307# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10308compiler_DEFAULT=$CC
10309
10310# save warnings/boilerplate of simple test code
10311ac_outfile=conftest.$ac_objext
10312echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10313eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10314_lt_compiler_boilerplate=`cat conftest.err`
10315$RM conftest*
10316
10317ac_outfile=conftest.$ac_objext
10318echo "$lt_simple_link_test_code" >conftest.$ac_ext
10319eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10320_lt_linker_boilerplate=`cat conftest.err`
10321$RM -r conftest*
10322
10323
10324## CAVEAT EMPTOR:
10325## There is no encapsulation within the following macros, do not change
10326## the running order or otherwise move them around unless you know exactly
10327## what you are doing...
10328if test -n "$compiler"; then
10329
10330lt_prog_compiler_no_builtin_flag=
10331
10332if test yes = "$GCC"; then
10333  case $cc_basename in
10334  nvcc*)
10335    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10336  *)
10337    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10338  esac
10339
10340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10341$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10342if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10343  $as_echo_n "(cached) " >&6
10344else
10345  lt_cv_prog_compiler_rtti_exceptions=no
10346   ac_outfile=conftest.$ac_objext
10347   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10348   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10349   # Insert the option either (1) after the last *FLAGS variable, or
10350   # (2) before a word containing "conftest.", or (3) at the end.
10351   # Note that $ac_compile itself does not contain backslashes and begins
10352   # with a dollar sign (not a hyphen), so the echo should work correctly.
10353   # The option is referenced via a variable to avoid confusing sed.
10354   lt_compile=`echo "$ac_compile" | $SED \
10355   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10357   -e 's:$: $lt_compiler_flag:'`
10358   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10359   (eval "$lt_compile" 2>conftest.err)
10360   ac_status=$?
10361   cat conftest.err >&5
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   if (exit $ac_status) && test -s "$ac_outfile"; then
10364     # The compiler can only warn and ignore the option if not recognized
10365     # So say no if there are warnings other than the usual output.
10366     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10367     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10368     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10369       lt_cv_prog_compiler_rtti_exceptions=yes
10370     fi
10371   fi
10372   $RM conftest*
10373
10374fi
10375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10376$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10377
10378if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10379    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10380else
10381    :
10382fi
10383
10384fi
10385
10386
10387
10388
10389
10390
10391  lt_prog_compiler_wl=
10392lt_prog_compiler_pic=
10393lt_prog_compiler_static=
10394
10395
10396  if test yes = "$GCC"; then
10397    lt_prog_compiler_wl='-Wl,'
10398    lt_prog_compiler_static='-static'
10399
10400    case $host_os in
10401      aix*)
10402      # All AIX code is PIC.
10403      if test ia64 = "$host_cpu"; then
10404	# AIX 5 now supports IA64 processor
10405	lt_prog_compiler_static='-Bstatic'
10406      fi
10407      lt_prog_compiler_pic='-fPIC'
10408      ;;
10409
10410    amigaos*)
10411      case $host_cpu in
10412      powerpc)
10413            # see comment about AmigaOS4 .so support
10414            lt_prog_compiler_pic='-fPIC'
10415        ;;
10416      m68k)
10417            # FIXME: we need at least 68020 code to build shared libraries, but
10418            # adding the '-m68020' flag to GCC prevents building anything better,
10419            # like '-m68040'.
10420            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10421        ;;
10422      esac
10423      ;;
10424
10425    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10426      # PIC is the default for these OSes.
10427      ;;
10428
10429    mingw* | cygwin* | pw32* | os2* | cegcc*)
10430      # This hack is so that the source file can tell whether it is being
10431      # built for inclusion in a dll (and should export symbols for example).
10432      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10433      # (--disable-auto-import) libraries
10434      lt_prog_compiler_pic='-DDLL_EXPORT'
10435      case $host_os in
10436      os2*)
10437	lt_prog_compiler_static='$wl-static'
10438	;;
10439      esac
10440      ;;
10441
10442    darwin* | rhapsody*)
10443      # PIC is the default on this platform
10444      # Common symbols not allowed in MH_DYLIB files
10445      lt_prog_compiler_pic='-fno-common'
10446      ;;
10447
10448    haiku*)
10449      # PIC is the default for Haiku.
10450      # The "-static" flag exists, but is broken.
10451      lt_prog_compiler_static=
10452      ;;
10453
10454    hpux*)
10455      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10456      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10457      # sets the default TLS model and affects inlining.
10458      case $host_cpu in
10459      hppa*64*)
10460	# +Z the default
10461	;;
10462      *)
10463	lt_prog_compiler_pic='-fPIC'
10464	;;
10465      esac
10466      ;;
10467
10468    interix[3-9]*)
10469      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10470      # Instead, we relocate shared libraries at runtime.
10471      ;;
10472
10473    msdosdjgpp*)
10474      # Just because we use GCC doesn't mean we suddenly get shared libraries
10475      # on systems that don't support them.
10476      lt_prog_compiler_can_build_shared=no
10477      enable_shared=no
10478      ;;
10479
10480    *nto* | *qnx*)
10481      # QNX uses GNU C++, but need to define -shared option too, otherwise
10482      # it will coredump.
10483      lt_prog_compiler_pic='-fPIC -shared'
10484      ;;
10485
10486    sysv4*MP*)
10487      if test -d /usr/nec; then
10488	lt_prog_compiler_pic=-Kconform_pic
10489      fi
10490      ;;
10491
10492    *)
10493      lt_prog_compiler_pic='-fPIC'
10494      ;;
10495    esac
10496
10497    case $cc_basename in
10498    nvcc*) # Cuda Compiler Driver 2.2
10499      lt_prog_compiler_wl='-Xlinker '
10500      if test -n "$lt_prog_compiler_pic"; then
10501        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10502      fi
10503      ;;
10504    esac
10505  else
10506    # PORTME Check for flag to pass linker flags through the system compiler.
10507    case $host_os in
10508    aix*)
10509      lt_prog_compiler_wl='-Wl,'
10510      if test ia64 = "$host_cpu"; then
10511	# AIX 5 now supports IA64 processor
10512	lt_prog_compiler_static='-Bstatic'
10513      else
10514	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10515      fi
10516      ;;
10517
10518    darwin* | rhapsody*)
10519      # PIC is the default on this platform
10520      # Common symbols not allowed in MH_DYLIB files
10521      lt_prog_compiler_pic='-fno-common'
10522      case $cc_basename in
10523      nagfor*)
10524        # NAG Fortran compiler
10525        lt_prog_compiler_wl='-Wl,-Wl,,'
10526        lt_prog_compiler_pic='-PIC'
10527        lt_prog_compiler_static='-Bstatic'
10528        ;;
10529      esac
10530      ;;
10531
10532    mingw* | cygwin* | pw32* | os2* | cegcc*)
10533      # This hack is so that the source file can tell whether it is being
10534      # built for inclusion in a dll (and should export symbols for example).
10535      lt_prog_compiler_pic='-DDLL_EXPORT'
10536      case $host_os in
10537      os2*)
10538	lt_prog_compiler_static='$wl-static'
10539	;;
10540      esac
10541      ;;
10542
10543    hpux9* | hpux10* | hpux11*)
10544      lt_prog_compiler_wl='-Wl,'
10545      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10546      # not for PA HP-UX.
10547      case $host_cpu in
10548      hppa*64*|ia64*)
10549	# +Z the default
10550	;;
10551      *)
10552	lt_prog_compiler_pic='+Z'
10553	;;
10554      esac
10555      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10556      lt_prog_compiler_static='$wl-a ${wl}archive'
10557      ;;
10558
10559    irix5* | irix6* | nonstopux*)
10560      lt_prog_compiler_wl='-Wl,'
10561      # PIC (with -KPIC) is the default.
10562      lt_prog_compiler_static='-non_shared'
10563      ;;
10564
10565    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10566      case $cc_basename in
10567      # old Intel for x86_64, which still supported -KPIC.
10568      ecc*)
10569	lt_prog_compiler_wl='-Wl,'
10570	lt_prog_compiler_pic='-KPIC'
10571	lt_prog_compiler_static='-static'
10572        ;;
10573      # icc used to be incompatible with GCC.
10574      # ICC 10 doesn't accept -KPIC any more.
10575      icc* | ifort*)
10576	lt_prog_compiler_wl='-Wl,'
10577	lt_prog_compiler_pic='-fPIC'
10578	lt_prog_compiler_static='-static'
10579        ;;
10580      # Lahey Fortran 8.1.
10581      lf95*)
10582	lt_prog_compiler_wl='-Wl,'
10583	lt_prog_compiler_pic='--shared'
10584	lt_prog_compiler_static='--static'
10585	;;
10586      nagfor*)
10587	# NAG Fortran compiler
10588	lt_prog_compiler_wl='-Wl,-Wl,,'
10589	lt_prog_compiler_pic='-PIC'
10590	lt_prog_compiler_static='-Bstatic'
10591	;;
10592      tcc*)
10593	# Fabrice Bellard et al's Tiny C Compiler
10594	lt_prog_compiler_wl='-Wl,'
10595	lt_prog_compiler_pic='-fPIC'
10596	lt_prog_compiler_static='-static'
10597	;;
10598      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10599        # Portland Group compilers (*not* the Pentium gcc compiler,
10600	# which looks to be a dead project)
10601	lt_prog_compiler_wl='-Wl,'
10602	lt_prog_compiler_pic='-fpic'
10603	lt_prog_compiler_static='-Bstatic'
10604        ;;
10605      ccc*)
10606        lt_prog_compiler_wl='-Wl,'
10607        # All Alpha code is PIC.
10608        lt_prog_compiler_static='-non_shared'
10609        ;;
10610      xl* | bgxl* | bgf* | mpixl*)
10611	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10612	lt_prog_compiler_wl='-Wl,'
10613	lt_prog_compiler_pic='-qpic'
10614	lt_prog_compiler_static='-qstaticlink'
10615	;;
10616      *)
10617	case `$CC -V 2>&1 | sed 5q` in
10618	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10619	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10620	  lt_prog_compiler_pic='-KPIC'
10621	  lt_prog_compiler_static='-Bstatic'
10622	  lt_prog_compiler_wl=''
10623	  ;;
10624	*Sun\ F* | *Sun*Fortran*)
10625	  lt_prog_compiler_pic='-KPIC'
10626	  lt_prog_compiler_static='-Bstatic'
10627	  lt_prog_compiler_wl='-Qoption ld '
10628	  ;;
10629	*Sun\ C*)
10630	  # Sun C 5.9
10631	  lt_prog_compiler_pic='-KPIC'
10632	  lt_prog_compiler_static='-Bstatic'
10633	  lt_prog_compiler_wl='-Wl,'
10634	  ;;
10635        *Intel*\ [CF]*Compiler*)
10636	  lt_prog_compiler_wl='-Wl,'
10637	  lt_prog_compiler_pic='-fPIC'
10638	  lt_prog_compiler_static='-static'
10639	  ;;
10640	*Portland\ Group*)
10641	  lt_prog_compiler_wl='-Wl,'
10642	  lt_prog_compiler_pic='-fpic'
10643	  lt_prog_compiler_static='-Bstatic'
10644	  ;;
10645	esac
10646	;;
10647      esac
10648      ;;
10649
10650    newsos6)
10651      lt_prog_compiler_pic='-KPIC'
10652      lt_prog_compiler_static='-Bstatic'
10653      ;;
10654
10655    *nto* | *qnx*)
10656      # QNX uses GNU C++, but need to define -shared option too, otherwise
10657      # it will coredump.
10658      lt_prog_compiler_pic='-fPIC -shared'
10659      ;;
10660
10661    osf3* | osf4* | osf5*)
10662      lt_prog_compiler_wl='-Wl,'
10663      # All OSF/1 code is PIC.
10664      lt_prog_compiler_static='-non_shared'
10665      ;;
10666
10667    rdos*)
10668      lt_prog_compiler_static='-non_shared'
10669      ;;
10670
10671    solaris*)
10672      lt_prog_compiler_pic='-KPIC'
10673      lt_prog_compiler_static='-Bstatic'
10674      case $cc_basename in
10675      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10676	lt_prog_compiler_wl='-Qoption ld ';;
10677      *)
10678	lt_prog_compiler_wl='-Wl,';;
10679      esac
10680      ;;
10681
10682    sunos4*)
10683      lt_prog_compiler_wl='-Qoption ld '
10684      lt_prog_compiler_pic='-PIC'
10685      lt_prog_compiler_static='-Bstatic'
10686      ;;
10687
10688    sysv4 | sysv4.2uw2* | sysv4.3*)
10689      lt_prog_compiler_wl='-Wl,'
10690      lt_prog_compiler_pic='-KPIC'
10691      lt_prog_compiler_static='-Bstatic'
10692      ;;
10693
10694    sysv4*MP*)
10695      if test -d /usr/nec; then
10696	lt_prog_compiler_pic='-Kconform_pic'
10697	lt_prog_compiler_static='-Bstatic'
10698      fi
10699      ;;
10700
10701    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10702      lt_prog_compiler_wl='-Wl,'
10703      lt_prog_compiler_pic='-KPIC'
10704      lt_prog_compiler_static='-Bstatic'
10705      ;;
10706
10707    unicos*)
10708      lt_prog_compiler_wl='-Wl,'
10709      lt_prog_compiler_can_build_shared=no
10710      ;;
10711
10712    uts4*)
10713      lt_prog_compiler_pic='-pic'
10714      lt_prog_compiler_static='-Bstatic'
10715      ;;
10716
10717    *)
10718      lt_prog_compiler_can_build_shared=no
10719      ;;
10720    esac
10721  fi
10722
10723case $host_os in
10724  # For platforms that do not support PIC, -DPIC is meaningless:
10725  *djgpp*)
10726    lt_prog_compiler_pic=
10727    ;;
10728  *)
10729    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10730    ;;
10731esac
10732
10733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10734$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10735if ${lt_cv_prog_compiler_pic+:} false; then :
10736  $as_echo_n "(cached) " >&6
10737else
10738  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10739fi
10740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10741$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10742lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10743
10744#
10745# Check to make sure the PIC flag actually works.
10746#
10747if test -n "$lt_prog_compiler_pic"; then
10748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10749$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10750if ${lt_cv_prog_compiler_pic_works+:} false; then :
10751  $as_echo_n "(cached) " >&6
10752else
10753  lt_cv_prog_compiler_pic_works=no
10754   ac_outfile=conftest.$ac_objext
10755   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10756   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10757   # Insert the option either (1) after the last *FLAGS variable, or
10758   # (2) before a word containing "conftest.", or (3) at the end.
10759   # Note that $ac_compile itself does not contain backslashes and begins
10760   # with a dollar sign (not a hyphen), so the echo should work correctly.
10761   # The option is referenced via a variable to avoid confusing sed.
10762   lt_compile=`echo "$ac_compile" | $SED \
10763   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10764   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10765   -e 's:$: $lt_compiler_flag:'`
10766   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10767   (eval "$lt_compile" 2>conftest.err)
10768   ac_status=$?
10769   cat conftest.err >&5
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   if (exit $ac_status) && test -s "$ac_outfile"; then
10772     # The compiler can only warn and ignore the option if not recognized
10773     # So say no if there are warnings other than the usual output.
10774     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10775     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10776     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10777       lt_cv_prog_compiler_pic_works=yes
10778     fi
10779   fi
10780   $RM conftest*
10781
10782fi
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10784$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10785
10786if test yes = "$lt_cv_prog_compiler_pic_works"; then
10787    case $lt_prog_compiler_pic in
10788     "" | " "*) ;;
10789     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10790     esac
10791else
10792    lt_prog_compiler_pic=
10793     lt_prog_compiler_can_build_shared=no
10794fi
10795
10796fi
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808#
10809# Check to make sure the static flag actually works.
10810#
10811wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10813$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10814if ${lt_cv_prog_compiler_static_works+:} false; then :
10815  $as_echo_n "(cached) " >&6
10816else
10817  lt_cv_prog_compiler_static_works=no
10818   save_LDFLAGS=$LDFLAGS
10819   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10820   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10821   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10822     # The linker can only warn and ignore the option if not recognized
10823     # So say no if there are warnings
10824     if test -s conftest.err; then
10825       # Append any errors to the config.log.
10826       cat conftest.err 1>&5
10827       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10828       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10829       if diff conftest.exp conftest.er2 >/dev/null; then
10830         lt_cv_prog_compiler_static_works=yes
10831       fi
10832     else
10833       lt_cv_prog_compiler_static_works=yes
10834     fi
10835   fi
10836   $RM -r conftest*
10837   LDFLAGS=$save_LDFLAGS
10838
10839fi
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10841$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10842
10843if test yes = "$lt_cv_prog_compiler_static_works"; then
10844    :
10845else
10846    lt_prog_compiler_static=
10847fi
10848
10849
10850
10851
10852
10853
10854
10855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10856$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10857if ${lt_cv_prog_compiler_c_o+:} false; then :
10858  $as_echo_n "(cached) " >&6
10859else
10860  lt_cv_prog_compiler_c_o=no
10861   $RM -r conftest 2>/dev/null
10862   mkdir conftest
10863   cd conftest
10864   mkdir out
10865   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10866
10867   lt_compiler_flag="-o out/conftest2.$ac_objext"
10868   # Insert the option either (1) after the last *FLAGS variable, or
10869   # (2) before a word containing "conftest.", or (3) at the end.
10870   # Note that $ac_compile itself does not contain backslashes and begins
10871   # with a dollar sign (not a hyphen), so the echo should work correctly.
10872   lt_compile=`echo "$ac_compile" | $SED \
10873   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10874   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10875   -e 's:$: $lt_compiler_flag:'`
10876   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10877   (eval "$lt_compile" 2>out/conftest.err)
10878   ac_status=$?
10879   cat out/conftest.err >&5
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10882   then
10883     # The compiler can only warn and ignore the option if not recognized
10884     # So say no if there are warnings
10885     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10886     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10887     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10888       lt_cv_prog_compiler_c_o=yes
10889     fi
10890   fi
10891   chmod u+w . 2>&5
10892   $RM conftest*
10893   # SGI C++ compiler will create directory out/ii_files/ for
10894   # template instantiation
10895   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10896   $RM out/* && rmdir out
10897   cd ..
10898   $RM -r conftest
10899   $RM conftest*
10900
10901fi
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10903$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10904
10905
10906
10907
10908
10909
10910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10911$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10912if ${lt_cv_prog_compiler_c_o+:} false; then :
10913  $as_echo_n "(cached) " >&6
10914else
10915  lt_cv_prog_compiler_c_o=no
10916   $RM -r conftest 2>/dev/null
10917   mkdir conftest
10918   cd conftest
10919   mkdir out
10920   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10921
10922   lt_compiler_flag="-o out/conftest2.$ac_objext"
10923   # Insert the option either (1) after the last *FLAGS variable, or
10924   # (2) before a word containing "conftest.", or (3) at the end.
10925   # Note that $ac_compile itself does not contain backslashes and begins
10926   # with a dollar sign (not a hyphen), so the echo should work correctly.
10927   lt_compile=`echo "$ac_compile" | $SED \
10928   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10929   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10930   -e 's:$: $lt_compiler_flag:'`
10931   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10932   (eval "$lt_compile" 2>out/conftest.err)
10933   ac_status=$?
10934   cat out/conftest.err >&5
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10937   then
10938     # The compiler can only warn and ignore the option if not recognized
10939     # So say no if there are warnings
10940     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10941     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10942     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10943       lt_cv_prog_compiler_c_o=yes
10944     fi
10945   fi
10946   chmod u+w . 2>&5
10947   $RM conftest*
10948   # SGI C++ compiler will create directory out/ii_files/ for
10949   # template instantiation
10950   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10951   $RM out/* && rmdir out
10952   cd ..
10953   $RM -r conftest
10954   $RM conftest*
10955
10956fi
10957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10958$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10959
10960
10961
10962
10963hard_links=nottested
10964if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10965  # do not overwrite the value of need_locks provided by the user
10966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10967$as_echo_n "checking if we can lock with hard links... " >&6; }
10968  hard_links=yes
10969  $RM conftest*
10970  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10971  touch conftest.a
10972  ln conftest.a conftest.b 2>&5 || hard_links=no
10973  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10975$as_echo "$hard_links" >&6; }
10976  if test no = "$hard_links"; then
10977    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10978$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10979    need_locks=warn
10980  fi
10981else
10982  need_locks=no
10983fi
10984
10985
10986
10987
10988
10989
10990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10991$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10992
10993  runpath_var=
10994  allow_undefined_flag=
10995  always_export_symbols=no
10996  archive_cmds=
10997  archive_expsym_cmds=
10998  compiler_needs_object=no
10999  enable_shared_with_static_runtimes=no
11000  export_dynamic_flag_spec=
11001  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11002  hardcode_automatic=no
11003  hardcode_direct=no
11004  hardcode_direct_absolute=no
11005  hardcode_libdir_flag_spec=
11006  hardcode_libdir_separator=
11007  hardcode_minus_L=no
11008  hardcode_shlibpath_var=unsupported
11009  inherit_rpath=no
11010  link_all_deplibs=unknown
11011  module_cmds=
11012  module_expsym_cmds=
11013  old_archive_from_new_cmds=
11014  old_archive_from_expsyms_cmds=
11015  thread_safe_flag_spec=
11016  whole_archive_flag_spec=
11017  # include_expsyms should be a list of space-separated symbols to be *always*
11018  # included in the symbol list
11019  include_expsyms=
11020  # exclude_expsyms can be an extended regexp of symbols to exclude
11021  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11022  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11023  # as well as any symbol that contains 'd'.
11024  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11025  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11026  # platforms (ab)use it in PIC code, but their linkers get confused if
11027  # the symbol is explicitly referenced.  Since portable code cannot
11028  # rely on this symbol name, it's probably fine to never include it in
11029  # preloaded symbol tables.
11030  # Exclude shared library initialization/finalization symbols.
11031  extract_expsyms_cmds=
11032
11033  case $host_os in
11034  cygwin* | mingw* | pw32* | cegcc*)
11035    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11036    # When not using gcc, we currently assume that we are using
11037    # Microsoft Visual C++.
11038    if test yes != "$GCC"; then
11039      with_gnu_ld=no
11040    fi
11041    ;;
11042  interix*)
11043    # we just hope/assume this is gcc and not c89 (= MSVC++)
11044    with_gnu_ld=yes
11045    ;;
11046  openbsd* | bitrig*)
11047    with_gnu_ld=no
11048    ;;
11049  esac
11050
11051  ld_shlibs=yes
11052
11053  # On some targets, GNU ld is compatible enough with the native linker
11054  # that we're better off using the native interface for both.
11055  lt_use_gnu_ld_interface=no
11056  if test yes = "$with_gnu_ld"; then
11057    case $host_os in
11058      aix*)
11059	# The AIX port of GNU ld has always aspired to compatibility
11060	# with the native linker.  However, as the warning in the GNU ld
11061	# block says, versions before 2.19.5* couldn't really create working
11062	# shared libraries, regardless of the interface used.
11063	case `$LD -v 2>&1` in
11064	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11065	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11066	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11067	  *)
11068	    lt_use_gnu_ld_interface=yes
11069	    ;;
11070	esac
11071	;;
11072      *)
11073	lt_use_gnu_ld_interface=yes
11074	;;
11075    esac
11076  fi
11077
11078  if test yes = "$lt_use_gnu_ld_interface"; then
11079    # If archive_cmds runs LD, not CC, wlarc should be empty
11080    wlarc='$wl'
11081
11082    # Set some defaults for GNU ld with shared library support. These
11083    # are reset later if shared libraries are not supported. Putting them
11084    # here allows them to be overridden if necessary.
11085    runpath_var=LD_RUN_PATH
11086    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11087    export_dynamic_flag_spec='$wl--export-dynamic'
11088    # ancient GNU ld didn't support --whole-archive et. al.
11089    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11090      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11091    else
11092      whole_archive_flag_spec=
11093    fi
11094    supports_anon_versioning=no
11095    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11096      *GNU\ gold*) supports_anon_versioning=yes ;;
11097      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11098      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11099      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11100      *\ 2.11.*) ;; # other 2.11 versions
11101      *) supports_anon_versioning=yes ;;
11102    esac
11103
11104    # See if GNU ld supports shared libraries.
11105    case $host_os in
11106    aix[3-9]*)
11107      # On AIX/PPC, the GNU linker is very broken
11108      if test ia64 != "$host_cpu"; then
11109	ld_shlibs=no
11110	cat <<_LT_EOF 1>&2
11111
11112*** Warning: the GNU linker, at least up to release 2.19, is reported
11113*** to be unable to reliably create shared libraries on AIX.
11114*** Therefore, libtool is disabling shared libraries support.  If you
11115*** really care for shared libraries, you may want to install binutils
11116*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11117*** You will then need to restart the configuration process.
11118
11119_LT_EOF
11120      fi
11121      ;;
11122
11123    amigaos*)
11124      case $host_cpu in
11125      powerpc)
11126            # see comment about AmigaOS4 .so support
11127            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11128            archive_expsym_cmds=''
11129        ;;
11130      m68k)
11131            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)'
11132            hardcode_libdir_flag_spec='-L$libdir'
11133            hardcode_minus_L=yes
11134        ;;
11135      esac
11136      ;;
11137
11138    beos*)
11139      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11140	allow_undefined_flag=unsupported
11141	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11142	# support --undefined.  This deserves some investigation.  FIXME
11143	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11144      else
11145	ld_shlibs=no
11146      fi
11147      ;;
11148
11149    cygwin* | mingw* | pw32* | cegcc*)
11150      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11151      # as there is no search path for DLLs.
11152      hardcode_libdir_flag_spec='-L$libdir'
11153      export_dynamic_flag_spec='$wl--export-all-symbols'
11154      allow_undefined_flag=unsupported
11155      always_export_symbols=no
11156      enable_shared_with_static_runtimes=yes
11157      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11158      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11159
11160      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11161        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11162	# If the export-symbols file already is a .def file, use it as
11163	# is; otherwise, prepend EXPORTS...
11164	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11165          cp $export_symbols $output_objdir/$soname.def;
11166        else
11167          echo EXPORTS > $output_objdir/$soname.def;
11168          cat $export_symbols >> $output_objdir/$soname.def;
11169        fi~
11170        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11171      else
11172	ld_shlibs=no
11173      fi
11174      ;;
11175
11176    haiku*)
11177      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11178      link_all_deplibs=yes
11179      ;;
11180
11181    os2*)
11182      hardcode_libdir_flag_spec='-L$libdir'
11183      hardcode_minus_L=yes
11184      allow_undefined_flag=unsupported
11185      shrext_cmds=.dll
11186      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11187	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11188	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11189	$ECHO EXPORTS >> $output_objdir/$libname.def~
11190	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11191	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11192	emximp -o $lib $output_objdir/$libname.def'
11193      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11194	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11195	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11196	$ECHO EXPORTS >> $output_objdir/$libname.def~
11197	prefix_cmds="$SED"~
11198	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11199	  prefix_cmds="$prefix_cmds -e 1d";
11200	fi~
11201	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11202	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11203	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11204	emximp -o $lib $output_objdir/$libname.def'
11205      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11206      enable_shared_with_static_runtimes=yes
11207      ;;
11208
11209    interix[3-9]*)
11210      hardcode_direct=no
11211      hardcode_shlibpath_var=no
11212      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11213      export_dynamic_flag_spec='$wl-E'
11214      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11215      # Instead, shared libraries are loaded at an image base (0x10000000 by
11216      # default) and relocated if they conflict, which is a slow very memory
11217      # consuming and fragmenting process.  To avoid this, we pick a random,
11218      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11219      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11220      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11221      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11222      ;;
11223
11224    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11225      tmp_diet=no
11226      if test linux-dietlibc = "$host_os"; then
11227	case $cc_basename in
11228	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11229	esac
11230      fi
11231      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11232	 && test no = "$tmp_diet"
11233      then
11234	tmp_addflag=' $pic_flag'
11235	tmp_sharedflag='-shared'
11236	case $cc_basename,$host_cpu in
11237        pgcc*)				# Portland Group C compiler
11238	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11239	  tmp_addflag=' $pic_flag'
11240	  ;;
11241	pgf77* | pgf90* | pgf95* | pgfortran*)
11242					# Portland Group f77 and f90 compilers
11243	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11244	  tmp_addflag=' $pic_flag -Mnomain' ;;
11245	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11246	  tmp_addflag=' -i_dynamic' ;;
11247	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11248	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11249	ifc* | ifort*)			# Intel Fortran compiler
11250	  tmp_addflag=' -nofor_main' ;;
11251	lf95*)				# Lahey Fortran 8.1
11252	  whole_archive_flag_spec=
11253	  tmp_sharedflag='--shared' ;;
11254        nagfor*)                        # NAGFOR 5.3
11255          tmp_sharedflag='-Wl,-shared' ;;
11256	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11257	  tmp_sharedflag='-qmkshrobj'
11258	  tmp_addflag= ;;
11259	nvcc*)	# Cuda Compiler Driver 2.2
11260	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11261	  compiler_needs_object=yes
11262	  ;;
11263	esac
11264	case `$CC -V 2>&1 | sed 5q` in
11265	*Sun\ C*)			# Sun C 5.9
11266	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11267	  compiler_needs_object=yes
11268	  tmp_sharedflag='-G' ;;
11269	*Sun\ F*)			# Sun Fortran 8.3
11270	  tmp_sharedflag='-G' ;;
11271	esac
11272	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11273
11274        if test yes = "$supports_anon_versioning"; then
11275          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11276            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11277            echo "local: *; };" >> $output_objdir/$libname.ver~
11278            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11279        fi
11280
11281	case $cc_basename in
11282	tcc*)
11283	  export_dynamic_flag_spec='-rdynamic'
11284	  ;;
11285	xlf* | bgf* | bgxlf* | mpixlf*)
11286	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11287	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11288	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11289	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11290	  if test yes = "$supports_anon_versioning"; then
11291	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11292              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11293              echo "local: *; };" >> $output_objdir/$libname.ver~
11294              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11295	  fi
11296	  ;;
11297	esac
11298      else
11299        ld_shlibs=no
11300      fi
11301      ;;
11302
11303    netbsd*)
11304      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11305	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11306	wlarc=
11307      else
11308	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11309	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11310      fi
11311      ;;
11312
11313    solaris*)
11314      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11315	ld_shlibs=no
11316	cat <<_LT_EOF 1>&2
11317
11318*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11319*** create shared libraries on Solaris systems.  Therefore, libtool
11320*** is disabling shared libraries support.  We urge you to upgrade GNU
11321*** binutils to release 2.9.1 or newer.  Another option is to modify
11322*** your PATH or compiler configuration so that the native linker is
11323*** used, and then restart.
11324
11325_LT_EOF
11326      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11327	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11328	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11329      else
11330	ld_shlibs=no
11331      fi
11332      ;;
11333
11334    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11335      case `$LD -v 2>&1` in
11336        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11337	ld_shlibs=no
11338	cat <<_LT_EOF 1>&2
11339
11340*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11341*** reliably create shared libraries on SCO systems.  Therefore, libtool
11342*** is disabling shared libraries support.  We urge you to upgrade GNU
11343*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11344*** your PATH or compiler configuration so that the native linker is
11345*** used, and then restart.
11346
11347_LT_EOF
11348	;;
11349	*)
11350	  # For security reasons, it is highly recommended that you always
11351	  # use absolute paths for naming shared libraries, and exclude the
11352	  # DT_RUNPATH tag from executables and libraries.  But doing so
11353	  # requires that you compile everything twice, which is a pain.
11354	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11355	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11356	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11357	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11358	  else
11359	    ld_shlibs=no
11360	  fi
11361	;;
11362      esac
11363      ;;
11364
11365    sunos4*)
11366      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11367      wlarc=
11368      hardcode_direct=yes
11369      hardcode_shlibpath_var=no
11370      ;;
11371
11372    *)
11373      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11374	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11375	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11376      else
11377	ld_shlibs=no
11378      fi
11379      ;;
11380    esac
11381
11382    if test no = "$ld_shlibs"; then
11383      runpath_var=
11384      hardcode_libdir_flag_spec=
11385      export_dynamic_flag_spec=
11386      whole_archive_flag_spec=
11387    fi
11388  else
11389    # PORTME fill in a description of your system's linker (not GNU ld)
11390    case $host_os in
11391    aix3*)
11392      allow_undefined_flag=unsupported
11393      always_export_symbols=yes
11394      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'
11395      # Note: this linker hardcodes the directories in LIBPATH if there
11396      # are no directories specified by -L.
11397      hardcode_minus_L=yes
11398      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11399	# Neither direct hardcoding nor static linking is supported with a
11400	# broken collect2.
11401	hardcode_direct=unsupported
11402      fi
11403      ;;
11404
11405    aix[4-9]*)
11406      if test ia64 = "$host_cpu"; then
11407	# On IA64, the linker does run time linking by default, so we don't
11408	# have to do anything special.
11409	aix_use_runtimelinking=no
11410	exp_sym_flag='-Bexport'
11411	no_entry_flag=
11412      else
11413	# If we're using GNU nm, then we don't want the "-C" option.
11414	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11415	# Without the "-l" option, or with the "-B" option, AIX nm treats
11416	# weak defined symbols like other global defined symbols, whereas
11417	# GNU nm marks them as "W".
11418	# While the 'weak' keyword is ignored in the Export File, we need
11419	# it in the Import File for the 'aix-soname' feature, so we have
11420	# to replace the "-B" option with "-P" for AIX nm.
11421	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11422	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11423	else
11424	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11425	fi
11426	aix_use_runtimelinking=no
11427
11428	# Test if we are trying to use run time linking or normal
11429	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11430	# have runtime linking enabled, and use it for executables.
11431	# For shared libraries, we enable/disable runtime linking
11432	# depending on the kind of the shared library created -
11433	# when "with_aix_soname,aix_use_runtimelinking" is:
11434	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11435	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11436	#            lib.a           static archive
11437	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11438	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11439	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11440	#            lib.a(lib.so.V) shared, rtl:no
11441	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11442	#            lib.a           static archive
11443	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11444	  for ld_flag in $LDFLAGS; do
11445	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11446	    aix_use_runtimelinking=yes
11447	    break
11448	  fi
11449	  done
11450	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11451	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11452	    # so we don't have lib.a shared libs to link our executables.
11453	    # We have to force runtime linking in this case.
11454	    aix_use_runtimelinking=yes
11455	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11456	  fi
11457	  ;;
11458	esac
11459
11460	exp_sym_flag='-bexport'
11461	no_entry_flag='-bnoentry'
11462      fi
11463
11464      # When large executables or shared objects are built, AIX ld can
11465      # have problems creating the table of contents.  If linking a library
11466      # or program results in "error TOC overflow" add -mminimal-toc to
11467      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11468      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11469
11470      archive_cmds=''
11471      hardcode_direct=yes
11472      hardcode_direct_absolute=yes
11473      hardcode_libdir_separator=':'
11474      link_all_deplibs=yes
11475      file_list_spec='$wl-f,'
11476      case $with_aix_soname,$aix_use_runtimelinking in
11477      aix,*) ;; # traditional, no import file
11478      svr4,* | *,yes) # use import file
11479	# The Import File defines what to hardcode.
11480	hardcode_direct=no
11481	hardcode_direct_absolute=no
11482	;;
11483      esac
11484
11485      if test yes = "$GCC"; then
11486	case $host_os in aix4.[012]|aix4.[012].*)
11487	# We only want to do this on AIX 4.2 and lower, the check
11488	# below for broken collect2 doesn't work under 4.3+
11489	  collect2name=`$CC -print-prog-name=collect2`
11490	  if test -f "$collect2name" &&
11491	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11492	  then
11493	  # We have reworked collect2
11494	  :
11495	  else
11496	  # We have old collect2
11497	  hardcode_direct=unsupported
11498	  # It fails to find uninstalled libraries when the uninstalled
11499	  # path is not listed in the libpath.  Setting hardcode_minus_L
11500	  # to unsupported forces relinking
11501	  hardcode_minus_L=yes
11502	  hardcode_libdir_flag_spec='-L$libdir'
11503	  hardcode_libdir_separator=
11504	  fi
11505	  ;;
11506	esac
11507	shared_flag='-shared'
11508	if test yes = "$aix_use_runtimelinking"; then
11509	  shared_flag="$shared_flag "'$wl-G'
11510	fi
11511	# Need to ensure runtime linking is disabled for the traditional
11512	# shared library, or the linker may eventually find shared libraries
11513	# /with/ Import File - we do not want to mix them.
11514	shared_flag_aix='-shared'
11515	shared_flag_svr4='-shared $wl-G'
11516      else
11517	# not using gcc
11518	if test ia64 = "$host_cpu"; then
11519	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11520	# chokes on -Wl,-G. The following line is correct:
11521	  shared_flag='-G'
11522	else
11523	  if test yes = "$aix_use_runtimelinking"; then
11524	    shared_flag='$wl-G'
11525	  else
11526	    shared_flag='$wl-bM:SRE'
11527	  fi
11528	  shared_flag_aix='$wl-bM:SRE'
11529	  shared_flag_svr4='$wl-G'
11530	fi
11531      fi
11532
11533      export_dynamic_flag_spec='$wl-bexpall'
11534      # It seems that -bexpall does not export symbols beginning with
11535      # underscore (_), so it is better to generate a list of symbols to export.
11536      always_export_symbols=yes
11537      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11538	# Warning - without using the other runtime loading flags (-brtl),
11539	# -berok will link without error, but may produce a broken library.
11540	allow_undefined_flag='-berok'
11541        # Determine the default libpath from the value encoded in an
11542        # empty executable.
11543        if test set = "${lt_cv_aix_libpath+set}"; then
11544  aix_libpath=$lt_cv_aix_libpath
11545else
11546  if ${lt_cv_aix_libpath_+:} false; then :
11547  $as_echo_n "(cached) " >&6
11548else
11549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550/* end confdefs.h.  */
11551
11552int
11553main ()
11554{
11555
11556  ;
11557  return 0;
11558}
11559_ACEOF
11560if ac_fn_c_try_link "$LINENO"; then :
11561
11562  lt_aix_libpath_sed='
11563      /Import File Strings/,/^$/ {
11564	  /^0/ {
11565	      s/^0  *\([^ ]*\) *$/\1/
11566	      p
11567	  }
11568      }'
11569  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11570  # Check for a 64-bit object if we didn't find anything.
11571  if test -z "$lt_cv_aix_libpath_"; then
11572    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11573  fi
11574fi
11575rm -f core conftest.err conftest.$ac_objext \
11576    conftest$ac_exeext conftest.$ac_ext
11577  if test -z "$lt_cv_aix_libpath_"; then
11578    lt_cv_aix_libpath_=/usr/lib:/lib
11579  fi
11580
11581fi
11582
11583  aix_libpath=$lt_cv_aix_libpath_
11584fi
11585
11586        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11587        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11588      else
11589	if test ia64 = "$host_cpu"; then
11590	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11591	  allow_undefined_flag="-z nodefs"
11592	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11593	else
11594	 # Determine the default libpath from the value encoded in an
11595	 # empty executable.
11596	 if test set = "${lt_cv_aix_libpath+set}"; then
11597  aix_libpath=$lt_cv_aix_libpath
11598else
11599  if ${lt_cv_aix_libpath_+:} false; then :
11600  $as_echo_n "(cached) " >&6
11601else
11602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603/* end confdefs.h.  */
11604
11605int
11606main ()
11607{
11608
11609  ;
11610  return 0;
11611}
11612_ACEOF
11613if ac_fn_c_try_link "$LINENO"; then :
11614
11615  lt_aix_libpath_sed='
11616      /Import File Strings/,/^$/ {
11617	  /^0/ {
11618	      s/^0  *\([^ ]*\) *$/\1/
11619	      p
11620	  }
11621      }'
11622  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11623  # Check for a 64-bit object if we didn't find anything.
11624  if test -z "$lt_cv_aix_libpath_"; then
11625    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11626  fi
11627fi
11628rm -f core conftest.err conftest.$ac_objext \
11629    conftest$ac_exeext conftest.$ac_ext
11630  if test -z "$lt_cv_aix_libpath_"; then
11631    lt_cv_aix_libpath_=/usr/lib:/lib
11632  fi
11633
11634fi
11635
11636  aix_libpath=$lt_cv_aix_libpath_
11637fi
11638
11639	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11640	  # Warning - without using the other run time loading flags,
11641	  # -berok will link without error, but may produce a broken library.
11642	  no_undefined_flag=' $wl-bernotok'
11643	  allow_undefined_flag=' $wl-berok'
11644	  if test yes = "$with_gnu_ld"; then
11645	    # We only use this code for GNU lds that support --whole-archive.
11646	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11647	  else
11648	    # Exported symbols can be pulled into shared objects from archives
11649	    whole_archive_flag_spec='$convenience'
11650	  fi
11651	  archive_cmds_need_lc=yes
11652	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11653	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11654	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11655	  if test svr4 != "$with_aix_soname"; then
11656	    # This is similar to how AIX traditionally builds its shared libraries.
11657	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11658	  fi
11659	  if test aix != "$with_aix_soname"; then
11660	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11661	  else
11662	    # used by -dlpreopen to get the symbols
11663	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11664	  fi
11665	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11666	fi
11667      fi
11668      ;;
11669
11670    amigaos*)
11671      case $host_cpu in
11672      powerpc)
11673            # see comment about AmigaOS4 .so support
11674            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11675            archive_expsym_cmds=''
11676        ;;
11677      m68k)
11678            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)'
11679            hardcode_libdir_flag_spec='-L$libdir'
11680            hardcode_minus_L=yes
11681        ;;
11682      esac
11683      ;;
11684
11685    bsdi[45]*)
11686      export_dynamic_flag_spec=-rdynamic
11687      ;;
11688
11689    cygwin* | mingw* | pw32* | cegcc*)
11690      # When not using gcc, we currently assume that we are using
11691      # Microsoft Visual C++.
11692      # hardcode_libdir_flag_spec is actually meaningless, as there is
11693      # no search path for DLLs.
11694      case $cc_basename in
11695      cl*)
11696	# Native MSVC
11697	hardcode_libdir_flag_spec=' '
11698	allow_undefined_flag=unsupported
11699	always_export_symbols=yes
11700	file_list_spec='@'
11701	# Tell ltmain to make .lib files, not .a files.
11702	libext=lib
11703	# Tell ltmain to make .dll files, not .so files.
11704	shrext_cmds=.dll
11705	# FIXME: Setting linknames here is a bad hack.
11706	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11707	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11708            cp "$export_symbols" "$output_objdir/$soname.def";
11709            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11710          else
11711            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11712          fi~
11713          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11714          linknames='
11715	# The linker will not automatically build a static lib if we build a DLL.
11716	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11717	enable_shared_with_static_runtimes=yes
11718	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11719	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11720	# Don't use ranlib
11721	old_postinstall_cmds='chmod 644 $oldlib'
11722	postlink_cmds='lt_outputfile="@OUTPUT@"~
11723          lt_tool_outputfile="@TOOL_OUTPUT@"~
11724          case $lt_outputfile in
11725            *.exe|*.EXE) ;;
11726            *)
11727              lt_outputfile=$lt_outputfile.exe
11728              lt_tool_outputfile=$lt_tool_outputfile.exe
11729              ;;
11730          esac~
11731          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11732            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11733            $RM "$lt_outputfile.manifest";
11734          fi'
11735	;;
11736      *)
11737	# Assume MSVC wrapper
11738	hardcode_libdir_flag_spec=' '
11739	allow_undefined_flag=unsupported
11740	# Tell ltmain to make .lib files, not .a files.
11741	libext=lib
11742	# Tell ltmain to make .dll files, not .so files.
11743	shrext_cmds=.dll
11744	# FIXME: Setting linknames here is a bad hack.
11745	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11746	# The linker will automatically build a .lib file if we build a DLL.
11747	old_archive_from_new_cmds='true'
11748	# FIXME: Should let the user specify the lib program.
11749	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11750	enable_shared_with_static_runtimes=yes
11751	;;
11752      esac
11753      ;;
11754
11755    darwin* | rhapsody*)
11756
11757
11758  archive_cmds_need_lc=no
11759  hardcode_direct=no
11760  hardcode_automatic=yes
11761  hardcode_shlibpath_var=unsupported
11762  if test yes = "$lt_cv_ld_force_load"; then
11763    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11764
11765  else
11766    whole_archive_flag_spec=''
11767  fi
11768  link_all_deplibs=yes
11769  allow_undefined_flag=$_lt_dar_allow_undefined
11770  case $cc_basename in
11771     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11772     *) _lt_dar_can_shared=$GCC ;;
11773  esac
11774  if test yes = "$_lt_dar_can_shared"; then
11775    output_verbose_link_cmd=func_echo_all
11776    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11777    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11778    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
11779    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11780
11781  else
11782  ld_shlibs=no
11783  fi
11784
11785      ;;
11786
11787    dgux*)
11788      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11789      hardcode_libdir_flag_spec='-L$libdir'
11790      hardcode_shlibpath_var=no
11791      ;;
11792
11793    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11794    # support.  Future versions do this automatically, but an explicit c++rt0.o
11795    # does not break anything, and helps significantly (at the cost of a little
11796    # extra space).
11797    freebsd2.2*)
11798      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11799      hardcode_libdir_flag_spec='-R$libdir'
11800      hardcode_direct=yes
11801      hardcode_shlibpath_var=no
11802      ;;
11803
11804    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11805    freebsd2.*)
11806      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11807      hardcode_direct=yes
11808      hardcode_minus_L=yes
11809      hardcode_shlibpath_var=no
11810      ;;
11811
11812    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11813    freebsd* | dragonfly*)
11814      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11815      hardcode_libdir_flag_spec='-R$libdir'
11816      hardcode_direct=yes
11817      hardcode_shlibpath_var=no
11818      ;;
11819
11820    hpux9*)
11821      if test yes = "$GCC"; then
11822	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11823      else
11824	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11825      fi
11826      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11827      hardcode_libdir_separator=:
11828      hardcode_direct=yes
11829
11830      # hardcode_minus_L: Not really in the search PATH,
11831      # but as the default location of the library.
11832      hardcode_minus_L=yes
11833      export_dynamic_flag_spec='$wl-E'
11834      ;;
11835
11836    hpux10*)
11837      if test yes,no = "$GCC,$with_gnu_ld"; then
11838	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11839      else
11840	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11841      fi
11842      if test no = "$with_gnu_ld"; then
11843	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11844	hardcode_libdir_separator=:
11845	hardcode_direct=yes
11846	hardcode_direct_absolute=yes
11847	export_dynamic_flag_spec='$wl-E'
11848	# hardcode_minus_L: Not really in the search PATH,
11849	# but as the default location of the library.
11850	hardcode_minus_L=yes
11851      fi
11852      ;;
11853
11854    hpux11*)
11855      if test yes,no = "$GCC,$with_gnu_ld"; then
11856	case $host_cpu in
11857	hppa*64*)
11858	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11859	  ;;
11860	ia64*)
11861	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11862	  ;;
11863	*)
11864	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11865	  ;;
11866	esac
11867      else
11868	case $host_cpu in
11869	hppa*64*)
11870	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11871	  ;;
11872	ia64*)
11873	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11874	  ;;
11875	*)
11876
11877	  # Older versions of the 11.00 compiler do not understand -b yet
11878	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11879	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11880$as_echo_n "checking if $CC understands -b... " >&6; }
11881if ${lt_cv_prog_compiler__b+:} false; then :
11882  $as_echo_n "(cached) " >&6
11883else
11884  lt_cv_prog_compiler__b=no
11885   save_LDFLAGS=$LDFLAGS
11886   LDFLAGS="$LDFLAGS -b"
11887   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11888   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11889     # The linker can only warn and ignore the option if not recognized
11890     # So say no if there are warnings
11891     if test -s conftest.err; then
11892       # Append any errors to the config.log.
11893       cat conftest.err 1>&5
11894       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11895       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11896       if diff conftest.exp conftest.er2 >/dev/null; then
11897         lt_cv_prog_compiler__b=yes
11898       fi
11899     else
11900       lt_cv_prog_compiler__b=yes
11901     fi
11902   fi
11903   $RM -r conftest*
11904   LDFLAGS=$save_LDFLAGS
11905
11906fi
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11908$as_echo "$lt_cv_prog_compiler__b" >&6; }
11909
11910if test yes = "$lt_cv_prog_compiler__b"; then
11911    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11912else
11913    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11914fi
11915
11916	  ;;
11917	esac
11918      fi
11919      if test no = "$with_gnu_ld"; then
11920	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11921	hardcode_libdir_separator=:
11922
11923	case $host_cpu in
11924	hppa*64*|ia64*)
11925	  hardcode_direct=no
11926	  hardcode_shlibpath_var=no
11927	  ;;
11928	*)
11929	  hardcode_direct=yes
11930	  hardcode_direct_absolute=yes
11931	  export_dynamic_flag_spec='$wl-E'
11932
11933	  # hardcode_minus_L: Not really in the search PATH,
11934	  # but as the default location of the library.
11935	  hardcode_minus_L=yes
11936	  ;;
11937	esac
11938      fi
11939      ;;
11940
11941    irix5* | irix6* | nonstopux*)
11942      if test yes = "$GCC"; then
11943	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11944	# Try to use the -exported_symbol ld option, if it does not
11945	# work, assume that -exports_file does not work either and
11946	# implicitly export all symbols.
11947	# This should be the same for all languages, so no per-tag cache variable.
11948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11949$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11950if ${lt_cv_irix_exported_symbol+:} false; then :
11951  $as_echo_n "(cached) " >&6
11952else
11953  save_LDFLAGS=$LDFLAGS
11954	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11955	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956/* end confdefs.h.  */
11957int foo (void) { return 0; }
11958_ACEOF
11959if ac_fn_c_try_link "$LINENO"; then :
11960  lt_cv_irix_exported_symbol=yes
11961else
11962  lt_cv_irix_exported_symbol=no
11963fi
11964rm -f core conftest.err conftest.$ac_objext \
11965    conftest$ac_exeext conftest.$ac_ext
11966           LDFLAGS=$save_LDFLAGS
11967fi
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11969$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11970	if test yes = "$lt_cv_irix_exported_symbol"; then
11971          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11972	fi
11973      else
11974	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11975	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11976      fi
11977      archive_cmds_need_lc='no'
11978      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11979      hardcode_libdir_separator=:
11980      inherit_rpath=yes
11981      link_all_deplibs=yes
11982      ;;
11983
11984    linux*)
11985      case $cc_basename in
11986      tcc*)
11987	# Fabrice Bellard et al's Tiny C Compiler
11988	ld_shlibs=yes
11989	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11990	;;
11991      esac
11992      ;;
11993
11994    netbsd*)
11995      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11996	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11997      else
11998	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11999      fi
12000      hardcode_libdir_flag_spec='-R$libdir'
12001      hardcode_direct=yes
12002      hardcode_shlibpath_var=no
12003      ;;
12004
12005    newsos6)
12006      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12007      hardcode_direct=yes
12008      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12009      hardcode_libdir_separator=:
12010      hardcode_shlibpath_var=no
12011      ;;
12012
12013    *nto* | *qnx*)
12014      ;;
12015
12016    openbsd* | bitrig*)
12017      if test -f /usr/libexec/ld.so; then
12018	hardcode_direct=yes
12019	hardcode_shlibpath_var=no
12020	hardcode_direct_absolute=yes
12021	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12022	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12023	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12024	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12025	  export_dynamic_flag_spec='$wl-E'
12026	else
12027	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12028	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12029	fi
12030      else
12031	ld_shlibs=no
12032      fi
12033      ;;
12034
12035    os2*)
12036      hardcode_libdir_flag_spec='-L$libdir'
12037      hardcode_minus_L=yes
12038      allow_undefined_flag=unsupported
12039      shrext_cmds=.dll
12040      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12041	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12042	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12043	$ECHO EXPORTS >> $output_objdir/$libname.def~
12044	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12045	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12046	emximp -o $lib $output_objdir/$libname.def'
12047      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12048	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12049	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12050	$ECHO EXPORTS >> $output_objdir/$libname.def~
12051	prefix_cmds="$SED"~
12052	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12053	  prefix_cmds="$prefix_cmds -e 1d";
12054	fi~
12055	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12056	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12057	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12058	emximp -o $lib $output_objdir/$libname.def'
12059      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12060      enable_shared_with_static_runtimes=yes
12061      ;;
12062
12063    osf3*)
12064      if test yes = "$GCC"; then
12065	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12066	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12067      else
12068	allow_undefined_flag=' -expect_unresolved \*'
12069	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12070      fi
12071      archive_cmds_need_lc='no'
12072      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12073      hardcode_libdir_separator=:
12074      ;;
12075
12076    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12077      if test yes = "$GCC"; then
12078	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12079	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12080	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12081      else
12082	allow_undefined_flag=' -expect_unresolved \*'
12083	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12084	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12085          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12086
12087	# Both c and cxx compiler support -rpath directly
12088	hardcode_libdir_flag_spec='-rpath $libdir'
12089      fi
12090      archive_cmds_need_lc='no'
12091      hardcode_libdir_separator=:
12092      ;;
12093
12094    solaris*)
12095      no_undefined_flag=' -z defs'
12096      if test yes = "$GCC"; then
12097	wlarc='$wl'
12098	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12099	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12100          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12101      else
12102	case `$CC -V 2>&1` in
12103	*"Compilers 5.0"*)
12104	  wlarc=''
12105	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12106	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12107            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12108	  ;;
12109	*)
12110	  wlarc='$wl'
12111	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12112	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12113            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12114	  ;;
12115	esac
12116      fi
12117      hardcode_libdir_flag_spec='-R$libdir'
12118      hardcode_shlibpath_var=no
12119      case $host_os in
12120      solaris2.[0-5] | solaris2.[0-5].*) ;;
12121      *)
12122	# The compiler driver will combine and reorder linker options,
12123	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12124	# but is careful enough not to reorder.
12125	# Supported since Solaris 2.6 (maybe 2.5.1?)
12126	if test yes = "$GCC"; then
12127	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12128	else
12129	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12130	fi
12131	;;
12132      esac
12133      link_all_deplibs=yes
12134      ;;
12135
12136    sunos4*)
12137      if test sequent = "$host_vendor"; then
12138	# Use $CC to link under sequent, because it throws in some extra .o
12139	# files that make .init and .fini sections work.
12140	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12141      else
12142	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12143      fi
12144      hardcode_libdir_flag_spec='-L$libdir'
12145      hardcode_direct=yes
12146      hardcode_minus_L=yes
12147      hardcode_shlibpath_var=no
12148      ;;
12149
12150    sysv4)
12151      case $host_vendor in
12152	sni)
12153	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12154	  hardcode_direct=yes # is this really true???
12155	;;
12156	siemens)
12157	  ## LD is ld it makes a PLAMLIB
12158	  ## CC just makes a GrossModule.
12159	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12160	  reload_cmds='$CC -r -o $output$reload_objs'
12161	  hardcode_direct=no
12162        ;;
12163	motorola)
12164	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12165	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12166	;;
12167      esac
12168      runpath_var='LD_RUN_PATH'
12169      hardcode_shlibpath_var=no
12170      ;;
12171
12172    sysv4.3*)
12173      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12174      hardcode_shlibpath_var=no
12175      export_dynamic_flag_spec='-Bexport'
12176      ;;
12177
12178    sysv4*MP*)
12179      if test -d /usr/nec; then
12180	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12181	hardcode_shlibpath_var=no
12182	runpath_var=LD_RUN_PATH
12183	hardcode_runpath_var=yes
12184	ld_shlibs=yes
12185      fi
12186      ;;
12187
12188    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12189      no_undefined_flag='$wl-z,text'
12190      archive_cmds_need_lc=no
12191      hardcode_shlibpath_var=no
12192      runpath_var='LD_RUN_PATH'
12193
12194      if test yes = "$GCC"; then
12195	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12196	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12197      else
12198	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12199	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12200      fi
12201      ;;
12202
12203    sysv5* | sco3.2v5* | sco5v6*)
12204      # Note: We CANNOT use -z defs as we might desire, because we do not
12205      # link with -lc, and that would cause any symbols used from libc to
12206      # always be unresolved, which means just about no library would
12207      # ever link correctly.  If we're not using GNU ld we use -z text
12208      # though, which does catch some bad symbols but isn't as heavy-handed
12209      # as -z defs.
12210      no_undefined_flag='$wl-z,text'
12211      allow_undefined_flag='$wl-z,nodefs'
12212      archive_cmds_need_lc=no
12213      hardcode_shlibpath_var=no
12214      hardcode_libdir_flag_spec='$wl-R,$libdir'
12215      hardcode_libdir_separator=':'
12216      link_all_deplibs=yes
12217      export_dynamic_flag_spec='$wl-Bexport'
12218      runpath_var='LD_RUN_PATH'
12219
12220      if test yes = "$GCC"; then
12221	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12222	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12223      else
12224	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12225	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12226      fi
12227      ;;
12228
12229    uts4*)
12230      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12231      hardcode_libdir_flag_spec='-L$libdir'
12232      hardcode_shlibpath_var=no
12233      ;;
12234
12235    *)
12236      ld_shlibs=no
12237      ;;
12238    esac
12239
12240    if test sni = "$host_vendor"; then
12241      case $host in
12242      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12243	export_dynamic_flag_spec='$wl-Blargedynsym'
12244	;;
12245      esac
12246    fi
12247  fi
12248
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12250$as_echo "$ld_shlibs" >&6; }
12251test no = "$ld_shlibs" && can_build_shared=no
12252
12253with_gnu_ld=$with_gnu_ld
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269#
12270# Do we need to explicitly link libc?
12271#
12272case "x$archive_cmds_need_lc" in
12273x|xyes)
12274  # Assume -lc should be added
12275  archive_cmds_need_lc=yes
12276
12277  if test yes,yes = "$GCC,$enable_shared"; then
12278    case $archive_cmds in
12279    *'~'*)
12280      # FIXME: we may have to deal with multi-command sequences.
12281      ;;
12282    '$CC '*)
12283      # Test whether the compiler implicitly links with -lc since on some
12284      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12285      # to ld, don't add -lc before -lgcc.
12286      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12287$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12288if ${lt_cv_archive_cmds_need_lc+:} false; then :
12289  $as_echo_n "(cached) " >&6
12290else
12291  $RM conftest*
12292	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12293
12294	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12295  (eval $ac_compile) 2>&5
12296  ac_status=$?
12297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12298  test $ac_status = 0; } 2>conftest.err; then
12299	  soname=conftest
12300	  lib=conftest
12301	  libobjs=conftest.$ac_objext
12302	  deplibs=
12303	  wl=$lt_prog_compiler_wl
12304	  pic_flag=$lt_prog_compiler_pic
12305	  compiler_flags=-v
12306	  linker_flags=-v
12307	  verstring=
12308	  output_objdir=.
12309	  libname=conftest
12310	  lt_save_allow_undefined_flag=$allow_undefined_flag
12311	  allow_undefined_flag=
12312	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12313  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12314  ac_status=$?
12315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12316  test $ac_status = 0; }
12317	  then
12318	    lt_cv_archive_cmds_need_lc=no
12319	  else
12320	    lt_cv_archive_cmds_need_lc=yes
12321	  fi
12322	  allow_undefined_flag=$lt_save_allow_undefined_flag
12323	else
12324	  cat conftest.err 1>&5
12325	fi
12326	$RM conftest*
12327
12328fi
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12330$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12331      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12332      ;;
12333    esac
12334  fi
12335  ;;
12336esac
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12490$as_echo_n "checking dynamic linker characteristics... " >&6; }
12491
12492if test yes = "$GCC"; then
12493  case $host_os in
12494    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12495    *) lt_awk_arg='/^libraries:/' ;;
12496  esac
12497  case $host_os in
12498    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12499    *) lt_sed_strip_eq='s|=/|/|g' ;;
12500  esac
12501  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12502  case $lt_search_path_spec in
12503  *\;*)
12504    # if the path contains ";" then we assume it to be the separator
12505    # otherwise default to the standard path separator (i.e. ":") - it is
12506    # assumed that no part of a normal pathname contains ";" but that should
12507    # okay in the real world where ";" in dirpaths is itself problematic.
12508    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12509    ;;
12510  *)
12511    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12512    ;;
12513  esac
12514  # Ok, now we have the path, separated by spaces, we can step through it
12515  # and add multilib dir if necessary...
12516  lt_tmp_lt_search_path_spec=
12517  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12518  # ...but if some path component already ends with the multilib dir we assume
12519  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12520  case "$lt_multi_os_dir; $lt_search_path_spec " in
12521  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12522    lt_multi_os_dir=
12523    ;;
12524  esac
12525  for lt_sys_path in $lt_search_path_spec; do
12526    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12527      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12528    elif test -n "$lt_multi_os_dir"; then
12529      test -d "$lt_sys_path" && \
12530	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12531    fi
12532  done
12533  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12534BEGIN {RS = " "; FS = "/|\n";} {
12535  lt_foo = "";
12536  lt_count = 0;
12537  for (lt_i = NF; lt_i > 0; lt_i--) {
12538    if ($lt_i != "" && $lt_i != ".") {
12539      if ($lt_i == "..") {
12540        lt_count++;
12541      } else {
12542        if (lt_count == 0) {
12543          lt_foo = "/" $lt_i lt_foo;
12544        } else {
12545          lt_count--;
12546        }
12547      }
12548    }
12549  }
12550  if (lt_foo != "") { lt_freq[lt_foo]++; }
12551  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12552}'`
12553  # AWK program above erroneously prepends '/' to C:/dos/paths
12554  # for these hosts.
12555  case $host_os in
12556    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12557      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12558  esac
12559  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12560else
12561  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12562fi
12563library_names_spec=
12564libname_spec='lib$name'
12565soname_spec=
12566shrext_cmds=.so
12567postinstall_cmds=
12568postuninstall_cmds=
12569finish_cmds=
12570finish_eval=
12571shlibpath_var=
12572shlibpath_overrides_runpath=unknown
12573version_type=none
12574dynamic_linker="$host_os ld.so"
12575sys_lib_dlsearch_path_spec="/lib /usr/lib"
12576need_lib_prefix=unknown
12577hardcode_into_libs=no
12578
12579# when you set need_version to no, make sure it does not cause -set_version
12580# flags to be left without arguments
12581need_version=unknown
12582
12583
12584
12585case $host_os in
12586aix3*)
12587  version_type=linux # correct to gnu/linux during the next big refactor
12588  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12589  shlibpath_var=LIBPATH
12590
12591  # AIX 3 has no versioning support, so we append a major version to the name.
12592  soname_spec='$libname$release$shared_ext$major'
12593  ;;
12594
12595aix[4-9]*)
12596  version_type=linux # correct to gnu/linux during the next big refactor
12597  need_lib_prefix=no
12598  need_version=no
12599  hardcode_into_libs=yes
12600  if test ia64 = "$host_cpu"; then
12601    # AIX 5 supports IA64
12602    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12603    shlibpath_var=LD_LIBRARY_PATH
12604  else
12605    # With GCC up to 2.95.x, collect2 would create an import file
12606    # for dependence libraries.  The import file would start with
12607    # the line '#! .'.  This would cause the generated library to
12608    # depend on '.', always an invalid library.  This was fixed in
12609    # development snapshots of GCC prior to 3.0.
12610    case $host_os in
12611      aix4 | aix4.[01] | aix4.[01].*)
12612      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12613	   echo ' yes '
12614	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12615	:
12616      else
12617	can_build_shared=no
12618      fi
12619      ;;
12620    esac
12621    # Using Import Files as archive members, it is possible to support
12622    # filename-based versioning of shared library archives on AIX. While
12623    # this would work for both with and without runtime linking, it will
12624    # prevent static linking of such archives. So we do filename-based
12625    # shared library versioning with .so extension only, which is used
12626    # when both runtime linking and shared linking is enabled.
12627    # Unfortunately, runtime linking may impact performance, so we do
12628    # not want this to be the default eventually. Also, we use the
12629    # versioned .so libs for executables only if there is the -brtl
12630    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12631    # To allow for filename-based versioning support, we need to create
12632    # libNAME.so.V as an archive file, containing:
12633    # *) an Import File, referring to the versioned filename of the
12634    #    archive as well as the shared archive member, telling the
12635    #    bitwidth (32 or 64) of that shared object, and providing the
12636    #    list of exported symbols of that shared object, eventually
12637    #    decorated with the 'weak' keyword
12638    # *) the shared object with the F_LOADONLY flag set, to really avoid
12639    #    it being seen by the linker.
12640    # At run time we better use the real file rather than another symlink,
12641    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12642
12643    case $with_aix_soname,$aix_use_runtimelinking in
12644    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12645    # soname into executable. Probably we can add versioning support to
12646    # collect2, so additional links can be useful in future.
12647    aix,yes) # traditional libtool
12648      dynamic_linker='AIX unversionable lib.so'
12649      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12650      # instead of lib<name>.a to let people know that these are not
12651      # typical AIX shared libraries.
12652      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12653      ;;
12654    aix,no) # traditional AIX only
12655      dynamic_linker='AIX lib.a(lib.so.V)'
12656      # We preserve .a as extension for shared libraries through AIX4.2
12657      # and later when we are not doing run time linking.
12658      library_names_spec='$libname$release.a $libname.a'
12659      soname_spec='$libname$release$shared_ext$major'
12660      ;;
12661    svr4,*) # full svr4 only
12662      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12663      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12664      # We do not specify a path in Import Files, so LIBPATH fires.
12665      shlibpath_overrides_runpath=yes
12666      ;;
12667    *,yes) # both, prefer svr4
12668      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12669      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12670      # unpreferred sharedlib libNAME.a needs extra handling
12671      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12672      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12673      # We do not specify a path in Import Files, so LIBPATH fires.
12674      shlibpath_overrides_runpath=yes
12675      ;;
12676    *,no) # both, prefer aix
12677      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12678      library_names_spec='$libname$release.a $libname.a'
12679      soname_spec='$libname$release$shared_ext$major'
12680      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12681      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12682      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12683      ;;
12684    esac
12685    shlibpath_var=LIBPATH
12686  fi
12687  ;;
12688
12689amigaos*)
12690  case $host_cpu in
12691  powerpc)
12692    # Since July 2007 AmigaOS4 officially supports .so libraries.
12693    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12694    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12695    ;;
12696  m68k)
12697    library_names_spec='$libname.ixlibrary $libname.a'
12698    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12699    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12700    ;;
12701  esac
12702  ;;
12703
12704beos*)
12705  library_names_spec='$libname$shared_ext'
12706  dynamic_linker="$host_os ld.so"
12707  shlibpath_var=LIBRARY_PATH
12708  ;;
12709
12710bsdi[45]*)
12711  version_type=linux # correct to gnu/linux during the next big refactor
12712  need_version=no
12713  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12714  soname_spec='$libname$release$shared_ext$major'
12715  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12716  shlibpath_var=LD_LIBRARY_PATH
12717  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12718  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12719  # the default ld.so.conf also contains /usr/contrib/lib and
12720  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12721  # libtool to hard-code these into programs
12722  ;;
12723
12724cygwin* | mingw* | pw32* | cegcc*)
12725  version_type=windows
12726  shrext_cmds=.dll
12727  need_version=no
12728  need_lib_prefix=no
12729
12730  case $GCC,$cc_basename in
12731  yes,*)
12732    # gcc
12733    library_names_spec='$libname.dll.a'
12734    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12735    postinstall_cmds='base_file=`basename \$file`~
12736      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12737      dldir=$destdir/`dirname \$dlpath`~
12738      test -d \$dldir || mkdir -p \$dldir~
12739      $install_prog $dir/$dlname \$dldir/$dlname~
12740      chmod a+x \$dldir/$dlname~
12741      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12742        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12743      fi'
12744    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12745      dlpath=$dir/\$dldll~
12746       $RM \$dlpath'
12747    shlibpath_overrides_runpath=yes
12748
12749    case $host_os in
12750    cygwin*)
12751      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12752      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12753
12754      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12755      ;;
12756    mingw* | cegcc*)
12757      # MinGW DLLs use traditional 'lib' prefix
12758      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12759      ;;
12760    pw32*)
12761      # pw32 DLLs use 'pw' prefix rather than 'lib'
12762      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12763      ;;
12764    esac
12765    dynamic_linker='Win32 ld.exe'
12766    ;;
12767
12768  *,cl*)
12769    # Native MSVC
12770    libname_spec='$name'
12771    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12772    library_names_spec='$libname.dll.lib'
12773
12774    case $build_os in
12775    mingw*)
12776      sys_lib_search_path_spec=
12777      lt_save_ifs=$IFS
12778      IFS=';'
12779      for lt_path in $LIB
12780      do
12781        IFS=$lt_save_ifs
12782        # Let DOS variable expansion print the short 8.3 style file name.
12783        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12784        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12785      done
12786      IFS=$lt_save_ifs
12787      # Convert to MSYS style.
12788      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12789      ;;
12790    cygwin*)
12791      # Convert to unix form, then to dos form, then back to unix form
12792      # but this time dos style (no spaces!) so that the unix form looks
12793      # like /cygdrive/c/PROGRA~1:/cygdr...
12794      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12795      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12796      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12797      ;;
12798    *)
12799      sys_lib_search_path_spec=$LIB
12800      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12801        # It is most probably a Windows format PATH.
12802        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12803      else
12804        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12805      fi
12806      # FIXME: find the short name or the path components, as spaces are
12807      # common. (e.g. "Program Files" -> "PROGRA~1")
12808      ;;
12809    esac
12810
12811    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12812    postinstall_cmds='base_file=`basename \$file`~
12813      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12814      dldir=$destdir/`dirname \$dlpath`~
12815      test -d \$dldir || mkdir -p \$dldir~
12816      $install_prog $dir/$dlname \$dldir/$dlname'
12817    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12818      dlpath=$dir/\$dldll~
12819       $RM \$dlpath'
12820    shlibpath_overrides_runpath=yes
12821    dynamic_linker='Win32 link.exe'
12822    ;;
12823
12824  *)
12825    # Assume MSVC wrapper
12826    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12827    dynamic_linker='Win32 ld.exe'
12828    ;;
12829  esac
12830  # FIXME: first we should search . and the directory the executable is in
12831  shlibpath_var=PATH
12832  ;;
12833
12834darwin* | rhapsody*)
12835  dynamic_linker="$host_os dyld"
12836  version_type=darwin
12837  need_lib_prefix=no
12838  need_version=no
12839  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12840  soname_spec='$libname$release$major$shared_ext'
12841  shlibpath_overrides_runpath=yes
12842  shlibpath_var=DYLD_LIBRARY_PATH
12843  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12844
12845  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12846  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12847  ;;
12848
12849dgux*)
12850  version_type=linux # correct to gnu/linux during the next big refactor
12851  need_lib_prefix=no
12852  need_version=no
12853  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12854  soname_spec='$libname$release$shared_ext$major'
12855  shlibpath_var=LD_LIBRARY_PATH
12856  ;;
12857
12858freebsd* | dragonfly*)
12859  # DragonFly does not have aout.  When/if they implement a new
12860  # versioning mechanism, adjust this.
12861  if test -x /usr/bin/objformat; then
12862    objformat=`/usr/bin/objformat`
12863  else
12864    case $host_os in
12865    freebsd[23].*) objformat=aout ;;
12866    *) objformat=elf ;;
12867    esac
12868  fi
12869  version_type=freebsd-$objformat
12870  case $version_type in
12871    freebsd-elf*)
12872      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12873      soname_spec='$libname$release$shared_ext$major'
12874      need_version=no
12875      need_lib_prefix=no
12876      ;;
12877    freebsd-*)
12878      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12879      need_version=yes
12880      ;;
12881  esac
12882  shlibpath_var=LD_LIBRARY_PATH
12883  case $host_os in
12884  freebsd2.*)
12885    shlibpath_overrides_runpath=yes
12886    ;;
12887  freebsd3.[01]* | freebsdelf3.[01]*)
12888    shlibpath_overrides_runpath=yes
12889    hardcode_into_libs=yes
12890    ;;
12891  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12892  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12893    shlibpath_overrides_runpath=no
12894    hardcode_into_libs=yes
12895    ;;
12896  *) # from 4.6 on, and DragonFly
12897    shlibpath_overrides_runpath=yes
12898    hardcode_into_libs=yes
12899    ;;
12900  esac
12901  ;;
12902
12903haiku*)
12904  version_type=linux # correct to gnu/linux during the next big refactor
12905  need_lib_prefix=no
12906  need_version=no
12907  dynamic_linker="$host_os runtime_loader"
12908  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12909  soname_spec='$libname$release$shared_ext$major'
12910  shlibpath_var=LIBRARY_PATH
12911  shlibpath_overrides_runpath=no
12912  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12913  hardcode_into_libs=yes
12914  ;;
12915
12916hpux9* | hpux10* | hpux11*)
12917  # Give a soname corresponding to the major version so that dld.sl refuses to
12918  # link against other versions.
12919  version_type=sunos
12920  need_lib_prefix=no
12921  need_version=no
12922  case $host_cpu in
12923  ia64*)
12924    shrext_cmds='.so'
12925    hardcode_into_libs=yes
12926    dynamic_linker="$host_os dld.so"
12927    shlibpath_var=LD_LIBRARY_PATH
12928    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12929    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12930    soname_spec='$libname$release$shared_ext$major'
12931    if test 32 = "$HPUX_IA64_MODE"; then
12932      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12933      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12934    else
12935      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12936      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12937    fi
12938    ;;
12939  hppa*64*)
12940    shrext_cmds='.sl'
12941    hardcode_into_libs=yes
12942    dynamic_linker="$host_os dld.sl"
12943    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12944    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12945    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12946    soname_spec='$libname$release$shared_ext$major'
12947    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12948    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12949    ;;
12950  *)
12951    shrext_cmds='.sl'
12952    dynamic_linker="$host_os dld.sl"
12953    shlibpath_var=SHLIB_PATH
12954    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12955    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12956    soname_spec='$libname$release$shared_ext$major'
12957    ;;
12958  esac
12959  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12960  postinstall_cmds='chmod 555 $lib'
12961  # or fails outright, so override atomically:
12962  install_override_mode=555
12963  ;;
12964
12965interix[3-9]*)
12966  version_type=linux # correct to gnu/linux during the next big refactor
12967  need_lib_prefix=no
12968  need_version=no
12969  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12970  soname_spec='$libname$release$shared_ext$major'
12971  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12972  shlibpath_var=LD_LIBRARY_PATH
12973  shlibpath_overrides_runpath=no
12974  hardcode_into_libs=yes
12975  ;;
12976
12977irix5* | irix6* | nonstopux*)
12978  case $host_os in
12979    nonstopux*) version_type=nonstopux ;;
12980    *)
12981	if test yes = "$lt_cv_prog_gnu_ld"; then
12982		version_type=linux # correct to gnu/linux during the next big refactor
12983	else
12984		version_type=irix
12985	fi ;;
12986  esac
12987  need_lib_prefix=no
12988  need_version=no
12989  soname_spec='$libname$release$shared_ext$major'
12990  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12991  case $host_os in
12992  irix5* | nonstopux*)
12993    libsuff= shlibsuff=
12994    ;;
12995  *)
12996    case $LD in # libtool.m4 will add one of these switches to LD
12997    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12998      libsuff= shlibsuff= libmagic=32-bit;;
12999    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13000      libsuff=32 shlibsuff=N32 libmagic=N32;;
13001    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13002      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13003    *) libsuff= shlibsuff= libmagic=never-match;;
13004    esac
13005    ;;
13006  esac
13007  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13008  shlibpath_overrides_runpath=no
13009  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13010  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13011  hardcode_into_libs=yes
13012  ;;
13013
13014# No shared lib support for Linux oldld, aout, or coff.
13015linux*oldld* | linux*aout* | linux*coff*)
13016  dynamic_linker=no
13017  ;;
13018
13019linux*android*)
13020  version_type=none # Android doesn't support versioned libraries.
13021  need_lib_prefix=no
13022  need_version=no
13023  library_names_spec='$libname$release$shared_ext'
13024  soname_spec='$libname$release$shared_ext'
13025  finish_cmds=
13026  shlibpath_var=LD_LIBRARY_PATH
13027  shlibpath_overrides_runpath=yes
13028
13029  # This implies no fast_install, which is unacceptable.
13030  # Some rework will be needed to allow for fast_install
13031  # before this can be enabled.
13032  hardcode_into_libs=yes
13033
13034  dynamic_linker='Android linker'
13035  # Don't embed -rpath directories since the linker doesn't support them.
13036  hardcode_libdir_flag_spec='-L$libdir'
13037  ;;
13038
13039# This must be glibc/ELF.
13040linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13041  version_type=linux # correct to gnu/linux during the next big refactor
13042  need_lib_prefix=no
13043  need_version=no
13044  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13045  soname_spec='$libname$release$shared_ext$major'
13046  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13047  shlibpath_var=LD_LIBRARY_PATH
13048  shlibpath_overrides_runpath=no
13049
13050  # Some binutils ld are patched to set DT_RUNPATH
13051  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13052  $as_echo_n "(cached) " >&6
13053else
13054  lt_cv_shlibpath_overrides_runpath=no
13055    save_LDFLAGS=$LDFLAGS
13056    save_libdir=$libdir
13057    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13058	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13059    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060/* end confdefs.h.  */
13061
13062int
13063main ()
13064{
13065
13066  ;
13067  return 0;
13068}
13069_ACEOF
13070if ac_fn_c_try_link "$LINENO"; then :
13071  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13072  lt_cv_shlibpath_overrides_runpath=yes
13073fi
13074fi
13075rm -f core conftest.err conftest.$ac_objext \
13076    conftest$ac_exeext conftest.$ac_ext
13077    LDFLAGS=$save_LDFLAGS
13078    libdir=$save_libdir
13079
13080fi
13081
13082  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13083
13084  # This implies no fast_install, which is unacceptable.
13085  # Some rework will be needed to allow for fast_install
13086  # before this can be enabled.
13087  hardcode_into_libs=yes
13088
13089  # Ideally, we could use ldconfig to report *all* directores which are
13090  # searched for libraries, however this is still not possible.  Aside from not
13091  # being certain /sbin/ldconfig is available, command
13092  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13093  # even though it is searched at run-time.  Try to do the best guess by
13094  # appending ld.so.conf contents (and includes) to the search path.
13095  if test -f /etc/ld.so.conf; then
13096    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13097    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13098  fi
13099
13100  # We used to test for /lib/ld.so.1 and disable shared libraries on
13101  # powerpc, because MkLinux only supported shared libraries with the
13102  # GNU dynamic linker.  Since this was broken with cross compilers,
13103  # most powerpc-linux boxes support dynamic linking these days and
13104  # people can always --disable-shared, the test was removed, and we
13105  # assume the GNU/Linux dynamic linker is in use.
13106  dynamic_linker='GNU/Linux ld.so'
13107  ;;
13108
13109netbsd*)
13110  version_type=sunos
13111  need_lib_prefix=no
13112  need_version=no
13113  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13114    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13115    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13116    dynamic_linker='NetBSD (a.out) ld.so'
13117  else
13118    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13119    soname_spec='$libname$release$shared_ext$major'
13120    dynamic_linker='NetBSD ld.elf_so'
13121  fi
13122  shlibpath_var=LD_LIBRARY_PATH
13123  shlibpath_overrides_runpath=yes
13124  hardcode_into_libs=yes
13125  ;;
13126
13127newsos6)
13128  version_type=linux # correct to gnu/linux during the next big refactor
13129  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13130  shlibpath_var=LD_LIBRARY_PATH
13131  shlibpath_overrides_runpath=yes
13132  ;;
13133
13134*nto* | *qnx*)
13135  version_type=qnx
13136  need_lib_prefix=no
13137  need_version=no
13138  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13139  soname_spec='$libname$release$shared_ext$major'
13140  shlibpath_var=LD_LIBRARY_PATH
13141  shlibpath_overrides_runpath=no
13142  hardcode_into_libs=yes
13143  dynamic_linker='ldqnx.so'
13144  ;;
13145
13146openbsd* | bitrig*)
13147  version_type=sunos
13148  sys_lib_dlsearch_path_spec=/usr/lib
13149  need_lib_prefix=no
13150  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13151    need_version=no
13152  else
13153    need_version=yes
13154  fi
13155  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13156  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13157  shlibpath_var=LD_LIBRARY_PATH
13158  shlibpath_overrides_runpath=yes
13159  ;;
13160
13161os2*)
13162  libname_spec='$name'
13163  version_type=windows
13164  shrext_cmds=.dll
13165  need_version=no
13166  need_lib_prefix=no
13167  # OS/2 can only load a DLL with a base name of 8 characters or less.
13168  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13169    v=$($ECHO $release$versuffix | tr -d .-);
13170    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13171    $ECHO $n$v`$shared_ext'
13172  library_names_spec='${libname}_dll.$libext'
13173  dynamic_linker='OS/2 ld.exe'
13174  shlibpath_var=BEGINLIBPATH
13175  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13176  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13177  postinstall_cmds='base_file=`basename \$file`~
13178    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13179    dldir=$destdir/`dirname \$dlpath`~
13180    test -d \$dldir || mkdir -p \$dldir~
13181    $install_prog $dir/$dlname \$dldir/$dlname~
13182    chmod a+x \$dldir/$dlname~
13183    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13184      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13185    fi'
13186  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13187    dlpath=$dir/\$dldll~
13188    $RM \$dlpath'
13189  ;;
13190
13191osf3* | osf4* | osf5*)
13192  version_type=osf
13193  need_lib_prefix=no
13194  need_version=no
13195  soname_spec='$libname$release$shared_ext$major'
13196  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13197  shlibpath_var=LD_LIBRARY_PATH
13198  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13199  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13200  ;;
13201
13202rdos*)
13203  dynamic_linker=no
13204  ;;
13205
13206solaris*)
13207  version_type=linux # correct to gnu/linux during the next big refactor
13208  need_lib_prefix=no
13209  need_version=no
13210  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13211  soname_spec='$libname$release$shared_ext$major'
13212  shlibpath_var=LD_LIBRARY_PATH
13213  shlibpath_overrides_runpath=yes
13214  hardcode_into_libs=yes
13215  # ldd complains unless libraries are executable
13216  postinstall_cmds='chmod +x $lib'
13217  ;;
13218
13219sunos4*)
13220  version_type=sunos
13221  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13222  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13223  shlibpath_var=LD_LIBRARY_PATH
13224  shlibpath_overrides_runpath=yes
13225  if test yes = "$with_gnu_ld"; then
13226    need_lib_prefix=no
13227  fi
13228  need_version=yes
13229  ;;
13230
13231sysv4 | sysv4.3*)
13232  version_type=linux # correct to gnu/linux during the next big refactor
13233  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13234  soname_spec='$libname$release$shared_ext$major'
13235  shlibpath_var=LD_LIBRARY_PATH
13236  case $host_vendor in
13237    sni)
13238      shlibpath_overrides_runpath=no
13239      need_lib_prefix=no
13240      runpath_var=LD_RUN_PATH
13241      ;;
13242    siemens)
13243      need_lib_prefix=no
13244      ;;
13245    motorola)
13246      need_lib_prefix=no
13247      need_version=no
13248      shlibpath_overrides_runpath=no
13249      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13250      ;;
13251  esac
13252  ;;
13253
13254sysv4*MP*)
13255  if test -d /usr/nec; then
13256    version_type=linux # correct to gnu/linux during the next big refactor
13257    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13258    soname_spec='$libname$shared_ext.$major'
13259    shlibpath_var=LD_LIBRARY_PATH
13260  fi
13261  ;;
13262
13263sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13264  version_type=sco
13265  need_lib_prefix=no
13266  need_version=no
13267  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13268  soname_spec='$libname$release$shared_ext$major'
13269  shlibpath_var=LD_LIBRARY_PATH
13270  shlibpath_overrides_runpath=yes
13271  hardcode_into_libs=yes
13272  if test yes = "$with_gnu_ld"; then
13273    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13274  else
13275    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13276    case $host_os in
13277      sco3.2v5*)
13278        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13279	;;
13280    esac
13281  fi
13282  sys_lib_dlsearch_path_spec='/usr/lib'
13283  ;;
13284
13285tpf*)
13286  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13287  version_type=linux # correct to gnu/linux during the next big refactor
13288  need_lib_prefix=no
13289  need_version=no
13290  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13291  shlibpath_var=LD_LIBRARY_PATH
13292  shlibpath_overrides_runpath=no
13293  hardcode_into_libs=yes
13294  ;;
13295
13296uts4*)
13297  version_type=linux # correct to gnu/linux during the next big refactor
13298  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13299  soname_spec='$libname$release$shared_ext$major'
13300  shlibpath_var=LD_LIBRARY_PATH
13301  ;;
13302
13303*)
13304  dynamic_linker=no
13305  ;;
13306esac
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13308$as_echo "$dynamic_linker" >&6; }
13309test no = "$dynamic_linker" && can_build_shared=no
13310
13311variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13312if test yes = "$GCC"; then
13313  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13314fi
13315
13316if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13317  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13318fi
13319
13320if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13321  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13322fi
13323
13324# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13325configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13326
13327# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13328func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13329
13330# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13331configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13430$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13431hardcode_action=
13432if test -n "$hardcode_libdir_flag_spec" ||
13433   test -n "$runpath_var" ||
13434   test yes = "$hardcode_automatic"; then
13435
13436  # We can hardcode non-existent directories.
13437  if test no != "$hardcode_direct" &&
13438     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13439     # have to relink, otherwise we might link with an installed library
13440     # when we should be linking with a yet-to-be-installed one
13441     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13442     test no != "$hardcode_minus_L"; then
13443    # Linking always hardcodes the temporary library directory.
13444    hardcode_action=relink
13445  else
13446    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13447    hardcode_action=immediate
13448  fi
13449else
13450  # We cannot hardcode anything, or else we can only hardcode existing
13451  # directories.
13452  hardcode_action=unsupported
13453fi
13454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13455$as_echo "$hardcode_action" >&6; }
13456
13457if test relink = "$hardcode_action" ||
13458   test yes = "$inherit_rpath"; then
13459  # Fast installation is not supported
13460  enable_fast_install=no
13461elif test yes = "$shlibpath_overrides_runpath" ||
13462     test no = "$enable_shared"; then
13463  # Fast installation is not necessary
13464  enable_fast_install=needless
13465fi
13466
13467
13468
13469
13470
13471
13472  if test yes != "$enable_dlopen"; then
13473  enable_dlopen=unknown
13474  enable_dlopen_self=unknown
13475  enable_dlopen_self_static=unknown
13476else
13477  lt_cv_dlopen=no
13478  lt_cv_dlopen_libs=
13479
13480  case $host_os in
13481  beos*)
13482    lt_cv_dlopen=load_add_on
13483    lt_cv_dlopen_libs=
13484    lt_cv_dlopen_self=yes
13485    ;;
13486
13487  mingw* | pw32* | cegcc*)
13488    lt_cv_dlopen=LoadLibrary
13489    lt_cv_dlopen_libs=
13490    ;;
13491
13492  cygwin*)
13493    lt_cv_dlopen=dlopen
13494    lt_cv_dlopen_libs=
13495    ;;
13496
13497  darwin*)
13498    # if libdl is installed we need to link against it
13499    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13500$as_echo_n "checking for dlopen in -ldl... " >&6; }
13501if ${ac_cv_lib_dl_dlopen+:} false; then :
13502  $as_echo_n "(cached) " >&6
13503else
13504  ac_check_lib_save_LIBS=$LIBS
13505LIBS="-ldl  $LIBS"
13506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507/* end confdefs.h.  */
13508
13509/* Override any GCC internal prototype to avoid an error.
13510   Use char because int might match the return type of a GCC
13511   builtin and then its argument prototype would still apply.  */
13512#ifdef __cplusplus
13513extern "C"
13514#endif
13515char dlopen ();
13516int
13517main ()
13518{
13519return dlopen ();
13520  ;
13521  return 0;
13522}
13523_ACEOF
13524if ac_fn_c_try_link "$LINENO"; then :
13525  ac_cv_lib_dl_dlopen=yes
13526else
13527  ac_cv_lib_dl_dlopen=no
13528fi
13529rm -f core conftest.err conftest.$ac_objext \
13530    conftest$ac_exeext conftest.$ac_ext
13531LIBS=$ac_check_lib_save_LIBS
13532fi
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13534$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13535if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13536  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13537else
13538
13539    lt_cv_dlopen=dyld
13540    lt_cv_dlopen_libs=
13541    lt_cv_dlopen_self=yes
13542
13543fi
13544
13545    ;;
13546
13547  tpf*)
13548    # Don't try to run any link tests for TPF.  We know it's impossible
13549    # because TPF is a cross-compiler, and we know how we open DSOs.
13550    lt_cv_dlopen=dlopen
13551    lt_cv_dlopen_libs=
13552    lt_cv_dlopen_self=no
13553    ;;
13554
13555  *)
13556    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13557if test "x$ac_cv_func_shl_load" = xyes; then :
13558  lt_cv_dlopen=shl_load
13559else
13560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13561$as_echo_n "checking for shl_load in -ldld... " >&6; }
13562if ${ac_cv_lib_dld_shl_load+:} false; then :
13563  $as_echo_n "(cached) " >&6
13564else
13565  ac_check_lib_save_LIBS=$LIBS
13566LIBS="-ldld  $LIBS"
13567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568/* end confdefs.h.  */
13569
13570/* Override any GCC internal prototype to avoid an error.
13571   Use char because int might match the return type of a GCC
13572   builtin and then its argument prototype would still apply.  */
13573#ifdef __cplusplus
13574extern "C"
13575#endif
13576char shl_load ();
13577int
13578main ()
13579{
13580return shl_load ();
13581  ;
13582  return 0;
13583}
13584_ACEOF
13585if ac_fn_c_try_link "$LINENO"; then :
13586  ac_cv_lib_dld_shl_load=yes
13587else
13588  ac_cv_lib_dld_shl_load=no
13589fi
13590rm -f core conftest.err conftest.$ac_objext \
13591    conftest$ac_exeext conftest.$ac_ext
13592LIBS=$ac_check_lib_save_LIBS
13593fi
13594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13595$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13596if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13597  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13598else
13599  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13600if test "x$ac_cv_func_dlopen" = xyes; then :
13601  lt_cv_dlopen=dlopen
13602else
13603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13604$as_echo_n "checking for dlopen in -ldl... " >&6; }
13605if ${ac_cv_lib_dl_dlopen+:} false; then :
13606  $as_echo_n "(cached) " >&6
13607else
13608  ac_check_lib_save_LIBS=$LIBS
13609LIBS="-ldl  $LIBS"
13610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611/* end confdefs.h.  */
13612
13613/* Override any GCC internal prototype to avoid an error.
13614   Use char because int might match the return type of a GCC
13615   builtin and then its argument prototype would still apply.  */
13616#ifdef __cplusplus
13617extern "C"
13618#endif
13619char dlopen ();
13620int
13621main ()
13622{
13623return dlopen ();
13624  ;
13625  return 0;
13626}
13627_ACEOF
13628if ac_fn_c_try_link "$LINENO"; then :
13629  ac_cv_lib_dl_dlopen=yes
13630else
13631  ac_cv_lib_dl_dlopen=no
13632fi
13633rm -f core conftest.err conftest.$ac_objext \
13634    conftest$ac_exeext conftest.$ac_ext
13635LIBS=$ac_check_lib_save_LIBS
13636fi
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13638$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13639if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13640  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13641else
13642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13643$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13644if ${ac_cv_lib_svld_dlopen+:} false; then :
13645  $as_echo_n "(cached) " >&6
13646else
13647  ac_check_lib_save_LIBS=$LIBS
13648LIBS="-lsvld  $LIBS"
13649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650/* end confdefs.h.  */
13651
13652/* Override any GCC internal prototype to avoid an error.
13653   Use char because int might match the return type of a GCC
13654   builtin and then its argument prototype would still apply.  */
13655#ifdef __cplusplus
13656extern "C"
13657#endif
13658char dlopen ();
13659int
13660main ()
13661{
13662return dlopen ();
13663  ;
13664  return 0;
13665}
13666_ACEOF
13667if ac_fn_c_try_link "$LINENO"; then :
13668  ac_cv_lib_svld_dlopen=yes
13669else
13670  ac_cv_lib_svld_dlopen=no
13671fi
13672rm -f core conftest.err conftest.$ac_objext \
13673    conftest$ac_exeext conftest.$ac_ext
13674LIBS=$ac_check_lib_save_LIBS
13675fi
13676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13677$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13678if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13679  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13680else
13681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13682$as_echo_n "checking for dld_link in -ldld... " >&6; }
13683if ${ac_cv_lib_dld_dld_link+:} false; then :
13684  $as_echo_n "(cached) " >&6
13685else
13686  ac_check_lib_save_LIBS=$LIBS
13687LIBS="-ldld  $LIBS"
13688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689/* end confdefs.h.  */
13690
13691/* Override any GCC internal prototype to avoid an error.
13692   Use char because int might match the return type of a GCC
13693   builtin and then its argument prototype would still apply.  */
13694#ifdef __cplusplus
13695extern "C"
13696#endif
13697char dld_link ();
13698int
13699main ()
13700{
13701return dld_link ();
13702  ;
13703  return 0;
13704}
13705_ACEOF
13706if ac_fn_c_try_link "$LINENO"; then :
13707  ac_cv_lib_dld_dld_link=yes
13708else
13709  ac_cv_lib_dld_dld_link=no
13710fi
13711rm -f core conftest.err conftest.$ac_objext \
13712    conftest$ac_exeext conftest.$ac_ext
13713LIBS=$ac_check_lib_save_LIBS
13714fi
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13716$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13717if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13718  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13719fi
13720
13721
13722fi
13723
13724
13725fi
13726
13727
13728fi
13729
13730
13731fi
13732
13733
13734fi
13735
13736    ;;
13737  esac
13738
13739  if test no = "$lt_cv_dlopen"; then
13740    enable_dlopen=no
13741  else
13742    enable_dlopen=yes
13743  fi
13744
13745  case $lt_cv_dlopen in
13746  dlopen)
13747    save_CPPFLAGS=$CPPFLAGS
13748    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13749
13750    save_LDFLAGS=$LDFLAGS
13751    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13752
13753    save_LIBS=$LIBS
13754    LIBS="$lt_cv_dlopen_libs $LIBS"
13755
13756    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13757$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13758if ${lt_cv_dlopen_self+:} false; then :
13759  $as_echo_n "(cached) " >&6
13760else
13761  	  if test yes = "$cross_compiling"; then :
13762  lt_cv_dlopen_self=cross
13763else
13764  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13765  lt_status=$lt_dlunknown
13766  cat > conftest.$ac_ext <<_LT_EOF
13767#line $LINENO "configure"
13768#include "confdefs.h"
13769
13770#if HAVE_DLFCN_H
13771#include <dlfcn.h>
13772#endif
13773
13774#include <stdio.h>
13775
13776#ifdef RTLD_GLOBAL
13777#  define LT_DLGLOBAL		RTLD_GLOBAL
13778#else
13779#  ifdef DL_GLOBAL
13780#    define LT_DLGLOBAL		DL_GLOBAL
13781#  else
13782#    define LT_DLGLOBAL		0
13783#  endif
13784#endif
13785
13786/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13787   find out it does not work in some platform. */
13788#ifndef LT_DLLAZY_OR_NOW
13789#  ifdef RTLD_LAZY
13790#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13791#  else
13792#    ifdef DL_LAZY
13793#      define LT_DLLAZY_OR_NOW		DL_LAZY
13794#    else
13795#      ifdef RTLD_NOW
13796#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13797#      else
13798#        ifdef DL_NOW
13799#          define LT_DLLAZY_OR_NOW	DL_NOW
13800#        else
13801#          define LT_DLLAZY_OR_NOW	0
13802#        endif
13803#      endif
13804#    endif
13805#  endif
13806#endif
13807
13808/* When -fvisibility=hidden is used, assume the code has been annotated
13809   correspondingly for the symbols needed.  */
13810#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13811int fnord () __attribute__((visibility("default")));
13812#endif
13813
13814int fnord () { return 42; }
13815int main ()
13816{
13817  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13818  int status = $lt_dlunknown;
13819
13820  if (self)
13821    {
13822      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13823      else
13824        {
13825	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13826          else puts (dlerror ());
13827	}
13828      /* dlclose (self); */
13829    }
13830  else
13831    puts (dlerror ());
13832
13833  return status;
13834}
13835_LT_EOF
13836  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13837  (eval $ac_link) 2>&5
13838  ac_status=$?
13839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13840  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13841    (./conftest; exit; ) >&5 2>/dev/null
13842    lt_status=$?
13843    case x$lt_status in
13844      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13845      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13846      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13847    esac
13848  else :
13849    # compilation failed
13850    lt_cv_dlopen_self=no
13851  fi
13852fi
13853rm -fr conftest*
13854
13855
13856fi
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13858$as_echo "$lt_cv_dlopen_self" >&6; }
13859
13860    if test yes = "$lt_cv_dlopen_self"; then
13861      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13862      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13863$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13864if ${lt_cv_dlopen_self_static+:} false; then :
13865  $as_echo_n "(cached) " >&6
13866else
13867  	  if test yes = "$cross_compiling"; then :
13868  lt_cv_dlopen_self_static=cross
13869else
13870  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13871  lt_status=$lt_dlunknown
13872  cat > conftest.$ac_ext <<_LT_EOF
13873#line $LINENO "configure"
13874#include "confdefs.h"
13875
13876#if HAVE_DLFCN_H
13877#include <dlfcn.h>
13878#endif
13879
13880#include <stdio.h>
13881
13882#ifdef RTLD_GLOBAL
13883#  define LT_DLGLOBAL		RTLD_GLOBAL
13884#else
13885#  ifdef DL_GLOBAL
13886#    define LT_DLGLOBAL		DL_GLOBAL
13887#  else
13888#    define LT_DLGLOBAL		0
13889#  endif
13890#endif
13891
13892/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13893   find out it does not work in some platform. */
13894#ifndef LT_DLLAZY_OR_NOW
13895#  ifdef RTLD_LAZY
13896#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13897#  else
13898#    ifdef DL_LAZY
13899#      define LT_DLLAZY_OR_NOW		DL_LAZY
13900#    else
13901#      ifdef RTLD_NOW
13902#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13903#      else
13904#        ifdef DL_NOW
13905#          define LT_DLLAZY_OR_NOW	DL_NOW
13906#        else
13907#          define LT_DLLAZY_OR_NOW	0
13908#        endif
13909#      endif
13910#    endif
13911#  endif
13912#endif
13913
13914/* When -fvisibility=hidden is used, assume the code has been annotated
13915   correspondingly for the symbols needed.  */
13916#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13917int fnord () __attribute__((visibility("default")));
13918#endif
13919
13920int fnord () { return 42; }
13921int main ()
13922{
13923  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13924  int status = $lt_dlunknown;
13925
13926  if (self)
13927    {
13928      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13929      else
13930        {
13931	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13932          else puts (dlerror ());
13933	}
13934      /* dlclose (self); */
13935    }
13936  else
13937    puts (dlerror ());
13938
13939  return status;
13940}
13941_LT_EOF
13942  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13943  (eval $ac_link) 2>&5
13944  ac_status=$?
13945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13946  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13947    (./conftest; exit; ) >&5 2>/dev/null
13948    lt_status=$?
13949    case x$lt_status in
13950      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13951      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13952      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13953    esac
13954  else :
13955    # compilation failed
13956    lt_cv_dlopen_self_static=no
13957  fi
13958fi
13959rm -fr conftest*
13960
13961
13962fi
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13964$as_echo "$lt_cv_dlopen_self_static" >&6; }
13965    fi
13966
13967    CPPFLAGS=$save_CPPFLAGS
13968    LDFLAGS=$save_LDFLAGS
13969    LIBS=$save_LIBS
13970    ;;
13971  esac
13972
13973  case $lt_cv_dlopen_self in
13974  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13975  *) enable_dlopen_self=unknown ;;
13976  esac
13977
13978  case $lt_cv_dlopen_self_static in
13979  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13980  *) enable_dlopen_self_static=unknown ;;
13981  esac
13982fi
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000striplib=
14001old_striplib=
14002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14003$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14004if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14005  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14006  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14008$as_echo "yes" >&6; }
14009else
14010# FIXME - insert some real tests, host_os isn't really good enough
14011  case $host_os in
14012  darwin*)
14013    if test -n "$STRIP"; then
14014      striplib="$STRIP -x"
14015      old_striplib="$STRIP -S"
14016      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14017$as_echo "yes" >&6; }
14018    else
14019      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14020$as_echo "no" >&6; }
14021    fi
14022    ;;
14023  *)
14024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025$as_echo "no" >&6; }
14026    ;;
14027  esac
14028fi
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041  # Report what library types will actually be built
14042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14043$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14045$as_echo "$can_build_shared" >&6; }
14046
14047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14048$as_echo_n "checking whether to build shared libraries... " >&6; }
14049  test no = "$can_build_shared" && enable_shared=no
14050
14051  # On AIX, shared libraries and static libraries use the same namespace, and
14052  # are all built from PIC.
14053  case $host_os in
14054  aix3*)
14055    test yes = "$enable_shared" && enable_static=no
14056    if test -n "$RANLIB"; then
14057      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14058      postinstall_cmds='$RANLIB $lib'
14059    fi
14060    ;;
14061
14062  aix[4-9]*)
14063    if test ia64 != "$host_cpu"; then
14064      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14065      yes,aix,yes) ;;			# shared object as lib.so file only
14066      yes,svr4,*) ;;			# shared object as lib.so archive member only
14067      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14068      esac
14069    fi
14070    ;;
14071  esac
14072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14073$as_echo "$enable_shared" >&6; }
14074
14075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14076$as_echo_n "checking whether to build static libraries... " >&6; }
14077  # Make sure either enable_shared or enable_static is yes.
14078  test yes = "$enable_shared" || enable_static=yes
14079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14080$as_echo "$enable_static" >&6; }
14081
14082
14083
14084
14085fi
14086ac_ext=c
14087ac_cpp='$CPP $CPPFLAGS'
14088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14090ac_compiler_gnu=$ac_cv_c_compiler_gnu
14091
14092CC=$lt_save_CC
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108        ac_config_commands="$ac_config_commands libtool"
14109
14110
14111
14112
14113# Only expand once:
14114
14115
14116
14117ol_link_perl=no
14118if test $ol_enable_perl != no ; then
14119	# Extract the first word of "perl", so it can be a program name with args.
14120set dummy perl; ac_word=$2
14121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14122$as_echo_n "checking for $ac_word... " >&6; }
14123if ${ac_cv_path_PERLBIN+:} false; then :
14124  $as_echo_n "(cached) " >&6
14125else
14126  case $PERLBIN in
14127  [\\/]* | ?:[\\/]*)
14128  ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
14129  ;;
14130  *)
14131  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132for as_dir in $PATH
14133do
14134  IFS=$as_save_IFS
14135  test -z "$as_dir" && as_dir=.
14136    for ac_exec_ext in '' $ac_executable_extensions; do
14137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14138    ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
14139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14140    break 2
14141  fi
14142done
14143  done
14144IFS=$as_save_IFS
14145
14146  test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
14147  ;;
14148esac
14149fi
14150PERLBIN=$ac_cv_path_PERLBIN
14151if test -n "$PERLBIN"; then
14152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLBIN" >&5
14153$as_echo "$PERLBIN" >&6; }
14154else
14155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156$as_echo "no" >&6; }
14157fi
14158
14159
14160
14161	if test "no$PERLBIN" = "no" ; then
14162		if test $ol_enable_perl = yes ; then
14163			as_fn_error $? "could not locate perl" "$LINENO" 5
14164		fi
14165
14166	else
14167		PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
14168		PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
14169
14170		if test x"$ol_enable_perl" = "xyes" ; then
14171			SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
14172		else
14173			MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
14174		fi
14175				ol_link_perl=yes
14176	fi
14177fi
14178
14179ac_ext=c
14180ac_cpp='$CPP $CPPFLAGS'
14181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14183ac_compiler_gnu=$ac_cv_c_compiler_gnu
14184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14185$as_echo_n "checking how to run the C preprocessor... " >&6; }
14186# On Suns, sometimes $CPP names a directory.
14187if test -n "$CPP" && test -d "$CPP"; then
14188  CPP=
14189fi
14190if test -z "$CPP"; then
14191  if ${ac_cv_prog_CPP+:} false; then :
14192  $as_echo_n "(cached) " >&6
14193else
14194      # Double quotes because CPP needs to be expanded
14195    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14196    do
14197      ac_preproc_ok=false
14198for ac_c_preproc_warn_flag in '' yes
14199do
14200  # Use a header file that comes with gcc, so configuring glibc
14201  # with a fresh cross-compiler works.
14202  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14203  # <limits.h> exists even on freestanding compilers.
14204  # On the NeXT, cc -E runs the code through the compiler's parser,
14205  # not just through cpp. "Syntax error" is here to catch this case.
14206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207/* end confdefs.h.  */
14208#ifdef __STDC__
14209# include <limits.h>
14210#else
14211# include <assert.h>
14212#endif
14213		     Syntax error
14214_ACEOF
14215if ac_fn_c_try_cpp "$LINENO"; then :
14216
14217else
14218  # Broken: fails on valid input.
14219continue
14220fi
14221rm -f conftest.err conftest.i conftest.$ac_ext
14222
14223  # OK, works on sane cases.  Now check whether nonexistent headers
14224  # can be detected and how.
14225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226/* end confdefs.h.  */
14227#include <ac_nonexistent.h>
14228_ACEOF
14229if ac_fn_c_try_cpp "$LINENO"; then :
14230  # Broken: success on invalid input.
14231continue
14232else
14233  # Passes both tests.
14234ac_preproc_ok=:
14235break
14236fi
14237rm -f conftest.err conftest.i conftest.$ac_ext
14238
14239done
14240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14241rm -f conftest.i conftest.err conftest.$ac_ext
14242if $ac_preproc_ok; then :
14243  break
14244fi
14245
14246    done
14247    ac_cv_prog_CPP=$CPP
14248
14249fi
14250  CPP=$ac_cv_prog_CPP
14251else
14252  ac_cv_prog_CPP=$CPP
14253fi
14254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14255$as_echo "$CPP" >&6; }
14256ac_preproc_ok=false
14257for ac_c_preproc_warn_flag in '' yes
14258do
14259  # Use a header file that comes with gcc, so configuring glibc
14260  # with a fresh cross-compiler works.
14261  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14262  # <limits.h> exists even on freestanding compilers.
14263  # On the NeXT, cc -E runs the code through the compiler's parser,
14264  # not just through cpp. "Syntax error" is here to catch this case.
14265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266/* end confdefs.h.  */
14267#ifdef __STDC__
14268# include <limits.h>
14269#else
14270# include <assert.h>
14271#endif
14272		     Syntax error
14273_ACEOF
14274if ac_fn_c_try_cpp "$LINENO"; then :
14275
14276else
14277  # Broken: fails on valid input.
14278continue
14279fi
14280rm -f conftest.err conftest.i conftest.$ac_ext
14281
14282  # OK, works on sane cases.  Now check whether nonexistent headers
14283  # can be detected and how.
14284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285/* end confdefs.h.  */
14286#include <ac_nonexistent.h>
14287_ACEOF
14288if ac_fn_c_try_cpp "$LINENO"; then :
14289  # Broken: success on invalid input.
14290continue
14291else
14292  # Passes both tests.
14293ac_preproc_ok=:
14294break
14295fi
14296rm -f conftest.err conftest.i conftest.$ac_ext
14297
14298done
14299# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14300rm -f conftest.i conftest.err conftest.$ac_ext
14301if $ac_preproc_ok; then :
14302
14303else
14304  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14306as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14307See \`config.log' for more details" "$LINENO" 5; }
14308fi
14309
14310ac_ext=c
14311ac_cpp='$CPP $CPPFLAGS'
14312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314ac_compiler_gnu=$ac_cv_c_compiler_gnu
14315
14316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using MS Visual C++" >&5
14317$as_echo_n "checking whether we are using MS Visual C++... " >&6; }
14318if ${ol_cv_msvc+:} false; then :
14319  $as_echo_n "(cached) " >&6
14320else
14321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322/* end confdefs.h.  */
14323
14324#ifndef _MSC_VER
14325#include <__FOO__/generate_error.h>
14326#endif
14327
14328_ACEOF
14329if ac_fn_c_try_cpp "$LINENO"; then :
14330  ol_cv_msvc=yes
14331else
14332  ol_cv_msvc=no
14333fi
14334rm -f conftest.err conftest.i conftest.$ac_ext
14335fi
14336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_msvc" >&5
14337$as_echo "$ol_cv_msvc" >&6; }
14338
14339case $host_os in
14340  *mingw32* ) ac_cv_mingw32=yes ;;
14341  *cygwin* ) ac_cv_cygwin=yes ;;
14342  *interix* ) ac_cv_interix=yes ;;
14343esac
14344
14345if test -n "$ac_tool_prefix"; then
14346  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14347set dummy ${ac_tool_prefix}windres; ac_word=$2
14348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14349$as_echo_n "checking for $ac_word... " >&6; }
14350if ${ac_cv_prog_RC+:} false; then :
14351  $as_echo_n "(cached) " >&6
14352else
14353  if test -n "$RC"; then
14354  ac_cv_prog_RC="$RC" # Let the user override the test.
14355else
14356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14357for as_dir in $PATH
14358do
14359  IFS=$as_save_IFS
14360  test -z "$as_dir" && as_dir=.
14361    for ac_exec_ext in '' $ac_executable_extensions; do
14362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14363    ac_cv_prog_RC="${ac_tool_prefix}windres"
14364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14365    break 2
14366  fi
14367done
14368  done
14369IFS=$as_save_IFS
14370
14371fi
14372fi
14373RC=$ac_cv_prog_RC
14374if test -n "$RC"; then
14375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
14376$as_echo "$RC" >&6; }
14377else
14378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14379$as_echo "no" >&6; }
14380fi
14381
14382
14383fi
14384if test -z "$ac_cv_prog_RC"; then
14385  ac_ct_RC=$RC
14386  # Extract the first word of "windres", so it can be a program name with args.
14387set dummy windres; ac_word=$2
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14389$as_echo_n "checking for $ac_word... " >&6; }
14390if ${ac_cv_prog_ac_ct_RC+:} false; then :
14391  $as_echo_n "(cached) " >&6
14392else
14393  if test -n "$ac_ct_RC"; then
14394  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
14395else
14396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14397for as_dir in $PATH
14398do
14399  IFS=$as_save_IFS
14400  test -z "$as_dir" && as_dir=.
14401    for ac_exec_ext in '' $ac_executable_extensions; do
14402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14403    ac_cv_prog_ac_ct_RC="windres"
14404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14405    break 2
14406  fi
14407done
14408  done
14409IFS=$as_save_IFS
14410
14411fi
14412fi
14413ac_ct_RC=$ac_cv_prog_ac_ct_RC
14414if test -n "$ac_ct_RC"; then
14415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
14416$as_echo "$ac_ct_RC" >&6; }
14417else
14418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419$as_echo "no" >&6; }
14420fi
14421
14422  if test "x$ac_ct_RC" = x; then
14423    RC=""
14424  else
14425    case $cross_compiling:$ac_tool_warned in
14426yes:)
14427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14429ac_tool_warned=yes ;;
14430esac
14431    RC=$ac_ct_RC
14432  fi
14433else
14434  RC="$ac_cv_prog_RC"
14435fi
14436
14437
14438
14439
14440
14441cat >>confdefs.h <<_ACEOF
14442#define EXEEXT "${EXEEXT}"
14443_ACEOF
14444
14445
14446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for be_app in -lbe" >&5
14447$as_echo_n "checking for be_app in -lbe... " >&6; }
14448if ${ac_cv_lib_be_be_app+:} false; then :
14449  $as_echo_n "(cached) " >&6
14450else
14451  ac_check_lib_save_LIBS=$LIBS
14452LIBS="-lbe -lroot -lnet $LIBS"
14453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454/* end confdefs.h.  */
14455
14456/* Override any GCC internal prototype to avoid an error.
14457   Use char because int might match the return type of a GCC
14458   builtin and then its argument prototype would still apply.  */
14459#ifdef __cplusplus
14460extern "C"
14461#endif
14462char be_app ();
14463int
14464main ()
14465{
14466return be_app ();
14467  ;
14468  return 0;
14469}
14470_ACEOF
14471if ac_fn_c_try_link "$LINENO"; then :
14472  ac_cv_lib_be_be_app=yes
14473else
14474  ac_cv_lib_be_be_app=no
14475fi
14476rm -f core conftest.err conftest.$ac_objext \
14477    conftest$ac_exeext conftest.$ac_ext
14478LIBS=$ac_check_lib_save_LIBS
14479fi
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_be_app" >&5
14481$as_echo "$ac_cv_lib_be_be_app" >&6; }
14482if test "x$ac_cv_lib_be_be_app" = xyes; then :
14483  LIBS="$LIBS -lbe -lroot -lnet"
14484else
14485  :
14486fi
14487
14488
14489ac_ext=c
14490ac_cpp='$CPP $CPPFLAGS'
14491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14493ac_compiler_gnu=$ac_cv_c_compiler_gnu
14494if test -n "$ac_tool_prefix"; then
14495  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14496set dummy ${ac_tool_prefix}gcc; ac_word=$2
14497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14498$as_echo_n "checking for $ac_word... " >&6; }
14499if ${ac_cv_prog_CC+:} false; then :
14500  $as_echo_n "(cached) " >&6
14501else
14502  if test -n "$CC"; then
14503  ac_cv_prog_CC="$CC" # Let the user override the test.
14504else
14505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14506for as_dir in $PATH
14507do
14508  IFS=$as_save_IFS
14509  test -z "$as_dir" && as_dir=.
14510    for ac_exec_ext in '' $ac_executable_extensions; do
14511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14512    ac_cv_prog_CC="${ac_tool_prefix}gcc"
14513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14514    break 2
14515  fi
14516done
14517  done
14518IFS=$as_save_IFS
14519
14520fi
14521fi
14522CC=$ac_cv_prog_CC
14523if test -n "$CC"; then
14524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14525$as_echo "$CC" >&6; }
14526else
14527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14528$as_echo "no" >&6; }
14529fi
14530
14531
14532fi
14533if test -z "$ac_cv_prog_CC"; then
14534  ac_ct_CC=$CC
14535  # Extract the first word of "gcc", so it can be a program name with args.
14536set dummy gcc; ac_word=$2
14537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14538$as_echo_n "checking for $ac_word... " >&6; }
14539if ${ac_cv_prog_ac_ct_CC+:} false; then :
14540  $as_echo_n "(cached) " >&6
14541else
14542  if test -n "$ac_ct_CC"; then
14543  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14544else
14545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14546for as_dir in $PATH
14547do
14548  IFS=$as_save_IFS
14549  test -z "$as_dir" && as_dir=.
14550    for ac_exec_ext in '' $ac_executable_extensions; do
14551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14552    ac_cv_prog_ac_ct_CC="gcc"
14553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14554    break 2
14555  fi
14556done
14557  done
14558IFS=$as_save_IFS
14559
14560fi
14561fi
14562ac_ct_CC=$ac_cv_prog_ac_ct_CC
14563if test -n "$ac_ct_CC"; then
14564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14565$as_echo "$ac_ct_CC" >&6; }
14566else
14567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14568$as_echo "no" >&6; }
14569fi
14570
14571  if test "x$ac_ct_CC" = x; then
14572    CC=""
14573  else
14574    case $cross_compiling:$ac_tool_warned in
14575yes:)
14576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14578ac_tool_warned=yes ;;
14579esac
14580    CC=$ac_ct_CC
14581  fi
14582else
14583  CC="$ac_cv_prog_CC"
14584fi
14585
14586if test -z "$CC"; then
14587          if test -n "$ac_tool_prefix"; then
14588    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14589set dummy ${ac_tool_prefix}cc; ac_word=$2
14590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14591$as_echo_n "checking for $ac_word... " >&6; }
14592if ${ac_cv_prog_CC+:} false; then :
14593  $as_echo_n "(cached) " >&6
14594else
14595  if test -n "$CC"; then
14596  ac_cv_prog_CC="$CC" # Let the user override the test.
14597else
14598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14599for as_dir in $PATH
14600do
14601  IFS=$as_save_IFS
14602  test -z "$as_dir" && as_dir=.
14603    for ac_exec_ext in '' $ac_executable_extensions; do
14604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14605    ac_cv_prog_CC="${ac_tool_prefix}cc"
14606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14607    break 2
14608  fi
14609done
14610  done
14611IFS=$as_save_IFS
14612
14613fi
14614fi
14615CC=$ac_cv_prog_CC
14616if test -n "$CC"; then
14617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14618$as_echo "$CC" >&6; }
14619else
14620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14621$as_echo "no" >&6; }
14622fi
14623
14624
14625  fi
14626fi
14627if test -z "$CC"; then
14628  # Extract the first word of "cc", so it can be a program name with args.
14629set dummy cc; ac_word=$2
14630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14631$as_echo_n "checking for $ac_word... " >&6; }
14632if ${ac_cv_prog_CC+:} false; then :
14633  $as_echo_n "(cached) " >&6
14634else
14635  if test -n "$CC"; then
14636  ac_cv_prog_CC="$CC" # Let the user override the test.
14637else
14638  ac_prog_rejected=no
14639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14640for as_dir in $PATH
14641do
14642  IFS=$as_save_IFS
14643  test -z "$as_dir" && as_dir=.
14644    for ac_exec_ext in '' $ac_executable_extensions; do
14645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14646    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14647       ac_prog_rejected=yes
14648       continue
14649     fi
14650    ac_cv_prog_CC="cc"
14651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14652    break 2
14653  fi
14654done
14655  done
14656IFS=$as_save_IFS
14657
14658if test $ac_prog_rejected = yes; then
14659  # We found a bogon in the path, so make sure we never use it.
14660  set dummy $ac_cv_prog_CC
14661  shift
14662  if test $# != 0; then
14663    # We chose a different compiler from the bogus one.
14664    # However, it has the same basename, so the bogon will be chosen
14665    # first if we set CC to just the basename; use the full file name.
14666    shift
14667    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14668  fi
14669fi
14670fi
14671fi
14672CC=$ac_cv_prog_CC
14673if test -n "$CC"; then
14674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14675$as_echo "$CC" >&6; }
14676else
14677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14678$as_echo "no" >&6; }
14679fi
14680
14681
14682fi
14683if test -z "$CC"; then
14684  if test -n "$ac_tool_prefix"; then
14685  for ac_prog in cl.exe
14686  do
14687    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14690$as_echo_n "checking for $ac_word... " >&6; }
14691if ${ac_cv_prog_CC+:} false; then :
14692  $as_echo_n "(cached) " >&6
14693else
14694  if test -n "$CC"; then
14695  ac_cv_prog_CC="$CC" # Let the user override the test.
14696else
14697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14698for as_dir in $PATH
14699do
14700  IFS=$as_save_IFS
14701  test -z "$as_dir" && as_dir=.
14702    for ac_exec_ext in '' $ac_executable_extensions; do
14703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14704    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14706    break 2
14707  fi
14708done
14709  done
14710IFS=$as_save_IFS
14711
14712fi
14713fi
14714CC=$ac_cv_prog_CC
14715if test -n "$CC"; then
14716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14717$as_echo "$CC" >&6; }
14718else
14719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14720$as_echo "no" >&6; }
14721fi
14722
14723
14724    test -n "$CC" && break
14725  done
14726fi
14727if test -z "$CC"; then
14728  ac_ct_CC=$CC
14729  for ac_prog in cl.exe
14730do
14731  # Extract the first word of "$ac_prog", so it can be a program name with args.
14732set dummy $ac_prog; ac_word=$2
14733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14734$as_echo_n "checking for $ac_word... " >&6; }
14735if ${ac_cv_prog_ac_ct_CC+:} false; then :
14736  $as_echo_n "(cached) " >&6
14737else
14738  if test -n "$ac_ct_CC"; then
14739  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14740else
14741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14742for as_dir in $PATH
14743do
14744  IFS=$as_save_IFS
14745  test -z "$as_dir" && as_dir=.
14746    for ac_exec_ext in '' $ac_executable_extensions; do
14747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14748    ac_cv_prog_ac_ct_CC="$ac_prog"
14749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14750    break 2
14751  fi
14752done
14753  done
14754IFS=$as_save_IFS
14755
14756fi
14757fi
14758ac_ct_CC=$ac_cv_prog_ac_ct_CC
14759if test -n "$ac_ct_CC"; then
14760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14761$as_echo "$ac_ct_CC" >&6; }
14762else
14763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764$as_echo "no" >&6; }
14765fi
14766
14767
14768  test -n "$ac_ct_CC" && break
14769done
14770
14771  if test "x$ac_ct_CC" = x; then
14772    CC=""
14773  else
14774    case $cross_compiling:$ac_tool_warned in
14775yes:)
14776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14778ac_tool_warned=yes ;;
14779esac
14780    CC=$ac_ct_CC
14781  fi
14782fi
14783
14784fi
14785
14786
14787test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14789as_fn_error $? "no acceptable C compiler found in \$PATH
14790See \`config.log' for more details" "$LINENO" 5; }
14791
14792# Provide some information about the compiler.
14793$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14794set X $ac_compile
14795ac_compiler=$2
14796for ac_option in --version -v -V -qversion; do
14797  { { ac_try="$ac_compiler $ac_option >&5"
14798case "(($ac_try" in
14799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800  *) ac_try_echo=$ac_try;;
14801esac
14802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14803$as_echo "$ac_try_echo"; } >&5
14804  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14805  ac_status=$?
14806  if test -s conftest.err; then
14807    sed '10a\
14808... rest of stderr output deleted ...
14809         10q' conftest.err >conftest.er1
14810    cat conftest.er1 >&5
14811  fi
14812  rm -f conftest.er1 conftest.err
14813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14814  test $ac_status = 0; }
14815done
14816
14817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14818$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14819if ${ac_cv_c_compiler_gnu+:} false; then :
14820  $as_echo_n "(cached) " >&6
14821else
14822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823/* end confdefs.h.  */
14824
14825int
14826main ()
14827{
14828#ifndef __GNUC__
14829       choke me
14830#endif
14831
14832  ;
14833  return 0;
14834}
14835_ACEOF
14836if ac_fn_c_try_compile "$LINENO"; then :
14837  ac_compiler_gnu=yes
14838else
14839  ac_compiler_gnu=no
14840fi
14841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14842ac_cv_c_compiler_gnu=$ac_compiler_gnu
14843
14844fi
14845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14846$as_echo "$ac_cv_c_compiler_gnu" >&6; }
14847if test $ac_compiler_gnu = yes; then
14848  GCC=yes
14849else
14850  GCC=
14851fi
14852ac_test_CFLAGS=${CFLAGS+set}
14853ac_save_CFLAGS=$CFLAGS
14854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14855$as_echo_n "checking whether $CC accepts -g... " >&6; }
14856if ${ac_cv_prog_cc_g+:} false; then :
14857  $as_echo_n "(cached) " >&6
14858else
14859  ac_save_c_werror_flag=$ac_c_werror_flag
14860   ac_c_werror_flag=yes
14861   ac_cv_prog_cc_g=no
14862   CFLAGS="-g"
14863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864/* end confdefs.h.  */
14865
14866int
14867main ()
14868{
14869
14870  ;
14871  return 0;
14872}
14873_ACEOF
14874if ac_fn_c_try_compile "$LINENO"; then :
14875  ac_cv_prog_cc_g=yes
14876else
14877  CFLAGS=""
14878      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879/* end confdefs.h.  */
14880
14881int
14882main ()
14883{
14884
14885  ;
14886  return 0;
14887}
14888_ACEOF
14889if ac_fn_c_try_compile "$LINENO"; then :
14890
14891else
14892  ac_c_werror_flag=$ac_save_c_werror_flag
14893	 CFLAGS="-g"
14894	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895/* end confdefs.h.  */
14896
14897int
14898main ()
14899{
14900
14901  ;
14902  return 0;
14903}
14904_ACEOF
14905if ac_fn_c_try_compile "$LINENO"; then :
14906  ac_cv_prog_cc_g=yes
14907fi
14908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909fi
14910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911fi
14912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913   ac_c_werror_flag=$ac_save_c_werror_flag
14914fi
14915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14916$as_echo "$ac_cv_prog_cc_g" >&6; }
14917if test "$ac_test_CFLAGS" = set; then
14918  CFLAGS=$ac_save_CFLAGS
14919elif test $ac_cv_prog_cc_g = yes; then
14920  if test "$GCC" = yes; then
14921    CFLAGS="-g -O2"
14922  else
14923    CFLAGS="-g"
14924  fi
14925else
14926  if test "$GCC" = yes; then
14927    CFLAGS="-O2"
14928  else
14929    CFLAGS=
14930  fi
14931fi
14932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14933$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14934if ${ac_cv_prog_cc_c89+:} false; then :
14935  $as_echo_n "(cached) " >&6
14936else
14937  ac_cv_prog_cc_c89=no
14938ac_save_CC=$CC
14939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940/* end confdefs.h.  */
14941#include <stdarg.h>
14942#include <stdio.h>
14943struct stat;
14944/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14945struct buf { int x; };
14946FILE * (*rcsopen) (struct buf *, struct stat *, int);
14947static char *e (p, i)
14948     char **p;
14949     int i;
14950{
14951  return p[i];
14952}
14953static char *f (char * (*g) (char **, int), char **p, ...)
14954{
14955  char *s;
14956  va_list v;
14957  va_start (v,p);
14958  s = g (p, va_arg (v,int));
14959  va_end (v);
14960  return s;
14961}
14962
14963/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14964   function prototypes and stuff, but not '\xHH' hex character constants.
14965   These don't provoke an error unfortunately, instead are silently treated
14966   as 'x'.  The following induces an error, until -std is added to get
14967   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14968   array size at least.  It's necessary to write '\x00'==0 to get something
14969   that's true only with -std.  */
14970int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14971
14972/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14973   inside strings and character constants.  */
14974#define FOO(x) 'x'
14975int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14976
14977int test (int i, double x);
14978struct s1 {int (*f) (int a);};
14979struct s2 {int (*f) (double a);};
14980int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14981int argc;
14982char **argv;
14983int
14984main ()
14985{
14986return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14987  ;
14988  return 0;
14989}
14990_ACEOF
14991for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14992	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14993do
14994  CC="$ac_save_CC $ac_arg"
14995  if ac_fn_c_try_compile "$LINENO"; then :
14996  ac_cv_prog_cc_c89=$ac_arg
14997fi
14998rm -f core conftest.err conftest.$ac_objext
14999  test "x$ac_cv_prog_cc_c89" != "xno" && break
15000done
15001rm -f conftest.$ac_ext
15002CC=$ac_save_CC
15003
15004fi
15005# AC_CACHE_VAL
15006case "x$ac_cv_prog_cc_c89" in
15007  x)
15008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15009$as_echo "none needed" >&6; } ;;
15010  xno)
15011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15012$as_echo "unsupported" >&6; } ;;
15013  *)
15014    CC="$CC $ac_cv_prog_cc_c89"
15015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15016$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15017esac
15018if test "x$ac_cv_prog_cc_c89" != xno; then :
15019
15020fi
15021
15022ac_ext=c
15023ac_cpp='$CPP $CPPFLAGS'
15024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15026ac_compiler_gnu=$ac_cv_c_compiler_gnu
15027
15028if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
15029	as_fn_error $? "OpenLDAP requires compiler to support STDC constructs." "$LINENO" 5
15030fi
15031
15032# test for make depend flag
15033OL_MKDEP=
15034OL_MKDEP_FLAGS=
15035if test -z "${MKDEP}"; then
15036	OL_MKDEP="${CC-cc}"
15037	if test -z "${MKDEP_FLAGS}"; then
15038		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${OL_MKDEP} depend flag" >&5
15039$as_echo_n "checking for ${OL_MKDEP} depend flag... " >&6; }
15040if ${ol_cv_mkdep+:} false; then :
15041  $as_echo_n "(cached) " >&6
15042else
15043
15044			ol_cv_mkdep=no
15045			for flag in "-M" "-xM"; do
15046				cat > conftest.c <<EOF
15047 noCode;
15048EOF
15049				if { ac_try='$OL_MKDEP $flag conftest.c'
15050  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15051  (eval $ac_try) 2>&5
15052  ac_status=$?
15053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15054  test $ac_status = 0; }; } \
15055					| grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
15056				then
15057					if test ! -f conftest."${ac_object}" ; then
15058						ol_cv_mkdep=$flag
15059						OL_MKDEP_FLAGS="$flag"
15060						break
15061					fi
15062				fi
15063			done
15064			rm -f conftest*
15065
15066fi
15067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_mkdep" >&5
15068$as_echo "$ol_cv_mkdep" >&6; }
15069		test "$ol_cv_mkdep" = no && OL_MKDEP=":"
15070	else
15071		cc_cv_mkdep=yes
15072		OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
15073	fi
15074else
15075	cc_cv_mkdep=yes
15076	OL_MKDEP="${MKDEP}"
15077	OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
15078fi
15079
15080
15081
15082if test "${ol_cv_mkdep}" = no ; then
15083	# this will soon become an error
15084	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: do not know how to generate dependencies" >&5
15085$as_echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
15086fi
15087
15088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for afopen in -ls" >&5
15089$as_echo_n "checking for afopen in -ls... " >&6; }
15090if ${ac_cv_lib_s_afopen+:} false; then :
15091  $as_echo_n "(cached) " >&6
15092else
15093  ac_check_lib_save_LIBS=$LIBS
15094LIBS="-ls  $LIBS"
15095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096/* end confdefs.h.  */
15097
15098/* Override any GCC internal prototype to avoid an error.
15099   Use char because int might match the return type of a GCC
15100   builtin and then its argument prototype would still apply.  */
15101#ifdef __cplusplus
15102extern "C"
15103#endif
15104char afopen ();
15105int
15106main ()
15107{
15108return afopen ();
15109  ;
15110  return 0;
15111}
15112_ACEOF
15113if ac_fn_c_try_link "$LINENO"; then :
15114  ac_cv_lib_s_afopen=yes
15115else
15116  ac_cv_lib_s_afopen=no
15117fi
15118rm -f core conftest.err conftest.$ac_objext \
15119    conftest$ac_exeext conftest.$ac_ext
15120LIBS=$ac_check_lib_save_LIBS
15121fi
15122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_afopen" >&5
15123$as_echo "$ac_cv_lib_s_afopen" >&6; }
15124if test "x$ac_cv_lib_s_afopen" = xyes; then :
15125
15126	AUTH_LIBS=-ls
15127
15128$as_echo "#define HAVE_AIX_SECURITY 1" >>confdefs.h
15129
15130
15131fi
15132
15133
15134case "$target" in
15135*-ibm-openedition)
15136	ac_cv_func_getopt=no
15137
15138$as_echo "#define BOTH_STRINGS_H 1" >>confdefs.h
15139
15140	;;
15141esac
15142
15143ol_link_modules=no
15144WITH_MODULES_ENABLED=no
15145if test $ol_enable_modules != no ; then
15146	for ac_header in ltdl.h
15147do :
15148  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
15149if test "x$ac_cv_header_ltdl_h" = xyes; then :
15150  cat >>confdefs.h <<_ACEOF
15151#define HAVE_LTDL_H 1
15152_ACEOF
15153
15154fi
15155
15156done
15157
15158
15159	if test $ac_cv_header_ltdl_h = no ; then
15160		as_fn_error $? "could not locate libtool ltdl.h" "$LINENO" 5
15161	fi
15162
15163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
15164$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
15165if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
15166  $as_echo_n "(cached) " >&6
15167else
15168  ac_check_lib_save_LIBS=$LIBS
15169LIBS="-lltdl  $LIBS"
15170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171/* end confdefs.h.  */
15172
15173/* Override any GCC internal prototype to avoid an error.
15174   Use char because int might match the return type of a GCC
15175   builtin and then its argument prototype would still apply.  */
15176#ifdef __cplusplus
15177extern "C"
15178#endif
15179char lt_dlinit ();
15180int
15181main ()
15182{
15183return lt_dlinit ();
15184  ;
15185  return 0;
15186}
15187_ACEOF
15188if ac_fn_c_try_link "$LINENO"; then :
15189  ac_cv_lib_ltdl_lt_dlinit=yes
15190else
15191  ac_cv_lib_ltdl_lt_dlinit=no
15192fi
15193rm -f core conftest.err conftest.$ac_objext \
15194    conftest$ac_exeext conftest.$ac_ext
15195LIBS=$ac_check_lib_save_LIBS
15196fi
15197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
15198$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
15199if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
15200
15201		MODULES_LIBS=-lltdl
15202
15203$as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
15204
15205
15206fi
15207
15208
15209	if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
15210		as_fn_error $? "could not locate libtool -lltdl" "$LINENO" 5
15211	fi
15212	ol_link_modules=yes
15213	WITH_MODULES_ENABLED=yes
15214fi
15215
15216# test for EBCDIC
15217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBCDIC" >&5
15218$as_echo_n "checking for EBCDIC... " >&6; }
15219if ${ol_cv_cpp_ebcdic+:} false; then :
15220  $as_echo_n "(cached) " >&6
15221else
15222
15223	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224/* end confdefs.h.  */
15225
15226#if !('M' == 0xd4)
15227#include <__ASCII__/generate_error.h>
15228#endif
15229
15230_ACEOF
15231if ac_fn_c_try_cpp "$LINENO"; then :
15232  ol_cv_cpp_ebcdic=yes
15233else
15234  ol_cv_cpp_ebcdic=no
15235fi
15236rm -f conftest.err conftest.i conftest.$ac_ext
15237fi
15238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cpp_ebcdic" >&5
15239$as_echo "$ol_cv_cpp_ebcdic" >&6; }
15240if test $ol_cv_cpp_ebcdic = yes ; then
15241
15242$as_echo "#define HAVE_EBCDIC 1" >>confdefs.h
15243
15244fi
15245
15246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15247$as_echo_n "checking for ANSI C header files... " >&6; }
15248if ${ol_cv_header_stdc+:} false; then :
15249  $as_echo_n "(cached) " >&6
15250else
15251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252/* end confdefs.h.  */
15253#include <stdlib.h>
15254#include <stdarg.h>
15255#include <string.h>
15256#include <float.h>
15257_ACEOF
15258if ac_fn_c_try_cpp "$LINENO"; then :
15259  ol_cv_header_stdc=yes
15260else
15261  ol_cv_header_stdc=no
15262fi
15263rm -f conftest.err conftest.i conftest.$ac_ext
15264
15265if test $ol_cv_header_stdc = yes; then
15266  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268/* end confdefs.h.  */
15269#include <string.h>
15270
15271_ACEOF
15272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15273  $EGREP "memchr" >/dev/null 2>&1; then :
15274
15275else
15276  ol_cv_header_stdc=no
15277fi
15278rm -f conftest*
15279
15280fi
15281
15282if test $ol_cv_header_stdc = yes; then
15283  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285/* end confdefs.h.  */
15286#include <stdlib.h>
15287
15288_ACEOF
15289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15290  $EGREP "free" >/dev/null 2>&1; then :
15291
15292else
15293  ol_cv_header_stdc=no
15294fi
15295rm -f conftest*
15296
15297fi
15298
15299if test $ol_cv_header_stdc = yes; then
15300  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15301if test "$cross_compiling" = yes; then :
15302  :
15303else
15304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305/* end confdefs.h.  */
15306#include <ctype.h>
15307#ifndef HAVE_EBCDIC
15308#	define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15309#	define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15310#else
15311#	define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15312		|| ('j' <= (c) && (c) <= 'r') \
15313		|| ('s' <= (c) && (c) <= 'z'))
15314#	define TOUPPER(c)	(ISLOWER(c) ? ((c) | 0x40) : (c))
15315#endif
15316#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15317int main () { int i; for (i = 0; i < 256; i++)
15318if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15319exit (0); }
15320
15321_ACEOF
15322if ac_fn_c_try_run "$LINENO"; then :
15323
15324else
15325  ol_cv_header_stdc=no
15326fi
15327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15328  conftest.$ac_objext conftest.beam conftest.$ac_ext
15329fi
15330
15331fi
15332fi
15333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_stdc" >&5
15334$as_echo "$ol_cv_header_stdc" >&6; }
15335if test $ol_cv_header_stdc = yes; then
15336  $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15337
15338fi
15339ac_cv_header_stdc=disable
15340
15341
15342if test $ol_cv_header_stdc != yes; then
15343	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate Standard C compliant headers" >&5
15344$as_echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
15345fi
15346
15347ac_header_dirent=no
15348for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15349  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15351$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15352if eval \${$as_ac_Header+:} false; then :
15353  $as_echo_n "(cached) " >&6
15354else
15355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356/* end confdefs.h.  */
15357#include <sys/types.h>
15358#include <$ac_hdr>
15359
15360int
15361main ()
15362{
15363if ((DIR *) 0)
15364return 0;
15365  ;
15366  return 0;
15367}
15368_ACEOF
15369if ac_fn_c_try_compile "$LINENO"; then :
15370  eval "$as_ac_Header=yes"
15371else
15372  eval "$as_ac_Header=no"
15373fi
15374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375fi
15376eval ac_res=\$$as_ac_Header
15377	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15378$as_echo "$ac_res" >&6; }
15379if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15380  cat >>confdefs.h <<_ACEOF
15381#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15382_ACEOF
15383
15384ac_header_dirent=$ac_hdr; break
15385fi
15386
15387done
15388# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15389if test $ac_header_dirent = dirent.h; then
15390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15391$as_echo_n "checking for library containing opendir... " >&6; }
15392if ${ac_cv_search_opendir+:} false; then :
15393  $as_echo_n "(cached) " >&6
15394else
15395  ac_func_search_save_LIBS=$LIBS
15396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397/* end confdefs.h.  */
15398
15399/* Override any GCC internal prototype to avoid an error.
15400   Use char because int might match the return type of a GCC
15401   builtin and then its argument prototype would still apply.  */
15402#ifdef __cplusplus
15403extern "C"
15404#endif
15405char opendir ();
15406int
15407main ()
15408{
15409return opendir ();
15410  ;
15411  return 0;
15412}
15413_ACEOF
15414for ac_lib in '' dir; do
15415  if test -z "$ac_lib"; then
15416    ac_res="none required"
15417  else
15418    ac_res=-l$ac_lib
15419    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15420  fi
15421  if ac_fn_c_try_link "$LINENO"; then :
15422  ac_cv_search_opendir=$ac_res
15423fi
15424rm -f core conftest.err conftest.$ac_objext \
15425    conftest$ac_exeext
15426  if ${ac_cv_search_opendir+:} false; then :
15427  break
15428fi
15429done
15430if ${ac_cv_search_opendir+:} false; then :
15431
15432else
15433  ac_cv_search_opendir=no
15434fi
15435rm conftest.$ac_ext
15436LIBS=$ac_func_search_save_LIBS
15437fi
15438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15439$as_echo "$ac_cv_search_opendir" >&6; }
15440ac_res=$ac_cv_search_opendir
15441if test "$ac_res" != no; then :
15442  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15443
15444fi
15445
15446else
15447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15448$as_echo_n "checking for library containing opendir... " >&6; }
15449if ${ac_cv_search_opendir+:} false; then :
15450  $as_echo_n "(cached) " >&6
15451else
15452  ac_func_search_save_LIBS=$LIBS
15453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454/* end confdefs.h.  */
15455
15456/* Override any GCC internal prototype to avoid an error.
15457   Use char because int might match the return type of a GCC
15458   builtin and then its argument prototype would still apply.  */
15459#ifdef __cplusplus
15460extern "C"
15461#endif
15462char opendir ();
15463int
15464main ()
15465{
15466return opendir ();
15467  ;
15468  return 0;
15469}
15470_ACEOF
15471for ac_lib in '' x; do
15472  if test -z "$ac_lib"; then
15473    ac_res="none required"
15474  else
15475    ac_res=-l$ac_lib
15476    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15477  fi
15478  if ac_fn_c_try_link "$LINENO"; then :
15479  ac_cv_search_opendir=$ac_res
15480fi
15481rm -f core conftest.err conftest.$ac_objext \
15482    conftest$ac_exeext
15483  if ${ac_cv_search_opendir+:} false; then :
15484  break
15485fi
15486done
15487if ${ac_cv_search_opendir+:} false; then :
15488
15489else
15490  ac_cv_search_opendir=no
15491fi
15492rm conftest.$ac_ext
15493LIBS=$ac_func_search_save_LIBS
15494fi
15495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15496$as_echo "$ac_cv_search_opendir" >&6; }
15497ac_res=$ac_cv_search_opendir
15498if test "$ac_res" != no; then :
15499  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15500
15501fi
15502
15503fi
15504
15505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15506$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15507if ${ac_cv_header_sys_wait_h+:} false; then :
15508  $as_echo_n "(cached) " >&6
15509else
15510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511/* end confdefs.h.  */
15512#include <sys/types.h>
15513#include <sys/wait.h>
15514#ifndef WEXITSTATUS
15515# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15516#endif
15517#ifndef WIFEXITED
15518# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15519#endif
15520
15521int
15522main ()
15523{
15524  int s;
15525  wait (&s);
15526  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15527  ;
15528  return 0;
15529}
15530_ACEOF
15531if ac_fn_c_try_compile "$LINENO"; then :
15532  ac_cv_header_sys_wait_h=yes
15533else
15534  ac_cv_header_sys_wait_h=no
15535fi
15536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537fi
15538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15539$as_echo "$ac_cv_header_sys_wait_h" >&6; }
15540if test $ac_cv_header_sys_wait_h = yes; then
15541
15542$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15543
15544fi
15545
15546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
15547$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
15548if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
15549  $as_echo_n "(cached) " >&6
15550else
15551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15552/* end confdefs.h.  */
15553#include <sys/types.h>
15554#include <termios.h>
15555#ifdef TIOCGWINSZ
15556  yes
15557#endif
15558
15559_ACEOF
15560if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15561  $EGREP "yes" >/dev/null 2>&1; then :
15562  ac_cv_sys_tiocgwinsz_in_termios_h=yes
15563else
15564  ac_cv_sys_tiocgwinsz_in_termios_h=no
15565fi
15566rm -f conftest*
15567
15568fi
15569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
15570$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
15571
15572if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
15573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
15574$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
15575if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
15576  $as_echo_n "(cached) " >&6
15577else
15578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579/* end confdefs.h.  */
15580#include <sys/types.h>
15581#include <sys/ioctl.h>
15582#ifdef TIOCGWINSZ
15583  yes
15584#endif
15585
15586_ACEOF
15587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15588  $EGREP "yes" >/dev/null 2>&1; then :
15589  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
15590else
15591  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
15592fi
15593rm -f conftest*
15594
15595fi
15596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
15597$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
15598
15599  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
15600
15601$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
15602
15603  fi
15604fi
15605
15606
15607for ac_header in \
15608	arpa/inet.h		\
15609	arpa/nameser.h	\
15610	assert.h		\
15611	bits/types.h	\
15612	conio.h			\
15613	crypt.h			\
15614	direct.h		\
15615	errno.h			\
15616	fcntl.h			\
15617	filio.h			\
15618	getopt.h		\
15619	grp.h			\
15620	io.h			\
15621	libutil.h		\
15622	limits.h		\
15623	locale.h		\
15624	malloc.h		\
15625	memory.h		\
15626	psap.h			\
15627	pwd.h			\
15628	process.h		\
15629	sgtty.h			\
15630	shadow.h		\
15631	stddef.h		\
15632	string.h		\
15633	strings.h		\
15634	sysexits.h		\
15635	sys/file.h		\
15636	sys/filio.h		\
15637	sys/fstyp.h		\
15638	sys/errno.h		\
15639	sys/ioctl.h		\
15640	sys/param.h		\
15641	sys/privgrp.h	\
15642	sys/resource.h	\
15643	sys/select.h	\
15644	sys/socket.h	\
15645	sys/stat.h		\
15646	sys/syslog.h	\
15647	sys/time.h		\
15648	sys/types.h		\
15649	sys/uio.h		\
15650	sys/vmount.h	\
15651	syslog.h		\
15652	termios.h		\
15653	unistd.h		\
15654	utime.h			\
15655
15656do :
15657  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15658ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15659if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15660  cat >>confdefs.h <<_ACEOF
15661#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15662_ACEOF
15663
15664fi
15665
15666done
15667
15668
15669if test "$ac_cv_mingw32" = yes \
15670	-o "$ac_cv_interix" = yes \
15671	-o "$ol_cv_msvc" = yes
15672then
15673	for ac_header in winsock.h winsock2.h
15674do :
15675  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15676ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15677if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15678  cat >>confdefs.h <<_ACEOF
15679#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15680_ACEOF
15681
15682fi
15683
15684done
15685
15686fi
15687
15688for ac_header in resolv.h
15689do :
15690  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
15691#include <netinet/in.h>
15692
15693"
15694if test "x$ac_cv_header_resolv_h" = xyes; then :
15695  cat >>confdefs.h <<_ACEOF
15696#define HAVE_RESOLV_H 1
15697_ACEOF
15698
15699fi
15700
15701done
15702
15703
15704for ac_header in netinet/tcp.h
15705do :
15706  ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
15707#include <netinet/in.h>
15708
15709"
15710if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
15711  cat >>confdefs.h <<_ACEOF
15712#define HAVE_NETINET_TCP_H 1
15713_ACEOF
15714
15715fi
15716
15717done
15718
15719
15720for ac_header in sys/ucred.h
15721do :
15722  ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
15723#ifdef HAVE_SYS_PARAM_H
15724#include <sys/param.h>
15725#endif
15726
15727"
15728if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
15729  cat >>confdefs.h <<_ACEOF
15730#define HAVE_SYS_UCRED_H 1
15731_ACEOF
15732
15733fi
15734
15735done
15736
15737
15738
15739for ac_func in sigaction sigset
15740do :
15741  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15742ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15743if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15744  cat >>confdefs.h <<_ACEOF
15745#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15746_ACEOF
15747
15748fi
15749done
15750
15751for ac_func in fmemopen
15752do :
15753  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15754ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15755if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15756  cat >>confdefs.h <<_ACEOF
15757#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15758_ACEOF
15759
15760fi
15761done
15762
15763
15764if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset in -lV3" >&5
15766$as_echo_n "checking for sigset in -lV3... " >&6; }
15767if ${ac_cv_lib_V3_sigset+:} false; then :
15768  $as_echo_n "(cached) " >&6
15769else
15770  ac_check_lib_save_LIBS=$LIBS
15771LIBS="-lV3  $LIBS"
15772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773/* end confdefs.h.  */
15774
15775/* Override any GCC internal prototype to avoid an error.
15776   Use char because int might match the return type of a GCC
15777   builtin and then its argument prototype would still apply.  */
15778#ifdef __cplusplus
15779extern "C"
15780#endif
15781char sigset ();
15782int
15783main ()
15784{
15785return sigset ();
15786  ;
15787  return 0;
15788}
15789_ACEOF
15790if ac_fn_c_try_link "$LINENO"; then :
15791  ac_cv_lib_V3_sigset=yes
15792else
15793  ac_cv_lib_V3_sigset=no
15794fi
15795rm -f core conftest.err conftest.$ac_objext \
15796    conftest$ac_exeext conftest.$ac_ext
15797LIBS=$ac_check_lib_save_LIBS
15798fi
15799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_V3_sigset" >&5
15800$as_echo "$ac_cv_lib_V3_sigset" >&6; }
15801if test "x$ac_cv_lib_V3_sigset" = xyes; then :
15802  cat >>confdefs.h <<_ACEOF
15803#define HAVE_LIBV3 1
15804_ACEOF
15805
15806  LIBS="-lV3 $LIBS"
15807
15808fi
15809
15810fi
15811
15812if test $ol_cv_msvc = yes ; then
15813   ol_cv_winsock=yes
15814fi
15815
15816if test "$ac_cv_header_winsock_h" = yes; then
15817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock" >&5
15818$as_echo_n "checking for winsock... " >&6; }
15819if ${ol_cv_winsock+:} false; then :
15820  $as_echo_n "(cached) " >&6
15821else
15822
15823	save_LIBS="$LIBS"
15824	for curlib in none ws2_32 wsock32; do
15825		if test $curlib != none ; then
15826	    	LIBS="$save_LIBS -l$curlib"
15827		fi
15828		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829/* end confdefs.h.  */
15830#include <winsock.h>
15831
15832int
15833main ()
15834{
15835
15836			socket(0,0,0);
15837			select(0,NULL,NULL,NULL,NULL);
15838			closesocket(0);
15839			gethostname(NULL,0);
15840
15841  ;
15842  return 0;
15843}
15844_ACEOF
15845if ac_fn_c_try_link "$LINENO"; then :
15846  ol_cv_winsock=$curlib
15847else
15848  ol_cv_winsock=no
15849fi
15850rm -f core conftest.err conftest.$ac_objext \
15851    conftest$ac_exeext conftest.$ac_ext
15852
15853		test "$ol_cv_winsock" != no && break
15854	done
15855	LIBS="$save_LIBS"
15856
15857fi
15858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_winsock" >&5
15859$as_echo "$ol_cv_winsock" >&6; }
15860
15861	if test $ol_cv_winsock != no ; then
15862
15863$as_echo "#define HAVE_WINSOCK 1" >>confdefs.h
15864
15865    	ac_cv_func_socket=yes
15866    	ac_cv_func_select=yes
15867    	ac_cv_func_closesocket=yes
15868    	ac_cv_func_gethostname=yes
15869
15870		if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15871        	LIBS="$LIBS -l$ol_cv_winsock"
15872		fi
15873
15874    	if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15875
15876$as_echo "#define HAVE_WINSOCK2 1" >>confdefs.h
15877
15878    	fi
15879	fi
15880fi
15881
15882
15883ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15884if test "x$ac_cv_func_socket" = xyes; then :
15885  :
15886else
15887
15888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
15889$as_echo_n "checking for main in -lsocket... " >&6; }
15890if ${ac_cv_lib_socket_main+:} false; then :
15891  $as_echo_n "(cached) " >&6
15892else
15893  ac_check_lib_save_LIBS=$LIBS
15894LIBS="-lsocket  $LIBS"
15895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896/* end confdefs.h.  */
15897
15898
15899int
15900main ()
15901{
15902return main ();
15903  ;
15904  return 0;
15905}
15906_ACEOF
15907if ac_fn_c_try_link "$LINENO"; then :
15908  ac_cv_lib_socket_main=yes
15909else
15910  ac_cv_lib_socket_main=no
15911fi
15912rm -f core conftest.err conftest.$ac_objext \
15913    conftest$ac_exeext conftest.$ac_ext
15914LIBS=$ac_check_lib_save_LIBS
15915fi
15916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
15917$as_echo "$ac_cv_lib_socket_main" >&6; }
15918if test "x$ac_cv_lib_socket_main" = xyes; then :
15919  cat >>confdefs.h <<_ACEOF
15920#define HAVE_LIBSOCKET 1
15921_ACEOF
15922
15923  LIBS="-lsocket $LIBS"
15924
15925fi
15926
15927	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
15928$as_echo_n "checking for socket in -lnet... " >&6; }
15929if ${ac_cv_lib_net_socket+:} false; then :
15930  $as_echo_n "(cached) " >&6
15931else
15932  ac_check_lib_save_LIBS=$LIBS
15933LIBS="-lnet  $LIBS"
15934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935/* end confdefs.h.  */
15936
15937/* Override any GCC internal prototype to avoid an error.
15938   Use char because int might match the return type of a GCC
15939   builtin and then its argument prototype would still apply.  */
15940#ifdef __cplusplus
15941extern "C"
15942#endif
15943char socket ();
15944int
15945main ()
15946{
15947return socket ();
15948  ;
15949  return 0;
15950}
15951_ACEOF
15952if ac_fn_c_try_link "$LINENO"; then :
15953  ac_cv_lib_net_socket=yes
15954else
15955  ac_cv_lib_net_socket=no
15956fi
15957rm -f core conftest.err conftest.$ac_objext \
15958    conftest$ac_exeext conftest.$ac_ext
15959LIBS=$ac_check_lib_save_LIBS
15960fi
15961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
15962$as_echo "$ac_cv_lib_net_socket" >&6; }
15963if test "x$ac_cv_lib_net_socket" = xyes; then :
15964  cat >>confdefs.h <<_ACEOF
15965#define HAVE_LIBNET 1
15966_ACEOF
15967
15968  LIBS="-lnet $LIBS"
15969
15970fi
15971
15972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl_s" >&5
15973$as_echo_n "checking for main in -lnsl_s... " >&6; }
15974if ${ac_cv_lib_nsl_s_main+:} false; then :
15975  $as_echo_n "(cached) " >&6
15976else
15977  ac_check_lib_save_LIBS=$LIBS
15978LIBS="-lnsl_s  $LIBS"
15979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980/* end confdefs.h.  */
15981
15982
15983int
15984main ()
15985{
15986return main ();
15987  ;
15988  return 0;
15989}
15990_ACEOF
15991if ac_fn_c_try_link "$LINENO"; then :
15992  ac_cv_lib_nsl_s_main=yes
15993else
15994  ac_cv_lib_nsl_s_main=no
15995fi
15996rm -f core conftest.err conftest.$ac_objext \
15997    conftest$ac_exeext conftest.$ac_ext
15998LIBS=$ac_check_lib_save_LIBS
15999fi
16000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_main" >&5
16001$as_echo "$ac_cv_lib_nsl_s_main" >&6; }
16002if test "x$ac_cv_lib_nsl_s_main" = xyes; then :
16003  cat >>confdefs.h <<_ACEOF
16004#define HAVE_LIBNSL_S 1
16005_ACEOF
16006
16007  LIBS="-lnsl_s $LIBS"
16008
16009fi
16010
16011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
16012$as_echo_n "checking for main in -lnsl... " >&6; }
16013if ${ac_cv_lib_nsl_main+:} false; then :
16014  $as_echo_n "(cached) " >&6
16015else
16016  ac_check_lib_save_LIBS=$LIBS
16017LIBS="-lnsl  $LIBS"
16018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019/* end confdefs.h.  */
16020
16021
16022int
16023main ()
16024{
16025return main ();
16026  ;
16027  return 0;
16028}
16029_ACEOF
16030if ac_fn_c_try_link "$LINENO"; then :
16031  ac_cv_lib_nsl_main=yes
16032else
16033  ac_cv_lib_nsl_main=no
16034fi
16035rm -f core conftest.err conftest.$ac_objext \
16036    conftest$ac_exeext conftest.$ac_ext
16037LIBS=$ac_check_lib_save_LIBS
16038fi
16039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
16040$as_echo "$ac_cv_lib_nsl_main" >&6; }
16041if test "x$ac_cv_lib_nsl_main" = xyes; then :
16042  cat >>confdefs.h <<_ACEOF
16043#define HAVE_LIBNSL 1
16044_ACEOF
16045
16046  LIBS="-lnsl $LIBS"
16047
16048fi
16049
16050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
16051$as_echo_n "checking for socket in -linet... " >&6; }
16052if ${ac_cv_lib_inet_socket+:} false; then :
16053  $as_echo_n "(cached) " >&6
16054else
16055  ac_check_lib_save_LIBS=$LIBS
16056LIBS="-linet  $LIBS"
16057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058/* end confdefs.h.  */
16059
16060/* Override any GCC internal prototype to avoid an error.
16061   Use char because int might match the return type of a GCC
16062   builtin and then its argument prototype would still apply.  */
16063#ifdef __cplusplus
16064extern "C"
16065#endif
16066char socket ();
16067int
16068main ()
16069{
16070return socket ();
16071  ;
16072  return 0;
16073}
16074_ACEOF
16075if ac_fn_c_try_link "$LINENO"; then :
16076  ac_cv_lib_inet_socket=yes
16077else
16078  ac_cv_lib_inet_socket=no
16079fi
16080rm -f core conftest.err conftest.$ac_objext \
16081    conftest$ac_exeext conftest.$ac_ext
16082LIBS=$ac_check_lib_save_LIBS
16083fi
16084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
16085$as_echo "$ac_cv_lib_inet_socket" >&6; }
16086if test "x$ac_cv_lib_inet_socket" = xyes; then :
16087  cat >>confdefs.h <<_ACEOF
16088#define HAVE_LIBINET 1
16089_ACEOF
16090
16091  LIBS="-linet $LIBS"
16092
16093fi
16094
16095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
16096$as_echo_n "checking for main in -lgen... " >&6; }
16097if ${ac_cv_lib_gen_main+:} false; then :
16098  $as_echo_n "(cached) " >&6
16099else
16100  ac_check_lib_save_LIBS=$LIBS
16101LIBS="-lgen  $LIBS"
16102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103/* end confdefs.h.  */
16104
16105
16106int
16107main ()
16108{
16109return main ();
16110  ;
16111  return 0;
16112}
16113_ACEOF
16114if ac_fn_c_try_link "$LINENO"; then :
16115  ac_cv_lib_gen_main=yes
16116else
16117  ac_cv_lib_gen_main=no
16118fi
16119rm -f core conftest.err conftest.$ac_objext \
16120    conftest$ac_exeext conftest.$ac_ext
16121LIBS=$ac_check_lib_save_LIBS
16122fi
16123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
16124$as_echo "$ac_cv_lib_gen_main" >&6; }
16125if test "x$ac_cv_lib_gen_main" = xyes; then :
16126  cat >>confdefs.h <<_ACEOF
16127#define HAVE_LIBGEN 1
16128_ACEOF
16129
16130  LIBS="-lgen $LIBS"
16131
16132fi
16133
16134
16135fi
16136
16137
16138ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
16139if test "x$ac_cv_func_select" = xyes; then :
16140  :
16141else
16142  as_fn_error $? "select() required." "$LINENO" 5
16143fi
16144
16145
16146if test "${ac_cv_header_winsock_h}" != yes; then
16147				for ac_header in sys/select.h sys/socket.h
16148do :
16149  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16150ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16151if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16152  cat >>confdefs.h <<_ACEOF
16153#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16154_ACEOF
16155
16156fi
16157
16158done
16159
16160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
16161$as_echo_n "checking types of arguments for select... " >&6; }
16162if ${ac_cv_func_select_args+:} false; then :
16163  $as_echo_n "(cached) " >&6
16164else
16165  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16166 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16167  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169/* end confdefs.h.  */
16170$ac_includes_default
16171#ifdef HAVE_SYS_SELECT_H
16172# include <sys/select.h>
16173#endif
16174#ifdef HAVE_SYS_SOCKET_H
16175# include <sys/socket.h>
16176#endif
16177
16178int
16179main ()
16180{
16181extern int select ($ac_arg1,
16182					    $ac_arg234, $ac_arg234, $ac_arg234,
16183					    $ac_arg5);
16184  ;
16185  return 0;
16186}
16187_ACEOF
16188if ac_fn_c_try_compile "$LINENO"; then :
16189  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16190fi
16191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192  done
16193 done
16194done
16195# Provide a safe default value.
16196: "${ac_cv_func_select_args=int,int *,struct timeval *}"
16197
16198fi
16199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
16200$as_echo "$ac_cv_func_select_args" >&6; }
16201ac_save_IFS=$IFS; IFS=','
16202set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16203IFS=$ac_save_IFS
16204shift
16205
16206cat >>confdefs.h <<_ACEOF
16207#define SELECT_TYPE_ARG1 $1
16208_ACEOF
16209
16210
16211cat >>confdefs.h <<_ACEOF
16212#define SELECT_TYPE_ARG234 ($2)
16213_ACEOF
16214
16215
16216cat >>confdefs.h <<_ACEOF
16217#define SELECT_TYPE_ARG5 ($3)
16218_ACEOF
16219
16220rm -f conftest*
16221
16222fi
16223
16224
16225for ac_func in poll
16226do :
16227  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16228ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16229if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16230  cat >>confdefs.h <<_ACEOF
16231#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16232_ACEOF
16233
16234fi
16235done
16236
16237if test $ac_cv_func_poll = yes; then
16238for ac_header in poll.h sys/poll.h
16239do :
16240  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16241ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16242if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16243  cat >>confdefs.h <<_ACEOF
16244#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16245_ACEOF
16246
16247fi
16248
16249done
16250
16251fi
16252
16253for ac_header in sys/epoll.h
16254do :
16255  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16256ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16257if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16258  cat >>confdefs.h <<_ACEOF
16259#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16260_ACEOF
16261
16262fi
16263
16264done
16265
16266if test "${ac_cv_header_sys_epoll_h}" = yes; then
16267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
16268$as_echo_n "checking for epoll system call... " >&6; }
16269	if test "$cross_compiling" = yes; then :
16270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16271$as_echo "no" >&6; }
16272else
16273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274/* end confdefs.h.  */
16275int main(int argc, char **argv)
16276{
16277	int epfd = epoll_create(256);
16278	exit (epfd == -1 ? 1 : 0);
16279}
16280_ACEOF
16281if ac_fn_c_try_run "$LINENO"; then :
16282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16283$as_echo "yes" >&6; }
16284
16285$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
16286
16287else
16288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16289$as_echo "no" >&6; }
16290fi
16291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16292  conftest.$ac_objext conftest.beam conftest.$ac_ext
16293fi
16294
16295fi
16296
16297for ac_header in sys/event.h
16298do :
16299  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16300ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16301if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16302  cat >>confdefs.h <<_ACEOF
16303#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16304_ACEOF
16305
16306fi
16307
16308done
16309
16310if test "${ac_cv_header_sys_event_h}" = yes; then
16311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue system call" >&5
16312$as_echo_n "checking for kqueue system call... " >&6; }
16313if test "$cross_compiling" = yes; then :
16314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16315$as_echo "no" >&6; }
16316else
16317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318/* end confdefs.h.  */
16319int main(int argc, char **argv)
16320{
16321	int kqfd = kqueue();
16322	exit (kqfd == -1 ? 1 : 0);
16323}
16324_ACEOF
16325if ac_fn_c_try_run "$LINENO"; then :
16326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16327$as_echo "yes" >&6; }
16328
16329$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
16330
16331else
16332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16333$as_echo "no" >&6; }
16334fi
16335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16336  conftest.$ac_objext conftest.beam conftest.$ac_ext
16337fi
16338
16339fi
16340
16341for ac_header in sys/devpoll.h
16342do :
16343  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16344ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16345if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16346  cat >>confdefs.h <<_ACEOF
16347#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16348_ACEOF
16349
16350fi
16351
16352done
16353
16354if test "${ac_cv_header_sys_devpoll_h}" = yes \
16355		-a "${ac_cv_header_poll_h}" = yes ; \
16356then
16357	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
16358$as_echo_n "checking for /dev/poll... " >&6; }
16359	if test "$cross_compiling" = yes; then :
16360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16361$as_echo "no" >&6; }
16362else
16363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364/* end confdefs.h.  */
16365int main(int argc, char **argv)
16366{
16367	int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16368	exit (devpollfd == -1 ? 1 : 0);
16369}
16370_ACEOF
16371if ac_fn_c_try_run "$LINENO"; then :
16372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16373$as_echo "yes" >&6; }
16374
16375$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
16376
16377else
16378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379$as_echo "no" >&6; }
16380fi
16381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16382  conftest.$ac_objext conftest.beam conftest.$ac_ext
16383fi
16384
16385fi
16386
16387for ac_func in strerror strerror_r
16388do :
16389  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16390ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16391if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16392  cat >>confdefs.h <<_ACEOF
16393#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16394_ACEOF
16395
16396fi
16397done
16398
16399ol_cv_func_strerror_r=no
16400if test "${ac_cv_func_strerror_r}" = yes ; then
16401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking non-posix strerror_r" >&5
16402$as_echo_n "checking non-posix strerror_r... " >&6; }
16403if ${ol_cv_nonposix_strerror_r+:} false; then :
16404  $as_echo_n "(cached) " >&6
16405else
16406
16407	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408/* end confdefs.h.  */
16409#include <string.h>
16410_ACEOF
16411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16412  $EGREP "strerror_r" >/dev/null 2>&1; then :
16413  ol_decl_strerror_r=yes
16414else
16415  ol_decl_strerror_r=no
16416fi
16417rm -f conftest*
16418
16419	if test $ol_decl_strerror_r = yes ; then
16420		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421/* end confdefs.h.  */
16422#include <string.h>
16423int
16424main ()
16425{
16426   /* from autoconf 2.59 */
16427				char buf[100];
16428				char x = *strerror_r (0, buf, sizeof buf);
16429				char *p = strerror_r (0, buf, sizeof buf);
16430
16431  ;
16432  return 0;
16433}
16434_ACEOF
16435if ac_fn_c_try_compile "$LINENO"; then :
16436  ol_cv_nonposix_strerror_r=yes
16437else
16438  ol_cv_nonposix_strerror_r=no
16439fi
16440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441	else
16442		if test "$cross_compiling" = yes; then :
16443  ol_cv_nonposix_strerror_r=no
16444else
16445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446/* end confdefs.h.  */
16447
16448			main() {
16449				char buf[100];
16450				buf[0] = 0;
16451				strerror_r( 1, buf, sizeof buf );
16452				exit( buf[0] == 0 );
16453			}
16454
16455_ACEOF
16456if ac_fn_c_try_run "$LINENO"; then :
16457  ol_cv_nonposix_strerror_r=yes
16458else
16459  ol_cv_nonposix_strerror_r=no
16460fi
16461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16462  conftest.$ac_objext conftest.beam conftest.$ac_ext
16463fi
16464
16465	fi
16466
16467fi
16468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_nonposix_strerror_r" >&5
16469$as_echo "$ol_cv_nonposix_strerror_r" >&6; }
16470if test $ol_cv_nonposix_strerror_r = yes ; then
16471
16472$as_echo "#define HAVE_NONPOSIX_STRERROR_R 1" >>confdefs.h
16473
16474fi
16475
16476elif test "${ac_cv_func_strerror}" = no ; then
16477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
16478$as_echo_n "checking existence of sys_errlist... " >&6; }
16479if ${ol_cv_have_sys_errlist+:} false; then :
16480  $as_echo_n "(cached) " >&6
16481else
16482
16483	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484/* end confdefs.h.  */
16485#include <errno.h>
16486int
16487main ()
16488{
16489char *c = (char *) *sys_errlist
16490  ;
16491  return 0;
16492}
16493_ACEOF
16494if ac_fn_c_try_link "$LINENO"; then :
16495  ol_cv_have_sys_errlist=yes
16496else
16497  ol_cv_have_sys_errlist=no
16498fi
16499rm -f core conftest.err conftest.$ac_objext \
16500    conftest$ac_exeext conftest.$ac_ext
16501fi
16502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
16503$as_echo "$ol_cv_have_sys_errlist" >&6; }
16504if test $ol_cv_have_sys_errlist = yes ; then
16505
16506$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
16507
16508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
16509$as_echo_n "checking declaration of sys_errlist... " >&6; }
16510if ${ol_cv_dcl_sys_errlist+:} false; then :
16511  $as_echo_n "(cached) " >&6
16512else
16513
16514		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515/* end confdefs.h.  */
16516
16517#include <stdio.h>
16518#include <sys/types.h>
16519#include <errno.h>
16520#ifdef _WIN32
16521#include <stdlib.h>
16522#endif
16523int
16524main ()
16525{
16526char *c = (char *) *sys_errlist
16527  ;
16528  return 0;
16529}
16530_ACEOF
16531if ac_fn_c_try_compile "$LINENO"; then :
16532  ol_cv_dcl_sys_errlist=yes
16533else
16534  ol_cv_dcl_sys_errlist=no
16535fi
16536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537fi
16538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
16539$as_echo "$ol_cv_dcl_sys_errlist" >&6; }
16540#
16541	# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16542	if test $ol_cv_dcl_sys_errlist = no ; then
16543
16544$as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
16545
16546	fi
16547fi
16548
16549fi
16550
16551
16552for ac_header in regex.h
16553do :
16554  ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
16555#ifdef HAVE_SYS_TYPES_H
16556#include <sys/types.h>
16557#endif
16558
16559"
16560if test "x$ac_cv_header_regex_h" = xyes; then :
16561  cat >>confdefs.h <<_ACEOF
16562#define HAVE_REGEX_H 1
16563_ACEOF
16564
16565fi
16566
16567done
16568
16569
16570if test "$ac_cv_header_regex_h" != yes ; then
16571	as_fn_error $? "POSIX regex.h required." "$LINENO" 5
16572fi
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
16574$as_echo_n "checking for library containing regfree... " >&6; }
16575if ${ac_cv_search_regfree+:} false; then :
16576  $as_echo_n "(cached) " >&6
16577else
16578  ac_func_search_save_LIBS=$LIBS
16579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580/* end confdefs.h.  */
16581
16582/* Override any GCC internal prototype to avoid an error.
16583   Use char because int might match the return type of a GCC
16584   builtin and then its argument prototype would still apply.  */
16585#ifdef __cplusplus
16586extern "C"
16587#endif
16588char regfree ();
16589int
16590main ()
16591{
16592return regfree ();
16593  ;
16594  return 0;
16595}
16596_ACEOF
16597for ac_lib in '' regex gnuregex; do
16598  if test -z "$ac_lib"; then
16599    ac_res="none required"
16600  else
16601    ac_res=-l$ac_lib
16602    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16603  fi
16604  if ac_fn_c_try_link "$LINENO"; then :
16605  ac_cv_search_regfree=$ac_res
16606fi
16607rm -f core conftest.err conftest.$ac_objext \
16608    conftest$ac_exeext
16609  if ${ac_cv_search_regfree+:} false; then :
16610  break
16611fi
16612done
16613if ${ac_cv_search_regfree+:} false; then :
16614
16615else
16616  ac_cv_search_regfree=no
16617fi
16618rm conftest.$ac_ext
16619LIBS=$ac_func_search_save_LIBS
16620fi
16621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
16622$as_echo "$ac_cv_search_regfree" >&6; }
16623ac_res=$ac_cv_search_regfree
16624if test "$ac_res" != no; then :
16625  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16626  :
16627else
16628  as_fn_error $? "POSIX regex required." "$LINENO" 5
16629fi
16630
16631
16632
16633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible POSIX regex" >&5
16634$as_echo_n "checking for compatible POSIX regex... " >&6; }
16635if ${ol_cv_c_posix_regex+:} false; then :
16636  $as_echo_n "(cached) " >&6
16637else
16638
16639	if test "$cross_compiling" = yes; then :
16640  ol_cv_c_posix_regex=cross
16641else
16642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643/* end confdefs.h.  */
16644
16645#include <sys/types.h>
16646#include <regex.h>
16647static char *pattern, *string;
16648main()
16649{
16650	int rc;
16651	regex_t re;
16652
16653	pattern = "^A";
16654
16655	if(regcomp(&re, pattern, 0)) {
16656		return -1;
16657	}
16658
16659	string = "ALL MATCH";
16660
16661	rc = regexec(&re, string, 0, (void*)0, 0);
16662
16663	regfree(&re);
16664
16665	return rc;
16666}
16667_ACEOF
16668if ac_fn_c_try_run "$LINENO"; then :
16669  ol_cv_c_posix_regex=yes
16670else
16671  ol_cv_c_posix_regex=no
16672fi
16673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16674  conftest.$ac_objext conftest.beam conftest.$ac_ext
16675fi
16676
16677fi
16678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_posix_regex" >&5
16679$as_echo "$ol_cv_c_posix_regex" >&6; }
16680
16681if test "$ol_cv_c_posix_regex" = no ; then
16682	as_fn_error $? "broken POSIX regex!" "$LINENO" 5
16683fi
16684
16685
16686have_uuid=no
16687for ac_header in sys/uuid.h
16688do :
16689  ac_fn_c_check_header_mongrel "$LINENO" "sys/uuid.h" "ac_cv_header_sys_uuid_h" "$ac_includes_default"
16690if test "x$ac_cv_header_sys_uuid_h" = xyes; then :
16691  cat >>confdefs.h <<_ACEOF
16692#define HAVE_SYS_UUID_H 1
16693_ACEOF
16694
16695fi
16696
16697done
16698
16699if test $ac_cv_header_sys_uuid_h = yes ; then
16700	save_LIBS="$LIBS"
16701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_to_str" >&5
16702$as_echo_n "checking for library containing uuid_to_str... " >&6; }
16703if ${ac_cv_search_uuid_to_str+:} false; then :
16704  $as_echo_n "(cached) " >&6
16705else
16706  ac_func_search_save_LIBS=$LIBS
16707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708/* end confdefs.h.  */
16709
16710/* Override any GCC internal prototype to avoid an error.
16711   Use char because int might match the return type of a GCC
16712   builtin and then its argument prototype would still apply.  */
16713#ifdef __cplusplus
16714extern "C"
16715#endif
16716char uuid_to_str ();
16717int
16718main ()
16719{
16720return uuid_to_str ();
16721  ;
16722  return 0;
16723}
16724_ACEOF
16725for ac_lib in '' uuid; do
16726  if test -z "$ac_lib"; then
16727    ac_res="none required"
16728  else
16729    ac_res=-l$ac_lib
16730    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16731  fi
16732  if ac_fn_c_try_link "$LINENO"; then :
16733  ac_cv_search_uuid_to_str=$ac_res
16734fi
16735rm -f core conftest.err conftest.$ac_objext \
16736    conftest$ac_exeext
16737  if ${ac_cv_search_uuid_to_str+:} false; then :
16738  break
16739fi
16740done
16741if ${ac_cv_search_uuid_to_str+:} false; then :
16742
16743else
16744  ac_cv_search_uuid_to_str=no
16745fi
16746rm conftest.$ac_ext
16747LIBS=$ac_func_search_save_LIBS
16748fi
16749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_to_str" >&5
16750$as_echo "$ac_cv_search_uuid_to_str" >&6; }
16751ac_res=$ac_cv_search_uuid_to_str
16752if test "$ac_res" != no; then :
16753  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16754  have_uuid=yes
16755else
16756  :
16757fi
16758
16759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
16760$as_echo_n "checking for library containing uuid_create... " >&6; }
16761if ${ac_cv_search_uuid_create+:} false; then :
16762  $as_echo_n "(cached) " >&6
16763else
16764  ac_func_search_save_LIBS=$LIBS
16765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766/* end confdefs.h.  */
16767
16768/* Override any GCC internal prototype to avoid an error.
16769   Use char because int might match the return type of a GCC
16770   builtin and then its argument prototype would still apply.  */
16771#ifdef __cplusplus
16772extern "C"
16773#endif
16774char uuid_create ();
16775int
16776main ()
16777{
16778return uuid_create ();
16779  ;
16780  return 0;
16781}
16782_ACEOF
16783for ac_lib in '' uuid; do
16784  if test -z "$ac_lib"; then
16785    ac_res="none required"
16786  else
16787    ac_res=-l$ac_lib
16788    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16789  fi
16790  if ac_fn_c_try_link "$LINENO"; then :
16791  ac_cv_search_uuid_create=$ac_res
16792fi
16793rm -f core conftest.err conftest.$ac_objext \
16794    conftest$ac_exeext
16795  if ${ac_cv_search_uuid_create+:} false; then :
16796  break
16797fi
16798done
16799if ${ac_cv_search_uuid_create+:} false; then :
16800
16801else
16802  ac_cv_search_uuid_create=no
16803fi
16804rm conftest.$ac_ext
16805LIBS=$ac_func_search_save_LIBS
16806fi
16807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
16808$as_echo "$ac_cv_search_uuid_create" >&6; }
16809ac_res=$ac_cv_search_uuid_create
16810if test "$ac_res" != no; then :
16811  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16812  :
16813else
16814  have_uuid=no
16815fi
16816
16817	LIBS="$save_LIBS"
16818
16819	if test $have_uuid = yes ; then
16820
16821$as_echo "#define HAVE_UUID_TO_STR 1" >>confdefs.h
16822
16823
16824		test "$ac_cv_search_uuid_to_str" = "none required" || \
16825			LUTIL_LIBS="$LUTIL_LIBS $ac_cv_search_uuid_to_str"
16826	fi
16827fi
16828
16829if test $have_uuid = no ; then
16830	for ac_header in uuid/uuid.h
16831do :
16832  ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
16833if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
16834  cat >>confdefs.h <<_ACEOF
16835#define HAVE_UUID_UUID_H 1
16836_ACEOF
16837
16838fi
16839
16840done
16841
16842	if test $ac_cv_header_uuid_uuid_h = yes ; then
16843		save_LIBS="$LIBS"
16844		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
16845$as_echo_n "checking for library containing uuid_generate... " >&6; }
16846if ${ac_cv_search_uuid_generate+:} false; then :
16847  $as_echo_n "(cached) " >&6
16848else
16849  ac_func_search_save_LIBS=$LIBS
16850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16851/* end confdefs.h.  */
16852
16853/* Override any GCC internal prototype to avoid an error.
16854   Use char because int might match the return type of a GCC
16855   builtin and then its argument prototype would still apply.  */
16856#ifdef __cplusplus
16857extern "C"
16858#endif
16859char uuid_generate ();
16860int
16861main ()
16862{
16863return uuid_generate ();
16864  ;
16865  return 0;
16866}
16867_ACEOF
16868for ac_lib in '' uuid; do
16869  if test -z "$ac_lib"; then
16870    ac_res="none required"
16871  else
16872    ac_res=-l$ac_lib
16873    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16874  fi
16875  if ac_fn_c_try_link "$LINENO"; then :
16876  ac_cv_search_uuid_generate=$ac_res
16877fi
16878rm -f core conftest.err conftest.$ac_objext \
16879    conftest$ac_exeext
16880  if ${ac_cv_search_uuid_generate+:} false; then :
16881  break
16882fi
16883done
16884if ${ac_cv_search_uuid_generate+:} false; then :
16885
16886else
16887  ac_cv_search_uuid_generate=no
16888fi
16889rm conftest.$ac_ext
16890LIBS=$ac_func_search_save_LIBS
16891fi
16892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
16893$as_echo "$ac_cv_search_uuid_generate" >&6; }
16894ac_res=$ac_cv_search_uuid_generate
16895if test "$ac_res" != no; then :
16896  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16897  have_uuid=yes
16898else
16899  :
16900fi
16901
16902		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_unparse_lower" >&5
16903$as_echo_n "checking for library containing uuid_unparse_lower... " >&6; }
16904if ${ac_cv_search_uuid_unparse_lower+:} false; then :
16905  $as_echo_n "(cached) " >&6
16906else
16907  ac_func_search_save_LIBS=$LIBS
16908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909/* end confdefs.h.  */
16910
16911/* Override any GCC internal prototype to avoid an error.
16912   Use char because int might match the return type of a GCC
16913   builtin and then its argument prototype would still apply.  */
16914#ifdef __cplusplus
16915extern "C"
16916#endif
16917char uuid_unparse_lower ();
16918int
16919main ()
16920{
16921return uuid_unparse_lower ();
16922  ;
16923  return 0;
16924}
16925_ACEOF
16926for ac_lib in '' uuid; do
16927  if test -z "$ac_lib"; then
16928    ac_res="none required"
16929  else
16930    ac_res=-l$ac_lib
16931    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16932  fi
16933  if ac_fn_c_try_link "$LINENO"; then :
16934  ac_cv_search_uuid_unparse_lower=$ac_res
16935fi
16936rm -f core conftest.err conftest.$ac_objext \
16937    conftest$ac_exeext
16938  if ${ac_cv_search_uuid_unparse_lower+:} false; then :
16939  break
16940fi
16941done
16942if ${ac_cv_search_uuid_unparse_lower+:} false; then :
16943
16944else
16945  ac_cv_search_uuid_unparse_lower=no
16946fi
16947rm conftest.$ac_ext
16948LIBS=$ac_func_search_save_LIBS
16949fi
16950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_unparse_lower" >&5
16951$as_echo "$ac_cv_search_uuid_unparse_lower" >&6; }
16952ac_res=$ac_cv_search_uuid_unparse_lower
16953if test "$ac_res" != no; then :
16954  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16955  :
16956else
16957  have_uuid=no
16958fi
16959
16960		LIBS="$save_LIBS"
16961
16962		if test $have_uuid = yes ; then
16963
16964$as_echo "#define HAVE_UUID_GENERATE 1" >>confdefs.h
16965
16966
16967			test "$ac_cv_search_uuid_generate" = "none required" || \
16968				LUTIL_LIBS="$LUTIL_LIBS $ac_cv_search_uuid_generate"
16969		fi
16970	fi
16971fi
16972
16973if test $have_uuid = no ; then
16974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16975$as_echo_n "checking to see if -lrpcrt4 is needed for win32 UUID support... " >&6; }
16976	save_LIBS="$LIBS"
16977	LIBS="$LIBS -lrpcrt4"
16978	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16979/* end confdefs.h.  */
16980
16981		int __stdcall UuidCreate(void *);
16982		int __stdcall UuidToStringA(void *,void **);
16983
16984int
16985main ()
16986{
16987
16988		UuidCreate(0);
16989		UuidToStringA(0,0);
16990
16991  ;
16992  return 0;
16993}
16994_ACEOF
16995if ac_fn_c_try_link "$LINENO"; then :
16996  need_rpcrt=yes
16997else
16998  need_rpcrt=no
16999fi
17000rm -f core conftest.err conftest.$ac_objext \
17001    conftest$ac_exeext conftest.$ac_ext
17002	if test $need_rpcrt = yes; then
17003		SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17004		CLIENT_LIBS="$CLIENT_LIBS -lrpcrt4"
17005	fi
17006	LIBS="$save_LIBS"
17007	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_rpcrt" >&5
17008$as_echo "$need_rpcrt" >&6; }
17009fi
17010
17011ol_cv_lib_resolver=no
17012if test $ol_cv_lib_resolver = no ; then
17013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (default)" >&5
17014$as_echo_n "checking for resolver link (default)... " >&6; }
17015if ${ol_cv_resolver_none+:} false; then :
17016  $as_echo_n "(cached) " >&6
17017else
17018
17019	ol_RESOLVER_LIB=
17020	ol_LIBS=$LIBS
17021	LIBS="$ol_RESOLVER_LIB $LIBS"
17022
17023	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17024/* end confdefs.h.  */
17025
17026#ifdef HAVE_SYS_TYPES_H
17027#	include <sys/types.h>
17028#endif
17029#include <netinet/in.h>
17030#ifdef HAVE_ARPA_NAMESER_H
17031#	include <arpa/nameser.h>
17032#endif
17033#ifdef HAVE_RESOLV_H
17034#	include <resolv.h>
17035#endif
17036
17037int
17038main ()
17039{
17040{
17041	int len, status;
17042	char *request = NULL;
17043	unsigned char reply[64*1024];
17044	unsigned char host[64*1024];
17045	unsigned char *p;
17046
17047#ifdef NS_HFIXEDSZ
17048	/* Bind 8/9 interface */
17049	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17050#else
17051	/* Bind 4 interface */
17052# ifndef T_SRV
17053#  define T_SRV 33
17054# endif
17055	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17056#endif
17057	p = reply;
17058#ifdef NS_HFIXEDSZ
17059	/* Bind 8/9 interface */
17060	p += NS_HFIXEDSZ;
17061#elif defined(HFIXEDSZ)
17062	/* Bind 4 interface w/ HFIXEDSZ */
17063	p += HFIXEDSZ;
17064#else
17065	/* Bind 4 interface w/o HFIXEDSZ */
17066	p += sizeof(HEADER);
17067#endif
17068	status = dn_expand( reply, reply+len, p, host, sizeof(host));
17069}
17070  ;
17071  return 0;
17072}
17073_ACEOF
17074if ac_fn_c_try_link "$LINENO"; then :
17075  ol_cv_resolver_none=yes
17076else
17077  ol_cv_resolver_none=no
17078fi
17079rm -f core conftest.err conftest.$ac_objext \
17080    conftest$ac_exeext conftest.$ac_ext
17081
17082	LIBS="$ol_LIBS"
17083
17084fi
17085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_none" >&5
17086$as_echo "$ol_cv_resolver_none" >&6; }
17087
17088	if test $ol_cv_resolver_none = yes ; then
17089		ol_cv_lib_resolver=yes
17090	fi
17091fi
17092
17093if test $ol_cv_lib_resolver = no ; then
17094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lresolv)" >&5
17095$as_echo_n "checking for resolver link (-lresolv)... " >&6; }
17096if ${ol_cv_resolver_resolv+:} false; then :
17097  $as_echo_n "(cached) " >&6
17098else
17099
17100	ol_RESOLVER_LIB=-lresolv
17101	ol_LIBS=$LIBS
17102	LIBS="$ol_RESOLVER_LIB $LIBS"
17103
17104	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105/* end confdefs.h.  */
17106
17107#ifdef HAVE_SYS_TYPES_H
17108#	include <sys/types.h>
17109#endif
17110#include <netinet/in.h>
17111#ifdef HAVE_ARPA_NAMESER_H
17112#	include <arpa/nameser.h>
17113#endif
17114#ifdef HAVE_RESOLV_H
17115#	include <resolv.h>
17116#endif
17117
17118int
17119main ()
17120{
17121{
17122	int len, status;
17123	char *request = NULL;
17124	unsigned char reply[64*1024];
17125	unsigned char host[64*1024];
17126	unsigned char *p;
17127
17128#ifdef NS_HFIXEDSZ
17129	/* Bind 8/9 interface */
17130	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17131#else
17132	/* Bind 4 interface */
17133# ifndef T_SRV
17134#  define T_SRV 33
17135# endif
17136	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17137#endif
17138	p = reply;
17139#ifdef NS_HFIXEDSZ
17140	/* Bind 8/9 interface */
17141	p += NS_HFIXEDSZ;
17142#elif defined(HFIXEDSZ)
17143	/* Bind 4 interface w/ HFIXEDSZ */
17144	p += HFIXEDSZ;
17145#else
17146	/* Bind 4 interface w/o HFIXEDSZ */
17147	p += sizeof(HEADER);
17148#endif
17149	status = dn_expand( reply, reply+len, p, host, sizeof(host));
17150}
17151  ;
17152  return 0;
17153}
17154_ACEOF
17155if ac_fn_c_try_link "$LINENO"; then :
17156  ol_cv_resolver_resolv=yes
17157else
17158  ol_cv_resolver_resolv=no
17159fi
17160rm -f core conftest.err conftest.$ac_objext \
17161    conftest$ac_exeext conftest.$ac_ext
17162
17163	LIBS="$ol_LIBS"
17164
17165fi
17166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_resolv" >&5
17167$as_echo "$ol_cv_resolver_resolv" >&6; }
17168
17169	if test $ol_cv_resolver_resolv = yes ; then
17170		ol_cv_lib_resolver=-lresolv
17171	fi
17172fi
17173
17174if test $ol_cv_lib_resolver = no ; then
17175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lbind)" >&5
17176$as_echo_n "checking for resolver link (-lbind)... " >&6; }
17177if ${ol_cv_resolver_bind+:} false; then :
17178  $as_echo_n "(cached) " >&6
17179else
17180
17181	ol_RESOLVER_LIB=-lbind
17182	ol_LIBS=$LIBS
17183	LIBS="$ol_RESOLVER_LIB $LIBS"
17184
17185	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186/* end confdefs.h.  */
17187
17188#ifdef HAVE_SYS_TYPES_H
17189#	include <sys/types.h>
17190#endif
17191#include <netinet/in.h>
17192#ifdef HAVE_ARPA_NAMESER_H
17193#	include <arpa/nameser.h>
17194#endif
17195#ifdef HAVE_RESOLV_H
17196#	include <resolv.h>
17197#endif
17198
17199int
17200main ()
17201{
17202{
17203	int len, status;
17204	char *request = NULL;
17205	unsigned char reply[64*1024];
17206	unsigned char host[64*1024];
17207	unsigned char *p;
17208
17209#ifdef NS_HFIXEDSZ
17210	/* Bind 8/9 interface */
17211	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17212#else
17213	/* Bind 4 interface */
17214# ifndef T_SRV
17215#  define T_SRV 33
17216# endif
17217	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17218#endif
17219	p = reply;
17220#ifdef NS_HFIXEDSZ
17221	/* Bind 8/9 interface */
17222	p += NS_HFIXEDSZ;
17223#elif defined(HFIXEDSZ)
17224	/* Bind 4 interface w/ HFIXEDSZ */
17225	p += HFIXEDSZ;
17226#else
17227	/* Bind 4 interface w/o HFIXEDSZ */
17228	p += sizeof(HEADER);
17229#endif
17230	status = dn_expand( reply, reply+len, p, host, sizeof(host));
17231}
17232  ;
17233  return 0;
17234}
17235_ACEOF
17236if ac_fn_c_try_link "$LINENO"; then :
17237  ol_cv_resolver_bind=yes
17238else
17239  ol_cv_resolver_bind=no
17240fi
17241rm -f core conftest.err conftest.$ac_objext \
17242    conftest$ac_exeext conftest.$ac_ext
17243
17244	LIBS="$ol_LIBS"
17245
17246fi
17247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_bind" >&5
17248$as_echo "$ol_cv_resolver_bind" >&6; }
17249
17250	if test $ol_cv_resolver_bind = yes ; then
17251		ol_cv_lib_resolver=-lbind
17252	fi
17253fi
17254
17255
17256
17257ol_link_dnssrv=no
17258if test "$ol_cv_lib_resolver" != no ; then
17259
17260$as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
17261
17262
17263	if test "$ol_enable_dnssrv" != no ; then
17264		ol_link_dnssrv=yes
17265	fi
17266
17267	if test "$ol_cv_lib_resolver" != yes ; then
17268		LIBS="$ol_cv_lib_resolver $LIBS"
17269	fi
17270fi
17271
17272if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17273	if test "$ol_link_dnssrv" = no ; then
17274		as_fn_error $? "DNSSRV requires res_query()" "$LINENO" 5
17275	fi
17276else
17277	ol_enable_dnssrv=no
17278fi
17279
17280for ac_func in hstrerror
17281do :
17282  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17283ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17284if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17285  cat >>confdefs.h <<_ACEOF
17286#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17287_ACEOF
17288
17289fi
17290done
17291
17292
17293for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17294do :
17295  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17296ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17297if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17298  cat >>confdefs.h <<_ACEOF
17299#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17300_ACEOF
17301
17302fi
17303done
17304
17305
17306ol_link_ipv6=no
17307if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17308	if test $ol_enable_ipv6 = yes ; then
17309		as_fn_error $? "IPv6 support requires getaddrinfo() and inet_ntop()" "$LINENO" 5
17310	fi
17311elif test $ol_enable_ipv6 != no ; then
17312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking INET6_ADDRSTRLEN" >&5
17313$as_echo_n "checking INET6_ADDRSTRLEN... " >&6; }
17314if ${ol_cv_inet6_addrstrlen+:} false; then :
17315  $as_echo_n "(cached) " >&6
17316else
17317
17318		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319/* end confdefs.h.  */
17320
17321#			include <netinet/in.h>
17322#			ifdef INET6_ADDRSTRLEN
17323				__has_inet6_addrstrlen__;
17324#			endif
17325
17326_ACEOF
17327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17328  $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then :
17329  ol_cv_inet6_addrstrlen=yes
17330else
17331  ol_cv_inet6_addrstrlen=no
17332fi
17333rm -f conftest*
17334
17335fi
17336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_inet6_addrstrlen" >&5
17337$as_echo "$ol_cv_inet6_addrstrlen" >&6; }
17338
17339
17340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_storage" >&5
17341$as_echo_n "checking struct sockaddr_storage... " >&6; }
17342if ${ol_cv_struct_sockaddr_storage+:} false; then :
17343  $as_echo_n "(cached) " >&6
17344else
17345
17346		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347/* end confdefs.h.  */
17348
17349#include <sys/types.h>
17350#include <sys/socket.h>
17351
17352int
17353main ()
17354{
17355
17356			struct sockaddr_storage ss;
17357
17358  ;
17359  return 0;
17360}
17361_ACEOF
17362if ac_fn_c_try_compile "$LINENO"; then :
17363  ol_cv_struct_sockaddr_storage=yes
17364else
17365  ol_cv_struct_sockaddr_storage=no
17366fi
17367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17368fi
17369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_struct_sockaddr_storage" >&5
17370$as_echo "$ol_cv_struct_sockaddr_storage" >&6; }
17371
17372	if test $ol_cv_inet6_addrstrlen = yes &&
17373	   test $ol_cv_struct_sockaddr_storage = yes ; then
17374		ol_link_ipv6=yes
17375	elif test $ol_enable_ipv6 = yes &&
17376	     test $ol_cv_inet6_addrstrlen = no ; then
17377		as_fn_error $? "IPv6 support requires INET6_ADDRSTRLEN" "$LINENO" 5
17378	elif test $ol_enable_ipv6 = yes &&
17379	     test $ol_cv_struct_sockaddr_storage = no ; then
17380		as_fn_error $? "IPv6 support requires struct sockaddr_storage" "$LINENO" 5
17381	fi
17382fi
17383
17384if test $ol_enable_local != no ; then
17385	for ac_header in sys/un.h
17386do :
17387  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17388ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17389if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17390  cat >>confdefs.h <<_ACEOF
17391#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17392_ACEOF
17393
17394fi
17395
17396done
17397
17398
17399	if test $ol_enable_local = auto ; then
17400		ol_enable_local=$ac_cv_header_sys_un_h
17401	elif test $ac_cv_header_sys_un_h = no ; then
17402		as_fn_error $? "AF_LOCAL domain support requires sys/un.h" "$LINENO" 5
17403	fi
17404fi
17405
17406
17407if test $ol_with_tls = yes ; then
17408	ol_with_tls=auto
17409fi
17410
17411ol_link_tls=no
17412if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
17413	for ac_header in openssl/ssl.h
17414do :
17415  ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
17416if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
17417  cat >>confdefs.h <<_ACEOF
17418#define HAVE_OPENSSL_SSL_H 1
17419_ACEOF
17420
17421fi
17422
17423done
17424
17425
17426	if test $ac_cv_header_openssl_ssl_h = yes ; then
17427			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428/* end confdefs.h.  */
17429#include <openssl/opensslv.h>
17430#if OPENSSL_VERSION_NUMBER < 0x1010100fL
17431#error "OpenSSL is too old"
17432#endif
17433_ACEOF
17434if ac_fn_c_try_cpp "$LINENO"; then :
17435
17436else
17437  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17439as_fn_error $? "OpenSSL 1.1.1 or newer required
17440See \`config.log' for more details" "$LINENO" 5; }
17441fi
17442rm -f conftest.err conftest.i conftest.$ac_ext
17443
17444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_export_keying_material_early in -lssl" >&5
17445$as_echo_n "checking for SSL_export_keying_material_early in -lssl... " >&6; }
17446if ${ac_cv_lib_ssl_SSL_export_keying_material_early+:} false; then :
17447  $as_echo_n "(cached) " >&6
17448else
17449  ac_check_lib_save_LIBS=$LIBS
17450LIBS="-lssl -lcrypto $LIBS"
17451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17452/* end confdefs.h.  */
17453
17454/* Override any GCC internal prototype to avoid an error.
17455   Use char because int might match the return type of a GCC
17456   builtin and then its argument prototype would still apply.  */
17457#ifdef __cplusplus
17458extern "C"
17459#endif
17460char SSL_export_keying_material_early ();
17461int
17462main ()
17463{
17464return SSL_export_keying_material_early ();
17465  ;
17466  return 0;
17467}
17468_ACEOF
17469if ac_fn_c_try_link "$LINENO"; then :
17470  ac_cv_lib_ssl_SSL_export_keying_material_early=yes
17471else
17472  ac_cv_lib_ssl_SSL_export_keying_material_early=no
17473fi
17474rm -f core conftest.err conftest.$ac_objext \
17475    conftest$ac_exeext conftest.$ac_ext
17476LIBS=$ac_check_lib_save_LIBS
17477fi
17478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_export_keying_material_early" >&5
17479$as_echo "$ac_cv_lib_ssl_SSL_export_keying_material_early" >&6; }
17480if test "x$ac_cv_lib_ssl_SSL_export_keying_material_early" = xyes; then :
17481  have_openssl=yes
17482else
17483  have_openssl=no
17484fi
17485
17486
17487		if test $have_openssl = yes ; then
17488			ol_with_tls=openssl
17489			ol_link_tls=yes
17490			WITH_TLS_TYPE=openssl
17491
17492
17493$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
17494
17495
17496			TLS_LIBS="-lssl -lcrypto"
17497		fi
17498	fi
17499fi
17500
17501if test $ol_link_tls = no ; then
17502	if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
17503		for ac_header in gnutls/gnutls.h
17504do :
17505  ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
17506if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
17507  cat >>confdefs.h <<_ACEOF
17508#define HAVE_GNUTLS_GNUTLS_H 1
17509_ACEOF
17510
17511fi
17512
17513done
17514
17515
17516		if test $ac_cv_header_gnutls_gnutls_h = yes ; then
17517			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518/* end confdefs.h.  */
17519#include <gnutls/gnutls.h>
17520#if GNUTLS_VERSION_NUMBER < 0x030306
17521#error "GnuTLS is too old"
17522#endif
17523_ACEOF
17524if ac_fn_c_try_cpp "$LINENO"; then :
17525
17526else
17527  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17529as_fn_error $? "GnuTLS 3.3.6 or newer required
17530See \`config.log' for more details" "$LINENO" 5; }
17531fi
17532rm -f conftest.err conftest.i conftest.$ac_ext
17533
17534			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
17535$as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
17536if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
17537  $as_echo_n "(cached) " >&6
17538else
17539  ac_check_lib_save_LIBS=$LIBS
17540LIBS="-lgnutls  $LIBS"
17541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542/* end confdefs.h.  */
17543
17544/* Override any GCC internal prototype to avoid an error.
17545   Use char because int might match the return type of a GCC
17546   builtin and then its argument prototype would still apply.  */
17547#ifdef __cplusplus
17548extern "C"
17549#endif
17550char gnutls_init ();
17551int
17552main ()
17553{
17554return gnutls_init ();
17555  ;
17556  return 0;
17557}
17558_ACEOF
17559if ac_fn_c_try_link "$LINENO"; then :
17560  ac_cv_lib_gnutls_gnutls_init=yes
17561else
17562  ac_cv_lib_gnutls_gnutls_init=no
17563fi
17564rm -f core conftest.err conftest.$ac_objext \
17565    conftest$ac_exeext conftest.$ac_ext
17566LIBS=$ac_check_lib_save_LIBS
17567fi
17568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
17569$as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
17570if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
17571  have_gnutls=yes
17572else
17573  have_gnutls=no
17574fi
17575
17576
17577			if test $have_gnutls = yes ; then
17578				ol_with_tls=gnutls
17579				ol_link_tls=yes
17580				WITH_TLS_TYPE=gnutls
17581
17582				TLS_LIBS="-lgnutls"
17583
17584
17585$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
17586
17587			fi
17588		fi
17589	fi
17590fi
17591
17592WITH_TLS=no
17593if test $ol_link_tls = yes ; then
17594
17595$as_echo "#define HAVE_TLS 1" >>confdefs.h
17596
17597	WITH_TLS=yes
17598elif test $ol_with_tls = auto ; then
17599	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate TLS/SSL package" >&5
17600$as_echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
17601	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
17602$as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
17603elif test $ol_with_tls != no ; then
17604	as_fn_error $? "Could not locate TLS/SSL package" "$LINENO" 5
17605else
17606	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
17607$as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
17608fi
17609
17610
17611ol_link_threads=no
17612
17613case $ol_with_threads in auto | yes | nt)
17614
17615
17616	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
17617if test "x$ac_cv_func__beginthread" = xyes; then :
17618
17619fi
17620
17621
17622	if test $ac_cv_func__beginthread = yes ; then
17623
17624$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
17625
17626		ol_cv_nt_threads=yes
17627	fi
17628
17629
17630	if test "$ol_cv_nt_threads" = yes ; then
17631		ol_link_threads=nt
17632		ol_with_threads=found
17633		ol_with_yielding_select=yes
17634
17635
17636$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
17637
17638
17639$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
17640
17641	fi
17642
17643	if test $ol_with_threads = nt ; then
17644		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
17645	fi
17646	;;
17647esac
17648
17649case $ol_with_threads in auto | yes | posix)
17650
17651	for ac_header in pthread.h
17652do :
17653  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17654if test "x$ac_cv_header_pthread_h" = xyes; then :
17655  cat >>confdefs.h <<_ACEOF
17656#define HAVE_PTHREAD_H 1
17657_ACEOF
17658
17659fi
17660
17661done
17662
17663
17664	if test $ac_cv_header_pthread_h = yes ; then
17665		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
17666$as_echo_n "checking POSIX thread version... " >&6; }
17667if ${ol_cv_pthread_version+:} false; then :
17668  $as_echo_n "(cached) " >&6
17669else
17670
17671	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672/* end confdefs.h.  */
17673
17674#		include <pthread.h>
17675
17676int
17677main ()
17678{
17679
17680		int i = PTHREAD_CREATE_JOINABLE;
17681
17682  ;
17683  return 0;
17684}
17685_ACEOF
17686if ac_fn_c_try_compile "$LINENO"; then :
17687
17688	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689/* end confdefs.h.  */
17690#include <pthread.h>
17691
17692_ACEOF
17693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17694  $EGREP "pthread_detach" >/dev/null 2>&1; then :
17695  ol_cv_pthread_version=10
17696else
17697  ol_cv_pthread_version=8
17698fi
17699rm -f conftest*
17700
17701else
17702
17703	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17704/* end confdefs.h.  */
17705
17706#		include <pthread.h>
17707#		ifdef PTHREAD_CREATE_UNDETACHED
17708		draft7
17709#		endif
17710
17711_ACEOF
17712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17713  $EGREP "draft7" >/dev/null 2>&1; then :
17714  ol_cv_pthread_version=7
17715else
17716
17717	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718/* end confdefs.h.  */
17719#include <pthread.h>
17720
17721_ACEOF
17722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17723  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
17724  ol_cv_pthread_version=6
17725else
17726
17727	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728/* end confdefs.h.  */
17729
17730#		include <pthread.h>
17731#ifdef		PTHREAD_MUTEX_INITIALIZER
17732		draft5
17733#endif
17734
17735_ACEOF
17736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17737  $EGREP "draft5" >/dev/null 2>&1; then :
17738  ol_cv_pthread_version=5
17739else
17740  ol_cv_pthread_version=4
17741fi
17742rm -f conftest*
17743
17744fi
17745rm -f conftest*
17746
17747fi
17748rm -f conftest*
17749
17750fi
17751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17752
17753fi
17754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
17755$as_echo "$ol_cv_pthread_version" >&6; }
17756
17757
17758		if test $ol_cv_pthread_version != 0 ; then
17759
17760cat >>confdefs.h <<_ACEOF
17761#define HAVE_PTHREADS $ol_cv_pthread_version
17762_ACEOF
17763
17764		else
17765			as_fn_error $? "unknown pthread version" "$LINENO" 5
17766		fi
17767
17768		# consider threads found
17769		ol_with_threads=found
17770
17771
17772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
17773$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
17774if ${ol_cv_header_linux_threads+:} false; then :
17775  $as_echo_n "(cached) " >&6
17776else
17777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778/* end confdefs.h.  */
17779#include <pthread.h>
17780_ACEOF
17781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17782  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
17783  ol_cv_header_linux_threads=yes
17784else
17785  ol_cv_header_linux_threads=no
17786fi
17787rm -f conftest*
17788
17789
17790fi
17791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
17792$as_echo "$ol_cv_header_linux_threads" >&6; }
17793	if test $ol_cv_header_linux_threads = yes; then
17794
17795$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
17796
17797	fi
17798
17799
17800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
17801$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
17802if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
17803  $as_echo_n "(cached) " >&6
17804else
17805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17806/* end confdefs.h.  */
17807#include <pthread.h>
17808#ifdef _POSIX_THREAD_IS_GNU_PTH
17809	__gnu_pth__;
17810#endif
17811
17812_ACEOF
17813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17814  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
17815  ol_cv_header_gnu_pth_pthread_h=yes
17816else
17817  ol_cv_header_gnu_pth_pthread_h=no
17818fi
17819rm -f conftest*
17820
17821
17822fi
17823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
17824$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
17825
17826
17827		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
17828			for ac_header in sched.h
17829do :
17830  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
17831if test "x$ac_cv_header_sched_h" = xyes; then :
17832  cat >>confdefs.h <<_ACEOF
17833#define HAVE_SCHED_H 1
17834_ACEOF
17835
17836fi
17837
17838done
17839
17840		fi
17841
17842
17843				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
17844$as_echo_n "checking for pthread_create in default libraries... " >&6; }
17845if ${ol_cv_pthread_create+:} false; then :
17846  $as_echo_n "(cached) " >&6
17847else
17848
17849			if test "$cross_compiling" = yes; then :
17850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851/* end confdefs.h.  */
17852
17853/* pthread test headers */
17854#include <pthread.h>
17855#if HAVE_PTHREADS < 7
17856#include <errno.h>
17857#endif
17858#ifndef NULL
17859#define NULL (void*)0
17860#endif
17861
17862static void *task(p)
17863	void *p;
17864{
17865	return (void *) (p == NULL);
17866}
17867
17868int
17869main ()
17870{
17871
17872	/* pthread test function */
17873#ifndef PTHREAD_CREATE_DETACHED
17874#define	PTHREAD_CREATE_DETACHED	1
17875#endif
17876	pthread_t t;
17877	int status;
17878	int detach = PTHREAD_CREATE_DETACHED;
17879
17880#if HAVE_PTHREADS > 4
17881	/* Final pthreads */
17882	pthread_attr_t attr;
17883
17884	status = pthread_attr_init(&attr);
17885	if( status ) return status;
17886
17887#if HAVE_PTHREADS < 7
17888	status = pthread_attr_setdetachstate(&attr, &detach);
17889	if( status < 0 ) status = errno;
17890#else
17891	status = pthread_attr_setdetachstate(&attr, detach);
17892#endif
17893	if( status ) return status;
17894	status = pthread_create( &t, &attr, task, NULL );
17895#if HAVE_PTHREADS < 7
17896	if( status < 0 ) status = errno;
17897#endif
17898	if( status ) return status;
17899#else
17900	/* Draft 4 pthreads */
17901	status = pthread_create( &t, pthread_attr_default, task, NULL );
17902	if( status ) return errno;
17903
17904	/* give thread a chance to complete */
17905	/* it should remain joinable and hence detachable */
17906	sleep( 1 );
17907
17908	status = pthread_detach( &t );
17909	if( status ) return errno;
17910#endif
17911
17912#ifdef HAVE_LINUX_THREADS
17913	pthread_kill_other_threads_np();
17914#endif
17915
17916	return 0;
17917
17918  ;
17919  return 0;
17920}
17921_ACEOF
17922if ac_fn_c_try_link "$LINENO"; then :
17923  ol_cv_pthread_create=yes
17924else
17925  ol_cv_pthread_create=no
17926fi
17927rm -f core conftest.err conftest.$ac_objext \
17928    conftest$ac_exeext conftest.$ac_ext
17929else
17930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931/* end confdefs.h.  */
17932
17933/* pthread test headers */
17934#include <pthread.h>
17935#if HAVE_PTHREADS < 7
17936#include <errno.h>
17937#endif
17938#ifndef NULL
17939#define NULL (void*)0
17940#endif
17941
17942static void *task(p)
17943	void *p;
17944{
17945	return (void *) (p == NULL);
17946}
17947
17948
17949int main(argc, argv)
17950	int argc;
17951	char **argv;
17952{
17953
17954	/* pthread test function */
17955#ifndef PTHREAD_CREATE_DETACHED
17956#define	PTHREAD_CREATE_DETACHED	1
17957#endif
17958	pthread_t t;
17959	int status;
17960	int detach = PTHREAD_CREATE_DETACHED;
17961
17962#if HAVE_PTHREADS > 4
17963	/* Final pthreads */
17964	pthread_attr_t attr;
17965
17966	status = pthread_attr_init(&attr);
17967	if( status ) return status;
17968
17969#if HAVE_PTHREADS < 7
17970	status = pthread_attr_setdetachstate(&attr, &detach);
17971	if( status < 0 ) status = errno;
17972#else
17973	status = pthread_attr_setdetachstate(&attr, detach);
17974#endif
17975	if( status ) return status;
17976	status = pthread_create( &t, &attr, task, NULL );
17977#if HAVE_PTHREADS < 7
17978	if( status < 0 ) status = errno;
17979#endif
17980	if( status ) return status;
17981#else
17982	/* Draft 4 pthreads */
17983	status = pthread_create( &t, pthread_attr_default, task, NULL );
17984	if( status ) return errno;
17985
17986	/* give thread a chance to complete */
17987	/* it should remain joinable and hence detachable */
17988	sleep( 1 );
17989
17990	status = pthread_detach( &t );
17991	if( status ) return errno;
17992#endif
17993
17994#ifdef HAVE_LINUX_THREADS
17995	pthread_kill_other_threads_np();
17996#endif
17997
17998	return 0;
17999
18000}
18001
18002_ACEOF
18003if ac_fn_c_try_run "$LINENO"; then :
18004  ol_cv_pthread_create=yes
18005else
18006  ol_cv_pthread_create=no
18007fi
18008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18009  conftest.$ac_objext conftest.beam conftest.$ac_ext
18010fi
18011
18012fi
18013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
18014$as_echo "$ol_cv_pthread_create" >&6; }
18015
18016		if test $ol_cv_pthread_create != no ; then
18017			ol_link_threads=posix
18018			ol_link_pthreads=""
18019		fi
18020
18021		# Pthread try link: -kthread (ol_cv_pthread_kthread)
18022if test "$ol_link_threads" = no ; then
18023	# try -kthread
18024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
18025$as_echo_n "checking for pthread link with -kthread... " >&6; }
18026if ${ol_cv_pthread_kthread+:} false; then :
18027  $as_echo_n "(cached) " >&6
18028else
18029
18030		# save the flags
18031		ol_LIBS="$LIBS"
18032		LIBS="-kthread $LIBS"
18033
18034		if test "$cross_compiling" = yes; then :
18035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036/* end confdefs.h.  */
18037
18038/* pthread test headers */
18039#include <pthread.h>
18040#if HAVE_PTHREADS < 7
18041#include <errno.h>
18042#endif
18043#ifndef NULL
18044#define NULL (void*)0
18045#endif
18046
18047static void *task(p)
18048	void *p;
18049{
18050	return (void *) (p == NULL);
18051}
18052
18053int
18054main ()
18055{
18056
18057	/* pthread test function */
18058#ifndef PTHREAD_CREATE_DETACHED
18059#define	PTHREAD_CREATE_DETACHED	1
18060#endif
18061	pthread_t t;
18062	int status;
18063	int detach = PTHREAD_CREATE_DETACHED;
18064
18065#if HAVE_PTHREADS > 4
18066	/* Final pthreads */
18067	pthread_attr_t attr;
18068
18069	status = pthread_attr_init(&attr);
18070	if( status ) return status;
18071
18072#if HAVE_PTHREADS < 7
18073	status = pthread_attr_setdetachstate(&attr, &detach);
18074	if( status < 0 ) status = errno;
18075#else
18076	status = pthread_attr_setdetachstate(&attr, detach);
18077#endif
18078	if( status ) return status;
18079	status = pthread_create( &t, &attr, task, NULL );
18080#if HAVE_PTHREADS < 7
18081	if( status < 0 ) status = errno;
18082#endif
18083	if( status ) return status;
18084#else
18085	/* Draft 4 pthreads */
18086	status = pthread_create( &t, pthread_attr_default, task, NULL );
18087	if( status ) return errno;
18088
18089	/* give thread a chance to complete */
18090	/* it should remain joinable and hence detachable */
18091	sleep( 1 );
18092
18093	status = pthread_detach( &t );
18094	if( status ) return errno;
18095#endif
18096
18097#ifdef HAVE_LINUX_THREADS
18098	pthread_kill_other_threads_np();
18099#endif
18100
18101	return 0;
18102
18103  ;
18104  return 0;
18105}
18106_ACEOF
18107if ac_fn_c_try_link "$LINENO"; then :
18108  ol_cv_pthread_kthread=yes
18109else
18110  ol_cv_pthread_kthread=no
18111fi
18112rm -f core conftest.err conftest.$ac_objext \
18113    conftest$ac_exeext conftest.$ac_ext
18114else
18115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18116/* end confdefs.h.  */
18117
18118/* pthread test headers */
18119#include <pthread.h>
18120#if HAVE_PTHREADS < 7
18121#include <errno.h>
18122#endif
18123#ifndef NULL
18124#define NULL (void*)0
18125#endif
18126
18127static void *task(p)
18128	void *p;
18129{
18130	return (void *) (p == NULL);
18131}
18132
18133
18134int main(argc, argv)
18135	int argc;
18136	char **argv;
18137{
18138
18139	/* pthread test function */
18140#ifndef PTHREAD_CREATE_DETACHED
18141#define	PTHREAD_CREATE_DETACHED	1
18142#endif
18143	pthread_t t;
18144	int status;
18145	int detach = PTHREAD_CREATE_DETACHED;
18146
18147#if HAVE_PTHREADS > 4
18148	/* Final pthreads */
18149	pthread_attr_t attr;
18150
18151	status = pthread_attr_init(&attr);
18152	if( status ) return status;
18153
18154#if HAVE_PTHREADS < 7
18155	status = pthread_attr_setdetachstate(&attr, &detach);
18156	if( status < 0 ) status = errno;
18157#else
18158	status = pthread_attr_setdetachstate(&attr, detach);
18159#endif
18160	if( status ) return status;
18161	status = pthread_create( &t, &attr, task, NULL );
18162#if HAVE_PTHREADS < 7
18163	if( status < 0 ) status = errno;
18164#endif
18165	if( status ) return status;
18166#else
18167	/* Draft 4 pthreads */
18168	status = pthread_create( &t, pthread_attr_default, task, NULL );
18169	if( status ) return errno;
18170
18171	/* give thread a chance to complete */
18172	/* it should remain joinable and hence detachable */
18173	sleep( 1 );
18174
18175	status = pthread_detach( &t );
18176	if( status ) return errno;
18177#endif
18178
18179#ifdef HAVE_LINUX_THREADS
18180	pthread_kill_other_threads_np();
18181#endif
18182
18183	return 0;
18184
18185}
18186
18187_ACEOF
18188if ac_fn_c_try_run "$LINENO"; then :
18189  ol_cv_pthread_kthread=yes
18190else
18191  ol_cv_pthread_kthread=no
18192fi
18193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18194  conftest.$ac_objext conftest.beam conftest.$ac_ext
18195fi
18196
18197
18198		# restore the LIBS
18199		LIBS="$ol_LIBS"
18200
18201fi
18202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
18203$as_echo "$ol_cv_pthread_kthread" >&6; }
18204
18205	if test $ol_cv_pthread_kthread = yes ; then
18206		ol_link_pthreads="-kthread"
18207		ol_link_threads=posix
18208	fi
18209fi
18210
18211		# Pthread try link: -pthread (ol_cv_pthread_pthread)
18212if test "$ol_link_threads" = no ; then
18213	# try -pthread
18214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
18215$as_echo_n "checking for pthread link with -pthread... " >&6; }
18216if ${ol_cv_pthread_pthread+:} false; then :
18217  $as_echo_n "(cached) " >&6
18218else
18219
18220		# save the flags
18221		ol_LIBS="$LIBS"
18222		LIBS="-pthread $LIBS"
18223
18224		if test "$cross_compiling" = yes; then :
18225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226/* end confdefs.h.  */
18227
18228/* pthread test headers */
18229#include <pthread.h>
18230#if HAVE_PTHREADS < 7
18231#include <errno.h>
18232#endif
18233#ifndef NULL
18234#define NULL (void*)0
18235#endif
18236
18237static void *task(p)
18238	void *p;
18239{
18240	return (void *) (p == NULL);
18241}
18242
18243int
18244main ()
18245{
18246
18247	/* pthread test function */
18248#ifndef PTHREAD_CREATE_DETACHED
18249#define	PTHREAD_CREATE_DETACHED	1
18250#endif
18251	pthread_t t;
18252	int status;
18253	int detach = PTHREAD_CREATE_DETACHED;
18254
18255#if HAVE_PTHREADS > 4
18256	/* Final pthreads */
18257	pthread_attr_t attr;
18258
18259	status = pthread_attr_init(&attr);
18260	if( status ) return status;
18261
18262#if HAVE_PTHREADS < 7
18263	status = pthread_attr_setdetachstate(&attr, &detach);
18264	if( status < 0 ) status = errno;
18265#else
18266	status = pthread_attr_setdetachstate(&attr, detach);
18267#endif
18268	if( status ) return status;
18269	status = pthread_create( &t, &attr, task, NULL );
18270#if HAVE_PTHREADS < 7
18271	if( status < 0 ) status = errno;
18272#endif
18273	if( status ) return status;
18274#else
18275	/* Draft 4 pthreads */
18276	status = pthread_create( &t, pthread_attr_default, task, NULL );
18277	if( status ) return errno;
18278
18279	/* give thread a chance to complete */
18280	/* it should remain joinable and hence detachable */
18281	sleep( 1 );
18282
18283	status = pthread_detach( &t );
18284	if( status ) return errno;
18285#endif
18286
18287#ifdef HAVE_LINUX_THREADS
18288	pthread_kill_other_threads_np();
18289#endif
18290
18291	return 0;
18292
18293  ;
18294  return 0;
18295}
18296_ACEOF
18297if ac_fn_c_try_link "$LINENO"; then :
18298  ol_cv_pthread_pthread=yes
18299else
18300  ol_cv_pthread_pthread=no
18301fi
18302rm -f core conftest.err conftest.$ac_objext \
18303    conftest$ac_exeext conftest.$ac_ext
18304else
18305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306/* end confdefs.h.  */
18307
18308/* pthread test headers */
18309#include <pthread.h>
18310#if HAVE_PTHREADS < 7
18311#include <errno.h>
18312#endif
18313#ifndef NULL
18314#define NULL (void*)0
18315#endif
18316
18317static void *task(p)
18318	void *p;
18319{
18320	return (void *) (p == NULL);
18321}
18322
18323
18324int main(argc, argv)
18325	int argc;
18326	char **argv;
18327{
18328
18329	/* pthread test function */
18330#ifndef PTHREAD_CREATE_DETACHED
18331#define	PTHREAD_CREATE_DETACHED	1
18332#endif
18333	pthread_t t;
18334	int status;
18335	int detach = PTHREAD_CREATE_DETACHED;
18336
18337#if HAVE_PTHREADS > 4
18338	/* Final pthreads */
18339	pthread_attr_t attr;
18340
18341	status = pthread_attr_init(&attr);
18342	if( status ) return status;
18343
18344#if HAVE_PTHREADS < 7
18345	status = pthread_attr_setdetachstate(&attr, &detach);
18346	if( status < 0 ) status = errno;
18347#else
18348	status = pthread_attr_setdetachstate(&attr, detach);
18349#endif
18350	if( status ) return status;
18351	status = pthread_create( &t, &attr, task, NULL );
18352#if HAVE_PTHREADS < 7
18353	if( status < 0 ) status = errno;
18354#endif
18355	if( status ) return status;
18356#else
18357	/* Draft 4 pthreads */
18358	status = pthread_create( &t, pthread_attr_default, task, NULL );
18359	if( status ) return errno;
18360
18361	/* give thread a chance to complete */
18362	/* it should remain joinable and hence detachable */
18363	sleep( 1 );
18364
18365	status = pthread_detach( &t );
18366	if( status ) return errno;
18367#endif
18368
18369#ifdef HAVE_LINUX_THREADS
18370	pthread_kill_other_threads_np();
18371#endif
18372
18373	return 0;
18374
18375}
18376
18377_ACEOF
18378if ac_fn_c_try_run "$LINENO"; then :
18379  ol_cv_pthread_pthread=yes
18380else
18381  ol_cv_pthread_pthread=no
18382fi
18383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18384  conftest.$ac_objext conftest.beam conftest.$ac_ext
18385fi
18386
18387
18388		# restore the LIBS
18389		LIBS="$ol_LIBS"
18390
18391fi
18392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
18393$as_echo "$ol_cv_pthread_pthread" >&6; }
18394
18395	if test $ol_cv_pthread_pthread = yes ; then
18396		ol_link_pthreads="-pthread"
18397		ol_link_threads=posix
18398	fi
18399fi
18400
18401		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
18402if test "$ol_link_threads" = no ; then
18403	# try -pthreads
18404	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
18405$as_echo_n "checking for pthread link with -pthreads... " >&6; }
18406if ${ol_cv_pthread_pthreads+:} false; then :
18407  $as_echo_n "(cached) " >&6
18408else
18409
18410		# save the flags
18411		ol_LIBS="$LIBS"
18412		LIBS="-pthreads $LIBS"
18413
18414		if test "$cross_compiling" = yes; then :
18415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18416/* end confdefs.h.  */
18417
18418/* pthread test headers */
18419#include <pthread.h>
18420#if HAVE_PTHREADS < 7
18421#include <errno.h>
18422#endif
18423#ifndef NULL
18424#define NULL (void*)0
18425#endif
18426
18427static void *task(p)
18428	void *p;
18429{
18430	return (void *) (p == NULL);
18431}
18432
18433int
18434main ()
18435{
18436
18437	/* pthread test function */
18438#ifndef PTHREAD_CREATE_DETACHED
18439#define	PTHREAD_CREATE_DETACHED	1
18440#endif
18441	pthread_t t;
18442	int status;
18443	int detach = PTHREAD_CREATE_DETACHED;
18444
18445#if HAVE_PTHREADS > 4
18446	/* Final pthreads */
18447	pthread_attr_t attr;
18448
18449	status = pthread_attr_init(&attr);
18450	if( status ) return status;
18451
18452#if HAVE_PTHREADS < 7
18453	status = pthread_attr_setdetachstate(&attr, &detach);
18454	if( status < 0 ) status = errno;
18455#else
18456	status = pthread_attr_setdetachstate(&attr, detach);
18457#endif
18458	if( status ) return status;
18459	status = pthread_create( &t, &attr, task, NULL );
18460#if HAVE_PTHREADS < 7
18461	if( status < 0 ) status = errno;
18462#endif
18463	if( status ) return status;
18464#else
18465	/* Draft 4 pthreads */
18466	status = pthread_create( &t, pthread_attr_default, task, NULL );
18467	if( status ) return errno;
18468
18469	/* give thread a chance to complete */
18470	/* it should remain joinable and hence detachable */
18471	sleep( 1 );
18472
18473	status = pthread_detach( &t );
18474	if( status ) return errno;
18475#endif
18476
18477#ifdef HAVE_LINUX_THREADS
18478	pthread_kill_other_threads_np();
18479#endif
18480
18481	return 0;
18482
18483  ;
18484  return 0;
18485}
18486_ACEOF
18487if ac_fn_c_try_link "$LINENO"; then :
18488  ol_cv_pthread_pthreads=yes
18489else
18490  ol_cv_pthread_pthreads=no
18491fi
18492rm -f core conftest.err conftest.$ac_objext \
18493    conftest$ac_exeext conftest.$ac_ext
18494else
18495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496/* end confdefs.h.  */
18497
18498/* pthread test headers */
18499#include <pthread.h>
18500#if HAVE_PTHREADS < 7
18501#include <errno.h>
18502#endif
18503#ifndef NULL
18504#define NULL (void*)0
18505#endif
18506
18507static void *task(p)
18508	void *p;
18509{
18510	return (void *) (p == NULL);
18511}
18512
18513
18514int main(argc, argv)
18515	int argc;
18516	char **argv;
18517{
18518
18519	/* pthread test function */
18520#ifndef PTHREAD_CREATE_DETACHED
18521#define	PTHREAD_CREATE_DETACHED	1
18522#endif
18523	pthread_t t;
18524	int status;
18525	int detach = PTHREAD_CREATE_DETACHED;
18526
18527#if HAVE_PTHREADS > 4
18528	/* Final pthreads */
18529	pthread_attr_t attr;
18530
18531	status = pthread_attr_init(&attr);
18532	if( status ) return status;
18533
18534#if HAVE_PTHREADS < 7
18535	status = pthread_attr_setdetachstate(&attr, &detach);
18536	if( status < 0 ) status = errno;
18537#else
18538	status = pthread_attr_setdetachstate(&attr, detach);
18539#endif
18540	if( status ) return status;
18541	status = pthread_create( &t, &attr, task, NULL );
18542#if HAVE_PTHREADS < 7
18543	if( status < 0 ) status = errno;
18544#endif
18545	if( status ) return status;
18546#else
18547	/* Draft 4 pthreads */
18548	status = pthread_create( &t, pthread_attr_default, task, NULL );
18549	if( status ) return errno;
18550
18551	/* give thread a chance to complete */
18552	/* it should remain joinable and hence detachable */
18553	sleep( 1 );
18554
18555	status = pthread_detach( &t );
18556	if( status ) return errno;
18557#endif
18558
18559#ifdef HAVE_LINUX_THREADS
18560	pthread_kill_other_threads_np();
18561#endif
18562
18563	return 0;
18564
18565}
18566
18567_ACEOF
18568if ac_fn_c_try_run "$LINENO"; then :
18569  ol_cv_pthread_pthreads=yes
18570else
18571  ol_cv_pthread_pthreads=no
18572fi
18573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18574  conftest.$ac_objext conftest.beam conftest.$ac_ext
18575fi
18576
18577
18578		# restore the LIBS
18579		LIBS="$ol_LIBS"
18580
18581fi
18582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
18583$as_echo "$ol_cv_pthread_pthreads" >&6; }
18584
18585	if test $ol_cv_pthread_pthreads = yes ; then
18586		ol_link_pthreads="-pthreads"
18587		ol_link_threads=posix
18588	fi
18589fi
18590
18591		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
18592if test "$ol_link_threads" = no ; then
18593	# try -mthreads
18594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
18595$as_echo_n "checking for pthread link with -mthreads... " >&6; }
18596if ${ol_cv_pthread_mthreads+:} false; then :
18597  $as_echo_n "(cached) " >&6
18598else
18599
18600		# save the flags
18601		ol_LIBS="$LIBS"
18602		LIBS="-mthreads $LIBS"
18603
18604		if test "$cross_compiling" = yes; then :
18605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18606/* end confdefs.h.  */
18607
18608/* pthread test headers */
18609#include <pthread.h>
18610#if HAVE_PTHREADS < 7
18611#include <errno.h>
18612#endif
18613#ifndef NULL
18614#define NULL (void*)0
18615#endif
18616
18617static void *task(p)
18618	void *p;
18619{
18620	return (void *) (p == NULL);
18621}
18622
18623int
18624main ()
18625{
18626
18627	/* pthread test function */
18628#ifndef PTHREAD_CREATE_DETACHED
18629#define	PTHREAD_CREATE_DETACHED	1
18630#endif
18631	pthread_t t;
18632	int status;
18633	int detach = PTHREAD_CREATE_DETACHED;
18634
18635#if HAVE_PTHREADS > 4
18636	/* Final pthreads */
18637	pthread_attr_t attr;
18638
18639	status = pthread_attr_init(&attr);
18640	if( status ) return status;
18641
18642#if HAVE_PTHREADS < 7
18643	status = pthread_attr_setdetachstate(&attr, &detach);
18644	if( status < 0 ) status = errno;
18645#else
18646	status = pthread_attr_setdetachstate(&attr, detach);
18647#endif
18648	if( status ) return status;
18649	status = pthread_create( &t, &attr, task, NULL );
18650#if HAVE_PTHREADS < 7
18651	if( status < 0 ) status = errno;
18652#endif
18653	if( status ) return status;
18654#else
18655	/* Draft 4 pthreads */
18656	status = pthread_create( &t, pthread_attr_default, task, NULL );
18657	if( status ) return errno;
18658
18659	/* give thread a chance to complete */
18660	/* it should remain joinable and hence detachable */
18661	sleep( 1 );
18662
18663	status = pthread_detach( &t );
18664	if( status ) return errno;
18665#endif
18666
18667#ifdef HAVE_LINUX_THREADS
18668	pthread_kill_other_threads_np();
18669#endif
18670
18671	return 0;
18672
18673  ;
18674  return 0;
18675}
18676_ACEOF
18677if ac_fn_c_try_link "$LINENO"; then :
18678  ol_cv_pthread_mthreads=yes
18679else
18680  ol_cv_pthread_mthreads=no
18681fi
18682rm -f core conftest.err conftest.$ac_objext \
18683    conftest$ac_exeext conftest.$ac_ext
18684else
18685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686/* end confdefs.h.  */
18687
18688/* pthread test headers */
18689#include <pthread.h>
18690#if HAVE_PTHREADS < 7
18691#include <errno.h>
18692#endif
18693#ifndef NULL
18694#define NULL (void*)0
18695#endif
18696
18697static void *task(p)
18698	void *p;
18699{
18700	return (void *) (p == NULL);
18701}
18702
18703
18704int main(argc, argv)
18705	int argc;
18706	char **argv;
18707{
18708
18709	/* pthread test function */
18710#ifndef PTHREAD_CREATE_DETACHED
18711#define	PTHREAD_CREATE_DETACHED	1
18712#endif
18713	pthread_t t;
18714	int status;
18715	int detach = PTHREAD_CREATE_DETACHED;
18716
18717#if HAVE_PTHREADS > 4
18718	/* Final pthreads */
18719	pthread_attr_t attr;
18720
18721	status = pthread_attr_init(&attr);
18722	if( status ) return status;
18723
18724#if HAVE_PTHREADS < 7
18725	status = pthread_attr_setdetachstate(&attr, &detach);
18726	if( status < 0 ) status = errno;
18727#else
18728	status = pthread_attr_setdetachstate(&attr, detach);
18729#endif
18730	if( status ) return status;
18731	status = pthread_create( &t, &attr, task, NULL );
18732#if HAVE_PTHREADS < 7
18733	if( status < 0 ) status = errno;
18734#endif
18735	if( status ) return status;
18736#else
18737	/* Draft 4 pthreads */
18738	status = pthread_create( &t, pthread_attr_default, task, NULL );
18739	if( status ) return errno;
18740
18741	/* give thread a chance to complete */
18742	/* it should remain joinable and hence detachable */
18743	sleep( 1 );
18744
18745	status = pthread_detach( &t );
18746	if( status ) return errno;
18747#endif
18748
18749#ifdef HAVE_LINUX_THREADS
18750	pthread_kill_other_threads_np();
18751#endif
18752
18753	return 0;
18754
18755}
18756
18757_ACEOF
18758if ac_fn_c_try_run "$LINENO"; then :
18759  ol_cv_pthread_mthreads=yes
18760else
18761  ol_cv_pthread_mthreads=no
18762fi
18763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18764  conftest.$ac_objext conftest.beam conftest.$ac_ext
18765fi
18766
18767
18768		# restore the LIBS
18769		LIBS="$ol_LIBS"
18770
18771fi
18772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
18773$as_echo "$ol_cv_pthread_mthreads" >&6; }
18774
18775	if test $ol_cv_pthread_mthreads = yes ; then
18776		ol_link_pthreads="-mthreads"
18777		ol_link_threads=posix
18778	fi
18779fi
18780
18781		# Pthread try link: -thread (ol_cv_pthread_thread)
18782if test "$ol_link_threads" = no ; then
18783	# try -thread
18784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
18785$as_echo_n "checking for pthread link with -thread... " >&6; }
18786if ${ol_cv_pthread_thread+:} false; then :
18787  $as_echo_n "(cached) " >&6
18788else
18789
18790		# save the flags
18791		ol_LIBS="$LIBS"
18792		LIBS="-thread $LIBS"
18793
18794		if test "$cross_compiling" = yes; then :
18795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796/* end confdefs.h.  */
18797
18798/* pthread test headers */
18799#include <pthread.h>
18800#if HAVE_PTHREADS < 7
18801#include <errno.h>
18802#endif
18803#ifndef NULL
18804#define NULL (void*)0
18805#endif
18806
18807static void *task(p)
18808	void *p;
18809{
18810	return (void *) (p == NULL);
18811}
18812
18813int
18814main ()
18815{
18816
18817	/* pthread test function */
18818#ifndef PTHREAD_CREATE_DETACHED
18819#define	PTHREAD_CREATE_DETACHED	1
18820#endif
18821	pthread_t t;
18822	int status;
18823	int detach = PTHREAD_CREATE_DETACHED;
18824
18825#if HAVE_PTHREADS > 4
18826	/* Final pthreads */
18827	pthread_attr_t attr;
18828
18829	status = pthread_attr_init(&attr);
18830	if( status ) return status;
18831
18832#if HAVE_PTHREADS < 7
18833	status = pthread_attr_setdetachstate(&attr, &detach);
18834	if( status < 0 ) status = errno;
18835#else
18836	status = pthread_attr_setdetachstate(&attr, detach);
18837#endif
18838	if( status ) return status;
18839	status = pthread_create( &t, &attr, task, NULL );
18840#if HAVE_PTHREADS < 7
18841	if( status < 0 ) status = errno;
18842#endif
18843	if( status ) return status;
18844#else
18845	/* Draft 4 pthreads */
18846	status = pthread_create( &t, pthread_attr_default, task, NULL );
18847	if( status ) return errno;
18848
18849	/* give thread a chance to complete */
18850	/* it should remain joinable and hence detachable */
18851	sleep( 1 );
18852
18853	status = pthread_detach( &t );
18854	if( status ) return errno;
18855#endif
18856
18857#ifdef HAVE_LINUX_THREADS
18858	pthread_kill_other_threads_np();
18859#endif
18860
18861	return 0;
18862
18863  ;
18864  return 0;
18865}
18866_ACEOF
18867if ac_fn_c_try_link "$LINENO"; then :
18868  ol_cv_pthread_thread=yes
18869else
18870  ol_cv_pthread_thread=no
18871fi
18872rm -f core conftest.err conftest.$ac_objext \
18873    conftest$ac_exeext conftest.$ac_ext
18874else
18875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876/* end confdefs.h.  */
18877
18878/* pthread test headers */
18879#include <pthread.h>
18880#if HAVE_PTHREADS < 7
18881#include <errno.h>
18882#endif
18883#ifndef NULL
18884#define NULL (void*)0
18885#endif
18886
18887static void *task(p)
18888	void *p;
18889{
18890	return (void *) (p == NULL);
18891}
18892
18893
18894int main(argc, argv)
18895	int argc;
18896	char **argv;
18897{
18898
18899	/* pthread test function */
18900#ifndef PTHREAD_CREATE_DETACHED
18901#define	PTHREAD_CREATE_DETACHED	1
18902#endif
18903	pthread_t t;
18904	int status;
18905	int detach = PTHREAD_CREATE_DETACHED;
18906
18907#if HAVE_PTHREADS > 4
18908	/* Final pthreads */
18909	pthread_attr_t attr;
18910
18911	status = pthread_attr_init(&attr);
18912	if( status ) return status;
18913
18914#if HAVE_PTHREADS < 7
18915	status = pthread_attr_setdetachstate(&attr, &detach);
18916	if( status < 0 ) status = errno;
18917#else
18918	status = pthread_attr_setdetachstate(&attr, detach);
18919#endif
18920	if( status ) return status;
18921	status = pthread_create( &t, &attr, task, NULL );
18922#if HAVE_PTHREADS < 7
18923	if( status < 0 ) status = errno;
18924#endif
18925	if( status ) return status;
18926#else
18927	/* Draft 4 pthreads */
18928	status = pthread_create( &t, pthread_attr_default, task, NULL );
18929	if( status ) return errno;
18930
18931	/* give thread a chance to complete */
18932	/* it should remain joinable and hence detachable */
18933	sleep( 1 );
18934
18935	status = pthread_detach( &t );
18936	if( status ) return errno;
18937#endif
18938
18939#ifdef HAVE_LINUX_THREADS
18940	pthread_kill_other_threads_np();
18941#endif
18942
18943	return 0;
18944
18945}
18946
18947_ACEOF
18948if ac_fn_c_try_run "$LINENO"; then :
18949  ol_cv_pthread_thread=yes
18950else
18951  ol_cv_pthread_thread=no
18952fi
18953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18954  conftest.$ac_objext conftest.beam conftest.$ac_ext
18955fi
18956
18957
18958		# restore the LIBS
18959		LIBS="$ol_LIBS"
18960
18961fi
18962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
18963$as_echo "$ol_cv_pthread_thread" >&6; }
18964
18965	if test $ol_cv_pthread_thread = yes ; then
18966		ol_link_pthreads="-thread"
18967		ol_link_threads=posix
18968	fi
18969fi
18970
18971
18972		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
18973if test "$ol_link_threads" = no ; then
18974	# try -lpthread -lmach -lexc -lc_r
18975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
18976$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
18977if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
18978  $as_echo_n "(cached) " >&6
18979else
18980
18981		# save the flags
18982		ol_LIBS="$LIBS"
18983		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
18984
18985		if test "$cross_compiling" = yes; then :
18986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18987/* end confdefs.h.  */
18988
18989/* pthread test headers */
18990#include <pthread.h>
18991#if HAVE_PTHREADS < 7
18992#include <errno.h>
18993#endif
18994#ifndef NULL
18995#define NULL (void*)0
18996#endif
18997
18998static void *task(p)
18999	void *p;
19000{
19001	return (void *) (p == NULL);
19002}
19003
19004int
19005main ()
19006{
19007
19008	/* pthread test function */
19009#ifndef PTHREAD_CREATE_DETACHED
19010#define	PTHREAD_CREATE_DETACHED	1
19011#endif
19012	pthread_t t;
19013	int status;
19014	int detach = PTHREAD_CREATE_DETACHED;
19015
19016#if HAVE_PTHREADS > 4
19017	/* Final pthreads */
19018	pthread_attr_t attr;
19019
19020	status = pthread_attr_init(&attr);
19021	if( status ) return status;
19022
19023#if HAVE_PTHREADS < 7
19024	status = pthread_attr_setdetachstate(&attr, &detach);
19025	if( status < 0 ) status = errno;
19026#else
19027	status = pthread_attr_setdetachstate(&attr, detach);
19028#endif
19029	if( status ) return status;
19030	status = pthread_create( &t, &attr, task, NULL );
19031#if HAVE_PTHREADS < 7
19032	if( status < 0 ) status = errno;
19033#endif
19034	if( status ) return status;
19035#else
19036	/* Draft 4 pthreads */
19037	status = pthread_create( &t, pthread_attr_default, task, NULL );
19038	if( status ) return errno;
19039
19040	/* give thread a chance to complete */
19041	/* it should remain joinable and hence detachable */
19042	sleep( 1 );
19043
19044	status = pthread_detach( &t );
19045	if( status ) return errno;
19046#endif
19047
19048#ifdef HAVE_LINUX_THREADS
19049	pthread_kill_other_threads_np();
19050#endif
19051
19052	return 0;
19053
19054  ;
19055  return 0;
19056}
19057_ACEOF
19058if ac_fn_c_try_link "$LINENO"; then :
19059  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
19060else
19061  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
19062fi
19063rm -f core conftest.err conftest.$ac_objext \
19064    conftest$ac_exeext conftest.$ac_ext
19065else
19066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19067/* end confdefs.h.  */
19068
19069/* pthread test headers */
19070#include <pthread.h>
19071#if HAVE_PTHREADS < 7
19072#include <errno.h>
19073#endif
19074#ifndef NULL
19075#define NULL (void*)0
19076#endif
19077
19078static void *task(p)
19079	void *p;
19080{
19081	return (void *) (p == NULL);
19082}
19083
19084
19085int main(argc, argv)
19086	int argc;
19087	char **argv;
19088{
19089
19090	/* pthread test function */
19091#ifndef PTHREAD_CREATE_DETACHED
19092#define	PTHREAD_CREATE_DETACHED	1
19093#endif
19094	pthread_t t;
19095	int status;
19096	int detach = PTHREAD_CREATE_DETACHED;
19097
19098#if HAVE_PTHREADS > 4
19099	/* Final pthreads */
19100	pthread_attr_t attr;
19101
19102	status = pthread_attr_init(&attr);
19103	if( status ) return status;
19104
19105#if HAVE_PTHREADS < 7
19106	status = pthread_attr_setdetachstate(&attr, &detach);
19107	if( status < 0 ) status = errno;
19108#else
19109	status = pthread_attr_setdetachstate(&attr, detach);
19110#endif
19111	if( status ) return status;
19112	status = pthread_create( &t, &attr, task, NULL );
19113#if HAVE_PTHREADS < 7
19114	if( status < 0 ) status = errno;
19115#endif
19116	if( status ) return status;
19117#else
19118	/* Draft 4 pthreads */
19119	status = pthread_create( &t, pthread_attr_default, task, NULL );
19120	if( status ) return errno;
19121
19122	/* give thread a chance to complete */
19123	/* it should remain joinable and hence detachable */
19124	sleep( 1 );
19125
19126	status = pthread_detach( &t );
19127	if( status ) return errno;
19128#endif
19129
19130#ifdef HAVE_LINUX_THREADS
19131	pthread_kill_other_threads_np();
19132#endif
19133
19134	return 0;
19135
19136}
19137
19138_ACEOF
19139if ac_fn_c_try_run "$LINENO"; then :
19140  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
19141else
19142  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
19143fi
19144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19145  conftest.$ac_objext conftest.beam conftest.$ac_ext
19146fi
19147
19148
19149		# restore the LIBS
19150		LIBS="$ol_LIBS"
19151
19152fi
19153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
19154$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
19155
19156	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
19157		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
19158		ol_link_threads=posix
19159	fi
19160fi
19161
19162		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
19163if test "$ol_link_threads" = no ; then
19164	# try -lpthread -lmach -lexc
19165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
19166$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
19167if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
19168  $as_echo_n "(cached) " >&6
19169else
19170
19171		# save the flags
19172		ol_LIBS="$LIBS"
19173		LIBS="-lpthread -lmach -lexc $LIBS"
19174
19175		if test "$cross_compiling" = yes; then :
19176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177/* end confdefs.h.  */
19178
19179/* pthread test headers */
19180#include <pthread.h>
19181#if HAVE_PTHREADS < 7
19182#include <errno.h>
19183#endif
19184#ifndef NULL
19185#define NULL (void*)0
19186#endif
19187
19188static void *task(p)
19189	void *p;
19190{
19191	return (void *) (p == NULL);
19192}
19193
19194int
19195main ()
19196{
19197
19198	/* pthread test function */
19199#ifndef PTHREAD_CREATE_DETACHED
19200#define	PTHREAD_CREATE_DETACHED	1
19201#endif
19202	pthread_t t;
19203	int status;
19204	int detach = PTHREAD_CREATE_DETACHED;
19205
19206#if HAVE_PTHREADS > 4
19207	/* Final pthreads */
19208	pthread_attr_t attr;
19209
19210	status = pthread_attr_init(&attr);
19211	if( status ) return status;
19212
19213#if HAVE_PTHREADS < 7
19214	status = pthread_attr_setdetachstate(&attr, &detach);
19215	if( status < 0 ) status = errno;
19216#else
19217	status = pthread_attr_setdetachstate(&attr, detach);
19218#endif
19219	if( status ) return status;
19220	status = pthread_create( &t, &attr, task, NULL );
19221#if HAVE_PTHREADS < 7
19222	if( status < 0 ) status = errno;
19223#endif
19224	if( status ) return status;
19225#else
19226	/* Draft 4 pthreads */
19227	status = pthread_create( &t, pthread_attr_default, task, NULL );
19228	if( status ) return errno;
19229
19230	/* give thread a chance to complete */
19231	/* it should remain joinable and hence detachable */
19232	sleep( 1 );
19233
19234	status = pthread_detach( &t );
19235	if( status ) return errno;
19236#endif
19237
19238#ifdef HAVE_LINUX_THREADS
19239	pthread_kill_other_threads_np();
19240#endif
19241
19242	return 0;
19243
19244  ;
19245  return 0;
19246}
19247_ACEOF
19248if ac_fn_c_try_link "$LINENO"; then :
19249  ol_cv_pthread_lpthread_lmach_lexc=yes
19250else
19251  ol_cv_pthread_lpthread_lmach_lexc=no
19252fi
19253rm -f core conftest.err conftest.$ac_objext \
19254    conftest$ac_exeext conftest.$ac_ext
19255else
19256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19257/* end confdefs.h.  */
19258
19259/* pthread test headers */
19260#include <pthread.h>
19261#if HAVE_PTHREADS < 7
19262#include <errno.h>
19263#endif
19264#ifndef NULL
19265#define NULL (void*)0
19266#endif
19267
19268static void *task(p)
19269	void *p;
19270{
19271	return (void *) (p == NULL);
19272}
19273
19274
19275int main(argc, argv)
19276	int argc;
19277	char **argv;
19278{
19279
19280	/* pthread test function */
19281#ifndef PTHREAD_CREATE_DETACHED
19282#define	PTHREAD_CREATE_DETACHED	1
19283#endif
19284	pthread_t t;
19285	int status;
19286	int detach = PTHREAD_CREATE_DETACHED;
19287
19288#if HAVE_PTHREADS > 4
19289	/* Final pthreads */
19290	pthread_attr_t attr;
19291
19292	status = pthread_attr_init(&attr);
19293	if( status ) return status;
19294
19295#if HAVE_PTHREADS < 7
19296	status = pthread_attr_setdetachstate(&attr, &detach);
19297	if( status < 0 ) status = errno;
19298#else
19299	status = pthread_attr_setdetachstate(&attr, detach);
19300#endif
19301	if( status ) return status;
19302	status = pthread_create( &t, &attr, task, NULL );
19303#if HAVE_PTHREADS < 7
19304	if( status < 0 ) status = errno;
19305#endif
19306	if( status ) return status;
19307#else
19308	/* Draft 4 pthreads */
19309	status = pthread_create( &t, pthread_attr_default, task, NULL );
19310	if( status ) return errno;
19311
19312	/* give thread a chance to complete */
19313	/* it should remain joinable and hence detachable */
19314	sleep( 1 );
19315
19316	status = pthread_detach( &t );
19317	if( status ) return errno;
19318#endif
19319
19320#ifdef HAVE_LINUX_THREADS
19321	pthread_kill_other_threads_np();
19322#endif
19323
19324	return 0;
19325
19326}
19327
19328_ACEOF
19329if ac_fn_c_try_run "$LINENO"; then :
19330  ol_cv_pthread_lpthread_lmach_lexc=yes
19331else
19332  ol_cv_pthread_lpthread_lmach_lexc=no
19333fi
19334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19335  conftest.$ac_objext conftest.beam conftest.$ac_ext
19336fi
19337
19338
19339		# restore the LIBS
19340		LIBS="$ol_LIBS"
19341
19342fi
19343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
19344$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
19345
19346	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
19347		ol_link_pthreads="-lpthread -lmach -lexc"
19348		ol_link_threads=posix
19349	fi
19350fi
19351
19352
19353		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
19354if test "$ol_link_threads" = no ; then
19355	# try -lpthread -Wl,-woff,85
19356	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
19357$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
19358if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
19359  $as_echo_n "(cached) " >&6
19360else
19361
19362		# save the flags
19363		ol_LIBS="$LIBS"
19364		LIBS="-lpthread -Wl,-woff,85 $LIBS"
19365
19366		if test "$cross_compiling" = yes; then :
19367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368/* end confdefs.h.  */
19369
19370/* pthread test headers */
19371#include <pthread.h>
19372#if HAVE_PTHREADS < 7
19373#include <errno.h>
19374#endif
19375#ifndef NULL
19376#define NULL (void*)0
19377#endif
19378
19379static void *task(p)
19380	void *p;
19381{
19382	return (void *) (p == NULL);
19383}
19384
19385int
19386main ()
19387{
19388
19389	/* pthread test function */
19390#ifndef PTHREAD_CREATE_DETACHED
19391#define	PTHREAD_CREATE_DETACHED	1
19392#endif
19393	pthread_t t;
19394	int status;
19395	int detach = PTHREAD_CREATE_DETACHED;
19396
19397#if HAVE_PTHREADS > 4
19398	/* Final pthreads */
19399	pthread_attr_t attr;
19400
19401	status = pthread_attr_init(&attr);
19402	if( status ) return status;
19403
19404#if HAVE_PTHREADS < 7
19405	status = pthread_attr_setdetachstate(&attr, &detach);
19406	if( status < 0 ) status = errno;
19407#else
19408	status = pthread_attr_setdetachstate(&attr, detach);
19409#endif
19410	if( status ) return status;
19411	status = pthread_create( &t, &attr, task, NULL );
19412#if HAVE_PTHREADS < 7
19413	if( status < 0 ) status = errno;
19414#endif
19415	if( status ) return status;
19416#else
19417	/* Draft 4 pthreads */
19418	status = pthread_create( &t, pthread_attr_default, task, NULL );
19419	if( status ) return errno;
19420
19421	/* give thread a chance to complete */
19422	/* it should remain joinable and hence detachable */
19423	sleep( 1 );
19424
19425	status = pthread_detach( &t );
19426	if( status ) return errno;
19427#endif
19428
19429#ifdef HAVE_LINUX_THREADS
19430	pthread_kill_other_threads_np();
19431#endif
19432
19433	return 0;
19434
19435  ;
19436  return 0;
19437}
19438_ACEOF
19439if ac_fn_c_try_link "$LINENO"; then :
19440  ol_cv_pthread_lib_lpthread_woff=yes
19441else
19442  ol_cv_pthread_lib_lpthread_woff=no
19443fi
19444rm -f core conftest.err conftest.$ac_objext \
19445    conftest$ac_exeext conftest.$ac_ext
19446else
19447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19448/* end confdefs.h.  */
19449
19450/* pthread test headers */
19451#include <pthread.h>
19452#if HAVE_PTHREADS < 7
19453#include <errno.h>
19454#endif
19455#ifndef NULL
19456#define NULL (void*)0
19457#endif
19458
19459static void *task(p)
19460	void *p;
19461{
19462	return (void *) (p == NULL);
19463}
19464
19465
19466int main(argc, argv)
19467	int argc;
19468	char **argv;
19469{
19470
19471	/* pthread test function */
19472#ifndef PTHREAD_CREATE_DETACHED
19473#define	PTHREAD_CREATE_DETACHED	1
19474#endif
19475	pthread_t t;
19476	int status;
19477	int detach = PTHREAD_CREATE_DETACHED;
19478
19479#if HAVE_PTHREADS > 4
19480	/* Final pthreads */
19481	pthread_attr_t attr;
19482
19483	status = pthread_attr_init(&attr);
19484	if( status ) return status;
19485
19486#if HAVE_PTHREADS < 7
19487	status = pthread_attr_setdetachstate(&attr, &detach);
19488	if( status < 0 ) status = errno;
19489#else
19490	status = pthread_attr_setdetachstate(&attr, detach);
19491#endif
19492	if( status ) return status;
19493	status = pthread_create( &t, &attr, task, NULL );
19494#if HAVE_PTHREADS < 7
19495	if( status < 0 ) status = errno;
19496#endif
19497	if( status ) return status;
19498#else
19499	/* Draft 4 pthreads */
19500	status = pthread_create( &t, pthread_attr_default, task, NULL );
19501	if( status ) return errno;
19502
19503	/* give thread a chance to complete */
19504	/* it should remain joinable and hence detachable */
19505	sleep( 1 );
19506
19507	status = pthread_detach( &t );
19508	if( status ) return errno;
19509#endif
19510
19511#ifdef HAVE_LINUX_THREADS
19512	pthread_kill_other_threads_np();
19513#endif
19514
19515	return 0;
19516
19517}
19518
19519_ACEOF
19520if ac_fn_c_try_run "$LINENO"; then :
19521  ol_cv_pthread_lib_lpthread_woff=yes
19522else
19523  ol_cv_pthread_lib_lpthread_woff=no
19524fi
19525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19526  conftest.$ac_objext conftest.beam conftest.$ac_ext
19527fi
19528
19529
19530		# restore the LIBS
19531		LIBS="$ol_LIBS"
19532
19533fi
19534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
19535$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
19536
19537	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
19538		ol_link_pthreads="-lpthread -Wl,-woff,85"
19539		ol_link_threads=posix
19540	fi
19541fi
19542
19543
19544		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
19545if test "$ol_link_threads" = no ; then
19546	# try -lpthread
19547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
19548$as_echo_n "checking for pthread link with -lpthread... " >&6; }
19549if ${ol_cv_pthread_lpthread+:} false; then :
19550  $as_echo_n "(cached) " >&6
19551else
19552
19553		# save the flags
19554		ol_LIBS="$LIBS"
19555		LIBS="-lpthread $LIBS"
19556
19557		if test "$cross_compiling" = yes; then :
19558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19559/* end confdefs.h.  */
19560
19561/* pthread test headers */
19562#include <pthread.h>
19563#if HAVE_PTHREADS < 7
19564#include <errno.h>
19565#endif
19566#ifndef NULL
19567#define NULL (void*)0
19568#endif
19569
19570static void *task(p)
19571	void *p;
19572{
19573	return (void *) (p == NULL);
19574}
19575
19576int
19577main ()
19578{
19579
19580	/* pthread test function */
19581#ifndef PTHREAD_CREATE_DETACHED
19582#define	PTHREAD_CREATE_DETACHED	1
19583#endif
19584	pthread_t t;
19585	int status;
19586	int detach = PTHREAD_CREATE_DETACHED;
19587
19588#if HAVE_PTHREADS > 4
19589	/* Final pthreads */
19590	pthread_attr_t attr;
19591
19592	status = pthread_attr_init(&attr);
19593	if( status ) return status;
19594
19595#if HAVE_PTHREADS < 7
19596	status = pthread_attr_setdetachstate(&attr, &detach);
19597	if( status < 0 ) status = errno;
19598#else
19599	status = pthread_attr_setdetachstate(&attr, detach);
19600#endif
19601	if( status ) return status;
19602	status = pthread_create( &t, &attr, task, NULL );
19603#if HAVE_PTHREADS < 7
19604	if( status < 0 ) status = errno;
19605#endif
19606	if( status ) return status;
19607#else
19608	/* Draft 4 pthreads */
19609	status = pthread_create( &t, pthread_attr_default, task, NULL );
19610	if( status ) return errno;
19611
19612	/* give thread a chance to complete */
19613	/* it should remain joinable and hence detachable */
19614	sleep( 1 );
19615
19616	status = pthread_detach( &t );
19617	if( status ) return errno;
19618#endif
19619
19620#ifdef HAVE_LINUX_THREADS
19621	pthread_kill_other_threads_np();
19622#endif
19623
19624	return 0;
19625
19626  ;
19627  return 0;
19628}
19629_ACEOF
19630if ac_fn_c_try_link "$LINENO"; then :
19631  ol_cv_pthread_lpthread=yes
19632else
19633  ol_cv_pthread_lpthread=no
19634fi
19635rm -f core conftest.err conftest.$ac_objext \
19636    conftest$ac_exeext conftest.$ac_ext
19637else
19638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19639/* end confdefs.h.  */
19640
19641/* pthread test headers */
19642#include <pthread.h>
19643#if HAVE_PTHREADS < 7
19644#include <errno.h>
19645#endif
19646#ifndef NULL
19647#define NULL (void*)0
19648#endif
19649
19650static void *task(p)
19651	void *p;
19652{
19653	return (void *) (p == NULL);
19654}
19655
19656
19657int main(argc, argv)
19658	int argc;
19659	char **argv;
19660{
19661
19662	/* pthread test function */
19663#ifndef PTHREAD_CREATE_DETACHED
19664#define	PTHREAD_CREATE_DETACHED	1
19665#endif
19666	pthread_t t;
19667	int status;
19668	int detach = PTHREAD_CREATE_DETACHED;
19669
19670#if HAVE_PTHREADS > 4
19671	/* Final pthreads */
19672	pthread_attr_t attr;
19673
19674	status = pthread_attr_init(&attr);
19675	if( status ) return status;
19676
19677#if HAVE_PTHREADS < 7
19678	status = pthread_attr_setdetachstate(&attr, &detach);
19679	if( status < 0 ) status = errno;
19680#else
19681	status = pthread_attr_setdetachstate(&attr, detach);
19682#endif
19683	if( status ) return status;
19684	status = pthread_create( &t, &attr, task, NULL );
19685#if HAVE_PTHREADS < 7
19686	if( status < 0 ) status = errno;
19687#endif
19688	if( status ) return status;
19689#else
19690	/* Draft 4 pthreads */
19691	status = pthread_create( &t, pthread_attr_default, task, NULL );
19692	if( status ) return errno;
19693
19694	/* give thread a chance to complete */
19695	/* it should remain joinable and hence detachable */
19696	sleep( 1 );
19697
19698	status = pthread_detach( &t );
19699	if( status ) return errno;
19700#endif
19701
19702#ifdef HAVE_LINUX_THREADS
19703	pthread_kill_other_threads_np();
19704#endif
19705
19706	return 0;
19707
19708}
19709
19710_ACEOF
19711if ac_fn_c_try_run "$LINENO"; then :
19712  ol_cv_pthread_lpthread=yes
19713else
19714  ol_cv_pthread_lpthread=no
19715fi
19716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19717  conftest.$ac_objext conftest.beam conftest.$ac_ext
19718fi
19719
19720
19721		# restore the LIBS
19722		LIBS="$ol_LIBS"
19723
19724fi
19725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
19726$as_echo "$ol_cv_pthread_lpthread" >&6; }
19727
19728	if test $ol_cv_pthread_lpthread = yes ; then
19729		ol_link_pthreads="-lpthread"
19730		ol_link_threads=posix
19731	fi
19732fi
19733
19734		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
19735if test "$ol_link_threads" = no ; then
19736	# try -lc_r
19737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
19738$as_echo_n "checking for pthread link with -lc_r... " >&6; }
19739if ${ol_cv_pthread_lc_r+:} false; then :
19740  $as_echo_n "(cached) " >&6
19741else
19742
19743		# save the flags
19744		ol_LIBS="$LIBS"
19745		LIBS="-lc_r $LIBS"
19746
19747		if test "$cross_compiling" = yes; then :
19748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19749/* end confdefs.h.  */
19750
19751/* pthread test headers */
19752#include <pthread.h>
19753#if HAVE_PTHREADS < 7
19754#include <errno.h>
19755#endif
19756#ifndef NULL
19757#define NULL (void*)0
19758#endif
19759
19760static void *task(p)
19761	void *p;
19762{
19763	return (void *) (p == NULL);
19764}
19765
19766int
19767main ()
19768{
19769
19770	/* pthread test function */
19771#ifndef PTHREAD_CREATE_DETACHED
19772#define	PTHREAD_CREATE_DETACHED	1
19773#endif
19774	pthread_t t;
19775	int status;
19776	int detach = PTHREAD_CREATE_DETACHED;
19777
19778#if HAVE_PTHREADS > 4
19779	/* Final pthreads */
19780	pthread_attr_t attr;
19781
19782	status = pthread_attr_init(&attr);
19783	if( status ) return status;
19784
19785#if HAVE_PTHREADS < 7
19786	status = pthread_attr_setdetachstate(&attr, &detach);
19787	if( status < 0 ) status = errno;
19788#else
19789	status = pthread_attr_setdetachstate(&attr, detach);
19790#endif
19791	if( status ) return status;
19792	status = pthread_create( &t, &attr, task, NULL );
19793#if HAVE_PTHREADS < 7
19794	if( status < 0 ) status = errno;
19795#endif
19796	if( status ) return status;
19797#else
19798	/* Draft 4 pthreads */
19799	status = pthread_create( &t, pthread_attr_default, task, NULL );
19800	if( status ) return errno;
19801
19802	/* give thread a chance to complete */
19803	/* it should remain joinable and hence detachable */
19804	sleep( 1 );
19805
19806	status = pthread_detach( &t );
19807	if( status ) return errno;
19808#endif
19809
19810#ifdef HAVE_LINUX_THREADS
19811	pthread_kill_other_threads_np();
19812#endif
19813
19814	return 0;
19815
19816  ;
19817  return 0;
19818}
19819_ACEOF
19820if ac_fn_c_try_link "$LINENO"; then :
19821  ol_cv_pthread_lc_r=yes
19822else
19823  ol_cv_pthread_lc_r=no
19824fi
19825rm -f core conftest.err conftest.$ac_objext \
19826    conftest$ac_exeext conftest.$ac_ext
19827else
19828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829/* end confdefs.h.  */
19830
19831/* pthread test headers */
19832#include <pthread.h>
19833#if HAVE_PTHREADS < 7
19834#include <errno.h>
19835#endif
19836#ifndef NULL
19837#define NULL (void*)0
19838#endif
19839
19840static void *task(p)
19841	void *p;
19842{
19843	return (void *) (p == NULL);
19844}
19845
19846
19847int main(argc, argv)
19848	int argc;
19849	char **argv;
19850{
19851
19852	/* pthread test function */
19853#ifndef PTHREAD_CREATE_DETACHED
19854#define	PTHREAD_CREATE_DETACHED	1
19855#endif
19856	pthread_t t;
19857	int status;
19858	int detach = PTHREAD_CREATE_DETACHED;
19859
19860#if HAVE_PTHREADS > 4
19861	/* Final pthreads */
19862	pthread_attr_t attr;
19863
19864	status = pthread_attr_init(&attr);
19865	if( status ) return status;
19866
19867#if HAVE_PTHREADS < 7
19868	status = pthread_attr_setdetachstate(&attr, &detach);
19869	if( status < 0 ) status = errno;
19870#else
19871	status = pthread_attr_setdetachstate(&attr, detach);
19872#endif
19873	if( status ) return status;
19874	status = pthread_create( &t, &attr, task, NULL );
19875#if HAVE_PTHREADS < 7
19876	if( status < 0 ) status = errno;
19877#endif
19878	if( status ) return status;
19879#else
19880	/* Draft 4 pthreads */
19881	status = pthread_create( &t, pthread_attr_default, task, NULL );
19882	if( status ) return errno;
19883
19884	/* give thread a chance to complete */
19885	/* it should remain joinable and hence detachable */
19886	sleep( 1 );
19887
19888	status = pthread_detach( &t );
19889	if( status ) return errno;
19890#endif
19891
19892#ifdef HAVE_LINUX_THREADS
19893	pthread_kill_other_threads_np();
19894#endif
19895
19896	return 0;
19897
19898}
19899
19900_ACEOF
19901if ac_fn_c_try_run "$LINENO"; then :
19902  ol_cv_pthread_lc_r=yes
19903else
19904  ol_cv_pthread_lc_r=no
19905fi
19906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19907  conftest.$ac_objext conftest.beam conftest.$ac_ext
19908fi
19909
19910
19911		# restore the LIBS
19912		LIBS="$ol_LIBS"
19913
19914fi
19915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
19916$as_echo "$ol_cv_pthread_lc_r" >&6; }
19917
19918	if test $ol_cv_pthread_lc_r = yes ; then
19919		ol_link_pthreads="-lc_r"
19920		ol_link_threads=posix
19921	fi
19922fi
19923
19924
19925		# Pthread try link: -threads (ol_cv_pthread_threads)
19926if test "$ol_link_threads" = no ; then
19927	# try -threads
19928	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
19929$as_echo_n "checking for pthread link with -threads... " >&6; }
19930if ${ol_cv_pthread_threads+:} false; then :
19931  $as_echo_n "(cached) " >&6
19932else
19933
19934		# save the flags
19935		ol_LIBS="$LIBS"
19936		LIBS="-threads $LIBS"
19937
19938		if test "$cross_compiling" = yes; then :
19939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19940/* end confdefs.h.  */
19941
19942/* pthread test headers */
19943#include <pthread.h>
19944#if HAVE_PTHREADS < 7
19945#include <errno.h>
19946#endif
19947#ifndef NULL
19948#define NULL (void*)0
19949#endif
19950
19951static void *task(p)
19952	void *p;
19953{
19954	return (void *) (p == NULL);
19955}
19956
19957int
19958main ()
19959{
19960
19961	/* pthread test function */
19962#ifndef PTHREAD_CREATE_DETACHED
19963#define	PTHREAD_CREATE_DETACHED	1
19964#endif
19965	pthread_t t;
19966	int status;
19967	int detach = PTHREAD_CREATE_DETACHED;
19968
19969#if HAVE_PTHREADS > 4
19970	/* Final pthreads */
19971	pthread_attr_t attr;
19972
19973	status = pthread_attr_init(&attr);
19974	if( status ) return status;
19975
19976#if HAVE_PTHREADS < 7
19977	status = pthread_attr_setdetachstate(&attr, &detach);
19978	if( status < 0 ) status = errno;
19979#else
19980	status = pthread_attr_setdetachstate(&attr, detach);
19981#endif
19982	if( status ) return status;
19983	status = pthread_create( &t, &attr, task, NULL );
19984#if HAVE_PTHREADS < 7
19985	if( status < 0 ) status = errno;
19986#endif
19987	if( status ) return status;
19988#else
19989	/* Draft 4 pthreads */
19990	status = pthread_create( &t, pthread_attr_default, task, NULL );
19991	if( status ) return errno;
19992
19993	/* give thread a chance to complete */
19994	/* it should remain joinable and hence detachable */
19995	sleep( 1 );
19996
19997	status = pthread_detach( &t );
19998	if( status ) return errno;
19999#endif
20000
20001#ifdef HAVE_LINUX_THREADS
20002	pthread_kill_other_threads_np();
20003#endif
20004
20005	return 0;
20006
20007  ;
20008  return 0;
20009}
20010_ACEOF
20011if ac_fn_c_try_link "$LINENO"; then :
20012  ol_cv_pthread_threads=yes
20013else
20014  ol_cv_pthread_threads=no
20015fi
20016rm -f core conftest.err conftest.$ac_objext \
20017    conftest$ac_exeext conftest.$ac_ext
20018else
20019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20020/* end confdefs.h.  */
20021
20022/* pthread test headers */
20023#include <pthread.h>
20024#if HAVE_PTHREADS < 7
20025#include <errno.h>
20026#endif
20027#ifndef NULL
20028#define NULL (void*)0
20029#endif
20030
20031static void *task(p)
20032	void *p;
20033{
20034	return (void *) (p == NULL);
20035}
20036
20037
20038int main(argc, argv)
20039	int argc;
20040	char **argv;
20041{
20042
20043	/* pthread test function */
20044#ifndef PTHREAD_CREATE_DETACHED
20045#define	PTHREAD_CREATE_DETACHED	1
20046#endif
20047	pthread_t t;
20048	int status;
20049	int detach = PTHREAD_CREATE_DETACHED;
20050
20051#if HAVE_PTHREADS > 4
20052	/* Final pthreads */
20053	pthread_attr_t attr;
20054
20055	status = pthread_attr_init(&attr);
20056	if( status ) return status;
20057
20058#if HAVE_PTHREADS < 7
20059	status = pthread_attr_setdetachstate(&attr, &detach);
20060	if( status < 0 ) status = errno;
20061#else
20062	status = pthread_attr_setdetachstate(&attr, detach);
20063#endif
20064	if( status ) return status;
20065	status = pthread_create( &t, &attr, task, NULL );
20066#if HAVE_PTHREADS < 7
20067	if( status < 0 ) status = errno;
20068#endif
20069	if( status ) return status;
20070#else
20071	/* Draft 4 pthreads */
20072	status = pthread_create( &t, pthread_attr_default, task, NULL );
20073	if( status ) return errno;
20074
20075	/* give thread a chance to complete */
20076	/* it should remain joinable and hence detachable */
20077	sleep( 1 );
20078
20079	status = pthread_detach( &t );
20080	if( status ) return errno;
20081#endif
20082
20083#ifdef HAVE_LINUX_THREADS
20084	pthread_kill_other_threads_np();
20085#endif
20086
20087	return 0;
20088
20089}
20090
20091_ACEOF
20092if ac_fn_c_try_run "$LINENO"; then :
20093  ol_cv_pthread_threads=yes
20094else
20095  ol_cv_pthread_threads=no
20096fi
20097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20098  conftest.$ac_objext conftest.beam conftest.$ac_ext
20099fi
20100
20101
20102		# restore the LIBS
20103		LIBS="$ol_LIBS"
20104
20105fi
20106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
20107$as_echo "$ol_cv_pthread_threads" >&6; }
20108
20109	if test $ol_cv_pthread_threads = yes ; then
20110		ol_link_pthreads="-threads"
20111		ol_link_threads=posix
20112	fi
20113fi
20114
20115
20116		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
20117if test "$ol_link_threads" = no ; then
20118	# try -lpthreads -lmach -lexc -lc_r
20119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
20120$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
20121if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
20122  $as_echo_n "(cached) " >&6
20123else
20124
20125		# save the flags
20126		ol_LIBS="$LIBS"
20127		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
20128
20129		if test "$cross_compiling" = yes; then :
20130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131/* end confdefs.h.  */
20132
20133/* pthread test headers */
20134#include <pthread.h>
20135#if HAVE_PTHREADS < 7
20136#include <errno.h>
20137#endif
20138#ifndef NULL
20139#define NULL (void*)0
20140#endif
20141
20142static void *task(p)
20143	void *p;
20144{
20145	return (void *) (p == NULL);
20146}
20147
20148int
20149main ()
20150{
20151
20152	/* pthread test function */
20153#ifndef PTHREAD_CREATE_DETACHED
20154#define	PTHREAD_CREATE_DETACHED	1
20155#endif
20156	pthread_t t;
20157	int status;
20158	int detach = PTHREAD_CREATE_DETACHED;
20159
20160#if HAVE_PTHREADS > 4
20161	/* Final pthreads */
20162	pthread_attr_t attr;
20163
20164	status = pthread_attr_init(&attr);
20165	if( status ) return status;
20166
20167#if HAVE_PTHREADS < 7
20168	status = pthread_attr_setdetachstate(&attr, &detach);
20169	if( status < 0 ) status = errno;
20170#else
20171	status = pthread_attr_setdetachstate(&attr, detach);
20172#endif
20173	if( status ) return status;
20174	status = pthread_create( &t, &attr, task, NULL );
20175#if HAVE_PTHREADS < 7
20176	if( status < 0 ) status = errno;
20177#endif
20178	if( status ) return status;
20179#else
20180	/* Draft 4 pthreads */
20181	status = pthread_create( &t, pthread_attr_default, task, NULL );
20182	if( status ) return errno;
20183
20184	/* give thread a chance to complete */
20185	/* it should remain joinable and hence detachable */
20186	sleep( 1 );
20187
20188	status = pthread_detach( &t );
20189	if( status ) return errno;
20190#endif
20191
20192#ifdef HAVE_LINUX_THREADS
20193	pthread_kill_other_threads_np();
20194#endif
20195
20196	return 0;
20197
20198  ;
20199  return 0;
20200}
20201_ACEOF
20202if ac_fn_c_try_link "$LINENO"; then :
20203  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
20204else
20205  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
20206fi
20207rm -f core conftest.err conftest.$ac_objext \
20208    conftest$ac_exeext conftest.$ac_ext
20209else
20210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20211/* end confdefs.h.  */
20212
20213/* pthread test headers */
20214#include <pthread.h>
20215#if HAVE_PTHREADS < 7
20216#include <errno.h>
20217#endif
20218#ifndef NULL
20219#define NULL (void*)0
20220#endif
20221
20222static void *task(p)
20223	void *p;
20224{
20225	return (void *) (p == NULL);
20226}
20227
20228
20229int main(argc, argv)
20230	int argc;
20231	char **argv;
20232{
20233
20234	/* pthread test function */
20235#ifndef PTHREAD_CREATE_DETACHED
20236#define	PTHREAD_CREATE_DETACHED	1
20237#endif
20238	pthread_t t;
20239	int status;
20240	int detach = PTHREAD_CREATE_DETACHED;
20241
20242#if HAVE_PTHREADS > 4
20243	/* Final pthreads */
20244	pthread_attr_t attr;
20245
20246	status = pthread_attr_init(&attr);
20247	if( status ) return status;
20248
20249#if HAVE_PTHREADS < 7
20250	status = pthread_attr_setdetachstate(&attr, &detach);
20251	if( status < 0 ) status = errno;
20252#else
20253	status = pthread_attr_setdetachstate(&attr, detach);
20254#endif
20255	if( status ) return status;
20256	status = pthread_create( &t, &attr, task, NULL );
20257#if HAVE_PTHREADS < 7
20258	if( status < 0 ) status = errno;
20259#endif
20260	if( status ) return status;
20261#else
20262	/* Draft 4 pthreads */
20263	status = pthread_create( &t, pthread_attr_default, task, NULL );
20264	if( status ) return errno;
20265
20266	/* give thread a chance to complete */
20267	/* it should remain joinable and hence detachable */
20268	sleep( 1 );
20269
20270	status = pthread_detach( &t );
20271	if( status ) return errno;
20272#endif
20273
20274#ifdef HAVE_LINUX_THREADS
20275	pthread_kill_other_threads_np();
20276#endif
20277
20278	return 0;
20279
20280}
20281
20282_ACEOF
20283if ac_fn_c_try_run "$LINENO"; then :
20284  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
20285else
20286  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
20287fi
20288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20289  conftest.$ac_objext conftest.beam conftest.$ac_ext
20290fi
20291
20292
20293		# restore the LIBS
20294		LIBS="$ol_LIBS"
20295
20296fi
20297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
20298$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
20299
20300	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
20301		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
20302		ol_link_threads=posix
20303	fi
20304fi
20305
20306		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
20307if test "$ol_link_threads" = no ; then
20308	# try -lpthreads -lmach -lexc
20309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
20310$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
20311if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
20312  $as_echo_n "(cached) " >&6
20313else
20314
20315		# save the flags
20316		ol_LIBS="$LIBS"
20317		LIBS="-lpthreads -lmach -lexc $LIBS"
20318
20319		if test "$cross_compiling" = yes; then :
20320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20321/* end confdefs.h.  */
20322
20323/* pthread test headers */
20324#include <pthread.h>
20325#if HAVE_PTHREADS < 7
20326#include <errno.h>
20327#endif
20328#ifndef NULL
20329#define NULL (void*)0
20330#endif
20331
20332static void *task(p)
20333	void *p;
20334{
20335	return (void *) (p == NULL);
20336}
20337
20338int
20339main ()
20340{
20341
20342	/* pthread test function */
20343#ifndef PTHREAD_CREATE_DETACHED
20344#define	PTHREAD_CREATE_DETACHED	1
20345#endif
20346	pthread_t t;
20347	int status;
20348	int detach = PTHREAD_CREATE_DETACHED;
20349
20350#if HAVE_PTHREADS > 4
20351	/* Final pthreads */
20352	pthread_attr_t attr;
20353
20354	status = pthread_attr_init(&attr);
20355	if( status ) return status;
20356
20357#if HAVE_PTHREADS < 7
20358	status = pthread_attr_setdetachstate(&attr, &detach);
20359	if( status < 0 ) status = errno;
20360#else
20361	status = pthread_attr_setdetachstate(&attr, detach);
20362#endif
20363	if( status ) return status;
20364	status = pthread_create( &t, &attr, task, NULL );
20365#if HAVE_PTHREADS < 7
20366	if( status < 0 ) status = errno;
20367#endif
20368	if( status ) return status;
20369#else
20370	/* Draft 4 pthreads */
20371	status = pthread_create( &t, pthread_attr_default, task, NULL );
20372	if( status ) return errno;
20373
20374	/* give thread a chance to complete */
20375	/* it should remain joinable and hence detachable */
20376	sleep( 1 );
20377
20378	status = pthread_detach( &t );
20379	if( status ) return errno;
20380#endif
20381
20382#ifdef HAVE_LINUX_THREADS
20383	pthread_kill_other_threads_np();
20384#endif
20385
20386	return 0;
20387
20388  ;
20389  return 0;
20390}
20391_ACEOF
20392if ac_fn_c_try_link "$LINENO"; then :
20393  ol_cv_pthread_lpthreads_lmach_lexc=yes
20394else
20395  ol_cv_pthread_lpthreads_lmach_lexc=no
20396fi
20397rm -f core conftest.err conftest.$ac_objext \
20398    conftest$ac_exeext conftest.$ac_ext
20399else
20400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20401/* end confdefs.h.  */
20402
20403/* pthread test headers */
20404#include <pthread.h>
20405#if HAVE_PTHREADS < 7
20406#include <errno.h>
20407#endif
20408#ifndef NULL
20409#define NULL (void*)0
20410#endif
20411
20412static void *task(p)
20413	void *p;
20414{
20415	return (void *) (p == NULL);
20416}
20417
20418
20419int main(argc, argv)
20420	int argc;
20421	char **argv;
20422{
20423
20424	/* pthread test function */
20425#ifndef PTHREAD_CREATE_DETACHED
20426#define	PTHREAD_CREATE_DETACHED	1
20427#endif
20428	pthread_t t;
20429	int status;
20430	int detach = PTHREAD_CREATE_DETACHED;
20431
20432#if HAVE_PTHREADS > 4
20433	/* Final pthreads */
20434	pthread_attr_t attr;
20435
20436	status = pthread_attr_init(&attr);
20437	if( status ) return status;
20438
20439#if HAVE_PTHREADS < 7
20440	status = pthread_attr_setdetachstate(&attr, &detach);
20441	if( status < 0 ) status = errno;
20442#else
20443	status = pthread_attr_setdetachstate(&attr, detach);
20444#endif
20445	if( status ) return status;
20446	status = pthread_create( &t, &attr, task, NULL );
20447#if HAVE_PTHREADS < 7
20448	if( status < 0 ) status = errno;
20449#endif
20450	if( status ) return status;
20451#else
20452	/* Draft 4 pthreads */
20453	status = pthread_create( &t, pthread_attr_default, task, NULL );
20454	if( status ) return errno;
20455
20456	/* give thread a chance to complete */
20457	/* it should remain joinable and hence detachable */
20458	sleep( 1 );
20459
20460	status = pthread_detach( &t );
20461	if( status ) return errno;
20462#endif
20463
20464#ifdef HAVE_LINUX_THREADS
20465	pthread_kill_other_threads_np();
20466#endif
20467
20468	return 0;
20469
20470}
20471
20472_ACEOF
20473if ac_fn_c_try_run "$LINENO"; then :
20474  ol_cv_pthread_lpthreads_lmach_lexc=yes
20475else
20476  ol_cv_pthread_lpthreads_lmach_lexc=no
20477fi
20478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20479  conftest.$ac_objext conftest.beam conftest.$ac_ext
20480fi
20481
20482
20483		# restore the LIBS
20484		LIBS="$ol_LIBS"
20485
20486fi
20487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
20488$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
20489
20490	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
20491		ol_link_pthreads="-lpthreads -lmach -lexc"
20492		ol_link_threads=posix
20493	fi
20494fi
20495
20496		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
20497if test "$ol_link_threads" = no ; then
20498	# try -lpthreads -lexc
20499	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
20500$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
20501if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
20502  $as_echo_n "(cached) " >&6
20503else
20504
20505		# save the flags
20506		ol_LIBS="$LIBS"
20507		LIBS="-lpthreads -lexc $LIBS"
20508
20509		if test "$cross_compiling" = yes; then :
20510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20511/* end confdefs.h.  */
20512
20513/* pthread test headers */
20514#include <pthread.h>
20515#if HAVE_PTHREADS < 7
20516#include <errno.h>
20517#endif
20518#ifndef NULL
20519#define NULL (void*)0
20520#endif
20521
20522static void *task(p)
20523	void *p;
20524{
20525	return (void *) (p == NULL);
20526}
20527
20528int
20529main ()
20530{
20531
20532	/* pthread test function */
20533#ifndef PTHREAD_CREATE_DETACHED
20534#define	PTHREAD_CREATE_DETACHED	1
20535#endif
20536	pthread_t t;
20537	int status;
20538	int detach = PTHREAD_CREATE_DETACHED;
20539
20540#if HAVE_PTHREADS > 4
20541	/* Final pthreads */
20542	pthread_attr_t attr;
20543
20544	status = pthread_attr_init(&attr);
20545	if( status ) return status;
20546
20547#if HAVE_PTHREADS < 7
20548	status = pthread_attr_setdetachstate(&attr, &detach);
20549	if( status < 0 ) status = errno;
20550#else
20551	status = pthread_attr_setdetachstate(&attr, detach);
20552#endif
20553	if( status ) return status;
20554	status = pthread_create( &t, &attr, task, NULL );
20555#if HAVE_PTHREADS < 7
20556	if( status < 0 ) status = errno;
20557#endif
20558	if( status ) return status;
20559#else
20560	/* Draft 4 pthreads */
20561	status = pthread_create( &t, pthread_attr_default, task, NULL );
20562	if( status ) return errno;
20563
20564	/* give thread a chance to complete */
20565	/* it should remain joinable and hence detachable */
20566	sleep( 1 );
20567
20568	status = pthread_detach( &t );
20569	if( status ) return errno;
20570#endif
20571
20572#ifdef HAVE_LINUX_THREADS
20573	pthread_kill_other_threads_np();
20574#endif
20575
20576	return 0;
20577
20578  ;
20579  return 0;
20580}
20581_ACEOF
20582if ac_fn_c_try_link "$LINENO"; then :
20583  ol_cv_pthread_lpthreads_lexc=yes
20584else
20585  ol_cv_pthread_lpthreads_lexc=no
20586fi
20587rm -f core conftest.err conftest.$ac_objext \
20588    conftest$ac_exeext conftest.$ac_ext
20589else
20590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20591/* end confdefs.h.  */
20592
20593/* pthread test headers */
20594#include <pthread.h>
20595#if HAVE_PTHREADS < 7
20596#include <errno.h>
20597#endif
20598#ifndef NULL
20599#define NULL (void*)0
20600#endif
20601
20602static void *task(p)
20603	void *p;
20604{
20605	return (void *) (p == NULL);
20606}
20607
20608
20609int main(argc, argv)
20610	int argc;
20611	char **argv;
20612{
20613
20614	/* pthread test function */
20615#ifndef PTHREAD_CREATE_DETACHED
20616#define	PTHREAD_CREATE_DETACHED	1
20617#endif
20618	pthread_t t;
20619	int status;
20620	int detach = PTHREAD_CREATE_DETACHED;
20621
20622#if HAVE_PTHREADS > 4
20623	/* Final pthreads */
20624	pthread_attr_t attr;
20625
20626	status = pthread_attr_init(&attr);
20627	if( status ) return status;
20628
20629#if HAVE_PTHREADS < 7
20630	status = pthread_attr_setdetachstate(&attr, &detach);
20631	if( status < 0 ) status = errno;
20632#else
20633	status = pthread_attr_setdetachstate(&attr, detach);
20634#endif
20635	if( status ) return status;
20636	status = pthread_create( &t, &attr, task, NULL );
20637#if HAVE_PTHREADS < 7
20638	if( status < 0 ) status = errno;
20639#endif
20640	if( status ) return status;
20641#else
20642	/* Draft 4 pthreads */
20643	status = pthread_create( &t, pthread_attr_default, task, NULL );
20644	if( status ) return errno;
20645
20646	/* give thread a chance to complete */
20647	/* it should remain joinable and hence detachable */
20648	sleep( 1 );
20649
20650	status = pthread_detach( &t );
20651	if( status ) return errno;
20652#endif
20653
20654#ifdef HAVE_LINUX_THREADS
20655	pthread_kill_other_threads_np();
20656#endif
20657
20658	return 0;
20659
20660}
20661
20662_ACEOF
20663if ac_fn_c_try_run "$LINENO"; then :
20664  ol_cv_pthread_lpthreads_lexc=yes
20665else
20666  ol_cv_pthread_lpthreads_lexc=no
20667fi
20668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20669  conftest.$ac_objext conftest.beam conftest.$ac_ext
20670fi
20671
20672
20673		# restore the LIBS
20674		LIBS="$ol_LIBS"
20675
20676fi
20677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
20678$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
20679
20680	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
20681		ol_link_pthreads="-lpthreads -lexc"
20682		ol_link_threads=posix
20683	fi
20684fi
20685
20686
20687		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
20688if test "$ol_link_threads" = no ; then
20689	# try -lpthreads
20690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
20691$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
20692if ${ol_cv_pthread_lib_lpthreads+:} false; then :
20693  $as_echo_n "(cached) " >&6
20694else
20695
20696		# save the flags
20697		ol_LIBS="$LIBS"
20698		LIBS="-lpthreads $LIBS"
20699
20700		if test "$cross_compiling" = yes; then :
20701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20702/* end confdefs.h.  */
20703
20704/* pthread test headers */
20705#include <pthread.h>
20706#if HAVE_PTHREADS < 7
20707#include <errno.h>
20708#endif
20709#ifndef NULL
20710#define NULL (void*)0
20711#endif
20712
20713static void *task(p)
20714	void *p;
20715{
20716	return (void *) (p == NULL);
20717}
20718
20719int
20720main ()
20721{
20722
20723	/* pthread test function */
20724#ifndef PTHREAD_CREATE_DETACHED
20725#define	PTHREAD_CREATE_DETACHED	1
20726#endif
20727	pthread_t t;
20728	int status;
20729	int detach = PTHREAD_CREATE_DETACHED;
20730
20731#if HAVE_PTHREADS > 4
20732	/* Final pthreads */
20733	pthread_attr_t attr;
20734
20735	status = pthread_attr_init(&attr);
20736	if( status ) return status;
20737
20738#if HAVE_PTHREADS < 7
20739	status = pthread_attr_setdetachstate(&attr, &detach);
20740	if( status < 0 ) status = errno;
20741#else
20742	status = pthread_attr_setdetachstate(&attr, detach);
20743#endif
20744	if( status ) return status;
20745	status = pthread_create( &t, &attr, task, NULL );
20746#if HAVE_PTHREADS < 7
20747	if( status < 0 ) status = errno;
20748#endif
20749	if( status ) return status;
20750#else
20751	/* Draft 4 pthreads */
20752	status = pthread_create( &t, pthread_attr_default, task, NULL );
20753	if( status ) return errno;
20754
20755	/* give thread a chance to complete */
20756	/* it should remain joinable and hence detachable */
20757	sleep( 1 );
20758
20759	status = pthread_detach( &t );
20760	if( status ) return errno;
20761#endif
20762
20763#ifdef HAVE_LINUX_THREADS
20764	pthread_kill_other_threads_np();
20765#endif
20766
20767	return 0;
20768
20769  ;
20770  return 0;
20771}
20772_ACEOF
20773if ac_fn_c_try_link "$LINENO"; then :
20774  ol_cv_pthread_lib_lpthreads=yes
20775else
20776  ol_cv_pthread_lib_lpthreads=no
20777fi
20778rm -f core conftest.err conftest.$ac_objext \
20779    conftest$ac_exeext conftest.$ac_ext
20780else
20781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20782/* end confdefs.h.  */
20783
20784/* pthread test headers */
20785#include <pthread.h>
20786#if HAVE_PTHREADS < 7
20787#include <errno.h>
20788#endif
20789#ifndef NULL
20790#define NULL (void*)0
20791#endif
20792
20793static void *task(p)
20794	void *p;
20795{
20796	return (void *) (p == NULL);
20797}
20798
20799
20800int main(argc, argv)
20801	int argc;
20802	char **argv;
20803{
20804
20805	/* pthread test function */
20806#ifndef PTHREAD_CREATE_DETACHED
20807#define	PTHREAD_CREATE_DETACHED	1
20808#endif
20809	pthread_t t;
20810	int status;
20811	int detach = PTHREAD_CREATE_DETACHED;
20812
20813#if HAVE_PTHREADS > 4
20814	/* Final pthreads */
20815	pthread_attr_t attr;
20816
20817	status = pthread_attr_init(&attr);
20818	if( status ) return status;
20819
20820#if HAVE_PTHREADS < 7
20821	status = pthread_attr_setdetachstate(&attr, &detach);
20822	if( status < 0 ) status = errno;
20823#else
20824	status = pthread_attr_setdetachstate(&attr, detach);
20825#endif
20826	if( status ) return status;
20827	status = pthread_create( &t, &attr, task, NULL );
20828#if HAVE_PTHREADS < 7
20829	if( status < 0 ) status = errno;
20830#endif
20831	if( status ) return status;
20832#else
20833	/* Draft 4 pthreads */
20834	status = pthread_create( &t, pthread_attr_default, task, NULL );
20835	if( status ) return errno;
20836
20837	/* give thread a chance to complete */
20838	/* it should remain joinable and hence detachable */
20839	sleep( 1 );
20840
20841	status = pthread_detach( &t );
20842	if( status ) return errno;
20843#endif
20844
20845#ifdef HAVE_LINUX_THREADS
20846	pthread_kill_other_threads_np();
20847#endif
20848
20849	return 0;
20850
20851}
20852
20853_ACEOF
20854if ac_fn_c_try_run "$LINENO"; then :
20855  ol_cv_pthread_lib_lpthreads=yes
20856else
20857  ol_cv_pthread_lib_lpthreads=no
20858fi
20859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20860  conftest.$ac_objext conftest.beam conftest.$ac_ext
20861fi
20862
20863
20864		# restore the LIBS
20865		LIBS="$ol_LIBS"
20866
20867fi
20868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
20869$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
20870
20871	if test $ol_cv_pthread_lib_lpthreads = yes ; then
20872		ol_link_pthreads="-lpthreads"
20873		ol_link_threads=posix
20874	fi
20875fi
20876
20877
20878		if test $ol_link_threads != no ; then
20879			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
20880
20881						save_CPPFLAGS="$CPPFLAGS"
20882			save_LIBS="$LIBS"
20883			LIBS="$LTHREAD_LIBS $LIBS"
20884
20885												for ac_func in sched_yield pthread_yield thr_yield
20886do :
20887  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20888ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20889if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20890  cat >>confdefs.h <<_ACEOF
20891#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20892_ACEOF
20893
20894fi
20895done
20896
20897
20898			if test $ac_cv_func_sched_yield = no &&
20899			   test $ac_cv_func_pthread_yield = no &&
20900			   test $ac_cv_func_thr_yield = no ; then
20901								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
20902$as_echo_n "checking for sched_yield in -lrt... " >&6; }
20903if ${ac_cv_lib_rt_sched_yield+:} false; then :
20904  $as_echo_n "(cached) " >&6
20905else
20906  ac_check_lib_save_LIBS=$LIBS
20907LIBS="-lrt  $LIBS"
20908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20909/* end confdefs.h.  */
20910
20911/* Override any GCC internal prototype to avoid an error.
20912   Use char because int might match the return type of a GCC
20913   builtin and then its argument prototype would still apply.  */
20914#ifdef __cplusplus
20915extern "C"
20916#endif
20917char sched_yield ();
20918int
20919main ()
20920{
20921return sched_yield ();
20922  ;
20923  return 0;
20924}
20925_ACEOF
20926if ac_fn_c_try_link "$LINENO"; then :
20927  ac_cv_lib_rt_sched_yield=yes
20928else
20929  ac_cv_lib_rt_sched_yield=no
20930fi
20931rm -f core conftest.err conftest.$ac_objext \
20932    conftest$ac_exeext conftest.$ac_ext
20933LIBS=$ac_check_lib_save_LIBS
20934fi
20935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
20936$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
20937if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
20938  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
20939
20940$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
20941
20942					ac_cv_func_sched_yield=yes
20943else
20944  ac_cv_func_sched_yield=no
20945fi
20946
20947			fi
20948			if test $ac_cv_func_sched_yield = no &&
20949			   test $ac_cv_func_pthread_yield = no &&
20950			   test "$ac_cv_func_thr_yield" = no ; then
20951				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
20952$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
20953			fi
20954
20955						for ac_func in pthread_kill
20956do :
20957  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
20958if test "x$ac_cv_func_pthread_kill" = xyes; then :
20959  cat >>confdefs.h <<_ACEOF
20960#define HAVE_PTHREAD_KILL 1
20961_ACEOF
20962
20963fi
20964done
20965
20966
20967									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
20968$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
20969if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
20970  $as_echo_n "(cached) " >&6
20971else
20972
20973								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20974/* end confdefs.h.  */
20975
20976#include <pthread.h>
20977pthread_rwlock_t rwlock;
20978
20979int
20980main ()
20981{
20982pthread_rwlock_destroy(&rwlock);
20983  ;
20984  return 0;
20985}
20986_ACEOF
20987if ac_fn_c_try_link "$LINENO"; then :
20988  ol_cv_func_pthread_rwlock_destroy=yes
20989else
20990  ol_cv_func_pthread_rwlock_destroy=no
20991fi
20992rm -f core conftest.err conftest.$ac_objext \
20993    conftest$ac_exeext conftest.$ac_ext
20994
20995fi
20996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
20997$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
20998			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
20999
21000$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
21001
21002			fi
21003
21004									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
21005$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
21006if ${ol_cv_func_pthread_detach+:} false; then :
21007  $as_echo_n "(cached) " >&6
21008else
21009
21010								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21011/* end confdefs.h.  */
21012
21013#include <pthread.h>
21014#ifndef NULL
21015#define NULL (void*)0
21016#endif
21017
21018int
21019main ()
21020{
21021pthread_detach(NULL);
21022  ;
21023  return 0;
21024}
21025_ACEOF
21026if ac_fn_c_try_link "$LINENO"; then :
21027  ol_cv_func_pthread_detach=yes
21028else
21029  ol_cv_func_pthread_detach=no
21030fi
21031rm -f core conftest.err conftest.$ac_objext \
21032    conftest$ac_exeext conftest.$ac_ext
21033
21034fi
21035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
21036$as_echo "$ol_cv_func_pthread_detach" >&6; }
21037
21038			if test $ol_cv_func_pthread_detach = no ; then
21039				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
21040			fi
21041
21042
21043$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
21044
21045
21046						for ac_func in \
21047				pthread_setconcurrency \
21048				pthread_getconcurrency \
21049				thr_setconcurrency \
21050				thr_getconcurrency \
21051
21052do :
21053  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21054ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21055if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21056  cat >>confdefs.h <<_ACEOF
21057#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21058_ACEOF
21059
21060fi
21061done
21062
21063
21064
21065	for ac_func in pthread_kill_other_threads_np
21066do :
21067  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
21068if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
21069  cat >>confdefs.h <<_ACEOF
21070#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
21071_ACEOF
21072
21073fi
21074done
21075
21076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
21077$as_echo_n "checking for LinuxThreads implementation... " >&6; }
21078if ${ol_cv_sys_linux_threads+:} false; then :
21079  $as_echo_n "(cached) " >&6
21080else
21081  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
21082fi
21083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
21084$as_echo "$ol_cv_sys_linux_threads" >&6; }
21085
21086
21087
21088
21089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
21090$as_echo_n "checking for LinuxThreads consistency... " >&6; }
21091if ${ol_cv_linux_threads+:} false; then :
21092  $as_echo_n "(cached) " >&6
21093else
21094
21095		if test $ol_cv_header_linux_threads = yes &&
21096		   test $ol_cv_sys_linux_threads = yes; then
21097			ol_cv_linux_threads=yes
21098		elif test $ol_cv_header_linux_threads = no &&
21099		     test $ol_cv_sys_linux_threads = no; then
21100			ol_cv_linux_threads=no
21101		else
21102			ol_cv_linux_threads=error
21103		fi
21104
21105fi
21106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
21107$as_echo "$ol_cv_linux_threads" >&6; }
21108
21109
21110			if test $ol_cv_linux_threads = error; then
21111				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
21112			fi
21113
21114			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
21115$as_echo_n "checking if pthread_create() works... " >&6; }
21116if ${ol_cv_pthread_create_works+:} false; then :
21117  $as_echo_n "(cached) " >&6
21118else
21119
21120			if test "$cross_compiling" = yes; then :
21121  				ol_cv_pthread_create_works=yes
21122else
21123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21124/* end confdefs.h.  */
21125
21126/* pthread test headers */
21127#include <pthread.h>
21128#if HAVE_PTHREADS < 7
21129#include <errno.h>
21130#endif
21131#ifndef NULL
21132#define NULL (void*)0
21133#endif
21134
21135static void *task(p)
21136	void *p;
21137{
21138	return (void *) (p == NULL);
21139}
21140
21141
21142int main(argc, argv)
21143	int argc;
21144	char **argv;
21145{
21146
21147	/* pthread test function */
21148#ifndef PTHREAD_CREATE_DETACHED
21149#define	PTHREAD_CREATE_DETACHED	1
21150#endif
21151	pthread_t t;
21152	int status;
21153	int detach = PTHREAD_CREATE_DETACHED;
21154
21155#if HAVE_PTHREADS > 4
21156	/* Final pthreads */
21157	pthread_attr_t attr;
21158
21159	status = pthread_attr_init(&attr);
21160	if( status ) return status;
21161
21162#if HAVE_PTHREADS < 7
21163	status = pthread_attr_setdetachstate(&attr, &detach);
21164	if( status < 0 ) status = errno;
21165#else
21166	status = pthread_attr_setdetachstate(&attr, detach);
21167#endif
21168	if( status ) return status;
21169	status = pthread_create( &t, &attr, task, NULL );
21170#if HAVE_PTHREADS < 7
21171	if( status < 0 ) status = errno;
21172#endif
21173	if( status ) return status;
21174#else
21175	/* Draft 4 pthreads */
21176	status = pthread_create( &t, pthread_attr_default, task, NULL );
21177	if( status ) return errno;
21178
21179	/* give thread a chance to complete */
21180	/* it should remain joinable and hence detachable */
21181	sleep( 1 );
21182
21183	status = pthread_detach( &t );
21184	if( status ) return errno;
21185#endif
21186
21187#ifdef HAVE_LINUX_THREADS
21188	pthread_kill_other_threads_np();
21189#endif
21190
21191	return 0;
21192
21193}
21194
21195_ACEOF
21196if ac_fn_c_try_run "$LINENO"; then :
21197  ol_cv_pthread_create_works=yes
21198else
21199  ol_cv_pthread_create_works=no
21200fi
21201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21202  conftest.$ac_objext conftest.beam conftest.$ac_ext
21203fi
21204
21205fi
21206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
21207$as_echo "$ol_cv_pthread_create_works" >&6; }
21208
21209			if test $ol_cv_pthread_create_works = no ; then
21210				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
21211			fi
21212
21213			ol_replace_broken_yield=no
21214
21215			if test $ol_replace_broken_yield = yes ; then
21216
21217$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
21218
21219			fi
21220
21221						if test $ol_with_yielding_select = auto ; then
21222				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
21223$as_echo_n "checking if select yields when using pthreads... " >&6; }
21224if ${ol_cv_pthread_select_yields+:} false; then :
21225  $as_echo_n "(cached) " >&6
21226else
21227
21228				if test "$cross_compiling" = yes; then :
21229  ol_cv_pthread_select_yields=cross
21230else
21231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21232/* end confdefs.h.  */
21233
21234#include <sys/types.h>
21235#include <sys/time.h>
21236#include <unistd.h>
21237#include <pthread.h>
21238#ifndef NULL
21239#define NULL (void*) 0
21240#endif
21241
21242static int fildes[2];
21243
21244static void *task(p)
21245	void *p;
21246{
21247	int i;
21248	struct timeval tv;
21249
21250	fd_set rfds;
21251
21252	tv.tv_sec=10;
21253	tv.tv_usec=0;
21254
21255	FD_ZERO(&rfds);
21256	FD_SET(fildes[0], &rfds);
21257
21258	/* we're not interested in any fds */
21259	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
21260
21261	if(i < 0) {
21262		perror("select");
21263		exit(10);
21264	}
21265
21266	exit(0); /* if we exit here, the select blocked the whole process */
21267}
21268
21269int main(argc, argv)
21270	int argc;
21271	char **argv;
21272{
21273	pthread_t t;
21274
21275	/* create a pipe to select */
21276	if(pipe(&fildes[0])) {
21277		perror("select");
21278		exit(1);
21279	}
21280
21281#ifdef HAVE_PTHREAD_SETCONCURRENCY
21282	(void) pthread_setconcurrency(2);
21283#else
21284#ifdef HAVE_THR_SETCONCURRENCY
21285	/* Set Solaris LWP concurrency to 2 */
21286	thr_setconcurrency(2);
21287#endif
21288#endif
21289
21290#if HAVE_PTHREADS < 6
21291	pthread_create(&t, pthread_attr_default, task, NULL);
21292#else
21293	pthread_create(&t, NULL, task, NULL);
21294#endif
21295
21296	/* make sure task runs first */
21297#ifdef HAVE_THR_YIELD
21298	thr_yield();
21299#elif defined( HAVE_SCHED_YIELD )
21300	sched_yield();
21301#elif defined( HAVE_PTHREAD_YIELD )
21302	pthread_yield();
21303#endif
21304
21305	exit(2);
21306}
21307_ACEOF
21308if ac_fn_c_try_run "$LINENO"; then :
21309  ol_cv_pthread_select_yields=no
21310else
21311  ol_cv_pthread_select_yields=yes
21312fi
21313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21314  conftest.$ac_objext conftest.beam conftest.$ac_ext
21315fi
21316
21317fi
21318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
21319$as_echo "$ol_cv_pthread_select_yields" >&6; }
21320
21321				if test $ol_cv_pthread_select_yields = cross ; then
21322					as_fn_error $? "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
21323				fi
21324
21325				if test $ol_cv_pthread_select_yields = yes ; then
21326					ol_with_yielding_select=yes
21327				fi
21328			fi
21329
21330						CPPFLAGS="$save_CPPFLAGS"
21331			LIBS="$save_LIBS"
21332		else
21333			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
21334		fi
21335	fi
21336
21337	if test $ol_with_threads = posix ; then
21338		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
21339	fi
21340	;;
21341esac
21342
21343case $ol_with_threads in auto | yes | pth)
21344
21345	for ac_header in pth.h
21346do :
21347  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
21348if test "x$ac_cv_header_pth_h" = xyes; then :
21349  cat >>confdefs.h <<_ACEOF
21350#define HAVE_PTH_H 1
21351_ACEOF
21352
21353fi
21354
21355done
21356
21357
21358	if test $ac_cv_header_pth_h = yes ; then
21359		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
21360$as_echo_n "checking for pth_version in -lpth... " >&6; }
21361if ${ac_cv_lib_pth_pth_version+:} false; then :
21362  $as_echo_n "(cached) " >&6
21363else
21364  ac_check_lib_save_LIBS=$LIBS
21365LIBS="-lpth  $LIBS"
21366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21367/* end confdefs.h.  */
21368
21369/* Override any GCC internal prototype to avoid an error.
21370   Use char because int might match the return type of a GCC
21371   builtin and then its argument prototype would still apply.  */
21372#ifdef __cplusplus
21373extern "C"
21374#endif
21375char pth_version ();
21376int
21377main ()
21378{
21379return pth_version ();
21380  ;
21381  return 0;
21382}
21383_ACEOF
21384if ac_fn_c_try_link "$LINENO"; then :
21385  ac_cv_lib_pth_pth_version=yes
21386else
21387  ac_cv_lib_pth_pth_version=no
21388fi
21389rm -f core conftest.err conftest.$ac_objext \
21390    conftest$ac_exeext conftest.$ac_ext
21391LIBS=$ac_check_lib_save_LIBS
21392fi
21393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
21394$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
21395if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
21396  have_pth=yes
21397else
21398  have_pth=no
21399fi
21400
21401
21402		if test $have_pth = yes ; then
21403
21404$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
21405
21406			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
21407			ol_link_threads=pth
21408			ol_with_threads=found
21409
21410			if test $ol_with_yielding_select = auto ; then
21411				ol_with_yielding_select=yes
21412			fi
21413		fi
21414	fi
21415	;;
21416esac
21417
21418case $ol_with_threads in auto | yes | lwp)
21419
21420		for ac_header in thread.h synch.h
21421do :
21422  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21423ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21424if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21425  cat >>confdefs.h <<_ACEOF
21426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21427_ACEOF
21428
21429fi
21430
21431done
21432
21433	if test $ac_cv_header_thread_h = yes &&
21434	   test $ac_cv_header_synch_h = yes ; then
21435		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
21436$as_echo_n "checking for thr_create in -lthread... " >&6; }
21437if ${ac_cv_lib_thread_thr_create+:} false; then :
21438  $as_echo_n "(cached) " >&6
21439else
21440  ac_check_lib_save_LIBS=$LIBS
21441LIBS="-lthread  $LIBS"
21442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21443/* end confdefs.h.  */
21444
21445/* Override any GCC internal prototype to avoid an error.
21446   Use char because int might match the return type of a GCC
21447   builtin and then its argument prototype would still apply.  */
21448#ifdef __cplusplus
21449extern "C"
21450#endif
21451char thr_create ();
21452int
21453main ()
21454{
21455return thr_create ();
21456  ;
21457  return 0;
21458}
21459_ACEOF
21460if ac_fn_c_try_link "$LINENO"; then :
21461  ac_cv_lib_thread_thr_create=yes
21462else
21463  ac_cv_lib_thread_thr_create=no
21464fi
21465rm -f core conftest.err conftest.$ac_objext \
21466    conftest$ac_exeext conftest.$ac_ext
21467LIBS=$ac_check_lib_save_LIBS
21468fi
21469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
21470$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
21471if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
21472  have_thr=yes
21473else
21474  have_thr=no
21475fi
21476
21477
21478		if test $have_thr = yes ; then
21479
21480$as_echo "#define HAVE_THR 1" >>confdefs.h
21481
21482			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
21483			ol_link_threads=thr
21484
21485			if test $ol_with_yielding_select = auto ; then
21486				ol_with_yielding_select=yes
21487			fi
21488
21489						for ac_func in \
21490				thr_setconcurrency \
21491				thr_getconcurrency \
21492
21493do :
21494  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21495ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21496if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21497  cat >>confdefs.h <<_ACEOF
21498#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21499_ACEOF
21500
21501fi
21502done
21503
21504		fi
21505	fi
21506	;;
21507esac
21508
21509if test $ol_with_yielding_select = yes ; then
21510
21511$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
21512
21513fi
21514
21515if test $ol_with_threads = manual ; then
21516		ol_link_threads=yes
21517
21518	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
21519$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
21520
21521	for ac_header in pthread.h sched.h
21522do :
21523  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21524ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21525if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21526  cat >>confdefs.h <<_ACEOF
21527#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21528_ACEOF
21529
21530fi
21531
21532done
21533
21534	for ac_func in sched_yield pthread_yield
21535do :
21536  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21537ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21538if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21539  cat >>confdefs.h <<_ACEOF
21540#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21541_ACEOF
21542
21543fi
21544done
21545
21546
21547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
21548$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
21549if ${ol_cv_header_linux_threads+:} false; then :
21550  $as_echo_n "(cached) " >&6
21551else
21552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21553/* end confdefs.h.  */
21554#include <pthread.h>
21555_ACEOF
21556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21557  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
21558  ol_cv_header_linux_threads=yes
21559else
21560  ol_cv_header_linux_threads=no
21561fi
21562rm -f conftest*
21563
21564
21565fi
21566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
21567$as_echo "$ol_cv_header_linux_threads" >&6; }
21568	if test $ol_cv_header_linux_threads = yes; then
21569
21570$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
21571
21572	fi
21573
21574
21575	for ac_header in thread.h synch.h
21576do :
21577  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21578ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21579if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21580  cat >>confdefs.h <<_ACEOF
21581#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21582_ACEOF
21583
21584fi
21585
21586done
21587
21588fi
21589
21590if test $ol_link_threads != no && test $ol_link_threads != nt ; then
21591			$as_echo "#define REENTRANT 1" >>confdefs.h
21592
21593	$as_echo "#define _REENTRANT 1" >>confdefs.h
21594
21595	$as_echo "#define THREAD_SAFE 1" >>confdefs.h
21596
21597	$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
21598
21599	$as_echo "#define THREADSAFE 1" >>confdefs.h
21600
21601	$as_echo "#define _THREADSAFE 1" >>confdefs.h
21602
21603	$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
21604
21605
21606			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
21607$as_echo_n "checking for thread specific errno... " >&6; }
21608if ${ol_cv_errno_thread_specific+:} false; then :
21609  $as_echo_n "(cached) " >&6
21610else
21611
21612		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21613/* end confdefs.h.  */
21614#include <errno.h>
21615int
21616main ()
21617{
21618errno = 0;
21619  ;
21620  return 0;
21621}
21622_ACEOF
21623if ac_fn_c_try_link "$LINENO"; then :
21624  ol_cv_errno_thread_specific=yes
21625else
21626  ol_cv_errno_thread_specific=no
21627fi
21628rm -f core conftest.err conftest.$ac_objext \
21629    conftest$ac_exeext conftest.$ac_ext
21630
21631fi
21632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
21633$as_echo "$ol_cv_errno_thread_specific" >&6; }
21634
21635			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
21636$as_echo_n "checking for thread specific h_errno... " >&6; }
21637if ${ol_cv_h_errno_thread_specific+:} false; then :
21638  $as_echo_n "(cached) " >&6
21639else
21640
21641		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21642/* end confdefs.h.  */
21643#include <netdb.h>
21644int
21645main ()
21646{
21647h_errno = 0;
21648  ;
21649  return 0;
21650}
21651_ACEOF
21652if ac_fn_c_try_link "$LINENO"; then :
21653  ol_cv_h_errno_thread_specific=yes
21654else
21655  ol_cv_h_errno_thread_specific=no
21656fi
21657rm -f core conftest.err conftest.$ac_objext \
21658    conftest$ac_exeext conftest.$ac_ext
21659
21660fi
21661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
21662$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
21663
21664	if test $ol_cv_errno_thread_specific != yes ||
21665	   test $ol_cv_h_errno_thread_specific != yes ; then
21666		LIBS="$LTHREAD_LIBS $LIBS"
21667		LTHREAD_LIBS=""
21668	fi
21669
21670fi
21671
21672if test $ol_link_threads = no ; then
21673	if test $ol_enable_slapd != no; then
21674		as_fn_error $? "slapd requires thread support" "$LINENO" 5
21675	fi
21676
21677	if test $ol_with_threads = yes ; then
21678		as_fn_error $? "no suitable thread support" "$LINENO" 5
21679	fi
21680
21681	if test $ol_with_threads = auto ; then
21682		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
21683$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
21684		ol_with_threads=no
21685	fi
21686
21687
21688$as_echo "#define NO_THREADS 1" >>confdefs.h
21689
21690	LTHREAD_LIBS=""
21691	BUILD_THREAD=no
21692else
21693	BUILD_THREAD=yes
21694fi
21695
21696if test $ol_link_threads != no ; then
21697
21698$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
21699
21700
21701
21702$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1" >>confdefs.h
21703
21704fi
21705
21706for ac_func in \
21707	ctime_r			\
21708	gmtime_r localtime_r \
21709	gethostbyname_r	gethostbyaddr_r \
21710
21711do :
21712  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21713ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21714if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21715  cat >>confdefs.h <<_ACEOF
21716#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21717_ACEOF
21718
21719fi
21720done
21721
21722
21723if test "$ac_cv_func_ctime_r" = no ; then
21724	ol_cv_func_ctime_r_nargs=0
21725else
21726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of ctime_r" >&5
21727$as_echo_n "checking number of arguments of ctime_r... " >&6; }
21728if ${ol_cv_func_ctime_r_nargs+:} false; then :
21729  $as_echo_n "(cached) " >&6
21730else
21731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21732/* end confdefs.h.  */
21733#include <time.h>
21734int
21735main ()
21736{
21737time_t ti; char *buffer; ctime_r(&ti,buffer,32);
21738  ;
21739  return 0;
21740}
21741_ACEOF
21742if ac_fn_c_try_compile "$LINENO"; then :
21743  ol_cv_func_ctime_r_nargs3=yes
21744else
21745  ol_cv_func_ctime_r_nargs3=no
21746fi
21747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21748
21749	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21750/* end confdefs.h.  */
21751#include <time.h>
21752int
21753main ()
21754{
21755time_t ti; char *buffer; ctime_r(&ti,buffer);
21756  ;
21757  return 0;
21758}
21759_ACEOF
21760if ac_fn_c_try_compile "$LINENO"; then :
21761  ol_cv_func_ctime_r_nargs2=yes
21762else
21763  ol_cv_func_ctime_r_nargs2=no
21764fi
21765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21766
21767	if test $ol_cv_func_ctime_r_nargs3 = yes &&
21768	   test $ol_cv_func_ctime_r_nargs2 = no ; then
21769
21770		ol_cv_func_ctime_r_nargs=3
21771
21772	elif test $ol_cv_func_ctime_r_nargs3 = no &&
21773	     test $ol_cv_func_ctime_r_nargs2 = yes ; then
21774
21775		ol_cv_func_ctime_r_nargs=2
21776
21777	else
21778		ol_cv_func_ctime_r_nargs=0
21779	fi
21780
21781fi
21782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_ctime_r_nargs" >&5
21783$as_echo "$ol_cv_func_ctime_r_nargs" >&6; }
21784
21785  if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
21786
21787cat >>confdefs.h <<_ACEOF
21788#define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
21789_ACEOF
21790
21791  fi
21792
21793fi
21794
21795if test "$ac_cv_func_gethostbyname_r" = yes ; then
21796 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyname_r" >&5
21797$as_echo_n "checking number of arguments of gethostbyname_r... " >&6; }
21798if ${ol_cv_func_gethostbyname_r_nargs+:} false; then :
21799  $as_echo_n "(cached) " >&6
21800else
21801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21802/* end confdefs.h.  */
21803#include <sys/types.h>
21804#include <sys/socket.h>
21805#include <netinet/in.h>
21806#include <netdb.h>
21807#define BUFSIZE (sizeof(struct hostent)+10)
21808int
21809main ()
21810{
21811struct hostent hent; char buffer[BUFSIZE];
21812		int bufsize=BUFSIZE;int h_errno;
21813		(void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
21814			buffer, bufsize, &h_errno);
21815  ;
21816  return 0;
21817}
21818_ACEOF
21819if ac_fn_c_try_compile "$LINENO"; then :
21820  ol_cv_func_gethostbyname_r_nargs5=yes
21821else
21822  ol_cv_func_gethostbyname_r_nargs5=no
21823fi
21824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825
21826	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21827/* end confdefs.h.  */
21828#include <sys/types.h>
21829#include <sys/socket.h>
21830#include <netinet/in.h>
21831#include <netdb.h>
21832#define BUFSIZE (sizeof(struct hostent)+10)
21833int
21834main ()
21835{
21836struct hostent hent;struct hostent *rhent;
21837		char buffer[BUFSIZE];
21838		int bufsize=BUFSIZE;int h_errno;
21839		(void)gethostbyname_r("localhost", &hent, buffer, bufsize,
21840			&rhent, &h_errno);
21841  ;
21842  return 0;
21843}
21844_ACEOF
21845if ac_fn_c_try_compile "$LINENO"; then :
21846  ol_cv_func_gethostbyname_r_nargs6=yes
21847else
21848  ol_cv_func_gethostbyname_r_nargs6=no
21849fi
21850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21851
21852	if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
21853	   test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
21854
21855		ol_cv_func_gethostbyname_r_nargs=5
21856
21857	elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
21858	     test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
21859
21860		ol_cv_func_gethostbyname_r_nargs=6
21861
21862	else
21863		ol_cv_func_gethostbyname_r_nargs=0
21864	fi
21865
21866fi
21867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyname_r_nargs" >&5
21868$as_echo "$ol_cv_func_gethostbyname_r_nargs" >&6; }
21869  if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
21870
21871cat >>confdefs.h <<_ACEOF
21872#define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
21873_ACEOF
21874
21875  fi
21876
21877else
21878 	ol_cv_func_gethostbyname_r_nargs=0
21879fi
21880
21881if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
21882 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyaddr_r" >&5
21883$as_echo_n "checking number of arguments of gethostbyaddr_r... " >&6; }
21884if ${ol_cv_func_gethostbyaddr_r_nargs+:} false; then :
21885  $as_echo_n "(cached) " >&6
21886else
21887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21888/* end confdefs.h.  */
21889#include <sys/types.h>
21890#include <sys/socket.h>
21891#include <netinet/in.h>
21892#include <netdb.h>
21893#define BUFSIZE (sizeof(struct hostent)+10)
21894int
21895main ()
21896{
21897struct hostent hent; char buffer[BUFSIZE];
21898	    struct in_addr add;
21899	    size_t alen=sizeof(struct in_addr);
21900	    int bufsize=BUFSIZE;int h_errno;
21901		(void)gethostbyaddr_r( (void *)&(add.s_addr),
21902			alen, AF_INET, &hent, buffer, bufsize, &h_errno);
21903  ;
21904  return 0;
21905}
21906_ACEOF
21907if ac_fn_c_try_compile "$LINENO"; then :
21908  ol_cv_func_gethostbyaddr_r_nargs7=yes
21909else
21910  ol_cv_func_gethostbyaddr_r_nargs7=no
21911fi
21912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21913
21914	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21915/* end confdefs.h.  */
21916#include <sys/types.h>
21917#include <sys/socket.h>
21918#include <netinet/in.h>
21919#include <netdb.h>
21920#define BUFSIZE (sizeof(struct hostent)+10)
21921int
21922main ()
21923{
21924struct hostent hent;
21925		struct hostent *rhent; char buffer[BUFSIZE];
21926		struct in_addr add;
21927		size_t alen=sizeof(struct in_addr);
21928		int bufsize=BUFSIZE;int h_errno;
21929		(void)gethostbyaddr_r( (void *)&(add.s_addr),
21930			alen, AF_INET, &hent, buffer, bufsize,
21931			&rhent, &h_errno);
21932  ;
21933  return 0;
21934}
21935_ACEOF
21936if ac_fn_c_try_compile "$LINENO"; then :
21937  ol_cv_func_gethostbyaddr_r_nargs8=yes
21938else
21939  ol_cv_func_gethostbyaddr_r_nargs8=no
21940fi
21941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21942
21943	if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
21944	   test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
21945
21946		ol_cv_func_gethostbyaddr_r_nargs=7
21947
21948	elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
21949	     test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
21950
21951		ol_cv_func_gethostbyaddr_r_nargs=8
21952
21953	else
21954		ol_cv_func_gethostbyaddr_r_nargs=0
21955	fi
21956
21957fi
21958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
21959$as_echo "$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
21960  if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
21961
21962cat >>confdefs.h <<_ACEOF
21963#define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
21964_ACEOF
21965
21966  fi
21967
21968else
21969 	ol_cv_func_gethostbyaddr_r_nargs=0
21970fi
21971
21972
21973if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
21974	BUILD_LIBS_DYNAMIC=shared
21975
21976$as_echo "#define LDAP_LIBS_DYNAMIC 1" >>confdefs.h
21977
21978	LTSTATIC=""
21979else
21980	BUILD_LIBS_DYNAMIC=static
21981	LTSTATIC="-static"
21982fi
21983
21984if test $ol_enable_wrappers != no ; then
21985	for ac_header in tcpd.h
21986do :
21987  ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
21988if test "x$ac_cv_header_tcpd_h" = xyes; then :
21989  cat >>confdefs.h <<_ACEOF
21990#define HAVE_TCPD_H 1
21991_ACEOF
21992
21993		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library" >&5
21994$as_echo_n "checking for TCP wrappers library... " >&6; }
21995		save_LIBS="$LIBS"
21996		LIBS="$LIBS -lwrap"
21997		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21998/* end confdefs.h.  */
21999
22000#include <tcpd.h>
22001int allow_severity = 0;
22002int deny_severity  = 0;
22003
22004struct request_info *req;
22005
22006int
22007main ()
22008{
22009
22010hosts_access(req)
22011
22012  ;
22013  return 0;
22014}
22015_ACEOF
22016if ac_fn_c_try_link "$LINENO"; then :
22017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5
22018$as_echo "-lwrap" >&6; }
22019		have_wrappers=yes
22020		LIBS="$save_LIBS"
22021else
22022
22023				LIBS="$LIBS -lnsl"
22024		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22025/* end confdefs.h.  */
22026
22027#include <tcpd.h>
22028int allow_severity = 0;
22029int deny_severity  = 0;
22030
22031struct request_info *req;
22032
22033int
22034main ()
22035{
22036
22037hosts_access(req)
22038
22039  ;
22040  return 0;
22041}
22042_ACEOF
22043if ac_fn_c_try_link "$LINENO"; then :
22044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap -lnsl" >&5
22045$as_echo "-lwrap -lnsl" >&6; }
22046		have_wrappers=yes
22047		LIBS="$save_LIBS -lnsl"
22048else
22049
22050		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22051$as_echo "no" >&6; }
22052		have_wrappers=no
22053		LIBS=$save_LIBS
22054fi
22055rm -f core conftest.err conftest.$ac_objext \
22056    conftest$ac_exeext conftest.$ac_ext
22057fi
22058rm -f core conftest.err conftest.$ac_objext \
22059    conftest$ac_exeext conftest.$ac_ext
22060else
22061  have_wrappers=no
22062fi
22063
22064done
22065
22066
22067	if test $have_wrappers = yes ; then
22068
22069$as_echo "#define HAVE_TCPD 1" >>confdefs.h
22070
22071		WRAP_LIBS="-lwrap"
22072	elif test $ol_enable_wrappers = yes ; then
22073		as_fn_error $? "could not find TCP wrappers, select appropriate options or disable" "$LINENO" 5
22074	else
22075		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find TCP wrappers, support disabled" >&5
22076$as_echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
22077		WRAP_LIBS=""
22078	fi
22079fi
22080
22081if test $ol_enable_syslog != no ; then
22082	ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
22083if test "x$ac_cv_func_openlog" = xyes; then :
22084
22085fi
22086
22087	if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
22088		as_fn_error select appropriate options or disable "could not find syslog" "$LINENO" 5
22089	fi
22090	ol_enable_syslog=$ac_cv_func_openlog
22091fi
22092
22093ol_link_sql=no
22094if test $ol_enable_sql != no ; then
22095	for ac_header in sql.h sqlext.h
22096do :
22097  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22098ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22099if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22100  cat >>confdefs.h <<_ACEOF
22101#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22102_ACEOF
22103
22104else
22105
22106		as_fn_error $? "could not locate SQL headers" "$LINENO" 5
22107
22108fi
22109
22110done
22111
22112
22113	sql_LIBS="$LIBS"
22114	LIBS="$LTHREAD_LIBS $LIBS"
22115
22116	if test $ol_with_odbc = auto ; then
22117		ol_with_odbc="iodbc unixodbc odbc32"
22118	fi
22119
22120	for odbc in $ol_with_odbc ; do
22121		if test $ol_link_sql = no ; then
22122			case $odbc in
22123			iodbc)
22124				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -liodbc" >&5
22125$as_echo_n "checking for SQLDriverConnect in -liodbc... " >&6; }
22126if ${ac_cv_lib_iodbc_SQLDriverConnect+:} false; then :
22127  $as_echo_n "(cached) " >&6
22128else
22129  ac_check_lib_save_LIBS=$LIBS
22130LIBS="-liodbc  $LIBS"
22131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22132/* end confdefs.h.  */
22133
22134/* Override any GCC internal prototype to avoid an error.
22135   Use char because int might match the return type of a GCC
22136   builtin and then its argument prototype would still apply.  */
22137#ifdef __cplusplus
22138extern "C"
22139#endif
22140char SQLDriverConnect ();
22141int
22142main ()
22143{
22144return SQLDriverConnect ();
22145  ;
22146  return 0;
22147}
22148_ACEOF
22149if ac_fn_c_try_link "$LINENO"; then :
22150  ac_cv_lib_iodbc_SQLDriverConnect=yes
22151else
22152  ac_cv_lib_iodbc_SQLDriverConnect=no
22153fi
22154rm -f core conftest.err conftest.$ac_objext \
22155    conftest$ac_exeext conftest.$ac_ext
22156LIBS=$ac_check_lib_save_LIBS
22157fi
22158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
22159$as_echo "$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
22160if test "x$ac_cv_lib_iodbc_SQLDriverConnect" = xyes; then :
22161  have_iodbc=yes
22162else
22163  have_iodbc=no
22164fi
22165
22166				if test $have_iodbc = yes ; then
22167					ol_link_sql="-liodbc"
22168				fi
22169				;;
22170
22171			unixodbc)
22172				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc" >&5
22173$as_echo_n "checking for SQLDriverConnect in -lodbc... " >&6; }
22174if ${ac_cv_lib_odbc_SQLDriverConnect+:} false; then :
22175  $as_echo_n "(cached) " >&6
22176else
22177  ac_check_lib_save_LIBS=$LIBS
22178LIBS="-lodbc  $LIBS"
22179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22180/* end confdefs.h.  */
22181
22182/* Override any GCC internal prototype to avoid an error.
22183   Use char because int might match the return type of a GCC
22184   builtin and then its argument prototype would still apply.  */
22185#ifdef __cplusplus
22186extern "C"
22187#endif
22188char SQLDriverConnect ();
22189int
22190main ()
22191{
22192return SQLDriverConnect ();
22193  ;
22194  return 0;
22195}
22196_ACEOF
22197if ac_fn_c_try_link "$LINENO"; then :
22198  ac_cv_lib_odbc_SQLDriverConnect=yes
22199else
22200  ac_cv_lib_odbc_SQLDriverConnect=no
22201fi
22202rm -f core conftest.err conftest.$ac_objext \
22203    conftest$ac_exeext conftest.$ac_ext
22204LIBS=$ac_check_lib_save_LIBS
22205fi
22206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
22207$as_echo "$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
22208if test "x$ac_cv_lib_odbc_SQLDriverConnect" = xyes; then :
22209  have_odbc=yes
22210else
22211  have_odbc=no
22212fi
22213
22214				if test $have_odbc = yes ; then
22215					ol_link_sql="-lodbc"
22216				fi
22217				;;
22218
22219			odbc32)
22220				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32" >&5
22221$as_echo_n "checking for SQLDriverConnect in -lodbc32... " >&6; }
22222if ${ac_cv_lib_odbc32_SQLDriverConnect+:} false; then :
22223  $as_echo_n "(cached) " >&6
22224else
22225  ac_check_lib_save_LIBS=$LIBS
22226LIBS="-lodbc32  $LIBS"
22227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22228/* end confdefs.h.  */
22229
22230/* Override any GCC internal prototype to avoid an error.
22231   Use char because int might match the return type of a GCC
22232   builtin and then its argument prototype would still apply.  */
22233#ifdef __cplusplus
22234extern "C"
22235#endif
22236char SQLDriverConnect ();
22237int
22238main ()
22239{
22240return SQLDriverConnect ();
22241  ;
22242  return 0;
22243}
22244_ACEOF
22245if ac_fn_c_try_link "$LINENO"; then :
22246  ac_cv_lib_odbc32_SQLDriverConnect=yes
22247else
22248  ac_cv_lib_odbc32_SQLDriverConnect=no
22249fi
22250rm -f core conftest.err conftest.$ac_objext \
22251    conftest$ac_exeext conftest.$ac_ext
22252LIBS=$ac_check_lib_save_LIBS
22253fi
22254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
22255$as_echo "$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
22256if test "x$ac_cv_lib_odbc32_SQLDriverConnect" = xyes; then :
22257  have_odbc32=yes
22258else
22259  have_odbc32=no
22260fi
22261
22262
22263								if test $have_odbc32 = no ; then
22264					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
22265$as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
22266					save_LIBS="$LIBS"
22267					LIBS="$LIBS -lodbc32"
22268					cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22269/* end confdefs.h.  */
22270#include <windows.h>
22271					#include <sqlext.h>
22272
22273int
22274main ()
22275{
22276
22277						SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
22278
22279  ;
22280  return 0;
22281}
22282_ACEOF
22283if ac_fn_c_try_link "$LINENO"; then :
22284  have_odbc32=yes
22285else
22286  have_odbc32=no
22287fi
22288rm -f core conftest.err conftest.$ac_objext \
22289    conftest$ac_exeext conftest.$ac_ext
22290					LIBS="$save_LIBS"
22291					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
22292$as_echo "$have_odbc32" >&6; }
22293				fi
22294
22295				if test $have_odbc32 = yes ; then
22296					ol_link_sql="-lodbc32"
22297				fi
22298				;;
22299
22300			*)
22301				as_fn_error $? "unknown ODBC library" "$LINENO" 5
22302				;;
22303			esac
22304		fi
22305	done
22306
22307	LIBS="$sql_LIBS"
22308
22309	if test $ol_link_sql != no ; then
22310		SLAPD_SQL_LIBS="$ol_link_sql"
22311
22312	elif test $ol_enable_sql != auto ; then
22313		as_fn_error $? "could not locate suitable ODBC library" "$LINENO" 5
22314	fi
22315fi
22316
22317ol_link_ndb=no
22318if test $ol_enable_ndb != no ; then
22319	# Extract the first word of "mysql_config", so it can be a program name with args.
22320set dummy mysql_config; ac_word=$2
22321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22322$as_echo_n "checking for $ac_word... " >&6; }
22323if ${ac_cv_prog_MYSQL+:} false; then :
22324  $as_echo_n "(cached) " >&6
22325else
22326  if test -n "$MYSQL"; then
22327  ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
22328else
22329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22330for as_dir in $PATH
22331do
22332  IFS=$as_save_IFS
22333  test -z "$as_dir" && as_dir=.
22334    for ac_exec_ext in '' $ac_executable_extensions; do
22335  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22336    ac_cv_prog_MYSQL="yes"
22337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22338    break 2
22339  fi
22340done
22341  done
22342IFS=$as_save_IFS
22343
22344fi
22345fi
22346MYSQL=$ac_cv_prog_MYSQL
22347if test -n "$MYSQL"; then
22348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
22349$as_echo "$MYSQL" >&6; }
22350else
22351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22352$as_echo "no" >&6; }
22353fi
22354
22355
22356	if test "$MYSQL" != yes ; then
22357		as_fn_error $? "could not locate mysql_config" "$LINENO" 5
22358	fi
22359
22360	SQL_INC=`mysql_config --include`
22361	SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
22362
22363	save_CPPFLAGS="$CPPFLAGS"
22364	CPPFLAGS="$SLAPD_NDB_INCS"
22365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NdbApi.hpp" >&5
22366$as_echo_n "checking for NdbApi.hpp... " >&6; }
22367	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368/* end confdefs.h.  */
22369#include <NdbApi.hpp>
22370_ACEOF
22371if ac_fn_c_try_cpp "$LINENO"; then :
22372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22373$as_echo "yes" >&6; }
22374else
22375  as_fn_error $? "could not locate NdbApi headers" "$LINENO" 5
22376
22377fi
22378rm -f conftest.err conftest.i conftest.$ac_ext
22379	CPPFLAGS="$save_CPPFLAGS"
22380
22381	SQL_LIB=`mysql_config --libs_r`
22382	SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
22383
22384	save_LDFLAGS="$LDFLAGS"
22385	save_LIBS="$LIBS"
22386	LDFLAGS="$SQL_LIB"
22387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ndb_init in -lndbclient" >&5
22388$as_echo_n "checking for ndb_init in -lndbclient... " >&6; }
22389if ${ac_cv_lib_ndbclient_ndb_init+:} false; then :
22390  $as_echo_n "(cached) " >&6
22391else
22392  ac_check_lib_save_LIBS=$LIBS
22393LIBS="-lndbclient -lstdc++ $LIBS"
22394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22395/* end confdefs.h.  */
22396
22397/* Override any GCC internal prototype to avoid an error.
22398   Use char because int might match the return type of a GCC
22399   builtin and then its argument prototype would still apply.  */
22400#ifdef __cplusplus
22401extern "C"
22402#endif
22403char ndb_init ();
22404int
22405main ()
22406{
22407return ndb_init ();
22408  ;
22409  return 0;
22410}
22411_ACEOF
22412if ac_fn_c_try_link "$LINENO"; then :
22413  ac_cv_lib_ndbclient_ndb_init=yes
22414else
22415  ac_cv_lib_ndbclient_ndb_init=no
22416fi
22417rm -f core conftest.err conftest.$ac_objext \
22418    conftest$ac_exeext conftest.$ac_ext
22419LIBS=$ac_check_lib_save_LIBS
22420fi
22421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbclient_ndb_init" >&5
22422$as_echo "$ac_cv_lib_ndbclient_ndb_init" >&6; }
22423if test "x$ac_cv_lib_ndbclient_ndb_init" = xyes; then :
22424  : ok
22425else
22426
22427		as_fn_error $? "could not locate ndbclient library" "$LINENO" 5
22428
22429fi
22430
22431	LIBS="$save_LIBS"
22432	LDFLAGS="$save_LDFLAGS"
22433
22434	if test "$ol_enable_ndb" = yes ; then
22435		SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
22436	fi
22437fi
22438
22439ol_link_wt=no
22440if test $ol_enable_wt != no ; then
22441
22442
22443
22444
22445
22446
22447
22448if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22449	if test -n "$ac_tool_prefix"; then
22450  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22451set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22453$as_echo_n "checking for $ac_word... " >&6; }
22454if ${ac_cv_path_PKG_CONFIG+:} false; then :
22455  $as_echo_n "(cached) " >&6
22456else
22457  case $PKG_CONFIG in
22458  [\\/]* | ?:[\\/]*)
22459  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22460  ;;
22461  *)
22462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22463for as_dir in $PATH
22464do
22465  IFS=$as_save_IFS
22466  test -z "$as_dir" && as_dir=.
22467    for ac_exec_ext in '' $ac_executable_extensions; do
22468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22469    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22471    break 2
22472  fi
22473done
22474  done
22475IFS=$as_save_IFS
22476
22477  ;;
22478esac
22479fi
22480PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22481if test -n "$PKG_CONFIG"; then
22482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22483$as_echo "$PKG_CONFIG" >&6; }
22484else
22485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22486$as_echo "no" >&6; }
22487fi
22488
22489
22490fi
22491if test -z "$ac_cv_path_PKG_CONFIG"; then
22492  ac_pt_PKG_CONFIG=$PKG_CONFIG
22493  # Extract the first word of "pkg-config", so it can be a program name with args.
22494set dummy pkg-config; ac_word=$2
22495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22496$as_echo_n "checking for $ac_word... " >&6; }
22497if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
22498  $as_echo_n "(cached) " >&6
22499else
22500  case $ac_pt_PKG_CONFIG in
22501  [\\/]* | ?:[\\/]*)
22502  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22503  ;;
22504  *)
22505  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22506for as_dir in $PATH
22507do
22508  IFS=$as_save_IFS
22509  test -z "$as_dir" && as_dir=.
22510    for ac_exec_ext in '' $ac_executable_extensions; do
22511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22512    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22514    break 2
22515  fi
22516done
22517  done
22518IFS=$as_save_IFS
22519
22520  ;;
22521esac
22522fi
22523ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22524if test -n "$ac_pt_PKG_CONFIG"; then
22525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22526$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22527else
22528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22529$as_echo "no" >&6; }
22530fi
22531
22532  if test "x$ac_pt_PKG_CONFIG" = x; then
22533    PKG_CONFIG=""
22534  else
22535    case $cross_compiling:$ac_tool_warned in
22536yes:)
22537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22539ac_tool_warned=yes ;;
22540esac
22541    PKG_CONFIG=$ac_pt_PKG_CONFIG
22542  fi
22543else
22544  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22545fi
22546
22547fi
22548if test -n "$PKG_CONFIG"; then
22549	_pkg_min_version=0.9.0
22550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22551$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22552	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22553		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22554$as_echo "yes" >&6; }
22555	else
22556		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22557$as_echo "no" >&6; }
22558		PKG_CONFIG=""
22559	fi
22560fi
22561
22562pkg_failed=no
22563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WT" >&5
22564$as_echo_n "checking for WT... " >&6; }
22565
22566if test -n "$WT_CFLAGS"; then
22567    pkg_cv_WT_CFLAGS="$WT_CFLAGS"
22568 elif test -n "$PKG_CONFIG"; then
22569    if test -n "$PKG_CONFIG" && \
22570    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wiredtiger\""; } >&5
22571  ($PKG_CONFIG --exists --print-errors "wiredtiger") 2>&5
22572  ac_status=$?
22573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22574  test $ac_status = 0; }; then
22575  pkg_cv_WT_CFLAGS=`$PKG_CONFIG --cflags "wiredtiger" 2>/dev/null`
22576		      test "x$?" != "x0" && pkg_failed=yes
22577else
22578  pkg_failed=yes
22579fi
22580 else
22581    pkg_failed=untried
22582fi
22583if test -n "$WT_LIBS"; then
22584    pkg_cv_WT_LIBS="$WT_LIBS"
22585 elif test -n "$PKG_CONFIG"; then
22586    if test -n "$PKG_CONFIG" && \
22587    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wiredtiger\""; } >&5
22588  ($PKG_CONFIG --exists --print-errors "wiredtiger") 2>&5
22589  ac_status=$?
22590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22591  test $ac_status = 0; }; then
22592  pkg_cv_WT_LIBS=`$PKG_CONFIG --libs "wiredtiger" 2>/dev/null`
22593		      test "x$?" != "x0" && pkg_failed=yes
22594else
22595  pkg_failed=yes
22596fi
22597 else
22598    pkg_failed=untried
22599fi
22600
22601
22602
22603if test $pkg_failed = yes; then
22604   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22605$as_echo "no" >&6; }
22606
22607if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22608        _pkg_short_errors_supported=yes
22609else
22610        _pkg_short_errors_supported=no
22611fi
22612        if test $_pkg_short_errors_supported = yes; then
22613	        WT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wiredtiger" 2>&1`
22614        else
22615	        WT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wiredtiger" 2>&1`
22616        fi
22617	# Put the nasty error message in config.log where it belongs
22618	echo "$WT_PKG_ERRORS" >&5
22619
22620	as_fn_error $? "Package requirements (wiredtiger) were not met:
22621
22622$WT_PKG_ERRORS
22623
22624Consider adjusting the PKG_CONFIG_PATH environment variable if you
22625installed software in a non-standard prefix.
22626
22627Alternatively, you may set the environment variables WT_CFLAGS
22628and WT_LIBS to avoid the need to call pkg-config.
22629See the pkg-config man page for more details." "$LINENO" 5
22630elif test $pkg_failed = untried; then
22631     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22632$as_echo "no" >&6; }
22633	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22635as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22636is in your PATH or set the PKG_CONFIG environment variable to the full
22637path to pkg-config.
22638
22639Alternatively, you may set the environment variables WT_CFLAGS
22640and WT_LIBS to avoid the need to call pkg-config.
22641See the pkg-config man page for more details.
22642
22643To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22644See \`config.log' for more details" "$LINENO" 5; }
22645else
22646	WT_CFLAGS=$pkg_cv_WT_CFLAGS
22647	WT_LIBS=$pkg_cv_WT_LIBS
22648        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22649$as_echo "yes" >&6; }
22650
22651fi
22652	if test $ol_enable_wt = yes ; then
22653		SLAPD_LIBS="$SLAPD_LIBS \$(WT_LIBS)"
22654	fi
22655	ol_link_wt=yes
22656fi
22657
22658WITH_SASL=no
22659ol_link_sasl=no
22660ol_link_spasswd=no
22661if test $ol_with_cyrus_sasl != no ; then
22662	for ac_header in sasl/sasl.h sasl.h
22663do :
22664  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22665ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22666if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22667  cat >>confdefs.h <<_ACEOF
22668#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22669_ACEOF
22670
22671fi
22672
22673done
22674
22675
22676	if test $ac_cv_header_sasl_sasl_h = yes ||
22677	   test $ac_cv_header_sasl_h = yes; then
22678		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
22679$as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
22680if ${ac_cv_lib_sasl2_sasl_client_init+:} false; then :
22681  $as_echo_n "(cached) " >&6
22682else
22683  ac_check_lib_save_LIBS=$LIBS
22684LIBS="-lsasl2  $LIBS"
22685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22686/* end confdefs.h.  */
22687
22688/* Override any GCC internal prototype to avoid an error.
22689   Use char because int might match the return type of a GCC
22690   builtin and then its argument prototype would still apply.  */
22691#ifdef __cplusplus
22692extern "C"
22693#endif
22694char sasl_client_init ();
22695int
22696main ()
22697{
22698return sasl_client_init ();
22699  ;
22700  return 0;
22701}
22702_ACEOF
22703if ac_fn_c_try_link "$LINENO"; then :
22704  ac_cv_lib_sasl2_sasl_client_init=yes
22705else
22706  ac_cv_lib_sasl2_sasl_client_init=no
22707fi
22708rm -f core conftest.err conftest.$ac_objext \
22709    conftest$ac_exeext conftest.$ac_ext
22710LIBS=$ac_check_lib_save_LIBS
22711fi
22712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
22713$as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
22714if test "x$ac_cv_lib_sasl2_sasl_client_init" = xyes; then :
22715  ol_link_sasl="-lsasl2"
22716else
22717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
22718$as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
22719if ${ac_cv_lib_sasl_sasl_client_init+:} false; then :
22720  $as_echo_n "(cached) " >&6
22721else
22722  ac_check_lib_save_LIBS=$LIBS
22723LIBS="-lsasl  $LIBS"
22724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22725/* end confdefs.h.  */
22726
22727/* Override any GCC internal prototype to avoid an error.
22728   Use char because int might match the return type of a GCC
22729   builtin and then its argument prototype would still apply.  */
22730#ifdef __cplusplus
22731extern "C"
22732#endif
22733char sasl_client_init ();
22734int
22735main ()
22736{
22737return sasl_client_init ();
22738  ;
22739  return 0;
22740}
22741_ACEOF
22742if ac_fn_c_try_link "$LINENO"; then :
22743  ac_cv_lib_sasl_sasl_client_init=yes
22744else
22745  ac_cv_lib_sasl_sasl_client_init=no
22746fi
22747rm -f core conftest.err conftest.$ac_objext \
22748    conftest$ac_exeext conftest.$ac_ext
22749LIBS=$ac_check_lib_save_LIBS
22750fi
22751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
22752$as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
22753if test "x$ac_cv_lib_sasl_sasl_client_init" = xyes; then :
22754  ol_link_sasl="-lsasl"
22755fi
22756
22757fi
22758
22759	fi
22760
22761	if test $ol_link_sasl = no ; then
22762		if test $ol_with_cyrus_sasl != auto ; then
22763			as_fn_error $? "Could not locate Cyrus SASL" "$LINENO" 5
22764		else
22765			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate Cyrus SASL" >&5
22766$as_echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
22767			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22768$as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22769			if test $ol_link_tls = no ; then
22770				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22771$as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22772			fi
22773		fi
22774	else
22775		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Cyrus SASL library version" >&5
22776$as_echo_n "checking Cyrus SASL library version... " >&6; }
22777if ${ol_cv_sasl_compat+:} false; then :
22778  $as_echo_n "(cached) " >&6
22779else
22780
22781	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22782/* end confdefs.h.  */
22783
22784#ifdef HAVE_SASL_SASL_H
22785#include <sasl/sasl.h>
22786#else
22787#include <sasl.h>
22788#endif
22789
22790/* Require 2.1.15+ */
22791#if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
22792	char *__sasl_compat = "2.2+ or better okay (we guess)";
22793#elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
22794	&& SASL_VERSION_STEP >=15
22795	char *__sasl_compat = "2.1.15+ or better okay";
22796#endif
22797
22798_ACEOF
22799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22800  $EGREP "__sasl_compat" >/dev/null 2>&1; then :
22801  ol_cv_sasl_compat=yes
22802else
22803  ol_cv_sasl_compat=no
22804fi
22805rm -f conftest*
22806
22807fi
22808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sasl_compat" >&5
22809$as_echo "$ol_cv_sasl_compat" >&6; }
22810
22811		if test $ol_cv_sasl_compat = no ; then
22812			ol_link_sasl=no
22813			as_fn_error $? "Cyrus SASL library located but is incompatible" "$LINENO" 5
22814		fi
22815
22816
22817$as_echo "#define HAVE_CYRUS_SASL 1" >>confdefs.h
22818
22819		SASL_LIBS="$ol_link_sasl"
22820		if test $ol_enable_spasswd != no ; then
22821			ol_link_spasswd=yes
22822		fi
22823
22824		ac_save_LIBS="$LIBS"
22825		LIBS="$LIBS $ol_link_sasl"
22826		ac_fn_c_check_func "$LINENO" "sasl_version" "ac_cv_func_sasl_version"
22827if test "x$ac_cv_func_sasl_version" = xyes; then :
22828
22829$as_echo "#define HAVE_SASL_VERSION 1" >>confdefs.h
22830
22831fi
22832
22833		LIBS="$ac_save_LIBS"
22834
22835		WITH_SASL=yes
22836	fi
22837
22838else
22839	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22840$as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22841	if test $ol_link_tls = no ; then
22842		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22843$as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22844	fi
22845fi
22846
22847WITH_SYSTEMD=no
22848systemdsystemunitdir=
22849ol_link_systemd=no
22850if test $ol_enable_slapd == no && test $ol_enable_balancer != yes ; then
22851	if test $ol_with_systemd != no ; then
22852		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: servers disabled, ignoring --with-systemd=$ol_with_systemd argument" >&5
22853$as_echo "$as_me: WARNING: servers disabled, ignoring --with-systemd=$ol_with_systemd argument" >&2;}
22854		ol_with_systemd=no
22855	fi
22856fi
22857if test $ol_with_systemd != no ; then
22858	for ac_header in systemd/sd-daemon.h
22859do :
22860  ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
22861if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
22862  cat >>confdefs.h <<_ACEOF
22863#define HAVE_SYSTEMD_SD_DAEMON_H 1
22864_ACEOF
22865
22866fi
22867
22868done
22869
22870
22871	if test $ac_cv_header_systemd_sd_daemon_h = yes; then
22872		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd" >&5
22873$as_echo_n "checking for sd_notify in -lsystemd... " >&6; }
22874if ${ac_cv_lib_systemd_sd_notify+:} false; then :
22875  $as_echo_n "(cached) " >&6
22876else
22877  ac_check_lib_save_LIBS=$LIBS
22878LIBS="-lsystemd  $LIBS"
22879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22880/* end confdefs.h.  */
22881
22882/* Override any GCC internal prototype to avoid an error.
22883   Use char because int might match the return type of a GCC
22884   builtin and then its argument prototype would still apply.  */
22885#ifdef __cplusplus
22886extern "C"
22887#endif
22888char sd_notify ();
22889int
22890main ()
22891{
22892return sd_notify ();
22893  ;
22894  return 0;
22895}
22896_ACEOF
22897if ac_fn_c_try_link "$LINENO"; then :
22898  ac_cv_lib_systemd_sd_notify=yes
22899else
22900  ac_cv_lib_systemd_sd_notify=no
22901fi
22902rm -f core conftest.err conftest.$ac_objext \
22903    conftest$ac_exeext conftest.$ac_ext
22904LIBS=$ac_check_lib_save_LIBS
22905fi
22906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_sd_notify" >&5
22907$as_echo "$ac_cv_lib_systemd_sd_notify" >&6; }
22908if test "x$ac_cv_lib_systemd_sd_notify" = xyes; then :
22909  ol_link_systemd="-lsystemd"
22910fi
22911
22912	fi
22913
22914	if test $ol_link_systemd = no ; then
22915		if test $ol_with_systemd != auto ; then
22916			as_fn_error $? "Could not locate systemd" "$LINENO" 5
22917		else
22918			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate systemd" >&5
22919$as_echo "$as_me: WARNING: Could not locate systemd" >&2;}
22920			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: systemd service notification not supported!" >&5
22921$as_echo "$as_me: WARNING: systemd service notification not supported!" >&2;}
22922		fi
22923	else
22924
22925$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
22926
22927		SYSTEMD_LIBS="$ol_link_systemd"
22928		WITH_SYSTEMD=yes
22929
22930
22931if test -n "$systemdsystemunitdir"; then
22932    pkg_cv_systemdsystemunitdir="$systemdsystemunitdir"
22933 elif test -n "$PKG_CONFIG"; then
22934    if test -n "$PKG_CONFIG" && \
22935    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
22936  ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
22937  ac_status=$?
22938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939  test $ac_status = 0; }; then
22940  pkg_cv_systemdsystemunitdir=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
22941		      test "x$?" != "x0" && pkg_failed=yes
22942else
22943  pkg_failed=yes
22944fi
22945 else
22946    pkg_failed=untried
22947fi
22948systemdsystemunitdir=$pkg_cv_systemdsystemunitdir
22949
22950if test "x$systemdsystemunitdir" = x""; then :
22951
22952fi
22953		if test -z "$systemdsystemunitdir"; then
22954			if test -d /usr/lib/systemd/system; then
22955				systemdsystemunitdir=/usr/lib/systemd/system
22956			else
22957				systemdsystemunitdir=/lib/systemd/system
22958			fi
22959		fi
22960	fi
22961fi
22962
22963
22964if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
22965	dev=no
22966	if test -r /dev/urandom ; then
22967		dev="/dev/urandom";
22968	elif test -r /idev/urandom ; then
22969		dev="/idev/urandom";
22970	elif test -r /dev/srandom ; then
22971		dev="/dev/srandom";
22972	elif test -r /dev/random ; then
22973		dev="/dev/random";
22974	elif test -r /idev/random ; then
22975		dev="/idev/random";
22976	fi
22977
22978	if test $dev != no ; then
22979
22980cat >>confdefs.h <<_ACEOF
22981#define URANDOM_DEVICE "$dev"
22982_ACEOF
22983
22984	fi
22985fi
22986
22987ol_link_fetch=no
22988if test $ol_with_fetch != no ; then
22989	ol_LIBS=$LIBS
22990LIBS="-lfetch -lcom_err $LIBS"
22991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fetch(3) library" >&5
22992$as_echo_n "checking fetch(3) library... " >&6; }
22993if ${ol_cv_lib_fetch+:} false; then :
22994  $as_echo_n "(cached) " >&6
22995else
22996
22997	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22998/* end confdefs.h.  */
22999
23000#ifdef HAVE_SYS_PARAM_H
23001#include <sys/param.h>
23002#endif
23003#include <stdio.h>
23004#include <fetch.h>
23005int
23006main ()
23007{
23008struct url *u = fetchParseURL("file:///");
23009  ;
23010  return 0;
23011}
23012_ACEOF
23013if ac_fn_c_try_link "$LINENO"; then :
23014  ol_cv_lib_fetch=yes
23015else
23016  ol_cv_lib_fetch=no
23017fi
23018rm -f core conftest.err conftest.$ac_objext \
23019    conftest$ac_exeext conftest.$ac_ext
23020fi
23021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_fetch" >&5
23022$as_echo "$ol_cv_lib_fetch" >&6; }
23023LIBS=$ol_LIBS
23024if test $ol_cv_lib_fetch != no ; then
23025	ol_link_fetch="-lfetch -lcom_err"
23026
23027$as_echo "#define HAVE_FETCH 1" >>confdefs.h
23028
23029fi
23030
23031
23032	if test $ol_cv_lib_fetch != no ; then
23033		LIBS="$LIBS $ol_link_fetch"
23034		ol_link_fetch=freebsd
23035
23036	elif test $ol_with_fetch != auto ; then
23037		as_fn_error $? "no suitable API for --with-fetch=$ol_with_fetch" "$LINENO" 5
23038	fi
23039fi
23040
23041if test $ol_enable_crypt != no ; then
23042	save_LIBS="$LIBS"
23043	LIBS="$TLS_LIBS $LIBS"
23044
23045	ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23046if test "x$ac_cv_func_crypt" = xyes; then :
23047  have_crypt=yes
23048else
23049
23050		LIBS="$save_LIBS"
23051		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23052$as_echo_n "checking for crypt in -lcrypt... " >&6; }
23053if ${ac_cv_lib_crypt_crypt+:} false; then :
23054  $as_echo_n "(cached) " >&6
23055else
23056  ac_check_lib_save_LIBS=$LIBS
23057LIBS="-lcrypt  $LIBS"
23058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23059/* end confdefs.h.  */
23060
23061/* Override any GCC internal prototype to avoid an error.
23062   Use char because int might match the return type of a GCC
23063   builtin and then its argument prototype would still apply.  */
23064#ifdef __cplusplus
23065extern "C"
23066#endif
23067char crypt ();
23068int
23069main ()
23070{
23071return crypt ();
23072  ;
23073  return 0;
23074}
23075_ACEOF
23076if ac_fn_c_try_link "$LINENO"; then :
23077  ac_cv_lib_crypt_crypt=yes
23078else
23079  ac_cv_lib_crypt_crypt=no
23080fi
23081rm -f core conftest.err conftest.$ac_objext \
23082    conftest$ac_exeext conftest.$ac_ext
23083LIBS=$ac_check_lib_save_LIBS
23084fi
23085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23086$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23087if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23088  LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
23089			have_crypt=yes
23090else
23091  have_crypt=no
23092fi
23093
23094fi
23095
23096
23097	LIBS="$TLS_LIBS $LIBS"
23098	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt_r in -lcrypt" >&5
23099$as_echo_n "checking for crypt_r in -lcrypt... " >&6; }
23100if ${ac_cv_lib_crypt_crypt_r+:} false; then :
23101  $as_echo_n "(cached) " >&6
23102else
23103  ac_check_lib_save_LIBS=$LIBS
23104LIBS="-lcrypt  $LIBS"
23105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106/* end confdefs.h.  */
23107
23108/* Override any GCC internal prototype to avoid an error.
23109   Use char because int might match the return type of a GCC
23110   builtin and then its argument prototype would still apply.  */
23111#ifdef __cplusplus
23112extern "C"
23113#endif
23114char crypt_r ();
23115int
23116main ()
23117{
23118return crypt_r ();
23119  ;
23120  return 0;
23121}
23122_ACEOF
23123if ac_fn_c_try_link "$LINENO"; then :
23124  ac_cv_lib_crypt_crypt_r=yes
23125else
23126  ac_cv_lib_crypt_crypt_r=no
23127fi
23128rm -f core conftest.err conftest.$ac_objext \
23129    conftest$ac_exeext conftest.$ac_ext
23130LIBS=$ac_check_lib_save_LIBS
23131fi
23132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt_r" >&5
23133$as_echo "$ac_cv_lib_crypt_crypt_r" >&6; }
23134if test "x$ac_cv_lib_crypt_crypt_r" = xyes; then :
23135  have_crypt_r=yes
23136else
23137  have_crypt_r=no
23138fi
23139
23140
23141	LIBS="$save_LIBS"
23142
23143	if test $have_crypt = yes ; then
23144
23145$as_echo "#define HAVE_CRYPT 1" >>confdefs.h
23146
23147		if test $have_crypt_r = yes ; then
23148
23149$as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
23150
23151		fi
23152	else
23153		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find crypt" >&5
23154$as_echo "$as_me: WARNING: could not find crypt" >&2;}
23155		if test $ol_enable_crypt = yes ; then
23156			as_fn_error $? "could not find crypt, select appropriate options or disable" "$LINENO" 5
23157		fi
23158
23159		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling crypt support" >&5
23160$as_echo "$as_me: WARNING: disabling crypt support" >&2;}
23161		ol_enable_crypt=no
23162	fi
23163fi
23164
23165if test $ol_enable_slp != no ; then
23166	for ac_header in slp.h
23167do :
23168  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23169ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23170if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23171  cat >>confdefs.h <<_ACEOF
23172#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23173_ACEOF
23174
23175fi
23176
23177done
23178
23179
23180	if test $ac_cv_header_slp_h = yes ; then
23181		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
23182$as_echo_n "checking for SLPOpen in -lslp... " >&6; }
23183if ${ac_cv_lib_slp_SLPOpen+:} false; then :
23184  $as_echo_n "(cached) " >&6
23185else
23186  ac_check_lib_save_LIBS=$LIBS
23187LIBS="-lslp  $LIBS"
23188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23189/* end confdefs.h.  */
23190
23191/* Override any GCC internal prototype to avoid an error.
23192   Use char because int might match the return type of a GCC
23193   builtin and then its argument prototype would still apply.  */
23194#ifdef __cplusplus
23195extern "C"
23196#endif
23197char SLPOpen ();
23198int
23199main ()
23200{
23201return SLPOpen ();
23202  ;
23203  return 0;
23204}
23205_ACEOF
23206if ac_fn_c_try_link "$LINENO"; then :
23207  ac_cv_lib_slp_SLPOpen=yes
23208else
23209  ac_cv_lib_slp_SLPOpen=no
23210fi
23211rm -f core conftest.err conftest.$ac_objext \
23212    conftest$ac_exeext conftest.$ac_ext
23213LIBS=$ac_check_lib_save_LIBS
23214fi
23215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
23216$as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
23217if test "x$ac_cv_lib_slp_SLPOpen" = xyes; then :
23218  have_slp=yes
23219else
23220  have_slp=no
23221fi
23222
23223		if test $have_slp = yes ; then
23224
23225$as_echo "#define HAVE_SLP 1" >>confdefs.h
23226
23227			SLAPD_SLP_LIBS=-lslp
23228		fi
23229
23230	elif test $ol_enable_slp = yes ; then
23231		as_fn_error $? "SLP not found" "$LINENO" 5
23232	fi
23233fi
23234
23235if test $ol_enable_balancer != no ; then
23236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for evdns_base_new in -levent_extra" >&5
23237$as_echo_n "checking for evdns_base_new in -levent_extra... " >&6; }
23238if ${ac_cv_lib_event_extra_evdns_base_new+:} false; then :
23239  $as_echo_n "(cached) " >&6
23240else
23241  ac_check_lib_save_LIBS=$LIBS
23242LIBS="-levent_extra  $LIBS"
23243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23244/* end confdefs.h.  */
23245
23246/* Override any GCC internal prototype to avoid an error.
23247   Use char because int might match the return type of a GCC
23248   builtin and then its argument prototype would still apply.  */
23249#ifdef __cplusplus
23250extern "C"
23251#endif
23252char evdns_base_new ();
23253int
23254main ()
23255{
23256return evdns_base_new ();
23257  ;
23258  return 0;
23259}
23260_ACEOF
23261if ac_fn_c_try_link "$LINENO"; then :
23262  ac_cv_lib_event_extra_evdns_base_new=yes
23263else
23264  ac_cv_lib_event_extra_evdns_base_new=no
23265fi
23266rm -f core conftest.err conftest.$ac_objext \
23267    conftest$ac_exeext conftest.$ac_ext
23268LIBS=$ac_check_lib_save_LIBS
23269fi
23270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_extra_evdns_base_new" >&5
23271$as_echo "$ac_cv_lib_event_extra_evdns_base_new" >&6; }
23272if test "x$ac_cv_lib_event_extra_evdns_base_new" = xyes; then :
23273  have_libevent=yes
23274		LEVENT_LIBS="$LEVENT_LIBS -levent_core -levent_extra"
23275else
23276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evdns_base_new in -levent" >&5
23277$as_echo_n "checking for evdns_base_new in -levent... " >&6; }
23278if ${ac_cv_lib_event_evdns_base_new+:} false; then :
23279  $as_echo_n "(cached) " >&6
23280else
23281  ac_check_lib_save_LIBS=$LIBS
23282LIBS="-levent  $LIBS"
23283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23284/* end confdefs.h.  */
23285
23286/* Override any GCC internal prototype to avoid an error.
23287   Use char because int might match the return type of a GCC
23288   builtin and then its argument prototype would still apply.  */
23289#ifdef __cplusplus
23290extern "C"
23291#endif
23292char evdns_base_new ();
23293int
23294main ()
23295{
23296return evdns_base_new ();
23297  ;
23298  return 0;
23299}
23300_ACEOF
23301if ac_fn_c_try_link "$LINENO"; then :
23302  ac_cv_lib_event_evdns_base_new=yes
23303else
23304  ac_cv_lib_event_evdns_base_new=no
23305fi
23306rm -f core conftest.err conftest.$ac_objext \
23307    conftest$ac_exeext conftest.$ac_ext
23308LIBS=$ac_check_lib_save_LIBS
23309fi
23310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_evdns_base_new" >&5
23311$as_echo "$ac_cv_lib_event_evdns_base_new" >&6; }
23312if test "x$ac_cv_lib_event_evdns_base_new" = xyes; then :
23313  have_libevent=yes
23314			LEVENT_LIBS="$LEVENT_LIBS -levent"
23315else
23316  have_libevent=no
23317fi
23318
23319fi
23320
23321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent_global_shutdown in -levent" >&5
23322$as_echo_n "checking for libevent_global_shutdown in -levent... " >&6; }
23323if ${ac_cv_lib_event_libevent_global_shutdown+:} false; then :
23324  $as_echo_n "(cached) " >&6
23325else
23326  ac_check_lib_save_LIBS=$LIBS
23327LIBS="-levent  $LIBS"
23328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23329/* end confdefs.h.  */
23330
23331/* Override any GCC internal prototype to avoid an error.
23332   Use char because int might match the return type of a GCC
23333   builtin and then its argument prototype would still apply.  */
23334#ifdef __cplusplus
23335extern "C"
23336#endif
23337char libevent_global_shutdown ();
23338int
23339main ()
23340{
23341return libevent_global_shutdown ();
23342  ;
23343  return 0;
23344}
23345_ACEOF
23346if ac_fn_c_try_link "$LINENO"; then :
23347  ac_cv_lib_event_libevent_global_shutdown=yes
23348else
23349  ac_cv_lib_event_libevent_global_shutdown=no
23350fi
23351rm -f core conftest.err conftest.$ac_objext \
23352    conftest$ac_exeext conftest.$ac_ext
23353LIBS=$ac_check_lib_save_LIBS
23354fi
23355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_libevent_global_shutdown" >&5
23356$as_echo "$ac_cv_lib_event_libevent_global_shutdown" >&6; }
23357if test "x$ac_cv_lib_event_libevent_global_shutdown" = xyes; then :
23358  cat >>confdefs.h <<_ACEOF
23359#define HAVE_LIBEVENT 1
23360_ACEOF
23361
23362  LIBS="-levent $LIBS"
23363
23364else
23365  have_libevent=no
23366fi
23367
23368
23369	if test $have_libevent = yes ; then
23370
23371$as_echo "#define HAVE_LIBEVENT 1" >>confdefs.h
23372
23373	else
23374		as_fn_error $? "You need libevent 2.1 or later with DNS support to build the load balancer" "$LINENO" 5
23375	fi
23376fi
23377
23378
23379ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23380if test "x$ac_cv_type_mode_t" = xyes; then :
23381
23382else
23383
23384cat >>confdefs.h <<_ACEOF
23385#define mode_t int
23386_ACEOF
23387
23388fi
23389
23390ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23391if test "x$ac_cv_type_off_t" = xyes; then :
23392
23393else
23394
23395cat >>confdefs.h <<_ACEOF
23396#define off_t long
23397_ACEOF
23398
23399fi
23400
23401ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23402if test "x$ac_cv_type_pid_t" = xyes; then :
23403
23404else
23405
23406cat >>confdefs.h <<_ACEOF
23407#define pid_t int
23408_ACEOF
23409
23410fi
23411
23412ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23413if test "x$ac_cv_type_ssize_t" = xyes; then :
23414
23415else
23416
23417cat >>confdefs.h <<_ACEOF
23418#define ssize_t signed int
23419_ACEOF
23420
23421fi
23422
23423ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
23424if test "x$ac_cv_type_caddr_t" = xyes; then :
23425
23426else
23427
23428cat >>confdefs.h <<_ACEOF
23429#define caddr_t char *
23430_ACEOF
23431
23432fi
23433
23434ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23435if test "x$ac_cv_type_size_t" = xyes; then :
23436
23437else
23438
23439cat >>confdefs.h <<_ACEOF
23440#define size_t unsigned
23441_ACEOF
23442
23443fi
23444
23445
23446ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
23447if test "x$ac_cv_type_long_long" = xyes; then :
23448
23449cat >>confdefs.h <<_ACEOF
23450#define HAVE_LONG_LONG 1
23451_ACEOF
23452
23453
23454fi
23455
23456ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23457if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23458
23459cat >>confdefs.h <<_ACEOF
23460#define HAVE_PTRDIFF_T 1
23461_ACEOF
23462
23463
23464fi
23465
23466
23467
23468ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
23469#ifdef HAVE_SYS_SOCKET_H
23470#include <sys/socket.h>
23471#endif
23472#ifdef HAVE_WINSOCK2
23473#include <ws2tcpip.h>
23474#endif
23475"
23476if test "x$ac_cv_type_socklen_t" = xyes; then :
23477
23478fi
23479
23480
23481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the type of arg 3 to accept()" >&5
23482$as_echo_n "checking the type of arg 3 to accept()... " >&6; }
23483if ${ol_cv_type_ber_socklen_t+:} false; then :
23484  $as_echo_n "(cached) " >&6
23485else
23486
23487	set socklen_t int unsigned "unsigned long" long size_t
23488	test "$ac_cv_type_socklen_t" = yes || shift
23489	ol_cv_type_ber_socklen_t=$1 guessing="guessing "
23490	for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
23491		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23492/* end confdefs.h.  */
23493$ac_includes_default
23494#ifdef HAVE_SYS_SOCKET_H
23495#include <sys/socket.h>
23496#endif
23497extern int accept(int s, $addrtype *ap, $lentype *lp);
23498
23499int
23500main ()
23501{
23502
23503accept(0, (struct sockaddr *) 0, ($lentype *) 0);
23504
23505  ;
23506  return 0;
23507}
23508_ACEOF
23509if ac_fn_c_try_compile "$LINENO"; then :
23510  ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
23511fi
23512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23513	done ; done
23514fi
23515
23516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
23517$as_echo "$guessing$ol_cv_type_ber_socklen_t *" >&6; }
23518
23519cat >>confdefs.h <<_ACEOF
23520#define ber_socklen_t $ol_cv_type_ber_socklen_t
23521_ACEOF
23522
23523
23524if test "$ac_cv_type_socklen_t" != yes; then
23525
23526cat >>confdefs.h <<_ACEOF
23527#define socklen_t $ol_cv_type_ber_socklen_t
23528_ACEOF
23529
23530fi
23531
23532
23533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
23534$as_echo_n "checking return type of signal handlers... " >&6; }
23535if ${ac_cv_type_signal+:} false; then :
23536  $as_echo_n "(cached) " >&6
23537else
23538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23539/* end confdefs.h.  */
23540#include <sys/types.h>
23541#include <signal.h>
23542
23543int
23544main ()
23545{
23546return *(signal (0, 0)) (0) == 1;
23547  ;
23548  return 0;
23549}
23550_ACEOF
23551if ac_fn_c_try_compile "$LINENO"; then :
23552  ac_cv_type_signal=int
23553else
23554  ac_cv_type_signal=void
23555fi
23556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557fi
23558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
23559$as_echo "$ac_cv_type_signal" >&6; }
23560
23561cat >>confdefs.h <<_ACEOF
23562#define RETSIGTYPE $ac_cv_type_signal
23563_ACEOF
23564
23565
23566
23567ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default
23568#include <signal.h>
23569
23570"
23571if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
23572
23573else
23574
23575cat >>confdefs.h <<_ACEOF
23576#define sig_atomic_t int
23577_ACEOF
23578
23579fi
23580
23581
23582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23583$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23584if ${ac_cv_type_uid_t+:} false; then :
23585  $as_echo_n "(cached) " >&6
23586else
23587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23588/* end confdefs.h.  */
23589#include <sys/types.h>
23590
23591_ACEOF
23592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23593  $EGREP "uid_t" >/dev/null 2>&1; then :
23594  ac_cv_type_uid_t=yes
23595else
23596  ac_cv_type_uid_t=no
23597fi
23598rm -f conftest*
23599
23600fi
23601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23602$as_echo "$ac_cv_type_uid_t" >&6; }
23603if test $ac_cv_type_uid_t = no; then
23604
23605$as_echo "#define uid_t int" >>confdefs.h
23606
23607
23608$as_echo "#define gid_t int" >>confdefs.h
23609
23610fi
23611
23612
23613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23614$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23615if ${ac_cv_header_time+:} false; then :
23616  $as_echo_n "(cached) " >&6
23617else
23618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23619/* end confdefs.h.  */
23620#include <sys/types.h>
23621#include <sys/time.h>
23622#include <time.h>
23623
23624int
23625main ()
23626{
23627if ((struct tm *) 0)
23628return 0;
23629  ;
23630  return 0;
23631}
23632_ACEOF
23633if ac_fn_c_try_compile "$LINENO"; then :
23634  ac_cv_header_time=yes
23635else
23636  ac_cv_header_time=no
23637fi
23638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23639fi
23640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23641$as_echo "$ac_cv_header_time" >&6; }
23642if test $ac_cv_header_time = yes; then
23643
23644$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23645
23646fi
23647
23648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
23649$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23650if ${ac_cv_struct_tm+:} false; then :
23651  $as_echo_n "(cached) " >&6
23652else
23653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23654/* end confdefs.h.  */
23655#include <sys/types.h>
23656#include <time.h>
23657
23658int
23659main ()
23660{
23661struct tm tm;
23662				     int *p = &tm.tm_sec;
23663				     return !p;
23664  ;
23665  return 0;
23666}
23667_ACEOF
23668if ac_fn_c_try_compile "$LINENO"; then :
23669  ac_cv_struct_tm=time.h
23670else
23671  ac_cv_struct_tm=sys/time.h
23672fi
23673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23674fi
23675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
23676$as_echo "$ac_cv_struct_tm" >&6; }
23677if test $ac_cv_struct_tm = sys/time.h; then
23678
23679$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
23680
23681fi
23682
23683ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
23684if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
23685
23686cat >>confdefs.h <<_ACEOF
23687#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23688_ACEOF
23689
23690
23691fi
23692
23693ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "$ac_includes_default
23694#include <pwd.h>
23695"
23696if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
23697
23698cat >>confdefs.h <<_ACEOF
23699#define HAVE_STRUCT_PASSWD_PW_GECOS 1
23700_ACEOF
23701
23702
23703fi
23704
23705ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "$ac_includes_default
23706#include <pwd.h>
23707"
23708if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then :
23709
23710cat >>confdefs.h <<_ACEOF
23711#define HAVE_STRUCT_PASSWD_PW_PASSWD 1
23712_ACEOF
23713
23714
23715fi
23716
23717
23718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if toupper() requires islower()" >&5
23719$as_echo_n "checking if toupper() requires islower()... " >&6; }
23720if ${ol_cv_c_upper_lower+:} false; then :
23721  $as_echo_n "(cached) " >&6
23722else
23723
23724	if test "$cross_compiling" = yes; then :
23725  ol_cv_c_upper_lower=safe
23726else
23727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728/* end confdefs.h.  */
23729
23730#include <ctype.h>
23731main()
23732{
23733	if ('C' == toupper('C'))
23734		exit(0);
23735	else
23736		exit(1);
23737}
23738_ACEOF
23739if ac_fn_c_try_run "$LINENO"; then :
23740  ol_cv_c_upper_lower=no
23741else
23742  ol_cv_c_upper_lower=yes
23743fi
23744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23745  conftest.$ac_objext conftest.beam conftest.$ac_ext
23746fi
23747
23748fi
23749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_upper_lower" >&5
23750$as_echo "$ol_cv_c_upper_lower" >&6; }
23751if test $ol_cv_c_upper_lower != no ; then
23752
23753$as_echo "#define C_UPPER_LOWER 1" >>confdefs.h
23754
23755fi
23756
23757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23758$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23759if ${ac_cv_c_const+:} false; then :
23760  $as_echo_n "(cached) " >&6
23761else
23762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23763/* end confdefs.h.  */
23764
23765int
23766main ()
23767{
23768
23769#ifndef __cplusplus
23770  /* Ultrix mips cc rejects this sort of thing.  */
23771  typedef int charset[2];
23772  const charset cs = { 0, 0 };
23773  /* SunOS 4.1.1 cc rejects this.  */
23774  char const *const *pcpcc;
23775  char **ppc;
23776  /* NEC SVR4.0.2 mips cc rejects this.  */
23777  struct point {int x, y;};
23778  static struct point const zero = {0,0};
23779  /* AIX XL C 1.02.0.0 rejects this.
23780     It does not let you subtract one const X* pointer from another in
23781     an arm of an if-expression whose if-part is not a constant
23782     expression */
23783  const char *g = "string";
23784  pcpcc = &g + (g ? g-g : 0);
23785  /* HPUX 7.0 cc rejects these. */
23786  ++pcpcc;
23787  ppc = (char**) pcpcc;
23788  pcpcc = (char const *const *) ppc;
23789  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23790    char tx;
23791    char *t = &tx;
23792    char const *s = 0 ? (char *) 0 : (char const *) 0;
23793
23794    *t++ = 0;
23795    if (s) return 0;
23796  }
23797  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23798    int x[] = {25, 17};
23799    const int *foo = &x[0];
23800    ++foo;
23801  }
23802  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23803    typedef const int *iptr;
23804    iptr p = 0;
23805    ++p;
23806  }
23807  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23808       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23809    struct s { int j; const int *ap[3]; } bx;
23810    struct s *b = &bx; b->j = 5;
23811  }
23812  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23813    const int foo = 10;
23814    if (!foo) return 0;
23815  }
23816  return !cs[0] && !zero.x;
23817#endif
23818
23819  ;
23820  return 0;
23821}
23822_ACEOF
23823if ac_fn_c_try_compile "$LINENO"; then :
23824  ac_cv_c_const=yes
23825else
23826  ac_cv_c_const=no
23827fi
23828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23829fi
23830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23831$as_echo "$ac_cv_c_const" >&6; }
23832if test $ac_cv_c_const = no; then
23833
23834$as_echo "#define const /**/" >>confdefs.h
23835
23836fi
23837
23838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler understands volatile" >&5
23839$as_echo_n "checking if compiler understands volatile... " >&6; }
23840if ${ol_cv_c_volatile+:} false; then :
23841  $as_echo_n "(cached) " >&6
23842else
23843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23844/* end confdefs.h.  */
23845int x, y, z;
23846int
23847main ()
23848{
23849volatile int a; int * volatile b = x ? &y : &z;
23850      /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
23851      *b = 0;
23852  ;
23853  return 0;
23854}
23855_ACEOF
23856if ac_fn_c_try_compile "$LINENO"; then :
23857  ol_cv_c_volatile=yes
23858else
23859  ol_cv_c_volatile=no
23860fi
23861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23862fi
23863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_volatile" >&5
23864$as_echo "$ol_cv_c_volatile" >&6; }
23865  if test $ol_cv_c_volatile = yes; then
23866    :
23867  else
23868
23869$as_echo "#define volatile /**/" >>confdefs.h
23870
23871  fi
23872
23873
23874if test $cross_compiling = yes ; then
23875	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Crossing compiling... all bets are off!" >&5
23876$as_echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
23877
23878$as_echo "#define CROSS_COMPILING 1" >>confdefs.h
23879
23880else
23881	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23882$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23883if ${ac_cv_c_bigendian+:} false; then :
23884  $as_echo_n "(cached) " >&6
23885else
23886  ac_cv_c_bigendian=unknown
23887    # See if we're dealing with a universal compiler.
23888    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23889/* end confdefs.h.  */
23890#ifndef __APPLE_CC__
23891	       not a universal capable compiler
23892	     #endif
23893	     typedef int dummy;
23894
23895_ACEOF
23896if ac_fn_c_try_compile "$LINENO"; then :
23897
23898	# Check for potential -arch flags.  It is not universal unless
23899	# there are at least two -arch flags with different values.
23900	ac_arch=
23901	ac_prev=
23902	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23903	 if test -n "$ac_prev"; then
23904	   case $ac_word in
23905	     i?86 | x86_64 | ppc | ppc64)
23906	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23907		 ac_arch=$ac_word
23908	       else
23909		 ac_cv_c_bigendian=universal
23910		 break
23911	       fi
23912	       ;;
23913	   esac
23914	   ac_prev=
23915	 elif test "x$ac_word" = "x-arch"; then
23916	   ac_prev=arch
23917	 fi
23918       done
23919fi
23920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921    if test $ac_cv_c_bigendian = unknown; then
23922      # See if sys/param.h defines the BYTE_ORDER macro.
23923      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924/* end confdefs.h.  */
23925#include <sys/types.h>
23926	     #include <sys/param.h>
23927
23928int
23929main ()
23930{
23931#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23932		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23933		     && LITTLE_ENDIAN)
23934	      bogus endian macros
23935	     #endif
23936
23937  ;
23938  return 0;
23939}
23940_ACEOF
23941if ac_fn_c_try_compile "$LINENO"; then :
23942  # It does; now see whether it defined to BIG_ENDIAN or not.
23943	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23944/* end confdefs.h.  */
23945#include <sys/types.h>
23946		#include <sys/param.h>
23947
23948int
23949main ()
23950{
23951#if BYTE_ORDER != BIG_ENDIAN
23952		 not big endian
23953		#endif
23954
23955  ;
23956  return 0;
23957}
23958_ACEOF
23959if ac_fn_c_try_compile "$LINENO"; then :
23960  ac_cv_c_bigendian=yes
23961else
23962  ac_cv_c_bigendian=no
23963fi
23964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23965fi
23966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23967    fi
23968    if test $ac_cv_c_bigendian = unknown; then
23969      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23970      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23971/* end confdefs.h.  */
23972#include <limits.h>
23973
23974int
23975main ()
23976{
23977#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23978	      bogus endian macros
23979	     #endif
23980
23981  ;
23982  return 0;
23983}
23984_ACEOF
23985if ac_fn_c_try_compile "$LINENO"; then :
23986  # It does; now see whether it defined to _BIG_ENDIAN or not.
23987	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23988/* end confdefs.h.  */
23989#include <limits.h>
23990
23991int
23992main ()
23993{
23994#ifndef _BIG_ENDIAN
23995		 not big endian
23996		#endif
23997
23998  ;
23999  return 0;
24000}
24001_ACEOF
24002if ac_fn_c_try_compile "$LINENO"; then :
24003  ac_cv_c_bigendian=yes
24004else
24005  ac_cv_c_bigendian=no
24006fi
24007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24008fi
24009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24010    fi
24011    if test $ac_cv_c_bigendian = unknown; then
24012      # Compile a test program.
24013      if test "$cross_compiling" = yes; then :
24014  # Try to guess by grepping values from an object file.
24015	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24016/* end confdefs.h.  */
24017short int ascii_mm[] =
24018		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24019		short int ascii_ii[] =
24020		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24021		int use_ascii (int i) {
24022		  return ascii_mm[i] + ascii_ii[i];
24023		}
24024		short int ebcdic_ii[] =
24025		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24026		short int ebcdic_mm[] =
24027		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24028		int use_ebcdic (int i) {
24029		  return ebcdic_mm[i] + ebcdic_ii[i];
24030		}
24031		extern int foo;
24032
24033int
24034main ()
24035{
24036return use_ascii (foo) == use_ebcdic (foo);
24037  ;
24038  return 0;
24039}
24040_ACEOF
24041if ac_fn_c_try_compile "$LINENO"; then :
24042  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24043	      ac_cv_c_bigendian=yes
24044	    fi
24045	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24046	      if test "$ac_cv_c_bigendian" = unknown; then
24047		ac_cv_c_bigendian=no
24048	      else
24049		# finding both strings is unlikely to happen, but who knows?
24050		ac_cv_c_bigendian=unknown
24051	      fi
24052	    fi
24053fi
24054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24055else
24056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24057/* end confdefs.h.  */
24058$ac_includes_default
24059int
24060main ()
24061{
24062
24063	     /* Are we little or big endian?  From Harbison&Steele.  */
24064	     union
24065	     {
24066	       long int l;
24067	       char c[sizeof (long int)];
24068	     } u;
24069	     u.l = 1;
24070	     return u.c[sizeof (long int) - 1] == 1;
24071
24072  ;
24073  return 0;
24074}
24075_ACEOF
24076if ac_fn_c_try_run "$LINENO"; then :
24077  ac_cv_c_bigendian=no
24078else
24079  ac_cv_c_bigendian=yes
24080fi
24081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24082  conftest.$ac_objext conftest.beam conftest.$ac_ext
24083fi
24084
24085    fi
24086fi
24087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24088$as_echo "$ac_cv_c_bigendian" >&6; }
24089 case $ac_cv_c_bigendian in #(
24090   yes)
24091     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24092;; #(
24093   no)
24094      ;; #(
24095   universal)
24096
24097$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24098
24099     ;; #(
24100   *)
24101     as_fn_error $? "unknown endianness
24102 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24103 esac
24104
24105fi
24106
24107# The cast to long int works around a bug in the HP C Compiler
24108# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24109# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24110# This bug is HP SR number 8606223364.
24111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
24112$as_echo_n "checking size of short... " >&6; }
24113if ${ac_cv_sizeof_short+:} false; then :
24114  $as_echo_n "(cached) " >&6
24115else
24116  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
24117
24118else
24119  if test "$ac_cv_type_short" = yes; then
24120     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24122as_fn_error 77 "cannot compute sizeof (short)
24123See \`config.log' for more details" "$LINENO" 5; }
24124   else
24125     ac_cv_sizeof_short=0
24126   fi
24127fi
24128
24129fi
24130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
24131$as_echo "$ac_cv_sizeof_short" >&6; }
24132
24133
24134
24135cat >>confdefs.h <<_ACEOF
24136#define SIZEOF_SHORT $ac_cv_sizeof_short
24137_ACEOF
24138
24139
24140# The cast to long int works around a bug in the HP C Compiler
24141# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24142# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24143# This bug is HP SR number 8606223364.
24144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
24145$as_echo_n "checking size of int... " >&6; }
24146if ${ac_cv_sizeof_int+:} false; then :
24147  $as_echo_n "(cached) " >&6
24148else
24149  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
24150
24151else
24152  if test "$ac_cv_type_int" = yes; then
24153     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24155as_fn_error 77 "cannot compute sizeof (int)
24156See \`config.log' for more details" "$LINENO" 5; }
24157   else
24158     ac_cv_sizeof_int=0
24159   fi
24160fi
24161
24162fi
24163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
24164$as_echo "$ac_cv_sizeof_int" >&6; }
24165
24166
24167
24168cat >>confdefs.h <<_ACEOF
24169#define SIZEOF_INT $ac_cv_sizeof_int
24170_ACEOF
24171
24172
24173# The cast to long int works around a bug in the HP C Compiler
24174# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24175# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24176# This bug is HP SR number 8606223364.
24177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
24178$as_echo_n "checking size of long... " >&6; }
24179if ${ac_cv_sizeof_long+:} false; then :
24180  $as_echo_n "(cached) " >&6
24181else
24182  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
24183
24184else
24185  if test "$ac_cv_type_long" = yes; then
24186     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24188as_fn_error 77 "cannot compute sizeof (long)
24189See \`config.log' for more details" "$LINENO" 5; }
24190   else
24191     ac_cv_sizeof_long=0
24192   fi
24193fi
24194
24195fi
24196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
24197$as_echo "$ac_cv_sizeof_long" >&6; }
24198
24199
24200
24201cat >>confdefs.h <<_ACEOF
24202#define SIZEOF_LONG $ac_cv_sizeof_long
24203_ACEOF
24204
24205
24206# The cast to long int works around a bug in the HP C Compiler
24207# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24208# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24209# This bug is HP SR number 8606223364.
24210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24211$as_echo_n "checking size of long long... " >&6; }
24212if ${ac_cv_sizeof_long_long+:} false; then :
24213  $as_echo_n "(cached) " >&6
24214else
24215  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
24216
24217else
24218  if test "$ac_cv_type_long_long" = yes; then
24219     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24221as_fn_error 77 "cannot compute sizeof (long long)
24222See \`config.log' for more details" "$LINENO" 5; }
24223   else
24224     ac_cv_sizeof_long_long=0
24225   fi
24226fi
24227
24228fi
24229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24230$as_echo "$ac_cv_sizeof_long_long" >&6; }
24231
24232
24233
24234cat >>confdefs.h <<_ACEOF
24235#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24236_ACEOF
24237
24238
24239# The cast to long int works around a bug in the HP C Compiler
24240# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24241# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24242# This bug is HP SR number 8606223364.
24243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
24244$as_echo_n "checking size of wchar_t... " >&6; }
24245if ${ac_cv_sizeof_wchar_t+:} false; then :
24246  $as_echo_n "(cached) " >&6
24247else
24248  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
24249
24250else
24251  if test "$ac_cv_type_wchar_t" = yes; then
24252     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24254as_fn_error 77 "cannot compute sizeof (wchar_t)
24255See \`config.log' for more details" "$LINENO" 5; }
24256   else
24257     ac_cv_sizeof_wchar_t=0
24258   fi
24259fi
24260
24261fi
24262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
24263$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
24264
24265
24266
24267cat >>confdefs.h <<_ACEOF
24268#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24269_ACEOF
24270
24271
24272
24273if test "$ac_cv_sizeof_int" -lt 4 ; then
24274	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
24275$as_echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
24276
24277
24278$as_echo "#define LBER_INT_T long" >>confdefs.h
24279
24280else
24281
24282$as_echo "#define LBER_INT_T int" >>confdefs.h
24283
24284fi
24285
24286
24287$as_echo "#define LBER_LEN_T long" >>confdefs.h
24288
24289
24290$as_echo "#define LBER_SOCKET_T int" >>confdefs.h
24291
24292
24293$as_echo "#define LBER_TAG_T long" >>confdefs.h
24294
24295
24296if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
24297	if test $ac_cv_sizeof_long_long -gt 4 ; then
24298		ol_with_mp=longlong
24299
24300$as_echo "#define USE_MP_LONG_LONG 1" >>confdefs.h
24301
24302	elif test $ol_with_mp = longlong ; then
24303		as_fn_error $? "long long unusable for multiple precision" "$LINENO" 5
24304	fi
24305fi
24306if test $ol_with_mp = long || test $ol_with_mp = auto ; then
24307	if test $ac_cv_sizeof_long -gt 4 ; then
24308		ol_with_mp=long
24309
24310$as_echo "#define USE_MP_LONG 1" >>confdefs.h
24311
24312	elif test $ol_with_mp = long ; then
24313		as_fn_error $? "long unusable for multiple precision" "$LINENO" 5
24314	fi
24315fi
24316if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
24317	for ac_header in openssl/bn.h
24318do :
24319  ac_fn_c_check_header_mongrel "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default"
24320if test "x$ac_cv_header_openssl_bn_h" = xyes; then :
24321  cat >>confdefs.h <<_ACEOF
24322#define HAVE_OPENSSL_BN_H 1
24323_ACEOF
24324
24325fi
24326
24327done
24328
24329	for ac_header in openssl/crypto.h
24330do :
24331  ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
24332if test "x$ac_cv_header_openssl_crypto_h" = xyes; then :
24333  cat >>confdefs.h <<_ACEOF
24334#define HAVE_OPENSSL_CRYPTO_H 1
24335_ACEOF
24336
24337fi
24338
24339done
24340
24341	if test "$ac_cv_header_openssl_bn_h" = "yes" &&
24342		test "$ac_cv_header_openssl_crypto_h" = "yes" &&
24343		test "$ol_with_tls" = "found" ; then
24344		ol_with_mp=bignum
24345
24346$as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
24347
24348	elif test $ol_with_mp = bignum ; then
24349		as_fn_error $? "bignum not available" "$LINENO" 5
24350	fi
24351fi
24352if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
24353	for ac_header in gmp.h
24354do :
24355  ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
24356if test "x$ac_cv_header_gmp_h" = xyes; then :
24357  cat >>confdefs.h <<_ACEOF
24358#define HAVE_GMP_H 1
24359_ACEOF
24360
24361fi
24362
24363done
24364
24365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_add_ui in -lgmp" >&5
24366$as_echo_n "checking for __gmpz_add_ui in -lgmp... " >&6; }
24367if ${ac_cv_lib_gmp___gmpz_add_ui+:} false; then :
24368  $as_echo_n "(cached) " >&6
24369else
24370  ac_check_lib_save_LIBS=$LIBS
24371LIBS="-lgmp  $LIBS"
24372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24373/* end confdefs.h.  */
24374
24375/* Override any GCC internal prototype to avoid an error.
24376   Use char because int might match the return type of a GCC
24377   builtin and then its argument prototype would still apply.  */
24378#ifdef __cplusplus
24379extern "C"
24380#endif
24381char __gmpz_add_ui ();
24382int
24383main ()
24384{
24385return __gmpz_add_ui ();
24386  ;
24387  return 0;
24388}
24389_ACEOF
24390if ac_fn_c_try_link "$LINENO"; then :
24391  ac_cv_lib_gmp___gmpz_add_ui=yes
24392else
24393  ac_cv_lib_gmp___gmpz_add_ui=no
24394fi
24395rm -f core conftest.err conftest.$ac_objext \
24396    conftest$ac_exeext conftest.$ac_ext
24397LIBS=$ac_check_lib_save_LIBS
24398fi
24399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
24400$as_echo "$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
24401if test "x$ac_cv_lib_gmp___gmpz_add_ui" = xyes; then :
24402  cat >>confdefs.h <<_ACEOF
24403#define HAVE_LIBGMP 1
24404_ACEOF
24405
24406  LIBS="-lgmp $LIBS"
24407
24408fi
24409
24410	if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
24411
24412$as_echo "#define USE_MP_GMP 1" >>confdefs.h
24413
24414		ol_with_mp=gmp
24415	elif test $ol_with_mp = gmp ; then
24416		as_fn_error $? "gmp not available" "$LINENO" 5
24417	fi
24418fi
24419if test $ol_with_mp = auto ; then
24420	ol_with_mp=no
24421fi
24422
24423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24424$as_echo_n "checking for working memcmp... " >&6; }
24425if ${ac_cv_func_memcmp_working+:} false; then :
24426  $as_echo_n "(cached) " >&6
24427else
24428  if test "$cross_compiling" = yes; then :
24429  ac_cv_func_memcmp_working=no
24430else
24431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24432/* end confdefs.h.  */
24433$ac_includes_default
24434int
24435main ()
24436{
24437
24438  /* Some versions of memcmp are not 8-bit clean.  */
24439  char c0 = '\100', c1 = '\200', c2 = '\201';
24440  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24441    return 1;
24442
24443  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24444     or more and with at least one buffer not starting on a 4-byte boundary.
24445     William Lewis provided this test program.   */
24446  {
24447    char foo[21];
24448    char bar[21];
24449    int i;
24450    for (i = 0; i < 4; i++)
24451      {
24452	char *a = foo + i;
24453	char *b = bar + i;
24454	strcpy (a, "--------01111111");
24455	strcpy (b, "--------10000000");
24456	if (memcmp (a, b, 16) >= 0)
24457	  return 1;
24458      }
24459    return 0;
24460  }
24461
24462  ;
24463  return 0;
24464}
24465_ACEOF
24466if ac_fn_c_try_run "$LINENO"; then :
24467  ac_cv_func_memcmp_working=yes
24468else
24469  ac_cv_func_memcmp_working=no
24470fi
24471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24472  conftest.$ac_objext conftest.beam conftest.$ac_ext
24473fi
24474
24475fi
24476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
24477$as_echo "$ac_cv_func_memcmp_working" >&6; }
24478test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24479  *" memcmp.$ac_objext "* ) ;;
24480  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24481 ;;
24482esac
24483
24484
24485
24486if test $ac_cv_func_memcmp_working = no ; then
24487
24488$as_echo "#define NEED_MEMCMP_REPLACEMENT 1" >>confdefs.h
24489
24490fi
24491
24492for ac_func in strftime
24493do :
24494  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
24495if test "x$ac_cv_func_strftime" = xyes; then :
24496  cat >>confdefs.h <<_ACEOF
24497#define HAVE_STRFTIME 1
24498_ACEOF
24499
24500else
24501  # strftime is in -lintl on SCO UNIX.
24502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
24503$as_echo_n "checking for strftime in -lintl... " >&6; }
24504if ${ac_cv_lib_intl_strftime+:} false; then :
24505  $as_echo_n "(cached) " >&6
24506else
24507  ac_check_lib_save_LIBS=$LIBS
24508LIBS="-lintl  $LIBS"
24509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24510/* end confdefs.h.  */
24511
24512/* Override any GCC internal prototype to avoid an error.
24513   Use char because int might match the return type of a GCC
24514   builtin and then its argument prototype would still apply.  */
24515#ifdef __cplusplus
24516extern "C"
24517#endif
24518char strftime ();
24519int
24520main ()
24521{
24522return strftime ();
24523  ;
24524  return 0;
24525}
24526_ACEOF
24527if ac_fn_c_try_link "$LINENO"; then :
24528  ac_cv_lib_intl_strftime=yes
24529else
24530  ac_cv_lib_intl_strftime=no
24531fi
24532rm -f core conftest.err conftest.$ac_objext \
24533    conftest$ac_exeext conftest.$ac_ext
24534LIBS=$ac_check_lib_save_LIBS
24535fi
24536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
24537$as_echo "$ac_cv_lib_intl_strftime" >&6; }
24538if test "x$ac_cv_lib_intl_strftime" = xyes; then :
24539  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
24540
24541LIBS="-lintl $LIBS"
24542fi
24543
24544fi
24545done
24546
24547
24548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton()" >&5
24549$as_echo_n "checking for inet_aton()... " >&6; }
24550if ${ol_cv_func_inet_aton+:} false; then :
24551  $as_echo_n "(cached) " >&6
24552else
24553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24554/* end confdefs.h.  */
24555
24556#ifdef HAVE_SYS_TYPES_H
24557#	include <sys/types.h>
24558#endif
24559#ifdef HAVE_SYS_SOCKET_H
24560#	include <sys/socket.h>
24561#	ifdef HAVE_SYS_SELECT_H
24562#		include <sys/select.h>
24563#	endif
24564#	include <netinet/in.h>
24565#	ifdef HAVE_ARPA_INET_H
24566#		include <arpa/inet.h>
24567#	endif
24568#endif
24569
24570int
24571main ()
24572{
24573struct in_addr in;
24574int rc = inet_aton( "255.255.255.255", &in );
24575  ;
24576  return 0;
24577}
24578_ACEOF
24579if ac_fn_c_try_link "$LINENO"; then :
24580  ol_cv_func_inet_aton=yes
24581else
24582  ol_cv_func_inet_aton=no
24583fi
24584rm -f core conftest.err conftest.$ac_objext \
24585    conftest$ac_exeext conftest.$ac_ext
24586fi
24587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_inet_aton" >&5
24588$as_echo "$ol_cv_func_inet_aton" >&6; }
24589  if test $ol_cv_func_inet_aton != no; then
24590
24591$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
24592
24593  fi
24594
24595
24596ac_fn_c_check_func "$LINENO" "_spawnlp" "ac_cv_func__spawnlp"
24597if test "x$ac_cv_func__spawnlp" = xyes; then :
24598
24599$as_echo "#define HAVE_SPAWNLP 1" >>confdefs.h
24600
24601fi
24602
24603
24604ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf"
24605if test "x$ac_cv_func__snprintf" = xyes; then :
24606  ac_cv_func_snprintf=yes
24607
24608$as_echo "#define snprintf _snprintf" >>confdefs.h
24609
24610
24611fi
24612
24613
24614for ac_func in vsnprintf _vsnprintf
24615do :
24616  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24617ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24618if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24619  cat >>confdefs.h <<_ACEOF
24620#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24621_ACEOF
24622
24623fi
24624done
24625
24626
24627if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
24628	ac_cv_func_vsnprintf=yes
24629
24630$as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
24631
24632fi
24633
24634for ac_func in vprintf
24635do :
24636  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24637if test "x$ac_cv_func_vprintf" = xyes; then :
24638  cat >>confdefs.h <<_ACEOF
24639#define HAVE_VPRINTF 1
24640_ACEOF
24641
24642ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24643if test "x$ac_cv_func__doprnt" = xyes; then :
24644
24645$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24646
24647fi
24648
24649fi
24650done
24651
24652
24653
24654if test $ac_cv_func_vprintf = yes ; then
24655		for ac_func in snprintf vsnprintf
24656do :
24657  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24658ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24659if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24660  cat >>confdefs.h <<_ACEOF
24661#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24662_ACEOF
24663
24664fi
24665done
24666
24667fi
24668
24669for ac_func in \
24670	bcopy			\
24671	clock_gettime	\
24672	closesocket		\
24673	chroot			\
24674	endgrent		\
24675	endpwent		\
24676	fcntl			\
24677	flock			\
24678	fstat			\
24679	getdtablesize		\
24680	geteuid			\
24681	getgrgid		\
24682	gethostname		\
24683	getpassphrase		\
24684	getpwuid		\
24685	getpwnam		\
24686	getspnam		\
24687	gettimeofday		\
24688	initgroups		\
24689	inet_ntoa_b		\
24690	ioctl			\
24691	lockf			\
24692	memcpy			\
24693	memmove			\
24694	memrchr			\
24695	mkstemp			\
24696	mktemp			\
24697	pipe			\
24698	read			\
24699	recv			\
24700	recvfrom		\
24701	setpwfile		\
24702	setgid			\
24703	setegid			\
24704	setsid			\
24705	setuid			\
24706	seteuid			\
24707	signal			\
24708	strdup			\
24709	strpbrk			\
24710	strrchr			\
24711	strsep			\
24712	strstr			\
24713	strtol			\
24714	strtoul			\
24715	strtoq			\
24716	strtouq			\
24717	strtoll			\
24718	strtoull		\
24719	strspn			\
24720	sysconf			\
24721	waitpid			\
24722	wait4			\
24723	write			\
24724	send			\
24725	sendmsg			\
24726	sendto			\
24727
24728do :
24729  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24730ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24731if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24732  cat >>confdefs.h <<_ACEOF
24733#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24734_ACEOF
24735
24736fi
24737done
24738
24739
24740ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
24741if test "x$ac_cv_func_getopt" = xyes; then :
24742  $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
24743
24744else
24745  case " $LIBOBJS " in
24746  *" getopt.$ac_objext "* ) ;;
24747  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
24748 ;;
24749esac
24750
24751fi
24752
24753ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
24754if test "x$ac_cv_func_getpeereid" = xyes; then :
24755  $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
24756
24757else
24758  case " $LIBOBJS " in
24759  *" getpeereid.$ac_objext "* ) ;;
24760  *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
24761 ;;
24762esac
24763
24764fi
24765
24766
24767
24768if test "$ac_cv_func_getopt" != yes; then
24769	LIBSRCS="$LIBSRCS getopt.c"
24770fi
24771
24772if test "$ac_cv_func_getpeereid" != yes; then
24773	for ac_func in getpeerucred
24774do :
24775  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24776ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24777if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24778  cat >>confdefs.h <<_ACEOF
24779#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24780_ACEOF
24781
24782fi
24783done
24784
24785	if test "$ac_cv_func_getpeerucred" != yes ; then
24786		ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrightslen" "ac_cv_member_struct_msghdr_msg_accrightslen" "$ac_includes_default
24787#ifdef HAVE_SYS_SOCKET_H
24788#include <sys/socket.h>
24789#endif
24790"
24791if test "x$ac_cv_member_struct_msghdr_msg_accrightslen" = xyes; then :
24792
24793cat >>confdefs.h <<_ACEOF
24794#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
24795_ACEOF
24796
24797
24798fi
24799
24800		if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
24801			ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default
24802#ifdef HAVE_SYS_SOCKET_H
24803#include <sys/socket.h>
24804#endif
24805"
24806if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24807
24808cat >>confdefs.h <<_ACEOF
24809#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
24810_ACEOF
24811
24812
24813fi
24814
24815		fi
24816		ac_fn_c_check_member "$LINENO" "struct stat" "st_fstype" "ac_cv_member_struct_stat_st_fstype" "$ac_includes_default"
24817if test "x$ac_cv_member_struct_stat_st_fstype" = xyes; then :
24818
24819cat >>confdefs.h <<_ACEOF
24820#define HAVE_STRUCT_STAT_ST_FSTYPE 1
24821_ACEOF
24822
24823
24824fi
24825ac_fn_c_check_member "$LINENO" "struct stat" "st_vfstype" "ac_cv_member_struct_stat_st_vfstype" "$ac_includes_default"
24826if test "x$ac_cv_member_struct_stat_st_vfstype" = xyes; then :
24827
24828cat >>confdefs.h <<_ACEOF
24829#define HAVE_STRUCT_STAT_ST_VFSTYPE 1
24830_ACEOF
24831
24832
24833fi
24834
24835		if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
24836			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24837/* end confdefs.h.  */
24838struct stat st; char *ptr=st.st_fstype;
24839_ACEOF
24840if ac_fn_c_try_compile "$LINENO"; then :
24841
24842$as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1" >>confdefs.h
24843
24844else
24845
24846$as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1" >>confdefs.h
24847
24848fi
24849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24850		fi
24851	fi
24852	LIBSRCS="$LIBSRCS getpeereid.c"
24853fi
24854
24855if test "$ac_cv_func_snprintf" != yes ||
24856   test "$ac_cv_func_vsnprintf" != yes; then
24857	if test "$ac_cv_func_snprintf" != yes; then
24858
24859$as_echo "#define snprintf ber_pvt_snprintf" >>confdefs.h
24860
24861	fi
24862	if test "$ac_cv_func_vsnprintf" != yes; then
24863
24864$as_echo "#define vsnprintf ber_pvt_vsnprintf" >>confdefs.h
24865
24866	fi
24867fi
24868
24869
24870if test "$ol_enable_slapi" != no ; then
24871			for ac_header in ltdl.h
24872do :
24873  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
24874if test "x$ac_cv_header_ltdl_h" = xyes; then :
24875  cat >>confdefs.h <<_ACEOF
24876#define HAVE_LTDL_H 1
24877_ACEOF
24878
24879fi
24880
24881done
24882
24883
24884	if test $ac_cv_header_ltdl_h != yes ; then
24885		as_fn_error $? "could not locate <ltdl.h>" "$LINENO" 5
24886	fi
24887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
24888$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
24889if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
24890  $as_echo_n "(cached) " >&6
24891else
24892  ac_check_lib_save_LIBS=$LIBS
24893LIBS="-lltdl  $LIBS"
24894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24895/* end confdefs.h.  */
24896
24897/* Override any GCC internal prototype to avoid an error.
24898   Use char because int might match the return type of a GCC
24899   builtin and then its argument prototype would still apply.  */
24900#ifdef __cplusplus
24901extern "C"
24902#endif
24903char lt_dlinit ();
24904int
24905main ()
24906{
24907return lt_dlinit ();
24908  ;
24909  return 0;
24910}
24911_ACEOF
24912if ac_fn_c_try_link "$LINENO"; then :
24913  ac_cv_lib_ltdl_lt_dlinit=yes
24914else
24915  ac_cv_lib_ltdl_lt_dlinit=no
24916fi
24917rm -f core conftest.err conftest.$ac_objext \
24918    conftest$ac_exeext conftest.$ac_ext
24919LIBS=$ac_check_lib_save_LIBS
24920fi
24921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
24922$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
24923if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
24924
24925		SLAPI_LIBS=-lltdl
24926		LIBSLAPI=slapi/libslapi.la
24927
24928$as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
24929
24930
24931else
24932  as_fn_error $? "could not locate libtool -lltdl" "$LINENO" 5
24933fi
24934
24935
24936
24937$as_echo "#define LDAP_SLAPI 1" >>confdefs.h
24938
24939fi
24940
24941if test "$ol_enable_debug" != no ; then
24942	if test "$ol_enable_debug" = traditional; then
24943
24944$as_echo "#define OLD_DEBUG 1" >>confdefs.h
24945
24946	fi
24947
24948$as_echo "#define LDAP_DEBUG 1" >>confdefs.h
24949
24950fi
24951if test "$ol_enable_syslog" != no ; then
24952
24953$as_echo "#define LDAP_SYSLOG 1" >>confdefs.h
24954
24955fi
24956if test "$ol_enable_referrals" != no ; then
24957
24958$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION" >>confdefs.h
24959
24960fi
24961if test "$ol_enable_local" != no; then
24962
24963$as_echo "#define LDAP_PF_LOCAL 1" >>confdefs.h
24964
24965fi
24966if test "$ol_link_ipv6" != no; then
24967
24968$as_echo "#define LDAP_PF_INET6 1" >>confdefs.h
24969
24970fi
24971if test "$ol_enable_cleartext" != no ; then
24972
24973$as_echo "#define SLAPD_CLEARTEXT 1" >>confdefs.h
24974
24975fi
24976if test "$ol_enable_crypt" != no ; then
24977
24978$as_echo "#define SLAPD_CRYPT 1" >>confdefs.h
24979
24980fi
24981if test "$ol_link_spasswd" != no ; then
24982
24983$as_echo "#define SLAPD_SPASSWD 1" >>confdefs.h
24984
24985fi
24986if test "$ol_enable_rlookups" != no ; then
24987
24988$as_echo "#define SLAPD_RLOOKUPS 1" >>confdefs.h
24989
24990fi
24991if test "$ol_enable_aci" != no ; then
24992	if test "$ol_enable_aci" = mod ; then
24993		MFLAG=SLAPD_MOD_DYNAMIC
24994				as_fn_error $? "ACI build as dynamic module not supported (yet)" "$LINENO" 5
24995	else
24996		MFLAG=SLAPD_MOD_STATIC
24997	fi
24998	WITH_ACI_ENABLED=$ol_enable_aci
24999
25000cat >>confdefs.h <<_ACEOF
25001#define SLAPD_ACI_ENABLED $MFLAG
25002_ACEOF
25003
25004else
25005	WITH_ACI_ENABLED=no
25006fi
25007if test "$ol_enable_dynacl" != no ; then
25008
25009$as_echo "#define SLAP_DYNACL 1" >>confdefs.h
25010
25011fi
25012
25013if test "$ol_link_modules" != no ; then
25014
25015$as_echo "#define SLAPD_MODULES 1" >>confdefs.h
25016
25017	BUILD_SLAPD=yes
25018	SLAPD_MODULES_LDFLAGS="-dlopen self"
25019fi
25020
25021
25022$as_echo "#define SLAPD_MOD_STATIC 1" >>confdefs.h
25023
25024
25025$as_echo "#define SLAPD_MOD_DYNAMIC 2" >>confdefs.h
25026
25027
25028if test "$ol_enable_dnssrv" != no ; then
25029	BUILD_SLAPD=yes
25030	BUILD_DNSSRV=$ol_enable_dnssrv
25031	if test "$ol_enable_dnssrv" = mod ; then
25032		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
25033		MFLAG=SLAPD_MOD_DYNAMIC
25034	else
25035		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
25036		MFLAG=SLAPD_MOD_STATIC
25037	fi
25038
25039cat >>confdefs.h <<_ACEOF
25040#define SLAPD_DNSSRV $MFLAG
25041_ACEOF
25042
25043fi
25044
25045if test "$ol_enable_ldap" != no ; then
25046	BUILD_SLAPD=yes
25047	BUILD_LDAP=$ol_enable_ldap
25048	if test "$ol_enable_ldap" = mod ; then
25049		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
25050		MFLAG=SLAPD_MOD_DYNAMIC
25051	else
25052		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
25053		MFLAG=SLAPD_MOD_STATIC
25054	fi
25055
25056cat >>confdefs.h <<_ACEOF
25057#define SLAPD_LDAP $MFLAG
25058_ACEOF
25059
25060fi
25061
25062if test "$ol_enable_mdb" != no ; then
25063	BUILD_SLAPD=yes
25064	BUILD_MDB=$ol_enable_mdb
25065	if test "$ol_enable_mdb" = mod ; then
25066		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-mdb"
25067		MFLAG=SLAPD_MOD_DYNAMIC
25068	else
25069		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-mdb"
25070		MFLAG=SLAPD_MOD_STATIC
25071	fi
25072
25073cat >>confdefs.h <<_ACEOF
25074#define SLAPD_MDB $MFLAG
25075_ACEOF
25076
25077fi
25078
25079if test "$ol_enable_meta" != no ; then
25080	BUILD_SLAPD=yes
25081	BUILD_META=$ol_enable_meta
25082	if test "$ol_enable_meta" = mod ; then
25083		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
25084		MFLAG=SLAPD_MOD_DYNAMIC
25085	else
25086		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
25087		MFLAG=SLAPD_MOD_STATIC
25088	fi
25089
25090cat >>confdefs.h <<_ACEOF
25091#define SLAPD_META $MFLAG
25092_ACEOF
25093
25094fi
25095
25096if test "$ol_enable_asyncmeta" != no ; then
25097	BUILD_SLAPD=yes
25098	BUILD_ASYNCMETA=$ol_enable_asyncmeta
25099	if test "$ol_enable_asyncmeta" = mod ; then
25100		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-asyncmeta"
25101		MFLAG=SLAPD_MOD_DYNAMIC
25102	else
25103		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-asyncmeta"
25104		MFLAG=SLAPD_MOD_STATIC
25105	fi
25106
25107cat >>confdefs.h <<_ACEOF
25108#define SLAPD_ASYNCMETA $MFLAG
25109_ACEOF
25110
25111fi
25112
25113if test "$ol_enable_ndb" != no ; then
25114	BUILD_SLAPD=yes
25115	BUILD_NDB=$ol_enable_ndb
25116	if test "$ol_enable_ndb" = mod ; then
25117		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
25118		MFLAG=SLAPD_MOD_DYNAMIC
25119	else
25120		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
25121		MFLAG=SLAPD_MOD_STATIC
25122	fi
25123
25124cat >>confdefs.h <<_ACEOF
25125#define SLAPD_NDB $MFLAG
25126_ACEOF
25127
25128fi
25129
25130if test "$ol_enable_null" != no ; then
25131	BUILD_SLAPD=yes
25132	BUILD_NULL=$ol_enable_null
25133	if test "$ol_enable_null" = mod ; then
25134		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
25135		MFLAG=SLAPD_MOD_DYNAMIC
25136	else
25137		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
25138		MFLAG=SLAPD_MOD_STATIC
25139	fi
25140
25141cat >>confdefs.h <<_ACEOF
25142#define SLAPD_NULL $MFLAG
25143_ACEOF
25144
25145fi
25146
25147if test "$ol_enable_passwd" != no ; then
25148	BUILD_SLAPD=yes
25149	BUILD_PASSWD=$ol_enable_passwd
25150	if test "$ol_enable_passwd" = mod ; then
25151		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
25152		MFLAG=SLAPD_MOD_DYNAMIC
25153	else
25154		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
25155		MFLAG=SLAPD_MOD_STATIC
25156	fi
25157
25158cat >>confdefs.h <<_ACEOF
25159#define SLAPD_PASSWD $MFLAG
25160_ACEOF
25161
25162fi
25163
25164if test "$ol_link_perl" != no ; then
25165	BUILD_SLAPD=yes
25166	BUILD_PERL=$ol_enable_perl
25167	if test "$ol_enable_perl" = mod ; then
25168		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
25169		MFLAG=SLAPD_MOD_DYNAMIC
25170	else
25171		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
25172		MFLAG=SLAPD_MOD_STATIC
25173	fi
25174
25175cat >>confdefs.h <<_ACEOF
25176#define SLAPD_PERL $MFLAG
25177_ACEOF
25178
25179fi
25180
25181if test "$ol_enable_relay" != no ; then
25182	BUILD_SLAPD=yes
25183	BUILD_RELAY=$ol_enable_relay
25184	if test "$ol_enable_relay" = mod ; then
25185		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
25186		MFLAG=SLAPD_MOD_DYNAMIC
25187	else
25188		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
25189		MFLAG=SLAPD_MOD_STATIC
25190	fi
25191
25192cat >>confdefs.h <<_ACEOF
25193#define SLAPD_RELAY $MFLAG
25194_ACEOF
25195
25196fi
25197
25198if test "$ol_enable_sock" != no ; then
25199	BUILD_SLAPD=yes
25200	BUILD_SOCK=$ol_enable_sock
25201	if test "$ol_enable_sock" = mod ; then
25202		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
25203		MFLAG=SLAPD_MOD_DYNAMIC
25204	else
25205		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
25206		MFLAG=SLAPD_MOD_STATIC
25207	fi
25208
25209cat >>confdefs.h <<_ACEOF
25210#define SLAPD_SOCK $MFLAG
25211_ACEOF
25212
25213fi
25214
25215if test "$ol_link_sql" != no ; then
25216	BUILD_SLAPD=yes
25217	BUILD_SQL=$ol_enable_sql
25218	if test "$ol_enable_sql" = mod; then
25219		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
25220		MFLAG=SLAPD_MOD_DYNAMIC
25221	else
25222		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
25223		MFLAG=SLAPD_MOD_STATIC
25224	fi
25225
25226cat >>confdefs.h <<_ACEOF
25227#define SLAPD_SQL $MFLAG
25228_ACEOF
25229
25230fi
25231
25232if test "$ol_link_wt" != no ; then
25233	BUILD_SLAPD=yes
25234	BUILD_WT=$ol_enable_wt
25235	if test "$ol_enable_wt" = mod; then
25236		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-wt"
25237		MFLAG=SLAPD_MOD_DYNAMIC
25238	else
25239		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-wt"
25240		MFLAG=SLAPD_MOD_STATIC
25241	fi
25242
25243cat >>confdefs.h <<_ACEOF
25244#define SLAPD_WT $MFLAG
25245_ACEOF
25246
25247fi
25248
25249if test "$ol_enable_accesslog" != no ; then
25250	BUILD_ACCESSLOG=$ol_enable_accesslog
25251	if test "$ol_enable_accesslog" = mod ; then
25252		MFLAG=SLAPD_MOD_DYNAMIC
25253		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
25254	else
25255		MFLAG=SLAPD_MOD_STATIC
25256		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
25257	fi
25258
25259cat >>confdefs.h <<_ACEOF
25260#define SLAPD_OVER_ACCESSLOG $MFLAG
25261_ACEOF
25262
25263fi
25264
25265if test "$ol_enable_auditlog" != no ; then
25266	BUILD_AUDITLOG=$ol_enable_auditlog
25267	if test "$ol_enable_auditlog" = mod ; then
25268		MFLAG=SLAPD_MOD_DYNAMIC
25269		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
25270	else
25271		MFLAG=SLAPD_MOD_STATIC
25272		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
25273	fi
25274
25275cat >>confdefs.h <<_ACEOF
25276#define SLAPD_OVER_AUDITLOG $MFLAG
25277_ACEOF
25278
25279fi
25280
25281if test "$ol_enable_autoca" != no ; then
25282	if test $ol_with_tls != openssl ; then
25283		as_fn_error $? "--enable-autoca=$ol_enable_autoca requires --with-tls=openssl" "$LINENO" 5
25284	fi
25285
25286	BUILD_AUTOCA=$ol_enable_autoca
25287	if test "$ol_enable_autoca" = mod ; then
25288		MFLAG=SLAPD_MOD_DYNAMIC
25289		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS autoca.la"
25290	else
25291		MFLAG=SLAPD_MOD_STATIC
25292		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS autoca.o"
25293	fi
25294
25295cat >>confdefs.h <<_ACEOF
25296#define SLAPD_OVER_AUTOCA $MFLAG
25297_ACEOF
25298
25299fi
25300
25301if test "$ol_enable_collect" != no ; then
25302        BUILD_COLLECT=$ol_enable_collect
25303        if test "$ol_enable_collect" = mod ; then
25304                MFLAG=SLAPD_MOD_DYNAMIC
25305                SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
25306        else
25307                MFLAG=SLAPD_MOD_STATIC
25308                SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
25309        fi
25310
25311cat >>confdefs.h <<_ACEOF
25312#define SLAPD_OVER_COLLECT $MFLAG
25313_ACEOF
25314
25315fi
25316
25317if test "$ol_enable_constraint" != no ; then
25318	BUILD_CONSTRAINT=$ol_enable_constraint
25319	if test "$ol_enable_constraint" = mod ; then
25320		MFLAG=SLAPD_MOD_DYNAMIC
25321		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
25322	else
25323		MFLAG=SLAPD_MOD_STATIC
25324		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
25325	fi
25326
25327cat >>confdefs.h <<_ACEOF
25328#define SLAPD_OVER_CONSTRAINT $MFLAG
25329_ACEOF
25330
25331fi
25332
25333if test "$ol_enable_dds" != no ; then
25334	BUILD_DDS=$ol_enable_dds
25335	if test "$ol_enable_dds" = mod ; then
25336		MFLAG=SLAPD_MOD_DYNAMIC
25337		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
25338	else
25339		MFLAG=SLAPD_MOD_STATIC
25340		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
25341	fi
25342
25343cat >>confdefs.h <<_ACEOF
25344#define SLAPD_OVER_DDS $MFLAG
25345_ACEOF
25346
25347fi
25348
25349if test "$ol_enable_deref" != no ; then
25350	BUILD_DEREF=$ol_enable_deref
25351	if test "$ol_enable_deref" = mod ; then
25352		MFLAG=SLAPD_MOD_DYNAMIC
25353		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
25354	else
25355		MFLAG=SLAPD_MOD_STATIC
25356		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
25357	fi
25358
25359cat >>confdefs.h <<_ACEOF
25360#define SLAPD_OVER_DEREF $MFLAG
25361_ACEOF
25362
25363fi
25364
25365if test "$ol_enable_dyngroup" != no ; then
25366	BUILD_DYNGROUP=$ol_enable_dyngroup
25367	if test "$ol_enable_dyngroup" = mod ; then
25368		MFLAG=SLAPD_MOD_DYNAMIC
25369		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
25370	else
25371		MFLAG=SLAPD_MOD_STATIC
25372		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
25373	fi
25374
25375cat >>confdefs.h <<_ACEOF
25376#define SLAPD_OVER_DYNGROUP $MFLAG
25377_ACEOF
25378
25379fi
25380
25381if test "$ol_enable_dynlist" != no ; then
25382	BUILD_DYNLIST=$ol_enable_dynlist
25383	if test "$ol_enable_dynlist" = mod ; then
25384		MFLAG=SLAPD_MOD_DYNAMIC
25385		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
25386	else
25387		MFLAG=SLAPD_MOD_STATIC
25388		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
25389	fi
25390
25391cat >>confdefs.h <<_ACEOF
25392#define SLAPD_OVER_DYNLIST $MFLAG
25393_ACEOF
25394
25395fi
25396
25397if test "$ol_enable_homedir" != no ; then
25398	BUILD_HOMEDIR=$ol_enable_homedir
25399	if test "$ol_enable_homedir" = mod ; then
25400		MFLAG=SLAPD_MOD_DYNAMIC
25401		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS homedir.la"
25402	else
25403		MFLAG=SLAPD_MOD_STATIC
25404		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS homedir.o"
25405	fi
25406
25407cat >>confdefs.h <<_ACEOF
25408#define SLAPD_OVER_HOMEDIR $MFLAG
25409_ACEOF
25410
25411fi
25412
25413if test "$ol_enable_memberof" != no ; then
25414	BUILD_MEMBEROF=$ol_enable_memberof
25415	if test "$ol_enable_memberof" = mod ; then
25416		MFLAG=SLAPD_MOD_DYNAMIC
25417		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
25418	else
25419		MFLAG=SLAPD_MOD_STATIC
25420		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
25421	fi
25422
25423cat >>confdefs.h <<_ACEOF
25424#define SLAPD_OVER_MEMBEROF $MFLAG
25425_ACEOF
25426
25427fi
25428
25429if test "$ol_enable_otp" != no ; then
25430	if test $ol_with_tls = no ; then
25431		as_fn_error $? "--enable-otp=$ol_enable_otp requires --with-tls" "$LINENO" 5
25432	fi
25433
25434	BUILD_OTP=$ol_enable_otp
25435	if test "$ol_enable_otp" = mod ; then
25436		MFLAG=SLAPD_MOD_DYNAMIC
25437		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS otp.la"
25438	else
25439		MFLAG=SLAPD_MOD_STATIC
25440		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS otp.o"
25441	fi
25442
25443cat >>confdefs.h <<_ACEOF
25444#define SLAPD_OVER_OTP $MFLAG
25445_ACEOF
25446
25447fi
25448
25449if test "$ol_enable_ppolicy" != no ; then
25450	BUILD_PPOLICY=$ol_enable_ppolicy
25451	if test "$ol_enable_ppolicy" = mod ; then
25452		MFLAG=SLAPD_MOD_DYNAMIC
25453		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
25454	else
25455		MFLAG=SLAPD_MOD_STATIC
25456		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
25457	fi
25458
25459cat >>confdefs.h <<_ACEOF
25460#define SLAPD_OVER_PPOLICY $MFLAG
25461_ACEOF
25462
25463fi
25464
25465if test "$ol_enable_proxycache" != no ; then
25466	BUILD_PROXYCACHE=$ol_enable_proxycache
25467	if test "$ol_enable_proxycache" = mod ; then
25468		MFLAG=SLAPD_MOD_DYNAMIC
25469		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
25470	else
25471		MFLAG=SLAPD_MOD_STATIC
25472		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
25473	fi
25474
25475cat >>confdefs.h <<_ACEOF
25476#define SLAPD_OVER_PROXYCACHE $MFLAG
25477_ACEOF
25478
25479fi
25480
25481if test "$ol_enable_refint" != no ; then
25482	BUILD_REFINT=$ol_enable_refint
25483	if test "$ol_enable_refint" = mod ; then
25484		MFLAG=SLAPD_MOD_DYNAMIC
25485		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
25486	else
25487		MFLAG=SLAPD_MOD_STATIC
25488		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
25489	fi
25490
25491cat >>confdefs.h <<_ACEOF
25492#define SLAPD_OVER_REFINT $MFLAG
25493_ACEOF
25494
25495fi
25496
25497if test "$ol_enable_remoteauth" != no ; then
25498	BUILD_REMOTEAUTH=$ol_enable_remoteauth
25499	if test "$ol_enable_remoteauth" = mod ; then
25500		MFLAG=SLAPD_MOD_DYNAMIC
25501		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS remoteauth.la"
25502	else
25503		MFLAG=SLAPD_MOD_STATIC
25504		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS remoteauth.o"
25505	fi
25506
25507cat >>confdefs.h <<_ACEOF
25508#define SLAPD_OVER_REMOTEAUTH $MFLAG
25509_ACEOF
25510
25511fi
25512
25513if test "$ol_enable_retcode" != no ; then
25514	BUILD_RETCODE=$ol_enable_retcode
25515	if test "$ol_enable_retcode" = mod ; then
25516		MFLAG=SLAPD_MOD_DYNAMIC
25517		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
25518	else
25519		MFLAG=SLAPD_MOD_STATIC
25520		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
25521	fi
25522
25523cat >>confdefs.h <<_ACEOF
25524#define SLAPD_OVER_RETCODE $MFLAG
25525_ACEOF
25526
25527fi
25528
25529if test "$ol_enable_rwm" != no ; then
25530	BUILD_RWM=$ol_enable_rwm
25531	if test "$ol_enable_rwm" = mod ; then
25532		MFLAG=SLAPD_MOD_DYNAMIC
25533		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
25534	else
25535		MFLAG=SLAPD_MOD_STATIC
25536		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
25537	fi
25538
25539cat >>confdefs.h <<_ACEOF
25540#define SLAPD_OVER_RWM $MFLAG
25541_ACEOF
25542
25543fi
25544
25545if test "$ol_enable_seqmod" != no ; then
25546	BUILD_SEQMOD=$ol_enable_seqmod
25547	if test "$ol_enable_seqmod" = mod ; then
25548		MFLAG=SLAPD_MOD_DYNAMIC
25549		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
25550	else
25551		MFLAG=SLAPD_MOD_STATIC
25552		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
25553	fi
25554
25555cat >>confdefs.h <<_ACEOF
25556#define SLAPD_OVER_SEQMOD $MFLAG
25557_ACEOF
25558
25559fi
25560
25561if test "$ol_enable_sssvlv" != no ; then
25562	BUILD_SSSVLV=$ol_enable_sssvlv
25563	if test "$ol_enable_sssvlv" = mod ; then
25564		MFLAG=SLAPD_MOD_DYNAMIC
25565		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
25566	else
25567		MFLAG=SLAPD_MOD_STATIC
25568		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
25569	fi
25570
25571cat >>confdefs.h <<_ACEOF
25572#define SLAPD_OVER_SSSVLV $MFLAG
25573_ACEOF
25574
25575fi
25576
25577if test "$ol_enable_syncprov" != no ; then
25578	BUILD_SYNCPROV=$ol_enable_syncprov
25579	if test "$ol_enable_syncprov" = mod ; then
25580		MFLAG=SLAPD_MOD_DYNAMIC
25581		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
25582	else
25583		MFLAG=SLAPD_MOD_STATIC
25584		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
25585	fi
25586
25587cat >>confdefs.h <<_ACEOF
25588#define SLAPD_OVER_SYNCPROV $MFLAG
25589_ACEOF
25590
25591fi
25592
25593if test "$ol_enable_translucent" != no ; then
25594	BUILD_TRANSLUCENT=$ol_enable_translucent
25595	if test "$ol_enable_translucent" = mod ; then
25596		MFLAG=SLAPD_MOD_DYNAMIC
25597		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
25598	else
25599		MFLAG=SLAPD_MOD_STATIC
25600		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
25601	fi
25602
25603cat >>confdefs.h <<_ACEOF
25604#define SLAPD_OVER_TRANSLUCENT $MFLAG
25605_ACEOF
25606
25607fi
25608
25609if test "$ol_enable_unique" != no ; then
25610	BUILD_UNIQUE=$ol_enable_unique
25611	if test "$ol_enable_unique" = mod ; then
25612		MFLAG=SLAPD_MOD_DYNAMIC
25613		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
25614	else
25615		MFLAG=SLAPD_MOD_STATIC
25616		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
25617	fi
25618
25619cat >>confdefs.h <<_ACEOF
25620#define SLAPD_OVER_UNIQUE $MFLAG
25621_ACEOF
25622
25623fi
25624
25625if test "$ol_enable_valsort" != no ; then
25626	BUILD_VALSORT=$ol_enable_valsort
25627	if test "$ol_enable_valsort" = mod ; then
25628		MFLAG=SLAPD_MOD_DYNAMIC
25629		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
25630	else
25631		MFLAG=SLAPD_MOD_STATIC
25632		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
25633	fi
25634
25635cat >>confdefs.h <<_ACEOF
25636#define SLAPD_OVER_VALSORT $MFLAG
25637_ACEOF
25638
25639fi
25640
25641ol_link_argon2=no
25642if test "$ol_enable_argon2" = "yes" ; then
25643	if test $ol_with_argon2 = libargon2 || test $ol_with_argon2 = auto; then
25644		for ac_header in argon2.h
25645do :
25646  ac_fn_c_check_header_mongrel "$LINENO" "argon2.h" "ac_cv_header_argon2_h" "$ac_includes_default"
25647if test "x$ac_cv_header_argon2_h" = xyes; then :
25648  cat >>confdefs.h <<_ACEOF
25649#define HAVE_ARGON2_H 1
25650_ACEOF
25651
25652fi
25653
25654done
25655
25656		if test $ac_cv_header_argon2_h = yes ; then
25657			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for argon2i_hash_encoded in -largon2" >&5
25658$as_echo_n "checking for argon2i_hash_encoded in -largon2... " >&6; }
25659if ${ac_cv_lib_argon2_argon2i_hash_encoded+:} false; then :
25660  $as_echo_n "(cached) " >&6
25661else
25662  ac_check_lib_save_LIBS=$LIBS
25663LIBS="-largon2 -largon2 $LIBS"
25664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25665/* end confdefs.h.  */
25666
25667/* Override any GCC internal prototype to avoid an error.
25668   Use char because int might match the return type of a GCC
25669   builtin and then its argument prototype would still apply.  */
25670#ifdef __cplusplus
25671extern "C"
25672#endif
25673char argon2i_hash_encoded ();
25674int
25675main ()
25676{
25677return argon2i_hash_encoded ();
25678  ;
25679  return 0;
25680}
25681_ACEOF
25682if ac_fn_c_try_link "$LINENO"; then :
25683  ac_cv_lib_argon2_argon2i_hash_encoded=yes
25684else
25685  ac_cv_lib_argon2_argon2i_hash_encoded=no
25686fi
25687rm -f core conftest.err conftest.$ac_objext \
25688    conftest$ac_exeext conftest.$ac_ext
25689LIBS=$ac_check_lib_save_LIBS
25690fi
25691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_argon2_argon2i_hash_encoded" >&5
25692$as_echo "$ac_cv_lib_argon2_argon2i_hash_encoded" >&6; }
25693if test "x$ac_cv_lib_argon2_argon2i_hash_encoded" = xyes; then :
25694  have_argon2=yes
25695else
25696  have_argon2=no
25697fi
25698
25699		fi
25700		if test "$have_argon2" = "yes" ; then
25701			ol_with_argon2=libargon2
25702			ol_link_argon2=yes
25703
25704$as_echo "#define HAVE_LIBARGON2 1" >>confdefs.h
25705
25706			ARGON2_LIBS="-largon2"
25707		fi
25708	fi
25709	if test $ol_with_argon2 = libsodium || test $ol_with_argon2 = auto; then
25710		for ac_header in sodium.h
25711do :
25712  ac_fn_c_check_header_mongrel "$LINENO" "sodium.h" "ac_cv_header_sodium_h" "$ac_includes_default"
25713if test "x$ac_cv_header_sodium_h" = xyes; then :
25714  cat >>confdefs.h <<_ACEOF
25715#define HAVE_SODIUM_H 1
25716_ACEOF
25717
25718fi
25719
25720done
25721
25722		if test $ac_cv_header_sodium_h = yes ; then
25723			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto_pwhash_str_alg in -lsodium" >&5
25724$as_echo_n "checking for crypto_pwhash_str_alg in -lsodium... " >&6; }
25725if ${ac_cv_lib_sodium_crypto_pwhash_str_alg+:} false; then :
25726  $as_echo_n "(cached) " >&6
25727else
25728  ac_check_lib_save_LIBS=$LIBS
25729LIBS="-lsodium -lsodium $LIBS"
25730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25731/* end confdefs.h.  */
25732
25733/* Override any GCC internal prototype to avoid an error.
25734   Use char because int might match the return type of a GCC
25735   builtin and then its argument prototype would still apply.  */
25736#ifdef __cplusplus
25737extern "C"
25738#endif
25739char crypto_pwhash_str_alg ();
25740int
25741main ()
25742{
25743return crypto_pwhash_str_alg ();
25744  ;
25745  return 0;
25746}
25747_ACEOF
25748if ac_fn_c_try_link "$LINENO"; then :
25749  ac_cv_lib_sodium_crypto_pwhash_str_alg=yes
25750else
25751  ac_cv_lib_sodium_crypto_pwhash_str_alg=no
25752fi
25753rm -f core conftest.err conftest.$ac_objext \
25754    conftest$ac_exeext conftest.$ac_ext
25755LIBS=$ac_check_lib_save_LIBS
25756fi
25757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sodium_crypto_pwhash_str_alg" >&5
25758$as_echo "$ac_cv_lib_sodium_crypto_pwhash_str_alg" >&6; }
25759if test "x$ac_cv_lib_sodium_crypto_pwhash_str_alg" = xyes; then :
25760  have_argon2=yes
25761else
25762  have_argon2=no
25763fi
25764
25765		fi
25766		if test "$have_argon2" = "yes" ; then
25767			ol_with_argon2=libsodium
25768			ol_link_argon2=yes
25769
25770$as_echo "#define HAVE_LIBSODIUM 1" >>confdefs.h
25771
25772			ARGON2_LIBS="-lsodium"
25773		fi
25774	fi
25775
25776	if test "$ol_link_argon2" = no ; then
25777		as_fn_error $? "--enable_argon2=$ol_enable_argon2 requires --with-argon2" "$LINENO" 5
25778	fi
25779
25780	BUILD_PW_ARGON2=$ol_enable_argon2
25781	if test "$ol_enable_argon2" = "yes" ; then
25782		SLAPD_DYNAMIC_PWMODS="$SLAPD_DYNAMIC_PWDMODS argon2.la"
25783	fi
25784
25785cat >>confdefs.h <<_ACEOF
25786#define SLAPD_PWMOD_PW_ARGON2 $SLAPD_MOD_DYNAMIC
25787_ACEOF
25788
25789fi
25790
25791if test "$ol_enable_balancer" != no \
25792		-a "$ol_with_threads" != no \
25793		-a "$have_libevent" = yes ; then
25794	if test "$ol_enable_balancer" = mod; then
25795		BALANCER_INCLUDE=Makefile.module
25796		BUILD_BALANCER=mod
25797	else
25798		BALANCER_INCLUDE=Makefile.server
25799		BUILD_BALANCER=yes
25800	fi
25801fi
25802
25803if test "$ol_enable_slapi" != no ; then
25804
25805$as_echo "#define ENABLE_SLAPI 1" >>confdefs.h
25806
25807	BUILD_SLAPI=yes
25808	SLAPD_SLAPI_DEPEND=libslapi.a
25809fi
25810
25811OL_VERSIONED_SYMBOLS=""
25812if test $ol_enable_versioning != no; then
25813	LDVS=`$LD --help < /dev/null 2>/dev/null | grep gnu-version-script`
25814	if test -z "$LDVS"; then
25815		LDVS=`$LD --help < /dev/null 2>/dev/null | grep version-script`
25816		if test -z "$LDVS"; then
25817			if test $ol_enable_versioning = "yes" ; then
25818				as_fn_error $? "Library symbol versioning requested but not supported" "$LINENO" 5
25819			fi
25820		else
25821			OL_VERSIONED_SYMBOLS="-Wl,--version-script="
25822		fi
25823	else
25824		OL_VERSIONED_SYMBOLS="-z gnu-version-script="
25825	fi
25826fi
25827
25828
25829
25830if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
25831	PLAT=NT
25832	SLAPD_MODULES_LDFLAGS=
25833else
25834	PLAT=UNIX
25835fi
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942# Check whether --with-xxinstall was given.
25943if test "${with_xxinstall+set}" = set; then :
25944  withval=$with_xxinstall;
25945fi
25946
25947
25948
25949ac_config_files="$ac_config_files Makefile:build/top.mk: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/liblber/lber.pc libraries/liblber/liblber.vers libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/ldap.pc libraries/libldap/libldap.vers 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-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/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-mdb/Makefile:build/top.mk:servers/slapd/back-mdb/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-asyncmeta/Makefile:build/top.mk:servers/slapd/back-asyncmeta/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-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/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-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/back-wt/Makefile:build/top.mk:servers/slapd/back-wt/Makefile.in:build/mod.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 servers/slapd/pwmods/Makefile:build/top.mk:servers/slapd/pwmods/Makefile.in:build/lib.mk servers/lloadd/Makefile:build/top.mk:servers/lloadd/Makefile.in servers/lloadd/Makefile.server:servers/lloadd/Makefile_server.in:build/srv.mk servers/lloadd/Makefile.module:servers/lloadd/Makefile_module.in:build/mod.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"
25950
25951
25952ac_config_commands="$ac_config_commands default"
25953
25954
25955
25956test "x$prefix" = xNONE && prefix=$ac_default_prefix
25957# Let make expand exec_prefix.
25958test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25959
25960DEFS=-DHAVE_CONFIG_H
25961
25962ac_libobjs=
25963ac_ltlibobjs=
25964U=
25965for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25966  # 1. Remove the extension, and $U if already installed.
25967  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25968  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25969  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25970  #    will be set to the directory where LIBOBJS objects are built.
25971  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25972  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25973done
25974LIBOBJS=$ac_libobjs
25975
25976LTLIBOBJS=$ac_ltlibobjs
25977
25978
25979
25980
25981: "${CONFIG_STATUS=./config.status}"
25982ac_write_fail=0
25983ac_clean_files_save=$ac_clean_files
25984ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25985{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25986$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25987as_write_fail=0
25988cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25989#! $SHELL
25990# Generated by $as_me.
25991# Run this file to recreate the current configuration.
25992# Compiler output produced by configure, useful for debugging
25993# configure, is in config.log if it exists.
25994
25995debug=false
25996ac_cs_recheck=false
25997ac_cs_silent=false
25998
25999SHELL=\${CONFIG_SHELL-$SHELL}
26000export SHELL
26001_ASEOF
26002cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26003## -------------------- ##
26004## M4sh Initialization. ##
26005## -------------------- ##
26006
26007# Be more Bourne compatible
26008DUALCASE=1; export DUALCASE # for MKS sh
26009if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26010  emulate sh
26011  NULLCMD=:
26012  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26013  # is contrary to our usage.  Disable this feature.
26014  alias -g '${1+"$@"}'='"$@"'
26015  setopt NO_GLOB_SUBST
26016else
26017  case `(set -o) 2>/dev/null` in #(
26018  *posix*) :
26019    set -o posix ;; #(
26020  *) :
26021     ;;
26022esac
26023fi
26024
26025
26026as_nl='
26027'
26028export as_nl
26029# Printing a long string crashes Solaris 7 /usr/bin/printf.
26030as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26031as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26032as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26033# Prefer a ksh shell builtin over an external printf program on Solaris,
26034# but without wasting forks for bash or zsh.
26035if test -z "$BASH_VERSION$ZSH_VERSION" \
26036    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26037  as_echo='print -r --'
26038  as_echo_n='print -rn --'
26039elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26040  as_echo='printf %s\n'
26041  as_echo_n='printf %s'
26042else
26043  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26044    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26045    as_echo_n='/usr/ucb/echo -n'
26046  else
26047    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26048    as_echo_n_body='eval
26049      arg=$1;
26050      case $arg in #(
26051      *"$as_nl"*)
26052	expr "X$arg" : "X\\(.*\\)$as_nl";
26053	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26054      esac;
26055      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26056    '
26057    export as_echo_n_body
26058    as_echo_n='sh -c $as_echo_n_body as_echo'
26059  fi
26060  export as_echo_body
26061  as_echo='sh -c $as_echo_body as_echo'
26062fi
26063
26064# The user is always right.
26065if test "${PATH_SEPARATOR+set}" != set; then
26066  PATH_SEPARATOR=:
26067  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26068    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26069      PATH_SEPARATOR=';'
26070  }
26071fi
26072
26073
26074# IFS
26075# We need space, tab and new line, in precisely that order.  Quoting is
26076# there to prevent editors from complaining about space-tab.
26077# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26078# splitting by setting IFS to empty value.)
26079IFS=" ""	$as_nl"
26080
26081# Find who we are.  Look in the path if we contain no directory separator.
26082as_myself=
26083case $0 in #((
26084  *[\\/]* ) as_myself=$0 ;;
26085  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26086for as_dir in $PATH
26087do
26088  IFS=$as_save_IFS
26089  test -z "$as_dir" && as_dir=.
26090    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26091  done
26092IFS=$as_save_IFS
26093
26094     ;;
26095esac
26096# We did not find ourselves, most probably we were run as `sh COMMAND'
26097# in which case we are not to be found in the path.
26098if test "x$as_myself" = x; then
26099  as_myself=$0
26100fi
26101if test ! -f "$as_myself"; then
26102  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26103  exit 1
26104fi
26105
26106# Unset variables that we do not need and which cause bugs (e.g. in
26107# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26108# suppresses any "Segmentation fault" message there.  '((' could
26109# trigger a bug in pdksh 5.2.14.
26110for as_var in BASH_ENV ENV MAIL MAILPATH
26111do eval test x\${$as_var+set} = xset \
26112  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26113done
26114PS1='$ '
26115PS2='> '
26116PS4='+ '
26117
26118# NLS nuisances.
26119LC_ALL=C
26120export LC_ALL
26121LANGUAGE=C
26122export LANGUAGE
26123
26124# CDPATH.
26125(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26126
26127
26128# as_fn_error STATUS ERROR [LINENO LOG_FD]
26129# ----------------------------------------
26130# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26131# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26132# script with STATUS, using 1 if that was 0.
26133as_fn_error ()
26134{
26135  as_status=$1; test $as_status -eq 0 && as_status=1
26136  if test "$4"; then
26137    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26138    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26139  fi
26140  $as_echo "$as_me: error: $2" >&2
26141  as_fn_exit $as_status
26142} # as_fn_error
26143
26144
26145# as_fn_set_status STATUS
26146# -----------------------
26147# Set $? to STATUS, without forking.
26148as_fn_set_status ()
26149{
26150  return $1
26151} # as_fn_set_status
26152
26153# as_fn_exit STATUS
26154# -----------------
26155# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26156as_fn_exit ()
26157{
26158  set +e
26159  as_fn_set_status $1
26160  exit $1
26161} # as_fn_exit
26162
26163# as_fn_unset VAR
26164# ---------------
26165# Portably unset VAR.
26166as_fn_unset ()
26167{
26168  { eval $1=; unset $1;}
26169}
26170as_unset=as_fn_unset
26171# as_fn_append VAR VALUE
26172# ----------------------
26173# Append the text in VALUE to the end of the definition contained in VAR. Take
26174# advantage of any shell optimizations that allow amortized linear growth over
26175# repeated appends, instead of the typical quadratic growth present in naive
26176# implementations.
26177if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26178  eval 'as_fn_append ()
26179  {
26180    eval $1+=\$2
26181  }'
26182else
26183  as_fn_append ()
26184  {
26185    eval $1=\$$1\$2
26186  }
26187fi # as_fn_append
26188
26189# as_fn_arith ARG...
26190# ------------------
26191# Perform arithmetic evaluation on the ARGs, and store the result in the
26192# global $as_val. Take advantage of shells that can avoid forks. The arguments
26193# must be portable across $(()) and expr.
26194if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26195  eval 'as_fn_arith ()
26196  {
26197    as_val=$(( $* ))
26198  }'
26199else
26200  as_fn_arith ()
26201  {
26202    as_val=`expr "$@" || test $? -eq 1`
26203  }
26204fi # as_fn_arith
26205
26206
26207if expr a : '\(a\)' >/dev/null 2>&1 &&
26208   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26209  as_expr=expr
26210else
26211  as_expr=false
26212fi
26213
26214if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26215  as_basename=basename
26216else
26217  as_basename=false
26218fi
26219
26220if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26221  as_dirname=dirname
26222else
26223  as_dirname=false
26224fi
26225
26226as_me=`$as_basename -- "$0" ||
26227$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26228	 X"$0" : 'X\(//\)$' \| \
26229	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26230$as_echo X/"$0" |
26231    sed '/^.*\/\([^/][^/]*\)\/*$/{
26232	    s//\1/
26233	    q
26234	  }
26235	  /^X\/\(\/\/\)$/{
26236	    s//\1/
26237	    q
26238	  }
26239	  /^X\/\(\/\).*/{
26240	    s//\1/
26241	    q
26242	  }
26243	  s/.*/./; q'`
26244
26245# Avoid depending upon Character Ranges.
26246as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26247as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26248as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26249as_cr_digits='0123456789'
26250as_cr_alnum=$as_cr_Letters$as_cr_digits
26251
26252ECHO_C= ECHO_N= ECHO_T=
26253case `echo -n x` in #(((((
26254-n*)
26255  case `echo 'xy\c'` in
26256  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
26257  xy)  ECHO_C='\c';;
26258  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26259       ECHO_T='	';;
26260  esac;;
26261*)
26262  ECHO_N='-n';;
26263esac
26264
26265rm -f conf$$ conf$$.exe conf$$.file
26266if test -d conf$$.dir; then
26267  rm -f conf$$.dir/conf$$.file
26268else
26269  rm -f conf$$.dir
26270  mkdir conf$$.dir 2>/dev/null
26271fi
26272if (echo >conf$$.file) 2>/dev/null; then
26273  if ln -s conf$$.file conf$$ 2>/dev/null; then
26274    as_ln_s='ln -s'
26275    # ... but there are two gotchas:
26276    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26277    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26278    # In both cases, we have to default to `cp -pR'.
26279    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26280      as_ln_s='cp -pR'
26281  elif ln conf$$.file conf$$ 2>/dev/null; then
26282    as_ln_s=ln
26283  else
26284    as_ln_s='cp -pR'
26285  fi
26286else
26287  as_ln_s='cp -pR'
26288fi
26289rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26290rmdir conf$$.dir 2>/dev/null
26291
26292
26293# as_fn_mkdir_p
26294# -------------
26295# Create "$as_dir" as a directory, including parents if necessary.
26296as_fn_mkdir_p ()
26297{
26298
26299  case $as_dir in #(
26300  -*) as_dir=./$as_dir;;
26301  esac
26302  test -d "$as_dir" || eval $as_mkdir_p || {
26303    as_dirs=
26304    while :; do
26305      case $as_dir in #(
26306      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26307      *) as_qdir=$as_dir;;
26308      esac
26309      as_dirs="'$as_qdir' $as_dirs"
26310      as_dir=`$as_dirname -- "$as_dir" ||
26311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26312	 X"$as_dir" : 'X\(//\)[^/]' \| \
26313	 X"$as_dir" : 'X\(//\)$' \| \
26314	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26315$as_echo X"$as_dir" |
26316    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26317	    s//\1/
26318	    q
26319	  }
26320	  /^X\(\/\/\)[^/].*/{
26321	    s//\1/
26322	    q
26323	  }
26324	  /^X\(\/\/\)$/{
26325	    s//\1/
26326	    q
26327	  }
26328	  /^X\(\/\).*/{
26329	    s//\1/
26330	    q
26331	  }
26332	  s/.*/./; q'`
26333      test -d "$as_dir" && break
26334    done
26335    test -z "$as_dirs" || eval "mkdir $as_dirs"
26336  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26337
26338
26339} # as_fn_mkdir_p
26340if mkdir -p . 2>/dev/null; then
26341  as_mkdir_p='mkdir -p "$as_dir"'
26342else
26343  test -d ./-p && rmdir ./-p
26344  as_mkdir_p=false
26345fi
26346
26347
26348# as_fn_executable_p FILE
26349# -----------------------
26350# Test if FILE is an executable regular file.
26351as_fn_executable_p ()
26352{
26353  test -f "$1" && test -x "$1"
26354} # as_fn_executable_p
26355as_test_x='test -x'
26356as_executable_p=as_fn_executable_p
26357
26358# Sed expression to map a string onto a valid CPP name.
26359as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26360
26361# Sed expression to map a string onto a valid variable name.
26362as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26363
26364
26365exec 6>&1
26366## ----------------------------------- ##
26367## Main body of $CONFIG_STATUS script. ##
26368## ----------------------------------- ##
26369_ASEOF
26370test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26371
26372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26373# Save the log message, to keep $0 and so on meaningful, and to
26374# report actual input values of CONFIG_FILES etc. instead of their
26375# values after options handling.
26376ac_log="
26377This file was extended by $as_me, which was
26378generated by GNU Autoconf 2.69.  Invocation command line was
26379
26380  CONFIG_FILES    = $CONFIG_FILES
26381  CONFIG_HEADERS  = $CONFIG_HEADERS
26382  CONFIG_LINKS    = $CONFIG_LINKS
26383  CONFIG_COMMANDS = $CONFIG_COMMANDS
26384  $ $0 $@
26385
26386on `(hostname || uname -n) 2>/dev/null | sed 1q`
26387"
26388
26389_ACEOF
26390
26391case $ac_config_files in *"
26392"*) set x $ac_config_files; shift; ac_config_files=$*;;
26393esac
26394
26395case $ac_config_headers in *"
26396"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26397esac
26398
26399
26400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26401# Files that config.status was made for.
26402config_files="$ac_config_files"
26403config_headers="$ac_config_headers"
26404config_commands="$ac_config_commands"
26405
26406_ACEOF
26407
26408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26409ac_cs_usage="\
26410\`$as_me' instantiates files and other configuration actions
26411from templates according to the current configuration.  Unless the files
26412and actions are specified as TAGs, all are instantiated by default.
26413
26414Usage: $0 [OPTION]... [TAG]...
26415
26416  -h, --help       print this help, then exit
26417  -V, --version    print version number and configuration settings, then exit
26418      --config     print configuration, then exit
26419  -q, --quiet, --silent
26420                   do not print progress messages
26421  -d, --debug      don't remove temporary files
26422      --recheck    update $as_me by reconfiguring in the same conditions
26423      --file=FILE[:TEMPLATE]
26424                   instantiate the configuration file FILE
26425      --header=FILE[:TEMPLATE]
26426                   instantiate the configuration header FILE
26427
26428Configuration files:
26429$config_files
26430
26431Configuration headers:
26432$config_headers
26433
26434Configuration commands:
26435$config_commands
26436
26437Report bugs to the package provider."
26438
26439_ACEOF
26440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26441ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26442ac_cs_version="\\
26443config.status
26444configured by $0, generated by GNU Autoconf 2.69,
26445  with options \\"\$ac_cs_config\\"
26446
26447Copyright (C) 2012 Free Software Foundation, Inc.
26448This config.status script is free software; the Free Software Foundation
26449gives unlimited permission to copy, distribute and modify it."
26450
26451ac_pwd='$ac_pwd'
26452srcdir='$srcdir'
26453AWK='$AWK'
26454test -n "\$AWK" || AWK=awk
26455_ACEOF
26456
26457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26458# The default lists apply if the user does not specify any file.
26459ac_need_defaults=:
26460while test $# != 0
26461do
26462  case $1 in
26463  --*=?*)
26464    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26465    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26466    ac_shift=:
26467    ;;
26468  --*=)
26469    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26470    ac_optarg=
26471    ac_shift=:
26472    ;;
26473  *)
26474    ac_option=$1
26475    ac_optarg=$2
26476    ac_shift=shift
26477    ;;
26478  esac
26479
26480  case $ac_option in
26481  # Handling of the options.
26482  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26483    ac_cs_recheck=: ;;
26484  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26485    $as_echo "$ac_cs_version"; exit ;;
26486  --config | --confi | --conf | --con | --co | --c )
26487    $as_echo "$ac_cs_config"; exit ;;
26488  --debug | --debu | --deb | --de | --d | -d )
26489    debug=: ;;
26490  --file | --fil | --fi | --f )
26491    $ac_shift
26492    case $ac_optarg in
26493    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26494    '') as_fn_error $? "missing file argument" ;;
26495    esac
26496    as_fn_append CONFIG_FILES " '$ac_optarg'"
26497    ac_need_defaults=false;;
26498  --header | --heade | --head | --hea )
26499    $ac_shift
26500    case $ac_optarg in
26501    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26502    esac
26503    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26504    ac_need_defaults=false;;
26505  --he | --h)
26506    # Conflict between --help and --header
26507    as_fn_error $? "ambiguous option: \`$1'
26508Try \`$0 --help' for more information.";;
26509  --help | --hel | -h )
26510    $as_echo "$ac_cs_usage"; exit ;;
26511  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26512  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26513    ac_cs_silent=: ;;
26514
26515  # This is an error.
26516  -*) as_fn_error $? "unrecognized option: \`$1'
26517Try \`$0 --help' for more information." ;;
26518
26519  *) as_fn_append ac_config_targets " $1"
26520     ac_need_defaults=false ;;
26521
26522  esac
26523  shift
26524done
26525
26526ac_configure_extra_args=
26527
26528if $ac_cs_silent; then
26529  exec 6>/dev/null
26530  ac_configure_extra_args="$ac_configure_extra_args --silent"
26531fi
26532
26533_ACEOF
26534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26535if \$ac_cs_recheck; then
26536  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26537  shift
26538  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26539  CONFIG_SHELL='$SHELL'
26540  export CONFIG_SHELL
26541  exec "\$@"
26542fi
26543
26544_ACEOF
26545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26546exec 5>>config.log
26547{
26548  echo
26549  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26550## Running $as_me. ##
26551_ASBOX
26552  $as_echo "$ac_log"
26553} >&5
26554
26555_ACEOF
26556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26557#
26558# INIT-COMMANDS
26559#
26560
26561
26562# The HP-UX ksh and POSIX shell print the target directory to stdout
26563# if CDPATH is set.
26564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26565
26566sed_quote_subst='$sed_quote_subst'
26567double_quote_subst='$double_quote_subst'
26568delay_variable_subst='$delay_variable_subst'
26569enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26570enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26571AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26572DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26573OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26574macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26575macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26576pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26577enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26578shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
26579SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26580ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26581PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26582host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26583host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26584host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26585build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26586build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26587build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26588SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26589Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26590GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26591EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26592FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26593LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26594NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26595LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26596max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26597ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26598exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26599lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26600lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26601lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26602lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26603lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26604reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26605reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26606deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26607file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26608file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26609want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26610sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26611AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26612AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26613archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26614STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26615RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26616old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26617old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26618old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26619lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26620CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26621CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26622compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26623GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26624lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26625lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26626lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
26627lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26628lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
26629lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
26630nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26631lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26632lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
26633objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26634MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26635lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26636lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26637lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26638lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26639lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26640need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26641MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26642DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26643NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26644LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26645OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26646OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26647libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26648shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26649extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26650archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26651enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26652export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26653whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26654compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26655old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26656old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26657archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26658archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26659module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26660module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26661with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26662allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26663no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26664hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26665hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26666hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26667hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26668hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26669hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26670hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26671inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26672link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26673always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26674export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26675exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26676include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26677prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26678postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26679file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26680variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26681need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26682need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26683version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26684runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26685shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26686shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26687libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26688library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26689soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26690install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26691postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26692postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26693finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26694finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26695hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26696sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26697configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
26698configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
26699hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26700enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26701enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26702enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26703old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26704striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26705
26706LTCC='$LTCC'
26707LTCFLAGS='$LTCFLAGS'
26708compiler='$compiler_DEFAULT'
26709
26710# A function that is used when there is no print builtin or printf.
26711func_fallback_echo ()
26712{
26713  eval 'cat <<_LTECHO_EOF
26714\$1
26715_LTECHO_EOF'
26716}
26717
26718# Quote evaled strings.
26719for var in AS \
26720DLLTOOL \
26721OBJDUMP \
26722SHELL \
26723ECHO \
26724PATH_SEPARATOR \
26725SED \
26726GREP \
26727EGREP \
26728FGREP \
26729LD \
26730NM \
26731LN_S \
26732lt_SP2NL \
26733lt_NL2SP \
26734reload_flag \
26735deplibs_check_method \
26736file_magic_cmd \
26737file_magic_glob \
26738want_nocaseglob \
26739sharedlib_from_linklib_cmd \
26740AR \
26741AR_FLAGS \
26742archiver_list_spec \
26743STRIP \
26744RANLIB \
26745CC \
26746CFLAGS \
26747compiler \
26748lt_cv_sys_global_symbol_pipe \
26749lt_cv_sys_global_symbol_to_cdecl \
26750lt_cv_sys_global_symbol_to_import \
26751lt_cv_sys_global_symbol_to_c_name_address \
26752lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26753lt_cv_nm_interface \
26754nm_file_list_spec \
26755lt_cv_truncate_bin \
26756lt_prog_compiler_no_builtin_flag \
26757lt_prog_compiler_pic \
26758lt_prog_compiler_wl \
26759lt_prog_compiler_static \
26760lt_cv_prog_compiler_c_o \
26761need_locks \
26762MANIFEST_TOOL \
26763DSYMUTIL \
26764NMEDIT \
26765LIPO \
26766OTOOL \
26767OTOOL64 \
26768shrext_cmds \
26769export_dynamic_flag_spec \
26770whole_archive_flag_spec \
26771compiler_needs_object \
26772with_gnu_ld \
26773allow_undefined_flag \
26774no_undefined_flag \
26775hardcode_libdir_flag_spec \
26776hardcode_libdir_separator \
26777exclude_expsyms \
26778include_expsyms \
26779file_list_spec \
26780variables_saved_for_relink \
26781libname_spec \
26782library_names_spec \
26783soname_spec \
26784install_override_mode \
26785finish_eval \
26786old_striplib \
26787striplib; do
26788    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26789    *[\\\\\\\`\\"\\\$]*)
26790      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26791      ;;
26792    *)
26793      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26794      ;;
26795    esac
26796done
26797
26798# Double-quote double-evaled strings.
26799for var in reload_cmds \
26800old_postinstall_cmds \
26801old_postuninstall_cmds \
26802old_archive_cmds \
26803extract_expsyms_cmds \
26804old_archive_from_new_cmds \
26805old_archive_from_expsyms_cmds \
26806archive_cmds \
26807archive_expsym_cmds \
26808module_cmds \
26809module_expsym_cmds \
26810export_symbols_cmds \
26811prelink_cmds \
26812postlink_cmds \
26813postinstall_cmds \
26814postuninstall_cmds \
26815finish_cmds \
26816sys_lib_search_path_spec \
26817configure_time_dlsearch_path \
26818configure_time_lt_sys_library_path; do
26819    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26820    *[\\\\\\\`\\"\\\$]*)
26821      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26822      ;;
26823    *)
26824      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26825      ;;
26826    esac
26827done
26828
26829ac_aux_dir='$ac_aux_dir'
26830
26831# See if we are running on zsh, and set the options that allow our
26832# commands through without removal of \ escapes INIT.
26833if test -n "\${ZSH_VERSION+set}"; then
26834   setopt NO_GLOB_SUBST
26835fi
26836
26837
26838    PACKAGE='$PACKAGE'
26839    VERSION='$VERSION'
26840    RM='$RM'
26841    ofile='$ofile'
26842
26843
26844
26845
26846STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
26847STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
26848
26849
26850_ACEOF
26851
26852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26853
26854# Handling of arguments.
26855for ac_config_target in $ac_config_targets
26856do
26857  case $ac_config_target in
26858    "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
26859    "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
26860    "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
26861    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26862    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
26863    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
26864    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
26865    "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
26866    "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
26867    "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
26868    "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
26869    "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
26870    "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
26871    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
26872    "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
26873    "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
26874    "libraries/liblber/lber.pc") CONFIG_FILES="$CONFIG_FILES libraries/liblber/lber.pc" ;;
26875    "libraries/liblber/liblber.vers") CONFIG_FILES="$CONFIG_FILES libraries/liblber/liblber.vers" ;;
26876    "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
26877    "libraries/libldap/ldap.pc") CONFIG_FILES="$CONFIG_FILES libraries/libldap/ldap.pc" ;;
26878    "libraries/libldap/libldap.vers") CONFIG_FILES="$CONFIG_FILES libraries/libldap/libldap.vers" ;;
26879    "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
26880    "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
26881    "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
26882    "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
26883    "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
26884    "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" ;;
26885    "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" ;;
26886    "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" ;;
26887    "servers/slapd/back-mdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-mdb/Makefile:build/top.mk:servers/slapd/back-mdb/Makefile.in:build/mod.mk" ;;
26888    "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" ;;
26889    "servers/slapd/back-asyncmeta/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-asyncmeta/Makefile:build/top.mk:servers/slapd/back-asyncmeta/Makefile.in:build/mod.mk" ;;
26890    "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" ;;
26891    "servers/slapd/back-ndb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk" ;;
26892    "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" ;;
26893    "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" ;;
26894    "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" ;;
26895    "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" ;;
26896    "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" ;;
26897    "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" ;;
26898    "servers/slapd/back-wt/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-wt/Makefile:build/top.mk:servers/slapd/back-wt/Makefile.in:build/mod.mk" ;;
26899    "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" ;;
26900    "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
26901    "servers/slapd/pwmods/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/pwmods/Makefile:build/top.mk:servers/slapd/pwmods/Makefile.in:build/lib.mk" ;;
26902    "servers/lloadd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/lloadd/Makefile:build/top.mk:servers/lloadd/Makefile.in" ;;
26903    "servers/lloadd/Makefile.server") CONFIG_FILES="$CONFIG_FILES servers/lloadd/Makefile.server:servers/lloadd/Makefile_server.in:build/srv.mk" ;;
26904    "servers/lloadd/Makefile.module") CONFIG_FILES="$CONFIG_FILES servers/lloadd/Makefile.module:servers/lloadd/Makefile_module.in:build/mod.mk" ;;
26905    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
26906    "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
26907    "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
26908    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26909
26910  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26911  esac
26912done
26913
26914
26915# If the user did not use the arguments to specify the items to instantiate,
26916# then the envvar interface is used.  Set only those that are not.
26917# We use the long form for the default assignment because of an extremely
26918# bizarre bug on SunOS 4.1.3.
26919if $ac_need_defaults; then
26920  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26921  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26922  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26923fi
26924
26925# Have a temporary directory for convenience.  Make it in the build tree
26926# simply because there is no reason against having it here, and in addition,
26927# creating and moving files from /tmp can sometimes cause problems.
26928# Hook for its removal unless debugging.
26929# Note that there is a small window in which the directory will not be cleaned:
26930# after its creation but before its name has been assigned to `$tmp'.
26931$debug ||
26932{
26933  tmp= ac_tmp=
26934  trap 'exit_status=$?
26935  : "${ac_tmp:=$tmp}"
26936  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26937' 0
26938  trap 'as_fn_exit 1' 1 2 13 15
26939}
26940# Create a (secure) tmp directory for tmp files.
26941
26942{
26943  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26944  test -d "$tmp"
26945}  ||
26946{
26947  tmp=./conf$$-$RANDOM
26948  (umask 077 && mkdir "$tmp")
26949} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26950ac_tmp=$tmp
26951
26952# Set up the scripts for CONFIG_FILES section.
26953# No need to generate them if there are no CONFIG_FILES.
26954# This happens for instance with `./config.status config.h'.
26955if test -n "$CONFIG_FILES"; then
26956
26957
26958ac_cr=`echo X | tr X '\015'`
26959# On cygwin, bash can eat \r inside `` if the user requested igncr.
26960# But we know of no other shell where ac_cr would be empty at this
26961# point, so we can use a bashism as a fallback.
26962if test "x$ac_cr" = x; then
26963  eval ac_cr=\$\'\\r\'
26964fi
26965ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26966if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26967  ac_cs_awk_cr='\\r'
26968else
26969  ac_cs_awk_cr=$ac_cr
26970fi
26971
26972echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26973_ACEOF
26974
26975
26976{
26977  echo "cat >conf$$subs.awk <<_ACEOF" &&
26978  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26979  echo "_ACEOF"
26980} >conf$$subs.sh ||
26981  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26982ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26983ac_delim='%!_!# '
26984for ac_last_try in false false false false false :; do
26985  . ./conf$$subs.sh ||
26986    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26987
26988  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26989  if test $ac_delim_n = $ac_delim_num; then
26990    break
26991  elif $ac_last_try; then
26992    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26993  else
26994    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26995  fi
26996done
26997rm -f conf$$subs.sh
26998
26999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27000cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27001_ACEOF
27002sed -n '
27003h
27004s/^/S["/; s/!.*/"]=/
27005p
27006g
27007s/^[^!]*!//
27008:repl
27009t repl
27010s/'"$ac_delim"'$//
27011t delim
27012:nl
27013h
27014s/\(.\{148\}\)..*/\1/
27015t more1
27016s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27017p
27018n
27019b repl
27020:more1
27021s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27022p
27023g
27024s/.\{148\}//
27025t nl
27026:delim
27027h
27028s/\(.\{148\}\)..*/\1/
27029t more2
27030s/["\\]/\\&/g; s/^/"/; s/$/"/
27031p
27032b
27033:more2
27034s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27035p
27036g
27037s/.\{148\}//
27038t delim
27039' <conf$$subs.awk | sed '
27040/^[^""]/{
27041  N
27042  s/\n//
27043}
27044' >>$CONFIG_STATUS || ac_write_fail=1
27045rm -f conf$$subs.awk
27046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27047_ACAWK
27048cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27049  for (key in S) S_is_set[key] = 1
27050  FS = ""
27051
27052}
27053{
27054  line = $ 0
27055  nfields = split(line, field, "@")
27056  substed = 0
27057  len = length(field[1])
27058  for (i = 2; i < nfields; i++) {
27059    key = field[i]
27060    keylen = length(key)
27061    if (S_is_set[key]) {
27062      value = S[key]
27063      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27064      len += length(value) + length(field[++i])
27065      substed = 1
27066    } else
27067      len += 1 + keylen
27068  }
27069
27070  print line
27071}
27072
27073_ACAWK
27074_ACEOF
27075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27076if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27077  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27078else
27079  cat
27080fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27081  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27082_ACEOF
27083
27084# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27085# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27086# trailing colons and then remove the whole line if VPATH becomes empty
27087# (actually we leave an empty line to preserve line numbers).
27088if test "x$srcdir" = x.; then
27089  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
27090h
27091s///
27092s/^/:/
27093s/[	 ]*$/:/
27094s/:\$(srcdir):/:/g
27095s/:\${srcdir}:/:/g
27096s/:@srcdir@:/:/g
27097s/^:*//
27098s/:*$//
27099x
27100s/\(=[	 ]*\).*/\1/
27101G
27102s/\n//
27103s/^[^=]*=[	 ]*$//
27104}'
27105fi
27106
27107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27108fi # test -n "$CONFIG_FILES"
27109
27110# Set up the scripts for CONFIG_HEADERS section.
27111# No need to generate them if there are no CONFIG_HEADERS.
27112# This happens for instance with `./config.status Makefile'.
27113if test -n "$CONFIG_HEADERS"; then
27114cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27115BEGIN {
27116_ACEOF
27117
27118# Transform confdefs.h into an awk script `defines.awk', embedded as
27119# here-document in config.status, that substitutes the proper values into
27120# config.h.in to produce config.h.
27121
27122# Create a delimiter string that does not exist in confdefs.h, to ease
27123# handling of long lines.
27124ac_delim='%!_!# '
27125for ac_last_try in false false :; do
27126  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27127  if test -z "$ac_tt"; then
27128    break
27129  elif $ac_last_try; then
27130    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27131  else
27132    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27133  fi
27134done
27135
27136# For the awk script, D is an array of macro values keyed by name,
27137# likewise P contains macro parameters if any.  Preserve backslash
27138# newline sequences.
27139
27140ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27141sed -n '
27142s/.\{148\}/&'"$ac_delim"'/g
27143t rset
27144:rset
27145s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
27146t def
27147d
27148:def
27149s/\\$//
27150t bsnl
27151s/["\\]/\\&/g
27152s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27153D["\1"]=" \3"/p
27154s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
27155d
27156:bsnl
27157s/["\\]/\\&/g
27158s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27159D["\1"]=" \3\\\\\\n"\\/p
27160t cont
27161s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27162t cont
27163d
27164:cont
27165n
27166s/.\{148\}/&'"$ac_delim"'/g
27167t clear
27168:clear
27169s/\\$//
27170t bsnlc
27171s/["\\]/\\&/g; s/^/"/; s/$/"/p
27172d
27173:bsnlc
27174s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27175b cont
27176' <confdefs.h | sed '
27177s/'"$ac_delim"'/"\\\
27178"/g' >>$CONFIG_STATUS || ac_write_fail=1
27179
27180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27181  for (key in D) D_is_set[key] = 1
27182  FS = ""
27183}
27184/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27185  line = \$ 0
27186  split(line, arg, " ")
27187  if (arg[1] == "#") {
27188    defundef = arg[2]
27189    mac1 = arg[3]
27190  } else {
27191    defundef = substr(arg[1], 2)
27192    mac1 = arg[2]
27193  }
27194  split(mac1, mac2, "(") #)
27195  macro = mac2[1]
27196  prefix = substr(line, 1, index(line, defundef) - 1)
27197  if (D_is_set[macro]) {
27198    # Preserve the white space surrounding the "#".
27199    print prefix "define", macro P[macro] D[macro]
27200    next
27201  } else {
27202    # Replace #undef with comments.  This is necessary, for example,
27203    # in the case of _POSIX_SOURCE, which is predefined and required
27204    # on some systems where configure will not decide to define it.
27205    if (defundef == "undef") {
27206      print "/*", prefix defundef, macro, "*/"
27207      next
27208    }
27209  }
27210}
27211{ print }
27212_ACAWK
27213_ACEOF
27214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27215  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27216fi # test -n "$CONFIG_HEADERS"
27217
27218
27219eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27220shift
27221for ac_tag
27222do
27223  case $ac_tag in
27224  :[FHLC]) ac_mode=$ac_tag; continue;;
27225  esac
27226  case $ac_mode$ac_tag in
27227  :[FHL]*:*);;
27228  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27229  :[FH]-) ac_tag=-:-;;
27230  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27231  esac
27232  ac_save_IFS=$IFS
27233  IFS=:
27234  set x $ac_tag
27235  IFS=$ac_save_IFS
27236  shift
27237  ac_file=$1
27238  shift
27239
27240  case $ac_mode in
27241  :L) ac_source=$1;;
27242  :[FH])
27243    ac_file_inputs=
27244    for ac_f
27245    do
27246      case $ac_f in
27247      -) ac_f="$ac_tmp/stdin";;
27248      *) # Look for the file first in the build tree, then in the source tree
27249	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
27250	 # because $ac_f cannot contain `:'.
27251	 test -f "$ac_f" ||
27252	   case $ac_f in
27253	   [\\/$]*) false;;
27254	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27255	   esac ||
27256	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27257      esac
27258      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27259      as_fn_append ac_file_inputs " '$ac_f'"
27260    done
27261
27262    # Let's still pretend it is `configure' which instantiates (i.e., don't
27263    # use $as_me), people would be surprised to read:
27264    #    /* config.h.  Generated by config.status.  */
27265    configure_input='Generated from '`
27266	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27267	`' by configure.'
27268    if test x"$ac_file" != x-; then
27269      configure_input="$ac_file.  $configure_input"
27270      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27271$as_echo "$as_me: creating $ac_file" >&6;}
27272    fi
27273    # Neutralize special characters interpreted by sed in replacement strings.
27274    case $configure_input in #(
27275    *\&* | *\|* | *\\* )
27276       ac_sed_conf_input=`$as_echo "$configure_input" |
27277       sed 's/[\\\\&|]/\\\\&/g'`;; #(
27278    *) ac_sed_conf_input=$configure_input;;
27279    esac
27280
27281    case $ac_tag in
27282    *:-:* | *:-) cat >"$ac_tmp/stdin" \
27283      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27284    esac
27285    ;;
27286  esac
27287
27288  ac_dir=`$as_dirname -- "$ac_file" ||
27289$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27290	 X"$ac_file" : 'X\(//\)[^/]' \| \
27291	 X"$ac_file" : 'X\(//\)$' \| \
27292	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27293$as_echo X"$ac_file" |
27294    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27295	    s//\1/
27296	    q
27297	  }
27298	  /^X\(\/\/\)[^/].*/{
27299	    s//\1/
27300	    q
27301	  }
27302	  /^X\(\/\/\)$/{
27303	    s//\1/
27304	    q
27305	  }
27306	  /^X\(\/\).*/{
27307	    s//\1/
27308	    q
27309	  }
27310	  s/.*/./; q'`
27311  as_dir="$ac_dir"; as_fn_mkdir_p
27312  ac_builddir=.
27313
27314case "$ac_dir" in
27315.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27316*)
27317  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27318  # A ".." for each directory in $ac_dir_suffix.
27319  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27320  case $ac_top_builddir_sub in
27321  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27322  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27323  esac ;;
27324esac
27325ac_abs_top_builddir=$ac_pwd
27326ac_abs_builddir=$ac_pwd$ac_dir_suffix
27327# for backward compatibility:
27328ac_top_builddir=$ac_top_build_prefix
27329
27330case $srcdir in
27331  .)  # We are building in place.
27332    ac_srcdir=.
27333    ac_top_srcdir=$ac_top_builddir_sub
27334    ac_abs_top_srcdir=$ac_pwd ;;
27335  [\\/]* | ?:[\\/]* )  # Absolute name.
27336    ac_srcdir=$srcdir$ac_dir_suffix;
27337    ac_top_srcdir=$srcdir
27338    ac_abs_top_srcdir=$srcdir ;;
27339  *) # Relative name.
27340    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27341    ac_top_srcdir=$ac_top_build_prefix$srcdir
27342    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27343esac
27344ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27345
27346
27347  case $ac_mode in
27348  :F)
27349  #
27350  # CONFIG_FILE
27351  #
27352
27353_ACEOF
27354
27355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27356# If the template does not know about datarootdir, expand it.
27357# FIXME: This hack should be removed a few years after 2.60.
27358ac_datarootdir_hack=; ac_datarootdir_seen=
27359ac_sed_dataroot='
27360/datarootdir/ {
27361  p
27362  q
27363}
27364/@datadir@/p
27365/@docdir@/p
27366/@infodir@/p
27367/@localedir@/p
27368/@mandir@/p'
27369case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27370*datarootdir*) ac_datarootdir_seen=yes;;
27371*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27372  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27373$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27374_ACEOF
27375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27376  ac_datarootdir_hack='
27377  s&@datadir@&$datadir&g
27378  s&@docdir@&$docdir&g
27379  s&@infodir@&$infodir&g
27380  s&@localedir@&$localedir&g
27381  s&@mandir@&$mandir&g
27382  s&\\\${datarootdir}&$datarootdir&g' ;;
27383esac
27384_ACEOF
27385
27386# Neutralize VPATH when `$srcdir' = `.'.
27387# Shell code in configure.ac might set extrasub.
27388# FIXME: do we really want to maintain this feature?
27389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27390ac_sed_extra="$ac_vpsub
27391$extrasub
27392_ACEOF
27393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27394:t
27395/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27396s|@configure_input@|$ac_sed_conf_input|;t t
27397s&@top_builddir@&$ac_top_builddir_sub&;t t
27398s&@top_build_prefix@&$ac_top_build_prefix&;t t
27399s&@srcdir@&$ac_srcdir&;t t
27400s&@abs_srcdir@&$ac_abs_srcdir&;t t
27401s&@top_srcdir@&$ac_top_srcdir&;t t
27402s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27403s&@builddir@&$ac_builddir&;t t
27404s&@abs_builddir@&$ac_abs_builddir&;t t
27405s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27406$ac_datarootdir_hack
27407"
27408eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27409  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27410
27411test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27412  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27413  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
27414      "$ac_tmp/out"`; test -z "$ac_out"; } &&
27415  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27416which seems to be undefined.  Please make sure it is defined" >&5
27417$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27418which seems to be undefined.  Please make sure it is defined" >&2;}
27419
27420  rm -f "$ac_tmp/stdin"
27421  case $ac_file in
27422  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27423  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27424  esac \
27425  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27426 ;;
27427  :H)
27428  #
27429  # CONFIG_HEADER
27430  #
27431  if test x"$ac_file" != x-; then
27432    {
27433      $as_echo "/* $configure_input  */" \
27434      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27435    } >"$ac_tmp/config.h" \
27436      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27437    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27438      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27439$as_echo "$as_me: $ac_file is unchanged" >&6;}
27440    else
27441      rm -f "$ac_file"
27442      mv "$ac_tmp/config.h" "$ac_file" \
27443	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
27444    fi
27445  else
27446    $as_echo "/* $configure_input  */" \
27447      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27448      || as_fn_error $? "could not create -" "$LINENO" 5
27449  fi
27450 ;;
27451
27452  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27453$as_echo "$as_me: executing $ac_file commands" >&6;}
27454 ;;
27455  esac
27456
27457
27458  case $ac_file$ac_mode in
27459    "libtool":C)
27460
27461    # See if we are running on zsh, and set the options that allow our
27462    # commands through without removal of \ escapes.
27463    if test -n "${ZSH_VERSION+set}"; then
27464      setopt NO_GLOB_SUBST
27465    fi
27466
27467    cfgfile=${ofile}T
27468    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27469    $RM "$cfgfile"
27470
27471    cat <<_LT_EOF >> "$cfgfile"
27472#! $SHELL
27473# Generated automatically by $as_me ($PACKAGE) $VERSION
27474# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27475# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27476
27477# Provide generalized library-building support services.
27478# Written by Gordon Matzigkeit, 1996
27479
27480# Copyright (C) 2014 Free Software Foundation, Inc.
27481# This is free software; see the source for copying conditions.  There is NO
27482# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27483
27484# GNU Libtool is free software; you can redistribute it and/or modify
27485# it under the terms of the GNU General Public License as published by
27486# the Free Software Foundation; either version 2 of of the License, or
27487# (at your option) any later version.
27488#
27489# As a special exception to the GNU General Public License, if you
27490# distribute this file as part of a program or library that is built
27491# using GNU Libtool, you may include this file under the  same
27492# distribution terms that you use for the rest of that program.
27493#
27494# GNU Libtool is distributed in the hope that it will be useful, but
27495# WITHOUT ANY WARRANTY; without even the implied warranty of
27496# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27497# GNU General Public License for more details.
27498#
27499# You should have received a copy of the GNU General Public License
27500# along with this program.  If not, see <http://www.gnu.org/licenses/>.
27501
27502
27503# The names of the tagged configurations supported by this script.
27504available_tags=''
27505
27506# Configured defaults for sys_lib_dlsearch_path munging.
27507: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
27508
27509# ### BEGIN LIBTOOL CONFIG
27510
27511# Whether or not to build static libraries.
27512build_old_libs=$enable_static
27513
27514# Whether or not to build shared libraries.
27515build_libtool_libs=$enable_shared
27516
27517# Assembler program.
27518AS=$lt_AS
27519
27520# DLL creation program.
27521DLLTOOL=$lt_DLLTOOL
27522
27523# Object dumper program.
27524OBJDUMP=$lt_OBJDUMP
27525
27526# Which release of libtool.m4 was used?
27527macro_version=$macro_version
27528macro_revision=$macro_revision
27529
27530# What type of objects to build.
27531pic_mode=$pic_mode
27532
27533# Whether or not to optimize for fast installation.
27534fast_install=$enable_fast_install
27535
27536# Shared archive member basename,for filename based shared library versioning on AIX.
27537shared_archive_member_spec=$shared_archive_member_spec
27538
27539# Shell to use when invoking shell scripts.
27540SHELL=$lt_SHELL
27541
27542# An echo program that protects backslashes.
27543ECHO=$lt_ECHO
27544
27545# The PATH separator for the build system.
27546PATH_SEPARATOR=$lt_PATH_SEPARATOR
27547
27548# The host system.
27549host_alias=$host_alias
27550host=$host
27551host_os=$host_os
27552
27553# The build system.
27554build_alias=$build_alias
27555build=$build
27556build_os=$build_os
27557
27558# A sed program that does not truncate output.
27559SED=$lt_SED
27560
27561# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27562Xsed="\$SED -e 1s/^X//"
27563
27564# A grep program that handles long lines.
27565GREP=$lt_GREP
27566
27567# An ERE matcher.
27568EGREP=$lt_EGREP
27569
27570# A literal string matcher.
27571FGREP=$lt_FGREP
27572
27573# A BSD- or MS-compatible name lister.
27574NM=$lt_NM
27575
27576# Whether we need soft or hard links.
27577LN_S=$lt_LN_S
27578
27579# What is the maximum length of a command?
27580max_cmd_len=$max_cmd_len
27581
27582# Object file suffix (normally "o").
27583objext=$ac_objext
27584
27585# Executable file suffix (normally "").
27586exeext=$exeext
27587
27588# whether the shell understands "unset".
27589lt_unset=$lt_unset
27590
27591# turn spaces into newlines.
27592SP2NL=$lt_lt_SP2NL
27593
27594# turn newlines into spaces.
27595NL2SP=$lt_lt_NL2SP
27596
27597# convert \$build file names to \$host format.
27598to_host_file_cmd=$lt_cv_to_host_file_cmd
27599
27600# convert \$build files to toolchain format.
27601to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27602
27603# Method to check whether dependent libraries are shared objects.
27604deplibs_check_method=$lt_deplibs_check_method
27605
27606# Command to use when deplibs_check_method = "file_magic".
27607file_magic_cmd=$lt_file_magic_cmd
27608
27609# How to find potential files when deplibs_check_method = "file_magic".
27610file_magic_glob=$lt_file_magic_glob
27611
27612# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27613want_nocaseglob=$lt_want_nocaseglob
27614
27615# Command to associate shared and link libraries.
27616sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27617
27618# The archiver.
27619AR=$lt_AR
27620
27621# Flags to create an archive.
27622AR_FLAGS=$lt_AR_FLAGS
27623
27624# How to feed a file listing to the archiver.
27625archiver_list_spec=$lt_archiver_list_spec
27626
27627# A symbol stripping program.
27628STRIP=$lt_STRIP
27629
27630# Commands used to install an old-style archive.
27631RANLIB=$lt_RANLIB
27632old_postinstall_cmds=$lt_old_postinstall_cmds
27633old_postuninstall_cmds=$lt_old_postuninstall_cmds
27634
27635# Whether to use a lock for old archive extraction.
27636lock_old_archive_extraction=$lock_old_archive_extraction
27637
27638# A C compiler.
27639LTCC=$lt_CC
27640
27641# LTCC compiler flags.
27642LTCFLAGS=$lt_CFLAGS
27643
27644# Take the output of nm and produce a listing of raw symbols and C names.
27645global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27646
27647# Transform the output of nm in a proper C declaration.
27648global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27649
27650# Transform the output of nm into a list of symbols to manually relocate.
27651global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
27652
27653# Transform the output of nm in a C name address pair.
27654global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27655
27656# Transform the output of nm in a C name address pair when lib prefix is needed.
27657global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27658
27659# The name lister interface.
27660nm_interface=$lt_lt_cv_nm_interface
27661
27662# Specify filename containing input files for \$NM.
27663nm_file_list_spec=$lt_nm_file_list_spec
27664
27665# The root where to search for dependent libraries,and where our libraries should be installed.
27666lt_sysroot=$lt_sysroot
27667
27668# Command to truncate a binary pipe.
27669lt_truncate_bin=$lt_lt_cv_truncate_bin
27670
27671# The name of the directory that contains temporary libtool files.
27672objdir=$objdir
27673
27674# Used to examine libraries when file_magic_cmd begins with "file".
27675MAGIC_CMD=$MAGIC_CMD
27676
27677# Must we lock files when doing compilation?
27678need_locks=$lt_need_locks
27679
27680# Manifest tool.
27681MANIFEST_TOOL=$lt_MANIFEST_TOOL
27682
27683# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27684DSYMUTIL=$lt_DSYMUTIL
27685
27686# Tool to change global to local symbols on Mac OS X.
27687NMEDIT=$lt_NMEDIT
27688
27689# Tool to manipulate fat objects and archives on Mac OS X.
27690LIPO=$lt_LIPO
27691
27692# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27693OTOOL=$lt_OTOOL
27694
27695# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27696OTOOL64=$lt_OTOOL64
27697
27698# Old archive suffix (normally "a").
27699libext=$libext
27700
27701# Shared library suffix (normally ".so").
27702shrext_cmds=$lt_shrext_cmds
27703
27704# The commands to extract the exported symbol list from a shared archive.
27705extract_expsyms_cmds=$lt_extract_expsyms_cmds
27706
27707# Variables whose values should be saved in libtool wrapper scripts and
27708# restored at link time.
27709variables_saved_for_relink=$lt_variables_saved_for_relink
27710
27711# Do we need the "lib" prefix for modules?
27712need_lib_prefix=$need_lib_prefix
27713
27714# Do we need a version for libraries?
27715need_version=$need_version
27716
27717# Library versioning type.
27718version_type=$version_type
27719
27720# Shared library runtime path variable.
27721runpath_var=$runpath_var
27722
27723# Shared library path variable.
27724shlibpath_var=$shlibpath_var
27725
27726# Is shlibpath searched before the hard-coded library search path?
27727shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27728
27729# Format of library name prefix.
27730libname_spec=$lt_libname_spec
27731
27732# List of archive names.  First name is the real one, the rest are links.
27733# The last name is the one that the linker finds with -lNAME
27734library_names_spec=$lt_library_names_spec
27735
27736# The coded name of the library, if different from the real name.
27737soname_spec=$lt_soname_spec
27738
27739# Permission mode override for installation of shared libraries.
27740install_override_mode=$lt_install_override_mode
27741
27742# Command to use after installation of a shared archive.
27743postinstall_cmds=$lt_postinstall_cmds
27744
27745# Command to use after uninstallation of a shared archive.
27746postuninstall_cmds=$lt_postuninstall_cmds
27747
27748# Commands used to finish a libtool library installation in a directory.
27749finish_cmds=$lt_finish_cmds
27750
27751# As "finish_cmds", except a single script fragment to be evaled but
27752# not shown.
27753finish_eval=$lt_finish_eval
27754
27755# Whether we should hardcode library paths into libraries.
27756hardcode_into_libs=$hardcode_into_libs
27757
27758# Compile-time system search path for libraries.
27759sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27760
27761# Detected run-time system search path for libraries.
27762sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
27763
27764# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
27765configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
27766
27767# Whether dlopen is supported.
27768dlopen_support=$enable_dlopen
27769
27770# Whether dlopen of programs is supported.
27771dlopen_self=$enable_dlopen_self
27772
27773# Whether dlopen of statically linked programs is supported.
27774dlopen_self_static=$enable_dlopen_self_static
27775
27776# Commands to strip libraries.
27777old_striplib=$lt_old_striplib
27778striplib=$lt_striplib
27779
27780
27781# The linker used to build libraries.
27782LD=$lt_LD
27783
27784# How to create reloadable object files.
27785reload_flag=$lt_reload_flag
27786reload_cmds=$lt_reload_cmds
27787
27788# Commands used to build an old-style archive.
27789old_archive_cmds=$lt_old_archive_cmds
27790
27791# A language specific compiler.
27792CC=$lt_compiler
27793
27794# Is the compiler the GNU compiler?
27795with_gcc=$GCC
27796
27797# Compiler flag to turn off builtin functions.
27798no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27799
27800# Additional compiler flags for building library objects.
27801pic_flag=$lt_lt_prog_compiler_pic
27802
27803# How to pass a linker flag through the compiler.
27804wl=$lt_lt_prog_compiler_wl
27805
27806# Compiler flag to prevent dynamic linking.
27807link_static_flag=$lt_lt_prog_compiler_static
27808
27809# Does compiler simultaneously support -c and -o options?
27810compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27811
27812# Whether or not to add -lc for building shared libraries.
27813build_libtool_need_lc=$archive_cmds_need_lc
27814
27815# Whether or not to disallow shared libs when runtime libs are static.
27816allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27817
27818# Compiler flag to allow reflexive dlopens.
27819export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27820
27821# Compiler flag to generate shared objects directly from archives.
27822whole_archive_flag_spec=$lt_whole_archive_flag_spec
27823
27824# Whether the compiler copes with passing no objects directly.
27825compiler_needs_object=$lt_compiler_needs_object
27826
27827# Create an old-style archive from a shared archive.
27828old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27829
27830# Create a temporary old-style archive to link instead of a shared archive.
27831old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27832
27833# Commands used to build a shared archive.
27834archive_cmds=$lt_archive_cmds
27835archive_expsym_cmds=$lt_archive_expsym_cmds
27836
27837# Commands used to build a loadable module if different from building
27838# a shared archive.
27839module_cmds=$lt_module_cmds
27840module_expsym_cmds=$lt_module_expsym_cmds
27841
27842# Whether we are building with GNU ld or not.
27843with_gnu_ld=$lt_with_gnu_ld
27844
27845# Flag that allows shared libraries with undefined symbols to be built.
27846allow_undefined_flag=$lt_allow_undefined_flag
27847
27848# Flag that enforces no undefined symbols.
27849no_undefined_flag=$lt_no_undefined_flag
27850
27851# Flag to hardcode \$libdir into a binary during linking.
27852# This must work even if \$libdir does not exist
27853hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27854
27855# Whether we need a single "-rpath" flag with a separated argument.
27856hardcode_libdir_separator=$lt_hardcode_libdir_separator
27857
27858# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27859# DIR into the resulting binary.
27860hardcode_direct=$hardcode_direct
27861
27862# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27863# DIR into the resulting binary and the resulting library dependency is
27864# "absolute",i.e impossible to change by setting \$shlibpath_var if the
27865# library is relocated.
27866hardcode_direct_absolute=$hardcode_direct_absolute
27867
27868# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27869# into the resulting binary.
27870hardcode_minus_L=$hardcode_minus_L
27871
27872# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27873# into the resulting binary.
27874hardcode_shlibpath_var=$hardcode_shlibpath_var
27875
27876# Set to "yes" if building a shared library automatically hardcodes DIR
27877# into the library and all subsequent libraries and executables linked
27878# against it.
27879hardcode_automatic=$hardcode_automatic
27880
27881# Set to yes if linker adds runtime paths of dependent libraries
27882# to runtime path list.
27883inherit_rpath=$inherit_rpath
27884
27885# Whether libtool must link a program against all its dependency libraries.
27886link_all_deplibs=$link_all_deplibs
27887
27888# Set to "yes" if exported symbols are required.
27889always_export_symbols=$always_export_symbols
27890
27891# The commands to list exported symbols.
27892export_symbols_cmds=$lt_export_symbols_cmds
27893
27894# Symbols that should not be listed in the preloaded symbols.
27895exclude_expsyms=$lt_exclude_expsyms
27896
27897# Symbols that must always be exported.
27898include_expsyms=$lt_include_expsyms
27899
27900# Commands necessary for linking programs (against libraries) with templates.
27901prelink_cmds=$lt_prelink_cmds
27902
27903# Commands necessary for finishing linking programs.
27904postlink_cmds=$lt_postlink_cmds
27905
27906# Specify filename containing input files.
27907file_list_spec=$lt_file_list_spec
27908
27909# How to hardcode a shared library path into an executable.
27910hardcode_action=$hardcode_action
27911
27912# ### END LIBTOOL CONFIG
27913
27914_LT_EOF
27915
27916    cat <<'_LT_EOF' >> "$cfgfile"
27917
27918# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
27919
27920# func_munge_path_list VARIABLE PATH
27921# -----------------------------------
27922# VARIABLE is name of variable containing _space_ separated list of
27923# directories to be munged by the contents of PATH, which is string
27924# having a format:
27925# "DIR[:DIR]:"
27926#       string "DIR[ DIR]" will be prepended to VARIABLE
27927# ":DIR[:DIR]"
27928#       string "DIR[ DIR]" will be appended to VARIABLE
27929# "DIRP[:DIRP]::[DIRA:]DIRA"
27930#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
27931#       "DIRA[ DIRA]" will be appended to VARIABLE
27932# "DIR[:DIR]"
27933#       VARIABLE will be replaced by "DIR[ DIR]"
27934func_munge_path_list ()
27935{
27936    case x$2 in
27937    x)
27938        ;;
27939    *:)
27940        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
27941        ;;
27942    x:*)
27943        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
27944        ;;
27945    *::*)
27946        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
27947        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
27948        ;;
27949    *)
27950        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
27951        ;;
27952    esac
27953}
27954
27955
27956# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
27957func_cc_basename ()
27958{
27959    for cc_temp in $*""; do
27960      case $cc_temp in
27961        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27962        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27963        \-*) ;;
27964        *) break;;
27965      esac
27966    done
27967    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27968}
27969
27970
27971# ### END FUNCTIONS SHARED WITH CONFIGURE
27972
27973_LT_EOF
27974
27975  case $host_os in
27976  aix3*)
27977    cat <<\_LT_EOF >> "$cfgfile"
27978# AIX sometimes has problems with the GCC collect2 program.  For some
27979# reason, if we set the COLLECT_NAMES environment variable, the problems
27980# vanish in a puff of smoke.
27981if test set != "${COLLECT_NAMES+set}"; then
27982  COLLECT_NAMES=
27983  export COLLECT_NAMES
27984fi
27985_LT_EOF
27986    ;;
27987  esac
27988
27989
27990ltmain=$ac_aux_dir/ltmain.sh
27991
27992
27993  # We use sed instead of cat because bash on DJGPP gets confused if
27994  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27995  # text mode, it properly converts lines to CR/LF.  This bash problem
27996  # is reportedly fixed, but why not run on old versions too?
27997  sed '$q' "$ltmain" >> "$cfgfile" \
27998     || (rm -f "$cfgfile"; exit 1)
27999
28000   mv -f "$cfgfile" "$ofile" ||
28001    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28002  chmod +x "$ofile"
28003
28004 ;;
28005    "default":C)
28006chmod +x tests/run
28007date > stamp-h
28008BACKENDSC="servers/slapd/backends.c"
28009echo "Making $BACKENDSC"
28010rm -f $BACKENDSC
28011cat > $BACKENDSC << ENDX
28012/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
28013 *
28014 * Copyright 1998-2021 The OpenLDAP Foundation.
28015 * All rights reserved.
28016 *
28017 * Redistribution and use in source and binary forms, with or without
28018 * modification, are permitted only as authorized by the OpenLDAP
28019 * Public License.
28020 *
28021 * A copy of this license is available in the file LICENSE in the
28022 * top-level directory of the distribution or, alternatively, at
28023 * <http://www.OpenLDAP.org/license.html>.
28024 */
28025/* This file is automatically generated by configure; please do not edit. */
28026
28027#include "portable.h"
28028#include "slap.h"
28029
28030ENDX
28031if test "${STATIC_BACKENDS}"; then
28032	for b in config ${STATIC_BACKENDS}; do
28033		bb=`echo "${b}" | sed -e 's/back-//'`
28034		cat >> $BACKENDSC << ENDX
28035extern BI_init ${bb}_back_initialize;
28036ENDX
28037	done
28038
28039	cat >> $BACKENDSC << ENDX
28040
28041BackendInfo slap_binfo[] = {
28042ENDX
28043
28044	for b in config ${STATIC_BACKENDS}; do
28045		bb=`echo "${b}" | sed -e 's/back-//'`
28046		echo "    Add ${bb} ..."
28047		cat >> $BACKENDSC << ENDX
28048	{ "${bb}", ${bb}_back_initialize },
28049ENDX
28050	done
28051
28052	cat >> $BACKENDSC << ENDX
28053	{ NULL, NULL },
28054};
28055
28056/* end of generated file */
28057ENDX
28058fi
28059OVERLAYSC="servers/slapd/overlays/statover.c"
28060echo "Making $OVERLAYSC"
28061rm -f $OVERLAYSC
28062cat > $OVERLAYSC << ENDX
28063/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
28064 *
28065 * Copyright 1998-2021 The OpenLDAP Foundation.
28066 * All rights reserved.
28067 *
28068 * Redistribution and use in source and binary forms, with or without
28069 * modification, are permitted only as authorized by the OpenLDAP
28070 * Public License.
28071 *
28072 * A copy of this license is available in the file LICENSE in the
28073 * top-level directory of the distribution or, alternatively, at
28074 * <http://www.OpenLDAP.org/license.html>.
28075 */
28076/* This file is automatically generated by configure; please do not edit. */
28077
28078#include "portable.h"
28079#include "slap.h"
28080
28081ENDX
28082if test "${STATIC_OVERLAYS}"; then
28083	for o in ${STATIC_OVERLAYS}; do
28084		oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
28085		cat >> $OVERLAYSC << ENDX
28086extern OV_init ${oo}_initialize;
28087ENDX
28088	done
28089fi
28090
28091cat >> $OVERLAYSC << ENDX
28092
28093OverlayInit slap_oinfo[] = {
28094ENDX
28095
28096if test "${STATIC_OVERLAYS}"; then
28097	for o in ${STATIC_OVERLAYS}; do
28098		oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
28099		echo "    Add ${oo} ..."
28100		cat >> $OVERLAYSC << ENDX
28101	{ "${oo}", ${oo}_initialize },
28102ENDX
28103	done
28104fi
28105
28106	cat >> $OVERLAYSC << ENDX
28107	{ NULL, NULL },
28108};
28109
28110/* end of generated file */
28111ENDX
28112
28113if test "${ol_cv_mkdep}" = no; then
28114	echo '(Do not "make depend"; we do not know how to build dependencies)'
28115else
28116	echo 'Please run "make depend" to build dependencies'
28117fi
28118 ;;
28119
28120  esac
28121done # for ac_tag
28122
28123
28124as_fn_exit 0
28125_ACEOF
28126ac_clean_files=$ac_clean_files_save
28127
28128test $ac_write_fail = 0 ||
28129  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28130
28131
28132# configure is writing to config.log, and then calls config.status.
28133# config.status does its own redirection, appending to config.log.
28134# Unfortunately, on DOS this fails, as config.log is still kept open
28135# by configure, so config.status won't be able to write to it; its
28136# output is simply discarded.  So we exec the FD to /dev/null,
28137# effectively closing config.log, so it can be properly (re)opened and
28138# appended to by config.status.  When coming back to configure, we
28139# need to make the FD available again.
28140if test "$no_create" != yes; then
28141  ac_cs_success=:
28142  ac_config_status_args=
28143  test "$silent" = yes &&
28144    ac_config_status_args="$ac_config_status_args --quiet"
28145  exec 5>/dev/null
28146  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28147  exec 5>>config.log
28148  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28149  # would make configure fail if this is the last instruction.
28150  $ac_cs_success || as_fn_exit 1
28151fi
28152if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28153  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28154$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28155fi
28156
28157